mirror of
https://github.com/deepseek-ai/DeepSeek-V3.git
synced 2025-07-04 23:41:37 -04:00
Merge 84e7789ef8
into f6e34dd267
This commit is contained in:
commit
2e5c9c182d
@ -85,7 +85,7 @@ def main(fp8_path, bf16_path):
|
|||||||
new_state_dict[weight_name] = weight
|
new_state_dict[weight_name] = weight
|
||||||
|
|
||||||
new_safetensor_file = os.path.join(bf16_path, file_name)
|
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
|
# Memory management: keep only the 2 most recently used files
|
||||||
if len(loaded_files) > 2:
|
if len(loaded_files) > 2:
|
||||||
|
Loading…
Reference in New Issue
Block a user