Downloads · 30 days
11
10% of all-time downloads
matthewagi/smollm2-pg-sft-browser-q4f16
smollm2-pg-sft-browser-q4f16 is a text generation model from matthewagi. Use it when you need the model to write or continue text. It is set up for transformers.js.
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 i…
Downloads · 30 days
11
10% of all-time downloads
All-time downloads
107
Public
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.onnx_data1.1 GB · 100%
From the Hugging Face model README
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.
The weights were exported to ONNX FP16 and then converted to weight-only
q4f16 MatMulNBits operators with block size 128. This is the browser
runtime artifact; it is separate from the server-side AutoAWQ/GEMM checkpoint.
import { pipeline } from "https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/+esm";
const rewriter = await pipeline(
"text-generation",
"matthewagi/smollm2-pg-sft-browser-q4f16",
{ device: "webgpu", dtype: "q4f16" },
);
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.