Skip to content

kolibri1: serve Kolibri 1.1 (kolibri1_1) on CUDA up to 2,048 tokens, exact - #4941

Merged
ashhart merged 22 commits into
ashhart:mainfrom
jschmied:kolibri11-family
Nov 26, 2026
Merged

ashhart merged 22 commits into
ashhart:mainfrom
jschmied:kolibri11-family

Conversation

@jschmied

@jschmied jschmied commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Refs #4846

Head: 96f84adb10: your rebase a110196a46 plus every CUDA alias in the family registry (below). Capabilities,
model information and managed benchmarks read native.families; it listed kolibri1 but not kolibri1_1, which the
opener already took. Full CI set on 96f84adb10 (x86): ci (27,791 of 27,969 tests pass, 178 skipped), cuda-host,
pr-check, fmt, diff-check and lean all rc 0; lean 0 new.

Before that, head 2d7c7aebf6: 6e2e027eb3 plus the alias test's expectation for main's nemo_speechlm family (test only). The GPU
evidence below (reference, window, engine paths, paged == linear, served, edge, refusals) ran on 6e2e027eb3's binaries,
and again on a local merge of this head with main (see "On the integrated tree"). 27f2af9a7d + 6e2e027eb3 make the dense layers' slot-id and weight buffers once
(Model.denseSlots, a host boolean; during planning every address is 0, so the old address sentinel counted them twice
on the pinned two-dense-layer shape: +65,536 bytes at 8,192 rows). Before that, 4ba7c6a133 adds a config refusal (a
kolibri1 config with an index_* key) and 0c18466215 + 5b0358fde1 size the activation scratch for dense layers
wider than the routed experts (Config.actWidth, the same bytes for the pinned 3,584 = (6 + 1) x 512).

Kolibri 1.1 is Kolibri-1 continued with shared-KV sparse attention. This PR serves it through the existing
kolibri1 family on CUDA up to the 2,048-token window where its sparse attention selects every key, so the
model is computed exactly without its indexer. Longer contexts (the indexer, the NVFP4 cache) are a later PR.

What changes

piece where core or family
read kolibri1_1 configs: dense layers, layers on another layer's cache, the window families/kolibri1/config_v11.zig (new), config.zig family
bf16 attention projections (Kolibri-1's are block FP8) through the lane's existing bf16 path names.zig, pack.zig, weights.zig family (core qmmf.packBf16 / modelopt.bf16Weight reused, unchanged)
dense MLP layers 0-1 (3,584 wide, FP8) run as the one "expert" of the existing grouped path at weight 1 forward.zig family
layers reading another layer's K/V: q and its norm only, no cache write; caches, pages, kept states count owners only forward.zig, kernels.zig (qOnly over core qk_rows with no k heads), paging.zig, snap.zig family
the window: 2,048, refused by name above it native.zig (contextCeiling) family
index_* keys belong to kolibri1_1: refused by name on a kolibri1 config config.zig family
kolibri1_1 opens the kolibri1 family native/cuda_alias.zig, native/cuda.zig shared (see below)
every cuda_also_model_types alias is listed in the CUDA families (capabilities, model info, managed benchmarks), with its family's formats; host step test-cuda-aliases-host native/cuda_families.zig, build/cuda_family_host.zig shared
float64 reference for 1.1's first layer (bf16 projections, dense MLP) and a 1,100-row case tests/cuda/kolibri_ref.zig, kolibri_layer_tests.zig test

No kernel changes. No change to Kolibri-1's arithmetic (shown below).

Where each rule comes from

No other engine's code was read. Sources: the config at revision e9515166 (pinned in config_v11.zig), the
model card at that revision, the checkpoint's model.safetensors.index.json (tensor census), and our float64 reference.

rule source
layers 4, 9, ..., 49 are the sparse ("indexed") layers, the rest sliding with window 513 config layer_types, sliding_window; card "Sliding window: 512 preceding tokens plus the current token"
RoPE (base 10,000) only in sliding layers; indexed layers have none card "Position embeddings: RoPE, base 10,000, applied only in sliding-window layers"
layers 0-1 dense SwiGLU MLPs 3,584 wide, FP8 block scales config mlp_only_layers, mlp_only_intermediate_size; census (mlp.gate_proj/up_proj/down_proj with weight_scale_inv, no router); card "2 dense layers followed by 48 MoE layers"
q/k/v/o projections and the head bf16 config modules_to_not_convert; census (no weight_scale_inv on them)
layers 9, 14, 49 read layer 4's K/V; 34, 39, 44 read layer 29's config kv_source_layers; census (exactly these six lack k_proj, v_proj, k_norm); card "several layers reuse the keys and values of an earlier layer"
a reading layer keeps its own q projection and q norm census (q_proj, q_norm present on all 50 layers)
router: top-6 of 384 by logit + bias, weights sigmoid(logit), one shared expert unchanged from Kolibri-1 (card "Token-choice, top-6 sigmoid routing"; config norm_topk_prob: false)
the window is 2,048 config index_topk: 2048; card "each query attends to 2,048 selected keys". With at most 2,048 keys a query attends all of them, whatever the selection scores, so the dense computation is the model's. Past 2,048 the indexer decides (the config's 128 local + 8 sink keys may or may not count inside the 2,048); that is not settled, so the window stops at 2,048.
no indexer tensors to load census: none of the 111,473 names mentions an indexer
tokenizer and chat template = Kolibri-1's sha256 of tokenizer.json, tokenizer_config.json identical

The shared change: native/cuda.zig dispatch

CUDA opened a family only by its own model_type. also_model_types exists but is HIP's list, and
nemotron.native puts nemotron_h_omni and nemo_speechlm in it. Honouring that list on CUDA would have sent
Bolt omni checkpoints to nemotron_h (registry order) instead of nemotron.omni, and opened nemo_speechlm
newly. So the dispatch is now: every exact model_type first, then a CUDA-only cuda_also_model_types, which
only kolibri1 declares (kolibri1_1).

native/cuda_alias.zig tests: kolibri1_1 opens kolibri1; nemotron_h_omni opens nemotron.omni;
nemo_speechlm opens its own family (main registers it as Transcribe's exact model_type; on this branch's old base
that line expects what main has, so it is checked on the merge); and for every registered family, its model_type and every HIP alias open
exactly where the old exact-only dispatch opened them. No nemotron checkpoint is on this box, so nemotron is
covered by that host test and not by a served run.

On the integrated tree

A local merge of 2d7c7aebf6 with main 84d9b6ba13 (not pushed; forward.zig keeps main's staging split and test
files, one copy of each test: the ring and dense-slot tests in forward_test.zig). Binaries tensorfold-native
f3a918df08fe70b460ff39ae7666e34f, tf-cuda-test 8c3fa019c73fe85518bae47707ce1a05:

  • CUDA graphs against eager (TENSORFOLD_KOLIBRI_GRAPHS=0), the served run on each: every reply hash equal (16 greedy,
    16 seeded, 9 multi-turn resumed and 9 fresh, 3 + 3 shared-prefix), greedy hash 62c70a2000e190a6 on both. The run
    includes c=4 and c=8 decode rounds and copy-drafted windows (multi-row decode) over Kolibri 1.1's layers that read
    another layer's cache; on each server c=4, c=8 and drafts equal the solo replies.
  • The pinned-checkpoint suite: float64 reference (worst 0.14 % of the scale, top-1 equal), window (513 keys, layer 4
    reaches key 0), engine paths, paged == linear 29 of 29 same, served and the window's edge (2,048 admitted, 2,049
    refused by name), all rc 0.
  • Full CI set on the merge (x86): ci (28,233 of 28,413 tests pass, 180 skipped), gradient-serving pins, cuda-host,
    pr-check, fmt, diff-check and lean all rc 0; lean 0 new (152 on main, 152 on the merge). The two cuda_alias.zig
    tests pass on the merge; with the old none expectation put back, the first fails ("found nemo_speechlm"), so the
    assertion is the one main needs.

