guqiong96/Lvllmds4

A fork of jasl/vllm (codex/ds4-sm120-min-enable) with CPU-GPU hybrid inference support for DeepSeek-V4 on SM120+.

31

stars

15,896

commits

Python

primary language

Sep 10, 2026

updated

space.bilibili.com/625367168Browse cluster: LLM Serving and Inference Optimization

README

Lvllmds4

A fork of jasl/vllm (branch: codex/ds4-sm120-min-enable) with CPU-GPU hybrid inference support for DeepSeek-V4 on SM120+.

Origin

This project integrates the CPU-GPU hybrid inference engine lk_moe into a specialized vLLM fork:

  • Base vLLM Fork: Forked from jasl/vllm (branch codex/ds4-sm120-min-enable), which provides the compatibility modifications needed for DeepSeek-V4 on SM120 architecture.
  • Hybrid Inference: The lk_moe engine enables MOE layers to leverage both GPU VRAM and CPU system memory for collaborative computation, with NUMA-aware scheduling and expert weight management.

This version is purpose-built to run DeepSeek V4 on hardware with SM120+ compute capability.

Relationship with LvLLM

Lvllmds4 is part of the LvLLM ecosystem—a family of parallel projects that integrate the lk_moe hybrid inference engine into different vLLM branches for different model/hardware targets:

ProjectUpstream vLLM BranchTarget
LvLLMLatest vLLM mainlineGeneral MoE models (Qwen3, GLM, MiniMax, Kimi, etc.)
Lvllmds4 (this repo)jasl/vllm (codex/ds4-sm120-min-enable)DeepSeek-V4 (SM120+)
Lvllmds4-xyhfgyyf/vllm-deepseek-v4-sm89DeepSeek-V4 (SM80+)

Similarly, Lsglang integrates lk_moe into sglang for the same hybrid inference capabilities across frameworks.

Performance Benchmark

Open GPU Prefill, max_num_batched_tokens=8192 (Row 1), max_num_batched_tokens=32768 (Row 2)

ModelVersionCPUMemoryGPUPrefillDecodeSpeculative Decoding
deepseek-ai/DeepSeek-V4-Flash-0731Lvllmds4-x-v2.3.9EPYC 7642 *216 channels ddr4 32003090 * 21060 t/s [input 32768]26 t/s [input 32768]35~47 t/s
deepseek-ai/DeepSeek-V4-Flash-0731Lvllmds4-v2.3.9EPYC 9684x *224 channels ddr5 4800pro 6000 * 13100 t/s [input 131072]75 t/s [input 131072]100~115 t/s

Usage Guide

Pre-built releases and detailed installation/usage instructions for DeepSeek-V4 on SM120+ are available on the Releases page.

Contributors

(top 30 of 454)

DarkLight1337

899 commits

WoosukKwon

829 commits

mgoin

585 commits

hmellor

544 commits

guqiong96/Lvllmds4

A fork of jasl/vllm (codex/ds4-sm120-min-enable) with CPU-GPU hybrid inference support for DeepSeek-V4 on SM120+.

31

stars

15,896

commits

Python

primary language

Sep 10, 2026

updated

space.bilibili.com/625367168Browse cluster: LLM Serving and Inference Optimization

README

Lvllmds4

A fork of jasl/vllm (branch: codex/ds4-sm120-min-enable) with CPU-GPU hybrid inference support for DeepSeek-V4 on SM120+.

Origin

This project integrates the CPU-GPU hybrid inference engine lk_moe into a specialized vLLM fork:

  • Base vLLM Fork: Forked from jasl/vllm (branch codex/ds4-sm120-min-enable), which provides the compatibility modifications needed for DeepSeek-V4 on SM120 architecture.
  • Hybrid Inference: The lk_moe engine enables MOE layers to leverage both GPU VRAM and CPU system memory for collaborative computation, with NUMA-aware scheduling and expert weight management.

This version is purpose-built to run DeepSeek V4 on hardware with SM120+ compute capability.

Relationship with LvLLM

Lvllmds4 is part of the LvLLM ecosystem—a family of parallel projects that integrate the lk_moe hybrid inference engine into different vLLM branches for different model/hardware targets:

ProjectUpstream vLLM BranchTarget
LvLLMLatest vLLM mainlineGeneral MoE models (Qwen3, GLM, MiniMax, Kimi, etc.)
Lvllmds4 (this repo)jasl/vllm (codex/ds4-sm120-min-enable)DeepSeek-V4 (SM120+)
Lvllmds4-xyhfgyyf/vllm-deepseek-v4-sm89DeepSeek-V4 (SM80+)

Similarly, Lsglang integrates lk_moe into sglang for the same hybrid inference capabilities across frameworks.

Performance Benchmark

Open GPU Prefill, max_num_batched_tokens=8192 (Row 1), max_num_batched_tokens=32768 (Row 2)

ModelVersionCPUMemoryGPUPrefillDecodeSpeculative Decoding
deepseek-ai/DeepSeek-V4-Flash-0731Lvllmds4-x-v2.3.9EPYC 7642 *216 channels ddr4 32003090 * 21060 t/s [input 32768]26 t/s [input 32768]35~47 t/s
deepseek-ai/DeepSeek-V4-Flash-0731Lvllmds4-v2.3.9EPYC 9684x *224 channels ddr5 4800pro 6000 * 13100 t/s [input 131072]75 t/s [input 131072]100~115 t/s

Usage Guide

Pre-built releases and detailed installation/usage instructions for DeepSeek-V4 on SM120+ are available on the Releases page.

Contributors

(top 30 of 454)

DarkLight1337

899 commits

WoosukKwon

829 commits

mgoin

585 commits

hmellor

544 commits

Languages

Python

83.9%

Rust

6.5%

Cuda

4.8%

C++

3.4%