Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid the HTTP Error 403: rate limit exceeded error #7155

Merged
merged 2 commits into from Apr 25, 2024
Merged

Conversation

krishung5
Copy link
Contributor

This PR fixes the HTTP errors occurring in the L0_model_control_stress test, which were caused by extensive access to torch.hub during model loading

E0423 06:25:10.553733 50667 model_lifecycle.cc:638] failed to load 'resnet50_python' version 1: Internal: HTTPError: HTTP Error 403: rate limit exceeded

At:
  /usr/lib/python3.10/urllib/request.py(643): http_error_default
  /usr/lib/python3.10/urllib/request.py(496): _call_chain
  /usr/lib/python3.10/urllib/request.py(563): error
  /usr/lib/python3.10/urllib/request.py(634): http_response
  /usr/lib/python3.10/urllib/request.py(525): open
  /usr/lib/python3.10/urllib/request.py(216): urlopen
  /usr/local/lib/python3.10/dist-packages/torch/hub.py(164): _read_url
  /usr/local/lib/python3.10/dist-packages/torch/hub.py(181): _validate_not_a_forked_repo
  /usr/local/lib/python3.10/dist-packages/torch/hub.py(222): _get_cache_or_reload
  /usr/local/lib/python3.10/dist-packages/torch/hub.py(555): load
  /opt/tritonserver/qa/L0_model_control_stress/models/resnet50_python/1/model.py(42): initialize

@krishung5 krishung5 marked this pull request as ready for review April 25, 2024 03:00
Copy link
Contributor

@oandreeva-nv oandreeva-nv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@krishung5 krishung5 merged commit e89a037 into main Apr 25, 2024
3 checks passed
@krishung5 krishung5 deleted the krish-mcs-python branch April 25, 2024 18:27
@krishung5 krishung5 restored the krish-mcs-python branch April 25, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants