add missing comma

This commit is contained in:
Teo 2025-07-10 16:21:42 +09:00
parent 2461a537dd
commit e7d3c003ec

View File

@ -548,7 +548,7 @@ def main():
# torch.save(avg_checkpoint, filename)
else:
checkpoint = torch.load(
f"{params.exp_dir}/epoch-{params.epoch}/pytorch_model.bin", weights_only=False
f"{params.exp_dir}/epoch-{params.epoch}/pytorch_model.bin", weights_only=False,
map_location="cpu",
)
model.load_state_dict(checkpoint, strict=False)