[BugFix] fix gpt-oss accuracy issue when enabling piecewise cuda graph#18013
[BugFix] fix gpt-oss accuracy issue when enabling piecewise cuda graph#18013ispobock merged 3 commits intosgl-project:mainfrom
Conversation
Summary of ChangesHello @zminglei, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses and rectifies an accuracy degradation in GPT-OSS models that occurs when the piecewise CUDA graph optimization is active. The core change involves a strategic modification to the KV cache eviction logic, specifically preventing SWA eviction during the decode phase under these conditions. This ensures that CUDA graph memory addresses remain stable, thereby resolving the accuracy issue and enhancing the reliability of the model's performance with this optimization enabled. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly fixes an accuracy issue with gpt-oss when piecewise CUDA graph is enabled by skipping SWA eviction during the decode phase. The change is logical and well-commented. I have one minor suggestion to improve efficiency by moving a function call out of a loop.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
/tag-and-rerun-ci |
Motivation
fix #17839
fix gpt-oss accuracy issue when enabling piecewise cuda graph
Modifications
Accuracy Tests
Before:
After:
Benchmarking and Profiling
Checklist
Review Process
/tag-run-ci-label,/rerun-failed-ci,/tag-and-rerun-ci