Skip to main content
Browse Models

lmsys

Vicuna 13B

Released

2023-03-30

Family

Llama 2

Type

Fine-Tuned Model

Downloads

External Download

You are about to open a link to an external source. Verify the URL before continuing.

Download

4-bit GGUF (Q4_K_M)

GGUF · vicuna-13b-v1.5.Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

GGUF · vicuna-13b-v1.5.Q5_K_M.gguf

6-bit GGUF (Q6_K)

GGUF · vicuna-13b-v1.5.Q6_K.gguf

8-bit GGUF (Q8_0)

GGUF · vicuna-13b-v1.5.Q8_0.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

Vicuna-13B is an open-source large language model developed by LMSYS and introduced on March 30, 2023. Building upon the LLaMA architecture, Vicuna-13B is fine-tuned using a substantial dataset of user-shared conversations, enabling it to operate as a conversational AI chatbot suitable for research and development in natural language processing (NLP) and artificial intelligence (AI). The model is recognized for its open accessibility and detailed documentation, fostering transparency in the study and advancement of language models.

Stylized Vicuna mascot artwork

Figure 1. Stylized mascot artwork representing the Vicuna-13B model, inspired by the animal vicuña.

Model Architecture and Training

Vicuna-13B is based on the auto-regressive transformer architecture established in LLaMA, with enhancements directed at chatbot performance. The model is fine-tuned on the LLaMA foundation model using approximately 70,000 user-shared ChatGPT conversations collected from ShareGPT, later expanded to about 125,000 conversations for subsequent iterations such as Vicuna v1.5. Fine-tuning is performed with a focus on multi-turn dialogues, where the training loss is computed exclusively on the chatbot's responses, an approach that increases training efficiency and dialogue fluency.

Technical improvements in Vicuna-13B facilitate support for longer conversational contexts, extending the maximum context window from 512 tokens (as in Alpaca) to 2048 tokens. To accommodate the increased computational demand, memory optimization techniques such as gradient checkpointing and FlashAttention are employed during training. The training pipeline is implemented in PyTorch FSDP, typically utilizing clusters of A100 GPUs. For serving, the system incorporates distributed serving infrastructure that supports scalable deployment.

Workflow diagram for Vicuna chatbot development

Figure 2. Workflow diagram summarizing Vicuna's data collection, training, serving, and evaluation pipeline.

Evaluation and Performance Metrics

The performance of Vicuna-13B has been systematically evaluated using both language model and human assessments. Notably, the MT-Bench evaluation, in which responses are scored by GPT-4, provides a comparative assessment across multiple chatbot models. According to these studies, Vicuna-13B achieves a relative response quality assessed by GPT-4 at 92% of ChatGPT's performance and closely matches proprietary models such as Bard.

Bar chart comparing relative response quality of five chatbots

Figure 3. Bar chart of relative response quality as assessed by GPT-4 for various chatbot models, showing Vicuna-13B achieving 92% of ChatGPT's performance.

Benchmarking details demonstrate Vicuna-13B's strong comparative preference against open-source models. In direct comparisons, GPT-4 judges selected Vicuna-13B's responses over those of LLaMA-13B and Alpaca-13B in over 90% of prompts, and in approximately 45% of cases, Vicuna-13B's answers were rated as equivalent to or better than those of ChatGPT.

Stacked bar chart comparing Vicuna's win rates against other chatbots

Figure 4. Stacked bar chart illustrating Vicuna-13B's comparative win/tie/loss rates against LLaMA-13B, Alpaca-13B, Bard, and ChatGPT based on GPT-4's evaluation.

Despite these results, Vicuna-13B exhibits lower effectiveness in specialized domains such as mathematics, reasoning, and programming when compared to the latest proprietary models, including GPT-3.5 and GPT-4. This indicates a proficiency for general conversation and writing tasks, but reveals limits in more technical areas.

Evaluation bar charts for Vicuna model versions

Figure 5. Comparative evaluation graphs for different Vicuna versions, covering context length, MT-Bench score, and MMLU benchmarks.

Training Data and Methodology

Vicuna-13B leverages a data-driven approach, utilizing conversation datasets sourced primarily from the ShareGPT platform. These datasets comprise user-contributed, multi-turn dialogues with ChatGPT, supporting the development of more contextually aware chatbot responses. The fine-tuning process incorporates techniques first established in Stanford Alpaca, but with critical modifications such as tuning specifically on the chatbot-generated outputs for improved dialogue consistency. The model's training process emphasizes memory efficiency to allow for larger context lengths, with further cost optimizations achieved by utilizing tools like SkyPilot to manage compute resources.

Demonstration of the Vicuna-13B chatbot responding to queries in a user-facing interface. · Source

