How to use inclusionAI/LLaDA2.2-flash with Transformers:
How to use inclusionAI/LLaDA2.2-flash with vLLM:
How to use inclusionAI/LLaDA2.2-flash with SGLang:
How to use inclusionAI/LLaDA2.2-flash with Docker Model Runner:
LLaDA2.2-flash is an agent-oriented diffusion language model in the LLaDA2 series. By introducing Levenshtein Editing (with DELETE and INSERT control tokens) to diffusion language modeling, it represents the LLaDA2 series' first step in agentic applications, including long-context tool use, multi-turn interaction, and robust error correction.For more information, please refer to our technical report:https://github.com/inclusionAI/LLaDA2.X/blob/main/LLaDA2_2_tech_report.pdf.
The following tables compare LLaDA2.2-flash and Ling-2.6-flash in terms of agentic benchmark scores and throughput (TPS).
LLaDA2.2-flash evaluation setup: The SWE-bench series was evaluated using the Claude Code scaffold. Across all benchmarks, we used a 128K context window with temperature=1.0 , block_length=32 , threshold=0.5 , and editing_threshold=0.0 . Each score represents the average of five runs.
† The Ling-2.6-flash score on SWE-bench Verified is taken from the Ling and Ring 2.6 Technical Report, where it was obtained using the OpenHands scaffold. The Ling-2.6-flash scores on τ²-Bench, Claw-Eval, and PinchBench are also sourced from the technical report, whereas its SWE-bench Pro and SWE-bench Multilingual scores were evaluated by us using the same Claude Code scaffold as LLaDA2.2-flash.
Ling-2.6-flash evaluation setup: MTP was enabled with 4 draft tokens.
More results will be released in the upcoming technical report.
Efficient 128K Diffusion Infrastructure : LLaDA2.2-flash extends the context window to 128K and introduces Block Routing , which bounds MoE expert activation at the diffusion-block level to enable efficient long-context agentic workloads.
Levenshtein Editing : We introduces DELETE and INSERT control tokens, allowing diffusion decoding to edit sequence structure, remove redundant content, and create insertion slots during parallel generation.
Agentic Reinforcement Learning : We propose Levenshtein Editing ELBO-based Block-level Policy Optimization (L-EBPO) , which leverages agentic environmental rewards to train levenshtein editing and error correction in multi-turn tool-use scenarios.
LLaDA2.2-flash has the following specifications:
Make sure you have transformers and its dependencies installed.
To achieve optimal performance, we recommend starting with the following settings:
Sampling Parameters : Use block_length=32 , temperature=0.0 , top_p=None , and top_k=None as stable default settings.
Denoising Thresholds : Tune threshold , editing_threshold , and max_post_steps according to the speed-quality trade-off required by the application. Lower thresholds may improve inference speed but can lead to increased repetition or unstable outputs.
Long-Context Agentic Workloads : For long-context tool-use and multi-turn agent applications, we recommend using SGLang as the serving backend. Please ensure that the serving stack is configured for the 128K context window and the model's MoE diffusion inference requirements.
If you are in mainland China, we strongly recommend accessing our model from 🤖 ModelScope:https://modelscope.cn/models/inclusionAI/LLaDA2.2-flash
SGLang deployment support is coming soon.
This project is licensed under the terms of the Apache License 2.0:https://www.apache.org/licenses/LICENSE-2.0.
For questions, collaboration opportunities, or feedback, please reach out via Hugging Face:https://huggingface.co/inclusionAI/LLaDA2.2-flash or open an issue in the repository:https://github.com/inclusionAI.
Join us in advancing open, efficient, and intelligent diffusion language models for agentic applications.