Upstream: stage CPU-only PR stack for TARDITS/tesseract (ops -> converter -> arch -> bridge) #11

Open
opened 2026-11-18 18:50:07 +00:00 by dsh · 0 comments
Member

Strategy and checklist live in AGENTS.d/upstream-pr.md (private notes). Goal: land TARDITS (tardits, tardits-hyper) and tesseract as normal decoder families on ggml-org/llama.cpp, CPU-only first, one reviewable PR per layer.

Framing. One fixed architecture per model file with an arch string (Mamba2 precedent: custom ssm_* ops). Complex weights stored as split real planes; CD level as ordinary metadata, not "arbitrary math dimensions". The Tesseract app is a user argument, not a review shortcut.

PR stack (in order, each standalone)

  • 1. ggml ops only: ggml_cd_mul, ggml_tardits_scan/_cd, CPU kernels, test-backend-ops cases + numeric test. No model code.
  • 2. Converter: standalone tardits -> GGUF (levels 1-7, char + SmolLM2 BPE; tokenizer.ggml.pre=smollm already upstream) + tiny fixture GGUF.
  • 3. Arch: tardits (recurrent) + tardits-hyper (attention, GyRoPE/SAIL) in one new src/models/tardits.cpp; tensor enums, rope/memory mapping, test-llama-archs fixture, docs.
  • 4. tesseract bridge: teacher E + tied head + real in/out projections + head_norm (small, own PR).
  • 5. Quantization gate: .weight.real/.imag planes + attn_gamma F32 (or fold into 3).

Prerequisite: #7 (CTest parity fixture, tiny GGUF in the build tree) before 3/4.

Risk / plan. ~2k open PRs and warranted skepticism about new math. Start with PR 1 (ops + tests), then ask in an upstream issue whether the arch family is in scope before investing in 3/4. If rejected, the ops and converter still serve the fork and Tesseract mobile.

First concrete step: write the ops PR locally on a branch based on fresh upstream/master (no fork-only files), with test-backend-ops and a parity table, then post the upstream discussion issue with the plan + a tiny GGUF sample.

Strategy and checklist live in `AGENTS.d/upstream-pr.md` (private notes). Goal: land TARDITS (`tardits`, `tardits-hyper`) and tesseract as normal decoder families on `ggml-org/llama.cpp`, **CPU-only first**, one reviewable PR per layer. **Framing.** One fixed architecture per model file with an arch string (Mamba2 precedent: custom `ssm_*` ops). Complex weights stored as split real planes; CD level as ordinary metadata, not "arbitrary math dimensions". The Tesseract app is a user argument, not a review shortcut. **PR stack (in order, each standalone)** - [ ] 1. `ggml` ops only: `ggml_cd_mul`, `ggml_tardits_scan`/`_cd`, CPU kernels, `test-backend-ops` cases + numeric test. No model code. - [ ] 2. Converter: standalone tardits -> GGUF (levels 1-7, char + SmolLM2 BPE; `tokenizer.ggml.pre=smollm` already upstream) + tiny fixture GGUF. - [ ] 3. Arch: `tardits` (recurrent) + `tardits-hyper` (attention, GyRoPE/SAIL) in one new `src/models/tardits.cpp`; tensor enums, rope/memory mapping, `test-llama-archs` fixture, docs. - [ ] 4. `tesseract` bridge: teacher E + tied head + real in/out projections + `head_norm` (small, own PR). - [ ] 5. Quantization gate: `.weight.real/.imag` planes + `attn_gamma` F32 (or fold into 3). **Prerequisite:** #7 (CTest parity fixture, tiny GGUF in the build tree) before 3/4. **Risk / plan.** ~2k open PRs and warranted skepticism about new math. Start with PR 1 (ops + tests), then ask in an upstream issue whether the arch family is in scope before investing in 3/4. If rejected, the ops and converter still serve the fork and Tesseract mobile. **First concrete step:** write the ops PR locally on a branch based on fresh `upstream/master` (no fork-only files), with `test-backend-ops` and a parity table, then post the upstream discussion issue with the plan + a tiny GGUF sample.
Sign in to join this conversation.
No description provided.