{"slug": "vllm-for-baidu-kunlun", "title": "vLLM for Baidu Kunlun", "summary": "Baidu's vLLM Kunlun plugin, open-sourced on Dec 8, 2025, enables vLLM to run on Kunlun XPU hardware, supporting 20+ models including Qwen, Llama, DeepSeek, GLM, and Gemma4, with features like quantization, LoRA, and speculative decoding. The latest development version v0.25.1 adds support for Qwen3.5, Gemma4, and GLM MoE DSA, while v0.11.0 and v0.10.1.1 introduced multimodal models and performance optimizations.", "body_md": "[ 📖 Documentation](https://vllm-kunlun.readthedocs.io/en/latest/) |\n\n[|](https://vllm-kunlun.readthedocs.io/en/latest/quick_start.html)\n\n**🚀 Quick Start**[|](https://vllm-kunlun.readthedocs.io/en/latest/installation.html)\n\n**📦 Installation**\n\n**💬 Slack**- [2026/07] 🚧\n**v0.25.1 under development**— Added Qwen3.5 / Qwen3.5-MoE, Gemma4 (text and multimodal), GLM MoE DSA, and DFlash speculative decoding - [2026/02] ⚡\n**Performance optimizations**— Fused MoE with small batches, optimized attention metadata building, Multi-LoRA inference achieves 80%+ of non-LoRA performance - [2026/02] 🔧\n**DeepSeek-V3.2 MTP support**— Added MTP (Multi-Token Prediction) for DeepSeek-V3.2, with RoPE and decoding stage kernel optimizations - [2026/01] 🔢\n**New quantization methods**— Support for compressed-tensors W4A16, AWQ MoE W4A16, and DeepSeek-V3.2 W8A8 quantization - [2026/01] 🛠️\n**CI/CD overhaul**— Added E2E tests, unit test CI, ruff format checks, and modular CI workflow refactoring - [2025/12] 🎉\n**v0.11.0 released**— Added Qwen3-Omni, Qwen3-Next, Seed-OSS support ([Release Notes](https://github.com/baidu/vLLM-Kunlun/releases/tag/v0.11.0)) - [2025/12] 📦\n**v0.10.1.1 released**— 5+ multimodal models, AWQ/GPTQ quantization for dense models, Piecewise Kunlun Graph, vLLM V1 engine, Flash-Infer Top-K/Top-P sampling with 10-100× speedup ([Release Notes](https://github.com/baidu/vLLM-Kunlun/releases/tag/v0.10.1.1)) - [2025/12] 🌟 Initial release of vLLM Kunlun — Open sourced on Dec 8, 2025\n\n**vLLM Kunlun** (`vllm-kunlun`\n\n) is a community-maintained hardware plugin designed to seamlessly run [vLLM](https://github.com/vllm-project/vllm) on the **Kunlun XPU**. It is the recommended approach for integrating the Kunlun backend within the vLLM community, adhering to the principles outlined in the [RFC Hardware Pluggable](https://github.com/vllm-project/vllm/issues/11162).\n\nThis plugin provides a hardware-pluggable interface that decouples the integration of the Kunlun XPU with vLLM. By utilizing vLLM Kunlun, popular open-source models — including Transformer-like, Mixture-of-Expert (MoE), Embedding, and Multi-modal LLMs — can run effortlessly on the Kunlun XPU.\n\n**Seamless Plugin Integration**— Works as a standard vLLM platform plugin via Python entry points, no need to modify vLLM source code** Broad Model Support**— Supports 20+ mainstream LLMs including Qwen, Llama, DeepSeek, GLM, Gemma4, Kimi-K2, and multimodal models** Quantization Support**— W8A8 (INT8), AWQ, GPTQ, and compressed-tensors W4A16 for MoE and dense models** LoRA Fine-Tuning**— LoRA and Multi-LoRA adapter support for Qwen series models** Piecewise Kunlun Graph**— Hardware-accelerated graph optimization for high-performance inference** FlashMLA Attention**— Optimized multi-head latent attention for DeepSeek MLA architectures** Speculative Decoding**— MTP (Multi-Token Prediction) for DeepSeek-V3.2 and DFlash/EAGLE-style proposers** Tensor Parallelism**— Multi-device parallel inference with distributed execution support** OpenAI-Compatible API**— Serve models with the standard OpenAI API interface\n\n**Hardware**: Kunlun3 P800** OS**: Ubuntu 20.04** Software**:- Python >= 3.10\n- PyTorch >= 2.5.1 (KL3-customized\n`xpytorch`\n\nbuild, see[Installation](https://vllm-kunlun.readthedocs.io/en/latest/installation.html)) - vLLM (matching version, see\n[requirements.txt](/baidu/vLLM-Kunlun/blob/v0.25.1-dev/requirements.txt)) - transformers == 5.2.0 (Qwen3.5 requires transformers 5.x)\n\n| Model | Support | Quantization | LoRA | Kunlun Graph |\n|---|---|---|---|---|\n| Qwen2 | ✅ | ✅ | ✅ | ✅ |\n| Qwen2.5 | ✅ | ✅ | ✅ | ✅ |\n| Qwen3 | ✅ | ✅ | ✅ | ✅ |\n| Qwen3-Moe | ✅ | ✅ | ✅ | ✅ |\n| Qwen3-Next | ✅ | ✅ | ✅ | ✅ |\n| Qwen3.5 | ✅ | ✅ | ✅ | |\n| Qwen3.5-Moe | ✅ | ✅ | ✅ | |\n| MiMo-V2-Flash | ✅ | ✅ | ✅ | |\n| Llama2 | ✅ | ✅ | ✅ | ✅ |\n| Llama3 | ✅ | ✅ | ✅ | ✅ |\n| Llama3.1 | ✅ | ✅ | ✅ | |\n| gpt-oss | ✅ | ✅ | ||\n| Gemma4 | ✅ | ✅ | ||\n| GLM4.5 | ✅ | ✅ | ✅ | |\n| GLM4.5Air | ✅ | ✅ | ✅ | |\n| GLM5 | ✅ | ✅ | ✅ | |\n| InternLM2 | ✅ | ✅ | ||\n| Seed-OSS | ✅ | ✅ | ||\n| DeepSeek-R1 | ✅ | ✅ | ✅ | |\n| DeepSeek-V3 | ✅ | ✅ | ✅ | |\n| DeepSeek-V3.2 | ✅ | ✅ | ✅ | |\n| Kimi-K2 | ✅ | ✅ | ✅ |\n\n| Model | Support | Quantization | LoRA | Kunlun Graph |\n|---|---|---|---|---|\n| Qwen2-VL | ✅ | ✅ | ✅ | |\n| Qwen2.5-VL | ✅ | ✅ | ✅ | |\n| Qwen3-VL | ✅ | ✅ | ✅ | |\n| Qwen3-VL-MoE | ✅ | ✅ | ✅ | |\n| Gemma4 | ✅ | ✅ | ||\n| InternVL-2.5 | ✅ | ✅ | ||\n| InternVL-3.5 | ✅ | ✅ | ||\n| InternS1 | ✅ | ✅ |\n\nCurrent environment: 16-way concurrency, input/output size 2048.\n\n```\npython -m vllm.entrypoints.openai.api_server \\\n    --host 0.0.0.0 \\\n    --port 8356 \\\n    --model <your-model-path> \\\n    --gpu-memory-utilization 0.9 \\\n    --trust-remote-code \\\n    --max-model-len 32768 \\\n    --tensor-parallel-size 1 \\\n    --dtype float16 \\\n    --max_num_seqs 128 \\\n    --max_num_batched_tokens 32768 \\\n    --block-size 128 \\\n    --no-enable-prefix-caching \\\n    --no-enable-chunked-prefill \\\n    --distributed-executor-backend mp \\\n    --served-model-name <your-model-name>\ncurl http://localhost:8356/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"<your-model-name>\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}],\n    \"max_tokens\": 512\n  }'\n```\n\n| Version | Release Type | Documentation |\n|---|---|---|\n| v0.25.1 | Latest development version (`main` ) |\n|\n\n[Quick Start](https://vllm-kunlun.readthedocs.io/en/latest/quick_start.html)·[Installation](https://vllm-kunlun.readthedocs.io/en/latest/installation.html)\n\n```\nvllm-kunlun/\n├── vllm_kunlun/               # Core plugin package\n│   ├── platforms/             # Kunlun XPU platform implementation\n│   ├── models/                # Model implementations (DeepSeek, Qwen, Gemma4, InternVL, etc.)\n│   ├── ops/                   # Custom operators\n│   │   ├── attention/         # FlashMLA, paged attention, merge attention states\n│   │   ├── fla/               # Flash linear attention operations\n│   │   ├── fused_moe/         # Fused MoE kernels\n│   │   ├── mamba/             # Mamba / linear-attention state ops\n│   │   └── rotary_embedding/  # RoPE variants\n│   ├── quantization/          # AWQ, GPTQ, compressed-tensors, moe_wna16\n│   ├── lora/                  # LoRA / Multi-LoRA support\n│   ├── v1/                    # vLLM V1 engine adaptations (incl. spec decode: MTP, DFlash)\n│   ├── distributed/           # Communicators and distributed helpers\n│   ├── entrypoints/           # OpenAI-compatible serving overrides and tool parsers\n│   ├── reasoning/             # Reasoning parsers (Qwen3, Gemma4)\n│   ├── compilation/           # Torch compile wrapper for Kunlun Graph\n│   ├── transformers_utils/    # transformers config/tokenizer adaptations\n│   ├── csrc/                  # C++ extensions (custom kernels)\n│   └── config/                # Model configuration overrides\n├── tests/                     # Test suite\n├── docs/                      # Documentation (Sphinx-based, ReadTheDocs hosted)\n├── ci/                        # CI pipeline configurations\n├── setup.py                   # Legacy build script (with C++ extensions)\n└── pyproject.toml             # Modern Python build configuration (hatchling)\n```\n\nWe welcome contributions from the community! Please read our [Contributing Guide](/baidu/vLLM-Kunlun/blob/v0.25.1-dev/CONTRIBUTING.md) before submitting a PR.\n\nUse the following prefixes for PR titles:\n\n`[Attention]`\n\n— Attention mechanism features/optimizations`[Core]`\n\n— Core vllm-kunlun logic (platform, attention, communicators, model runner)`[Kernel]`\n\n— Compute kernels and ops`[Bugfix]`\n\n— Bug fixes`[Doc]`\n\n— Documentation improvements`[Test]`\n\n— Tests`[CI]`\n\n— CI/CD improvements`[Misc]`\n\n— Other changes\n\nWe opened the project at Dec 8, 2025. We love open source and collaboration ❤️\n[\n](https://www.star-history.com/?repos=baidu%2FvLLM-Kunlun&type=date&legend=top-left)", "url": "https://wpnews.pro/news/vllm-for-baidu-kunlun", "canonical_source": "https://github.com/baidu/vLLM-Kunlun", "published_at": "2026-07-31 08:01:26+00:00", "updated_at": "2026-07-31 08:24:26.207362+00:00", "lang": "en", "topics": ["ai-infrastructure", "ai-tools", "machine-learning", "large-language-models"], "entities": ["Baidu", "vLLM", "Kunlun XPU", "Qwen3.5", "Gemma4", "DeepSeek-V3.2", "GLM MoE DSA", "vLLM Kunlun"], "alternates": {"html": "https://wpnews.pro/news/vllm-for-baidu-kunlun", "markdown": "https://wpnews.pro/news/vllm-for-baidu-kunlun.md", "text": "https://wpnews.pro/news/vllm-for-baidu-kunlun.txt", "jsonld": "https://wpnews.pro/news/vllm-for-baidu-kunlun.jsonld"}}