Gpt Oss Coder 20b needs about 16.7 GB of memory at Q4_K_M (a 15.8 GB file) with an 8K context window, so it fits on a 24 GB GPU. This repository has 11 quants, from 12.1 GB (Q3_K_S) to 22.3 GB (Q8_0). Longer context needs more: at 32K tokens the KV cache alone adds about 1.6 GB.
GPT‑OSS‑Coder‑20B – a 20.9B‑parameter code generation model
GPT‑OSS‑Coder‑20B is a fine‑tuned version of GPT‑OSS‑20B optimized for code generation. It was trained with Unsloth and the TRL library on 1 million random records. The model supports coding, tools, and programming queries.
Good at
- Code generation
- Programming query answering
- Code summarization
Limits
- No vision support
- Large memory requirement for high‑quality quants
- License is Apache‑2.0
Best for
- Developers needing code completion
- Automated code review tools
- Educational coding assistants
Who it’s for. This model is intended for developers, educators, and researchers who require a dedicated code generation assistant. It is suitable for integration into IDEs, CI pipelines, or educational platforms.
Quants & memory
| Quant | File | Est. memory | vs VRAM | Result | |
|---|---|---|---|---|---|
| Q3_K_S | 12.1 GB | 13.0 GB | Too big | Get file → | |
| Q2_K | 12.1 GB | 13.0 GB | Too big | Get file → | |
| IQ4_XS | 12.2 GB | 13.1 GB | Too big | Get file → | |
| Q3_K_M | 12.9 GB | 13.8 GB | Too big | Get file → | |
| Q3_K_L | 13.3 GB | 14.2 GB | Too big | Get file → | |
| Q4_K_S | 14.7 GB | 15.6 GB | Too big | Get file → | |
| Q4_K_M | 15.8 GB | 16.7 GB | Too big | Get file → | |
| Q5_K_S | 15.9 GB | 16.8 GB | Too big | Get file → | |
| Q5_K_M | 16.9 GB | 17.8 GB | Too big | Get file → | |
| Q6_K | 22.2 GB | 23.1 GB | Too big | Get file → | |
| Q8_0 | 22.3 GB | 23.2 GB | Too big | Get file → |
For 8 GB VRAM, use Q3_K_S or Q2_K (file size 12.06 GB, estimated memory 13 GB). For 16 GB VRAM, Q4_K_M or Q5_K_S (file size 15.81 GB, estimated memory 16.7 GB) are suitable. Higher‑quality quants like Q6_K or Q8_0 require more than 23 GB memory.
What GPU do you need for Gpt Oss Coder 20b?
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: the best quant that fits is Q4_K_S (14.7 GB file, about 15.6 GB in use).
- 24 GB VRAM: the best quant that fits is Q8_0 (22.3 GB file, about 23.2 GB in use).
Which Gpt Oss Coder 20b quant should you choose?
Q4_K_M is the usual starting point for Gpt Oss Coder 20b: it balances file size and quality well. Here it is a 15.8 GB file.
The Q8_0 file is 22.3 GB, about 1.4 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 Q3_K_S at 12.1 GB, with the quality trade-offs that come with fewer bits. A reasonable choice when a 4-bit file will not fit, mostly on larger models. Quality loss is noticeable but often acceptable.
New to quant names? Read GGUF quantization explained.
Specifications
Architecture from the GGUF header
Source
Frequently asked questions about Gpt Oss Coder 20b
How much VRAM does Gpt Oss Coder 20b need?
About 16.7 GB at Q4_K_M with an 8K context window. That is the 15.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 Gpt Oss Coder 20b on an 8 GB GPU?
Not at an 8K context. The smallest file needs about 13.0 GB, so you would need a larger GPU or CPU offloading.
What is the file size of Gpt Oss Coder 20b GGUF?
It depends on the quant: Q3_K_S is 12.1 GB, Q2_K is 12.1 GB, IQ4_XS is 12.2 GB, Q3_K_M is 12.9 GB, Q3_K_L is 13.3 GB, Q4_K_S is 14.7 GB and 5 more.
What context length does Gpt Oss Coder 20b support?
The GGUF header lists a trained context length of 131,072 tokens (128K). The KV cache grows with the context you use: about 0.4 GB at 8K and 1.6 GB at 32K.
Where can I download Gpt Oss Coder 20b GGUF?
The files are on Hugging Face in the mradermacher/gpt-oss-coder-20b-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 Gpt Oss Coder 20b use?
Hugging Face lists the license as apache-2.0. 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 GPT‑OSS‑Coder‑20B on 8 GB VRAM?
Use Q3_K_S or Q2_K quant; each requires about 13 GB memory at 8 k context.
Does the model support image inputs?
No, the model has no vision capability.
What license applies to this model?
The model is released under the Apache‑2.0 license.