stanford_alpaca icon indicating copy to clipboard operation
stanford_alpaca copied to clipboard

Update the README instructions, especially the PR install command included

Open pervrosen opened this issue 1 year ago • 3 comments

Added explicit instructions.

pip uninstall transformers
pip install git+https://github.com/zphang/transformers.git@68d640f7c368bcaaaecfc678f11908ebbd3d6176

pervrosen avatar Mar 15 '23 17:03 pervrosen

We should just update requirements.txt instead. Happy to accept a PR with that change.

rtaori avatar Mar 15 '23 23:03 rtaori

Also the change in code would be needed: transformers.LlamaForCausalLM.from_pretrained and transformers.LlamaTokenizer.from_pretrained instead of AutoTokenizer, and AutoModel. Edit: Sorry, I just checked it and it works with AutoModel as well now.

AgaMiko avatar Mar 16 '23 10:03 AgaMiko

Looks like the PR got merged an hour ago. https://github.com/huggingface/transformers/pull/21955

Benhawkins18 avatar Mar 16 '23 16:03 Benhawkins18