Merge 84e7789ef8c79af12c3d2414a1610252c0469082 into 9b4e9788e4a3a731f7567338ed15d3ec549ce03b

This commit is contained in:
Yanyue Xie 2025-09-01 14:01:22 +00:00 committed by GitHub
commit 3facb6e7c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ def main(fp8_path, bf16_path):
new_state_dict[weight_name] = weight
new_safetensor_file = os.path.join(bf16_path, file_name)
save_file(new_state_dict, new_safetensor_file)
save_file(new_state_dict, new_safetensor_file, metadata={"format": "pt"})
# Memory management: keep only the 2 most recently used files
if len(loaded_files) > 2: