Repository navigation
[Docs] Inkling 2 Mini: measure setup's four small-card settings one at a time - #247
Open
okada-shogo wants to merge 3 commits into
Open
okada-shogo wants to merge 3 commits into
okada-shogo wants to merge 3 commits into
Conversation
Speed of each of setup's small-card settings alone and all four, on an RTX 4060 Ti 16 GB, a Quadro RTX 4000 8 GB and an RTX 2070 Super 8 GB; how much each moves the answers against two default runs; and how many experts --tail-skip 4 leaves out, which the engine's "experts from VRAM" count takes as found in VRAM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new section now opens with a warning: setup adds the four settings by itself on a card that does not hold every expert, they make the answers worse, and --tail-skip 4 leaves out 9% to 27% of a token's expert picks on the 8 GB cards. It says how to take them out of the run config, or keep the rounding and turn only --tail-skip off. Review fixes: KL medians beside the means, which one outlier step sets; the --loop-bf16 and --expert-swaps 0 agreement as numbers; --loop-bf16 also changes nothing with UD-Q2_K_XL fully on the card; the left-out count for the RTX 2070 Super with IQ4_NL; the two gains after 8K; what the doorbell is; the prompt-batch rule for leaving an expert out; the VRAM figure with the doorbell off; the CPUs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ult-run medians Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 23, 2026
okada-shogo
marked this pull request as ready for review
November 23, 2026 01:36
okada-shogo
added a commit
to okada-shogo/PolyStrata
that referenced
this pull request
Nov 23, 2026
… small-card settings one at a time Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and result
Setup's small-card settings make Inkling 2 Mini's answers worse to make them faster, and setup adds them by
itself, with no option to leave them out. To turn them off, delete
"--attn-requant", "q5_0", "--loop-bf16", "--tail-skip", "4", "--expert-swaps", "0"from"args"interminal/strata-inkling-<size>.jsonand restart theserver. The docs now say both, first thing in the new section.
On a card that does not hold every expert, setup starts Inkling 2 Mini with
--attn-requant q5_0 --loop-bf16 --tail-skip 4 --expert-swaps 0. The docs measured them only together, on one laptop. This adds a short section todocs/models/inkling.mdwith each setting alone and all four, on three cards: speed, how much the answers move,and how many experts
--tail-skip 4leaves out.Three of the settings round the numbers more coarsely (lossy).
--tail-skip 4skips computation: a token's experts ranked 5th to8th that are not on the card are not computed. The docs now say so.
Short version. Decode tok/s (tokens written per second), higher is better, median of 2 runs, IQ4_NL unless the
model column says otherwise. Each column is one setting alone, then all four together:
Decode tok/s after a 302-token prompt:
--expert-swaps 0--loop-bf16--attn-requant q5_0--tail-skip 4Decode tok/s after an 8,192-token prompt:
--expert-swaps 0--loop-bf16--attn-requant q5_0--tail-skip 4--attn-requant q5_0and--tail-skip 4.--expert-swaps 0is slower on every card aftera short prompt.
--loop-bf16and--expert-swaps 0give 98.1-98.9%.
--attn-requant q5_0gives 95.6-97.0%,--tail-skip 496.4-97.9%, all four 94.3-95.0%.--tail-skip 4leaves out 0.9% of a token's expert picks on the 16 GB card, but 8% alone and 24.5-26.5% with theother three on the 8 GB cards with IQ4_NL. The engine's "experts from VRAM" count counts those as VRAM hits.
Related discussion
none
Approach
Docs only. One new subsection under the small-card paragraph of
docs/models/inkling.md: a plain warning and howto turn the settings off, then the measurements. Nothing about setup changes.
How the runs were made
the
inkling2_looplayout.--top-probs 20is the reference. Every other setting is fed thesame tokens (
--follow) and compared step by step: top-1 match and KL(default ‖ setting) over the top 20. Thedefaults are run twice more as the noise floor.
STRATA_POLY_BELL=0; the doorbell is how the card hands itsmisses to the CPU one token at a time), because with it on the engine counts them as VRAM hits. With it off they
drop out of the hit rate's denominator, so that figure reads high too. For one token at a time both paths drop the
same experts.
Validation
Passed:
Speed, per setting
Sin {none,--expert-swaps 0,--loop-bf16,--attn-requant q5_0,--tail-skip 4, allfour,
--expert-swaps 4,--expert-swaps 16}, with and withoutSTRATA_POLY_BELL=0:Answers:
Prompts: 302, 112 (code), a short chat, and 2,048 tokens (128 written).
Answers: every setting, same top-1 (%) and KL (nats)
Each setting is fed the default run's tokens and compared step by step with the default. "default, 2nd run" and
"default, 3rd run" are the default run again: the noise floor.
Same top-1 token as the default, % of steps, higher is better:
--expert-swaps 0--loop-bf16--attn-requant q5_0--tail-skip 4--expert-swaps 0--loop-bf16--attn-requant q5_0--tail-skip 4--attn-requant q5_0--attn-requant q5_0Mean KL(default ‖ setting) over the default's top 20 tokens, in nats, lower is better:
--expert-swaps 0--loop-bf16--attn-requant q5_0--tail-skip 4--expert-swaps 0--loop-bf16--attn-requant q5_0--tail-skip 4--attn-requant q5_0--attn-requant q5_0On the 16 GB card one step of most settings, the default with the doorbell off included, has KL 6-8, which sets
the means. Medians: 0.0002 and 0.0001 (again), 0.0004 (
--expert-swaps 0), 0.0003 (--loop-bf16), 0.0017 (--attn-requant q5_0), 0.0007 (--tail-skip 4), 0.0025 (all four).Expert swaps: speed, hit rate and traffic (IQ4_NL, after a 302-token prompt)
Decode tok/s after a 302-token prompt, IQ4_NL, median of 2 runs, higher is better.
--expert-swapscaps how manyexperts the engine may swap onto the card per token; the default is 64:
--expert-swaps 64)--expert-swaps 16--expert-swaps 4--expert-swaps 0--expert-swaps 64)--expert-swaps 16--expert-swaps 4--expert-swaps 0The engine's counters for the same runs. "VRAM hits" is the % of a token's experts found on the card (as the
engine counts it); "CPU experts" is the time the CPU spends on the experts not on the card:
--expert-swaps 64)--expert-swaps 16--expert-swaps 4--expert-swaps 0--expert-swaps 64)--expert-swaps 16--expert-swaps 4--expert-swaps 0Fewer swaps gave fewer hits and slower writing on every card. Each swap also copies the outgoing expert back to RAM
when RAM holds no copy (nsys on the RTX 2070 Super, tokens 9-40: 79 MB up and 79 MB down a token by default).
Failed:
none observed
Not run:
--tail-skip 4leaves out the most, so its accuracy cost there isnot measured.
Limits
19.1-24.3 after 8,192). Its "all four is slower after 8K" is within that spread.
STRATA_POLY_BELL=0) wrote faster thanmain's default (UD-Q2_K_XL 44.3 vs 39.3 tokens/s). On the Quadro, 32.1 vs 30.9 is within its 29.5-32.2 spread. On
the 16 GB card it was slower (47.4 vs 49.0).
port/setup-no-swaps-0(and a planned PR that has setup ask before adding these settings) edit the sameparagraph of
docs/models/inkling.md; whichever lands second needs a small rebase.🤖 Generated with Claude Code