Renew scripts

This commit is contained in:
2026-07-24 10:17:33 +00:00
parent c8a42b66ee
commit f98ec10fd0
3 changed files with 36 additions and 22 deletions
+16 -21
View File
@@ -21,28 +21,23 @@ FLAGGEMS_DIR="${FLAGGEMS_DIR:-/workspace/FlagGems-dev}"
SHAPE_FILE="${SHAPE_FILE:-}" SHAPE_FILE="${SHAPE_FILE:-}"
read -r -d '' INLINE_YAML <<'YAML' || true read -r -d '' INLINE_YAML <<'YAML' || true
fused_marlin_moe_mxfp4: fused_marlin_moe_mxfp4:
# 4 个 MoE 模型 x 4 档 token 数(M=1,16,64,256= 16 组 shape
shapes: shapes:
# Mixtral (E=8) - [1, 256, 4096, 256, 6]
- [1, 8, 4096, 14336, 2] - [2, 256, 4096, 256, 6]
- [16, 8, 4096, 14336, 2] - [4, 256, 4096, 256, 6]
- [64, 8, 4096, 14336, 2] - [8, 256, 4096, 256, 6]
- [256, 8, 4096, 14336, 2] - [16, 256, 4096, 256, 6]
# DeepSeek-V3 (E=256, H=7168) - [32, 256, 4096, 256, 6]
- [1, 256, 7168, 2048, 8] - [64, 256, 4096, 256, 6]
- [16, 256, 7168, 2048, 8] - [128, 256, 4096, 256, 6]
- [64, 256, 7168, 2048, 8] - [256, 256, 4096, 256, 6]
- [256, 256, 7168, 2048, 8] - [512, 256, 4096, 256, 6]
# Qwen3 (E=512) - [1024, 256, 4096, 256, 6]
- [1, 512, 4096, 1024, 10] - [2048, 256, 4096, 256, 6]
- [16, 512, 4096, 1024, 10] - [4096, 256, 4096, 256, 6]
- [64, 512, 4096, 1024, 10] - [8192, 256, 4096, 256, 6]
- [256, 512, 4096, 1024, 10] - [16384, 256, 4096, 256, 6]
# DeepSeek-V4-Flash (E=256, H=4096) - [32768, 256, 4096, 256, 6]
- [1, 256, 4096, 2048, 6]
- [16, 256, 4096, 2048, 6]
- [64, 256, 4096, 2048, 6]
- [256, 256, 4096, 2048, 6]
shape_desc: "num_tokens, num_experts, hidden_size, intermediate_size, topk" shape_desc: "num_tokens, num_experts, hidden_size, intermediate_size, topk"
YAML YAML
+19
View File
@@ -0,0 +1,19 @@
fused_marlin_moe_mxfp4:
shapes:
- [1, 256, 4096, 256, 6]
- [2, 256, 4096, 256, 6]
- [4, 256, 4096, 256, 6]
- [8, 256, 4096, 256, 6]
- [16, 256, 4096, 256, 6]
- [32, 256, 4096, 256, 6]
- [64, 256, 4096, 256, 6]
- [128, 256, 4096, 256, 6]
- [256, 256, 4096, 256, 6]
- [512, 256, 4096, 256, 6]
- [1024, 256, 4096, 256, 6]
- [2048, 256, 4096, 256, 6]
- [4096, 256, 4096, 256, 6]
- [8192, 256, 4096, 256, 6]
- [16384, 256, 4096, 256, 6]
- [32768, 256, 4096, 256, 6]
shape_desc: "num_tokens, num_experts, hidden_size, intermediate_size, topk"