Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2466 commits
Select commit Hold shift + click to select a range
dd89432
flashnext cuda: size the rows-store staging permit from the served wi…
shantanugoel Nov 28, 2026
f9a64b7
changelog: #5501's line
shantanugoel Nov 28, 2026
4c66f99
cuda disk: skip the identity probe where the window leaves no mark, s…
shantanugoel Nov 28, 2026
c87a954
changelog: #5501 under Unreleased
ashhart Nov 28, 2026
b32f404
serve: under --confidential, errors and log lines carry fixed message…
kotevcode Nov 27, 2026
7b9ed11
serve: --confidential's errors keep only fixed parts: standard reason…
kotevcode Nov 27, 2026
8c29b1f
adapt: keep confidential enforce documentation lean
ashhart Nov 28, 2026
20b1e1a
serve: --confidential keeps fixed parts in stored failures, Ollama er…
kotevcode Nov 28, 2026
9d8537f
changelog: #5348 under Unreleased
ashhart Nov 28, 2026
c9e328a
changelog: #5348 under Unreleased
ashhart Nov 28, 2026
a800c4c
test: make cubin witness rewrite deterministic
ashhart Nov 28, 2026
be290ae
changelog: test: make cubin witness rewrite deterministic
ashhart Nov 28, 2026
1c17bb7
changelog: #5522's line from lines/5522.txt in place of its own
ashhart Nov 28, 2026
f1be063
server: apply Inkling 2 thinking budget
ashhart Nov 27, 2026
ce281aa
docs: pin Inkling 2 thinking budget boundaries
ashhart Nov 27, 2026
7f789d5
server: start Inkling grammars after thinking end
ashhart Nov 28, 2026
8f73c18
server: preserve non-Inkling grammar activation
ashhart Nov 28, 2026
a3798b3
changelog: #5402 under Unreleased
ashhart Nov 28, 2026
0174113
changelog: #5402 under Unreleased
ashhart Nov 28, 2026
3273940
core/tokenizer: streaming o200k pre-tokenizer, reusable ByteLevel BPE…
BlivionIaG Nov 28, 2026
bada8e5
core/tokenizer: serialize worker allocator access in fast_bpe_parallel
BlivionIaG Nov 28, 2026
5ae8e3b
changelog: #5495 under Unreleased
ashhart Nov 28, 2026
a937e90
qwen3_5 cuda: execution schedule and per-execution state slots for se…
Maxrio9 Nov 17, 2026
7a6b132
cuda: two-stream mHC kernels for SenseNova Loop (enter, route, merge,…
Maxrio9 Nov 17, 2026
9593556
qwen3_5 cuda: wire two-stream mHC into the sensenova_loop forward
Maxrio9 Nov 17, 2026
5ea805b
qwen3_5 cuda: read-cost test passes finish's pending flag
Maxrio9 Nov 17, 2026
1c107c6
qwen3_5 cuda: Engine.init callers pass loops; re-pin kernels.zig and …
Maxrio9 Nov 18, 2026
615816d
server: refuse --drafter for sensenova_loop only on CUDA
Maxrio9 Nov 18, 2026
3bba50e
qwen3_5 cuda: sensenova_loop config rules shared with Metal; any mHC …
Maxrio9 Nov 19, 2026
a09a0db
cuda: register nvcc 13.4 contract records
Maxrio9 Nov 20, 2026
f17ef38
qwen3_5 cuda: refuse an mHC pre_scale that rounds to f32 zero, as Met…
Maxrio9 Nov 20, 2026
7ba3065
qwen3_5 cuda: one deltaScan, main's
ashhart Nov 21, 2026
2f882ae
qwen3_5 cuda: keep cuda_engine.zig at 600 lines with the loop schedul…
ashhart Nov 21, 2026
01a8386
qwen3_5 cuda: the unread-chunk launch test gives its engine the layer…
ashhart Nov 21, 2026
ec9e160
qwen3_5 cuda: keep cuda_engine.zig at 600 lines on today's main (four…
ashhart Nov 21, 2026
536d452
tests: re-pin the dense serving launch sequence for #3723 on today's …
ashhart Nov 21, 2026
a19f6c1
qwen3_5: forward Loop cache hooks and pin mHC calls
Maxrio9 Nov 25, 2026
63daaeb
kp69: integrate SenseNova Loop with current main
ashhart Nov 26, 2026
65038e5
qwen3_5 cuda: keep SenseNova Loop's FP32 dt_bias in FP32
Maxrio9 Nov 26, 2026
9e3fd96
qwen3_5 cuda: keep current-main geometry at 600 lines
ashhart Nov 27, 2026
ef846b2
tests: re-pin kernels.zig for #3723 on current main
ashhart Nov 28, 2026
1dd1a34
changelog: #3723 under Unreleased
ashhart Nov 28, 2026
d38bc4b
Report draft model KV cache capacity and dtype
ashhart Nov 22, 2026
d2c65f7
reports: keep draft KV changes within file cap
ashhart Nov 23, 2026
857795c
reports: load draft KV facts from real CUDA engines
ashhart Nov 23, 2026
808cff6
reports: keep changed Zig sources below line cap
ashhart Nov 23, 2026
0a1a9d0
tests: pin draft KV reporting in Flash Next loader
ashhart Nov 23, 2026
756ae65
tests: cover XPU draft KV facts (#4538)
ashhart Nov 28, 2026
de15661
tests: re-pin lane_host.zig and qwen27_served.zig in gradient-serving…
ashhart Nov 28, 2026
4077769
changelog: #4538 under Unreleased
ashhart Nov 28, 2026
0844fe9
changelog: #4538 under Unreleased
ashhart Nov 28, 2026
c573817
metal: the bf16 SiLU and the tanh GELU's inner term from one source (…
jschmied Nov 25, 2026
7951c96
changelog: #5204 under Unreleased
ashhart Nov 28, 2026
aae1263
qwen_vl: DeepStack taps as an opt-in, a tower under any prefix, and a…
ashhart Nov 10, 2026
5771316
h3: tf-h3-image-vision, an edit reference's Qwen3-VL vision and DeepS…
ashhart Nov 10, 2026
927085c
h3: tf-h3-image-prompt takes an edit's references and their anchors
ashhart Nov 10, 2026
5bbf718
docs: MiniMax-H3-Image's edits end to end and its vision tower in its…
ashhart Nov 10, 2026
6981dfb
test-h3-image-prompt: give the host test module the picture import
ashhart Nov 18, 2026
7be80f3
h3: tf-h3-image-prompt gives its shared files checkpoint_fixture thro…
ashhart Nov 20, 2026
f69a2f1
h3: retain canonical fixtures and scoped vision scratch
ashhart Nov 28, 2026
9376698
h3: align transparent references and reject inexact edits
ashhart Nov 28, 2026
8c9db1f
h3: register edit options for the image server
ashhart Nov 28, 2026
fe264d3
h3: register checkpoint fixture for the image server
ashhart Nov 28, 2026
412e6ac
changelog: #2810 under Unreleased
ashhart Nov 29, 2026
656fce1
changelog: #2810 under Unreleased
ashhart Nov 29, 2026
a03ded3
bench: replay agent conversations after a history edit
devopsfortunato Nov 27, 2026
c9c443f
changelog: #5450 under Unreleased
ashhart Nov 29, 2026
e37223f
docs: list existing Qwen environment settings
ashhart Nov 29, 2026
71b089e
changelog: docs: environment-names rows for TF_CUDA_QWEN_PROMPT_STAGE…
ashhart Nov 29, 2026
1eeba3e
execution witness: --confidential is named in the snapshot and each r…
kotevcode Nov 26, 2026
f8e2e63
execution witness: the render comment within 120 columns
kotevcode Nov 26, 2026
1ebe0bf
changelog: #5187's line
kotevcode Nov 26, 2026
2aa72ff
execution witness: under --confidential a reply's binding leaves out …
kotevcode Nov 27, 2026
348adca
changelog: #5187 under Unreleased
ashhart Nov 29, 2026
c5a1561
Add opt-in Qwen drafted-round phase timestamps
ashhart Nov 26, 2026
2b790db
Adapt Qwen phase trace environment registry
ashhart Nov 26, 2026
9f0dfa3
docs: inventory Qwen phase trace setting
ashhart Nov 28, 2026
3dcf3f3
tests: re-pin qwen27_slots.zig for #5171
ashhart Nov 28, 2026
a714996
qwen27 metal: trace both verify queues
ashhart Nov 28, 2026
6b83278
changelog: #5171 under Unreleased
ashhart Nov 29, 2026
3600992
cuda ernie5_5: the window merge's host test frees tok when cnt's allo…
Bizuayeu Nov 28, 2026
cc4703e
changelog: #5535 under Unreleased
ashhart Nov 29, 2026
87a31bb
lanes: host GPU draws select their candidates instead of sorting the …
ashhart Nov 15, 2026
a7a642f
test(lanes): freeze the full-vocabulary draw reference
ashhart Nov 15, 2026
3ad40e4
lanes: clamp nucleus to its candidate head
ashhart Nov 28, 2026
b9027d4
changelog: #3455 under Unreleased
ashhart Nov 29, 2026
c0fa224
changelog: #3455 under Unreleased
ashhart Nov 29, 2026
1ff3a17
docs: Qwen3.8-27B recipe scopes TF_DSPINE_WINDOW=4096 to the measured…
jojomondag Nov 28, 2026
7844efb
changelog: #5544 for the DSpine window note
jojomondag Nov 28, 2026
2b42463
changelog: #5544's line from lines/5544.txt in place of its own
ashhart Nov 29, 2026
f51edde
inkling2 cuda contract: the Router gate's baseline items start at the…
jschmied Nov 28, 2026
a5d6e52
changelog: #5565 under Unreleased
ashhart Nov 29, 2026
db217d9
changelog: #5565 under Unreleased
ashhart Nov 29, 2026
ac3a0e7
platform: environment.zig's DeepSeek V4.1 rows move to their own file…
ashhart Nov 28, 2026
f21c9cb
changelog: platform: environment.zig's DeepSeek V4.1 rows move to the…
ashhart Nov 28, 2026
7408920
changelog: #5568's line from lines/5568.txt in place of its own
ashhart Nov 29, 2026
2b5305a
Qwen3.5: offload BF16 input embeddings to host RAM
tacosta Nov 28, 2026
032f821
Adapt #5052 to current main
ashhart Nov 28, 2026
3cd3f03
Adapt Qwen3.5 geometry tests to the 600-line cap
ashhart Nov 29, 2026
f2c12f1
Register moved Qwen3.5 geometry config reader
ashhart Nov 29, 2026
9f07b1b
changelog: #5052 under Unreleased
ashhart Nov 29, 2026
35b3219
changelog: #5052 under Unreleased
ashhart Nov 29, 2026
2355170
serve: --confidential refuses --vision and loads libraries only from …
kotevcode Nov 27, 2026
1abe031
changelog: #5344's line
kotevcode Nov 27, 2026
dc33e63
environment names: the prefixes --confidential refuses by name are ex…
kotevcode Nov 27, 2026
8c44bd6
environment names: leave the --confidential prefixes to #5373, which …
kotevcode Nov 27, 2026
d97ef51
xpu: Level Zero's loader opens only when --confidential's loader poli…
kotevcode Nov 27, 2026
e5c3999
build: the confidential XPU loader tests run off Windows, where std.D…
kotevcode Nov 27, 2026
8384b71
rebase: drop PR-owned changelog entry
ashhart Nov 28, 2026
252702b
rebase: keep confidential enforce comment lean
ashhart Nov 28, 2026
0c48476
load policy: a symlink is judged by its target, and the XPU discovery…
kotevcode Nov 28, 2026
e3dc2de
test: one-line comment for the XPU_DEVICE_ID guard
kotevcode Nov 28, 2026
27502bd
load policy: a path is judged by the file its own spelling opens, so …
kotevcode Nov 29, 2026
9460cef
load policy: the relative-path comment within 120 columns
kotevcode Nov 29, 2026
d6c5936
changelog: #5344 under Unreleased
ashhart Nov 29, 2026
9ceaa0a
changelog: #5052 under Unreleased
ashhart Nov 29, 2026
f30eeac
changelog: #5344 under Unreleased
ashhart Nov 29, 2026
5f17053
test: cover large Qwen27 mixed rows without tensor units
ashhart Nov 29, 2026
d6e27ab
changelog: tests: Qwen27 mixed-input Metal checks cover 2,048-row cas…
ashhart Nov 29, 2026
85639ed
changelog: #5587's line from lines/5587.txt in place of its own
ashhart Nov 29, 2026
08082db
changelog: each line once under Unreleased
ashhart Nov 29, 2026
3e18555
hy4_flash: paged absorbed MLA + C1/C2 CUDA kernels, contracts, and 5-…
GrgaPalcic Nov 25, 2026
25c850a
hy4_flash(cuda): forward C1 list, add long-list & C2 variant byte-mat…
GrgaPalcic Nov 25, 2026
c541432
hy4_flash(cuda): evaluate C1 fp64 reference on all 6 cases and poison…
GrgaPalcic Nov 26, 2026
d83c24c
hy4_flash: adapt paged MLA series to main
ashhart Nov 26, 2026
50e8a4c
hy4_flash(cuda): zero hi roped plane in null-CSv C2 absorb and poison…
GrgaPalcic Nov 26, 2026
f31f49f
hy4_flash(cuda): update 5-SM register records for hy4c2_absorb_d1_x a…
GrgaPalcic Nov 26, 2026
e96e248
hy4_flash: adapt contract cleanup and kernels hash pin to current main
ashhart Nov 27, 2026
bd50285
hy4_flash: preserve route/rows cleanup with paged MLA
ashhart Nov 27, 2026
d85fac4
changelog: #5109 under Unreleased
ashhart Nov 29, 2026
8b80b6c
changelog: #5109 under Unreleased
ashhart Nov 29, 2026
31a0fa3
tests: compile every runtime Metal source (#4593)
ashhart Nov 27, 2026
32ff03c
tests: expose MLX options in LFM2 recording (#4593)
ashhart Nov 27, 2026
aa139d8
tests: complete runtime Metal source coverage (#4593)
ashhart Nov 27, 2026
8b4771a
tests: require exact Metal source options (#4593)
ashhart Nov 27, 2026
4b72233
fix Metal runtime source coverage
ashhart Nov 27, 2026
f9c1ab1
rebase: register Metal sources added on main
ashhart Nov 28, 2026
aa37fe7
tests: cover Metal source OS gates
ashhart Nov 28, 2026
2ab94d1
tests: avoid logging the planted Metal source failure
ashhart Nov 28, 2026
2a9bbfe
changelog: #5347's line from lines/5347.txt in place of its own
ashhart Nov 29, 2026
39ee39f
qwen27 metal: opt in to Metal 4 submission
ashhart Nov 22, 2026
8e3c27b
flashnext recording: record core fence calls
ashhart Nov 23, 2026
36c07b7
qwen27 metal: wire Metal into the submission host test
ashhart Nov 28, 2026
8040ac3
ci: cover Qwen27 Metal 4 submission in the macOS host shard
ashhart Nov 28, 2026
c897a04
residency recording: accept core fence calls
ashhart Nov 28, 2026
43b68e5
qwen27 metal: keep verify on a Metal 4 primary
ashhart Nov 28, 2026
c3a783c
ci: cover release reads of TF_METAL4
ashhart Nov 29, 2026
339d3a3
changelog: #4563 under Unreleased
ashhart Nov 29, 2026
8ff5e17
tests: metal_limits.zig's family arms move to their own file under th…
ashhart Nov 28, 2026
0629613
changelog: tests: metal_limits.zig's family resolver arms move to the…
ashhart Nov 28, 2026
2b9eac6
Fix moved resolver error-union returns
ashhart Nov 29, 2026
154430f
changelog: #5571's line from lines/5571.txt in place of its own
ashhart Nov 29, 2026
33e4250
server: one reason a request for why its prompt resumed no further (#…
ashhart Nov 17, 2026
c63b460
server config: carry cache_why in main's moved Config
ashhart Nov 22, 2026
819d621
environment test: adapt TF_CACHE_WHY cases to extracted table
ashhart Nov 26, 2026
d40c2cf
prompt cache: split host test registrations from store
ashhart Nov 26, 2026
f94eabf
Respect cache namespaces and empty prompts in cache attribution
ashhart Nov 28, 2026
77fe7c2
cache: key attribution by exact reuse namespace and rendered messages
ashhart Nov 28, 2026
d29eb3d
server: declare cache attribution environment
ashhart Nov 28, 2026
f7faa7c
prompt cache why: prefer deeper live attribution
ashhart Nov 29, 2026
e50c1a3
environment: document TF_CACHE_WHY after rebase
ashhart Nov 29, 2026
de922f9
changelog: #3703 under Unreleased
ashhart Nov 29, 2026
f326988
changelog: #3703 under Unreleased
ashhart Nov 29, 2026
39f67bb
split KP50 credential containment tests
ashhart Nov 29, 2026
db988cc
split request journal follow and identity tests
ashhart Nov 29, 2026
9228b72
split Inkling2 ModelOpt contract fixture
ashhart Nov 29, 2026
2ec0142
changelog: tests: split three 600-line test files no open PR touches …
ashhart Nov 29, 2026
4b522bf
changelog: #5600's line from lines/5600.txt in place of its own
ashhart Nov 29, 2026
0f3196b
inkling2: I wire Mini serving into #4858 batched DSpark
plotarmordev Nov 26, 2026
7f12441
inkling2: I restore final target norm and align DSpark rows
plotarmordev Nov 26, 2026
63d4b4a
docs: I document the Mini batched DSpark serving contract
plotarmordev Nov 26, 2026
4b4ab5e
fix(inkling2): I enable batched DSpark lane rounds
plotarmordev Nov 26, 2026
20b1454
fix(inkling2): I align batched draft logits to valid tokens
plotarmordev Nov 26, 2026
53c08cb
perf(inkling2): I bound concurrent DSpark verification to two drafts
plotarmordev Nov 26, 2026
6bef0d5
Check rebased Mini target and drafter entrypoints together
ashhart Nov 28, 2026
29b0fac
fix(inkling2): I clear target taps on drafter close and reserve near-…
plotarmordev Nov 28, 2026
800aec6
test(inkling2): I wire DSpark host tests from cuda_native to keep ink…
plotarmordev Nov 28, 2026
ae1ff13
changelog: #5346 under Unreleased
ashhart Nov 29, 2026
3df6362
serve: under --confidential every key's Responses are stateless, so n…
kotevcode Nov 26, 2026
2649088
serve: the confidential Responses test reads the slide graph as empty…
kotevcode Nov 26, 2026
663f9c2
changelog: #5186's line
kotevcode Nov 26, 2026
bc02036
serve: a --confidential WebSocket refuses every previous_response_id …
kotevcode Nov 28, 2026
809e38f
docs: a restricted key's cached continuation apart from --confidentia…
kotevcode Nov 29, 2026
5bb9804
serve: --confidential's output rule keeps the fixed code confidential…
kotevcode Nov 29, 2026
1934d49
changelog: #5186 under Unreleased
ashhart Nov 29, 2026
f0396ec
speech: speed from 0.25 to 4 behind --speech-speed, a pitch-kept stre…
ashhart Nov 13, 2026
2a70cd0
server: extract parallel CLI parsing
ashhart Nov 21, 2026
763f9d6
server: retain CLI parallel parsing exports
ashhart Nov 21, 2026
9c052d2
server: gate speech tempo HTTP tests on POSIX
ashhart Nov 21, 2026
e6fa6bb
server: keep speech flags in extracted serve argument and config types
ashhart Nov 22, 2026
b3383e0
server: adapt speech speed to Zonos output planning
ashhart Nov 28, 2026
35935c2
server: preserve speech tempo suffix and tiny-input pitch
ashhart Nov 28, 2026
7133684
server: keep WSOLA overlap sums finite
ashhart Nov 29, 2026
1bc0343
changelog: #3137 under Unreleased
ashhart Nov 29, 2026
3edbef5
server: forward chat_template_kwargs.hidden_tools to the chat template
hieulengoc Nov 28, 2026
3bf126e
server: the warm turn's background prompt keeps the request's hidden_…
hieulengoc Nov 28, 2026
ef6dde3
changelog: #5537 under Unreleased
ashhart Nov 29, 2026
aa2cdc5
hy4_flash: paged sparse indexer CUDA kernels, contracts, controls, an…
GrgaPalcic Nov 25, 2026
bbb2a34
test(hy4_flash): add paged pool/score contracts, wrong-page controls,…
GrgaPalcic Nov 25, 2026
9539494
hy4_flash(cuda): clamp current-group token expansion to row pos in in…
GrgaPalcic Nov 26, 2026
64a7601
hy4_flash: adapt paged indexer series to main
ashhart Nov 26, 2026
31e6824
hy4_flash(cuda): canonicalize negative NaN, thread g_base into paged …
GrgaPalcic Nov 26, 2026
804f277
test(hy4_flash): match checkPoolToScore row count to prepared shape
GrgaPalcic Nov 26, 2026
89fc90a
hy4_flash(cuda): update 5-SM register records for select_1cta, select…
GrgaPalcic Nov 26, 2026
6592371
changelog: #5095 under Unreleased
ashhart Nov 29, 2026
8c3d459
fix(cuda): cut a DFlash2 hold into frames the NVFP4 head accepts (#4190)
devopsfortunato Nov 22, 2026
681d3df
changelog: #4682 under Unreleased
ashhart Nov 29, 2026
625dc2d
Bound Qwen prompt attention to each group’s causal keys
ashhart Nov 11, 2026
45f12ee
qwen27: unify causal prompt launch contracts
ashhart Nov 22, 2026
413d6da
Limit causal prompt bounds to tensor units
ashhart Nov 23, 2026
0211b0b
qwen27: adapt causal prompt checks to current main
ashhart Nov 28, 2026
5cc0435
test: keep Metal launch limits within cap
ashhart Nov 28, 2026
9bd6d2d
changelog: #2926 under Unreleased
ashhart Nov 29, 2026
38d737d
changelog: #2926 under Unreleased
ashhart Nov 29, 2026
beedd8f
inkling2: add Small EXL3 Metal kernels, contracts and non-looped forward
trozzelle Nov 25, 2026
5d6a862
inkling2: validate EXL3 pack loader layouts, refusals and independent…
trozzelle Nov 26, 2026
13ed088
inkling2: validate runShared segments before metadata writes and scop…
trozzelle Nov 28, 2026
eb7c5b0
runtime_sources: register Inkling 2 Small Metal ops
ashhart Nov 29, 2026
d756495
changelog: #5105 under Unreleased
ashhart Nov 29, 2026
917f7da
Split Metal launch helpers from limits
ashhart Nov 29, 2026
4c9d15f
Split Metal Inkling2 glue suite under file cap
ashhart Nov 29, 2026
e86b914
cap split: CUDA draft stream support
ashhart Nov 29, 2026
1fe49b8
Split Qwen27 lane backend declarations
ashhart Nov 29, 2026
1acd8b0
changelog: tests, qwen3_5, native: split four more busy 600-line file…
ashhart Nov 29, 2026
5932892
Expose moved declarations across module boundaries
ashhart Nov 29, 2026
52bebec
changelog: #5595's line from lines/5595.txt in place of its own
ashhart Nov 29, 2026
0183b3a
Control vectors: read a GLP add vector and refuse what it cannot apply
BlivionIaG Nov 10, 2026
ad1789e
Control vectors: add the direction inside the residual norm on Qwen3.…
BlivionIaG Nov 10, 2026
04575f3
Control vectors: --glp FILE and --glp-alpha serve one on Qwen3.8-27B
BlivionIaG Nov 10, 2026
5d50702
steering: isolate saved states and reject malformed strengths
BlivionIaG Nov 10, 2026
3d58707
contract: the steering launch declares its partials' threadgroup memo…
BlivionIaG Nov 13, 2026
38910c3
server: serve flags share cli_flag's one Flag type
BlivionIaG Nov 23, 2026
3ff4a1e
qwen27: keep the served host under the lean ceiling
BlivionIaG Nov 23, 2026
1e6fc11
glp: bound container reads and report only the parsed digest
BlivionIaG Nov 23, 2026
11eb21c
kernel contract: keep the steer suite alive and compile the norm as s…
BlivionIaG Nov 23, 2026
63fad25
glp: guard the checker, refuse Gemma first, and escape the served report
BlivionIaG Nov 23, 2026
dd0755b
glp: supply the layers field in the digest load test
BlivionIaG Nov 23, 2026
884a03b
tests: the capability audit keeps the platform bit and the forced bui…
BlivionIaG Nov 24, 2026
09eb735
glp: the MTP head's block reads rows the target already steered
BlivionIaG Nov 24, 2026
ac7aa93
Round the Qwen steering product on its own before the add
BlivionIaG Nov 25, 2026
8a4cc7e
changelog: GLP entries under Unreleased once
BlivionIaG Nov 25, 2026
7f26fd8
glp: a present spec_version that is not an integer is refused, not re…
BlivionIaG Nov 27, 2026
1984d79
contract: the qwen27 launch source keeps main's dispatch, one branch …
BlivionIaG Nov 27, 2026
c5cacc6
glp: pin the served lane's source after the merge
BlivionIaG Nov 27, 2026
a422aec
glp: enforce Qwen revision check, refuse v1 scales, preserve -0.0
BlivionIaG Nov 28, 2026
d354db2
qwen27 steer contract: add deterministic zero-step device rows and sk…
BlivionIaG Nov 28, 2026
b3d6711
glp: refuse wrong-type base identity metadata
BlivionIaG Nov 29, 2026
1cfcf68
glp: refuse non-string hook_point, derived_at, and layer_ids_zero_based
BlivionIaG Nov 29, 2026
a73ff68
runtime sources: register the Qwen steering norm
ashhart Nov 25, 2026
1a8a2cb
changelog: #1835 under Unreleased
ashhart Nov 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
239 changes: 239 additions & 0 deletions .github/workflows/container-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
name: Release container images

on:
release:
types: [published]
pull_request:
paths:
- Dockerfile
- .dockerignore
- packaging/runtime-trust.json
- .github/workflows/container-release.yml
workflow_dispatch:
inputs:
tag:
description: Published stable engine release (for example v1.3.5)
required: true
type: string
publish:
description: Publish to this repository's GHCR namespace
default: false
type: boolean

permissions:
contents: read

concurrency:
group: container-${{ github.event.release.tag_name || inputs.tag || github.ref }}
cancel-in-progress: false

jobs:
prepare:
if: >-
github.event_name != 'release' ||
(github.repository == 'ashhart/TensorFold' && !github.event.release.prerelease)
runs-on: ubuntu-24.04
timeout-minutes: 5
outputs:
tag: ${{ steps.release.outputs.tag }}
version: ${{ steps.release.outputs.version }}
revision: ${{ steps.release.outputs.revision }}
image: ${{ steps.release.outputs.image }}
publish: ${{ steps.release.outputs.publish }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- name: Select a published stable release
id: release
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event.release.tag_name || inputs.tag }}
REQUEST_PUBLISH: ${{ github.event_name == 'release' || inputs.publish == true }}
run: |
set -euo pipefail
if [ -z "$TAG" ]; then
TAG="v$(awk -F= '/^ARG TENSORFOLD_VERSION=/{print $2}' Dockerfile)"
fi
[[ "$TAG" =~ ^v1\.[0-9]+\.[0-9]+$ ]] || { echo 'Expected a stable v1.x.y release' >&2; exit 1; }
gh api "repos/ashhart/TensorFold/releases/tags/$TAG" > "$RUNNER_TEMP/release.json"
jq -e --arg tag "$TAG" '.tag_name == $tag and (.draft | not) and (.prerelease | not)' \
"$RUNNER_TEMP/release.json"
revision=$(gh api "repos/ashhart/TensorFold/commits/$TAG" --jq .sha)
publish=false
if [ "$REQUEST_PUBLISH" = true ]; then
publish=true
fi
{
echo "tag=$TAG"
echo "version=${TAG#v}"
echo "revision=$revision"
echo "image=ghcr.io/${GITHUB_REPOSITORY,,}"
echo "publish=$publish"
} >> "$GITHUB_OUTPUT"

build:
needs: prepare
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
include:
- arch: amd64
runner: ubuntu-24.04
- arch: arm64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
- name: Log in to GHCR
if: needs.prepare.outputs.publish == 'true'
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build the native image for pull-request checks
if: needs.prepare.outputs.publish != 'true'
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8
with:
context: .
platforms: linux/${{ matrix.arch }}
build-args: TENSORFOLD_VERSION=${{ needs.prepare.outputs.version }}
tags: tensorfold:smoke
load: true
provenance: false
sbom: false
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=${{ needs.prepare.outputs.tag }}
org.opencontainers.image.revision=${{ needs.prepare.outputs.revision }}
- name: Build once and push by digest, untagged, with provenance and SBOM
if: needs.prepare.outputs.publish == 'true'
id: push
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8
with:
context: .
platforms: linux/${{ matrix.arch }}
build-args: TENSORFOLD_VERSION=${{ needs.prepare.outputs.version }}
outputs: type=image,name=${{ needs.prepare.outputs.image }},push-by-digest=true,name-canonical=true,push=true
provenance: mode=max
sbom: true
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=${{ needs.prepare.outputs.tag }}
org.opencontainers.image.revision=${{ needs.prepare.outputs.revision }}
- name: Check the version, runtime libraries, NCCL version and unprivileged cache
env:
ARCH: ${{ matrix.arch }}
DIGEST: ${{ steps.push.outputs.digest }}
IMAGE: ${{ needs.prepare.outputs.image }}
VERSION: ${{ needs.prepare.outputs.version }}
run: |
set -euo pipefail
# a publishing run checks the pushed digest itself, the artifact the publish job promotes
if [ -n "$DIGEST" ]; then
ref="$IMAGE@$DIGEST"
docker pull --platform "linux/$ARCH" "$ref"
else
ref=tensorfold:smoke
fi
actual=$(docker run --rm "$ref" --version)
[[ "$actual" == "tensorfold-native $VERSION"* ]]
docker run --rm "$ref" capabilities --json > "$RUNNER_TEMP/capabilities.json"
jq -e '
.optional_libraries as $libs |
["libcublas.so.13", "libcublasLt.so.13", "libnccl.so.2", "libtfgrammar.so"] |
all(.[]; . as $soname | any($libs[]; .soname == $soname and .found == true))
' "$RUNNER_TEMP/capabilities.json"
read -r major minor patch < <(sed -n 's/.*libnccl2=\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)-.*/\1 \2 \3/p' Dockerfile)
expected=$((major * 10000 + minor * 100 + patch))
[ "$expected" -ge 23007 ] || { echo "Dockerfile pins NCCL $major.$minor.$patch; 2.30.7 or newer is required" >&2; exit 1; }
# the libnccl.so.2 the image's loader resolves, asked for its version through ncclGetVersion
lib=$(docker run --rm --entrypoint sh "$ref" -ec \
'readlink -f "$(ldconfig -p | sed -n "s/^[[:space:]]*libnccl[.]so[.]2 (.*) => //p" | head -n 1)"')
[[ "$lib" == /* ]]
container=$(docker create "$ref")
docker cp "$container:$lib" "$RUNNER_TEMP/libnccl.so.2"
docker rm "$container" > /dev/null
loaded=$(python3 -c 'import ctypes, sys; v = ctypes.c_int(); assert ctypes.CDLL(sys.argv[1]).ncclGetVersion(ctypes.byref(v)) == 0; print(v.value)' "$RUNNER_TEMP/libnccl.so.2")
[ "$loaded" -eq "$expected" ] || { echo "$lib reports NCCL $loaded, expected $expected" >&2; exit 1; }
docker run --rm --entrypoint sh "$ref" -ec '
test "$(id -u)" -ne 0
test ! -e /usr/local/cuda/bin/nvcc
touch /huggingface/.write-check
rm /huggingface/.write-check
'
echo "Checked \`$ref\` (linux/$ARCH): $actual, NCCL $loaded" >> "$GITHUB_STEP_SUMMARY"
- name: Record the checked image digest
if: needs.prepare.outputs.publish == 'true'
env:
DIGEST: ${{ steps.push.outputs.digest }}
run: |
mkdir -p "$RUNNER_TEMP/digests"
touch "$RUNNER_TEMP/digests/${DIGEST#sha256:}"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: needs.prepare.outputs.publish == 'true'
with:
name: container-digest-${{ matrix.arch }}
path: ${{ runner.temp }}/digests/*
retention-days: 1
if-no-files-found: error

publish:
needs: [prepare, build]
if: needs.prepare.outputs.publish == 'true'
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
packages: write
steps:
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
with:
pattern: container-digest-*
path: digests
merge-multiple: true
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Publish the version once both architectures pass
env:
IMAGE: ${{ needs.prepare.outputs.image }}
TAG: ${{ needs.prepare.outputs.tag }}
run: |
set -euo pipefail
if docker buildx imagetools inspect "$IMAGE:$TAG" > /dev/null 2> inspect-error; then
echo "Refusing to replace existing image $IMAGE:$TAG" >&2
exit 1
elif ! grep -Eqi 'manifest unknown|not found' inspect-error; then
cat inspect-error >&2
exit 1
fi
refs=()
for digest in digests/*; do
digest=${digest##*/}
[[ "$digest" =~ ^[a-f0-9]{64}$ ]]
refs+=("$IMAGE@sha256:$digest")
done
[ "${#refs[@]}" -eq 2 ]
linux() { jq -r '.manifests[] | select(.platform.os == "linux") | .digest' | sort; }
checked=$(for ref in "${refs[@]}"; do docker buildx imagetools inspect --raw "$ref"; done | linux)
# promotes the checked digests as they are: no rebuild, only a new index naming their manifests
index=$(docker buildx imagetools create --dry-run --tag "$IMAGE:$TAG" "${refs[@]}")
jq -e '
[.manifests[] | select(.platform.os == "linux") | .platform.architecture] |
sort == ["amd64", "arm64"]
' <<< "$index"
[ "$(linux <<< "$index")" = "$checked" ]
docker buildx imagetools create --tag "$IMAGE:$TAG" "${refs[@]}"
[ "$(docker buildx imagetools inspect --raw "$IMAGE:$TAG" | linux)" = "$checked" ]
echo "Published \`$IMAGE:$TAG\` (linux/amd64 and linux/arm64)" >> "$GITHUB_STEP_SUMMARY"
13 changes: 11 additions & 2 deletions .github/workflows/no-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ jobs:
with:
version: 0.17.0
use-cache: false
# Every environment variable the engine reads has a scoped, tagged row in docs/environment-names.md; the
# build graph comes from zig build -Denv-graph, which configures without compiling.
- name: environment names
run: |
python3 tools/zig/env_names.py
python3 -m unittest discover -s tools/zig -p env_names_test.py -v
# Main and pull requests restore main's newest build, so each compiles and runs only what changed since; only main
# saves, and the nightly run starts from nothing.
# -Dfixed-cpu: a compile's cache key carries its CPU and these runners differ, so all of them compile for one CPU.
Expand Down Expand Up @@ -310,13 +316,13 @@ jobs:
path: .zig-cache
key: zig-build-v3-Windows-0.17.0-${{ github.sha }}${{ github.event_name == 'schedule' && '-nightly' || '' }}
# The release's own path check on each platform's dist server (no fatbins), so a leak fails here, not at release.
# Pull requests check Linux x86_64 only; main's pushes and the nightly run check all three platforms.
# Pull requests check Linux x86_64 and macOS; main's pushes and the nightly run also check Linux arm64.
release-paths:
if: ${{ !(startsWith(github.head_ref, 'lead/train-') && github.event.pull_request.head.repo.full_name == github.repository) }} # a landing train's tip: see the note above jobs
strategy:
fail-fast: false
matrix:
os: ${{ github.event_name != 'pull_request' && fromJSON('["macos-26", "ubuntu-24.04", "ubuntu-24.04-arm"]') || fromJSON('["ubuntu-24.04"]') }}
os: ${{ github.event_name != 'pull_request' && fromJSON('["macos-26", "ubuntu-24.04", "ubuntu-24.04-arm"]') || fromJSON('["macos-26", "ubuntu-24.04"]') }}
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
Expand Down Expand Up @@ -348,6 +354,9 @@ jobs:
- name: Metal toolchain
if: runner.os == 'macOS'
run: xcrun -sdk macosx metal -v || { xcodebuild -downloadComponent MetalToolchain && xcrun -sdk macosx metal -v; }
- name: Compile every runtime Metal source
if: runner.os == 'macOS'
run: zig build test-metal-compile --summary all
- name: zig build check-release-paths
run: zig build -Dfixed-cpu check-release-paths
- name: Save the build cache
Expand Down
17 changes: 15 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
# Working on TensorFold

## Ask the human before installing or publishing

Following this file installs software and reports activity to a website, so tell the human what each step does and get a clear yes first.

- **Installing ATC.** `npm install -g github:ashhart/ATC` installs whatever is on the maintainer's ATC `main` branch that day, with no fixed version. Install a tag the human has looked at instead, for example `npm install -g github:ashhart/ATC#v0.9.6`. ATC's optional Claude Code plugin runs a hook before every shell command and every file edit, and those hooks can block the command or edit.
- **Public check-ins are on by default here.** This repository commits `.github/atc-presence.json`, so a new `atc claim` or `atc start` publishes unless you pass `--local`. Publishing posts a `/atc presence` comment on the issue from the human's GitHub account. It then sends the issue number, a session token, that comment's ID, the work state and whether the session shows the GitHub name (the name itself is not sent) to `https://tensorfold.dev`, which the TensorFold project runs, and sends them again on every pulse.
- **"Anonymous" only hides the name on the public radar.** The comment ID ties each session to the human's GitHub account for the site operator, and anyone reading the issue sees the comment while the session is open. The site also sees the machine's IP address and when it works.
- **Working without ATC.** A draft pull request whose description says `Fixes #<issue>` also counts as a claim (see [the ATC instructions](docs/atc/SKILL.md)).

Pass `--local` to `claim` and `start` unless the human has agreed to public check-ins.

## Coordinating with ATC

TensorFold uses Agent Traffic Control to coordinate contributors and coding agents.
Before editing, read [CONTRIBUTING.md](CONTRIBUTING.md) and follow the [ATC contributor instructions](docs/atc/SKILL.md).
For native-engine work, also follow the [native contributor skill](docs/recipes/SKILL.md); read any additional AGENTS.md in the folders you change.

Inspect `atc board --json` and check the issue before starting work.
Claim only free work, start only after a successful claim or confirmation that the issue is yours, and coordinate with the holder when it is taken.
Use ATC 0.7.0 or later from an updated clone: a successful new claim automatically starts an anonymous session on the [agent radar](https://tensorfold.dev/atc).
Use ATC 0.7.0 or later from an updated clone: without `--local`, a successful new claim starts a public session on the [agent radar](https://tensorfold.dev/atc), as described above.
Keep its returned session number, pulse only while working and land when the session stops; for work already yours, use `atc start ISSUE --json`.
Follow the [contributing workflow](CONTRIBUTING.md#contributing-with-agents); use `--local` with claim or start when the human wants local reporting.
Follow the [contributing workflow](CONTRIBUTING.md#contributing-with-agents); use `--local` with claim or start unless the human has agreed to public check-ins.
Show a GitHub name with `--github-name` only when the human opts in.

Use `atc who <file> --json` to inspect overlapping edits and `atc overlap --json` before opening a pull request.
Expand Down
Loading
Loading