Skip to content

Conversation

@kevincheng2
Copy link
Collaborator

Motivation

为支持多cuda版本,取消固定 cuda-python 版本,在使用eplb时,让用户手动下载对应版本的cuda-python

Modifications

Usage or Command

Accuracy Tests

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[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]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot
Copy link

paddle-bot bot commented Nov 24, 2025

Thanks for your contribution!

yuanlehome
yuanlehome previously approved these changes Nov 24, 2025
@codecov-commenter
Copy link

codecov-commenter commented Nov 25, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@95b3931). Learn more about missing BASE report.

Files with missing lines Patch % Lines
fastdeploy/config.py 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #5202   +/-   ##
==========================================
  Coverage           ?   59.89%           
==========================================
  Files              ?      317           
  Lines              ?    38806           
  Branches           ?     5853           
==========================================
  Hits               ?    23242           
  Misses             ?    13724           
  Partials           ?     1840           
Flag Coverage Δ
GPU 59.89% <50.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Jiang-Jia-Jun
Jiang-Jia-Jun previously approved these changes Nov 25, 2025
Comment on lines +1802 to +1810
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.*"
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我理解这块可能得放在这里,实际import的时候,以后这个库不一定仅在eplb下才会使用到

Image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

但这样有可能会在运行时报错,对问题排查不友好?后续其他场景需要import 可以在config->check 中增加判断?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants