Downloads · 30 days
18
21% of all-time downloads
rish-0-0/SmolLM2-135M-Strudel-ONNX
SmolLM2-135M-Strudel-ONNX is a text generation model from rish-0-0. Use it when you need the model to write or continue text. It is set up for transformers.js. The card lists the license as agpl-3.0.
A fine-tune of HuggingFaceTB/SmolLM2-135M-Instruct that generates Strudel live-coding patterns from a natural-language description. Exported to ONNX (int8, ~130 MB) for in-browser inference via transformers.js (WASM)…
Downloads · 30 days
18
21% of all-time downloads
All-time downloads
84
Public
Repo size
137 MB
Likes
1
Public
Click a slice to open those files.
.onnx137 MB · 97%
From the Hugging Face model README
A fine-tune of HuggingFaceTB/SmolLM2-135M-Instruct that generates Strudel live-coding patterns from a natural-language description. Exported to ONNX (int8, ~130 MB) for in-browser inference via transformers.js (WASM) — no server, no GPU.
Generate Strudel code from a description, entirely in the browser:
import { pipeline } from "@huggingface/transformers";
const generator = await pipeline(
"text-generation",
"rish-0-0/SmolLM2-135M-Strudel-ONNX",
{ dtype: "q8", device: "wasm" }
);
const out = await generator(
[
{ role: "system", content: "You are a Strudel live-coding assistant. Output only raw Strudel code." },
{ role: "user", content: "Write Strudel code for: a chill lofi beat with vinyl crackle" },
],
{ max_new_tokens: 512, do_sample: true, temperature: 0.8 }
);
console.log(out[0].generated_text.at(-1).content);
<|im_end|>).trl.SFTTrainer, conversational prompt-completion format, completion-only loss.@strudel/web), and judged by a second Claude call (score ≥ 8 to be accepted). A diversity guard rejected near-duplicate labels and capped per-genre counts.Quality scored by GLM-5.2 (Z.AI) averaged over 5 fixed prompts (1–10), same seed. Cumulative-from-base training:
| Samples | Score |
|---|---|
| 60 | 3.0 |
| 120 | 4.8 |
| 240 | 5.8 |
| 402 | 6.6 — peak (this checkpoint) |
| 705 | 5.6 (regressed → stopped) |
At 402 samples all generations compile as valid Strudel; the judge's critiques are about musical nuance, not syntax. More data (705) regressed — likely overfitting at 3 epochs.
onnx/model_quantized.onnx — int8 quantized (~130 MB), selected via dtype: "q8".config.json, generation_config.json, tokenizer.json, tokenizer_config.json, chat_template.jinja.AGPL-3.0 — the downstream app uses @strudel/repl (AGPL-3.0) as a combined work. Base model SmolLM2 is Apache-2.0.
Training pipeline + browser frontend: github.com/rish-0-0/agent-strudel