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

Open Beginner friendly
#6,670 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend, cli

Research direction

The bug is in serve/inkling_kind.py: wants_drafter() returns False for drafting off (around lines 44-47), but no --draft argument is added in that case (around lines 85-86 and 106-110). Start by reading those functions, then run the launch command from the issue with --drafting off and check the engine log for dspark=1. Done means the engine command includes --draft off and the log shows dspark=0.

Written by the indexing model from the issue text.

Description

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

Dominant language
C++
Stars
11.6k
Forks
1k
Avg merge
17d 21h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Niko1221/Strata

All issues in Niko1221/Strata

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.