alt.freeweights.text / Ling-flash-2.0
From: inclusionAI <huggingface.co/inclusionAI>Newsgroups: alt.freeweights.textSubject:

Ling-flash-2.0

Date: 2026-11-15Commit: 96f9b7aSigned: 2DC28CC7B26A283B ✓

Text generation model with 102.9B parameters. Safetensors weights, 206 GB in all. Published by inclusionAI under MIT.

102.9B params206GBLing-flash-2.0safetensorspermissive
FactsParams102.9BSize206 GBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get inclusionAI/Ling-flash-2.0
# manifest sha256 598a04372151… · 206 GB · 32 files
$ fw verify ./Ling-flash-2.0 inclusionAI/Ling-flash-2.0
From sourceHosted (signed)inclusionAI/Ling-flash-2.0Last check: 2026-11-15 02:50 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of Ling-flash-base-2.0.

Works with

Overview

Size
206 GB
Weights
206 GB (safetensors)
Parameters
102.9B
Formats
safetensors
Task
text generation
License
MIT (permissive)
Files
32, each with a sha256
Publisher
inclusionAI
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Base model: inclusionAI/Ling-flash-base-2.0

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:50 UTCpassed

Model card

From the publisher at commit 96f9b7a. Shown as plain text with links; images open at the publisher.

Image: image

πŸ€— Hugging Face&nbsp&nbsp | &nbsp&nbspπŸ€– ModelScope

Introduction#

Today, __Ling-flash-2.0__ is officially open-sourced! πŸš€ Following the release of the __language model Ling-mini-2.0__ and the __thinking model Ring-mini-2.0__, we are now open-sourcing the third MoE LLM under the __Ling 2.0 architecture: Ling-flash-2.0__, a language model with __100B total parameters__ and __6.1B activated parameters (4.8B non-embedding)__. Trained on __20T+ tokens of high-quality data__, together with __supervised fine-tuning__ and __multi-stage reinforcement learning__, Ling-flash-2.0 achieves __SOTA performance among dense models under 40B parameters__, despite activating only ~6B parameters. Compared to MoE models with larger activation/total parameters, it also demonstrates strong competitiveness. Notably, it delivers outstanding performance in __complex reasoning, code generation, and frontend development__.

Powerful Complex Reasoning Abilities#

We conducted a comprehensive evaluation of Ling-flash-2.0’s reasoning capabilities, reporting strong results on representative benchmarks:

  • __Multi-disciplinary knowledge reasoning__: GPQA-Diamond, MMLU-Pro
  • __Advanced mathematical reasoning__: AIME 2025, Omni-MATH, OptMATH (advanced mathematical optimization tasks)
  • __Challenging code generation__: LiveCodeBench v6, CodeForces-Elo
  • __Logical reasoning__: KOR-Bench, ARC-Prize
  • __Key regulated industries (Finance, Healthcare)__: FinanceReasoning, HealthBench

Compared with __dense models under 40B__ (e.g., Qwen3-32B-Non-Thinking, Seed-OSS-36B-Instruct (think budget=0)) and __larger-activation/total-parameter MoE models__ (e.g., Hunyuan-A13B-Instruct, GPT-OSS-120B/low), __Ling-flash-2.0__ demonstrates stronger complex reasoning power. Moreover, it shows high competitiveness on __creative tasks__ (Creative Writing v3).

Image: image

Image: image

Efficient Architecture, High-Speed Inference#

Image: image

Guided by Ling Scaling Laws, Ling 2.0 adopts a __1/32 activation-ratio MoE architecture__, optimized across multiple design choices: expert granularity, shared-expert ratio, attention balance, __aux-loss-free + sigmoid routing strategy__, MTP layers, QK-Norm, Partial-RoPE, and more. These refinements enable __small-activation MoE__ models to achieve __7Γ— efficiency gains__ over equivalent dense architectures. In other words, with just __6.1B activated parameters (4.8B non-embedding)__, __Ling-flash-2.0__ can match the performance of ~40B dense models. Thanks to its small activation size, it also delivers major inference speed advantages:

  • On __H20 hardware__, Ling-flash-2.0 achieves __200+ tokens/s__, offering __3Γ— speedups__ compared to 36B dense models in everyday use.
  • With __YaRN extrapolation__, it supports __128K context length__, and as output length grows, its relative speedup can reach __7Γ— or more__.

