Skip to content

Conversation

@mikaylagawarecki
Copy link
Contributor

@mikaylagawarecki mikaylagawarecki commented Dec 11, 2025

Error message

*** RuntimeError: PytorchStreamReader failed reading file .format_version: invalid header or archive is corrupted. This is an internal miniz error. If you are seeing this error, there is a high likelihood that your checkpoint file is corrupted. This can happen if the checkpoint was not saved properly, was transferred incorrectly, or the file was modified after saving.

Stack from ghstack (oldest at bottom):

cc @albanD

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 11, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 42c3c1b with merge base c744313 (image):
💚 Looks good so far! There are no failures yet. 💚

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

mikaylagawarecki added a commit that referenced this pull request Dec 11, 2025
…upt checkpoint

ghstack-source-id: 5d7daba
Pull Request resolved: #170244
…dicate corrupt checkpoint"

[ghstack-poisoned]
mikaylagawarecki added a commit that referenced this pull request Dec 11, 2025
…upt checkpoint

ghstack-source-id: ada53f1
Pull Request resolved: #170244
…dicate corrupt checkpoint"

Error message

```
*** RuntimeError: PytorchStreamReader failed reading file .format_version: invalid header or archive is corrupted. This is an internal miniz error. If you are seeing this error, there is a high likelihood that your checkpoint file is corrupted. This can happen if the checkpoint was not saved properly, was transferred incorrectly, or the file was modified after saving.
```




[ghstack-poisoned]
mikaylagawarecki added a commit that referenced this pull request Dec 12, 2025
…upt checkpoint

ghstack-source-id: d66bfa2
Pull Request resolved: #170244
@mikaylagawarecki mikaylagawarecki changed the title Make it explicit that PyTorchStreamReader errors likely indicate corrupt checkpoint Make it explicit that PyTorchStreamReader miniz errors likely indicate corrupt checkpoint Dec 15, 2025
@mikaylagawarecki mikaylagawarecki marked this pull request as ready for review December 15, 2025 20:22
@mikaylagawarecki mikaylagawarecki added module: python frontend For issues relating to PyTorch's Python frontend release notes: python_frontend python frontend release notes category topic: improvements topic category and removed module: python frontend For issues relating to PyTorch's Python frontend labels Dec 15, 2025
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

Thanks!

@mikaylagawarecki
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 15, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Dec 17, 2025
…e corrupt checkpoint (pytorch#170244)

Error message

```
*** RuntimeError: PytorchStreamReader failed reading file .format_version: invalid header or archive is corrupted. This is an internal miniz error. If you are seeing this error, there is a high likelihood that your checkpoint file is corrupted. This can happen if the checkpoint was not saved properly, was transferred incorrectly, or the file was modified after saving.
```

Pull Request resolved: pytorch#170244
Approved by: https://github.com/albanD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: python_frontend python frontend release notes category topic: improvements topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants