Skip to content

Re-adding support for u16, u32, u64. #629

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

Merged
merged 1 commit into from
Jul 3, 2025
Merged

Conversation

Narsil
Copy link
Collaborator

@Narsil Narsil commented Jul 3, 2025

What does this PR do?

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

@Narsil Narsil requested a review from McPatate July 3, 2025 15:17
@HuggingFaceDocBuilderDev

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.

@Narsil Narsil merged commit 8814598 into main Jul 3, 2025
23 checks passed
@Narsil Narsil deleted the restore_uint_16_32_64_torch branch July 3, 2025 18:22
@BenjaminBossan
Copy link
Member

@Narsil What are the supported PyTorch versions? In v2.2.0, which is still supported by transformers, there is no torch.uint64, resulting in a failure to import safetensors.torch.

@surojit-ts
Copy link

@Narsil What are the supported PyTorch versions? In v2.2.0, which is still supported by transformers, there is no torch.uint64, resulting in a failure to import safetensors.torch.

Second this, I am also facing the same issue.

@zhichao-aws
Copy link

In v2.2.0, which is still supported by transformers, there is no torch.uint64, resulting in a failure to import safetensors.torch

Get the same exception when import PretrainedModel from transformers. I'm using transformers 4.44.1 and torch 2.0

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.

6 participants