We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我有一个用DPO训练的VLM,现在我想用它作为奖励模型来做一些探索。因此我希望可以给定模型一个完整的对话消息,模型应该返回所有输入的logits而不是对对话进行续写。如果可以实现的话,这将极大方便我的工作。
The text was updated successfully, but these errors were encountered:
from lmdeploy import pipeline, GenerationConfig from lmdeploy.vl import load_image pipe = pipeline('OpenGVLab/InternVL2_5-8B') image = load_image('https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/tests/data/tiger.jpeg') response = pipe(('describe this image', image), gen_config=GenerationConfig(output_logits='all', max_new_tokens=1)) logits = response.logits print(logits)
看看这个符不符合你的需求? 需要用到 lmdeploy v0.7.0
Sorry, something went wrong.
太感谢了,这个功能对我来说太有用了
lvhan028
No branches or pull requests
我有一个用DPO训练的VLM,现在我想用它作为奖励模型来做一些探索。因此我希望可以给定模型一个完整的对话消息,模型应该返回所有输入的logits而不是对对话进行续写。如果可以实现的话,这将极大方便我的工作。
The text was updated successfully, but these errors were encountered: