LL

TeenyTinyLlama-Doc-160m

LlamaGGUF by mradermacherUpdated 2024-12-16
Download on Hugging Face
Parameters162M
Context2K
Layers12
Architecturellama
Smallest quant0.1 GB
Quick answer

TeenyTinyLlama-Doc-160m needs about 0.9 GB of memory at Q4_K_M (a 0.1 GB file) with an 8K context window, so it fits on a 4 GB GPU. This repository has 15 quants, from 0.1 GB (Q2_K) to 0.3 GB (F16).

TeenyTinyLlama-Doc-160m: 160 M parameter Portuguese medical LLM

TeenyTinyLlama-Doc-160m is a 160 M parameter Llama model fine‑tuned on a Portuguese medical dataset. It supports a 2048 token context window and is released under Apache‑2.0. The model is intended for research and further fine‑tuning, not for production use.

Good at

  • Medical text generation in Portuguese
  • Fine‑tuning research
  • Low‑resource inference

Limits

  • No vision support
  • Not suitable for human‑facing deployment
  • Hallucinations and biases present

Best for

  • Academic research on medical LLMs
  • Prototype Portuguese medical assistants
  • Dataset augmentation

Who it’s for. Researchers and developers working on Portuguese medical language models. The model can be used as a base for further fine‑tuning under the Apache‑2.0 license, but should not be deployed for user‑facing applications.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q2_K0.1 GB 0.6 GB
Fits Get file →
IQ3_XS0.1 GB 0.7 GB
Fits Get file →
IQ3_S0.1 GB 0.7 GB
Fits Get file →
Q3_K_S0.1 GB 0.7 GB
Fits Get file →
IQ3_M0.1 GB 0.7 GB
Fits Get file →
Q3_K_M0.1 GB 0.7 GB
Fits Get file →
Q3_K_L0.1 GB 0.7 GB
Fits Get file →
IQ4_XS0.1 GB 0.7 GB
Fits Get file →
Q4_K_S0.1 GB 0.7 GB
Fits Get file →
Q4_K_M0.1 GB 0.7 GB
Fits Get file →
Q5_K_S0.1 GB 0.7 GB
Fits Get file →
Q5_K_M0.1 GB 0.7 GB
Fits Get file →
Q6_K0.1 GB 0.7 GB
Fits Get file →
Q8_00.2 GB 0.7 GB
Fits Get file →
F160.3 GB 0.9 GB
Fits Get file →

For 8 GB VRAM, use Q4_K or Q5_K_S (file size 0.1 GB, memory 0.9 GB). For 12 GB VRAM, Q6_K (0.13 GB, 0.9 GB) or Q8_0 (0.17 GB, 1 GB) are suitable. For 16 GB VRAM, the full precision F16 (0.33 GB, 1.1 GB) can be used if higher quality is needed.

What GPU do you need for TeenyTinyLlama-Doc-160m?

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 TeenyTinyLlama-Doc-160m quant should you choose?

Q4_K_M is the usual starting point for TeenyTinyLlama-Doc-160m: it balances file size and quality well. Here it is a 0.1 GB file.

The Q8_0 file is 0.2 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.

If memory is tight, the smallest file is Q2_K at 0.1 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
Parameters162M
Layers12
Trained context2,048 tokens
KV cache (fp16)36 KB per token

Source

Quantized bymradermacher
FamilyLlama
Licenseapache-2.0
Downloads (HF)1,362
Last updated2024-12-16

Frequently asked questions about TeenyTinyLlama-Doc-160m

How much VRAM does TeenyTinyLlama-Doc-160m need?

About 0.9 GB at Q4_K_M with an 8K context window. That is the 0.1 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 TeenyTinyLlama-Doc-160m 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 TeenyTinyLlama-Doc-160m GGUF?

It depends on the quant: Q2_K is 0.1 GB, IQ3_XS is 0.1 GB, IQ3_S is 0.1 GB, Q3_K_S is 0.1 GB, IQ3_M is 0.1 GB, Q3_K_M is 0.1 GB and 9 more.

What context length does TeenyTinyLlama-Doc-160m 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.3 GB at 8K and 0.1 GB at 2K.

Where can I download TeenyTinyLlama-Doc-160m GGUF?

The files are on Hugging Face in the mradermacher/TeenyTinyLlama-Doc-160m-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 TeenyTinyLlama-Doc-160m 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 this model on 8 GB VRAM?

Yes, use Q4_K or Q5_K_S quantizations; they require approximately 0.9 GB of VRAM at 8 k context.

Is this model safe for production use?

No, the model is not intended for human‑facing deployment and may hallucinate or produce biased content.

What license does it use?

The model is released under the Apache‑2.0 license.

Similar models

Browse all →

More from mradermacher

All by mradermacher →

More Llama models

All Llama →

Other tiny models

All tiny models →