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

Ling-flash-base-2.0

Date: 2026-11-15Commit: d211f38Signed: 2DC28CC7B26A283B ✓

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

106.2B params212GBLing-flash-base-2.0safetensorspermissive
FactsParams106.2BSize212 GBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get inclusionAI/Ling-flash-base-2.0
# manifest sha256 4e2d77c21436… · 212 GB · 32 files
$ fw verify ./Ling-flash-base-2.0 inclusionAI/Ling-flash-base-2.0
From sourceHosted (signed)inclusionAI/Ling-flash-base-2.0Last check: 2026-11-15 03:52 UTC

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

Works with

Overview

Size
212 GB
Weights
212 GB (safetensors)
Parameters
106.2B
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.

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 03:52 UTCpassed

Model card

From the publisher at commit d211f38. 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-base-2.0"

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype = torch.bfloat16,
    device_map='auto',
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(model_name)

text = "What is the capital of France?"
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 vllm import LLM, SamplingParams

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

llm = LLM(model="inclusionAI/Ling-flash-base-2.0", dtype='bfloat16')
text = "What is the capital of France?"

outputs = llm.generate([text], sampling_params)
Online Inference:#
vllm serve inclusionAI/Ling-flash-base-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.

Files

32 files ยท 212 GBWeights 212 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 32 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md9.80 KBc09034f9b011b497524d96097f41156ee2caff6f62e074e0af975655168eae31
config.json1.52 KB9b64e239d73603cebc26e98ee1524b645f07437212257b77af1d48ebf71ea308
configuration_bailing_moe_v2.py3.16 KB84828155191d3644b25f02ad35e0dc781454606b564ba89bb535968645dbc480
generation_config.json120 Bc071a82cad4ecb4ed8a5cc53254fb82356f53eebb9ab39ede748e3d207401fe9
model-00001-of-00022.safetensors8.59 GB5d4075658c825b03eef09494ab1d1f9d10a5e9a0a91544d6b83ad308fbf56454
model-00002-of-00022.safetensors10.7 GB43298e6266e0093133a9850473d5a717e010cd5f3032a04b8f01de1100e71497
model-00003-of-00022.safetensors8.44 GB8c3e41f07a8576f8e7442bacdc32a2d77f4b2a0e33fa3c68c70809dcfae2e317
model-00004-of-00022.safetensors10.7 GBc7bce819bd7f0bd85de4524caaa6bc9139ab325516389ea1689d340eb20df28a
model-00005-of-00022.safetensors10.7 GB924537868e2b027058beba278c45039562d04ebd63c0d8c96f4c2eb599432972
model-00006-of-00022.safetensors10.7 GB50ee44efe4d36b1fcf065aa3be27688f014024330b9a950a46ef29da91e41801
model-00007-of-00022.safetensors7.06 GB73cf3181191e5681e9ff4a4e5cdc36cc77887c5a285cd22f21c26eecb4f232a7
model-00008-of-00022.safetensors8.59 GB9f22d893616fa686d028cd7d5e9a29542fb1172ed51ecdd9414b886855c58d36
model-00009-of-00022.safetensors10.7 GB448716fd729204d6e469f5c7d3daf8cb7262f95385ea4d1324df59461ba8ba4c
model-00010-of-00022.safetensors8.59 GBd8f27ca9642550ae60baadd841533a8c9458cc33ad71bfee112d8730b10d502a
model-00011-of-00022.safetensors10.7 GB81bd0959f495490c62062fdcf30ef088e3d38795d56f49f5664f90439471b957
model-00012-of-00022.safetensors9.21 GB000049f43bf158e0dcf3ce3bba744d2e7275aba2782a041bb3ed4bbba62b205c
model-00013-of-00022.safetensors8.59 GB48c1a69921cf53e84907626354f8fb0604a88a306ccdfc27e90e271cd8189093
model-00014-of-00022.safetensors10.7 GB587fb3e44931a938a402dc2917f81189fb8017d6580c3e3a56dbe4f5c469b91c
model-00015-of-00022.safetensors10.7 GBbf779eea6562b71458fbc941aa8ab5cad6703a986068ad6d0b41cd2e78fb398a
model-00016-of-00022.safetensors9.21 GB3e604acbcf226326d934e200786cef16c066a4ae1c49be5f7b5a64bae9fa0731
model-00017-of-00022.safetensors8.59 GBaf2ed9aa049a95e70ff319f097ebb99bfee4bbd4ca6631868af0c296d2529a17
model-00018-of-00022.safetensors10.7 GBc3002b6aa6e899931207ec45daa5021204de044220e53960514c600f6bcfb113
model-00019-of-00022.safetensors10.7 GBe69bee94f41eb68cba48b440d4acc8bff713fbc675367220c6c2fb0278176153
model-00020-of-00022.safetensors9.21 GBa2ca5528123f69316149b960cb0806354a7d2fba061e1c15bb3d8a3a9e404f34
model-00021-of-00022.safetensors10.7 GB8d762fcf7c149689591e2ec56372ffcc13f64e248f44b129ddc7e0ca11002229
model-00022-of-00022.safetensors8.21 GB5946d7426d7c32d3a04b478bcbf5ed714842770de8de74782e7fbf71086e95bf
model.safetensors.index.json2.26 MB0cab1f681358424af0d2d2889ed3fe124c083e3e7979042e4a865998b0502787
modeling_bailing_moe_v2.py70.0 KB2f73b14e5f9f56c5e78df01813bddce43e856ffe4fdcfcd77ec0a3a2111cd1dd
special_tokens_map.json153 Bf1fa4f8b8c24126a0c2a5d9b2de0fee32abbddf22f48c068e5cf42bc0a9b68ab
tokenizer.json7.66 MB23895938c755ebef359350a758831dc230a481428155d0f50a236d572e860b21
tokenizer_config.json765 B37014fdc1776c484e805dd9aad4294345e0492203b647513a82b4d68875f41a4
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
d211f3809e pinned now2026-11-15 03:52 UTC32 files ยท 212 GB