Image: image

Image: image

Model Downloads#

You can download the following table to see the various stage of Ling-flash-2.0 models. If you are located in mainland China, we also provide the model on ModelScope.cn to speed up the download process.

ModelContext LengthDownload
Ling-flash-base-2.032K -> 128K (YaRN)πŸ€— HuggingFace

πŸ€– ModelScope | | Ling-flash-2.0 | 32K -> 128K (YaRN) | πŸ€— HuggingFace πŸ€– ModelScope |

Note: If you are interested in previous version, please visit the past model collections in Huggingface or ModelScope.

Quickstart#

πŸ€— Hugging Face Transformers#

Here is a code snippet to show you how to use the chat model with transformers:

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "inclusionAI/Ling-flash-2.0"

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    dtype="auto",
    device_map="auto",
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(model_name)

prompt = "Give me a short introduction to large language models."
messages = [
    {"role": "system", "content": "You are Ling, an assistant created by inclusionAI"},
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt", return_token_type_ids=False).to(model.device)

generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=512
)
generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
πŸ€– ModelScope#

If you're in mainland China, we strongly recommend you to use our model from πŸ€– ModelScope.

Deployment#

vLLM#

vLLM supports offline batched inference or launching an OpenAI-Compatible API Service for online inference.

Environment Preparation#

Since the Pull Request (PR) has not been submitted to the vLLM community at this stage, please prepare the environment by following the steps below:

git clone -b v0.10.0 https://github.com/vllm-project/vllm.git
cd vllm
wget https://raw.githubusercontent.com/inclusionAI/Ling-V2/refs/heads/main/inference/vllm/bailing_moe_v2.patch
git apply bailing_moe_v2.patch
pip install -e .
Offline Inference:#
from transformers import AutoTokenizer
from vllm import LLM, SamplingParams

tokenizer = AutoTokenizer.from_pretrained("inclusionAI/Ling-flash-2.0")

sampling_params = SamplingParams(temperature=0.7, top_p=0.8, repetition_penalty=1.05, max_tokens=16384)

