Downloads · 30 days
11
2% of all-time downloads
0-hero/flan-alpaca-ul2
flan-alpaca-ul2 is a machine learning model from 0-hero. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Thanks to declare-lab for the training repository, contains code for extending the Stanford Alpaca synthetic instruction tuning to existing instruction-tuned models such as Flan-T5.
Downloads · 30 days
11
2% of all-time downloads
All-time downloads
727
Public
Repo size
158 GB
Likes
4
Public
Click a slice to open those files.
.bin78.9 GB · 100%
From the Hugging Face model README
Thanks to declare-lab for the training repository, contains code for extending the Stanford Alpaca synthetic instruction tuning to existing instruction-tuned models such as Flan-T5. The pretrained models and demos are available on HuggingFace 🤗 :
| Model | Parameters | Training GPUs |
|---|---|---|
| Flan-Alpaca-Base | 220M | 1x A6000 |
| Flan-Alpaca-Large | 770M | 1x A6000 |
| Flan-Alpaca-XL | 3B | 1x A6000 |
| Flan-Alpaca-XXL | 11B | 4x A6000 (FSDP) |
| Flan-Alpaca-UL2 | 20B | 4x A100 (80G) (FSDP) |
Alpaca represents an exciting new direction to approximate the performance of large language models (LLMs) like ChatGPT cheaply and easily. Concretely, they leverage an LLM such as GPT-3 to generate instructions as synthetic training data. The synthetic data which covers more than 50k tasks can then be used to finetune a smaller model. However, the original implementation is less accessible due to licensing constraints of the underlying LLaMA model. Furthermore, users have noted potential noise in the synthetic dataset. Hence, it may be better to explore a fully accessible model that is already trained on high-quality (but less diverse) instructions such as Flan-T5.
from transformers import pipeline
prompt = "Write an email about an alpaca that likes flan"
model = pipeline(model="0-hero/flan-alpaca-ul2")
model(prompt, max_length=128, do_sample=True)
Readme forked from declare-lab/flan-alpaca-xxl