huggingface / transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
https://huggingface.co/transformers
Apache License 2.0
133.23k stars 26.61k forks source link

bug in run_finetune #10575

Closed dorost1234 closed 3 years ago

dorost1234 commented 3 years ago

Environment info

Who can help

@patrickvonplaten, @patil-suraj

Information

I am running run_seq2seq.py getting

ImportError: cannot import name 'is_offline_mode' from 'transformers.file_utils'

To reproduce

Steps to reproduce the behavior:

python run_seq2seq.py

thnaks

dorost1234 commented 3 years ago

sorry my mistake to use last version of examples

kscp123 commented 2 years ago

hi how you solved this. i also face this error. i can't find "is_offline_mode" and "get_full_repo_name" under transformers.utils. i use https://github.com/huggingface/transformers/tree/main/examples/pytorch/summarization

patil-suraj commented 2 years ago

This should work if you are using transformers master/main

BitCalSaul commented 10 months ago

https://github.com/huggingface/transformers/tree/main/examples/pytorch/summarization

I miss the same issue. How do you solve it?