skillsafe-ai/smollm2-360m-instruct-q4f16
SmolLM2-360M-Instruct (q4f16_1, WebLLM)
Browser-ready mlc artifacts for text-generation, produced by SkillSafe's reproducible converter (`models/` in skillsafe.ai) from a pinned upstream source. Every byte here is derivable from that source plus the recipe below; nothing was edited by hand.
Provenance
Files
registry files are parameter files served from models.skillsafe.ai once vetted; bundle files ship inside an app; registry-shared is a runtime library reused by every model of the same architecture.
Verification
Shard sizes and md5s match ndarray-cache.json; the implied parameter count matches the checkpoint (361,821,120 parameters, 4.50 bits/param); the parameter table embedded in the WebGPU model library matches all 323 tensors of these weights.
Use in the browser (WebLLM)
import { CreateMLCEngine } from "@mlc-ai/web-llm";
const engine = await CreateMLCEngine("smollm2-360m-instruct-q4f16", {
appConfig: { model_list: [{
model: "https://huggingface.co/skillsafe-ai/smollm2-360m-instruct-q4f16",
model_id: "smollm2-360m-instruct-q4f16",
model_lib: "https://huggingface.co/skillsafe-ai/smollm2-360m-instruct-q4f16/resolve/main/lib/SmolLM2-360M-Instruct-q4f16_1-ctx4k_cs1k-webgpu.wasm",
overrides: { context_window_size: 4096, prefill_chunk_size: 1024 },
}] },
});The model library is compiled for context window 4096 / prefill chunk 1024; mlc-chat-config.json says 8192 / 8192, so set the overrides above.
Licence and attribution
SmolLM2-360M-Instruct: Hugging Face TB, Apache License 2.0. https://huggingface.co/HuggingFaceTB/SmolLM2-360M-Instruct — q4f161 weights published by MLC (https://huggingface.co/mlc-ai/SmolLM2-360M-Instruct-q4f161-MLC).
Licence: Apache-2.0 — notice: https://huggingface.co/HuggingFaceTB/SmolLM2-360M-Instruct/blob/a10cc1512eabd3dde888204e902eca88bddb4951/README.md. The conversion recipe and this model card are part of the SkillSafe repository and carry its licence; the weights remain under the upstream licence above.
The full manifest.json in this repo records the recipe, sources, toolchain (including the uv.lock hash) and per-file verification numbers.
