-
Notifications
You must be signed in to change notification settings - Fork 744
[Models] add fleet model fallback #7732
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
base: develop
Are you sure you want to change the base?
Changes from all commits
6898863
18cc86b
5e81aaf
4acab59
856ffc4
24cd474
e28b10f
5de13a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -194,6 +194,19 @@ def _try_resolve_paddleformers( | |
| elif model_impl == "auto" and is_fallback: | ||
| # Auto mode fallback when no native implementation exists | ||
| backend_arch = "PaddleFormersForCausalLM" | ||
| elif model_impl == "paddlefleet": | ||
| from fastdeploy.model_executor.utils import is_paddlefleet_available | ||
|
|
||
| if is_paddlefleet_available(): | ||
| backend_arch = "PaddleFleetForCausalLM" | ||
| else: | ||
| raise ImportError( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Bug pip 安装命令字符串拼接缺少空格,命令无法执行 第3行字符串末尾缺少空格,与第4行直接拼接后变为 建议修复: "python -m pip install paddlefleet==0.3.0.dev20260507 "
"--extra-index-url https://www.paddlepaddle.org.cn/packages/stable/cu126/ "
"--extra-index-url https://www.paddlepaddle.org.cn/packages/nightly/cu126/"即在 |
||
| "paddlefleet backend requires paddlefleet to be installed.\n" | ||
| "Please install with [change cuda version if needed ]:\n" | ||
This comment was marked as outdated.
Sorry, something went wrong. |
||
| "python -m pip install paddlefleet==0.3.0.dev20260507" | ||
| "--extra-index-url https://www.paddlepaddle.org.cn/packages/stable/cu126/ " | ||
This comment was marked as outdated.
Sorry, something went wrong. |
||
| "--extra-index-url https://www.paddlepaddle.org.cn/packages/nightly/cu126/" | ||
| ) | ||
| elif model_impl == "fastdeploy": | ||
| return None | ||
| else: | ||
|
|
||
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.