Skip to content

LMdeploy支持返回prompt的logprobs? #2966

Answered by irexyc
CSammyfd asked this question in Q&A
Discussion options

You must be logged in to vote

@CSammyfd

可以看下这个文档 https://github.com/InternLM/lmdeploy/blob/main/docs/zh_cn/llm/pipeline.md 里面的计算 logits

没办法指定只返回一部分,目前只能返回全部的。计算上会有部分多余计算,显存上不会差很多,因为会拆分为多个iter来处理。

另外目前没有 serving 的接口,只有offline的接口,用法的话可以参考上面那个文档。

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@CSammyfd
Comment options

@irexyc
Comment options

irexyc Dec 30, 2024
Collaborator

Answer selected by CSammyfd
@CSammyfd
Comment options

Comment options

You must be logged in to vote
3 replies
@irexyc
Comment options

irexyc Dec 30, 2024
Collaborator

@CSammyfd
Comment options

@irexyc
Comment options

irexyc Dec 31, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants