LL

LLaMA 30B HF

LlamaGGUF by mradermacherUpdated 2024-12-12
Download on Hugging Face
Parameters32.5B
Context2K
Layers60
Architecturellama
Smallest quant7.1 GB
Quick answer

LLaMA 30B HF needs about 33.2 GB of memory at Q4_K_M (a 19.6 GB file) with an 8K context window, so it fits on a 48 GB GPU. This repository has 22 quants, from 7.1 GB (IQ1_S) to 26.7 GB (Q6_K).

LLaMA 30B HF is a 32.5B-parameter Llama model in GGUF format, quantized by mradermacher. Its trained context length is 2K tokens. The repository has 22 quant files, from 7.1 GB (IQ1_S) to 26.7 GB (Q6_K).

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
IQ1_S7.1 GB 10.9 GB
Too big Get file →
IQ1_M7.7 GB 11.5 GB
Too big Get file →
IQ2_XXS8.7 GB 12.5 GB
Too big Get file →
IQ2_XS9.6 GB 13.4 GB
Too big Get file →
IQ2_S10.4 GB 14.2 GB
Too big Get file →
Q2_K_S11.0 GB 14.7 GB
Too big Get file →
IQ2_M11.2 GB 15.0 GB
Too big Get file →
Q2_K12.0 GB 15.8 GB
Too big Get file →
IQ3_XXS12.3 GB 16.1 GB
Too big Get file →
IQ3_XS13.3 GB 17.1 GB
Too big Get file →
IQ3_S14.1 GB 17.8 GB
Too big Get file →
Q3_K_S14.1 GB 17.8 GB
Too big Get file →
IQ3_M14.9 GB 18.7 GB
Too big Get file →
Q3_K_M15.8 GB 19.5 GB
Too big Get file →
Q3_K_L17.3 GB 21.1 GB
Too big Get file →
IQ4_XS17.3 GB 21.1 GB
Too big Get file →
Q4_018.4 GB 22.2 GB
Too big Get file →
Q4_K_S18.5 GB 22.3 GB
Too big Get file →
Q4_K_M19.6 GB 23.4 GB
Too big Get file →
Q5_K_S22.4 GB 26.2 GB
Too big Get file →
Q5_K_M23.0 GB 26.8 GB
Too big Get file →
Q6_K26.7 GB 30.5 GB
Too big Get file →

What GPU do you need for LLaMA 30B HF?

These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) 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: no quant fits at an 8K context.
  • 6 GB VRAM: no quant fits at an 8K context.
  • 8 GB VRAM: no quant fits at an 8K context.
  • 12 GB VRAM: no quant fits at an 8K context.
  • 16 GB VRAM: no quant fits at an 8K context.
  • 24 GB VRAM: the best quant that fits is IQ2_S (10.4 GB file, about 24.0 GB in use).
  • 32 GB VRAM: the best quant that fits is Q4_0 (18.4 GB file, about 32.0 GB in use).
  • 48 GB VRAM: the best quant that fits is Q6_K (26.7 GB file, about 40.3 GB in use).

Which LLaMA 30B HF quant should you choose?

Q4_K_M is the usual starting point for LLaMA 30B HF: it balances file size and quality well. Here it is a 19.6 GB file.

If memory is tight, the smallest file is IQ1_S at 7.1 GB, with the quality trade-offs that come with fewer bits. Use it only when memory is very tight. Expect a clear drop in quality, which is usually worse on small models and easier to live with on large ones.

New to quant names? Read GGUF quantization explained.

Specifications

Architecture from the GGUF header

Architecturellama
Parameters32.5B
Layers60
Trained context2,048 tokens
KV cache (fp16)1560 KB per token

Source

Quantized bymradermacher
FamilyLlama
Licenseother
Downloads (HF)260
Last updated2024-12-12

Frequently asked questions about LLaMA 30B HF

How much VRAM does LLaMA 30B HF need?

About 33.2 GB at Q4_K_M with an 8K context window. That is the 19.6 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 LLaMA 30B HF on an 8 GB GPU?

Not at an 8K context. The smallest file needs about 20.7 GB, so you would need a larger GPU or CPU offloading.

What is the file size of LLaMA 30B HF GGUF?

It depends on the quant: IQ1_S is 7.1 GB, IQ1_M is 7.7 GB, IQ2_XXS is 8.7 GB, IQ2_XS is 9.6 GB, IQ2_S is 10.4 GB, Q2_K_S is 11.0 GB and 16 more.

What context length does LLaMA 30B HF support?

The GGUF header lists a trained context length of 2,048 tokens (2K). The KV cache grows with the context you use: about 13.1 GB at 8K and 3.3 GB at 2K.

Where can I download LLaMA 30B HF GGUF?

The files are on Hugging Face in the mradermacher/LLaMA-30B-HF-i1-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

What license does LLaMA 30B HF use?

Hugging Face lists the license as other. Licenses can differ between the quantized files and the original model, so check the repository and the base model before commercial use.

Other GGUFs of LLaMA-30B-HF

Similar models

Browse all →

More from mradermacher

All by mradermacher →

More Llama models

All Llama →

Other medium models

All medium models →