[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)

Aperta
#7,361 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
backend

Direzione di ricerca

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.

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

Descrizione

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
Lingua principale
C++
Stelle
11.6k
Fork
1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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

Tutte le issue di Niko1221/Strata

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.