Skip to content

Commit 2412b59

Browse files
authored
Avoid circular import in hf checkpointer (#1304)
1 parent ef14849 commit 2412b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llmfoundry/utils/huggingface_hub_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def edit_files_for_hf_compatibility(
279279
# Filter out __init__ files
280280
all_relative_imports = {
281281
relative_import for relative_import in all_relative_imports
282-
if relative_import != '__init__'
282+
if relative_import not in {'__init__', 'modeling_mpt'}
283283
}
284284
for entrypoint in entrypoint_files:
285285
file_path = os.path.join(folder, entrypoint)

0 commit comments

Comments
 (0)