Evidence (GB10, sm_121, nvcc 13.0)

Binaries (6e2e027eb3): tensorfold-native 01800e368283541b47682a1c1b460c9b, tf-cuda-test b52023c6d75fa1b0afce5a1d7f365951.

Float64 reference (tf-cuda-test kolibri-reference, layer 0 + head from the checkpoint's tensors):

case rows prompt row: max |logit - f64| / logits' scale decode row top-1
0 24 8.17e-3 / 5.94 8.17e-3 / 5.94 equal
1 24 8.76e-3 / 6.13 8.76e-3 / 6.13 equal
2 24 8.62e-3 / 6.19 8.62e-3 / 6.19 equal
3 1,100 6.96e-3 / 5.42 6.95e-3 / 5.42 equal

Worst 0.14 % of the scale (the gate is 0.3 %: a dropped routing bias or swapped scale moves it past 0.7 %).

Window and reach (kolibri-layers, this head's binary): the window holds exactly 513 keys (key 512 back moves the last row,
513 back does not, prompt and decode rows); layer 4 (indexed, no RoPE) reaches key 0.

Engine paths (kolibri-full, 128 tokens, this head's binary): steps, drafted, sampled, four streams in shared rounds, prompt cuts
(1,000 / 1,536 / 2,048-row chunks) and kept states at 2,048 / 3,001 / 4,096 equal the plain rows. These test runs
pass the 2,048 window on purpose (they bypass the server): they show the engine's paths agree, not the model's
behaviour there.

Paged == linear (kolibri-pages, this head's binary): full layers in shuffled pool pages against the linear
caches, 128 greedy tokens each, every comparison same (29 of 29):

case compared
prompts of 300, 900 and 1,500, plain and drafted reply, last-row logits
sampled, drafted reply, last-row logits
two streams in shared rounds, plain and drafted each stream's reply; paged == its solo reply
resumed at the kept mark, plain and drafted reply, last-row logits; paged resumed == paged fresh
drafted == plain (greedy, paged) reply

PASS kolibri pages: the whole model ran, so the layers that read another layer's pages (kv_source_layers) are in it; ended
streams' pages reused.

Served (tensorfold-native serve, prompts under 700 tokens, c=1/4/8): parity_controls: CONTROLS: PASS (4 prompts, seeds differ on 4). 16 prompts, 128 tokens:
greedy twice equal, seeded twice equal, two seeds differ on 16 of 16 (control), copy drafts on == off (greedy
and seeded), c=4 and c=8 == solo (greedy; seeded at c=8), multi-turn resumed == fresh (6 cache hits, 0 on the
cache-off server), a second prompt sharing a 350-token prefix then the first again == fresh, 0 empty replies
(reasoning + content + token ids hashed). Greedy hash 62c70a2000e190a6.

Served at the window's edge:

cell (prompt + reply) totals served greedy x2 seeded x2 seeds differ drafts on == off (greedy, seeded) c=4 == solo (greedy, seeded)
1,700 + 300 2,000 equal equal 4 of 4 equal, equal equal, equal
1,800 + 248 2,048 equal equal 4 of 4 equal, equal equal, equal
2,047 + 1 2,048 equal equal (one token) equal, equal equal, equal

Four distinct prompts a cell, replies forced to their length (ignore_eos). The one-token cell's reply is token
127907 (the think opener, no text), checked by id. Resume at the edge: three two-turn chats whose second turn ends at
exactly 2,048 tokens, prompt cache on (844 / 1,038 / 1,034 tokens served from it) == a server with the cache off.
parity_controls on this server: CONTROLS: PASS (4 prompts, seeds differ on 4). Load line:
serving Aleph-Alpha--Kolibri-1.1 ... context: 2048; loaded in 161.4s. 0 empty replies.

Refusals:

  • --context 4096: the server stops before loading anything: tensorfold: --context 4096 exceeds this model's 2048-token window.
  • A 2,650-token prompt: 400, "This server's maximum context length is 2048 tokens, but the rendered prompt has 2650 tokens and leaves no room for a reply"; the next request's reply equals the one before.
  • 1,800 prompt + 249 reply tokens (2,049): 400, "... requests 249 reply tokens, which exceeds the context window. Reduce the prompt to at most 1799 prompt tokens ..."; a 2,048-token prompt: 400 "leaves no room for a reply". Replies after the refusals equal those before; the after-drain census reads kv pool idle: promised 0, free 40 + store 0 == total 40.

Kolibri-1 unchanged against main (same prompts on this head and on its merge base with main, 42bbc8e35e): kolibri1 serves Kolibri-1 the same: 16 prompts greedy and seeded, c=4, a 5,100-token prompt (no 2,048 cap
on Kolibri-1: both load with context: 65536), multi-turn with the prompt cache (6 hits): every reply hash equal,
0 empty. Greedy hash 4e23df96b30cf88d.

Throughput (absolute, for information; no A/B and no noise-floor verdict, since main can't serve Kolibri 1.1 and this PR makes no speed claim): decode 39.4 tok/s at c=1 ending at 2,000 tokens, 38.9 tok/s ending at 2,048; a cold 1,804-token prompt's first
token in 0.84-0.85 s (3 prompts, never seen before).

Host: zig build test-kolibri-host check-native-cuda-host compile-cuda-tests and zig fmt --check on x86:
pass on 2e5e940f89 (kol11-a2-x86, 21/21 steps) and on 4ba7c6a133 (kol11-a3-x86, 21/21 steps, 30 tests and 1 skip).
Full CI set on 6e2e027eb3 (kol11-a6-x86b: ci, serving pins, cuda-host, pr-check, fmt, diff-check, lean all rc=0;
zig build ci 12,644 of 12,738 tests pass, 94 skipped). Lean check: 0 new problems (165 on the base, 165 here).

Tests that fail before this PR

  • config_v11.zig: parsing the pinned 1.1 config (model_type kolibri1_1 was refused) and its refusals, including a
    kolibri1 config carrying index_layers (it parsed before 4ba7c6a133).
  • config_v11.zig "kolibri1_1 activation scratch: 3,584-wide dense layers fit, a 3,712-wide one is sized for": fails
    on 0c18466215 (scratch from the routed width alone), passes on 5b0358fde1; its control line checks that the routed
    width alone is narrower than 3,712.
  • forward_test.zig "kolibri1_1 plan: the two dense layers count their slot ids and weights once (8,192 rows: 65,536
    bytes)": exact planned bytes; fails on 27f2af9a7d (the old sentinel: expected 65536, found 131072), passes on
    6e2e027eb3.
  • names.zig "kolibri1_1: bf16 attention, a dense layer's MLP alone, no k, v or k_norm ...".
  • native.zig "the window: Kolibri 1.1 up to its 2,048 selected keys ...".
  • native/cuda_alias.zig (both tests; the nemo_speechlm line against main's registry).
  • native/cuda_families.zig "CUDA aliases: each is listed for capabilities, model info and benchmarks ...": fails on
    d74e462d3e (error.AliasNotListed), passes on 96f84adb10 (test-cuda-aliases-host, with test-kolibri-host).
  • served gates: the server refused kolibri1_1 ("no backend") before.

Not in this PR

  • Contexts past 2,048: the indexer (two-stage selection over 16-token block summaries), the NVFP4 cache of the
    indexed layers, sharing of selections. Next PR, built on a generic core indexer.
  • Env flags scoped to kolibri1 in core/profile.zig (TF_KV_SHARE, TENSORFOLD_KOLIBRI_KV_PAGES) keep
    their scope; they are not claimed for kolibri1_1.
  • A comparison against the publisher's package: it refuses this GPU (needs SM90 or SM100).

Proposed CHANGELOG line (Unreleased, Added):
- CUDA: Kolibri 1.1 (kolibri1_1) through the kolibri1 family, exact up to a 2,048-token window; longer contexts refused by name (#4941).

@AIFlowML

Copy link
Copy Markdown
Contributor

I checked 2e5e940f89 against 4c79cfe346. The only current merge conflict is the test block at the end of zig/src/families/kolibri1/forward.zig. The two fixtures in the PR's forward_test.zig match main's existing RoPE angle and page-layout fixtures. Keeping both copies adds duplicate tests and grows forward.zig to 602 lines.

In my trial I kept main's copies, dropped the incoming duplicate test file and moved the existing ring-size fixture into forward_offsets_test.zig. That put forward.zig at 596 lines with all four relevant fixtures still present.

zig build test-kolibri-host check-native-cuda-host -Dfixed-cpu -j2 --summary all

On M5 Max this passed 31 tests with one skip, and the native adapter cross-compiled for aarch64 Linux. The checkpoint-backed serving comparisons remain the author's device results.

Igor Lessio - AIFLOW LABS

@ashhart

ashhart commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Thanks, @jschmied. The 2,048-token cap, separate CUDA aliases and shared-cache ownership are clear. The posted checkpoint checks are useful; the supplied paged-results section is cut off.

One bound needs fixing: the parser accepts wider dense MLPs, while activation scratch still uses the routed width. The pinned 3,584-wide shape fits, but an accepted 3,712-wide shape can overrun it. Please size for both paths or refuse the unsupported width before launch, with a boundary check.

  • Synthena

@jschmied

Copy link
Copy Markdown
Contributor Author

Thanks @ashhart. Both points are addressed on 5b0358fde1:

  • Dense width vs activation scratch: sized for both paths. The scratch's columns per row now come from Config.actWidth (zig/src/families/kolibri1/config.zig): the routed experts plus the shared one ((6 + 1) x 512 = 3,584 for the pinned config), or a dense layer's MLP if any dense layer is wider. The pinned config allocates the same bytes as before.
    • Boundary test in config_v11.zig: 3,584 fits, and a 3,712-wide dense layer (accepted by the parser) is sized for. Its control line checks that the routed width alone is narrower than 3,712.
    • Test first: the test fails on 0c18466215 (scratch from the routed width alone) and passes on 5b0358fde1.
    • test-kolibri-host: 31 pass, 1 skip. The full CI set on 5b0358fde1 is green: ci, cuda-host, pr-check, fmt, diff-check and lean, with 0 new lean problems.
  • Paged results: the body's "Paged == linear" section now lists all 29 kolibri-pages comparisons, every one same. They ran on 2e5e940f89's binary, which the body says.

@ashhart

ashhart commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Thank you for the quick fix and the complete paged-results section. The activation scratch now covers both the routed/shared-expert width and any accepted dense width, with the 3,584 and 3,712 boundary cases in place. The pinned configuration keeps the same allocation size. The complete 29 paged comparisons also answer the earlier evidence request.

One memory-planning case still needs a correction. During openBytes, planned allocations return address zero, so the dense-buffer sentinel remains zero on every dense layer. The pinned two-layer shape therefore counts the ID and weight buffers twice, adding 65,536 bytes at the current maximum row count. This can refuse a stream or reduce parallelism near a fit boundary. Please use an independent host boolean for the one-time allocation and add an exact planning regression for the two-dense-layer shape.

After that fix, the remaining gate is to rerun the checkpoint-backed reference, window, and paged-versus-linear comparisons on the final integrated tree. Those runs must retain byte-equal replies and logits, the expected cached counts, and the 2,048-token admission boundary; 2,049 must still refuse by name.

We will preserve the newer staging split and keep one copy of each test during integration; no rebase is needed from you.

  • Synthena

@jschmied

Copy link
Copy Markdown
Contributor Author

Thanks @ashhart. Fixed on 6e2e027eb3.

  • Dense slot buffers during planning: the slot-id and weight buffers now come from Model.denseSlots (zig/src/families/kolibri1/forward.zig). It makes them once when any layer is dense. The check is a host boolean on the config, not an address, so a planned address of 0 no longer counts them again on the second dense layer.
    • Exact planning regression in forward_test.zig, "kolibri1_1 plan: the two dense layers count their slot ids and weights once (8,192 rows: 65,536 bytes)". It fails on 27f2af9a7d (old sentinel: expected 65536, found 131072) and passes on 6e2e027eb3.
  • Reruns on the final tree (6e2e027eb3's binaries; md5s in the body):
    • Float64 reference: worst 0.14 % of the logits' scale, top-1 equal on all 4 cases.
    • Window: exactly 513 keys, prompt and decode rows. Layer 4 reaches key 0.
    • Paged == linear: 29 of 29 replies and logits are byte-equal.
    • Kept states at 2,048, 3,001 and 4,096: 2,048, 3,001 and 4,096 cached, replies equal fresh.
    • Served greedy hash 62c70a2000e190a6, unchanged. The multi-turn run had 6 cache hits.
    • Edge resume: 844, 1,038 and 1,034 tokens served from the cache, equal to a cache-off server.
    • 2,048 totals are admitted (1,800 + 248 and 2,047 + 1, both repeatable). 2,049 (1,800 + 249) is refused by name ("requests 249 reply tokens, ... at most 1799 prompt tokens"). A 2,048-token prompt is refused with "leaves no room for a reply".
    • Kolibri-1 against main (42bbc8e35e): every reply hash is equal (greedy, seeded, c=4, a 5,100-token prompt, multi-turn with 6 cache hits). Greedy hash 4e23df96b30cf88d, 0 empty.
    • Full CI set on x86: rc=0, and lean shows 0 new problems.

I didn't rebase; the PR body is updated.

@ashhart

ashhart commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thank you, @jschmied.

The dense-slot fix is confirmed: planning now counts both dense layers once, so the two 8,192-row buffers total 65,536 bytes rather than 131,072. The activation scratch now covers the wider dense shape while preserving the pinned 3,584-wide allocation. Shared-KV ownership and the 2,048-token ceiling remain consistent.

The supplied final-head results are also clear: all 29 paged-versus-linear replies and logits are byte-equal, and the reference, window, serving, resume, admission and Kolibri-1 regression checks passed.

One current-main test assertion now needs updating in zig/src/native/cuda_alias.zig:19-24. Main now registers nemo_speechlm as the exact model type for Transcribe, so your exact-first dispatch correctly selects it while the test still expects none. Please change that assertion to expect nemo_speechlm and remove “Transcribe none” from the test name. No production arithmetic change is needed.

CHANGES REQUESTED for that host-test correction. The forward.zig conflict can preserve main's staging split and one copy of each existing fixture; no author rebase is requested. After the correction and integration, the remaining device check is a GB10 CUDA-graph-versus-eager comparison with shared-KV multi-row decode, followed by the existing pinned-checkpoint suite on the integrated tree.

  • Synthena

@jschmied

Copy link
Copy Markdown
Contributor Author

Thanks @ashhart. Fixed on 2d7c7aebf6, test only: in zig/src/native/cuda_alias.zig, nemo_speechlm now expects nemo_speechlm, and "Transcribe none" is gone from the test name.

I verified it on a local merge of 2d7c7aebf6 with main 84d9b6ba13 (not pushed, no rebase). In forward.zig the merge keeps main's staging split and test files, with one copy of each test. The ring and dense-slot tests sit in forward_test.zig.

  • Alias test: both cuda_alias.zig tests pass on the merge. With the old none expectation put back, the first one fails with "found nemo_speechlm".
  • Full CI set on the merge (x86): every step passes, and lean shows 0 new problems.
  • CUDA graphs against eager on GB10: I ran the served suite twice on the merge's binaries, once with graphs on and once with TENSORFOLD_KOLIBRI_GRAPHS=0. Every reply hash is equal: 16 greedy, 16 seeded, 9 resumed multi-turn, 9 fresh, and 3 + 3 shared-prefix. The greedy hash is 62c70a2000e190a6 on both.
  • What the comparison covers: c=4 and c=8 decode rounds and copy-drafted windows (multi-row decode), over Kolibri 1.1's layers that read another layer's cache. On each server, c=4, c=8 and the drafts equal the solo replies. I did not count graph replays, so the graphed run is the default configuration rather than a measured replay count.
  • Pinned-checkpoint suite on the merge: every step passes:
    • float64 reference: worst 0.14 % of the scale, top-1 equal;
    • window: 513 keys, and layer 4 reaches key 0;
    • engine paths;
    • paged == linear: 29 of 29 same;
    • served;
    • the window's edge: 2,048 admitted and 2,049 refused by name.

The PR body has a new section, "On the integrated tree", with these results and the binaries' md5s.

@ashhart

ashhart commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Thanks, @jschmied. The configuration validation, shared-cache handling, dense scratch sizing, and reference coverage are carefully worked through. One integration gap remains: Kolibri 1.1 is accepted by the CUDA opener but is not exposed through the family registry used by capabilities, model information, and managed benchmarks, so those commands still report it as unsupported. Please expose every CUDA alias through that registry and add a regression check.

  • Synthena

@jschmied

Copy link
Copy Markdown
Contributor Author

Done on 96f84adb10, on top of your rebase a110196a46:

  • native/cuda_families.zig now lists every cuda_also_model_types alias after the families, with its family's formats
    and decision formats. Capabilities, hub.family (model information) and the managed benchmark all read
    native.families, so they now name kolibri1_1 as supported. Any future alias is listed the same way.
  • Regression check: "CUDA aliases: each is listed for capabilities, model info and benchmarks, with its family's
    formats" (host step test-cuda-aliases-host, which also runs the existing alias tests). It fails on d74e462d3e with
    error.AliasNotListed and passes on 96f84adb10.
  • Full CI set on 96f84adb10 (x86): ci 27,791 of 27,969 tests pass (178 skipped), cuda-host, pr-check, fmt,
    diff-check and lean all rc 0. The branch still merges cleanly with main. Body updated.

@ashhart

ashhart commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thanks, @jschmied. The final registry update closes the remaining integration gap: every CUDA-only alias is now exported with its family's formats and decision formats, exact-first dispatch is preserved, and the new host regression observes the same family list used by capabilities, model information, and managed benchmarks.

The earlier activation-scratch, dense-planning, Transcribe-assertion, staging-split, shared-KV, and integrated-tree checks also remain addressed. Static re-review of supplied head 96f84adb107408299c20cda750091ac4bdca6b60 is clean, including the 600-line limit. The posted CI and GB10 results provide the dynamic coverage I did not repeat here.

This looks ready to land. Landings are paused while we cut 1.3.6; it goes into the first trains after the release.

  • Synthena

@jschmied

Copy link
Copy Markdown
Contributor Author

Thanks. One heads-up before it lands: a numerics difference to the publisher's reference that I found after the last push.

The Transformers kolibri1_1 reference (which Aleph Alpha names as its reference implementation) rounds every indexed layer's K and V to NVFP4 at every length, including contexts of 2,184 keys or fewer (modeling_kolibri1_1.py L331-333 and the codec at L45-58, transformers 3df5bbbfa2): blocks of 16, scale amax/6 clamped to [2^-9, 448] as E4M3, E2M1 round-to-even, no global scale. #4941 keeps those caches in BF16, so its logits differ slightly from the reference's even in its 2,048-token range. The Aleph Alpha blog describes the same NVFP4 caches.

I have the codec and its wiring on a separate branch, with a device-vs-host bit-exact test and planted controls passing. The forced-answer and needle comparisons against the reference run tonight; I'll post the numbers here tomorrow. Then it's your call: fold the rounding into #4941 before it lands, or land #4941 as is and take NVFP4 as the next slice.

ashhart and others added 15 commits November 26, 2026 23:14
…s, layers on another's cache, a 2,184-token window
@ashhart
ashhart merged commit 9020a13 into ashhart:main Nov 26, 2026
2 of 12 checks passed
ashhart added a commit that referenced this pull request Nov 26, 2026
@ashhart

ashhart commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thank you @jschmied. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants