#43579 [Bugfix][Model] Fix GPT2ForSequenceClassification sub-module prefix
原始 PR · 作者 QingZhou-YangHY · 合并时间 2026-05-26 13:43
修复 GPT2ForSequenceClassification 权重加载前缀错误
该 PR 值得合并,修复明确且符合预期。建议读者关注 `_add_transformer_prefix` 函数的排除模式,它反映了一种可复用的权重前缀转换模式,未来其他模型若使用 `AutoWeightsLoader` 并存在类似直接子模块时,可借鉴此模式。
参与讨论