[Engine] strata-inkling 0.1.70 (v0.2.23): a ~5K-token prompt decodes without drafting on a Tesla T4 (21 tok/s with DSpark, DFlash 2 or --draft off; 0.1.69 drafts it at 42)

Abierto
#7,361 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp
Área
backend

Línea de trabajo

Start by comparing the strata-inkling 0.1.69 and 0.1.70 engine behavior on the supplied three-request reproduction, checking the third request’s timings.predicted_per_second and the engine logs for drafter activity. The report identifies the affected engine and settings but names no source files or tests, so first locate the prompt and drafter selection paths in the C++ engine. Done when the long summary prompt drafts at the expected speed on 0.1.70 and the reproduction confirms the change.

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

Descripción

Area

[Engine] (speed, kernels, models, the server and API)

Desktop app, Terminal or source?

Terminal (the strata command)

What happened

After updating from 0.2.22 to 0.2.23, a ~5K-token prompt on Inkling-2-Mini SQ-10 decodes at about 21 tok/s on a Tesla T4, which is the same speed as with no drafter. The strata-inkling 0.1.69 engine, run under the same Control 0.1.70 with the same request, drafts it at 42 tok/s. Short prompts still draft normally on 0.1.70.

Measured with the stock release engine strata-inkling 0.1.70 (linux-x86_64-cuda-cuda13), temperature 0, one request at a time, tok/s = timings.predicted_per_second:

Engine / drafter code (49-token prompt) short (30 tokens) summary (~5,300-token prompt)
0.1.70, DSpark (--draft dspark, STRATA_INK_DRAFTER=dspark) 46.5 37.7 21.5 (242 tokens out)
0.1.70, --draft off 22.8 24.1 21.6
0.1.70, DFlash 2 forced (STRATA_INK_DRAFTER=dflash2, mix sidecar) 64.9 59.4 21.4
0.1.69, DSpark, same Control 0.1.70 46.5 40.1 42.1 (128 tokens out)

The first two rows are the stock release binary (--kv-offload auto). The DFlash 2 and 0.1.69 rows were run on local builds of the same release sources with one added start-up step that preallocates the VRAM-only KV (--kv-offload off, the proposal in #6770). With DSpark, the patched 0.1.70 build gave the same numbers as the stock binary, so the patch is not the cause.

Expected: the ~5K prompt drafts on 0.1.70 the way it does on 0.1.69, about 40 tok/s or more.

Other things I found:

  • The start-up log shows the drafter loaded (DSpark took 612 MiB, or [InkDFlash2] DFlash 2 drafter on ... 2 slot(s)). No line is printed when the summary request runs undrafted.
  • STRATA_SM75_PERF=0 (#7041) changes nothing (21.4).
  • To rule out the #7226 slot routing, I repeated the DFlash 2 and 0.1.69 runs with STRATA_INKLING_KEEP_CHATS=0. Without it, every request that follows a 2,048+-token chat goes to slot 1, which has no drafter, and decodes at about 22 tok/s. That is documented, but it makes this bug easy to mistake for routing.
  • The answer to the same temperature-0 prompt also changed between 0.1.69 and 0.1.70 (242 vs 128 tokens).
  • Smaller point: after such a request, the responses to following requests often have no timings (prompt_per_second/predicted_per_second are null), although usage is filled.

At 77K tokens of context, decode is normal on 0.1.70 + DFlash 2 (15.9 tok/s; 0.1.69 + DSpark gave 14.6). So it is not a plain depth effect. It shows up on the summary-type prompt.

Smallest steps or command that reproduce it
  1. Start Inkling-2-Mini SQ-10 on a Tesla T4 with --parallel 2 --kv fp8 --max-context 81920 --chunk 1024 --draft dspark and STRATA_INK_DRAFTER=dspark in the engine env (or STRATA_INK_DRAFTER=dflash2 with dflash2.safetensors beside the model).
  2. Send these requests in order, temperature 0, max_tokens 600:
code = "Write a Python function that parses an INI file into a nested dict, with tests."
doc = " ".join(f"Paragraph {i}: the committee reviewed budget line {i} and noted a variance of {i*7%13} percent." for i in range(260))
prompts = [code, "Name three rivers in Europe.", "Summarize:\n" + doc]
  1. Compare timings.predicted_per_second of the third request with the first two, and with the same requests on engine 0.1.69.
Reproduction status

Reproduced locally

Strata version

strata 0.2.23 (Control 0.1.70, strata-inkling 0.1.70 linux-x86_64-cuda-cuda13; comparison engine strata-inkling 0.1.69)

Graphics card, memory and system

Tesla T4 16 GB (sm_75, ECC off) used alone for Inkling (a second card serves Qwen), driver 615.71.09, Ryzen 7 PRO 4750G, 64 GB RAM, Ubuntu 26.04

Model, size and settings

Inkling-2-Mini SQ-10, --parallel 2, 81,920 context per slot, --kv fp8, --chunk 1024, pictures on (CPU reader), started with strata runtime start from a run config

Logs
[InkCUDA] memory: 5394 MiB free after load, runner+KV took 1646 MiB (max_batch=1024), DSpark took 612 MiB, 3136 MiB free now
[InkDFlash2] DFlash 2 drafter on: .../dflash2.safetensors, 2 slot(s), weights 443 MiB + scratch 23 MiB (GPU memory taken 586 MiB), codebooks on the host (mapped), mix Q8 + SF4 block weights
Lenguaje dominante
C++
Estrellas
11.6k
Forks
1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 Niko1221/Strata

Todos los issues de Niko1221/Strata

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.