SAVRN
Search Contact SAVRN

Open-weight model · Text generation

Llama-2-7b-hf

by Meta Llama meta-llama/Llama-2-7b-hf

Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. This is the repository for the 7B pretrained model, converted for the Hugging Face Transformers format.

Parameters6.7B
Context
Weights27.0 GB
Licensellama2
AccessAccess requested at publisher
Monthly Downloads783.4k

Runs On

What it takes to serve Llama-2-7b-hf (6.7B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 13.5 GB 16.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 6.7 GB 8.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 3.4 GB 4.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

SAVRN's Notes on Llama-2-7b-hf

Before hardware, the gate: Meta requires you to accept its license on its website and request access before the weights and tokenizer can be fetched, so plan for the delay. Once through, this 6.7-billion-parameter pretrained base needs 16.2 GB at 16-bit, 8.1 GB at 8-bit and 4.0 GB at 4-bit. The cheapest configuration we track is one MI300X with 192 GB at $1.85 an hour, and at 16-bit that card holds the model nearly twelve times over, so one card serving many concurrent contexts is the natural layout.

The license is Meta's own Llama 2 license, not Apache, and our data carries no summary of its terms, so read it in full; commercial rights come from it alone. Our record lists no context length, so confirm it in the config before sizing prompts. Released July 13, 2023 and last updated April 17, 2024, it still draws 783,424 downloads a month.

Model Card

Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. This is the repository for the 7B pretrained model, converted for the Hugging Face Transformers format. Links to other models can be found in the index at the bottom. Note: Use of this model is governed by the Meta license. In order to download the model weights and tokenizer, please visit the website and accept our License before requesting access here. Meta developed and publicly released the Llama 2 family of large language models (LLMs), a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion…

Excerpt from the card by Meta Llama, licensed llama2.

Identity and Version

Repository
meta-llama/Llama-2-7b-hf
Publisher
Meta Llama
Task
Text generation
Modality
Text
Library
transformers
Parameters
6.7B parameters
Languages
en
Revision
01c7f73d771dfac7d292323805ebc428287df4f9
First published
2023-07-13
Last updated
2024-04-17

Files and Weights

17 files, 27.0 GB in total. The weights are 4 files totalling 27.0 GB in bin, safetensors.

Weights4 files · 27.0 GB
Configuration5 files · 54.8 KB
Tokenizer3 files · 2.3 MB
Documentation3 files · 34.1 KB
Other1 file · 1.3 MB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
model-00001-of-00002.safetensorsWeights10.0 GB
model-00002-of-00002.safetensorsWeights3.5 GB
pytorch_model-00001-of-00002.binWeights10.0 GB
pytorch_model-00002-of-00002.binWeights3.5 GB
config.jsonConfiguration609 B
generation_config.jsonConfiguration188 B
model.safetensors.index.jsonConfiguration26.8 KB
pytorch_model.bin.index.jsonConfiguration26.8 KB
special_tokens_map.jsonConfiguration414 B
LICENSE.txtDocumentation7.0 KB
README.mdDocumentation22.3 KB
USE_POLICY.mdDocumentation4.8 KB
Responsible-Use-Guide.pdfOther1.3 MB
.gitattributesRepository1.6 KB
tokenizer.jsonTokenizer1.8 MB
tokenizer.modelTokenizer499.7 KB
tokenizer_config.jsonTokenizer776 B

License and Download

License
llama2
Access
Access requested at publisher
Download size
27.0 GB
Download from Meta Llama

Released by Meta Llama through Meta's Llama downloads.

Built From

  • Described by arXiv:2307.09288

Memory Requirements

PrecisionWeights in memory
As published27.0 GB
16-bit13.5 GB
8-bit6.7 GB
4-bit3.4 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About Llama-2-7b-hf

How much GPU memory does Llama-2-7b-hf need?

About 16.2 GB at 16-bit and 4 GB at 4-bit: the weights (6.7B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run Llama-2-7b-hf on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

What license is Llama-2-7b-hf released under?

llama2, as its publisher declares it. Read the license text before commercial use.

Similar Models

Model · Text generation

Ornith-1.5-9B-NVFP4

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit 6.7B parameters 262,144 tokens transformers

Model · Text generation

deepseek-coder-7b-instruct-v1.5

DeepSeek

Deepseek-Coder-7B-Instruct-v1.5 is continue pre-trained from Deepseek-LLM 7B on 2T tokens by employing a window size of 4K and next token prediction objective, and then fine-tuned on 2B tokens of instruction data. Here give some examples of how to use our model. This code repository is licensed under the MIT License. The use of DeepSeek Coder models is subject to the Model License. DeepSeek Coder supports commercial use. See the LICENSE-MODEL for more details. If you have any questions, please raise an issue or contact us at [email protected].

Open weights other 6.9B parameters 4,096 tokens transformers

Model · Text generation

granite-4.0-h-tiny-w8a8-llmcompressor

AMD

ZenDNN v6.1.0 - ZenTorch v2.13.0.0 - PyTorch v2.13.0.0 - LLM Compressor v0.13.0 - vLLM v0.29.0 This is a quantized version of granite-4.0-h-tiny created by AMD using LLM Compressor (compressed-tensors) for ZenDNN-optimized CPU inference. The model was quantized from granite-4.0-h-tiny using LLM Compressor via the Round-to-Nearest (RTN) algorithm. This reduces the model weights from 12.9 GiB to 6.6 GiB on disk (~49% reduction). granite-4.0-h-tiny is a hybrid Mamba-MoE model: of its 40 layers, 4 are full-attention blocks and the other 36 are Mamba (linear-attention) blocks, and every layer carries a 64-expert MoE block alongside a shared MLP. The recipe only needs two ignore entries. lmhead…

Open weights apache-2.0 6.9B parameters 131,072 tokens transformers

Model · Text generation

pythia-6.9b

EleutherAI

The Pythia Scaling Suite is a collection of models developed to facilitate interpretability research (see paper). It contains two sets of eight models of sizes 70M, 160M, 410M, 1B, 1.4B, 2.8B, 6.9B, and 12B. For each size, there are two models: one trained on the Pile, and one trained on the Pile after the dataset has been globally deduplicated. All 8 model sizes are trained on the exact same data, in the exact same order. We also provide 154 intermediate checkpoints per model, hosted on Hugging Face as branches. The Pythia model suite was deliberately designed to promote scientific research on large language models, especially interpretability research. Despite not centering downstream…

Open weights apache-2.0 7B parameters 2,048 tokens transformers

Model · Text generation

Mistral-7B-Instruct-v0.2

Mistral AI_

The Mistral-7B-Instruct-v0.2 Large Language Model (LLM) is an instruct fine-tuned version of the Mistral-7B-v0.2. Mistral-7B-v0.2 has the following changes compared to Mistral-7B-v0.1 - 32k context window (vs 8k context in v0.1) - Rope-theta = 1e6 For full details of this model please read our paper and release blog post. In order to leverage instruction fine-tuning, your prompt should be surrounded by [INST] and [/INST] tokens. The very first instruction should begin with a begin of sentence id. The next instructions should not. The assistant generation will be ended by the end-of-sentence token id. This format is available as a chat template via the applychattemplate() method: - If you…

Open weights apache-2.0 7.2B parameters 32,768 tokens transformers

Model · Text generation

Qwen2.5-7B-Instruct

Qwen

Qwen2.5 is the latest series of Qwen large language models. For Qwen2.5, we release a number of base language models and instruction-tuned language models ranging from 0.5 to 72 billion parameters. Qwen2.5 brings the following improvements upon Qwen2: - Significantly more knowledge and has greatly improved capabilities in coding and mathematics, thanks to our specialized expert models in these domains. - Significant improvements in instruction following, generating long texts (over 8K tokens), understanding structured data (e.g, tables), and generating structured outputs especially JSON. More resilient to the diversity of system prompts, enhancing role-play implementation and…

Open weights apache-2.0 7.6B parameters 32,768 tokens transformers