System Info
transformers==4.38.2
torch==2.2.1
rtx 3090 * 4 and cuda 12.1
Who can help?
@muellerz @pacman100 @stevhliu
Information
Tasks
Reproduction
- run https://github.com/huggingface/transformers/tree/main/examples/pytorch/language-modeling 's run_clm.py
- use this script
python run_clm.py \
--model_name_or_path openai-community/gpt2 \
--dataset_name wikitext \
--dataset_config_name wikitext-2-raw-v1 \
--per_device_train_batch_size 8 \
--per_device_eval_batch_size 8 \
--do_train \
--do_eval \
--output_dir /tmp/test-clm
- raised error like
cannot import name 'is_torch_xla_available' from 'transformers' at 49 line
Expected behavior
import is success
System Info
transformers==4.38.2
torch==2.2.1
rtx 3090 * 4 and cuda 12.1
Who can help?
@muellerz @pacman100 @stevhliu
Information
Tasks
examplesfolder (such as GLUE/SQuAD, ...)Reproduction
python run_clm.py \ --model_name_or_path openai-community/gpt2 \ --dataset_name wikitext \ --dataset_config_name wikitext-2-raw-v1 \ --per_device_train_batch_size 8 \ --per_device_eval_batch_size 8 \ --do_train \ --do_eval \ --output_dir /tmp/test-clmcannot import name 'is_torch_xla_available' from 'transformers'at 49 lineExpected behavior
import is success