Skip to content

Commit b70947b

Browse files
committed
Use logging for parallel weight downloads
Avoid writing directly to stdout from the shared integration weight loader so applications can configure download status verbosity. Co-authored-by: Copilot <[email protected]> Copilot-Session: 39ff6824-d35f-4d3b-8f5f-043a7119a100 Signed-off-by: GitHub Copilot <[email protected]>
1 parent a60cf42 commit b70947b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/mobius/integrations/_weight_loading.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _parallel_download(
175175
kwargs["revision"] = revision
176176
return [hf_hub_download(filename=f, **kwargs) for f in filenames]
177177

178-
print(f"Downloading {len(filenames)} {desc} files (parallel)...")
178+
logger.info("Downloading %d %s files in parallel", len(filenames), desc)
179179
path_map: dict[str, str] = {}
180180
with concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
181181
kwargs = {"repo_id": model_id}

0 commit comments

Comments
 (0)