Repository navigation
Conversation
…off relay # Conflicts: # engine/src/poly/inkling2.cpp # engine/src/poly/inkling2.hpp
cobra91
force-pushed
the
feat/ik2-multigpu-split
branch
from
November 26, 2026 08:16
28688bc to
adeb22c
Compare
Contributor
Author
|
Rebased cleanly onto Updated Benchmarks on
|
| Configuration | Prefill | Decode | Drafts Accepted | Gain |
|---|---|---|---|---|
v0.2.20-poly.5 (--no-draft baseline) |
359.8 tok/s | 95.97 tok/s | — | — |
v0.2.20-poly.5 + this PR (--draft-model) |
495.4 tok/s | 167.30 tok/s | 198 / 258 (76.7%) | +74.3% (1.74x) |
This was referenced Nov 26, 2026
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
Inkling 2 Mini drafting with
--draft-model(DSpark) previously failed when running across multiple GPUs with--layer-split(refusing with"Inkling 2's --draft-model runs on one card (no --layer-split)"or miscalculating loop core bounds on Unsloth GGUFs with"a card of a split starts inside the loop"). Additionally,draft_modelwas cleared on non-last cards, preventing Card 0 from capturing intermediate layer features, andblock_guess_was disabled on split engines.This PR enables DSpark drafting on multi-GPU layer splits via
ds_taphandoff relay, achieving up to +66% decode speedup (199.23 tok/son window 4) and +57.1% prompt prefill speedup on an asymmetric dual-GPU rig (RTX 5080 + RTX 4060 Ti).Approach
engine/src/poly/engine.cpp: UpdatedEngine::open()to matchname == "inkling"(alongside"inkling2_loop") and inspect bothloop.start/loop.core_startandloop.count/num_loopsso--layer-split autodoes not bisect the recurrent loop core. Keptdraft_modelintact for Card 0 on Inkling and keptblock_guess_active on multi-card engines for models withown_blocks().engine/src/poly/inkling2.hpp&inkling2.cpp: Added 3 rows tocarry_rows()(kBlocks + 2 + (ds_file_ ? 3 : 0)) and relayed intermediate feature tapsds_tap_[0..2]across cards viacarried().tok_norm_and calledds_load()only on the card hosting the drafter, saving~370 MBVRAM on Card 0.Validation & Gains
Testbed: Windows 11, MSVC 19.44, CUDA 13.4 (
sm_89;120),RTX 5080 16 GB+RTX 4060 Ti 16 GB(--layer-split 18)Command:
build\strata-poly.exe --model models\Inkling-2-Mini-UD-IQ3_XXS.gguf --draft-model models\dspark-Inkling-2-Mini-Q8_0.gguf --window <W> --layer-split 18 --tokens 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 --max-new 128--layer-split 18)53.1 tok/s121.05 tok/s--window 2)83.4 tok/s(+57.1%)147.04 tok/s61/63(96.8%)+21.5%--window 4)83.4 tok/s(+57.1%)199.23 tok/s+64.6%Checks
ninja -C build strata-poly poly_inkling2_test(revision28688bc) — clean build,0errors.build\poly_inkling2_test.exeon RTX 5080 (sm_120) —431 checks, 0 failed.Limits