Downloads · 30 days
0
celsowm/lfm2.5-350m-wasm-q4_0
lfm2.5-350m-wasm-q4_0 is a machine learning model from celsowm. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for lfm-wasm. The card lists the license as other.
A 4-bit quantized build of LiquidAI's LFM 2.5-350M text model, packaged for the lfm-wasm inference engine — a pure WebAssembly runtime with no native code, no server, and no network at inference time. Everything runs…
Downloads · 30 days
0
Access
Public
Updated Jul 15, 2026
Repo size
286 MB
Likes
1
Public
Click a slice to open those files.
.bin286 MB · 99%
From the Hugging Face model README
A 4-bit quantized build of LiquidAI's LFM 2.5-350M text model, packaged for the lfm-wasm inference engine — a pure WebAssembly runtime with no native code, no server, and no network at inference time. Everything runs in the browser.
⚠️ Custom format. These files are not GGUF, safetensors, or PyTorch weights. They are consumed directly by the companion
lfm-wasmengine in this repo. Do not load them withtransformers/llama.cpp.🌐 Live demo: https://celsowm.github.io/lfm-wasm/ — the model runs entirely in your browser (fetched from this repo at runtime).
| File | Size | Description |
|---|---|---|
model_q4_0.bin | ~272 MB | Quantized weights + model header, Q4_0 (4-bit) packed. |
vocab.json | ~0.7 MB | Byte-level BPE vocabulary: a JSON array of token strings. |
merges.json | ~1.1 MB | BPE merge rules: a JSON array of [left, right] pairs. |
README.md | — | This card. |
The files are fetched by the web playground at runtime:
const [model, vocab, merges] = await Promise.all([
fetch("/model_q4_0.bin"),
fetch("/vocab.json"),
fetch("/merges.json"),
]);
const engine = new LFM2Engine(
new Uint8Array(await model.arrayBuffer()),
await vocab.text(),
await merges.text()
);
Weights are Q4_0 (4-bit block quantization, 32-fp16-scale per 32 weights) with Q8_0 attention projections; inference uses WASM SIMD gemm/gemv kernels. See the source repo for the full engine, tokenizer, and ChatML prompt template.
quantize tool (cargo run --bin quantize)
from the original bf16 checkpoint.Inherited from the base LFM 2.5 release. See LiquidAI's license terms for LFM 2.5 before use in production.