Downloads · 30 days
27
11% of all-time downloads
acidsound/LFM2.5-2.6B-Uncensored-ONNX
LFM2.5-2.6B-Uncensored-ONNX is a text generation model from acidsound. 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 other.
ONNX Runtime / Transformers.js exports of SC117/LFM2.5-2.6B-Uncensored. These files are intended for browser and cross-platform inference, especially WebGPU.
Downloads · 30 days
27
11% of all-time downloads
All-time downloads
238
Public
Repo size
3.5 GB
Likes
1
Public
Click a slice to open those files.
.onnx_data3.5 GB · 99%
From the Hugging Face model README
ONNX Runtime / Transformers.js exports of SC117/LFM2.5-2.6B-Uncensored. These files are intended for browser and cross-platform inference, especially WebGPU.
This repository contains the two web-oriented variants:
| Variant | File data size | Recommended use |
|---|---|---|
| Q4 | 1.85 GB | Smaller download; WebGPU/CPU/GPU |
| Q4F16 | 1.67 GB | Default WebGPU choice; FP16 runtime and KV cache |
Q4F16 is not a GGUF quantization. It uses INT4 weights with FP16 runtime tensors and KV cache. It is therefore not interchangeable with Q4_K_M.
npm install @huggingface/transformers
import { pipeline, TextStreamer } from "@huggingface/transformers";
const generator = await pipeline(
"text-generation",
"acidsound/LFM2.5-2.6B-Uncensored-ONNX",
{
device: "webgpu",
dtype: "q4f16", // use "q4" for the Q4 variant
},
);
const messages = [
{ role: "system", content: "You write concise English and Chinese image prompts." },
{ role: "user", content: "Create a cinematic prompt for a rainy neon street." },
];
const output = await generator(messages, {
max_new_tokens: 256,
temperature: 0.3,
repetition_penalty: 1.05,
streamer: new TextStreamer(generator.tokenizer, {
skip_prompt: true,
skip_special_tokens: true,
}),
});
console.log(output[0].generated_text.at(-1).content);
The first browser load downloads roughly 1.7–1.9 GB. Use a progress indicator and let the browser cache the model for subsequent sessions. WebGPU support is required for the recommended Q4F16 path.
config.json
generation_config.json
tokenizer.json
tokenizer_config.json
chat_template.jinja
onnx/model_q4.onnx
onnx/model_q4.onnx_data
onnx/model_q4f16.onnx
onnx/model_q4f16.onnx_data
The transformers.js_config section in config.json maps the external-data files and selects FP32 KV cache for Q4 or FP16 KV cache for Q4F16.
SC117/LFM2.5-2.6B-Uncensored578ad81f31061f16797ce9f5451835f59d1ad2d59a23ddd23035165f7414a5de3220a51e85780f64| File | SHA-256 |
|---|---|
onnx/model_q4.onnx | 7AB036E314110DB418B37A36175C5998E9EF441FC88D637523CD6D2A6FF2DE0D |
onnx/model_q4.onnx_data | F1EBAACBCDFDC164E415E38E47F480B3505F53D7A9D9407332E5C6FDC647C64C |
onnx/model_q4f16.onnx | 0E17A86E3E5D0FE6EF08967843D74BD79B40F4FA916ADF1B4572A5C2DF546D8A |
onnx/model_q4f16.onnx_data | 72E0B2CABD22A13F5553410FCF9D91BA8A6ECAEB99998C71CAF176B4045CB919 |
The source model is distributed under the LFM Open License 1.0. See LICENSE and the source model card for the applicable terms.