GPT OSS Code Reasoning 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 24 quants, from 0.0 GB to 22.2 GB (Q6_K). Longer context needs more: at 32K tokens the KV cache alone adds about 1.6 GB.
GPT OSS Code Reasoning 20B – 20.9B parameter model for coding and reasoning
GPT OSS Code Reasoning 20B is a 20.9B parameter model fine‑tuned for competitive programming and algorithmic reasoning. It supports Python and C++ code generation and step‑by‑step reasoning. The model uses a 4096 token context window and was trained with LoRA SFT.
Good at
- Python code generation
- C++ solution drafting
- Algorithmic reasoning
Limits
- No vision support
- Large VRAM requirement for full context
- License not specified
Best for
- Competitive programming tasks
- Code explanation and debugging
- Algorithmic problem solving
Who it’s for. Developers and researchers needing a specialized code generation model. The model is suitable for generating solutions to algorithmic challenges but is not intended for safety‑critical applications.
Quants & memory
| Quant | File | Est. memory | vs VRAM | Result | |
|---|---|---|---|---|---|
| — | 0.0 GB | 0.9 GB | Fits | Get file → | |
| IQ1_M | 12.0 GB | 12.9 GB | Too big | Get file → | |
| IQ1_S | 12.0 GB | 12.9 GB | Too big | Get file → | |
| IQ2_XXS | 12.0 GB | 12.9 GB | Too big | Get file → | |
| IQ2_XS | 12.0 GB | 12.9 GB | Too big | Get file → | |
| Q3_K_S | 12.1 GB | 13.0 GB | Too big | Get file → | |
| IQ2_M | 12.1 GB | 13.0 GB | Too big | Get file → | |
| IQ2_S | 12.1 GB | 13.0 GB | Too big | Get file → | |
| IQ3_S | 12.1 GB | 13.0 GB | Too big | Get file → | |
| IQ3_XS | 12.1 GB | 13.0 GB | Too big | Get file → | |
| IQ3_XXS | 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.1 GB | 13.0 GB | Too big | Get file → | |
| Q2_K_S | 12.1 GB | 13.0 GB | Too big | Get file → | |
| Q4_0 | 12.1 GB | 13.1 GB | Too big | Get file → | |
| IQ3_M | 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_1 | 13.4 GB | 14.3 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 → |
For 8 GB VRAM, use the Q4_K_M quant (15.81 GB file, 16.7 GB memory at 8 k context). For 12 GB VRAM, the IQ1_M or IQ1_S quants (12.02 GB file, 12.9 GB memory) are suitable. For larger memory budgets, the Q5_K_M or Q6_K quants provide higher quality at 16.89 GB/17.8 GB and 22.19 GB/23.1 GB respectively.
What GPU do you need for GPT OSS Code Reasoning 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: the best quant that fits is the main file (0.0 GB file, about 0.9 GB in use).
- 6 GB VRAM: the best quant that fits is the main file (0.0 GB file, about 0.9 GB in use).
- 8 GB VRAM: the best quant that fits is the main file (0.0 GB file, about 0.9 GB in use).
- 12 GB VRAM: the best quant that fits is the main file (0.0 GB file, about 0.9 GB in use).
- 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 Q6_K (22.2 GB file, about 23.1 GB in use).
Which GPT OSS Code Reasoning 20B quant should you choose?
Q4_K_M is the usual starting point for GPT OSS Code Reasoning 20B: it balances file size and quality well. Here it is a 15.8 GB file.
If memory is tight, the smallest file is the first one in the table at 0.0 GB, with the quality trade-offs that come with fewer bits.
New to quant names? Read GGUF quantization explained.
Specifications
Architecture from the GGUF header
Source
Frequently asked questions about GPT OSS Code Reasoning 20B
How much VRAM does GPT OSS Code Reasoning 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 Code Reasoning 20B on an 8 GB GPU?
Yes, with the smaller files: the 0.0 GB file needs about 0.9 GB at 8K context. Larger quants in this repository do not fit in 8 GB.
What is the file size of GPT OSS Code Reasoning 20B GGUF?
It depends on the quant: file is 0.0 GB, IQ1_M is 12.0 GB, IQ1_S is 12.0 GB, IQ2_XXS is 12.0 GB, IQ2_XS is 12.0 GB, Q3_K_S is 12.1 GB and 18 more.
What context length does GPT OSS Code Reasoning 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 Code Reasoning 20B GGUF?
The files are on Hugging Face in the mradermacher/GPT-OSS-Code-Reasoning-20B-i1-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.
Can I run this model on 8 GB VRAM?
The Q4_K_M quant requires about 16.7 GB memory at 8 k context, so 8 GB VRAM is insufficient.
Does the model support image inputs?
No, the model has no vision capability.
What context length does the model support?
The model was trained with a 4096 token context length.