Skip to content

Conversation

@zucchini-nlp
Copy link
Member

What does this PR do?

As per title, trying to download the image from picsum times out if we run the test many times, so I moved the image to HF hub. AFAIK we can make many subsequent requests to hub downloads when testing

@zucchini-nlp zucchini-nlp requested a review from ydshieh August 7, 2025 14:18
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@vasqu vasqu left a comment

Choose a reason for hiding this comment

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

Also seeing this in #40002 🙏

@ydshieh
Copy link
Collaborator

ydshieh commented Aug 7, 2025

AFAIK we can make many subsequent requests to hub downloads when testing

this is only valid if we are using HF's related methods I believe (something similar to from_pretrained).

When it is in user prompt, do you know what methods are used to download images? (pure python request ..?)

Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

OK, just have a question but we can check later. Thanks

@zucchini-nlp
Copy link
Member Author

Ah, then I am not sure if this helps with issues because of too many requests. The chat template script uses simple requests to download the file

@zucchini-nlp
Copy link
Member Author

Oke, let's merge and see if it becomes less flaky

@zucchini-nlp zucchini-nlp merged commit 2469cce into huggingface:main Aug 8, 2025
15 checks passed
@gante
Copy link
Member

gante commented Aug 12, 2025

PR #40000 😱

@ydshieh
Copy link
Collaborator

ydshieh commented Aug 12, 2025

Congratulation! You should tweet this!

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.

5 participants