Skip to content

Commit 9d305fa

Browse files
committed
add a util function to resolve model path
Signed-off-by: Zhiyu Cheng <[email protected]>
1 parent 4aa4285 commit 9d305fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/llm_ptq/example_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,8 @@ def copy_custom_model_files(source_path: str, export_path: str, trust_remote_cod
364364
if not source_dir.exists():
365365
if resolved_source_path != source_path:
366366
print(
367-
f"Warning: Could not find local cache for HuggingFace model '{source_path}' (resolved to '{resolved_source_path}')"
367+
f"Warning: Could not find local cache for HuggingFace model '{source_path}' "
368+
f"(resolved to '{resolved_source_path}')"
368369
)
369370
else:
370371
print(f"Warning: Source directory '{source_path}' does not exist")

0 commit comments

Comments
 (0)