-
Notifications
You must be signed in to change notification settings - Fork 3k
[Bug]: 服务化部署失败,ModuleNotFoundError: No module named 'predict' #10265
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
Comments
当前可以在镜像的 具体原因应该是镜像在构建中有额外设置PYTHONPATH路径,导致PYTHONPATH缺少当前目录,具体代码链接:
|
感谢指导啊~ 顺便请教下,这个gradio是服务化部署所必须的吗? 不带flask_port
不带port
|
当前这个是和gradio写在同一个文件的,需要自己修改下文件,去掉gradio相关内容也可以使用 |
你好, 使用这个我也解决了同样的问题, 但是出现了先的问题, 报错如下: |
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference. |
软件环境
重复问题
错误描述
稳定复现步骤 & 代码
python3 ./predict/flask_server.py --model_name_or_path Qwen/Qwen2.5-0.5B-Instruct --port 8010 --flask_port 8011 --dtype "float16"
Traceback (most recent call last):
File "/opt/source/PaddleNLP/llm/./predict/flask_server.py", line 27, in
from predict.predictor import (
ModuleNotFoundError: No module named 'predict'
The text was updated successfully, but these errors were encountered: