Skip to content

Commit

Permalink
test(neuron): try to reduce download errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dacorvo committed Feb 26, 2025
1 parent be06297 commit b370902
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integration-tests/fixtures/neuron/export_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ def neuron_model_config(request):
with TemporaryDirectory() as neuron_model_path:
logger.info(f"Fetching {neuron_model_id} from the HuggingFace hub")
hub = huggingface_hub.HfApi()
hub.snapshot_download(neuron_model_id, local_dir=neuron_model_path)
hub.snapshot_download(
neuron_model_id, etag_timeout=30, local_dir=neuron_model_path
)
# Add dynamic parameters to the model configuration
model_config["neuron_model_path"] = neuron_model_path
model_config["neuron_model_id"] = neuron_model_id
Expand Down

0 comments on commit b370902

Please sign in to comment.