Open koolkao opened 1 year ago
please update your transformers
Thank you! I believe I have successfully installed transformers via this line in requirements.txt: git+https://github.com/huggingface/transformers.git However a search of that Huggingface repository finds no mention of
LlamaForCausalLM
Is there somewhere else I should go to update transformers?
thank you
Simply
pip uninstall transformers
pip install transformers
thank you I appreciate your response. I uninstalled/installed several times to the latest version 4.27.4, and unfortunately still getting the same error
You can try install from source! Following this page: https://huggingface.co/docs/transformers/installation#installing-from-source or try pip install git+https://github.com/huggingface/transformers.git
However a search of that Huggingface repository finds no mention of
LlamaForCausalLM
New to the world of LLMs. I've been playing with the Baize Huggingface demo--it gives great responses!
I'd like to install it on my machine but after a clean install with successful pip install, app.py gives this error:
cannot import name 'LlamaForCausalLM' from 'transformers'
Any guidance is appreciated, thank you!