Elffuss BraidHub

kikocis/coco public

docs: experimental disclaimer, drop test-count marketing, note ≥1200-test suite as TODO
Changeset2628e5cf83374025dfc3a56567d02387efe6461c61674d83822eeecbb2fc8296
AuthorKikoCis <kikocisneros@gmail.com> · 2026-07-10 07:54 +02:00
CommitterKikoCis <kikocisneros@gmail.com> · 2026-07-10 07:54 +02:00
Parentsef0750d7e4e7

Browse the files at this changeset

4 files changed

modified README.md +7 −4
@@ -9,8 +9,7 @@
99 ![License](https://img.shields.io/badge/license-Apache--2.0-3b5bdb?style=flat-square)
1010 ![Rust](https://img.shields.io/badge/Rust-candle_0.11-CE422B?style=flat-square&logo=rust&logoColor=white)
1111 ![GPU](https://img.shields.io/badge/GPU-Metal-7048e8?style=flat-square)
12-![tests](https://img.shields.io/badge/tests-12%2F12_passing-0ca678?style=flat-square)
13-![status](https://img.shields.io/badge/status-early_but_real-e8590c?style=flat-square)
12+![status](https://img.shields.io/badge/status-experimental_%C2%B7_WIP-e8590c?style=flat-square)
1413
1514 [![Website](https://img.shields.io/badge/%F0%9F%8C%90_coco.utopiaia.com-0ca678?style=for-the-badge)](https://coco.utopiaia.com)
1615 [![How it works](https://img.shields.io/badge/%E2%97%86_How_it_works-7048e8?style=for-the-badge)](https://bitacora.utopiaia.com/posts/01-un-motor-para-todos.html)
@@ -18,9 +17,11 @@
1817
1918 </div>
2019
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+
2122 > 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.
2223
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.
2425
2526 ---
2627
@@ -39,7 +40,8 @@
3940 ## Validated (reproducible)
4041
4142 - **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.
4345 - `cargo build --release` → 0 errors.
4446
4547 ## Limitations (honest)
@@ -49,6 +51,7 @@
4951 - **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²).
5052 - 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.
5153 - 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.
5255
5356 ## Quick start
5457
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 @@
2424 <div class="kick">Rust · candle · Metal</div>
2525 <h1>coco</h1>
2626 <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>
2828 </div>
2929 </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.