[Engine] Inkling-2-Mini: --drafting off still runs DSpark

Aperta Adatta ai principianti
#6,670 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 6 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, cli

Direzione di ricerca

Il bug si trova in serve/inkling_kind.py: wants_drafter() restituisce False per drafting off (intorno alle righe 44-47), ma in quel caso non viene aggiunto alcun argomento --draft (intorno alle righe 85-86 e 106-110). Inizia leggendo quelle funzioni, poi esegui il comando di avvio dell'issue con --drafting off e controlla nel log del motore la presenza di dspark=1. Il lavoro è completato quando il comando del motore include --draft off e il log mostra dspark=0.

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

Descrizione

For Inkling-2-Mini, strata launch --drafting off leaves out --draft dspark but doesn't pass --draft off, and the engine then loads DSpark anyway: the engine log still says dspark=1 and it allocates the same 23.39 GiB as a DSpark run. Starting the engine with --draft off gives dspark=0 and drops short-prompt decode on an M3 Max from about 66 to about 42 t/s, so the fix may be as small as emitting that flag.

Details, written by Claude (medium effort)

Area

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

Desktop app, Terminal or source?

Terminal (the strata command)

Reproduction status

Reproduced locally

Related, but different: #6633 (DSpark never engages on a .strata pack). Here DSpark does engage; it just can't be switched off from strata launch.

What happened

--drafting off for Inkling-2-Mini SQ-20 leaves --draft dspark off the engine command line but does not pass --draft off. The engine's own default then loads DSpark anyway: the engine log reports dspark=1.

Expected: no drafter. dspark=0 in the log, and the slower no-draft decode speed.

Evidence (from ~/.local/state/strata/launch/sq-20-64k.engine.log, paths shortened)
14:46:46 engine started: …/strata-inkling --serve --native …/SQ-20.strata --max-context 65536 --draft dspark   ← --drafting auto (default)
         runner ready: … dspark=1 …
14:52:45 engine started: …/strata-inkling --serve --native …/SQ-20.strata --max-context 65536                ← --drafting off
         runner ready: … dspark=1 …                                                                       ← still on
14:53:31 engine started: …/strata-inkling --serve --native …/SQ-20.strata --max-context 65536 --draft off     ← workaround (below)
         runner ready: … dspark=0 …   TotalAlloc 22.12 GiB (vs 23.39 GiB with DSpark)

For scale: on short prompts, decode is about 66 t/s with DSpark (the default) and about 42 t/s with --draft off (M3 Max). I didn't benchmark the --drafting off start itself; the dspark=1 log line above is the evidence that it was still drafting, and the 23.39 GiB allocation matches the DSpark run.

Where (Strata 0.2.19, build 0.1.65): from reading the code, which matches the log above

  • serve/inkling_kind.py:44–47: wants_drafter() returns False for drafting: off.
  • serve/inkling_kind.py:85–86 and :106–110: when it is False, no --draft argument is added at all.
  • strata-inkling --help lists --serve … [--draft auto|dspark|off]. With no flag, the engine picks DSpark (as observed). A likely fix is to emit --draft off when the user chose off.

Smallest steps to reproduce

strata launch --model sq-20 --family inkling-2-mini --context 64k --vision off --tune skip --access local --port 8083 --drafting off --no-tui
strata logs        # or the launch's .engine.log: "runner ready: ... dspark=1"

Workaround: copy the launch run config, append "--draft", "off" to args, and start it with strata serve --config <copy> --host 127.0.0.1 --port 8083.

Not tested

  • --mtp off and --drafting mtp for Inkling.
  • Other Inkling packs (SQ-10, SQ-15).
  • The desktop app.
  • Other platforms.

Strata version

strata 0.2.19 (build 0.1.65), engine strata-inkling 0.1.65 macos-arm64-metal

Graphics card, memory and system

Apple M3 Max, 64 GB unified memory, macOS 27.2.1

Model, size and settings

Inkling-2-Mini SQ-20, context 64k, pictures off, --parallel 1


Generated by Claude Code

Lingua principale
C++
Stelle
11.6k
Fork
1k
Merge medio
17g 21h
PR unite (30g)
3

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.