Skip to content
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

feat: Supporting big endian architecture. #310

Merged
merged 11 commits into from
Aug 7, 2023
Merged

feat: Supporting big endian architecture. #310

merged 11 commits into from
Aug 7, 2023

Conversation

Narsil
Copy link
Collaborator

@Narsil Narsil commented Aug 6, 2023

What does this PR do?

byteswap before saving and byteswap on read.

Superseeds #193
Fixes #307

Fixes # (issue) or description of the problem this PR solves.

`byteswap` before saving and `byteswap` on read.
@Narsil Narsil requested a review from sgugger August 6, 2023 18:40
@Narsil
Copy link
Collaborator Author

Narsil commented Aug 6, 2023

@kiszk If you could just try it out confirm it works ?

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Aug 6, 2023

The documentation is not available anymore as the PR was closed or merged.

@kiszk
Copy link
Contributor

kiszk commented Aug 6, 2023

Thanks, I will do when I will be back.

Copy link
Contributor

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for adding support!

@Narsil Narsil merged commit a4d2dda into main Aug 7, 2023
11 checks passed
@Narsil Narsil deleted the support_bigendian branch August 7, 2023 12:53
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.

load incorrect weight values from a HF model on a big-endian machine
4 participants