Giter Site home page Giter Site logo

Comments (7)

junchen14 avatar junchen14 commented on August 28, 2024 4

I fixed the problem by upgrading the package: charset-normalizer

from transformers.

amyeroberts avatar amyeroberts commented on August 28, 2024

Hi @junchen14, thanks for reporting this issue!

Could you:

  • Share the full error traceback?
  • Share the version of transformers, torch and huggingface_hub in your environment?
import transformers, huggingface_hub, torch

print(transformers.__version__)
print(huggingface_hub.__version__)
print(torch.__version__)

from transformers.

SophonTec avatar SophonTec commented on August 28, 2024

Similar ImportError:
ImportError: cannot import name 'get_full_repo_name' from 'huggingface_hub' (/home/sophon/.local/lib/python3.11/site-packages/huggingface_hub/init.py)

Name: transformers
Version: 4.42.3
Name: torch
Version: 2.3.1
Name: huggingface-hub
Version: 0.23.4

from transformers.

LysandreJik avatar LysandreJik commented on August 28, 2024

Hey @SophonTec, this seems to point towards an error in your environment; the get_full_repo_name method is indeed present in huggingface_hub, see:

>>> from huggingface_hub import __version__
>>> __version__
'0.23.0.dev0'
>>> from huggingface_hub import get_full_repo_name
>>>

Is it possible you have a huggingface_hub folder in your environment?

from transformers.

jiangzongjie avatar jiangzongjie commented on August 28, 2024

@junchen14 I also met the same problem yesterday. I suggest you try the following step,and see if it can solve your problem:

  1. conda create -n qwen1.5 python=3.11
  2. conda install pytorch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 pytorch-cuda=12.1 -c pytorch -c nvidia
  3. python -m pip install --upgrade pip
  4. pip install packaging
  5. pip install transformers
  6. pip install accelerate
  7. pip install sentencepiece
    holp it can work

from transformers.

jiangzongjie avatar jiangzongjie commented on August 28, 2024

@SophonTec I also met the same problem yesterday. I suggest you try the following step,and see if it can solve your problem:

conda create -n qwen1.5 python=3.11
conda install pytorch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 pytorch-cuda=12.1 -c pytorch -c nvidia
python -m pip install --upgrade pip
pip install packaging
pip install transformers
pip install accelerate
pip install sentencepiece
holp it can work

from transformers.

github-actions avatar github-actions commented on August 28, 2024

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

from transformers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.