DSpark rejects requested token and prompt log-probability outputs

オープン
#21,859 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python, pytorch

調査の方向性

Read the SpecSampler admission checks and the speculative request result path for score outputs, then inspect the serving integration tests for the logprobs, top_logprobs, and prompt_logprobs fixtures. Start by comparing the speculative and non-speculative request paths. Done means supported modes return scores for the accepted prefix and requested prompt positions while preserving chunked prefill, stop truncation, and mixed ordering; unsupported modes remain explicitly rejected. An open linked pull request is already addressing this issue.

索引モデルが issue の本文から書いたものです。

説明

Speculative Decoding

With one-model DSpark enabled, paired serving requests using logprobs, top_logprobs or prompt_logprobs fail at SpecSampler admission; the same request fixtures return HTTP 200 with speculation disabled. The serving integration exposes these rejections as backend 500 responses. This status comparison does not establish whether the non-speculative backend correctly honors every requested field.

Source inspection at main 68a08c57ea04d31d6991441378646d285588a4ad shows that requested score output is rejected and the speculative path does not transport per-accepted-token log probabilities into request results. Prompt scores also require retaining the requested context LM-head rows instead of only the final context/verification rows.

Request options that demonstrate the gap include {"logprobs": true, "top_logprobs": 3} and {"prompt_logprobs": 5} on an otherwise-valid chat request. The historical serving reproduction used one-model DSpark; this report does not claim a fresh GPU reproduction on current main.

Expected behavior for supported output modes: return raw target token log probabilities/top-k entries for the actual accepted prefix and requested prompt scores, preserving chunked prefill, stop truncation and mixed request ordering. Modes still unimplemented should remain explicitly rejected rather than being silently ignored. A focused draft implementation and CPU regression tests are being prepared; native/GPU integration validation will be reported separately.

主要言語
Python
スター
15.2k
フォーク
3k
平均マージ
2日 21時間
マージ済み PR(30日)
477

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

NVIDIA/TensorRT-LLM のほかの issue

NVIDIA/TensorRT-LLM の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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