Skip to main content
Browse Models

lmsys

Vicuna 7B

Released

2023-07-29

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-7b-v1.5.Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

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

6-bit GGUF (Q6_K)

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

8-bit GGUF (Q8_0)

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

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

Vicuna 7B is an open-source large language model developed by the LMSYS organization, designed primarily for research into conversational AI and the development of advanced chatbot systems. As part of the Vicuna model family, which also includes variants such as Vicuna 13B, Vicuna 7B builds upon the transformer architecture, specifically leveraging and fine-tuning Meta's LLaMA and Llama 2 models. Its release has facilitated widespread experimentation within the academic and open-source communities, supporting multi-turn dialogue, instruction following, and extended context capabilities.

Stylized logo representing the Vicuna model, featuring an abstract vicuna head and neck in profile.

Figure 1. Stylized logo representing the Vicuna model, reflecting the model's namesake and branding.

Model Architecture and Training

Vicuna 7B adopts the transformer-based architecture initially introduced in Meta's LLaMA and extends it through targeted fine-tuning. Distinctively, later versions such as Vicuna v1.5 are based on Llama 2. The model’s architecture implements several enhancements over its predecessors, including support for longer context windows and optimizations for multi-turn conversational tasks. One of the notable technical advancements involves the adaptation of training scripts from Stanford Alpaca, where the loss computation focuses exclusively on the chatbot’s responses during fine-tuning, allowing for improved dialogue coherence.

Training also incorporates memory optimization strategies such as gradient checkpointing and Flash Attention, which are essential for handling the expanded context window of up to 2048 tokens—substantially longer than the original 512 tokens in Alpaca. The use of PyTorch Fully Sharded Data Parallel (FSDP) enables distributed training while maintaining efficiency on multi-GPU clusters.

Workflow diagram of the Vicuna development and evaluation process.

Figure 2. Workflow diagram outlining Vicuna's stages including data collection, training, serving, and evaluation.

Data Sources and Training Methodology

Vicuna 7B's training data consists predominantly of user-contributed conversations from ShareGPT.com, offering a wide array of real-world dialogue scenarios. The initial version was fine-tuned on approximately 70,000 multi-turn conversations, while recent updates expanded the dataset to around 125,000 conversations for improved robustness.

Data preprocessing involved conversion from HTML to Markdown and rigorous filtering to remove inappropriate or low-quality entries. Additionally, lengthy discussions were segmented to fit the model’s context limit, thereby ensuring the integrity of each training sample. Typical training hyperparameters included a batch size of 128, a learning rate of 2e-5, and multiple epochs to optimize for generalization.

The training process was notably cost-efficient, with the team leveraging SkyPilot’s managed spot instances and memory-saving algorithms to bring down computational expenses substantially.

Evaluation, Metrics, and Comparative Performance

Evaluating conversational AI remains a challenging task. Vicuna 7B was assessed using both automated and crowd-sourced approaches. Notably, the evaluation framework employed GPT-4 as a judge, wherein GPT-4 provided consistent rankings and detailed analysis of chatbot-generated responses. This LLM-as-a-judge strategy demonstrated a high level of agreement with human preferences, validating its use as a scalable evaluation tool for model development.

Bar chart comparing chatbot quality scores, with Vicuna-13B close to ChatGPT and Bard.

Figure 3. Bar chart showing the relative response quality of Vicuna and other models as assessed by GPT-4.

Multiple benchmarks were used to quantify Vicuna 7B's performance. The MT-Bench test suite, comprising 80 high-quality multi-turn questions across various categories, highlighted the model’s conversational and instruction-following strengths. Vicuna 7B achieved MT-Bench scores ranging from 5.95 to 6.04 depending on training data size, outperforming models like LLaMA-7B and Alpaca-7B in terms of dialogue quality and consistency. Additional standardized benchmarks, including MMLU (5-shot) and TruthfulQA (0-shot), demonstrate Vicuna 7B’s improvements over its foundational LLaMA variant.

Bar charts comparing context length, MT-Bench, and MMLU scores for Vicuna versions

Figure 4. Three bar charts comparing Vicuna v1.5 and earlier model versions across context length, MT-Bench Score, and MMLU.

Beyond supervised testing, the Chatbot Arena platform enabled real-time, crowdsourced comparison between anonymous chatbot models, aggregating thousands of head-to-head user ratings.

Stacked bar chart comparing head-to-head results of Vicuna with other chatbots

Figure 5. Stacked bar chart showing Vicuna's win/tie/loss rates compared to baseline models, using GPT-4 as a judge.

Applications, Limitations, and Model Family

Vicuna 7B serves primarily as a research instrument for the study and development of conversational AI, benefitting researchers and practitioners in fields such as natural language processing and machine learning. Its design enables multi-turn, long-context dialogues suitable for chatbots, virtual assistants, and exploratory deployments in academic settings.

Within its family, Vicuna 13B offers a larger parameter size and greater benchmark scores, but the core methodology and open training philosophy remain consistent across variants. Both versions have benefited from iterative updates, such as the integration with Llama 2 in Vicuna v1.5.

Like other large language models, Vicuna 7B exhibits certain limitations. Its reasoning and mathematical problem-solving remain imperfect, with some evaluation methodologies highlighting susceptibility to inaccuracies when compared with human judgement. The model may occasionally misidentify itself or produce outputs lacking factual rigor, and is not specifically optimized to address safety, bias, or toxicity concerns. In deployed demos, external systems such as the OpenAI moderation API are employed to mitigate these risks.

Demonstration of the Vicuna-13B chatbot engaging in multi-turn dialogue via a web-based interface. · Source

Licensing, Release, and Documentation

Vicuna 7B is distributed under the Llama 2 Community License Agreement for the model weights, promoting open sharing of research outputs. The source code is available via Apache License 2.0. Live demos and model checkpoints are offered exclusively for non-commercial research and are subject to the associated model and data licenses.

Documentation and technical resources are maintained in the FastChat GitHub repository, which provides source code, training scripts, evaluation utilities, and details on versioning and reproducibility.

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.
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.
lmsys /

Vicuna 13B

Llama 13B fine-tuned on 125k GPT-4 conversations, with strong performance in chatbot and instruction following use-cases.
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.