DSpark rejects requested token and prompt log-probability outputs

Abierto
#21,859 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
python, pytorch

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
15.2k
Forks
3k
Merge medio
2 d 21 h
PR fusionados (30 d)
477

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NVIDIA/TensorRT-LLM

Todos los issues de NVIDIA/TensorRT-LLM

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.