[Kernel] Add b12x FP4 MoE backend (#52018)

Signed-off-by: Luke Alonso <lalonso@gmail.com>
Signed-off-by: mgoin <mgoin64@gmail.com>
Signed-off-by: Misha Goin <mgoin64@gmail.com>
Co-authored-by: mgoin <mgoin64@gmail.com>
This commit is contained in:
Luke Alonso
2026-08-21 08:04:36 -07:00
committed by GitHub
co-authored by mgoin
parent 5ee84d3c52
commit 2740c817ff
23 changed files with 2417 additions and 60 deletions
+21 -4
View File
@@ -343,9 +343,9 @@ steps:
# e2e
- pytest -v -s tests/models/quantization/test_nvfp4.py
- label: ":nvidia: (DGX) Spark B12X Linear Kernels Nightly"
- label: ":nvidia: (DGX) Spark b12x Linear Kernels Nightly"
key: b12x-linear-kernels-dgx-spark-nightly
timeout_in_minutes: 30
timeout_in_minutes: 60
device: dgx-spark
optional: true
num_devices: 1
@@ -353,17 +353,34 @@ steps:
- arm64-image-build
source_file_dependencies:
- setup.py
- vllm/config/kernel.py
- vllm/envs.py
- vllm/model_executor/kernels/linear/
- vllm/model_executor/layers/fused_moe/b12x.py
- vllm/model_executor/layers/fused_moe/config.py
- vllm/model_executor/layers/fused_moe/oracle/mxfp4.py
- vllm/model_executor/layers/fused_moe/oracle/nvfp4.py
- vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors_moe/
- vllm/model_executor/layers/quantization/inc/schemes/inc_mxfp4_moe.py
- vllm/model_executor/layers/quantization/modelopt.py
- vllm/model_executor/layers/quantization/mxfp4.py
- vllm/model_executor/layers/quantization/utils/b12x_moe.py
- vllm/model_executor/warmup/b12x_warmup.py
- vllm/utils/b12x.py
- tests/kernels/moe/test_b12x.py
- tests/kernels/quantization/nvfp4_utils.py
- tests/model_executor/kernels/test_b12x_linear.py
- tests/model_executor/test_b12x_warmup.py
- tests/kernels/quantization/test_block_fp8.py
- tests/quantization/reference_mxfp4.py
- tests/quantization/test_auto_round.py
commands:
- uv pip install --system b12x==1.2.4
- uv pip install --system b12x==1.2.6
- pytest -v -s model_executor/kernels/test_b12x_linear.py
model_executor/test_b12x_warmup.py
kernels/quantization/test_block_fp8.py -k b12x
kernels/quantization/test_block_fp8.py
kernels/moe/test_b12x.py
quantization/test_auto_round.py -k b12x
- label: ":nvidia: (H100) Helion Kernels Shard %N"
key: kernels-helion-test