LL

llama2 7b quantized

LlamaGGUF by sunsheinUpdated 2023-09-04
Download on Hugging Face
Parameters6.74B
Context2K
Layers—
Architecturellama
Smallest quant0.0 GB
Quick answer

llama2 7b quantized needs about 0.5 GB of memory at its main file (a 0.0 GB file) with an 8K context window, so it fits on a 4 GB GPU. This repository has 2 quants, from 0.0 GB to 3.8 GB (Q4_0).

llama2 7b quantized is a 6.74B-parameter Llama model in GGUF format, quantized by sunshein. Its trained context length is 2K tokens. The repository has 2 quant files, from 0.0 GB to 3.8 GB (Q4_0).

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
—0.0 GB 0.5 GB
Fits Get file →
Q4_03.8 GB 4.4 GB
Fits Get file →

What GPU do you need for llama2 7b quantized?

These figures add the file size, an fp16 KV cache at an 8K context window and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.

  • 4 GB VRAM: the best quant that fits is the main file (0.0 GB file, about 0.5 GB in use).
  • 6 GB VRAM: the best quant that fits is Q4_0 (3.8 GB file, about 4.8 GB in use).

Specifications

Architecture from the GGUF header

Architecturellama
Parameters6.74B
Trained context2,048 tokens

Source

Quantized bysunshein
FamilyLlama
Downloads (HF)22
Last updated2023-09-04

Frequently asked questions about llama2 7b quantized

How much VRAM does llama2 7b quantized need?

About 0.5 GB at its main file with an 8K context window. That is the 0.0 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.

Can I run llama2 7b quantized on an 8 GB GPU?

Yes, with Q4_0: the 3.8 GB file needs about 4.8 GB at 8K context. Larger quants in this repository do not fit in 8 GB.

What is the file size of llama2 7b quantized GGUF?

It depends on the quant: file is 0.0 GB, Q4_0 is 3.8 GB.

What context length does llama2 7b quantized support?

The GGUF header lists a trained context length of 2,048 tokens (2K).

Where can I download llama2 7b quantized GGUF?

The files are on Hugging Face in the sunshein/llama2-7b-quantized repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

Similar models

Browse all →

More Llama models

All Llama →

Other small models

All small models →