Skip to content

Commit

Permalink
fixes and cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jenahwang committed Oct 26, 2024
1 parent 4a32be0 commit 2dc26a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 55 deletions.
39 changes: 0 additions & 39 deletions guided-trout-2f805b9.yaml

This file was deleted.

13 changes: 4 additions & 9 deletions hf_olmo/convert_olmo_to_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,6 @@ def main():
help="Keep olmo-specific artifacts in the checkpoint.",
)

parser.add_argument(
"--cleanup-local-dir",
action="store_true",
help="Remove local download of the directory."
)

args = parser.parse_args()

args.destination_dir = args.destination_dir or args.checkpoint_dir
Expand All @@ -314,9 +308,10 @@ def main():
upload_local_checkpoint(local_checkpoint_dir, args.destination_dir)

print(f"Converted checkpoint saved to {args.destination_dir}")
if args.cleanup_local_dir:
print(f"Removing temporary local dir: {local_checkpoint_dir}")
shutil.rmtree(local_checkpoint_dir)

# remove local dir copy
print(f"Removing temporary local dir: {local_checkpoint_dir}")
shutil.rmtree(local_checkpoint_dir)


if __name__ == "__main__":
Expand Down
7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

0 comments on commit 2dc26a9

Please sign in to comment.