22-hours / cabrita

Finetuning InstructLLaMA with portuguese data
Apache License 2.0
556 stars 67 forks source link

I am getting error at "from transformers import AutoTokenizer, AutoConfig, LLaMAForCausalLM, LLaMATokenizer" #6

Open sungkim11 opened 1 year ago

sungkim11 commented 1 year ago

ImportError: cannot import name 'LLaMAForCausalLM' from 'transformers' (/usr/local/lib/python3.9/dist-packages/transformers/init.py)

Whadup commented 1 year ago

Yeah, they changed around which letters are capitalized, currently it's LlamaForCausalLM

stefangrotz commented 1 year ago

This took me a long time, thanks.

Currently its LlamaForCausalLM and LlamaTokenizer