We are excited to annouce the official release of Ring-mini-sparse-2.0-exp. This model employs a Mixture of Block Attention (MoBA) architecture, delivering highly efficient inference without compromising performance. This model inherts from Ling-mini-base-2.0, continually trained on an additional 100B tokens. The performance of the MoBA-based model is on par with the standard attention models of the same size (e.g., Ring-mini-v2). Furthermore, by applying YaRN-based 4× window extrapolation, we extend the context length to 128K tokens, delivering superior inference speed on tasks that involve long inputs and outputs.
Figure 1: The Model Architecture of Ring-mini-sparse-2.0-exp
Evaluation
To comprehensively assess the reasoning capability of our model, we conducted evaluations on five challenging benchmarks spanning mathematics, coding, and science, comparing it with Ring-mini-2.0, Qwen3-8B-Thinking, and GPT-OSS-20B-Medium. The MoBA architecture demonstrates comparable performance to full softmax attention models.
Figure 2: Model Performance Comparison
Highly Sparse, High-Speed Generation
Ring-mini-sparse-2.0-exp achieves high inference efficiency through highly sparse attention and a Mixture-of-Experts (MoE) architecture. Unlike MoBA used in Kimi, our approach shares the same KV block selection across all heads within a GQA group, reducing the total number of KV tokens each query head retrieves from the KV cache during decoding. During 64K-context decoding, only 8,192 key-value (KV) tokens are activated per query—reducing KV cache retrieval overhead by 87.5% compared to full attention and delivering up to 3× inference speedup over Ring-mini-2.0. This design significantly lowers computational costs for high-concurrency scenarios involving reasoning-intensive models while maintaining competitive performance. Additionally, with YaRN extrapolation, the model extends context capacity to 128K tokens, achieving up to 2× relative speedup in long-input scenarios compared to Ring-mini-2.0 (full softmax attention).
Figure 4: Inference speedup ratios of Ring-mini-sparse-2.0-exp compared to Ring-mini-2.0.
Here is a code snippet to show you how to use the chat model with transformers:
python
1from transformers import AutoModelForCausalLM, AutoTokenizer
23model_name ="inclusionAI/Ring-mini-sparse-2.0-exp"45model = AutoModelForCausalLM.from_pretrained(6 model_name,7 dtype="auto",8 device_map="auto",9 trust_remote_code=True,10 attn_implementation="flash_attention_2",11)12tokenizer = AutoTokenizer.from_pretrained(model_name)131415prompts =[16"Give me a short introduction to large language models."17]18input_texts =[]19for prompt in prompts:20 messages =[21{"role":"user","content": prompt}22]23 text = tokenizer.apply_chat_template(24 messages,25 tokenize=False,26 add_generation_prompt=True27)28 input_texts.append(text)2930print(input_texts)3132model_inputs = tokenizer(input_texts, return_tensors="pt", return_token_type_ids=False, padding=True, padding_side='left').to(model.device)3334generated_ids = model.generate(35**model_inputs,36 max_new_tokens=8192,37 do_sample=False,38)39generated_ids =[40 output_ids[len(input_ids):]for input_ids, output_ids inzip(model_inputs.input_ids, generated_ids)41]4243responses = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)4445print("*"*30)46print(responses)47print("*"*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:
1curl -s http://localhost:${PORT}/v1/chat/completions \2 -H "Content-Type: application/json"\3 -d '{"model": "auto", "temperature": 0.6, "messages": [{"role": "user", "content": "Give me a short introduction to large language models."}]}'