玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
acidsound /

LFM2.5-2.6B-Uncensored-ONNX

HF 源站

acidsound/LFM2.5-2.6B-Uncensored-ONNX is an uncensored open-source model hosted on Hugging Face.

Text GenerationONNXChineseEnglishMultilingualLicense: other2.6Btransformers.jslfm2onnxruntimewebgpulfm2.5uncensoredconversationalkojafrdees
README.md说明 / 使用方法

library_name: transformers.js license: other license_name: lfm1.0 license_link: LICENSE pipeline_tag: text-generation language:

  • en
  • zh
  • ko
  • ja
  • fr
  • de
  • es tags:
  • onnx
  • onnxruntime
  • webgpu
  • lfm2.5
  • uncensored
  • text-generation base_model:
  • SC117/LFM2.5-2.6B-Uncensored base_model_relation: finetune

LFM2.5-2.6B-Uncensored ONNX

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:

VariantFile data sizeRecommended use
Q41.85 GBSmaller download; WebGPU/CPU/GPU
Q4F161.67 GBDefault 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.

Transformers.js

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.

Files

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.

Provenance

  • Source model: SC117/LFM2.5-2.6B-Uncensored
  • Source revision: 578ad81f31061f16797ce9f5451835f59d1ad2d5
  • Exporter: Liquid4All/onnx-export
  • Exporter revision: 9a23ddd23035165f7414a5de3220a51e85780f64
  • Export command: LiquidONNX LFM2 builder, block size 32, symmetric Q4; Q4F16 converted from the Q4 graph with FP16 runtime/cache tensors.

SHA-256

FileSHA-256
onnx/model_q4.onnx7AB036E314110DB418B37A36175C5998E9EF441FC88D637523CD6D2A6FF2DE0D
onnx/model_q4.onnx_dataF1EBAACBCDFDC164E415E38E47F480B3505F53D7A9D9407332E5C6FDC647C64C
onnx/model_q4f16.onnx0E17A86E3E5D0FE6EF08967843D74BD79B40F4FA916ADF1B4572A5C2DF546D8A
onnx/model_q4f16.onnx_data72E0B2CABD22A13F5553410FCF9D91BA8A6ECAEB99998C71CAF176B4045CB919

License

The source model is distributed under the LFM Open License 1.0. See LICENSE and the source model card for the applicable terms.

HUGGING FACE

上游数据

HF 下载量50
HF 点赞量0

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
acidsound
最近更新
2026/08/07
最新创建
2026/08/07
HF 趋势
379
数据快照
2026/09/16
版本
未知
许可证
other