llm = LLM(model="inclusionAI/Ling-flash-2.0", dtype='bfloat16')
prompt = "Give me a short introduction to large language models."
messages = [
    {"role": "system", "content": "You are Ling, an assistant created by inclusionAI"},
    {"role": "user", "content": prompt}
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
outputs = llm.generate([text], sampling_params)
Online Inference:#
vllm serve inclusionAI/Ling-flash-2.0 \
              --tensor-parallel-size 2 \
              --pipeline-parallel-size 1 \
              --use-v2-block-manager \
              --gpu-memory-utilization 0.90

To handle long context in vLLM using YaRN, we need to follow these two steps:

  1. Add a rope_scaling field to the model's config.json file, for example:
{
  ...,
  "rope_scaling": {
    "factor": 4.0,
    "original_max_position_embeddings": 32768,
    "type": "yarn"
  }
}
  1. Use an additional parameter --max-model-len to specify the desired maximum context length when starting the vLLM service.

For detailed guidance, please refer to the vLLM instructions.

SGLang#
Environment Preparation#

We will later submit our model to SGLang official release, now we can prepare the environment following steps:

pip3 install sglang==0.5.2rc0 sgl-kernel==0.3.7.post1

You can use docker image as well:

docker pull lmsysorg/sglang:v0.5.2rc0-cu126

Then you should apply patch to sglang installation:

# patch command is needed, run `yum install -y patch` if needed
patch -d `python -c 'import sglang;import os; print(os.path.dirname(sglang.__file__))'` -p3 < inference/sglang/bailing_moe_v2.patch
Run Inference#

BF16 and FP8 models are supported by SGLang now, it depends on the dtype of the model in ${MODEL_PATH}. They both share the same command in the following:

  • Start server:
python -m sglang.launch_server \
    --model-path $MODLE_PATH \
    --host 0.0.0.0 --port $PORT \
    --trust-remote-code \
    --attention-backend fa3

MTP is supported for base model, and not yet for chat model. You can add parameter --speculative-algorithm NEXTN to start command.

  • Client:
curl -s http://localhost:${PORT}/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model": "auto", "messages": [{"role": "user", "content": "What is the capital of France?"}]}'

More usage can be found here

Finetuning#

We recommend you to use Llama-Factory to finetune Ling.

License#

This code repository is licensed under the MIT License.

Training content summary#

The public training-content summary identifying Ling-flash-2.0 is available below. Please refer to the document for its covered model versions, training-content scope, summary version, and update date.

This summary concerns training-content disclosure; it does not replace the model’s technical documentation, usage terms, or license.

Files

32 files Β· 206 GBWeights 206 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 32 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md11.1 KB97db3de05ad5b5fffaea1ab6761b70f55018bebfec3a69cbe178da972e214045
config.json1.49 KB3061d657ad2f446540d33e96bc0283fd06472939bfd18f413f764797fb32c79c
configuration_bailing_moe_v2.py3.16 KB84828155191d3644b25f02ad35e0dc781454606b564ba89bb535968645dbc480
generation_config.json156 Badb7a0202c7ac95b2afac51b7f8f31a44ac91af4191d9f7b8187851b085aeec0
model-00001-of-00022.safetensors7.73 GBfa1046a03abe1a8b8eda04265c0d0561a9f7c58327cbf39b946185c598160516
model-00002-of-00022.safetensors10.7 GBd9339304e1748e25d8e9182b58389534077b934a063a94b6ff211036711c2fc0
model-00003-of-00022.safetensors8.59 GBf5eaecb0c505318fffb30a1e7a14daec0b9989cab55416f838c4c902786b5277
model-00004-of-00022.safetensors10.7 GBdf1d6765e4c3ec1263dbeb1311889ab2ce9e9430c911dbc70bca93cfea016903
model-00005-of-00022.safetensors8.59 GB4e4e8199fced7c771905a1f77d3fb243ef001d22e24df24e6727e5dd84d56cf4
model-00006-of-00022.safetensors10.7 GB38e218458fdbd727794fc7fe085d1f826a6cbcb10d4b35078f0a78cf883fddfe
model-00007-of-00022.safetensors8.59 GBdffe4e256429efd7d8a2caa7bcddb5454de631d526adc2db4a9f602eca5e321c
model-00008-of-00022.safetensors10.7 GBbf9d3564e857808d00cdfe596ff47bdd1e158a26a7da068e98ebbf844ad28b92
model-00009-of-00022.safetensors8.59 GBe5168a0ffa6e14c77c5a671f7c888572d09e1ea7d573aa338f10aeae7d04dea4
model-00010-of-00022.safetensors10.7 GBa881146d1c813f5484917c84c4b1e85218794587e979af050631d1a12db8f644
model-00011-of-00022.safetensors10.4 GB278b5fa311c9371eaead94e59e6dd7864f8331e25c324680bbbb03063f7e20d2
model-00012-of-00022.safetensors10.7 GBd5605a4039902c9d8c46846060e86a5318296e4bd2112787d9bc3b05e01eb071
model-00013-of-00022.safetensors8.59 GBd4975e8908cf71ebc3add6dca100a090b19b381c65e8898b34793f90090735b5
model-00014-of-00022.safetensors10.7 GB0e73e372b91f30104cce65c32cf2019aa435b7b79e4555f0ff2d0641a9f25b69
model-00015-of-00022.safetensors8.59 GBd376ab3f26cdef048c8b1f581246d1aacf36af6b1801f6193b45e3e4909d992e
model-00016-of-00022.safetensors10.7 GB0986a2ff8b83f3168d17682c179dd79bdc5a6e937e5bb8a4e53912e0e1e834aa
model-00017-of-00022.safetensors8.59 GBd7127911ea38d0ffe781ab80a090bb7f0b3127932e3e93b3e57dd2a68abcf747
model-00018-of-00022.safetensors10.7 GBe806c1010039bd9dd2c6d196bf5ae821cc1bcc882d369e75045a635e43d7529b
model-00019-of-00022.safetensors8.59 GBfa3b074ba65f8c30208a7abf29d34d58e99d9cb5dff8642345e52cc67a8ae473
model-00020-of-00022.safetensors10.7 GB3d6a4e1d6158ca063914af80f6907603a5fd56749a14b19c9bc9922e56fa7a4c
model-00021-of-00022.safetensors10.7 GBf661401b43fc1dcfa664ec2da7218741f7982d22f341690107afcbfbd580454d
model-00022-of-00022.safetensors822 MB0566863fb577e92391c35f5c3217c7f2e29a2dc78435f75bb60baeb114698062
model.safetensors.index.json2.19 MB24bd2f64e63511bc97798b1d2744d8f7ad17fd2660a3f394b8c9b80db939728b
modeling_bailing_moe_v2.py70.0 KB2f73b14e5f9f56c5e78df01813bddce43e856ffe4fdcfcd77ec0a3a2111cd1dd
special_tokens_map.json152 B483323261f732c497b5e0de4c29999f8b69e510c81aab6dc33c602355879a8b5
tokenizer.json7.66 MB88b69cfdd43445e5e1b5b964aecba566623841c2a9d210f13378128e64341e89
tokenizer_config.json4.59 KBd1822baf77d965ef18e8e5bb48d96e38d791ccf75d511c5460e3153be0eec993
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
96f9b7a73e pinned now2026-11-15 02:50 UTC32 files Β· 206 GB

Use it

$ fw get inclusionAI/Ling-flash-2.0
# manifest sha256 598a04372151… · 206 GB · 32 files
$ fw verify ./Ling-flash-2.0 inclusionAI/Ling-flash-2.0
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/inclusionAI/Ling-flash-2.0.json --dir ./Ling-flash-2.0 $ python3 fw.py verify ./Ling-flash-2.0 ./inclusionAI__Ling-flash-2.0.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download inclusionAI/Ling-flash-2.0 --revision 96f9b7a73e531b0ca05f8839ea9f271948ad8ea4 --local-dir ./Ling-flash-2.0
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("inclusionAI/Ling-flash-2.0", revision="96f9b7a73e531b0ca05f8839ea9f271948ad8ea4") model = AutoModelForCausalLM.from_pretrained("inclusionAI/Ling-flash-2.0", revision="96f9b7a73e531b0ca05f8839ea9f271948ad8ea4", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve inclusionAI/Ling-flash-2.0 --revision 96f9b7a73e531b0ca05f8839ea9f271948ad8ea4

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
97db3de05ad5b5fffaea1ab6761b70f55018bebfec3a69cbe178da972e214045
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: inclusionAI <huggingface.co/inclusionAI>Newsgroups: alt.freeweights.textSubject: Ling-flash-2.0Date: 2026-11-15Commit: 96f9b7aSigned: 2DC28CC7B26A283B ✓
Upstream
inclusionAI/Ling-flash-2.0
Pinned commit
96f9b7a73e531b0ca05f8839ea9f271948ad8ea4
Manifest
Ling-flash-2.0.json Β· .minisig
Manifest sha256
598a04372151577c77de1f699eb084c95ae8c77a2d240bda501ef7f7e41fffc6
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:50 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/inclusionAI/Ling-flash-2.0.json $ curl -O https://freeweights.allternit.com/manifests/inclusionAI/Ling-flash-2.0.json.minisig $ minisign -Vm Ling-flash-2.0.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

inclusionAI/Ling-flash-base-2.0 Β· this model is a finetune of it

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download inclusionAI/Ling-flash-2.0
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Ling-flash-2.0.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of Ling-flash-2.0. Each has its own license check and page.

From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B