Skip to content

Commit

Permalink
Merge branch 'saaketh/tok_encodings' of github.com-me:mosaicml/llm-fo…
Browse files Browse the repository at this point in the history
…undry into saaketh/tok_encodings

merging main
  • Loading branch information
snarayan21 committed Jun 6, 2024
2 parents 8a9bb68 + 7c8fb91 commit bf95e9e
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 bf95e9e

Please sign in to comment.