Skip to content

Conversation

@Cyrilvallez
Copy link
Member

@Cyrilvallez Cyrilvallez commented Nov 21, 2025

What does this PR do?

As per the title. We need to sort first by modules, then length otherwise we may not detect the correct device.
I first wanted to add it in #42242, but upstreaming in the meantime as this is an important one (otherwise, param do not follow the device_map, leading to OOMs everywhere potentially etc)

@Cyrilvallez Cyrilvallez merged commit 4799952 into main Nov 21, 2025
22 of 24 checks passed
@Cyrilvallez Cyrilvallez deleted the fix-loading branch November 21, 2025 12:20
@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.

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.

3 participants