M1: TARDITS -> GGUF converter (RAT first, hyper second) #2

Closed
opened 2026-11-11 16:53:44 +00:00 by dsh · 1 comment
Member

Convert TARDITS checkpoints to GGUF. Done in 9edc028 - see the progress comment for artifacts and verification.

Delivered: tardits2gguf/ uv project, convert.py (arch tardits, split real/imag planes, exact round-trip), converted rat45m.gguf (44.43M floats, FineWeb ASCII-96) and hyper11m.gguf, and step-path goldens in tardits2gguf/goldens/.

Remaining follow-ups moved to #3/#4: tokenizer smoke test once the arch loads, level 2-4 conversion once cd_mul exists.

Convert TARDITS checkpoints to GGUF. **Done in `9edc028`** - see the progress comment for artifacts and verification. Delivered: `tardits2gguf/` uv project, `convert.py` (arch `tardits`, split real/imag planes, exact round-trip), converted `rat45m.gguf` (44.43M floats, FineWeb ASCII-96) and `hyper11m.gguf`, and step-path goldens in `tardits2gguf/goldens/`. Remaining follow-ups moved to #3/#4: tokenizer smoke test once the arch loads, level 2-4 conversion once `cd_mul` exists.
dsh self-assigned this 2026-11-11 16:53:44 +00:00
Author
Member

Converter MVP is in (9edc028). Real artifacts, not sketches:

  • tardits2gguf/ - standalone uv project (Python 3.13): tardits 0.3.0 (PyPI), torch 2.15.0, gguf editable from ./gguf-py. Kept separate from the upstream root pyproject.toml because that pins requires-python >=3.10,<3.15 and tardits needs >=3.13.
  • convert.py: one arch tardits + metadata, split .real/.imag f32 planes, flattened 2-D tensors, lm_head row permutation to plane-major, exact round-trip verification, YAML shape cross-check, arch inference (gamma->rat, rope.theta->hyper, c_attn->real).
  • Converted: models/tardits/rat45m.gguf (388 tensors, 177.7 MB; LinA .cache/rat2/rat_l1_45m_22k.pt, 44.43M floats, 12L/512x64/b1024, FineWeb ASCII-96) and models/tardits/hyper11m.gguf (292 tensors, 44.8 MB; hyper_11m_h8_lr5e4_dofix).
  • Verified: round-trip compares bit-identical; gguf_dump.py shows 23 KV pairs; stock llama-gguf ... r n reads the file; stock llama-cli fails with unknown model architecture: 'tardits' (expected until M2).
  • Goldens: tardits2gguf/goldens/{rat45m,hyper11m}.{npz,json}. RAT is the step recurrence (not the training scan): greedy 8 = [14, 0, 65, 78, 68, 0, 84, 72]; scan-vs-step abs drift 5.07e-3 at T=44 (LinA #23).

Docs updated: scope is hyper + RAT, real only as optional smoke test; new devops/lina.md + devops/research/lina-notes.md; corrections folded in (vocab order is file order - FineWeb \n=95; gamma cap is trainer-side, pre-cap checkpoints can be >1; RAT has no buffers/positions).

Remaining for a later pass: tokenizer behaviour in llama.cpp (tokenizer.ggml.model=rwkv) can only be smoke-tested once the arch loads (M2), and level 2-4 conversion waits for the cd_mul path.

Converter MVP is in (`9edc028`). Real artifacts, not sketches: - `tardits2gguf/` - standalone uv project (Python 3.13): `tardits 0.3.0` (PyPI), `torch 2.15.0`, `gguf` editable from `./gguf-py`. Kept separate from the upstream root `pyproject.toml` because that pins `requires-python >=3.10,<3.15` and tardits needs >=3.13. - `convert.py`: one arch `tardits` + metadata, split `.real`/`.imag` f32 planes, flattened 2-D tensors, lm_head row permutation to plane-major, exact round-trip verification, YAML shape cross-check, arch inference (gamma->rat, rope.theta->hyper, c_attn->real). - Converted: `models/tardits/rat45m.gguf` (388 tensors, 177.7 MB; LinA `.cache/rat2/rat_l1_45m_22k.pt`, 44.43M floats, 12L/512x64/b1024, FineWeb ASCII-96) and `models/tardits/hyper11m.gguf` (292 tensors, 44.8 MB; `hyper_11m_h8_lr5e4_dofix`). - Verified: round-trip compares bit-identical; `gguf_dump.py` shows 23 KV pairs; stock `llama-gguf ... r n` reads the file; stock `llama-cli` fails with `unknown model architecture: 'tardits'` (expected until M2). - Goldens: `tardits2gguf/goldens/{rat45m,hyper11m}.{npz,json}`. RAT is the **step recurrence** (not the training scan): greedy 8 = `[14, 0, 65, 78, 68, 0, 84, 72]`; scan-vs-step abs drift 5.07e-3 at T=44 (LinA #23). Docs updated: scope is hyper + RAT, `real` only as optional smoke test; new `devops/lina.md` + `devops/research/lina-notes.md`; corrections folded in (vocab order is file order - FineWeb `\n`=95; gamma cap is trainer-side, pre-cap checkpoints can be >1; RAT has no buffers/positions). Remaining for a later pass: tokenizer behaviour in llama.cpp (`tokenizer.ggml.model=rwkv`) can only be smoke-tested once the arch loads (M2), and level 2-4 conversion waits for the `cd_mul` path.
dsh closed this issue 2026-11-11 17:20:19 +00:00
dsh changed title from M1: TARDITS -> GGUF converter (RealGPT first) to M1: TARDITS -> GGUF converter (RAT first, hyper second) 2026-11-11 17:20:32 +00:00
Sign in to join this conversation.
No description provided.