declare-lab / flan-alpaca-base

huggingface.co
Total runs: 541
24-hour runs: 0
7-day runs: -749
30-day runs: -1.5K
Model's Last Updated: August 21 2023
text-generation

Introduction of flan-alpaca-base

Model Details of flan-alpaca-base

🍮 🦙 Flan-Alpaca: Instruction Tuning from Humans and Machines

📣 Introducing Red-Eval to evaluate the safety of the LLMs using several jailbreaking prompts. With Red-Eval one could jailbreak/red-team GPT-4 with a 65.1% attack success rate and ChatGPT could be jailbroken 73% of the time as measured on DangerousQA and HarmfulQA benchmarks. More details are here: Code and Paper .

📣 We developed Flacuna by fine-tuning Vicuna-13B on the Flan collection. Flacuna is better than Vicuna at problem-solving. Access the model here https://huggingface.co/declare-lab/flacuna-13b-v1.0 .

📣 Curious to know the performance of 🍮 🦙 Flan-Alpaca on large-scale LLM evaluation benchmark, InstructEval ? Read our paper https://arxiv.org/pdf/2306.04757.pdf . We evaluated more than 10 open-source instruction-tuned LLMs belonging to various LLM families including Pythia, LLaMA, T5, UL2, OPT, and Mosaic. Codes and datasets: https://github.com/declare-lab/instruct-eval

📣 FLAN-T5 is also useful in text-to-audio generation. Find our work at https://github.com/declare-lab/tango if you are interested.

Our repository contains code for extending the Stanford Alpaca synthetic instruction tuning to existing instruction-tuned models such as Flan-T5 . We have a live interactive demo thanks to Joao Gante ! We are also benchmarking many instruction-tuned models at declare-lab/flan-eval . Our pretrained models are fully available on HuggingFace 🤗 :

*recommended for better performance

Why?

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 .

Usage
from transformers import pipeline

prompt = "Write an email about an alpaca that likes flan"
model = pipeline(model="declare-lab/flan-alpaca-gpt4-xl")
model(prompt, max_length=128, do_sample=True)

# Dear AlpacaFriend,
# My name is Alpaca and I'm 10 years old.
# I'm excited to announce that I'm a big fan of flan!
# We like to eat it as a snack and I believe that it can help with our overall growth.
# I'd love to hear your feedback on this idea. 
# Have a great day! 
# Best, AL Paca

Runs of declare-lab flan-alpaca-base on huggingface.co

541
Total runs
0
24-hour runs
-125
3-day runs
-749
7-day runs
-1.5K
30-day runs

More Information About flan-alpaca-base huggingface.co Model

More flan-alpaca-base license Visit here:

https://choosealicense.com/licenses/apache-2.0

flan-alpaca-base huggingface.co

flan-alpaca-base huggingface.co is an AI model on huggingface.co that provides flan-alpaca-base's model effect (), which can be used instantly with this declare-lab flan-alpaca-base model. huggingface.co supports a free trial of the flan-alpaca-base model, and also provides paid use of the flan-alpaca-base. Support call flan-alpaca-base model through api, including Node.js, Python, http.

declare-lab flan-alpaca-base online free

flan-alpaca-base huggingface.co is an online trial and call api platform, which integrates flan-alpaca-base's modeling effects, including api services, and provides a free online trial of flan-alpaca-base, you can try flan-alpaca-base online for free by clicking the link below.

declare-lab flan-alpaca-base online free url in huggingface.co:

https://huggingface.co/declare-lab/flan-alpaca-base

flan-alpaca-base install

flan-alpaca-base is an open source model from GitHub that offers a free installation service, and any user can find flan-alpaca-base on GitHub to install. At the same time, huggingface.co provides the effect of flan-alpaca-base install, users can directly use flan-alpaca-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

flan-alpaca-base install url in huggingface.co:

https://huggingface.co/declare-lab/flan-alpaca-base

Url of flan-alpaca-base

flan-alpaca-base huggingface.co Url

Provider of flan-alpaca-base huggingface.co

declare-lab
ORGANIZATIONS

Other API from declare-lab

huggingface.co

Total runs: 4.1K
Run Growth: 2.1K
Growth Rate: 52.69%
Updated:December 17 2023
huggingface.co

Total runs: 319
Run Growth: -253
Growth Rate: -79.31%
Updated:August 28 2025
huggingface.co

Total runs: 198
Run Growth: -186
Growth Rate: -93.94%
Updated:August 28 2025
huggingface.co

Total runs: 99
Run Growth: 48
Growth Rate: 48.48%
Updated:January 28 2025
huggingface.co

Total runs: 87
Run Growth: -10
Growth Rate: -11.49%
Updated:August 01 2025
huggingface.co

Total runs: 87
Run Growth: 24
Growth Rate: 27.59%
Updated:January 18 2026
huggingface.co

Total runs: 57
Run Growth: 0
Growth Rate: 0.00%
Updated:January 18 2026
huggingface.co

Total runs: 48
Run Growth: -1
Growth Rate: -2.08%
Updated:December 11 2025
huggingface.co

Total runs: 18
Run Growth: 5
Growth Rate: 27.78%
Updated:October 24 2022