LL

OpenMath-CodeLlama-13b-Python-hf

LlamaGGUF by MungertUpdated 2025-09-24
Download on Hugging Face
Parameters13B
Context16K
Layers40
Architecturellama
Smallest quant3.6 GB
Quick answer

OpenMath-CodeLlama-13b-Python-hf needs about 15.0 GB of memory at Q4_K_M (a 7.8 GB file) with an 8K context window, so it fits on a 16 GB GPU. This repository has 29 quants, from 3.6 GB (IQ1_S) to 26.0 GB (BF16).

OpenMath-CodeLlama-13b-Python-hf – a 13B parameter Python code model

OpenMath-CodeLlama-13b-Python-hf is a 13 billion parameter Llama model fine‑tuned for Python code synthesis. It supports code completion and general code understanding. The model is available in multiple GGUF quantizations.

Good at

  • Python code completion
  • Code understanding
  • Auto‑regressive generation

Limits

  • No vision support
  • Requires 8k context for full performance
  • License is llama2

Best for

  • Python script generation
  • Debugging assistance
  • Learning code patterns

Who it’s for. Developers needing a dedicated Python code model. Researchers testing code generation performance. Educators creating coding examples.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
IQ1_S3.6 GB 10.8 GB
Too big Get file →
IQ1_M3.9 GB 11.1 GB
Too big Get file →
IQ2_XXS4.0 GB 11.2 GB
Too big Get file →
IQ2_XS4.3 GB 11.5 GB
Too big Get file →
IQ2_S4.5 GB 11.7 GB
Too big Get file →
IQ2_M4.7 GB 11.9 GB
Too big Get file →
Q2_K_S4.9 GB 12.1 GB
Too big Get file →
Q2_K_M4.9 GB 12.1 GB
Too big Get file →
IQ3_XXS5.3 GB 12.5 GB
Too big Get file →
IQ3_XS5.5 GB 12.7 GB
Too big Get file →
IQ3_M6.1 GB 13.3 GB
Too big Get file →
IQ3_S6.1 GB 13.3 GB
Too big Get file →
Q3_K_S6.3 GB 13.5 GB
Too big Get file →
Q3_K_M6.4 GB 13.6 GB
Too big Get file →
IQ4_XS7.0 GB 14.2 GB
Too big Get file →
Q4_07.3 GB 14.5 GB
Too big Get file →
IQ4_NL7.4 GB 14.6 GB
Too big Get file →
Q4_K_S7.5 GB 14.8 GB
Too big Get file →
Q4_K_M7.8 GB 15.0 GB
Too big Get file →
Q4_18.1 GB 15.3 GB
Too big Get file →
Q5_09.0 GB 16.2 GB
Too big Get file →
Q5_K_S9.1 GB 16.3 GB
Too big Get file →
Q5_K_M9.3 GB 16.5 GB
Too big Get file →
Q5_19.8 GB 17.0 GB
Too big Get file →
Q6_K_M10.7 GB 17.9 GB
Too big Get file →
Q8_013.8 GB 21.0 GB
Too big Get file →
BF1618.8 GB 26.0 GB
Too big Get file →
F1618.8 GB 26.0 GB
Too big Get file →
BF1626.0 GB 33.2 GB
Too big Get file →

For 8 GB VRAM, use IQ1_S (3.6 GB file, 10.8 GB memory) or IQ1_M (3.92 GB file, 11.1 GB memory). For 16 GB VRAM, Q4_K_M (7.83 GB file, 15 GB memory) or Q5_K_M (9.28 GB file, 16.5 GB memory) are suitable. Higher precision options like Q8_0 or F16 require more than 20 GB VRAM.

What GPU do you need for OpenMath-CodeLlama-13b-Python-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: the best quant that fits is IQ2_M (4.7 GB file, about 11.9 GB in use).
  • 16 GB VRAM: the best quant that fits is Q4_1 (8.1 GB file, about 15.3 GB in use).
  • 24 GB VRAM: the best quant that fits is Q8_0 (13.8 GB file, about 21.0 GB in use).
  • 32 GB VRAM: the best quant that fits is BF16 (18.8 GB file, about 26.0 GB in use).
  • 48 GB VRAM: the best quant that fits is BF16 (26.0 GB file, about 33.2 GB in use).

Which OpenMath-CodeLlama-13b-Python-hf quant should you choose?

Q4_K_M is the usual starting point for OpenMath-CodeLlama-13b-Python-hf: it balances file size and quality well. Here it is a 7.8 GB file.

The Q8_0 file is 13.8 GB, about 1.8 times the size of Q4_K_M. It keeps the weights closer to the original, which only matters if you have the memory to spare.

If memory is tight, the smallest file is IQ1_S at 3.6 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
Parameters13B
Layers40
Trained context16,384 tokens
KV cache (fp16)800 KB per token

Source

Quantized byMungert
FamilyLlama
Licensellama2
Downloads (HF)680
Last updated2025-09-24

Frequently asked questions about OpenMath-CodeLlama-13b-Python-hf

How much VRAM does OpenMath-CodeLlama-13b-Python-hf need?

About 15.0 GB at Q4_K_M with an 8K context window. That is the 7.8 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 OpenMath-CodeLlama-13b-Python-hf on an 8 GB GPU?

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

What is the file size of OpenMath-CodeLlama-13b-Python-hf GGUF?

It depends on the quant: IQ1_S is 3.6 GB, IQ1_M is 3.9 GB, IQ2_XXS is 4.0 GB, IQ2_XS is 4.3 GB, IQ2_S is 4.5 GB, IQ2_M is 4.7 GB and 23 more.

What context length does OpenMath-CodeLlama-13b-Python-hf support?

The GGUF header lists a trained context length of 16,384 tokens (16K). The KV cache grows with the context you use: about 6.7 GB at 8K and 13.4 GB at 16K.

Where can I download OpenMath-CodeLlama-13b-Python-hf GGUF?

The files are on Hugging Face in the Mungert/OpenMath-CodeLlama-13b-Python-hf-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 OpenMath-CodeLlama-13b-Python-hf use?

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

Can I run this model on 8 GB VRAM?

Yes, using IQ1_S or IQ1_M quantizations which estimate 10.8–11.1 GB memory at 8k context.

Does this model support image inputs?

No, it only accepts text input and produces text output.

What license applies to this model?

The model is governed by the llama2 license.

Other GGUFs of CodeLlama-13b-Python-hf

Similar models

Browse all →

More from Mungert

All by Mungert →

More Llama models

All Llama →

Other medium models

All medium models →