Remove padding_index from models that don't use it for better Transformers v5 compatibility (#35189)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2026-02-24 08:04:46 -08:00
committed by GitHub
parent 60da0e1544
commit c38b8d5a31
14 changed files with 0 additions and 14 deletions
-1
View File
@@ -451,7 +451,6 @@ class Grok1Model(nn.Module):
self.config = config
self.quant_config = quant_config
self.padding_idx = config.pad_token_id
# Store expert naming for weight loading
self.ckpt_gate_proj_name = ckpt_gate_proj_name