Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

412 changes: 412 additions & 0 deletions python/sglang/jit_kernel/csrc/trtllm_lora_temp/topk_softmax_pack.cuh

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions python/sglang/jit_kernel/trtllm_lora_temp/SOURCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FlashInfer TRTLLM MoE Overlay
=============================

This directory contains only the editable overlay files used by SGLang's
`experimental_sgl_trtllm` SM100 TRTLLM fused MoE backend. Unmodified FlashInfer
and TRTLLM sources are compiled from the installed `flashinfer` package at JIT
time.

Local overlay source:

- `data/csrc/trtllm_fused_moe_kernel_launcher.cu`
- `data/csrc/trtllm_fused_moe_runner.cu`
- `data/csrc/fused_moe/trtllm_backend/trtllm_fused_moe_dev_kernel.cu`
- `data/include/flashinfer/trtllm/fused_moe/DevKernel.h`
- `data/include/flashinfer/trtllm/fused_moe/runner.h`

The backend still depends on the installed `flashinfer` and `flashinfer_cubin`
packages for the rest of the FlashInfer/TRTLLM JIT source tree and TRTLLM-Gen
BMM cubin artifacts. The local include directory is passed before FlashInfer's
installed include directory so these overlay headers shadow the originals.
17 changes: 17 additions & 0 deletions python/sglang/jit_kernel/trtllm_lora_temp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from sglang.jit_kernel.trtllm_lora_temp.core import (
trtllm_fp4_block_scale_moe_lora_finalize,
trtllm_fp4_block_scale_routed_moe_lora,
trtllm_fp8_block_scale_moe,
trtllm_fp8_block_scale_moe_lora_finalize,
trtllm_fp8_block_scale_routed_moe,
trtllm_fp8_block_scale_routed_moe_lora,
)

__all__ = [
"trtllm_fp4_block_scale_moe_lora_finalize",
"trtllm_fp4_block_scale_routed_moe_lora",
"trtllm_fp8_block_scale_moe_lora_finalize",
"trtllm_fp8_block_scale_moe",
"trtllm_fp8_block_scale_routed_moe",
"trtllm_fp8_block_scale_routed_moe_lora",
]
Loading
Loading