Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,10 @@ def apply_weights(
router_logits = topk_output.router_logits
topk_config = topk_output.topk_config

# Quantize input hidden states using fp4_quantize
# global_scale must be shape [1] (strict in cute-dsl backend).
hs_fp4_bytes, hs_sf_bytes = fp4_quantize(
x,
layer.w13_input_scale_quant,
layer.w13_input_scale_quant[:1],
Comment thread
b8zhong marked this conversation as resolved.
self.group_size, # sf_vec_size
False, # use_ue8m0
False, # is_sf_swizzled_layout
Expand Down
Loading