Dolly v2 (7B) API

Dolly v2 (7B): Open-source, instruction-following LLM for commercial use.
Output

How to use Dolly v2 (7B) API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to .

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Dolly v2 (7B) API Pricing

TypePrice
Input
Output

Overview

Dolly v2 (7B) Description

Basic Information
  • Model Name: Dolly v2 (7B)
  • Developer/Creator: Databricks
  • Release Date: April 12, 2023
  • Version: 2.0
  • Model Type: Instruction-following Large Language Model

Overview:Dolly v2 (7B) is an instruction-following large language model trained on the Databricks machine learning platform, licensed for commercial use. It is based on the Pythia-6.9b model and fine-tuned on a dataset of approximately 15,000 instruction/response pairs.Key Features:

  • Instruction-following capabilities
  • Open-source and commercially licensed
  • Fine-tuned on high-quality training data
  • Relatively small model size (6.9 billion parameters)

Intended Use:Dolly v2 (7B) is designed for various natural language processing tasks, including:

  • Brainstorming
  • Classification
  • Closed question answering
  • Text generation
  • Information extraction
  • Open question answering
  • Summarization

Language Support:The model primarily supports English language tasks.

Technical Details

Architecture:Dolly v2 (7B) is based on the Pythia-6.9b architecture, which is a transformer-based model.Training Data:

  • Data Source and Size: The model was fine-tuned on the databricks-dolly-15k dataset, containing approximately 15,000 instruction/response pairs generated by Databricks employees.
  • Knowledge Cutoff: The model's knowledge is based on the Pythia-6.9b pre-training, with additional instruction-following capabilities from the fine-tuning process.

Performance Metrics:While Dolly v2 (7B) is not state-of-the-art, it demonstrates surprisingly high-quality instruction-following behavior. Some benchmark results include:

BenchmarkScoreARC (25-shot) 0.392 HellaSwag (10-shot) 0.633838 MMLU (5-shot) 0.406997 TruthfulQA (0-shot)0.444444

Comparison to Other Models:Dolly v2 (7B) underperforms compared to larger models like GPT-3 (175B parameters) but offers a good balance between performance and resource requirements.

Usage

Code Sample:

Ethical Considerations

Dolly v2 (7B) was developed with ethical considerations in mind. The training data does not contain obscenity, intellectual property, or personally identifying information about non-public figures. However, it may reflect biases present in the data generated by Databricks employees.

Licensing

Dolly v2 (7B) is released under the Apache 2.0 license, which allows for both research and commercial use.

Limitations

  • Not designed to perform competitively with more modern model architectures
  • Struggles with syntactically complex prompts
  • Limited capabilities in programming problems and mathematical operations
  • May contain factual errors and exhibit hallucination
  • Reflects potential biases of Databricks employees in the training data

‍

Use cases

  • Chatbots and conversational assistants
  • Content generation and summarization
  • Customer support automation
  • Educational tools and tutoring
  • Text classification and information extraction
  • Research and prototyping in NLP
  • Commercial and open-source AI applications

Playground

You can try this model in the browser before writing any code: open the AI/ML API playground, select the model and send a prompt. Nothing has to be installed locally — an API key is all you need. The same request is shown as cURL, Python and JavaScript in the code examples on this page, so a prompt that works in the playground can be copied straight into an application.

Open the playground

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.Machine-readable API summary for LLM agents (llms.txt)

Dolly v2 (7B) vs other models

ModelInputOutputContextBest for
Dolly v2 (7B)
This page
$6.5 / 1M tokens
$39 / 1M tokens
1M tokens
Reasoning + agents
$2.6 / 1M tokens
$13 / 1M tokens
1M tokens
Balanced coding + agents
$3.9 / 1M tokens
$19.5 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.95 / 1M tokens
$11.7 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

Yes, Dolly v2 (7B) can stream responses as they are generated.

Yes, Dolly v2 (7B) supports both function calling and structured outputs.

Dolly v2 (7B) was built by Databricks.

Dolly v2 (7B) is available via the v1 endpoint.

Start building with Dolly v2 (7B)

Get API Key
1000+ models, one API.