abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

tatsu-lab/alpaca

published by @tatsu-lab

Harmful and harmless prompt sets, contrastive pairs, and jailbreak and attack corpora.Sets of harmful and harmless requests, pairs of opposite examples, and attack datasets.

task_categories:text-generationlanguage:enlicense:cc-by-nc-4.0size_categories:10K<n<100Kformat:parquetmodality:textlibrary:datasetslibrary:pandas +4 more
Lifetime downloads
2.7M
Last 30 days
112.5K
Likes
1024
Size
24.3 MB

Description

Dataset Card for Alpaca

Dataset Summary

Alpaca is a dataset of 52,000 instructions and demonstrations generated by OpenAI's text-davinci-003 engine. This instruction data can be used to conduct instruction-tuning for language models and make the language model follow instruction better.

The authors built on the data generation pipeline from Self-Instruct framework and made the following modifications:

The text-davinci-003 engine to generate the instruction data… See the full description on the dataset page: https://huggingface.co/datasets/tatsu-lab/alpaca.

Used by uncensored models 6 in catalog

Models in our catalog that declare this dataset in their YAML `datasets:` field. Sorted by downloads. This back-reference is unique to abliteration.org: Hugging Face does not surface it.Models in our catalog whose page lists this dataset as training data. Most downloaded first. Hugging Face does not show this list.

Used in recipes 2 of 17 curated recipes reference this dataset

Concrete workflows from the community craft-knowledge survey that call for this corpus. Each links to the full recipe with parameters, tools, expected output, and known failure modes.Recipes from our survey of practitioners that use this dataset. Each one links to the full recipe: settings, tools, the expected result and what can go wrong.

MetadataDetails

License
cc-by-nc-4.0
Language
en
Created on HFCreated
2023-03-13 · 3 years ago
Size category
10K<n<100K
ModalitiesData types
text
Formats
parquet
LibrariesTools
datasetspandaspolarsmlcroissant

Related datasets same stage · Extractsame step · Finding refusals

Read further

Total size
24.3 MB
Files
3
Formats
parquet
Head
dce01c9
Last updated on HFLast updated
2023-05-22

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("tatsu-lab/alpaca")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="tatsu-lab/alpaca", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/tatsu-lab/alpaca

Files by folder from our last crawlfrom our last check

top level 2 files 9.8 KB
.gitattributes 2.3 KB file download
README.md 7.5 KB md download
data/ 1 file 24.2 MB
train-00000-of-00001-a09b74b3ef9c3b56.parquet 24.2 MB parquet download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

Dataset Card for Alpaca

Dataset Description

Dataset Summary

Alpaca is a dataset of 52,000 instructions and demonstrations generated by OpenAI's text-davinci-003 engine. This instruction data can be used to conduct instruction-tuning for language models and make the language model follow instruction better.

The authors built on the data generation pipeline from Self-Instruct framework and made the following modifications:

  • The text-davinci-003 engine to generate the instruction data instead of davinci.
  • A new prompt was written that explicitly gave the requirement of instruction generation to text-davinci-003.
  • Much more aggressive batch decoding was used, i.e., generating 20 instructions at once, which significantly reduced the cost of data generation.
  • The data generation pipeline was simplified by discarding the difference between classification and non-classification instructions.
  • Only a single instance was generated for each instruction, instead of 2 to 3 instances as in Self-Instruct.

This produced an instruction-following dataset with 52K examples obtained at a much lower cost (less than $500).
In a preliminary study, the authors also found that the 52K generated data to be much more diverse than the data released by Self-Instruct.

Supported Tasks and Leaderboards

The Alpaca dataset designed for instruction training pretrained language models.

Languages

The data in Alpaca are in English (BCP-47 en).

Dataset Structure

Data Instances

An example of "train" looks as follows:

{
    "instruction": "Create a classification task by clustering the given list of items.",
    "input": "Apples, oranges, bananas, strawberries, pineapples",
    "output": "Class 1: Apples, Oranges\nClass 2: Bananas, Strawberries\nClass 3: Pineapples",
    "text": "Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\nCreate a classification task by clustering the given list of items.\n\n### Input:\nApples, oranges, bananas, strawberries, pineapples\n\n### Response:\nClass 1: Apples, Oranges\nClass 2: Bananas, Strawberries\nClass 3: Pineapples",
}

Data Fields

The data fields are as follows:

  • instruction: describes the task the model should perform. Each of the 52K instructions is unique.
  • input: optional context or input for the task. For example, when the instruction is "Summarize the following article", the input is the article. Around 40% of the examples have an input.
  • output: the answer to the instruction as generated by text-davinci-003.
  • text: the instruction, input and output formatted with the prompt template used by the authors for fine-tuning their models.

Data Splits

train
alpaca 52002

Dataset Creation

Curation Rationale

[More Information Needed]

Source Data

Initial Data Collection and Normalization

[More Information Needed]

Who are the source language producers?

[More Information Needed]

Annotations

Annotation process

