Sitelet https://github.com/WestWaters/pollard-weights/pull/136
Skip to content

forge: make your own foundation model -- new, Minitron-style prune, p… - #136

Merged
WestWaters merged 1 commit into
mainfrom
feat/forge
Oct 5, 2026
Merged

WestWaters merged 1 commit into
mainfrom
feat/forge

Conversation

@WestWaters

Copy link
Copy Markdown
Owner

…retrain / distill, lineage card

pollard-forge new builds a fresh qwen3 / llama / qwen2 architecture (size presets or exact dims; tokenizer copied or trained). prune carves a smaller model out of a teacher: drops the layers with the lowest block influence and the FFN channels that fire least, measured on --calib. train pretrains, continues or distills (CE + temperature-scaled KL), mixes text / jsonl / hf: sources by weight, checkpoints and resumes, runs under torchrun. card writes the lineage from forge.json and requires a license. Output is a normal HF checkpoint, so pollard --hf

--run quantizes it like any model. Checked end to end: SmolLM2-135M -> 82M prune -> distill (held-out loss 5.62 -> 3.86 in 30 steps) -> card -> GGUF -> llama-cli generates.

…retrain / distill, lineage card

pollard-forge new builds a fresh qwen3 / llama / qwen2 architecture (size presets or exact dims; tokenizer copied
or trained). prune carves a smaller model out of a teacher: drops the layers with the lowest block influence and the
FFN channels that fire least, measured on --calib. train pretrains, continues or distills (CE + temperature-scaled
KL), mixes text / jsonl / hf: sources by weight, checkpoints and resumes, runs under torchrun. card writes the
lineage from forge.json and requires a license. Output is a normal HF checkpoint, so pollard --hf <dir> --run
quantizes it like any model. Checked end to end: SmolLM2-135M -> 82M prune -> distill (held-out loss 5.62 -> 3.86
in 30 steps) -> card -> GGUF -> llama-cli generates.
@WestWaters
WestWaters merged commit c7bab34 into main Oct 5, 2026
1 check passed
@WestWaters
WestWaters deleted the feat/forge branch October 5, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant