Vicuna AI is an open chat model that LMSYS built by fine-tuning Meta’s Llama 2 on conversations users shared through ShareGPT. Getting it to answer a prompt is the easy part. Whether self-hosting it makes sense is a separate question. That depends on how much GPU memory your chosen size and precision need, how many requests you can batch onto one card, and whether your traffic keeps that card busy enough to beat paying an API per token.
How Vicuna AI Differs from the Llama Model Underneath
The current release, Vicuna v1.5, is Llama 2 with supervised instruction fine-tuning on roughly 125K conversations from ShareGPT.com. Architecturally it is an auto-regressive transformer language model. LMSYS cleaned the data before training: HTML was converted back to markdown, inappropriate or low-quality samples were removed, and long conversations were split into segments that fit the model’s context length.
Vicuna v1.3 came in 7B, 13B and 33B sizes and was built on the original Llama 1. v1.5, released on 1 August 2023, moved to Llama 2 and added 16K-context variants of the 7B and 13B models using linear RoPE scaling. The first Vicuna-13B that LMSYS introduced was a fine-tune of the original LLaMA. According to LMSYS, it cost around $300 to train, using PyTorch FSDP on 8 A100 GPUs in one day.
For a longer look at the model’s behaviour against its base, see our Vicuna model explainer.
How Vicuna Runs on a GPU, and Why Memory Dominates
Each Vicuna request runs in two phases. In prefill, the model processes the whole prompt in parallel, builds the key-value (KV) cache and produces the first token. In decode, it generates the remaining tokens one at a time, adding to the cache at each step. The two phases stress the hardware differently. Prefill is mostly large matrix multiplications limited by compute. Decode is matrix-vector work, and its speed is set by how fast the weights can be read from GPU memory.
During decoding, every step loads all the model weights from HBM onto the chip. Databricks puts it bluntly: at small batch sizes, achieved memory bandwidth predicts token-generation speed better than peak compute does. Peak memory during generation is roughly the weights plus the KV cache. The KV cache grows with sequence length and with the number of concurrent requests. So precision, batch size and context length all change Vicuna’s memory footprint.
How Much VRAM Does Vicuna Need at 7B and 13B?
At 16-bit precision, Vicuna-7B needs about 14GB of GPU memory to load and Vicuna-13B about 28GB, according to the FastChat documentation. With 8-bit compression, Vicuna-13B runs on a single 16GB GPU such as an RTX 3090, RTX 4080, T4 or 16GB V100, with slightly lower quality.
Worked Example: Estimating the Footprint Before You Buy
One sizing guide gives a formula: memory in GB = parameters in billions × (bits ÷ 8) × 1.2. The 1.2 is a 20% overhead for the KV cache and other runtime needs. At 16 bits this reduces to the rule of thumb of about 2GB per billion parameters, plus the overhead. Applied to the two common Vicuna sizes (the arithmetic follows directly from the formula):
| Model | 16-bit | 8-bit | 4-bit |
|---|---|---|---|
| Vicuna-7B | 7 × 2 × 1.2 = 16.8GB | 7 × 1 × 1.2 = 8.4GB | 7 × 0.5 × 1.2 = 4.2GB |
| Vicuna-13B | 13 × 2 × 1.2 = 31.2GB | 13 × 1 × 1.2 = 15.6GB | 13 × 0.5 × 1.2 = 7.8GB |
These figures assume the formula’s flat 20% overhead for KV caching and other tasks. The 13B 8-bit estimate of 15.6GB matches FastChat’s claim that it fits on 16GB, and also shows how tight that fit is. One study’s minimum-hardware table for the original LLaMA, without quantisation and at a batch of 64, lists two 32GB V100s or one 80GB A100 for the 13B model.
The KV cache, though, grows with batch size and sequence length. The vLLM team measured that the KV cache for a single LLaMA-13B sequence can take up to 1.7GB. Anyscale’s back-of-envelope figure for a 13B model is close to 1MB of state per token. On a 40GB A100, the 14GB left after the 26GB of weights holds about 14k tokens. That allows about 28 sequences at 512 tokens, or only 7 at 2,048. Longer contexts, such as those of the 16K-context v1.5 variants, shrink the batch that fits.
Does Quantising Vicuna Make It Faster, or Only Smaller?
Quantisation does both, but the speed gain lands in decoding, and it shrinks as load rises. Weight-only quantisation speeds up decoding because lower-precision weights load from HBM faster. During prefill it can add latency instead, because prefill is limited by compute and the weights must be de-quantised back to FP16. As batch size and input length grow, compute takes a larger share of the latency and the speed-up from weight-only quantisation drops.
One INT4 implementation took Llama-2-7B (the base under Vicuna-7B) from 52 to 194 tokens/s on an RTX 4090, and ran Llama-2-13B at 33 tokens/s on an 8GB laptop RTX 4070, where FP16 could not even fit a 7B model. Vicuna shares the Llama 2 architecture, so we would treat these as reasonable reference points, not as measurements of Vicuna itself.
Quality is the other side of the trade. An evaluation of llama.cpp GGUF formats on Llama-3.1-8B-Instruct found that 5-bit formats kept, and sometimes slightly exceeded, the FP16 aggregate score. It named Q4_K_S as a balanced default and found that 3-bit settings degraded most clearly on reasoning-heavy tasks. That study used a different Llama model on a CPU server, so its exact scores are not Vicuna’s. An inference survey adds that quantisation can weaken multi-step reasoning and long-context behaviour. If your Vicuna workload relies on either, test the quantised build on your own prompts before you commit to it.
Batching: More Throughput per GPU, Slower Answers per User
Batching is critical for high throughput and for using expensive GPUs well. Databricks measured that on one A100, raising batch size to 64 increased throughput 14x while latency rose 4x. A hardware survey reports that going from batch 1 to batch 8 lifted GPU throughput on roughly 7B models by 2.56x to 5.32x. Each extra request also adds KV cache, which grows linearly with batch size and sequence length and sets a hard limit on concurrency.
Static batching waits until every sequence in the batch has finished. Continuous batching, introduced by Orca, schedules at the level of each iteration, so a finished sequence is replaced by a new one straight away. Anyscale measured 8x the throughput of naive batching from continuous batching alone, and up to 23x with vLLM’s memory optimisations. The vLLM team found that existing systems wasted 60-80% of memory to fragmentation and over-reservation. With PagedAttention, LMSYS halved the GPUs needed to serve its traffic. FastChat’s default Hugging Face worker is described as compatible but slow, with vLLM recommended for high-throughput batched serving.
Which batch size is right depends on the latency target. In one SLA-constrained batching study, a 50ms decode target allowed a batch of about 100 and roughly 1,900 tokens/s, while relaxing it to 80ms allowed about 230 and roughly 2,700 tokens/s. A chatbot and an overnight document job should be configured differently on the same card.
When Does Self-Hosting Vicuna Beat Paying per Token?
Self-hosting wins when traffic is high and steady enough to keep a fixed-cost GPU busy. Idle hours raise the price of every token it does serve. One cost guide modelled 900 scenarios and put the median break-even against mid-tier APIs at 11-12 million tokens per day. It estimated about $640 a month to host a 7B-class model at INT8, plus an operations floor of $1,500-2,500 a month. That guide is a modelled study, not a measurement of your workload. A cross-check by Pan et al. (2025) gives a framework for finding the break-even point from hardware, operating cost and usage rather than a single figure. Treat 11-12M tokens a day as a first filter, not an answer.
Utilisation moves the result. In the same guide, one H100 cost $0.35 per million tokens when fully busy and $0.54 at 65% busy. That is roughly a fixed cost spread over 65% of the tokens ($0.35 ÷ 0.65 ≈ $0.54). The guide also says peak concurrency decides GPU count more than total token volume does. Running Vicuna on your own hardware keeps prompts and outputs inside your own infrastructure and leaves you in control of the model version. If you already self-host and the cost per request is the problem, see our guide to porting inference to a different runtime or hardware.
Quality and Licensing Limits Before Production Use
The quality claim behind Vicuna’s reputation needs reading carefully. In the Vicuna paper, LMSYS reported a total score of 92% of ChatGPT’s, as judged by GPT-4. It does not measure accuracy on your task, and we would not size a production decision on it. Quantisation can also weaken multi-step reasoning. An evaluation set drawn from your real prompts tells you more than any leaderboard.
Licensing follows the base model. FastChat states that Vicuna is based on Llama 2 and should be used under Llama’s model licence. The Llama 2 Community License has several clauses that matter in production. You may not use Llama materials or their outputs to improve any other large language model outside Llama 2 and its derivatives. Products with more than 700 million monthly active users must request a separate licence from Meta. Use must follow Meta’s Acceptable Use Policy. The materials come “as is”, with no warranty. Vicuna v1.3 sits on Llama 1 instead, so check which version applies before deploying an older checkpoint. TechnoLynx covers the GPU engineering side; the licence reading belongs with your legal team.
Sizing a Vicuna Deployment for Your Latency and Concurrency Targets
Size Vicuna from measured throughput under your own load, not from spec sheets or someone else’s best-practice settings. Generic advice (“always quantise to 4-bit”, “max out the batch”) only makes sense once profiling shows where your workload’s time and memory actually go. Databricks recommends always measuring end-to-end server performance, noting that it saw a 2x latency difference between 8xA100 servers from two cloud providers. The order of steps matters:
- Write down the workload. Record input and output token volumes, peak concurrent users and the latency target.
- Estimate the memory footprint of weights plus KV cache at your real context length using the formula above.
- Benchmark one serving unit under load, recording time to first token, inter-token latency and requests per second. Our Ollama benchmark guide covers how to take and read these numbers on a local machine.
- Take the highest-throughput configuration that still meets your latency limit, which NVIDIA calls the Pareto front.
- Work out instance count: minimum instances = planned peak requests per second ÷ achievable requests per second per instance.
- Convert to cost per million tokens from the yearly server cost and the requests one server can handle, adjusted for real uptime. Then compare that with the API price.
For step 3, published Vicuna numbers give a sense of scale on one 80GB A100. Survey-reported results put Vicuna-7B and Vicuna-13B at 129.86 and 98.54 tokens/s with one method, and 139.95 and 132.31 tokens/s with another. When the bottleneck is inside the kernels rather than the serving configuration, profiling GPU kernels for the real bottleneck is the next step down.
For choosing hardware, the LynxBenchAI hardware directory collects LynxBenchAI’s published measured results by device. Those results describe the hardware, not your Vicuna deployment, so they narrow the shortlist before step 3 rather than replace it. When a team needs this sizing and tuning work done on its own stack, TechnoLynx does it through GPU performance engineering: profiling the serving path, choosing quantisation and batching against the latency target, and measuring the resulting cost per request.
Running Vicuna Cheaply Is a Serving Problem
The model itself is the simple part of a Vicuna generative AI project. It is a Llama 2 fine-tune with published sizes and a known licence. What changes the result is the serving layer: a 13B model squeezed onto a 16GB card with no room for concurrency, or a continuous-batching server that keeps an A100 busy enough to beat the API price. The same applies outside language models: raw GPU cost is not the business case, throughput and workload fit are. Our GPU acceleration hub covers that argument for simulation workloads. Before buying hardware, the question to settle is whether your traffic is steady enough to keep a GPU busy.