Skip to content

align snapshot_download to respect hfh latest version#14118

Draft
sayakpaul wants to merge 3 commits into
mainfrom
hfh-snapshot-download-fix
Draft

align snapshot_download to respect hfh latest version#14118
sayakpaul wants to merge 3 commits into
mainfrom
hfh-snapshot-download-fix

Conversation

@sayakpaul

Copy link
Copy Markdown
Member

What does this PR do?

Fixes #14117

@BenjaminBossan does this work for you?

@BenjaminBossan

Copy link
Copy Markdown
Member

The PEFT tests succeed on this branch, thanks a lot.

(reminder to myself: testing with pytest "tests/test_stablediffusion.py::TestStableDiffusionModel::test_disable_adapter" "tests/test_tuners_utils.py::TestPeftCustomKwargs::test_maybe_include_all_linear_layers_diffusion" -v)

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

@sayakpaul sayakpaul requested a review from BenjaminBossan July 3, 2026 16:07
@sayakpaul sayakpaul marked this pull request as draft July 3, 2026 16:25

@BenjaminBossan BenjaminBossan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I can't comment on the logic of the fix, but it resolves the PEFT errors. Thanks.

lambda image_url_or_path: load_image(image_url_or_path)
if urlparse(image_url_or_path).scheme
else Image.open(image_url_or_path).convert("RGB")
lambda image_url_or_path: (

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes seem to be unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DiffusionPipeline.download() breaks with huggingface_hub>=1.22.0 in offline mode (IncompleteSnapshotError)

3 participants