Skip to content

support Qwen3.5 FP8 Model on GCU (Enflame) - #358

Open
liuyancong-enflame-tech wants to merge 13 commits into
flagos-ai:mainfrom
liuyancong-enflame-tech:fp8_fix
Open

support Qwen3.5 FP8 Model on GCU (Enflame)#358
liuyancong-enflame-tech wants to merge 13 commits into
flagos-ai:mainfrom
liuyancong-enflame-tech:fp8_fix

Conversation

@liuyancong-enflame-tech

@liuyancong-enflame-tech liuyancong-enflame-tech commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

PR Category

PR Type

Description

Related Issues

Changes

Testing

Checklist

  • I have run the existing tests and they pass
  • I have added tests for my changes (if applicable)
  • I have updated the documentation (if applicable)

@github-actions github-actions Bot added the core label Aug 9, 2026
@liuyancong-enflame-tech

Copy link
Copy Markdown
Contributor Author

Base PR330

if hasattr(mod, "apply_moe_activation"):
mod.apply_moe_activation = apply_moe_activation_gcu

_patched = True
from vllm.model_executor.layers.quantization.fp8 import Fp8Config

Fp8Config.get_min_capability = classmethod(_gcu_get_min_capability)
_patched = True
# mod.moe_align_block_size = moe_align_block_size_gcu
mod.moe_align_block_size = moe_align_block_size_torch

_patched = True
# TritonWNA16Experts which inherits from TritonExperts) use the
# GCU-compatible implementation.
TritonExperts.moe_sum = _gcu_moe_sum_impl
_patched = True
if hasattr(mod, "per_token_group_quant_fp8"):
mod.per_token_group_quant_fp8 = per_token_group_quant_fp8_gcu

_patched = True
Comment on lines +42 to +43
"vllm.model_executor.layers.quantization.compressed_tensors."
"compressed_tensors_moe.compressed_tensors_moe_w4a8_fp8",
# references to the same class object everywhere.
mod.QuantFP8.forward_oot = mod.QuantFP8.forward_cuda

_patched = True
invoke_fused_moe_triton_kernel_gcu
)

_patched = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants