Skip to content

Commit

Permalink
Fix MPT HF conversion (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg authored Jun 6, 2024
1 parent ac56dc5 commit 67928cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llmfoundry/utils/huggingface_hub_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ def edit_files_for_hf_compatibility(
for f in files_processed_and_queued
}
for entrypoint in entrypoint_files:
file_path = os.path.join(folder, entrypoint)
if not os.path.exists(file_path):
continue
existing_relative_imports = get_all_relative_imports(
os.path.join(folder, entrypoint),
)
Expand Down

0 comments on commit 67928cb

Please sign in to comment.