DSpark rejects requested token and prompt log-probability outputs

Aperta
#21,859 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python, pytorch

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
15.2k
Fork
3k
Merge medio
2g 21h
PR unite (30g)
477

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/TensorRT-LLM

Tutte le issue di NVIDIA/TensorRT-LLM

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.