Skip to content
Open
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
8e949df
feat(mm): add the inkling 2 image processor
ischencheng Nov 20, 2026
e2171f1
feat(server): add the inkling 2 reasoning and tool-call parsers
ischencheng Nov 20, 2026
30ca54f
feat(inkling2): add the inkling 2 vision tower
ischencheng Nov 20, 2026
5babd4b
feat(inkling2_loop): add the inkling 2 mini text model with its three…
ischencheng Nov 20, 2026
1f65d77
feat(spec): add the inkling 2 dspark draft and its proposer
ischencheng Nov 20, 2026
b7c0ef2
fix(inkling2): build the vision rope frequencies on the cpu
ischencheng Nov 20, 2026
9d4d5cb
feat(moe): stream offload prefill experts in a looped model's layer o…
ischencheng Nov 20, 2026
412fade
test(inkling2_loop): check the checkpoint transforms against the refe…
ischencheng Nov 20, 2026
baf572d
Merge branch 'feat/inkling2-mini-vision' into feat/inkling2-mini
ischencheng Nov 20, 2026
94a34de
test(spec): pin the dspark markov head and the windowed-target gate
ischencheng Nov 20, 2026
8766c38
feat(inkling2_loop): serve image input through the vision tower
ischencheng Nov 20, 2026
2c37b89
feat(cpu-moe): compute the inkling 2 softcapped swiglu on the cpu exe…
ischencheng Nov 20, 2026
96bc7eb
perf(spec): read the dspark full-attention context in chunks
ischencheng Nov 20, 2026
9c8170a
docs(spec): name the dspark tensor groups
ischencheng Nov 20, 2026
55b5668
perf(spec): size the dspark context from host lengths
ischencheng Nov 20, 2026
6faeca7
test(spec): check sampled dspark drafts follow their reported q
ischencheng Nov 20, 2026
9e9dd3a
feat(moe): serve experts of several formats under --moe-strategy cpu
ischencheng Nov 20, 2026
6f7ebe1
test(spec): let the dspark bookkeeping check part only at a near tie
ischencheng Nov 20, 2026
a34eb8d
Merge branch 'feat/inkling2-mini-dspark' into feat/inkling2-mini
ischencheng Nov 20, 2026
1fc1ab3
feat(inkling2_loop): serve the dspark draft for speculative decoding
ischencheng Nov 20, 2026
eacbbab
feat(moe): keep experts of several formats resident
ischencheng Nov 20, 2026
2a5d31a
fix(inkling2_loop): add the vision-only reader and document the model
ischencheng Nov 20, 2026
822b724
Merge branch 'feat/inkling2-mini-hybrid' into feat/inkling2-mini
ischencheng Nov 20, 2026
24bc166
fix(moe): clear the prefill staging after the last call of the declar…
ischencheng Nov 20, 2026
c296586
docs(models): note the memory ratio inkling 2 mini needs on a 16 gb card
ischencheng Nov 20, 2026
660bdda
docs(models): note the window kv inkling 2 mini reserves per request
ischencheng Nov 20, 2026
61ced0b
fix(moe): pick the overlap prefill buffer by the call's place in the …
ischencheng Nov 21, 2026
c88be90
fix(inkling2_loop): refuse quantized kv formats the attention kernel …
ischencheng Nov 21, 2026
6b04117
fix(mm): refuse inkling 2 images past the image token limit
ischencheng Nov 21, 2026
80b6ef2
refactor(models): drop the unused kv_layer_count property
ischencheng Nov 21, 2026
75a0f74
Merge remote-tracking branch 'upstream/main' into feat/inkling2-mini
ischencheng Nov 21, 2026
94d84e7
Merge remote-tracking branch 'upstream/main' into feat/inkling2-mini
ischencheng Nov 26, 2026
908cf43
feat(inkling2_loop): serve the mxfp8 experts on the mxfp8 expert kernels
ischencheng Nov 26, 2026
3314730
test(moe): give the mxfp8 layer its own config in the resident and cp…
ischencheng Nov 26, 2026
3daae39
chore(inkling2_loop): list the mxfp8 expert banks for the prebuilt co…
ischencheng Nov 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(spec): let the dspark bookkeeping check part only at a near tie
  • Loading branch information
ischencheng committed Nov 20, 2026
commit 6f7ebe17728746d806111e1a61b016391e2718b6
10 changes: 8 additions & 2 deletions tests/models/inkling2_loop/test_dspark.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ def test_proposer_tracks_committed_tokens(tmp_path, monkeypatch, k, chunk_rows):
page_table = torch.full((mr + 1, cols.numel()), num_pages * page_size, dtype=torch.int32)
page_table[:mr] = (pages[:, cols // page_size] * page_size + cols % page_size).int()
page_table = page_table.to(DEV)
proposer = _proposer(path, target_parts, k, page_table, num_pages, page_size, mr)
# fp32: the from-scratch draft runs other batch shapes, whose GEMMs round differently; bf16 would flip near ties
proposer = _proposer(path, target_parts, k, page_table, num_pages, page_size, mr, torch.float32)
toy = _ToyLoopTarget(TOY, H)
greedy = SamplingParams()
width = k + 1
Expand Down Expand Up @@ -394,7 +395,12 @@ def forward(reqs, phase, tokens, positions, rows_per_req=None):
pending = torch.tensor([seq[-1] for seq in seqs], device=DEV)
drafts = proposer.propose(reqs, rows, pending).draft_token_ids
for row, seq in enumerate(seqs):
assert drafts[row].tolist() == _from_scratch(proposer.draft, toy, seq, k).tolist(), f"step {step}, request {row}"
steps = []
want = _from_scratch(proposer.draft, toy, seq, k, pick=lambda j, logits: (steps.append(logits[0]), logits.argmax(-1))[1]).tolist()
got = drafts[row].tolist()
# the two may part only where the from-scratch step has a near tie, and nothing after it is comparable
j = next((i for i, (a, b) in enumerate(zip(got, want)) if a != b), None)
assert j is None or steps[j][want[j]] - steps[j][got[j]] < 1e-4, f"step {step}, request {row}: drafts {got}, from scratch {want}"
# the target takes n drafts, then a token of its own
emitted = torch.tensor([(step + 3 * row) % width for row in range(2)])
seen.update(emitted.tolist())
Expand Down