SQ

NL2SQL

SqlGGUF by ByteMaster01Updated 2025-06-04
Download on Hugging Face
Parameters1.54B
Context32K
Layers28
Architectureqwen2
Smallest quant1.0 GB
Quick answer

NL2SQL 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. This repository has 3 quants, from 1.0 GB (Q4_K_M) to 3.1 GB (BF16). Longer context needs more: at 32K tokens the KV cache alone adds about 0.9 GB.

NL2SQL is a 1.54B-parameter Sql model in GGUF format, quantized by ByteMaster01. Its trained context length is 32K tokens. The repository has 3 quant files, from 1.0 GB (Q4_K_M) to 3.1 GB (BF16).

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q4_K_M1.0 GB 1.7 GB
Fits Get file →
Q8_01.6 GB 2.4 GB
Fits Get file →
BF163.1 GB 3.8 GB
Fits Get file →

What GPU do you need for NL2SQL?

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 BF16 (3.1 GB file, about 3.8 GB in use).

Which NL2SQL quant should you choose?

Q4_K_M is the usual starting point for NL2SQL: it balances file size and quality well. Here it is a 1.0 GB file.

The Q8_0 file is 1.6 GB, about 1.7 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.

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 byByteMaster01
FamilySql
Licensemit
Downloads (HF)22
Last updated2025-06-04

Frequently asked questions about NL2SQL

How much VRAM does NL2SQL 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 NL2SQL on an 8 GB GPU?

Yes, with BF16: the 3.1 GB file needs about 3.8 GB at 8K context. Larger quants in this repository do not fit in 8 GB.

What is the file size of NL2SQL GGUF?

It depends on the quant: Q4_K_M is 1.0 GB, Q8_0 is 1.6 GB, BF16 is 3.1 GB.

What context length does NL2SQL 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 NL2SQL GGUF?

The files are on Hugging Face in the ByteMaster01/NL2SQL repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

What license does NL2SQL use?

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

Similar models

Browse all →

More Sql models

All Sql →

Other tiny models

All tiny models →