LL

codellama-70b-instruct-nf4-fp16-upscaled

LlamaGGUF by RichardErkhovUpdated 2024-05-31
Download on Hugging Face
Parameters69B
Context4K
Layers80
Architecturellama
Smallest quant25.5 GB
Quick answer

codellama-70b-instruct-nf4-fp16-upscaled needs about 36.5 GB of memory at Q3_K (a 33.3 GB file) with an 8K context window, so it fits on a 48 GB GPU. This repository has 11 quants, from 25.5 GB (Q2_K) to 39.2 GB (IQ4_NL).

codellama-70b-instruct-nf4-fp16-upscaled is a 69B-parameter Llama model in GGUF format, quantized by RichardErkhov. Its trained context length is 4K tokens. The repository has 11 quant files, from 25.5 GB (Q2_K) to 39.2 GB (IQ4_NL).

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q2_K25.5 GB 27.3 GB
Too big Get file →
IQ3_XS28.3 GB 30.2 GB
Too big Get file →
IQ3_S29.9 GB 31.8 GB
Too big Get file →
Q3_K_S29.9 GB 31.8 GB
Too big Get file →
IQ3_M30.9 GB 32.8 GB
Too big Get file →
Q3_K33.3 GB 35.1 GB
Too big Get file →
Q3_K_M33.3 GB 35.1 GB
Too big Get file →
Q3_K_L36.1 GB 38.0 GB
Too big Get file →
IQ4_XS37.2 GB 39.0 GB
Too big Get file →
Q4_038.9 GB 40.7 GB
Too big Get file →
IQ4_NL39.2 GB 41.1 GB
Too big Get file →

What GPU do you need for codellama-70b-instruct-nf4-fp16-upscaled?

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: no quant fits at an 8K context.
  • 32 GB VRAM: the best quant that fits is IQ3_XS (28.3 GB file, about 31.5 GB in use).
  • 48 GB VRAM: the best quant that fits is IQ4_NL (39.2 GB file, about 42.4 GB in use).

Which codellama-70b-instruct-nf4-fp16-upscaled quant should you choose?

Q3_K (33.3 GB) is the middle option in this repository. A reasonable choice when a 4-bit file will not fit, mostly on larger models. Quality loss is noticeable but often acceptable.

If memory is tight, the smallest file is Q2_K at 25.5 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
Parameters69B
Layers80
Trained context4,096 tokens
KV cache (fp16)320 KB per token

Source

Quantized byRichardErkhov
FamilyLlama
Downloads (HF)4
Last updated2024-05-31

Frequently asked questions about codellama-70b-instruct-nf4-fp16-upscaled

How much VRAM does codellama-70b-instruct-nf4-fp16-upscaled need?

About 36.5 GB at Q3_K with an 8K context window. That is the 33.3 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 codellama-70b-instruct-nf4-fp16-upscaled on an 8 GB GPU?

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

What is the file size of codellama-70b-instruct-nf4-fp16-upscaled GGUF?

It depends on the quant: Q2_K is 25.5 GB, IQ3_XS is 28.3 GB, IQ3_S is 29.9 GB, Q3_K_S is 29.9 GB, IQ3_M is 30.9 GB, Q3_K is 33.3 GB and 5 more.

What context length does codellama-70b-instruct-nf4-fp16-upscaled support?

The GGUF header lists a trained context length of 4,096 tokens (4K). The KV cache grows with the context you use: about 2.7 GB at 8K and 1.3 GB at 4K.

Where can I download codellama-70b-instruct-nf4-fp16-upscaled GGUF?

The files are on Hugging Face in the RichardErkhov/arnavgrg_-_codellama-70b-instruct-nf4-fp16-upscaled-gguf 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 from RichardErkhov

All by RichardErkhov →

More Llama models

All Llama →

Other large models

All large models →