Views
No views yet
inclusionAI/Ling-3.0-tiny,
a 7.9B-total / 1.3B-active-parameter hybrid reasoning MoE model.[!IMPORTANT] This is an independent community conversion, not an official inclusionAI release. Read the original model card for training, evaluation, intended use, and base-model limitations.
| Target | Files | Runtime | Download |
|---|---|---|---|
| Browser WebGPU | onnx/model_q4f16.onnx + 3 data shards | Transformers.js 4.2+ | 4.849 GB / 4.516 GiB |
| NVIDIA CUDA | model.onnx + model.onnx.data | ONNX Runtime GenAI | 4.849 GB / 4.516 GiB |
q4f16 contract used
by browser-oriented ONNX repositories: the graph is under onnx/, external
tensor data is split into three sub-2 GB files, activations and cache are FP16,
and hybrid recurrent-cache names use the Qwen3.5-compatible convention already
supported by Transformers.js.npm install "@huggingface/transformers@^4.2.0"1import { pipeline, TextStreamer } from '@huggingface/transformers';
2
3const generator = await pipeline(
4 'text-generation',
5 'webbrain-one/Ling-3.0-tiny-ONNX',
6 {
7 device: 'webgpu',
8 dtype: 'q4f16',
9 },
10);
11
12const messages = [
13 { role: 'user', content: 'Explain why the sky is blue in two sentences.' },
14];
15
16const output = await generator(messages, {
17 max_new_tokens: 128,
18 do_sample: false,
19 tokenizer_encode_kwargs: { enable_thinking: false },
20 streamer: new TextStreamer(generator.tokenizer, {
21 skip_prompt: true,
22 skip_special_tokens: true,
23 }),
24});
25
26console.log(output[0].generated_text.at(-1)?.content);enable_thinking: true. The original model card
recommends temperature: 1.0, top_p: 0.95, and top_k: 20 when sampling in
thinking mode.max_new_tokens, then increase context
after confirming memory use on the target device.MatMulNBits, QMoE,
LinearAttention, CausalConvWithState, and GroupQueryAttention. It is not a
WASM/CPU fallback model.1model: webbrain-one/Ling-3.0-tiny-ONNX
2device: webgpu
3dtype: q4f16
4task: text-generationonnx/model_q4f16.onnx and fetch the three external-data
files declared by config.json.1pip install "onnxruntime-gpu>=1.28.0" \
2 "onnxruntime-genai-cuda>=0.15.2" \
3 "transformers>=4.57,<5"1import numpy as np
2import onnxruntime_genai as og
3from transformers import AutoTokenizer
4
5model_dir = "Ling-3.0-tiny-ONNX"
6model = og.Model(model_dir)
7tokenizer = AutoTokenizer.from_pretrained(model_dir, trust_remote_code=True)
8
9input_ids = tokenizer.apply_chat_template(
10 [{"role": "user", "content": "Explain why the sky is blue."}],
11 add_generation_prompt=True,
12 tokenize=True,
13 return_tensors="np",
14 enable_thinking=False,
15)
16
17params = og.GeneratorParams(model)
18params.set_search_options(
19 max_length=int(input_ids.shape[-1]) + 128,
20 do_sample=False,
21)
22
23generator = og.Generator(model, params)
24generator.append_tokens(np.asarray(input_ids[0], dtype=np.int32))
25prompt_length = int(input_ids.shape[-1])
26
27while not generator.is_done():
28 generator.generate_next_token()
29
30print(tokenizer.decode(generator.get_sequence(0)[prompt_length:], skip_special_tokens=True))MatMulNBits, 23 QMoE, 18 LinearAttention,
18 CausalConvWithState, and 6 GroupQueryAttention nodes.Qwen3_5ForCausalLM, finds
all 18 recurrent/conv caches and 6 attention caches, and applies the original
Ling tokenizer/chat template.qwen3_5_text hybrid-cache
adapter solely as a runtime compatibility layer. The underlying graph and
weights remain Ling/Bailing Hybrid, preserved in
config_bailing_original.json.inclusionAI. This conversion retains the
base model's MIT license. Please cite and credit the
original Ling-3.0-tiny release
when using or redistributing this artifact.