-
Notifications
You must be signed in to change notification settings - Fork 659
[BugFix] fix cuda version #5202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for your contribution! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5202 +/- ##
==========================================
Coverage ? 59.89%
==========================================
Files ? 317
Lines ? 38806
Branches ? 5853
==========================================
Hits ? 23242
Misses ? 13724
Partials ? 1840
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| if self.eplb_config is not None and self.eplb_config.enable_eplb: | ||
| try: | ||
| import cuda # noqa | ||
| except Exception: | ||
| raise ImportError( | ||
| "cuda-python not installed. Install the version matching your CUDA toolkit:\n" | ||
| " CUDA 12.x → pip install cuda-python==12.*\n" | ||
| " CUDA 11.x → pip install cuda-python==11.*" | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
但这样有可能会在运行时报错,对问题排查不友好?后续其他场景需要import 可以在config->check 中增加判断?

Motivation
为支持多cuda版本,取消固定 cuda-python 版本,在使用eplb时,让用户手动下载对应版本的cuda-python
Modifications
Usage or Command
Accuracy Tests
Checklist
[FDConfig],[APIServer],[Engine],[Scheduler],[PD Disaggregation],[Executor],[Graph Optimization],[Speculative Decoding],[RL],[Models],[Quantization],[Loader],[OP],[KVCache],[DataProcessor],[BugFix],[Docs],[CI],[Optimization],[Feature],[Benchmark],[Others],[XPU],[HPU],[GCU],[DCU],[Iluvatar],[Metax]]pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.