ST

Stablelm 2 12b Chat

StablelmGGUF by RichardErkhovUpdated 2024-08-02
Download on Hugging Face
Parameters12.1B
Context4K
Layers40
Architecturestablelm
Smallest quant4.7 GB
Quick answer

Stablelm 2 12b Chat needs about 7.4 GB of memory at IQ3_XS (a 5.2 GB file) with an 8K context window, so it fits on a 8 GB GPU. This repository has 3 quants, from 4.7 GB (Q2_K) to 5.5 GB (IQ3_S).

Stablelm 2 12b Chat is a 12.1B-parameter Stablelm model in GGUF format, quantized by RichardErkhov. Its trained context length is 4K tokens. The repository has 3 quant files, from 4.7 GB (Q2_K) to 5.5 GB (IQ3_S).

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q2_K4.7 GB 6.0 GB
Fits Get file →
IQ3_XS5.2 GB 6.5 GB
Fits Get file →
IQ3_S5.5 GB 6.8 GB
Fits Get file →

What GPU do you need for Stablelm 2 12b Chat?

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: the best quant that fits is IQ3_S (5.5 GB file, about 7.6 GB in use).

Which Stablelm 2 12b Chat quant should you choose?

IQ3_XS (5.2 GB) is the middle option in this repository. A reasonable choice when a 4-bit file will not fit, mostly on larger models. Quality loss is noticeable but often acceptable.

If memory is tight, the smallest file is Q2_K at 4.7 GB, with the quality trade-offs that come with fewer bits. Use it only when memory is very tight. Expect a clear drop in quality, which is usually worse on small models and easier to live with on large ones.

New to quant names? Read GGUF quantization explained.

Specifications

Architecture from the GGUF header

Architecturestablelm
Parameters12.1B
Layers40
Trained context4,096 tokens
KV cache (fp16)200 KB per token

Source

Quantized byRichardErkhov
FamilyStablelm
Licenseother
Downloads (HF)5
Last updated2024-08-02

Frequently asked questions about Stablelm 2 12b Chat

How much VRAM does Stablelm 2 12b Chat need?

About 7.4 GB at IQ3_XS with an 8K context window. That is the 5.2 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 Stablelm 2 12b Chat on an 8 GB GPU?

Yes, with IQ3_S: the 5.5 GB file needs about 7.6 GB at 8K context. Larger quants in this repository do not fit in 8 GB.

What is the file size of Stablelm 2 12b Chat GGUF?

It depends on the quant: Q2_K is 4.7 GB, IQ3_XS is 5.2 GB, IQ3_S is 5.5 GB.

What context length does Stablelm 2 12b Chat 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.7 GB at 8K and 0.8 GB at 4K.

Where can I download Stablelm 2 12b Chat GGUF?

The files are on Hugging Face in the RichardErkhov/stabilityai_-_stablelm-2-12b-chat-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 Stablelm 2 12b Chat 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.

Similar models

Browse all →

More from RichardErkhov

All by RichardErkhov →

More Stablelm models

All Stablelm →

Other medium models

All medium models →