Alpaca
by Stanford University · Mar 13, 2023
Alpaca is an open-weight chat llm from Stanford University, released Mar 13, 2023. It has 7B parameters.
- Provider
- Stanford University
- Released
- Mar 13, 2023
- Type
- Chat LLM
- Parameters
- 7B
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (non-commercial)
- Knowledge cutoff
- —
- Status
- Historical
About Alpaca
We introduce Alpaca 7B, a model fine-tuned from the LLaMA 7B model on 52K instruction-following demonstrations. On our preliminary evaluation of single-turn instruction following, Alpaca behaves qualitatively similarly to OpenAI’s text-davinci-003, while being surprisingly small and easy/cheap to reproduce (<600$). Checkout our code release on GitHub. Update: The public demo is now disabled. The original goal of releasing a demo was to disseminate our research in an accessible way.
How to run Alpaca
Alpaca is an open-weight model. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 7B parameters it needs roughly 4 GB of memory at 4-bit quantization.
Alpaca vs alternatives
- Alpaca vs Mistral-7B-v0.1
- Alpaca vs Llama 2-7B
- Alpaca vs Falcon-7B
- Alpaca vs MPT-7B
- Alpaca vs RedPajama-INCITE-7B-Base
- Alpaca vs XGen-7B
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Mistral-7B-v0.1open | Mistral AI | Sep 2023 | 7.2B | — | — | — | 102.7 |
| Llama 2-7Bopen | Meta | Jul 2023 | 6.7B | — | — | — | 83.2 |
| Falcon-7Bopen | Technology Innovation Institute | Apr 2023 | 7.2B | — | — | — | 73.1 |
| MPT-7Bopen | MosaicML | May 2023 | 7B | — | — | — | 73.4 |
| RedPajama-INCITE-7B-Baseopen | Together AI | Jun 2023 | 6.9B | — | — | — | 57.7 |
| XGen-7Bopen | Salesforce | Sep 2023 | 6.7B | — | — | — | 70.3 |
| Mistral-7B-Instruct-v0.2open | Mistral AI | Dec 2023 | 7.2B | — | — | — | — |
| deepseek-llm-7b-baseopen | DeepSeek | Nov 2023 | 7B | — | — | — | — |
More models from Stanford University
All Stanford University models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| GPT3-2.7B (FlashAttention-2) | Jul 2023 | 2.7B | — | — | — |
| DPO on Pythia-2.8B | May 2023 | 2.8B | — | — | — |
| minChatGPTopen | Mar 2023 | 1.6B | — | — | — |
| Hyena 1.3B | Feb 2023 | 1.3B | — | — | — |
| Hyena-2 153Mopen | Feb 2023 | 153M | — | — | — |
| Hybrid H3-2.7Bopen | Dec 2022 | 2.7B | — | — | — |
| Hybrid H3-125Mopen | Dec 2022 | 125M | — | — | — |
| Hybrid H3-355Mopen | Dec 2022 | 355M | — | — | — |
Frequently asked questions
Who made Alpaca?
Alpaca was developed by Stanford University (United States of America). It was released on Mar 13, 2023.
Is Alpaca open source?
Yes. Alpaca's weights are publicly available, so you can download and run it yourself.
How many parameters does Alpaca have?
Alpaca has 7B parameters.
Sources: epoch · paper. Last updated 2026-11-22.