Skip to content

[BUG] Not able to download model through HuggingFace #532

@rahulb99

Description

@rahulb99

Describe the bug

Getting the following error:

ImportError: cannot import name 'is_torch_greater_or_equal_than_1_13' from 'transformers.pytorch_utils' (/home/user/miniconda3/envs/venv/lib/python3.12/site-packages/transformers/pytorch_utils.py). Did you mean: 'is_torch_greater_or_equal_than_2_1'?

To Reproduce

Following the code example on https://huggingface.co/deepseek-ai/DeepSeek-V3

# Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("deepseek-ai/DeepSeek-V3", trust_remote_code=True)

Additional context
Refer to this PR: huggingface/transformers#35734

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions