Repository navigation
Description
Objective
Make Hanzo Engine/ML faster and more efficient through bounded, reproducible kernel and runtime experiments on enrolled hardware. Do not modify the research controller, authorization, evaluation gates, deployment policy or budgets through candidate optimization. No autonomous production promotion.
Existing work
Engine #178 #179 #180 #181 #182 #183; ML hanzoai/ml#92 #93 #94 #95 #96. The eight initial PRs are qualification tools, not optimized GPU implementations. Evidence-integrity fixes are blockers for new performance claims.
Work packages (independent PRs)
- P0 E1: matched-token adapters for Hanzo, llama.cpp and llm.asm, pinned weight hashes, identical sampling/precision, validated timing and raw samples; SM86 first.
- P0 E2: capture full logits for raw/formatted 128/512, long context, greedy IDs, state reset and cross-slot isolation; reject raw-prefix drift.
- P0 E3: instrument existing graph launches and host synchronization; compare genuine candidate and baseline; preserve fallback.
- P0 M1: Q8/Q4/Q6 packed GEMV/DP4A and planar INT8 layout; shape-specific memory-bandwidth measurement, bit/float parity.
- P0 M2: grouped experts and GDN, separate candidates for gate/up, down, scatter and recurrence, routing ties and chunked state parity.
- P0 E4: split-query attention against CPU reference, masks/GQA, 1K/4K/8K/32K/64K, multiple concurrent slots.
- P1 M3: machine-code verifier with pinned upstream MIT attribution; independently test actual generated binaries, record advisory findings.
- P1 R1: integrate real paired samples, hash-verified raw artifacts and independent correctness into existing hanzo-research WAL/controller; explicit hardware/driver identity and provenance.
- P1 R2: replicate winning candidates on SM89 and SM121/GB10, evaluate native FP4/ternary, retain portable paths; no portability claims from SM86.
- R&D B1: isolated signed bare-metal worker; authenticated gateway, reset and DMA safety, separate security review; no production enrollment.
Research protocol
One candidate per isolated checkout; fixed objective, frozen test data, immutable source/model/inputs, no access to credentials or production resources. Approved lab nodes only, exclusive device lease, maximum 60 min per trial, 4 trials per manually approved batch, max 2 concurrent trials across distinct devices. Stop on missing evidence, mismatch, timeout, repeated failure, exhausted budget or operator cancellation. No automatic acquisition of additional compute. Use stages 3/5/8 repeats, randomized balanced paired execution order, report median and uncertainty; assess multiple comparisons before promotion. Distinguish wall time and GPU-event time. Compare p50/p95 latency, prefill/decode throughput, joules/token, peak bytes; measure correctness on hidden independent fixtures. Candidate changes may touch only scoped kernel/runtime code and tests, never evaluation or release gates. Each result remains a draft PR with reproducible artifacts; human review required for promotion.
Deliverables
- all prior PRs pass applicable CI on exact heads; no claim from missing workflows.
- actual three-engine SM86 baseline and parity report.
- hardware-specific candidate results with no regression in protected workloads.
- approved SM121 replication report.
- independent review and documented rollback for any release.
Existing controller: hanzoai/ml/hanzo-research; existing scheduled workflows are opt-in. Do not enable or change those variables until real adapters and verified runner capacity exist. Link every experiment to this issue.
Activity