GP

gguf gpt2 alpaca gpt4

GptGGUF by FelladrinUpdated 2024-07-16
Download on Hugging Face
Parameters163M
Context1K
Layers12
Architecturegpt2
Smallest quant0.2 GB
Quick answer

gguf gpt2 alpaca gpt4 needs about 1.0 GB of memory at Q5_K (a 0.2 GB file) with an 8K context window, so it fits on a 4 GB GPU. This repository has 6 quants, from 0.2 GB (Q3_K) to 0.3 GB (F16).

gguf gpt2 alpaca gpt4 is a 163M-parameter Gpt model in GGUF format, quantized by Felladrin. Its trained context length is 1K tokens. The repository has 6 quant files, from 0.2 GB (Q3_K) to 0.3 GB (F16).

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q3_K0.2 GB 0.7 GB
Fits Get file →
Q4_K0.2 GB 0.8 GB
Fits Get file →
Q5_K0.2 GB 0.8 GB
Fits Get file →
Q6_K0.2 GB 0.8 GB
Fits Get file →
Q8_00.3 GB 0.8 GB
Fits Get file →
F160.3 GB 0.9 GB
Fits Get file →

What GPU do you need for gguf gpt2 alpaca gpt4?

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 F16 (0.3 GB file, about 1.1 GB in use).

Which gguf gpt2 alpaca gpt4 quant should you choose?

Q5_K (0.2 GB) is the middle option in this repository. Closer to the original model than 4-bit, for a moderate increase in size. A good pick when you have memory to spare.

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

Architecturegpt2
Parameters163M
Layers12
Trained context1,024 tokens
KV cache (fp16)36 KB per token

Source

Quantized byFelladrin
FamilyGpt
Licensemit
Downloads (HF)62
Last updated2024-07-16

Frequently asked questions about gguf gpt2 alpaca gpt4

How much VRAM does gguf gpt2 alpaca gpt4 need?

About 1.0 GB at Q5_K with an 8K context window. That is the 0.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 gguf gpt2 alpaca gpt4 on an 8 GB GPU?

Yes, with F16: the 0.3 GB file needs about 1.1 GB at 8K context. Larger quants in this repository do not fit in 8 GB.

What is the file size of gguf gpt2 alpaca gpt4 GGUF?

It depends on the quant: Q3_K is 0.2 GB, Q4_K is 0.2 GB, Q5_K is 0.2 GB, Q6_K is 0.2 GB, Q8_0 is 0.3 GB, F16 is 0.3 GB.

What context length does gguf gpt2 alpaca gpt4 support?

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

Where can I download gguf gpt2 alpaca gpt4 GGUF?

The files are on Hugging Face in the Felladrin/gguf-gpt2-alpaca-gpt4 repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

What license does gguf gpt2 alpaca gpt4 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.

Other GGUFs of gpt2-alpaca-gpt4

Similar models

Browse all →

More from Felladrin

All by Felladrin →

More Gpt models

All Gpt →

Other tiny models

All tiny models →