[Bugfix] Fix weight loading issue by rename variable. (#8293)

This commit is contained in:
Wenxiang 2024-09-13 07:25:00 +08:00 committed by GitHub
parent d31174a4e1
commit a480939e8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -600,7 +600,7 @@ class PhiMoEForCausalLM(nn.Module, SupportsLoRA):
weight_loader(
param,
loaded_weight,
weight_name,
name,
shard_id=shard_id,
expert_id=expert_id,
)