revert: 移除 2:4 稀疏(PCOC 2.067 + 耗时反增 265s,to_sparse_semi_structured 与 nn.Linear 不兼容)

回退到稳定版:FP16 + Flash Attention + inference_mode(57.45 分)
This commit is contained in:
2026-06-13 12:34:29 +08:00
parent e6519b7b1a
commit e69ba714e5
2 changed files with 4 additions and 24 deletions
+3 -2
View File
@@ -167,7 +167,7 @@ Baseline 数据:推理 229sAUC 0.759PCOC 1.110,得分 25.85。
4.**inference_mode()** — 替代 `no_grad()`92.5s+2s 小幅提升)
5.**torch.compile** — reduce-overhead 和 default 模式均因动态 batch 形状反效果,彻底放弃
6.**MoE Top-1 gating** — PCOC 从 1.059 炸到 2.075,已回退
7. 🔲 **2:4 结构化稀疏**A800 原生加速,权重形状不变(显式允许)
7. **2:4 结构化稀疏**PCOC 炸到 2.067,耗时反增 265s。to_sparse_semi_structured 与 nn.Linear 不兼容
CUDA Graph 已评估并放弃(batch 形状不固定,不适用)。
@@ -190,8 +190,9 @@ CUDA Graph 已评估并放弃(batch 形状不固定,不适用)。
| 日期 | 提交次数 | 得分 | AUC | PCOC | 耗时 | 优化手段 | 备注 |
|------|----------|------|-----|------|------|----------|------|
| 06/13 | 11 | 0 | 0.748 | 2.067 | 265.5s | 2:4 sparse | ❌ 炸毁 |
| 06/13 | 10 | **57.45** | 0.7526 | 1.059 | 92.5s | + inference_mode | **当前最优** |
| 06/13 | 9 | 51.42 | 0.7525 | 1.059 | 118.4s | + compile(default) | 反效果,已移除 |
| 06/13 | 9 | 51.42 | 0.7525 | 1.059 | 118.4s | + compile(default) | 反效果 |
| 06/12 | 8 | 0 | 0.736 | 2.075 | 119.6s | MoE k=1 + compile | PCOC 炸毁 |
| 06/12 | 6 | 56.98 | 0.7526 | 1.059 | 94.5s | + Flash Attention | |
| 06/12 | 3 | 43.55 | 0.7525 | 1.059 | 152s | + FP16 量化 | |