[CI] Avoid unnecessary Hugging Face metadata requests (#49508)

Signed-off-by: Andreas Karatzas <Andreas.Karatzas@amd.com>
This commit is contained in:
Andreas Karatzas
2026-07-24 12:33:53 -07:00
committed by GitHub
parent 9863102ed9
commit 7e51939e25
2 changed files with 7 additions and 4 deletions
@@ -220,7 +220,7 @@ class DefaultModelLoader(BaseModelLoader):
# safetensors file. Using both breaks.
# Here, we download the `model.safetensors.index.json` and filter
# any files not found in the index.
if not is_local:
if not is_local and len(hf_weights_files) > 1:
download_safetensors_index_file_from_hf(
model_name_or_path,
index_file,