Skip to content

Use safe_open in HF consolidation #159395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: gh/ankitageorge/17/base
Choose a base branch
from

Conversation

ankitageorge
Copy link
Contributor

@ankitageorge ankitageorge commented Jul 29, 2025

Use safe_open to read tensors for HF consolidation instead of reading the bytes with f.read() which is having worse performance.

Differential Revision: [D79105491](https://our.internmc.facebook.com/intern/diff/D79105491/)

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Jul 29, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/159395

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 1c4ecd5 with merge base f89c28c (image):

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (checkpoint) labels Jul 29, 2025
ankitageorge added a commit that referenced this pull request Jul 29, 2025
Use safe_open to read tensors for HF consolidation instead of reading the bytes with f.read() which is having worse performance.

Differential Revision: [D79105491](https://our.internmc.facebook.com/intern/diff/D79105491/)

ghstack-source-id: 299325606
Pull Request resolved: #159395
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79105491

Use safe_open to read tensors for HF consolidation instead of reading the bytes with f.read() which is having worse performance.

Differential Revision: [D79105491](https://our.internmc.facebook.com/intern/diff/D79105491/)

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta

[ghstack-poisoned]
ankitageorge added a commit that referenced this pull request Aug 1, 2025
Pull Request resolved: #159395

Use safe_open to read tensors for HF consolidation instead of reading the bytes with f.read() which is having worse performance.
ghstack-source-id: 300123326
@exported-using-ghexport

Differential Revision: [D79105491](https://our.internmc.facebook.com/intern/diff/D79105491/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79105491

Use safe_open to read tensors for HF consolidation instead of reading the bytes with f.read() which is having worse performance.

Differential Revision: [D79105491](https://our.internmc.facebook.com/intern/diff/D79105491/)

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta

[ghstack-poisoned]
ankitageorge added a commit that referenced this pull request Aug 1, 2025
Pull Request resolved: #159395

Use safe_open to read tensors for HF consolidation instead of reading the bytes with f.read() which is having worse performance.
ghstack-source-id: 300135655
@exported-using-ghexport

Differential Revision: [D79105491](https://our.internmc.facebook.com/intern/diff/D79105491/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79105491

Use safe_open to read tensors for HF consolidation instead of reading the bytes with f.read() which is having worse performance.

Differential Revision: [D79105491](https://our.internmc.facebook.com/intern/diff/D79105491/)

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta

[ghstack-poisoned]
ankitageorge added a commit that referenced this pull request Aug 1, 2025
Pull Request resolved: #159395

Use safe_open to read tensors for HF consolidation instead of reading the bytes with f.read() which is having worse performance.
ghstack-source-id: 300147538
@exported-using-ghexport

Differential Revision: [D79105491](https://our.internmc.facebook.com/intern/diff/D79105491/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79105491

Use safe_open to read tensors for HF consolidation instead of reading the bytes with f.read() which is having worse performance.

Differential Revision: [D79105491](https://our.internmc.facebook.com/intern/diff/D79105491/)

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta

[ghstack-poisoned]
ankitageorge added a commit that referenced this pull request Aug 1, 2025
Pull Request resolved: #159395

Use safe_open to read tensors for HF consolidation instead of reading the bytes with f.read() which is having worse performance.
ghstack-source-id: 300161454
@exported-using-ghexport

Differential Revision: [D79105491](https://our.internmc.facebook.com/intern/diff/D79105491/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79105491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fb-exported oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (checkpoint)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants