4AI / LS-LLaMA

A Simple but Powerful SOTA NER Model | Official Code For Label Supervised LLaMA Finetuning
https://arxiv.org/abs/2310.01208
MIT License
131 stars 20 forks source link

downgraded to transformers 4.32.1 still got error #12

Closed qiuhaolu closed 7 months ago

qiuhaolu commented 7 months ago

RuntimeError: Failed to import transformers.trainer because of the following error (look up to see its traceback): cannot import name 'is_fairscale_available' from 'transformers.integrations'

qiuhaolu commented 7 months ago

solved

DavidLi1111 commented 6 months ago

I recently encountered the same issue. Could you share your solution to fix this problem?

qiuhaolu commented 6 months ago

I recently encountered the same issue. Could you share your solution to fix this problem?

I clean installed the specific version of transformers.

DavidLi1111 commented 6 months ago

Thank you for sharing your solution. I found that updating the transformers to version 4.35 or higher resolved the problem.