Skip to content

Conversation

@DN6
Copy link
Collaborator

@DN6 DN6 commented Nov 18, 2025

What does this PR do?

Addressed some of the issues brought up in #12599. Using mmaped safetensors on networked volumes can lead to very slow load/device transfer times. More context: huggingface/safetensors#562 (comment)

We have the disable_mmap option for single file and models to skip using safetensors default mmaped loading, but didn't add it to from_pretrained in pipelines.

Fixes # (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@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