Skip to content

feat: bump safetensors to 0.8.0#46523

Open
McPatate wants to merge 2 commits into
mainfrom
feat/bump_safetensors
Open

feat: bump safetensors to 0.8.0#46523
McPatate wants to merge 2 commits into
mainfrom
feat/bump_safetensors

Conversation

@McPatate

@McPatate McPatate commented Jun 9, 2026

Copy link
Copy Markdown
Member

cf release notes for more deets

general idea: fast mps load thanks to loading weights via native MTLBuffers and handing them off to torch via dlpack (0-copy!) -> 2-3x perf on my setup for loading models when torch>=2.9 + fixes duplicate memory footprint causing OOMs.

Signed-off-by: Luc Georges <luc.sydney.georges@gmail.com>
@McPatate McPatate requested a review from ArthurZucker June 9, 2026 13:41
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

CI Dashboard: View test results in Grafana

@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.

@ArthurZucker ArthurZucker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice!!!!!!!!! 🚀 Will wait next release to merge I think so its on main for a small bit!

@stevhliu stevhliu 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.

very cool! it'd be nice to add a few sentences about this in https://huggingface.co/docs/transformers/main/en/perf_train_special as well :)

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.

4 participants