Skip to content

[lit][examples] Prevent hanging on HF model download - #300

Merged
adam-smnk merged 1 commit into
llvm:mainfrom
adam-smnk:examples-hub-load-timeout
Oct 9, 2026
Merged

adam-smnk merged 1 commit into
llvm:mainfrom
adam-smnk:examples-hub-load-timeout

Conversation

@adam-smnk

Copy link
Copy Markdown
Member

Allows lit to keep env var network proxy settings. Also, adds a graceful timeout to HF example in case of problems during model download.

Setups where network is gated through proxy can get stuck on the hugging face example which downloads a model.
Changes make the test setup more robust to avoid unbound run times.

Allows lit to keep env var network proxy settings.
Also, adds a graceful timeout to HF example in case of problems during
model download.

Setups where network is gated through proxy can get stuck on the
hugging face example which downloads a model.
Changes make the test setup more robust to avoid unbound run times.
@adam-smnk
adam-smnk requested a review from rengolin October 9, 2026 13:36
@adam-smnk

Copy link
Copy Markdown
Member Author

I ran into issue where the hub_load.py test would hang (over 200s before cancelling) on our nodes due to connection through proxy.
This fix seems to help.

@adam-smnk
adam-smnk merged commit fb5220b into llvm:main Oct 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants