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
Merge remote-tracking branch 'upstream/main' into feat/inkling2-mini
# Conflicts:
#	tests/moe/test_mixed_expert_formats.py
  • Loading branch information
ischencheng committed Nov 26, 2026
commit 94d84e7f0d5ddf808f7c4a933643286a52fd9ced
9 changes: 5 additions & 4 deletions tests/moe/test_mixed_expert_formats.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""Experts of several formats in one model: bf16 and MXFP8 layers next to NVFP4 layers.

A checkpoint may leave some MoE layers unquantized (Muse Spark keeps its first and last layer's
experts bf16). Each format fills its own layers' banks, the banks merge over the union of roles with
zero-byte placeholders, the slot cache keeps one pool per format, resident layers each take their own
roles, the FTW stores each layer's own banks, and the CPU executor computes each layer in its format.
experts bf16) or store them in another format (Inkling-2 keeps its last layers' experts MXFP8). Each format
fills its own layers' banks, the banks merge over the union of roles with zero-byte placeholders, the slot
cache keeps one pool per format, resident layers each take their own roles, the FTW stores each layer's own
banks, and the CPU executor computes each layer in its format.
"""

from __future__ import annotations
Expand Down Expand Up @@ -150,7 +151,7 @@ def _mixed_cache(device, pieces, *, decode_target="gpu", prefill_overlap=False,
groups = group_layers("unified", bank_layouts(banks.sources, banks.layer_tags), slot_bytes)
pools = make_pools(groups, E, TOPK, None)
# staging_only: the engine's --moe-strategy cpu sizing, where the slots only back the prefill double buffer
sizes = staging_slots(*pool_row_bytes(banks.sources, banks.row_tail_bytes, pools), E) if staging_only else split_slots(4 * E, pools)
sizes = staging_slots(*pool_row_bytes(banks.sources, banks.row_tail_bytes, pools), E) if staging_only else split_slots(6 * E, pools)
cache = OffloadMoeCache(
num_layers=L, num_experts=E, cache_size=sum(sizes), device=device, quant_format=banks.quant_format,
decode_target=decode_target, hybrid_max_fetch=1, prefill_overlap=prefill_overlap,
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.