Use it

$ fw get inclusionAI/Ling-flash-base-2.0
# manifest sha256 4e2d77c21436… · 212 GB · 32 files
$ fw verify ./Ling-flash-base-2.0 inclusionAI/Ling-flash-base-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-base-2.0.json --dir ./Ling-flash-base-2.0 $ python3 fw.py verify ./Ling-flash-base-2.0 ./inclusionAI__Ling-flash-base-2.0.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download inclusionAI/Ling-flash-base-2.0 --revision d211f3809e93cb1edf68aa2de80f5ad7f573d0dd --local-dir ./Ling-flash-base-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-base-2.0", revision="d211f3809e93cb1edf68aa2de80f5ad7f573d0dd") model = AutoModelForCausalLM.from_pretrained("inclusionAI/Ling-flash-base-2.0", revision="d211f3809e93cb1edf68aa2de80f5ad7f573d0dd", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve inclusionAI/Ling-flash-base-2.0 --revision d211f3809e93cb1edf68aa2de80f5ad7f573d0dd

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
c09034f9b011b497524d96097f41156ee2caff6f62e074e0af975655168eae31
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-base-2.0Date: 2026-11-15Commit: d211f38Signed: 2DC28CC7B26A283B ✓
Upstream
inclusionAI/Ling-flash-base-2.0
Pinned commit
d211f3809e93cb1edf68aa2de80f5ad7f573d0dd
Manifest
Ling-flash-base-2.0.json ยท .minisig
Manifest sha256
4e2d77c214363e579ff856fd74b590188917c3bfe9013a15ac9d2dc6490748b4
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:52 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/inclusionAI/Ling-flash-base-2.0.json $ curl -O https://freeweights.allternit.com/manifests/inclusionAI/Ling-flash-base-2.0.json.minisig $ minisign -Vm Ling-flash-base-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

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

Fine-tunes
1
Fine-tunes 1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download inclusionAI/Ling-flash-base-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-base-2.0.json. Provenance. Takedown history: none.
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