Views
No views yet
manim -ql or reject) guards the training data, the harvested data, and the
eval. Every example this adapter was trained on actually rendered.| metric | base Qwen3-4B | + this adapter |
|---|---|---|
| render pass, overall | 6/43 (14%) | 27/43 (63%) |
| render pass, held-out in-distribution | 3/31 (10%) | 25/31 (81%) |
| render pass, novel concepts | 3/12 (25%) | 2/12 (17%) |
| house style adherence (palette/bg/font/subtitles) | 0/43 | 39–43/43 |
| markdown fences around output | 43/43 | 0/43 |
1pip install mlx-lm
2python -m mlx_lm generate \
3 --model mlx-community/Qwen3-4B-Instruct-2507-4bit \
4 --adapter-path <this repo> \
5 --system-prompt "$(cat system.txt)" \
6 --max-tokens 3072 \
7 --prompt "Animate two pointers finding a pair that sums to 20 in [2, 5, 8, 11, 14, 19]"scene.py and render with manim -ql scene.py.<think>\n\n</think> block and the adapter reproduces it. Remove
it before compiling: re.sub(r"<think>.*?</think>\s*", "", out, flags=re.S).system.txt — it is the system prompt the adapter was
trained against; the house style is conditioned on it.#0e1116), GitHub-dark accent palette declared as
constants, Menlo, Pango Text only (no LaTeX required on the render machine),
subtitles via add_subcaption (Manim emits an .srt), one descriptive Scene
class per file, fade-out ending.mask_prompt: true, 650 iterations,
effective batch 4, cosine decay 5e-5 → 5e-6. Peak memory 5.5GB.loss.csv in this repo).Text.add_cell) — always render-check generated code (it's cheap).Tex/MathTex: the house style is deliberately LaTeX-free.