[Bug] 为什么qwen3VL的logits、last_hidden_state不支持返回呢?
维护者通常 2 天内回复
评估
这个 Issue 还没有评估数据。
描述
Checklist
- 1. I have searched related issues but cannot get the expected help.
- 2. The bug has not been fixed in the latest version.
- 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
Describe the bug
gen_config=GenerationConfig(
temperature=0.0,
top_k = 1,
output_logits='generation',
output_last_hidden_state='generation',
max_new_tokens=2048)
# pipe = pipeline(args.model_path, backend_config=backend_config)
pipe = pipeline(args.model_path)
response = pipe(['Hi, pls intro yourself', 'Shanghai is'],
gen_config=gen_config)
hidden_states = [x.last_hidden_state for x in response]
logits = [x.logits for x in response]
# pdb.set_trace()
print(hidden_states)
print(logits)
Reproduction
gen_config=GenerationConfig(
temperature=0.0,
top_k = 1,
output_logits='generation',
output_last_hidden_state='generation',
max_new_tokens=2048)
# pipe = pipeline(args.model_path, backend_config=backend_config)
pipe = pipeline(args.model_path)
response = pipe(['Hi, pls intro yourself', 'Shanghai is'],
gen_config=gen_config)
hidden_states = [x.last_hidden_state for x in response]
logits = [x.logits for x in response]
# pdb.set_trace()
print(hidden_states)
print(logits)
Environment
官方环境
Error traceback
- 主要语言
- Python
- 星标
- 8.2k
- 派生
- 797
- 平均合并
- 3 天 15 小时
- 30 天内合并 PR
- 52
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
InternLM/lmdeploy 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 2 天内回复
-
[Bug] apply_rotary_pos_emb: leaves output tails unwritten with partial rotation可能已有人在做 @shotsan 于 15 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
[Bug] PyTorch engine ignores use_rslora, so rsLoRA adapters run sqrt(r) times too weak可能已有人在做 @Andreas-Hum 于 25 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
[Feature] Expose `max_model_len` (session_len) in `/v1/models` model card可能已有人在做 @FOWEPJF255 于 37 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 2 天内回复
查看 InternLM/lmdeploy 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
Techiebutler/freeframe#687 ·
维护者通常 1 天内回复
-
bug verbose GC
难度 2/5 1-3 小时 新手友好度 74/100
IBM/javacore-analyser#677 ·
维护者通常 1 天内回复
-
area/config comp/plugins P1 platform/qqbot tool/file type/bug
难度 2/5 1-3 小时 新手友好度 75/100
NousResearch/hermes-agent#163932 · 1 条评论 ·
维护者通常 1 天内回复
-
plugins/dsh: todayStr() computes UTC but is documented as local — journal entries written 00:00–08:00 local land in the previous day's file可能已有人在做 @Beehtrix 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 82/100
zilliztech/memsearch#907 · 1 条评论 ·
维护者通常 1 天内回复
-
external
难度 2/5 1-3 小时 新手友好度 72/100
langchain-ai/docs#8386 ·
维护者通常 1 天内回复