QW

nl2sh 1.5b Q4 K M

QwenGGUF by ThorOdinson246Updated 2026-08-15
Download on Hugging Face
Parameters1.54B
Context32K
Layers28
Architectureqwen2
Smallest quant1.0 GB
Quick answer

nl2sh 1.5b Q4 K M needs about 1.7 GB of memory at Q4_K_M (a 1.0 GB file) with an 8K context window, so it fits on a 4 GB GPU. Longer context needs more: at 32K tokens the KV cache alone adds about 0.9 GB.

A 1.5B Qwen2.5-Coder model fine‑tuned to generate shell commands from English prompts

nl2sh 1.5b Q4 K M is a 1.5B parameter Qwen2.5-Coder model fine‑tuned on 125,770 natural‑language/shell pairs. It is quantized to Q4_K_M and packaged as a 0.99 GB GGUF file. The model runs on CPU via llama.cpp and produces a single shell command per prompt.

Good at

  • Shell command generation
  • Fast CPU inference
  • Low memory footprint

Limits

  • No vision support
  • Requires llama.cpp runtime
  • Context length limited to 32,768 tokens

Best for

  • Command‑line automation
  • Local shell scripting assistance
  • Rapid prototyping of shell commands

Who it’s for. Developers needing a lightweight, local tool to translate plain English into shell commands. It is ideal for environments without GPU resources or where quick, single‑command outputs are required.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q4_K_M1.0 GB 1.7 GB
Fits Get file →

The Q4_K_M quantization results in a 0.99 GB file and approximately 1.7 GB of VRAM at 8 k context. For 8 GB VRAM, this quant is suitable. If more VRAM is available, higher‑quality quants are not listed, so Q4_K_M remains the recommended choice.

What GPU do you need for nl2sh 1.5b Q4 K M?

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.0 GB file, about 1.7 GB in use).

Which nl2sh 1.5b Q4 K M quant should you choose?

Q4_K_M is the usual starting point for nl2sh 1.5b Q4 K M: it balances file size and quality well. Here it is a 1.0 GB file.

New to quant names? Read GGUF quantization explained.

Specifications

Architecture from the GGUF header

Architectureqwen2
Parameters1.54B
Layers28
Trained context32,768 tokens
KV cache (fp16)28 KB per token

Source

Quantized byThorOdinson246
FamilyQwen
Licenseapache-2.0
Downloads (HF)100,457
Last updated2026-08-15

Frequently asked questions about nl2sh 1.5b Q4 K M

How much VRAM does nl2sh 1.5b Q4 K M need?

About 1.7 GB at Q4_K_M with an 8K context window. That is the 1.0 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 nl2sh 1.5b Q4 K M on an 8 GB GPU?

Yes, with Q4_K_M: the 1.0 GB file needs about 1.7 GB at 8K context. Larger quants in this repository do not fit in 8 GB.

What is the file size of nl2sh 1.5b Q4 K M GGUF?

It depends on the quant: Q4_K_M is 1.0 GB.

What context length does nl2sh 1.5b Q4 K M support?

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

Where can I download nl2sh 1.5b Q4 K M GGUF?

The files are on Hugging Face in the ThorOdinson246/nl2sh-1.5b-Q4_K_M repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

What license does nl2sh 1.5b Q4 K M 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 nl2sh 1.5b on 8 GB VRAM?

Yes, the Q4_K_M quant uses about 1.7 GB of VRAM at 8 k context, well within an 8 GB budget.

Does this model support image inputs?

No, the model has no vision capabilities and only processes text.

What license applies to this model?

The model is released under the Apache‑2.0 license.

Other GGUFs of Qwen2.5-Coder-1.5B-Instruct

Similar models

Browse all →

More from ThorOdinson246

All by ThorOdinson246 →

More Qwen models

All Qwen →

Other tiny models

All tiny models →