[More Information Needed]

Who are the annotators?

[More Information Needed]

Personal and Sensitive Information

[More Information Needed]

Considerations for Using the Data

Social Impact of Dataset

Excerpt the blog post accompanying the release of this dataset:

We believe that releasing the above assets will enable the academic community to perform controlled scientific studies on instruction-following language models, resulting in better science and ultimately new techniques to address the existing deficiencies with these models. At the same time, any release carries some risk. First, we recognize that releasing our training recipe reveals the feasibility of certain capabilities. On one hand, this enables more people (including bad actors) to create models that could cause harm (either intentionally or not). On the other hand, this awareness might incentivize swift defensive action, especially from the academic community, now empowered by the means to perform deeper safety research on such models. Overall, we believe that the benefits for the research community outweigh the risks of this particular release. Given that we are releasing the training recipe, we believe that releasing the data, model weights, and training code incur minimal further risk, given the simplicity of the recipe. At the same time, releasing these assets has enormous benefits for reproducible science, so that the academic community can use standard datasets, models, and code to perform controlled comparisons and to explore extensions. Deploying an interactive demo for Alpaca also poses potential risks, such as more widely disseminating harmful content and lowering the barrier for spam, fraud, or disinformation. We have put into place two risk mitigation strategies. First, we have implemented a content filter using OpenAI’s content moderation API, which filters out harmful content as defined by OpenAI’s usage policies. Second, we watermark all the model outputs using the method described in Kirchenbauer et al. 2023, so that others can detect (with some probability) whether an output comes from Alpaca 7B. Finally, we have strict terms and conditions for using the demo; it is restricted to non-commercial uses and to uses that follow LLaMA’s license agreement. We understand that these mitigation measures can be circumvented once we release the model weights or if users train their own instruction-following models. However, by installing these mitigations, we hope to advance the best practices and ultimately develop community norms for the responsible deployment of foundation models.

Discussion of Biases

[More Information Needed]

Other Known Limitations

The alpaca data is generated by a language model (text-davinci-003) and inevitably contains some errors or biases. We encourage users to use this data with caution and propose new methods to filter or improve the imperfections.

Additional Information

Dataset Curators

[More Information Needed]

Licensing Information

The dataset is available under the Creative Commons NonCommercial (CC BY-NC 4.0).

Citation Information

@misc{alpaca,
  author = {Rohan Taori and Ishaan Gulrajani and Tianyi Zhang and Yann Dubois and Xuechen Li and Carlos Guestrin and Percy Liang and Tatsunori B. Hashimoto },
  title = {Stanford Alpaca: An Instruction-following LLaMA model},
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/tatsu-lab/stanford_alpaca}},
}

Contributions

[More Information Needed]

README historyEdit history 8 revisions8 edits

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2023-05-22 Update README.md dce01c9 7.3 KB
    Loading...
  2. 2023-03-16 Update README.md e94c85f 7.3 KB
    Loading...
  3. 2023-03-16 Update README.md 6e5d685 7.2 KB
    Loading...
  4. 2023-03-16 Delete alpaca_data.json 89a5bba 7.1 KB
    Loading...
  5. 2023-03-15 Update README.md 8541738 7.1 KB
    Loading...
  6. 2023-03-13 Upload data/train-00000-of-00001-a09b74b3ef9c3b56.parquet with huggingface_hub ad0d1bf 24 B
    Loading...
  7. 2023-03-13 Upload alpaca_data.json c03f968 24 B
    Loading...
  8. 2023-03-13 initial commit edb0ec9 24 B
    Loading...

Community discussions 13 threads · 11 open · 22 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2026-11-09 PR Rename data/train-00000-of-00001-a09b74b3ef9c3b56.parquet to data/train-00000-o… open 1 💬 #13
    Loading...
  2. 2026-08-26 The similarity curve still shows the generation-time dedup filter open 1 💬 #12
    Loading...
  3. 2026-05-03 Execution-verified instruction dataset — free preview open 1 💬 #11
    Loading...
  4. 2026-05-03 Execution-verified Python code SFT dataset — free preview open 1 💬 #10
    Loading...
  5. 2023-11-28 PR Upload SSN and CCN.pdf closed 1 💬 #9
    Loading...
  6. 2023-11-26 Thanks to the team to make this dataset open source open 1 💬 #8
    Loading...
  7. 2023-09-29 how can i get it as CSV file? open 6 💬 #7
    Loading...
  8. 2023-09-06 PR error closed 1 💬 #6
    Loading...
  9. 2023-06-23 🚩 Report open 2 💬 #5
    Loading...
  10. 2023-05-04 Data cannot be displayed correctly open 3 💬 #4
    Loading...
  11. 2023-04-17 PR fix license open 1 💬 #3
    Loading...
  12. 2023-04-06 PR Update README.md open 1 💬 #2
    Loading...
  13. 2023-03-27 🚩 Report open 2 💬 #1
    Loading...
Download from Hugging Face

tatsu-lab/alpaca

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration