inclusionAI / Ring-mini-linear-2.0

huggingface.co
Total runs: 1.1K
24-hour runs: 0
7-day runs: 14
30-day runs: -645
Model's Last Updated: October 23 2025
text-generation

Introduction of Ring-mini-linear-2.0

Model Details of Ring-mini-linear-2.0

Ring-mini-linear-2.0

🤗 Hugging Face |   🤖 ModelScope

Introduction

Today, we are officially open-sourcing Ring-mini-linear-2.0.

This model continues to employ a hybrid architecture that combines linear attention and standard attention mechanisms, striking a balance between performance and efficiency. Inheriting the efficient MoE (Mixture-of-Experts) design from the Ling 2.0 series, and through architectural optimizations such as a 1/32 expert activation ratio and MTP layers, Ring-mini-linear achieves the performance of an ~8B dense model while activating only 1.6B of its 16.4B total parameters. This model was converted from Ling-mini-base-2.0 , continually trained on an additional 600B tokens. In terms of performance, the hybrid linear model is comparable in overall performance to standard attention models of a similar size (e.g., Ring-mini-2) and surpasses other open-source MoE and Dense models of the same class on several challenging benchmarks. Additionally, we support a 512k long context window, achieved by extrapolating the window 4x using YaRN. This provides superior speed, especially on tasks involving long inputs and outputs.

Figure 1: Hybrid Linear Model Architecture

Evaluation

To better demonstrate our model's reasoning capabilities, we compared it with three other models—Ring-mini-2.0, Qwen3-8B-thinking, and GPT-OSS-20B-Medium—on 5 challenging reasoning benchmarks across mathematics, code, and science. We observe that the hybrid-linear architecture achieves performance comparable to that of softmax attention models.

Figure 2: Model Performance Comparison

Linear Attention, Highly Sparse, High-Speed Generation

Thanks to its hybrid attention mechanism and highly sparse MoE architecture, Ring-mini-linear-2.0 achieves near-linear time complexity and constant space complexity, resulting in outstanding inference efficiency. To fully demonstrate this advantage, we conducted a comparison between our model and top-tier competitors of similar size or performance.The results clearly demonstrate the advantage of our model in inference efficiency.

Figure 3: Ring-mini-linear-2.0 prefill throughput

Figure 4: Ring-mini-linear-2.0 decode throughput

Quickstart
Requirements
pip install flash-linear-attention==0.3.2
pip install transformers==4.56.1
🤗 Hugging Face Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "inclusionAI/Ring-mini-linear-2.0"

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


prompts = [
    "Give me a short introduction to large language models."
]
input_texts = []
for prompt in prompts:
    messages = [
        {"role": "user", "content": prompt}
    ]
    text = tokenizer.apply_chat_template(
        messages,
        tokenize=False,
        add_generation_prompt=True
    )
    input_texts.append(text)

print(input_texts)

model_inputs = tokenizer(input_texts, return_tensors="pt", return_token_type_ids=False, padding=True, padding_side='left').to(model.device)

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

responses = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)

print("*" * 30)
print(responses)
print("*" * 30)
🚀 SGLang
Environment Preparation

We have submitted our PR to SGLang official release and it will be merged later, for now we can prepare the environment following steps, firstly install the community version SGLang and required packages:

pip install sglang==0.5.2 sgl-kernel==0.3.9.post2 vllm==0.10.2 torch==2.8.0 torchvision==0.23.0 torchao

Then you should install our sglang wheel package:

pip install http://raw.githubusercontent.com/inclusionAI/Ring-V2/blob/main/hybrid_linear/whls/sglang-0.5.2-py3-none-any.whl --no-deps --force-reinstall
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 <model_path> \
    --trust-remote-code \
    --tp-size 1 \
    --disable-radix-cache \
    --json-model-override-args "{\"linear_backend\": \"seg_la\"}"
  • Client:
curl -s http://localhost:${PORT}/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model": "auto", "temperature": 0.6, "messages": [{"role": "user", "content": "Give me a short introduction to large language models."}]}'

