Commit Graph
19 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 beea1b42a9 Merge claude/upstream-p0 (plan rows 0.1-0.5, 1.1, 1.2) into claude/port-gpu-bringup
The sealed chain_window assets conflicted: bringup sealed a new chain_window.ptx (entry chain_gr_down_t2w8_nb4, c9ccd81) while upstream-p0
clamped the q8_1 scale and sum in the opt-in chain swiglu+quantize entry (4654f01, plan row 1.1). Resolved from the bringup sealed file:
only chain_swiglu_quant_kernel was replaced (scripts/q8/splice_ptx.py), every other byte stays as sealed; the entry text is byte for byte what
scripts/q8/rebuild_quantizer_ptx.sh compiles from the merged chain_window.cu (nvcc 13.2.86, checked on the server).

Regenerated, not merged by hand: the pin in original_verify_window_chain.rs (scripts/q8/repin.py), and the sm_86 companions, MANIFEST.json and
sm86_table.rs (scripts/gpu-bringup/sm86_assets.py build: 132 companions, check OK). The six other quantizer PTX and their companions equal
upstream-p0's. docs/upstream-port-plan.md: rows 0.1-0.5, 1.1, 1.2 from upstream-p0, row 0.6 from bringup, merge note on row 1.1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 23:19:55 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 4654f01b15 q8_1 scale and sum stay finite in the sealed quantizers (plan 1.1; upstream 2b726ba6, f6601bf8, 7a0e3023, e372d4ff)
A q8_1 block stores d = amax / 127 and the sum of its 32 activations as fp16: one massive activation (amax > 8.3 M, or a sum past 65504)
rounded to inf and the dot products then read inf * 0 = NaN (NonFiniteMmqOutput here, "!!!!" upstream). The quantizers now clamp both
to the largest finite half and keep the codes inside int8 (strata/kernels/q8_1_finite.hpp); a NaN input still gives a NaN sum.
Finite blocks are stored bit for bit as before.

Sites: head_quant (mtp_original_full_head_native, native_head_native), mtp_original_quantize (mtp_original_tail, mtp_original_full_checks),
quantize_q8_1_kernel (mtp_original_full_head_iq, native_head_iq: the routed experts' input and SwiGLU output) and the opt-in chain
swiglu+quantize (chain_window). Not taken: the MMQ prompt quantizers (ggml quantize_mmq_q8_1, mtp_prefill_q8), which upstream did not clamp.

The sealed PTX are patched entry by entry (scripts/q8): three were built with CUDA 13.0.88, which is not installed, and a recompile
renames the hashed anonymous-namespace entries; only the quantizer entries change, every other byte is the sealed one. Pins, the seal
plan digests and the sm_86 companions (sm86_assets.py build) follow. tools/q8-probe compares old and new PTX on the GPU.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 18:27:20 +01:00
Pavlo Ratushnyi 7a5711b71c chain-probe: down variants checked at every T in 1..8 2026-10-25 14:14:41 +01:00
Pavlo Ratushnyi e26abf62bd chain-probe: first-pass chain timing; docs 2026-10-25 14:04:23 +01:00
Pavlo Ratushnyi 23ff8040e0 chain-probe: final probe list (tiled down), pf experiment dropped 2026-10-25 13:38:14 +01:00
Pavlo Ratushnyi c9ccd81856 chain: hyper-connection down projection tiled over rows and tokens (8 rows x 2 tokens per block): 16.6 -> 9.7 us at 4 rows, bit-identical; probe diagnostics; sealed chain_window.ptx 2026-10-25 13:34:33 +01:00
Pavlo Ratushnyi 7992cd21a7 qsa-late: pin test; GR down variants with R rows per warp (probe), perf3 job scripts 2026-10-25 12:23:06 +01:00
Pavlo Ratushnyi 897f2aa476 Merge branch 'claude/chain-kernels' into claude/port-gpu-bringup 2026-10-24 20:54:12 +02:00
Pavlo Ratushnyi c73379efd7 chain: 'all' leaves qsa out; MTP keeps the Original chunk kernel 2026-10-24 03:07:58 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 ce7eed156a chain: probe harness fixes (sync after uploads), trimmed GR down variants, QSA phase profile, vocabulary replay job, doc draft
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 02:22:37 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 4ee333fea7 feat(chain): MTP draft step group (staged GR, load-hoisted attention chunk, merge over used chunks, hoisted argmax/top-prob), A/B and trace job scripts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:07:43 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 4debcdfba9 feat(chain): GR down shapes, fused swiglu+quantize and sigmoid+scale, load-hoisted greedy argmax and top-prob (groups tiny, head), window table tool
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:00:15 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 ffbb440fc8 feat(chain): latency-hoisted bit-identical window kernels (plan copy, CPU rows, doorbell, GDN ab, GR norm/up, QSA chunk) behind LELEKA_CHAIN, probe tooling
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 00:49:14 +02:00
Pavlo Ratushnyi 2bdf57a853 Merge branch 'claude/port-gpu-bringup' into claude/ledger 2026-10-23 16:13:46 +02:00
Pavlo Ratushnyi 22085505a2 cupti-trace: finish a window that is open at process exit (leak the state, wait for the watcher) 2026-10-23 16:09:57 +02:00
Pavlo Ratushnyi a6be2e2106 Merge branch 'claude/ledger' into claude/prefill-overlap 2026-10-23 16:09:03 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 4effc72ad5 docs: roofline model (measured 5090 ceilings, per-step tables) and schedule design; microbench h2d2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 02:48:00 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 3c41ee0646 tools/microbench: model-free roofline microbenchmarks, offline model, holder jobs; docs/schedule-design.md draft
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 02:05:18 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 0841f7cc0f tools/cupti-trace: CUPTI Activity tracer (injectable, trigger-file windows) + scripts/profile loader and single-trace report
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 01:11:40 +02:00