AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    Catalog / LLMs

    Alpaca (2023)

    52,000 instructions and answers, generated by GPT-3.5 for about $500.

    Why it matters

    Weeks after Meta's LLaMA weights appeared, Stanford fine-tuned the 7B model on these 52k examples and got a chatbot that felt close to OpenAI's at the time, for a few hundred dollars. That kicked off the wave of open instruction-tuned models (Vicuna, Koala, Dolly and many more), and the Alpaca prompt format became a common template.

    Get the data

    # pip install -U huggingface_hub
    hf download tatsu-lab/alpaca --repo-type dataset \
      --local-dir alpaca
    Year
    2023
    Creators
    Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, Tatsunori B. Hashimoto (Stanford)
    Task
    Instruction tuning data (instruction → response)
    Size
    52,002 examples
    Splits
    train 52,002
    Input
    An instruction, sometimes with an input to work on
    Labels
    A response written by text-davinci-003
    License
    CC BY-NC 4.0
    Paper
    Alpaca: A Strong, Replicable Instruction-Following Model

    Samples

    Showing 3 of 12 sampled rows(from 52,002 in the train split)

    Write a function that takes an array and returns a new array with only the even numbers from the original array.

    [1, 2, 3, 4, 5, 6, 7, 8]

    Show response

    const evenNumberArray = (array) => { let newArray = []; for (let i = 0; i < array.length; i++) { const num = array[i]; if (num % 2 === 0) { newArray.push(num); } } return newArray; } const array = [1, 2, 3, 4, 5, 6, 7, 8]; console.log(evenNumberArray(array)); // Output: [2, 4, 6, 8]

    Describe the human brain

    Show response

    The human brain is an amazing and complex organ made up of billions of neurons that are responsible for processing sensory information as well as initiating and controlling body functions. It is composed of three major parts: the cerebrum, the cerebellum, and the brainstem. The cerebrum is responsible for our thoughts, actions, language, and higher level functions. The cerebellum is responsible for balance and muscle coordination. The brainstem connects the brain to the spinal cord, and is responsible for basic body functions such as breathing, blood pressure, and involuntary movements.

    Compare and contrast the roles of nature versus nurture in human behavior.

    Show response

    Nature versus nurture is the debate between whether human behavior is determined by inherited genes and traits or if it is shaped by environment and experiences. Nature-focused theorists believe that biological factors such as genetics and hormones are the primary influences on behavior, while nurture-focused theorists believe that behavior is determined by environmental influences such as parental rearing and social interaction. While it is clear that both nature and nurture play a role in determining human behavior, the exact balance and contribution of each is still an area of discussion and debate.

    What one record actually looks like (raw JSON, row 28181)
    {
      "input": "[1, 2, 3, 4, 5, 6, 7, 8]",
      "instruction": "Write a function that takes an array and returns a new array with only the even numbers from the original array.",
      "output": "const evenNumberArray = (array) => {\n    let newArray = [];\n    for (let i = 0; i < array.length; i++) {\n        const num = array[i];\n        if (num % 2 === 0) {\n            newArray.push(num);\n        }\n    }\n    return newArray;\n}\n \nconst array = [1, 2, 3, 4, 5, 6, 7, 8];\n\nconsole.log(evenNumberArray(array)); // Output: [2, 4, 6, 8]",
      "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:\nWrite a function that takes an array and returns a new array with only the even numbers from the original array.\n\n### Input:\n[1, 2, 3, 4, 5, 6, 7, 8]\n\n### Response:\nconst evenNumberArray = (array) => {\n    let newArray = [];\n    for (let i = 0; i < array.length; i++) {\n        const num = array[i];\n        if (num % 2 === 0) {\n            newArray.push(num);\n        }\n    }\n    return newArray;\n}\n \nconst array = [1, 2, 3, 4, 5, 6, 7, 8];\n\nconsole.log(evenNumberArray(array)); // Output: [2, 4, 6, 8]"
    }

    Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.

    Sampled 2026-11-07 from tatsu-lab/alpaca at revision dce01c9

    Worth knowing

    Related datasets

    Landmark papers