Model reference · open weights

TinyLlama

LLMs TinyLlama Text gen 2 builds Open weights 1.9M dl/mo

TinyLlama is an open-weight language model from TinyLlama. TinyLlama-1.1B-Chat-v1.0 (BF16) weighs 2.2 GB; the smallest configuration that runs it is RTX 3060 12 GB.

  • TinyLlama is a 1.1B parameter text-generation model designed for applications with restricted computation and memory footprints.
  • It uses the same architecture and tokenizer as Llama 2 and supports a context length of 2048 tokens in English.
  • The model is released under the Apache-2.0 license.

Summary of the TinyLlama/TinyLlama-1.1B-Chat-v1.0 model card, 2026-10-01

What it is

Released byTinyLlama
Released2023-12-30
Parameters1.1B
VRAM2.2 GB for the weights

What it runs on

Memory and cards for TinyLlama-1.1B-Chat-v1.0 (BF16)

2.2 GBweights, file size
23 MBcache per 1K tokens
542 MBruntime overhead, at least
2,048 tokenscontext max
CardRequests at onceContext maxMemory
2K each
RTX 3060 12 GB192all 2K11.6 GB
RTX 4060 Ti 16 GB274all 2K15.4 GB
RTX 3090 24 GB447all 2K23.4 GB
RTX 4090 24 GB446all 2K23.4 GB
RTX 5090 32 GB612all 2K31.0 GB
L40S 48 GB893all 2K44.0 GB
A100 80 GB1000+all 2K78.2 GB
H100 80 GB1000+all 2K78.1 GB
RTX PRO 6000 Blackwell 96 GB1000+all 2K93.8 GB
DGX Spark (GB10) 128 GB unified1000+all 2K107 GB
H200 141 GB1000+all 2K138 GB
B200 180 GB1000+all 2K176 GB
Memory needed at each load
Requests at once2K tokens each
12.8 GB
53.0 GB
83.1 GB
163.5 GB
324.2 GB
645.7 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
TinyLlama-1.1B-Chat-v1.0 (above) ↗ 1.1BBF16 2.2 GBRTX 3060 12 GB
TinyLlama_v1.1 ↗ —BF16 4.4 GBRTX 3060 12 GB

From the model card

What TinyLlama says about TinyLlama

Read the model card

https://github.com/jzhang38/TinyLlama

The TinyLlama project aims to pretrain a 1.1B Llama model on 3 trillion tokens. With some proper optimization, we can achieve this within a span of "just" 90 days using 16 A100-40G GPUs 🚀🚀. The training has started on 2023-09-01.

We adopted exactly the same architecture and tokenizer as Llama 2. This means TinyLlama can be plugged and played in many open-source projects built upon Llama. Besides, TinyLlama is compact with only 1.1B parameters. This compactness allows it to cater to a multitude of applications demanding a restricted computation and memory footprint.

This Model

This is the chat model finetuned on top of TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T. We follow HF's Zephyr's training recipe. The model was " initially fine-tuned on a variant of the UltraChat dataset, which contains a diverse range of synthetic dialogues generated by ChatGPT. We then further aligned the model with 🤗 TRL's DPOTrainer on the openbmb/UltraFeedback dataset, which contain 64k prompts and model completions that are ranked by GPT-4."

How to use

You will need the transformers>=4.34 Do check the TinyLlama github page for more information.

# Install transformers from source - only needed for versions <= v4.34
# pip install git+https://github.com/huggingface/transformers.git
# pip install accelerate

import torch
from transformers import pipeline

pipe = pipeline("text-generation", model="TinyLlama/TinyLlama-1.1B-Chat-v1.0", torch_dtype=torch.bfloat16, device_map="auto")

# We use the tokenizer's chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating
messages = [
    {
        "role": "system",
        "content": "You are a friendly chatbot who always responds in the style of a pirate",
    },
    {"role": "user", "content": "How many helicopters can a human eat in one sitting?"},
]
prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])
#
# You are a friendly chatbot who always responds in the style of a pirate.
#
# How many helicopters can a human eat in one sitting?
#
# ...

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms