[Bug] 为什么qwen3VL的logits、last_hidden_state不支持返回呢?

オープン
#4,479 コメント 3 件 リアクション 1 件 担当者 2 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@CUHKSZzxy がすでに取り組んでいます。

2026年3月31日 から。

  • #4534 @copilot-swe-agent による — マージされずにクローズ

評価

この 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時間
マージ済み PR(30日)
52

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

InternLM/lmdeploy のほかの issue

InternLM/lmdeploy の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。