[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)
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
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_secondare null), althoughusageis 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
- Start Inkling-2-Mini SQ-10 on a Tesla T4 with
--parallel 2 --kv fp8 --max-context 81920 --chunk 1024 --draft dsparkandSTRATA_INK_DRAFTER=dsparkin the engine env (orSTRATA_INK_DRAFTER=dflash2withdflash2.safetensorsbeside the model). - Send these requests in order, temperature 0,
max_tokens600:
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]
- Compare
timings.predicted_per_secondof 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Niko1221/Strata
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Niko1221/Strata#7365 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 4 giorni
-
[GUI] Engine chip: move the breathing status dot to the right end of the quant line, inside the chipAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 4 giorni
-
[GUI] The top horizontal stroke of 更 in the sidebar footer is never drawn (Windows, 125% scaling)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Niko1221/Strata#7276 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Niko1221/Strata#7230 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di Niko1221/Strata
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs firstAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Quantinuum/tket#2282 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
KhronosGroup/Vulkan-Tutorial#555 ·
I maintainer di solito rispondono entro 10 giorni
-
Server crashes when a mob dies to poisonForse già presa @joelstiller l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DarkCastleMUD/DarkCastle#305 ·
I maintainer di solito rispondono entro 1 giorno
-
[Issue]: RAS status report lists the wrong pids for an outlier nodeForse già presa @bhargavchintam l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 2 giorni