OP

OpenCoder 1.5B Instruct

OpencoderGGUF by lmstudio-communityUpdated 2024-11-11
Download on Hugging Face
Parameters1.91B
Context4K
Layers24
Architecturellama
Smallest quant1.3 GB
Quick answer

OpenCoder 1.5B Instruct needs about 3.7 GB of memory at Q4_K_M (a 1.4 GB file) with an 8K context window, so it fits on a 4 GB GPU. This repository has 4 quants, from 1.3 GB (Q3_K_L) to 2.0 GB (Q8_0).

OpenCoder 1.5B Instruct – a code‑focused LLM with 1.91B parameters

OpenCoder 1.5B Instruct is a code‑centric language model trained on 2.5 trillion tokens, 90% raw code and 10% code‑related web data. It is fine‑tuned on 4.5 million high‑quality SFT examples and supports 8k context length. The model is available in GGUF format with several quantizations.

Good at

  • Code generation
  • Code completion
  • Programming assistance

Limits

  • No vision support
  • Requires 8k context for full performance
  • License is other, not explicitly permissive

Best for

  • Developers needing lightweight code models
  • Educational coding tools
  • Rapid prototyping of code snippets

Who it’s for. This model is suitable for developers, researchers, and educators who need a small yet capable code LLM. It works well on local hardware with llama.cpp and can be used for building code assistants or teaching tools.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q3_K_L1.3 GB 2.7 GB
Fits Get file →
Q4_K_M1.4 GB 2.8 GB
Fits Get file →
Q6_K1.9 GB 3.3 GB
Fits Get file →
Q8_02.0 GB 3.4 GB
Fits Get file →

For 8 GB VRAM, Q4_K_M (1.42 GB, 3.7 GB memory) is a good balance. If VRAM is limited to 4 GB, use Q3_K_L (1.27 GB, 3.5 GB memory). For higher precision and more VRAM, Q6_K or Q8_0 can be used. Memory estimates are approximate.

What GPU do you need for OpenCoder 1.5B Instruct?

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 Q4_K_M (1.4 GB file, about 3.7 GB in use).
  • 6 GB VRAM: the best quant that fits is Q8_0 (2.0 GB file, about 4.3 GB in use).

Which OpenCoder 1.5B Instruct quant should you choose?

Q4_K_M is the usual starting point for OpenCoder 1.5B Instruct: it balances file size and quality well. Here it is a 1.4 GB file.

The Q8_0 file is 2.0 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_L at 1.3 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

Architecturellama
Parameters1.91B
Layers24
Trained context4,096 tokens
KV cache (fp16)210 KB per token

Source

Quantized bylmstudio-community
FamilyOpencoder
Licenseother
Downloads (HF)2,825
Last updated2024-11-11

Frequently asked questions about OpenCoder 1.5B Instruct

How much VRAM does OpenCoder 1.5B Instruct need?

About 3.7 GB at Q4_K_M with an 8K context window. That is the 1.4 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 OpenCoder 1.5B Instruct on an 8 GB GPU?

Yes, with Q8_0: the 2.0 GB file needs about 4.3 GB at 8K context. Larger quants in this repository do not fit in 8 GB.

What is the file size of OpenCoder 1.5B Instruct GGUF?

It depends on the quant: Q3_K_L is 1.3 GB, Q4_K_M is 1.4 GB, Q6_K is 1.9 GB, Q8_0 is 2.0 GB.

What context length does OpenCoder 1.5B Instruct support?

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

Where can I download OpenCoder 1.5B Instruct GGUF?

The files are on Hugging Face in the lmstudio-community/OpenCoder-1.5B-Instruct-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 OpenCoder 1.5B Instruct 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.

Can I run OpenCoder 1.5B Instruct on 8 GB VRAM?

Yes, the Q4_K_M quantization uses about 3.7 GB of VRAM at 8k context, which fits within 8 GB.

Does this model support Chinese prompts?

Yes, the model supports English and Chinese prompting as stated in the technical details.

What context length does the model support?

The model was trained with a context length of 8k tokens.

Other GGUFs of OpenCoder-1.5B-Instruct

Similar models

Browse all →

More from lmstudio-community

All by lmstudio-community →

More Opencoder models

All Opencoder →

Other tiny models

All tiny models →