Comments (7)
I fixed the problem by upgrading the package: charset-normalizer
from transformers.
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.
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.
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.
@junchen14 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.
@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.
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)
- [i18n-<languageCode>] Translating docs to <languageName>spañol HOT 1
- apply_chat_template method not working correctly for llama 3 tokenizer HOT 4
- Trainer has stuck during the code block of "Trainer.train" in Jupyter Notebook HOT 1
- llama3 position_ids error with left padding HOT 2
- Mode-aware chat templates for distinct training and inference behaviors HOT 3
- XLMRobertaTokenizer attribute has disappeared from transformers.models.xlm_roberta HOT 1
- how to fine tune TrOCR on specifique langage guide. HOT 1
- Incorrect logits shape for GIT model (microsoft/git-base-textvqa) HOT 2
- ValueError: Unrecognized model. Should have a model_type key in its config.json HOT 1
- Can not detect bitsandbytes-windows HOT 4
- Using multi GPU fails with AutoModelForCausalLM quantization_config=quantization_config HOT 2
- Add multi image prompts to multimodal LLMs that support it (PaliGemma) HOT 3
- How to get the score of each token when using pipeline HOT 1
- Covert chemaleon weights to hf, ImportError HOT 1
- Clarification on Classification Token. HOT 1
- ValueError: No columns in the dataset match the model's forward method signature when using SFTTrainer and DataParallel. HOT 1
- Training on Teacher model logits
- Is it possible to add L1/L2 regularization using the trainer class ? HOT 3
- Extend Fx supported models with KV cache HOT 1
- Potential RMSNorm precision issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transformers.