Views
No views yet
| Precision | Size | Platform | Use Case |
|---|---|---|---|
| Q4 | ~200 MB | WebGPU, Server | Recommended for most uses (quantized embedding) |
| Q4F32 | ~390 MB | Server (CPU/GPU) | Q4 weights with FP32 embedding — higher quality |
| FP16 | ~455 MB | WebGPU, Server | Higher quality |
| Q8 | ~470 MB | Server only | Balance of quality and size |
Q4 or FP16 (Q4F32 and Q8 are not supported on WebGPU).Q4F32 keeps the embedding in FP32 for higher fidelity.onnx/
├── model.onnx # FP32
├── model_fp16.onnx # FP16
├── model_q4.onnx # Q4, quantized embedding (WebGPU)
├── model_q4f32.onnx # Q4 weights, FP32 embedding (server)
└── model_q8.onnx # Q81pip install onnxruntime transformers numpy huggingface_hub
2# or, for GPU:
3pip install onnxruntime-gpu transformers numpy huggingface_hub1from huggingface_hub import hf_hub_download
2
3model_id = "LiquidAI/LFM2.5-230M-ONNX"
4# Q4F32 recommended for server CPU/GPU; use model_q4.onnx for WebGPU.
5hf_hub_download(model_id, "onnx/model_q4f32.onnx")
6hf_hub_download(model_id, "onnx/model_q4f32.onnx_data")1import { pipeline } from "@huggingface/transformers";
2
3const generator = await pipeline("text-generation", "LiquidAI/LFM2.5-230M-ONNX", {
4 device: "webgpu",
5 dtype: "q4", // or "fp16"
6});