This is the merged SmolLM2-1.7B SFT paragraph rewriter trained on the teacher
rewrite corpus plus Paul Graham style anchors. It is packaged as an ONNX
Runtime Web artifact so the model can be downloaded and executed in the user's
browser with
Transformers.js.
1import { pipeline } from "https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.8.1/+esm";
2
3const rewriter = await pipeline(
4 "text-generation",
5 "matthewagi/smollm2-pg-sft-browser-q4f16",
6 { device: "webgpu", dtype: "q4f16" },
7);
The first load downloads roughly 1.1 GB and then the browser caches the model.
WebGPU is recommended; a WASM CPU fallback is possible but substantially
slower. No inference server is required.
The base model is released under its upstream license. The SFT data and
adapter are project artifacts; consult the project repository for provenance.