fix: change qwen 3.5 linear attention a_log to fp32 (#19961)

Co-authored-by: sunqi.7 <sunqi.7@bytedance.com>
This commit is contained in:
shiyu7
2026-03-17 22:42:06 -07:00
committed by GitHub
co-authored by sunqi.7
parent 88c40ec16d
commit 0acc1d3c9a
+1 -1
View File
@@ -193,7 +193,7 @@ class Qwen3_5GatedDeltaNet(nn.Module):
torch.ones(self.num_v_heads // self.attn_tp_size),
)
self.A_log = nn.Parameter(
torch.empty(self.num_v_heads // self.attn_tp_size),
torch.empty(self.num_v_heads // self.attn_tp_size, dtype=torch.float32),
)
set_weight_attrs(self.A_log, {"weight_loader": sharded_weight_loader(0)})