Skip to content

Modify bfloat16 handling in safetensors_loader.py to properly convert Torch bfloat16 views into numpy/JAX arrays. - #2016

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_971601282
Aug 28, 2026
Merged

Modify bfloat16 handling in safetensors_loader.py to properly convert Torch bfloat16 views into numpy/JAX arrays. #2016
copybara-service[bot] merged 1 commit into
mainfrom
test_971601282

Conversation

@copybara-service

Copy link
Copy Markdown

Modify bfloat16 handling in safetensors_loader.py to properly convert Torch bfloat16 views into numpy/JAX arrays.

This fixes type conversion errors encountered when loading model checkpoint files containing bfloat16 tensors.

@google-cla

google-cla Bot commented Aug 27, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…vert Torch bfloat16 views into numpy/JAX arrays.

This fixes type conversion errors encountered when loading model checkpoint files containing bfloat16 tensors.

PiperOrigin-RevId: 972660971
@copybara-service
copybara-service Bot merged commit 51ed6dc into main Aug 28, 2026
3 of 4 checks passed
@copybara-service
copybara-service Bot deleted the test_971601282 branch August 28, 2026 17:27
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.

1 participant