Applications, Limitations, and Model Family

Vicuna-13B is primarily targeted for research applications, such as large language model development, chatbot prototyping, and benchmarking studies. It provides an accessible platform for experimentation in NLP and is particularly suited for researchers and practitioners interested in open research ecosystems.

As with many large language models, Vicuna-13B has certain limitations. Its performance in abstract reasoning, mathematics, and coding remains behind that of contemporary proprietary models. Additionally, while it achieves strong general conversational ability, there exist concerns regarding self-identification, factual precision, and the potential for generating biased or unsafe outputs. The evaluation methodology—often relying on "LLM-as-a-judge" techniques using models like GPT-4—also introduces biases, such as position or verbosity bias, which are the subject of ongoing research and refinement, as explored in the MT-Bench paper.

Vicuna-13B is part of a broader family of models sharing the LLaMA foundation, including related variants like Vicuna-7B and models such as Alpaca-13B, but distinguishes itself through enhancements in conversational quality and extended context handling.

Licensing and Availability

Vicuna-13B is distributed under the Llama 2 Community License Agreement due to its reliance on Llama models as a base. Additionally, any use of Vicuna-trained weights and user-shared conversations must adhere to associated terms, including the OpenAI data usage policies and ShareGPT's privacy practices. The supporting codebase is made publicly available under the Apache License 2.0, facilitating broad collaboration within the research community.

Helpful Links

About Llama 2: The Llama 2 family, developed by Meta, comprises large language models ranging from 7 billion to 70 billion parameters, trained on 40% more data than their predecessors and featuring a doubled context length of 4,096 tokens.

More in the Llama 2 Family

Meta /

Llama 2 7B

7 billion parameter version of the 2nd iteration in Meta's Llama series of open source models.
codellama /

CodeLlama 7B

Fine-tuned version of Llama 7b, with training data optimized for code generation and completion tasks.
lmsys /

Vicuna 7B

Llama 7B fine-tuned on 125k GPT-4 conversations, with strong performance in chatbot and instruction following use-cases.
PygmalionAI /

Pygmalion 2 7B

Llama 7B fine-tuned for conversation, roleplaying, and storywriting.
openchat /

OpenChat 3.5 7B

Llama 2 7B fine-tuned using the C-RLFT strategy, with performance surpassing GPT 3.5 on some benchmarks.
Xwin-LM /

Xwin LM 7B

Llama 2 7B fine-tune using numerous emerging techniques including SFT, RM, and RLHF, achieving top results on AlpacaEval.
Meta /

Llama 2 13B

13 billion parameter version of the 2nd iteration in Meta's Llama series of open source models.
Meta /

CodeLlama 13B

Fine-tuned version of Llama 13b, with training data optimized for code generation and completion tasks.
NousResearch /

Nous Hermes 13b

Llama 13b fine-tuned on over 300k curated GPT-4 outputs, known long high-quality outputs.
Gryphe /

MythoMax L2

An improved variant of MythoMix (MythoLogic-L2 and Huginn merge) using an experimental tensor-type merge technique. Originally a merge of multiple popular Llama 2 fine-tunes, including Hermes, Chronos, and Airoboros. Very popular for rich descriptions, storywriting, and roleplay.
WizardLM /

WizardLM 13B

Llama 2 13B model fine-tuned to follow complex instructions using the WizardLM training methodology.
PygmalionAI /

Pygmalion 2 13B

Llama 13B fine-tuned for conversation, roleplaying, and storywriting.
PygmalionAI /

Mythalion 13B

Merge of two popular fine-tunes: Pygmalion and Mythomax L2, resulting in a model that is good at roleplaying and instruction-following.
Xwin-LM /

Xwin LM 13B

Llama 2 13B fine-tune using numerous emerging techniques including SFT, RM, and RLHF, achieving top results on AlpacaEval.
Meta /

CodeLlama 34B

Fine-tuned version of unreleased Llama 2 34b, with training data optimized for code generation and completion tasks.
Meta /

Llama 2 70B

70 billion parameter version of the 2nd iteration in Meta's Llama series of open source models.
Meta /

CodeLlama 70B

Fine-tuned version of Llama 70b, with training data optimized for code generation and completion tasks.
Xwin-LM /

Xwin 70B

Llama 2 70B fine-tune using numerous emerging techniques including SFT, RM, and RLHF, achieving top results on AlpacaEval.
WizardLM /

WizardLM 70B

Llama 2 70B model fine-tuned to follow complex instructions using the WizardLM training methodology.
NousResearch /

Nous Hermes Llama 2 70B

Llama 2 70B fine-tuned on over 300k curated GPT-4 outputs.