LL

TinyStories LLaMA2 20M 256h 4l GQA

LlamaGGUF by mradermacherUpdated 2024-09-04
Download on Hugging Face
Parameters20M
Context2K
Layers4
Architecturellama
Smallest quant0.0 GB
Quick answer

TinyStories LLaMA2 20M 256h 4l GQA needs about 0.5 GB of memory at Q4_K_M (a 0.0 GB file) with an 8K context window, so it fits on a 4 GB GPU. This repository has 24 quants, from 0.0 GB (IQ1_S) to 0.0 GB (Q6_K).

TinyStories LLaMA2 20M 256h 4l GQA is a 20M-parameter Llama model in GGUF format, quantized by mradermacher. Its trained context length is 2K tokens. The repository has 24 quant files, from 0.0 GB (IQ1_S) to 0.0 GB (Q6_K).

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
IQ1_S0.0 GB 0.5 GB
Fits Get file →
IQ1_M0.0 GB 0.5 GB
Fits Get file →
IQ2_XXS0.0 GB 0.5 GB
Fits Get file →
IQ2_XS0.0 GB 0.5 GB
Fits Get file →
IQ2_S0.0 GB 0.5 GB
Fits Get file →
IQ2_M0.0 GB 0.5 GB
Fits Get file →
IQ3_XXS0.0 GB 0.5 GB
Fits Get file →
Q2_K0.0 GB 0.5 GB
Fits Get file →
IQ3_XS0.0 GB 0.5 GB
Fits Get file →
IQ3_S0.0 GB 0.5 GB
Fits Get file →
Q3_K_S0.0 GB 0.5 GB
Fits Get file →
IQ3_M0.0 GB 0.5 GB
Fits Get file →
Q3_K_M0.0 GB 0.5 GB
Fits Get file →
Q3_K_L0.0 GB 0.5 GB
Fits Get file →
IQ4_XS0.0 GB 0.5 GB
Fits Get file →
Q4_00.0 GB 0.5 GB
Fits Get file →
Q4_00.0 GB 0.5 GB
Fits Get file →
Q4_00.0 GB 0.5 GB
Fits Get file →
Q4_00.0 GB 0.5 GB
Fits Get file →
Q4_K_S0.0 GB 0.5 GB
Fits Get file →
Q4_K_M0.0 GB 0.5 GB
Fits Get file →
Q5_K_S0.0 GB 0.5 GB
Fits Get file →
Q5_K_M0.0 GB 0.5 GB
Fits Get file →
Q6_K0.0 GB 0.5 GB
Fits Get file →

What GPU do you need for TinyStories LLaMA2 20M 256h 4l GQA?

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 Q6_K (0.0 GB file, about 0.5 GB in use).

Which TinyStories LLaMA2 20M 256h 4l GQA quant should you choose?

Q4_K_M is the usual starting point for TinyStories LLaMA2 20M 256h 4l GQA: it balances file size and quality well. Here it is a 0.0 GB file.

If memory is tight, the smallest file is IQ1_S at 0.0 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

Architecturellama
Parameters20M
Layers4
Trained context2,048 tokens
KV cache (fp16)2 KB per token

Source

Quantized bymradermacher
FamilyLlama
Downloads (HF)176
Last updated2024-09-04

Frequently asked questions about TinyStories LLaMA2 20M 256h 4l GQA

How much VRAM does TinyStories LLaMA2 20M 256h 4l GQA need?

About 0.5 GB at Q4_K_M with an 8K context window. That is the 0.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 TinyStories LLaMA2 20M 256h 4l GQA on an 8 GB GPU?

Yes, with Q6_K: the 0.0 GB file needs about 0.5 GB at 8K context. Larger quants in this repository do not fit in 8 GB.

What is the file size of TinyStories LLaMA2 20M 256h 4l GQA GGUF?

It depends on the quant: IQ1_S is 0.0 GB, IQ1_M is 0.0 GB, IQ2_XXS is 0.0 GB, IQ2_XS is 0.0 GB, IQ2_S is 0.0 GB, IQ2_M is 0.0 GB and 18 more.

What context length does TinyStories LLaMA2 20M 256h 4l GQA support?

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

Where can I download TinyStories LLaMA2 20M 256h 4l GQA GGUF?

The files are on Hugging Face in the mradermacher/TinyStories-LLaMA2-20M-256h-4l-GQA-i1-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

Other GGUFs of TinyStories-LLaMA2-20M-256h-4l-GQA

Similar models

Browse all →

More from mradermacher

All by mradermacher →

More Llama models

All Llama →

Other tiny models

All tiny models →