Skip to content

infer速度远远小于train期间infer val数据集的速度 #3992

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

Open
jiahui-w opened this issue Apr 25, 2025 · 1 comment
Open

infer速度远远小于train期间infer val数据集的速度 #3992

jiahui-w opened this issue Apr 25, 2025 · 1 comment

Comments

@jiahui-w
Copy link

以下是我train时的参数设置:

Image

以下是我infer时的参数设置:

Image

数据集的量大概为1.5w条,在train期间,infer完整的数据集大概需要1.5h,但是在infer的时候需要240h

感谢关注和解答!!!

@Jintao-Huang
Copy link
Collaborator

正常的,训练时的验证采用的是forward,而不是generate

推理可以试试infer_backend vllm加速

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

No branches or pull requests

2 participants