Skip to content
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

如何调用InternLM-XComposer-2.5模型的forward函数? #362

Closed
qingfengcss opened this issue Jul 9, 2024 · 2 comments
Closed

如何调用InternLM-XComposer-2.5模型的forward函数? #362

qingfengcss opened this issue Jul 9, 2024 · 2 comments
Assignees

Comments

@qingfengcss
Copy link

如何给InternLM-XComposer-2.5模型喂input_ids 和labels之类的数据,直接使用forward进行推理?我想得到LLM的logits,好做教师模型,不知道能否指导一下,要是有demo就万分感谢了

@yuhangzang
Copy link
Collaborator

The forward function is defined in this line and you may refer to the chat function.

@yuhangzang
Copy link
Collaborator

yuhangzang commented Jul 22, 2024

Kindly re-open this issue if you still have any questions.

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

3 participants