Changesets · Branches · Tags · Compare
| Changeset | 2628e5cf83374025dfc3a56567d02387efe6461c61674d83822eeecbb2fc8296 |
|---|---|
| Author | KikoCis <kikocisneros@gmail.com> · 2026-07-10 07:54 +02:00 |
| Committer | KikoCis <kikocisneros@gmail.com> · 2026-07-10 07:54 +02:00 |
| Parents | ef0750d7e4e7 |
4 files changed
modified README.md +7 −4
| @@ -9,8 +9,7 @@ | ||
| 9 | 9 |  |
| 10 | 10 |  |
| 11 | 11 |  |
| 12 | - | |
| 13 | - | |
| 12 | + | |
| 14 | 13 | |
| 15 | 14 | [](https://coco.utopiaia.com) |
| 16 | 15 | [](https://bitacora.utopiaia.com/posts/01-un-motor-para-todos.html) |
| @@ -18,9 +17,11 @@ | ||
| 18 | 17 | |
| 19 | 18 | </div> |
| 20 | 19 | |
| 20 | +> ⚠️ **Experimental — work in progress.** coco is an early-stage research engine under active development. It builds and the core pieces are validated against oracles, but its APIs, on-disk formats, and coverage are unstable and it is **not production-ready**. Expect rough edges, breaking changes, and gaps. Use it to learn from and hack on, not to ship. | |
| 21 | + | |
| 21 | 22 | > One engine, not one-file-per-architecture. Every model reduces to a config row plus a single pluggable per-layer seam — so supporting a new architecture is an afternoon, not a rewrite. |
| 22 | 23 | |
| 23 | -Status: **early but real.** Builds clean, `cargo test` is green (12/12), and the headline pieces are validated against oracles. It is honest about what it can't do yet (see *Limitations*). This is a working research engine, not a drop-in llama.cpp replacement. | |
| 24 | +Status: **experimental, early but real.** It builds clean and the headline pieces are validated against reference oracles. It is honest about what it can't do yet (see *Limitations*). A research engine to learn from — not a drop-in llama.cpp replacement. | |
| 24 | 25 | |
| 25 | 26 | --- |
| 26 | 27 | |
| @@ -39,7 +40,8 @@ | ||
| 39 | 40 | ## Validated (reproducible) |
| 40 | 41 | |
| 41 | 42 | - **GatedDeltaNet** forward matches its reference oracle at **max abs err 1.825e-7** (mean 3.5e-8), threshold 1e-4 — `cargo run --release --bin gdn_ref`, fixtures in `tests/fixtures/gdn_oracle/`. |
| 42 | -- `cargo test --release` → **12 passed / 0 failed** (FWHT self-inverse, rotated-fast-path == dense matmul, 3-bit roundtrip, …). | |
| 43 | +- Unit tests cover FWHT self-inverse, rotated-fast-path == dense matmul, and 3-bit roundtrip (`cargo test --release`, all green). | |
| 44 | +- **turboquant** output is byte-for-byte identical to the fp16 baseline on the checked cases. | |
| 43 | 45 | - `cargo build --release` → 0 errors. |
| 44 | 46 | |
| 45 | 47 | ## Limitations (honest) |
| @@ -49,6 +51,7 @@ | ||
| 49 | 51 | - **Speed wins are short-context only.** Decode is bandwidth-bound, so reading fewer weight bytes wins at ctx 0–128; the advantage inverts by ~2K–8K because prefill is still O(seq²). |
| 50 | 52 | - The integrated binary ships the 4.x-bpw nibble format by default; the true-3-bit (934 MB) path is self-checked but not yet CLI-default. |
| 51 | 53 | - No checkpoint persistence / GGUF interop — models are quantized at load. |
| 54 | +- **Test coverage is thin** (a handful of unit tests). A real suite — target **≥1200 cases** covering integer/float **overflow**, numerical edge cases, and **security/robustness** (malformed inputs, adversarial shapes/dims) — is planned but **not yet written**. Do not assume the engine is hardened. | |
| 52 | 55 | |
| 53 | 56 | ## Quick start |
| 54 | 57 |
added TODO.md +26 −0
| @@ -0,0 +1,26 @@ | ||
| 1 | +# coco — roadmap / known gaps | |
| 2 | + | |
| 3 | +coco is experimental and under active development. Tracked work, roughly ordered: | |
| 4 | + | |
| 5 | +## Testing (highest priority — currently thin) | |
| 6 | +- [ ] **Build a real test suite (target ≥1200 cases).** Today there are only a handful of unit tests. | |
| 7 | + Must cover: integer/float **overflow** and saturation, numerical edge cases (NaN/Inf, subnormals, | |
| 8 | + zero-length / degenerate shapes), and **security/robustness** — malformed GGUF/config inputs, | |
| 9 | + adversarial tensor shapes and dims, bounds on every parsed length. Do not assume hardening until this exists. | |
| 10 | + | |
| 11 | +## Architectures | |
| 12 | +- [ ] Wire GatedDeltaNet into Qwen3.5 (per-layer linear/full-attention dispatch in DecoderLayer). | |
| 13 | +- [ ] Qwen3.5 full-attention layers: partial_rotary_factor (NoPE) + attn_output_gate. | |
| 14 | +- [ ] Verify MLA vs candle reference on DeepSeek-V2-Lite; implement the fused Metal MLA kernel. | |
| 15 | +- [ ] Tier-A dense archs (Llama / Mistral / Gemma) + sliding-window mask. | |
| 16 | + | |
| 17 | +## Quantization / kernels | |
| 18 | +- [ ] Integrate the true-3-bit (3.125 bpw) path into the CLI default. | |
| 19 | +- [ ] Outlier-split support in QWeight::from_tq for the fast path. | |
| 20 | +- [ ] Tiled prefill kernel (candle O(seq^2) prefill dominates at long context). | |
| 21 | + | |
| 22 | +## Persistence / interop | |
| 23 | +- [ ] On-disk .coco artifact (avoid re-quantizing every load); optional GGUF export. | |
| 24 | + | |
| 25 | +## Fidelity | |
| 26 | +- [ ] Downstream-task (accuracy) ablation of quantization loss, not just relFro + greedy coherence. |
modified assets/banner.html +1 −1
| @@ -24,6 +24,6 @@ | ||
| 24 | 24 | <div class="kick">Rust · candle · Metal</div> |
| 25 | 25 | <h1>coco</h1> |
| 26 | 26 | <div class="tag">An <b style="color:#0ca678">architecture-agnostic</b> LLM inference engine. One pluggable seam, not a new file per architecture.</div> |
| 27 | - <div class="chips"><span class="chip"><b>4</b> architectures</span><span class="chip"><i>turboquant</i> data-free 3-bit</span><span class="chip"><b>12/12</b> tests</span></div> | |
| 27 | + <div class="chips"><span class="chip"><b>4</b> architectures</span><span class="chip"><i>turboquant</i> data-free 3-bit</span><span class="chip">oracle-<b>validated</b></span></div> | |
| 28 | 28 | </div> |
| 29 | 29 | </body></html> |
modified assets/banner.png +0 −0
Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.