SEBK4C's picture
Upload README.md with huggingface_hub
4603806 verified
|
Raw
History Blame Contribute Delete
3.91 kB
---
license: apache-2.0
base_model:
- mistralai/Leanstral-1.5-119B-A6B
base_model_relation: quantized
tags:
- gguf
- llama-cpp
- lean4
- moe
- theorem-proving
- autoresearch
- work-in-progress
---
# Leanstral-WhiteDwarf β€” seed-v3 (EARLY CHECKPOINT, run not complete)
**Status: this is an early-stopped checkpoint of an in-progress autoresearch
quantization run β€” the ratchet loop has NOT completed.** The trajectory is
promising (see numbers), the eval harness is frozen, and the run is designed
to be resumed. Steps to continue are at the bottom.
47 GB GGUF of [mistralai/Leanstral-1.5-119B-A6B](https://huggingface.co/mistralai/Leanstral-1.5-119B-A6B)
(119B MoE Lean 4 prover, 128 experts / 4 active, MLA) β€” **39.5% of the FP8
weights, ~3.2 bits/weight effective**, targeted at 2Γ—24 GB + 91 GB RAM boxes.
## Measured quality (vs the same model's FP8 golden run)
| Metric | FP8 golden | this checkpoint | retention |
|---|---|---|---|
| miniF2F-test slice, compiler-verified (4 attempts) | 38/120 | 29/120 | **76%** |
| PutnamBench slice | 1/60 | 0/60 (partial: 0/10 scored at stop) | β€” |
| Teacher-forced top-1 agreement (135Γ—32 tok, Lean) | 1.0 | 0.789 | β€” |
| Repetition battery (5-turn proof convs) | pass | pass | no degeneration |
| Decode on 2Γ—RTX 4090 + DDR5 (experts on CPU) | β€” | 33 t/s | β€” |
Verification = Lean 4 compiler in loop (mathlib-pinned), statement anti-cheat,
no sorry/admit/native_decide. Golden reference data:
[SEBK4C/Leanstral-WhiteDwarf-golden](https://huggingface.co/datasets/SEBK4C/Leanstral-WhiteDwarf-golden).
## Recipe (the interesting part)
Routed experts: `ffn_gate_exps`/`ffn_up_exps` β†’ **IQ2_XXS everywhere** (verified
safe). `ffn_down_exps` β†’ **Q6_K on layers {0–3, every 3rd, 30–35}, Q4_K
elsewhere** β€” this promotion pattern is load-bearing: flattening it to ≀Q4_K
produces hard NaN on real Lean input while remaining coherent on casual English
(seven falsified recipe variants; test on your target domain, not chit-chat).
Everything else (attention/MLA, router gates, shared experts, embeddings,
output) Q8_0. imatrix: 1.3M tokens of Lean-domain text (mathlib/STP/LeanDojo),
included as `imatrix-lean-v1.dat`.
Lineage: the asymmetric experts-2bit/rest-Q8 split follows
[antirez/ds4](https://github.com/antirez/ds4)'s DeepSeek recipe; built with
[llama.cpp](https://github.com/ggml-org/llama.cpp) (quantized at master
bec4772). The last-layers-only protection prior from ds4/DeepSeek does NOT
transfer to this arch β€” early layers have the flattest expert routing and
need the most down-projection precision.
## Serving (llama.cpp β‰₯ bec4772 recommended)
```bash
llama-server -m Leanstral-WhiteDwarf-seed-v3.gguf \
--host 127.0.0.1 --port 8080 -np 4 -c 131072 \
-b 2048 -ub 512 -fa on --jinja \
--chat-template-file chat_template.jinja \
-ngl 999 --override-tensor 'ffn_.*_exps.*=CPU'
```
- **Keep expert tensors OFF CUDA** (`--override-tensor 'ffn_.*_exps.*=CPU'`):
2-bit expert tensors on the CUDA backend produced NaN on the builds tested.
Non-expert layers + KV on GPU, experts in RAM: ~33 t/s on 2Γ—4090.
- The GGUF embeds no chat template (tekken v15): use the bundled
`chat_template.jinja` (from Leanstral-2603, community consensus for 1.5).
- Sampling per model card: temperature 1.0, top_p 0.95.
## Continuing the run
The full harness (program spec, recipes, tiered evals with Lean
compiler-in-loop, golden anchors, resume journals) lives in the project repo
`SEBK4C/Leanstral-WhiteDwarf`. Remaining route: finish t2 noise replicas β†’
`golden/noise.json` β†’ gate check (anchor 0.2167, local verifier) β†’ ratchet
loop (first phase: promote `ffn_down_exps` floor Q4_K→Q5_K until the gate
passes, then shrink from above β€” expected gate-passing size 51–55 GB, then
descend). `notes/CONTINUE-RUN.md` has exact commands for both local
(2Γ—4090, ~2 days) and rented-GPU (1Γ—H100-80G, ~hours) execution.