Unverified Commit fd353a6f authored by Arthur's avatar Arthur Committed by GitHub
Browse files

Update convert_to_singleton.py

Delete temp file saving
1 merge request!181Update convert_to_singleton.py
Pipeline #12 failed with stages
in 0 seconds
Showing with 0 additions and 4 deletions
+0 -4
......@@ -93,10 +93,6 @@ def worker_main(cfg: MetaseqConfig):
if dist_utils.get_global_rank() == 0:
glued = glue_megatron_parts(model_parts)
with open("temp.pt", "wb") as f:
torch.save(glued, f)
glued["decoder.version"] = torch.tensor([3])
if "decoder.output_projection.weight" in glued:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment