Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
0b9c384
feat(model): support GLM-5.3-Flash
JustinTong0323 Aug 26, 2026
8b8676b
Fix HiCache + MTP startup and unify the shared-experts fusion gate
JustinTong0323 Aug 26, 2026
d6ab04b
Fix stray server_args kwarg in the hybrid linear KV pool builder
JustinTong0323 Aug 26, 2026
fa8735a
Merge branch 'main' into xinyuan/glm-5.3-flash-support
Fridge003 Aug 26, 2026
f040cc7
fix(dsa): return LSE from the tilelang DSA decode/verify path under DCP
JustinTong0323 Aug 26, 2026
033446b
Fix NEXTN speculative-algorithm resolution after the enum collapse
JustinTong0323 Aug 27, 2026
c4d5d45
[DFLASH] Support GLM-5.3-Flash hidden-state capture (#36708)
jianc99 Aug 27, 2026
92831e5
Fix DFLASH aux hidden-state capture on mHC models (#36755)
zijiexia Aug 28, 2026
aa8c950
[AMD] Enable GLM-5.3-Flash on gfx942 and gfx950 (#36607)
andyluo7 Aug 28, 2026
6611363
fix(glm): mirror should_use_dp_reduce_scatterv() into the MHC communi…
ehsan Aug 28, 2026
e188748
fix(kda): stop remapping the -1 padding sentinel onto a live mamba sl…
ehsan Aug 28, 2026
7fa1924
style: prune restating comments and drop mock self-asserting tests
JustinTong0323 Aug 29, 2026
de4a004
test: add executable entry for DCP metadata test
Fridge003 Aug 31, 2026
1645ac6
test: add executable entry for GLM AITER mHC test
Fridge003 Aug 31, 2026
8dfb744
Merge remote-tracking branch 'origin/main' into xinyuan/glm-5.3-flash…
Fridge003 Aug 31, 2026
493322b
test: add GLM-5.3 Flash B200 E2E coverage
Fridge003 Aug 31, 2026
b51ab94
Merge remote-tracking branch 'origin/main' into xinyuan/glm-5.3-flash…
Fridge003 Aug 31, 2026
b9c0e90
clean tests
Fridge003 Aug 31, 2026
ff45615
Merge branch 'main' into xinyuan/glm-5.3-flash-support
Fridge003 Aug 31, 2026
399499c
fix: resolve GLM-5.3-flash post-rebase CI regressions (#37235)
Fridge003 Aug 31, 2026
3992c4c
fix(kda): preserve split-grid program ids (#37250)
jhinpan Aug 31, 2026
4464e0f
fix: resolve remaining GLM-5.3 rebase regressions (#37243)
Fridge003 Aug 31, 2026
4033e79
fix: resolve CI regressions after GLM-5.3 Flash rebase (#37298)
Fridge003 Sep 1, 2026
6707a58
Merge remote-tracking branch 'origin/main' into xinyuan/glm-5.3-flash…
Fridge003 Sep 1, 2026
c767511
Revert "[AMD] Enable GLM-5.3-Flash on gfx942 and gfx950 (#36607)"
Fridge003 Sep 1, 2026
58a2a90
Fix GLM-5.3 Flash CI regressions after latest main merge (#37366)
Fridge003 Sep 1, 2026
fe236ea
fix(modelopt_fp4): skip NVFP4 swiglu-fusion interleave for shared exp…
JustinTong0323 Sep 1, 2026
369f59b
Merge remote-tracking branch 'upstream/main' into xinyuan/glm-5.3-fla…
JustinTong0323 Sep 1, 2026
f6d4309
Merge branch 'main' into xinyuan/glm-5.3-flash-support
Fridge003 Sep 1, 2026
0a6b5d8
test: add GLM-5.3 Flash DFlash2 B200 coverage (#37486)
Fridge003 Sep 1, 2026
515e865
Temporarily Remove GLM-5.3 Flash prefill CP support (#37484)
Fridge003 Sep 2, 2026
545bd6f
Merge branch 'main' into xinyuan/glm-5.3-flash-support
kpham-sgl Sep 2, 2026
12fd09e
Merge branch 'main' into xinyuan/glm-5.3-flash-support
kpham-sgl Sep 2, 2026
491cb22
Temporarily Remove GLM-5.3 Flash decode CP support (#37487)
kpham-sgl Sep 3, 2026
f5ee605
Merge branch 'main' into xinyuan/glm-5.3-flash-support
kpham-sgl Sep 3, 2026
dad2ed4
Merge remote-tracking branch 'origin/xinyuan/glm-5.3-flash-support' i…
kpham-sgl Sep 3, 2026
d06f3be
Merge branch 'main' into xinyuan/glm-5.3-flash-support
kpham-sgl Sep 3, 2026
cdfc224
[GLM-5.3] Fix NEXTN first-request embedding OOB on multimodal request…
BBuf Sep 3, 2026
2d7606b
[AMD] [GLM-5.3-Flash Day 0] Enable FP8 and Quark MXFP4 MoE on gfx950 …
Raiden-Makoto Sep 3, 2026
12b14ce
Revert "[AMD] [GLM-5.3-Flash Day 0] Enable FP8 and Quark MXFP4 MoE on…
Fridge003 Sep 3, 2026
4761b54
Merge branch 'main' into xinyuan/glm-5.3-flash-support
Fridge003 Sep 4, 2026
a19525d
Merge remote-tracking branch 'origin/main' into xinyuan/glm-5.3-flash…
Fridge003 Sep 4, 2026
1c76e6a
Remove plan-stream handoff machinery (moved to stacked PR)
JustinTong0323 Sep 4, 2026
353a254
style: apply pre-commit formatting
JustinTong0323 Sep 4, 2026
5718bfa
Merge branch 'main' into xinyuan/glm-5.3-flash-support
JustinTong0323 Sep 4, 2026
e7a469d
Remove mamba topk=1 commit fastpath (moved to stacked PR #37980)
JustinTong0323 Sep 4, 2026
cd37f65
Merge branch 'main' into xinyuan/glm-5.3-flash-support
kpham-sgl Sep 4, 2026
eea5f91
[Test] Drop GLM unit-test mirrors; keep the DFLASH mHC residual=None …
kpham-sgl Sep 4, 2026
8bb234c
[GLM-5.3] Remove serving lifecycle changes split to #37316 (#38057)
Fridge003 Sep 4, 2026
888b93d
[Refactor] Replace defensive getattr with direct field access (#38059)
kpham-sgl Sep 4, 2026
4f5b9a3
[GLM-5.3] Extract KPool-specific DSA backend helpers (#38061)
Fridge003 Sep 4, 2026
dd537c4
[GLM-5.3] Drop optional FlashAttention and FlashInfer MLA changes (#3…
Fridge003 Sep 4, 2026
1e30f67
[GLM-5.3] Remove remaining context-parallel additions (#38060)
Fridge003 Sep 4, 2026
d769a1d
[Fix] Read DSA tail request index from ReqKvInfo (#38066)
kpham-sgl Sep 4, 2026
174766f
[Fix] Clear Mamba extra-buffer state on ReqKvInfo (#38062)
kpham-sgl Sep 4, 2026
f079686
[GLM-5.3] Remove experimental DSA metadata optimizations (#38071)
Fridge003 Sep 4, 2026
fead323
[GLM-5.3] Add H200 serving recipe E2E coverage (#38076)
Fridge003 Sep 4, 2026
09f15e8
Update test/registered/models_e2e/test_glm53_flash_b200.py
Fridge003 Sep 5, 2026
f813ba5
[GLM-5.3] Fix DFlash graph counts and startup DeepGEMM memory budget …
Fridge003 Sep 5, 2026
4d7a79f
Merge branch 'main' into xinyuan/glm-5.3-flash-support
kpham-sgl Sep 5, 2026
c64d67c
Merge branch 'main' into xinyuan/glm-5.3-flash-support
kpham-sgl Sep 5, 2026
2f97769
Merge branch 'main' into xinyuan/glm-5.3-flash-support
Fridge003 Sep 5, 2026
be2e63c
Merge branch 'main' into xinyuan/glm-5.3-flash-support
Fridge003 Sep 5, 2026
87de7ca
Merge branch 'main' into xinyuan/glm-5.3-flash-support
Fridge003 Sep 6, 2026
926968b
[Test] Mock health callback in prefill abort cleanup fixture (#38201)
Fridge003 Sep 6, 2026
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,4 @@ artifacts/

# Internal, non-published docs
internal-docs/
.trellis
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <sgl_kernel/deepseek_v4/fp8_utils.cuh>

#include <algorithm>
#include <cstdint>
#include <cuda_fp8.h>
#include <type_traits>
Expand Down Expand Up @@ -208,8 +209,19 @@ struct SiluAndMulClampParams {
const void* __restrict__ input;
void* __restrict__ output;
float swiglu_limit;
uint32_t out_vecs;
uint32_t blocks_per_row;
};

template <typename DType2>
SGL_DEVICE bf16x2_t to_bf16x2(DType2 value) {
if constexpr (std::is_same_v<DType2, bf16x2_t>) {
return value;
} else {
return device::cast<bf16x2_t>(device::cast<fp32x2_t>(value));
}
}

template <typename DType, bool kUsePDL>
__global__ __launch_bounds__(1024, 2) void // maximize occupancy
silu_mul_clamp_kernel(const SiluAndMulClampParams __grid_constant__ params) {
Expand All @@ -219,21 +231,27 @@ __global__ __launch_bounds__(1024, 2) void // maximize occupancy
constexpr auto kVecSize = 16 / sizeof(DType);
static_assert(kVecSize % 2 == 0 && kVecSize > 0);
using Vec = AlignedVector<DType2, kVecSize / 2>;
const auto bid = blockIdx.x;
const auto tile = tile::Memory<Vec>::cta();
const auto row = blockIdx.x / params.blocks_per_row;
const auto block_in_row = blockIdx.x % params.blocks_per_row;
const auto vec_id = block_in_row * blockDim.x + threadIdx.x;
const float limit = params.swiglu_limit;

PDLWaitPrimary<kUsePDL>();
const auto gate = tile.load(params.input, bid * 2 + 0);
const auto up = tile.load(params.input, bid * 2 + 1);
Vec out;
if (vec_id < params.out_vecs) {
const auto input = static_cast<const Vec*>(params.input);
auto output = static_cast<Vec*>(params.output);
const auto input_row = row * 2 * params.out_vecs;
const auto gate = input[input_row + vec_id];
const auto up = input[input_row + params.out_vecs + vec_id];
Vec out;

#pragma unroll
for (uint32_t i = 0; i < kVecSize / 2; ++i) {
out[i] = cast<DType2>(silu_and_mul<true>(cast<bf16x2_t>(gate[i]), cast<bf16x2_t>(up[i]), limit));
}
for (uint32_t i = 0; i < kVecSize / 2; ++i) {
out[i] = cast<DType2>(silu_and_mul<true>(to_bf16x2(gate[i]), to_bf16x2(up[i]), limit));
}

tile.store(params.output, out, bid);
output[row * params.out_vecs + vec_id] = out;
}
PDLTriggerSecondary<kUsePDL>();
}

Expand Down Expand Up @@ -349,16 +367,20 @@ struct SiluAndMulClampKernel {
constexpr uint32_t kVecSize = 16 / sizeof(DType);
const auto out_dim = static_cast<uint32_t>(H.unwrap());
const auto num_tokens = static_cast<uint32_t>(M.unwrap());
RuntimeCheck(out_dim > 0, "out_dim must be positive");
RuntimeCheck(out_dim % kVecSize == 0, "out_dim must be divisible by vector size");
const auto num_threads = out_dim / kVecSize;
RuntimeCheck(num_threads <= 1024, "out_dim too large for single-block-per-row launch");
const auto out_vecs = out_dim / kVecSize;
const auto num_threads = std::min(out_vecs, 1024u);
const auto blocks_per_row = host::div_ceil(out_vecs, num_threads);

const auto params = SiluAndMulClampParams{
.input = input.data_ptr(),
.output = output.data_ptr(),
.swiglu_limit = static_cast<float>(swiglu_limit),
.out_vecs = out_vecs,
.blocks_per_row = blocks_per_row,
};
LaunchKernel(num_tokens, num_threads, device.unwrap()) //
LaunchKernel(num_tokens * blocks_per_row, num_threads, device.unwrap()) //
.enable_pdl(kUsePDL)(kernel, params);
}
};
Expand Down
Loading
Loading