More usage can be found here

🚀 vLLM
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:

pip install torch==2.7.0 torchvision==0.22.0 

Then you should install our vLLM wheel package:

pip install https://media.githubusercontent.com/media/inclusionAI/Ring-V2/refs/heads/main/hybrid_linear/whls/vllm-0.8.5%2Bcuda12_8_gcc10_2_1-cp310-cp310-linux_x86_64.whl --no-deps --force-reinstall
Offline Inference
from transformers import AutoTokenizer
from vllm import LLM, SamplingParams

tokenizer = AutoTokenizer.from_pretrained("inclusionAI/Ring-mini-linear-2.0")

sampling_params = SamplingParams(temperature=0.6, top_p=1.0, max_tokens=8192)

llm = LLM(model="inclusionAI/Ring-mini-linear-2.0", dtype='bfloat16', enable_prefix_caching=False)
prompt = "Give me a short introduction to large language models."
messages = [
    {"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/Ring-mini-linear-2.0 \
              --tensor-parallel-size 1 \
              --gpu-memory-utilization 0.90 \
              --no-enable-prefix-caching

Runs of inclusionAI Ring-mini-linear-2.0 on huggingface.co

1.1K
Total runs
0
24-hour runs
18
3-day runs
14
7-day runs
-645
30-day runs

More Information About Ring-mini-linear-2.0 huggingface.co Model

More Ring-mini-linear-2.0 license Visit here:

https://choosealicense.com/licenses/mit

Ring-mini-linear-2.0 huggingface.co

Ring-mini-linear-2.0 huggingface.co is an AI model on huggingface.co that provides Ring-mini-linear-2.0's model effect (), which can be used instantly with this inclusionAI Ring-mini-linear-2.0 model. huggingface.co supports a free trial of the Ring-mini-linear-2.0 model, and also provides paid use of the Ring-mini-linear-2.0. Support call Ring-mini-linear-2.0 model through api, including Node.js, Python, http.

Ring-mini-linear-2.0 huggingface.co Url

https://huggingface.co/inclusionAI/Ring-mini-linear-2.0

inclusionAI Ring-mini-linear-2.0 online free

Ring-mini-linear-2.0 huggingface.co is an online trial and call api platform, which integrates Ring-mini-linear-2.0's modeling effects, including api services, and provides a free online trial of Ring-mini-linear-2.0, you can try Ring-mini-linear-2.0 online for free by clicking the link below.

inclusionAI Ring-mini-linear-2.0 online free url in huggingface.co:

https://huggingface.co/inclusionAI/Ring-mini-linear-2.0

Ring-mini-linear-2.0 install

Ring-mini-linear-2.0 is an open source model from GitHub that offers a free installation service, and any user can find Ring-mini-linear-2.0 on GitHub to install. At the same time, huggingface.co provides the effect of Ring-mini-linear-2.0 install, users can directly use Ring-mini-linear-2.0 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Ring-mini-linear-2.0 install url in huggingface.co:

https://huggingface.co/inclusionAI/Ring-mini-linear-2.0

Url of Ring-mini-linear-2.0

Ring-mini-linear-2.0 huggingface.co Url

Provider of Ring-mini-linear-2.0 huggingface.co

inclusionAI
ORGANIZATIONS

Other API from inclusionAI

huggingface.co

Total runs: 2.3K
Run Growth: -672
Growth Rate: -28.85%
Updated:September 24 2026
huggingface.co

Total runs: 764
Run Growth: 349
Growth Rate: 45.68%
Updated:September 24 2026
huggingface.co

Total runs: 738
Run Growth: 625
Growth Rate: 84.69%
Updated:September 15 2026
huggingface.co

Total runs: 313
Run Growth: 50
Growth Rate: 15.97%
Updated:March 04 2026
huggingface.co

Total runs: 267
Run Growth: -308
Growth Rate: -115.36%
Updated:August 24 2026
huggingface.co

Total runs: 240
Run Growth: 71
Growth Rate: 29.58%
Updated:April 13 2026