RichardErkhov
leia-llm_-_Leia-Swallow-13b
- Parameters
- 13.1B
- Max context length
- 4,096
- Architecture
- llama
About leia-llm_-_Leia-Swallow-13b
leia-llm_-_Leia-Swallow-13b is a model published in GGUF format. GGUF files are published by RichardErkhov/leia-llm_-_Leia-Swallow-13b-gguf. It has about 13.1B parameters, the llama architecture, a maximum context length of 4,096 tokens (values written in the GGUF).
There are 22 quantizations, with file sizes from 4.92 GB (Q2_K) to 14.0 GB (Q8_0) (actual sizes on Hugging Face).
File size and estimated memory per quantization
- Up to 8 GB
- Up to 16 GB
- Up to 24 GB
- Up to 48 GB
- Up to 128 GB
- More
File sizes are the actual values on Hugging Face. Memory is estimated for each context length (KV cache f16). The formula is in How memory is calculated.
All memory figures are Estimated (KV cache f16). It should run on a setup with at least this much VRAM (or Mac unified memory). Click a value to see the devices and models that fit that amount (Find by GPU / Mac).
About the "quality guide" (how far a quantization drifts from the original)
For each quantization type, how far the output drifts from the original model, grouped into six levels from values llama.cpp measured on Llama-3-8B.
The value is mean KLD (the difference between the original and quantized model in next-token probabilities); smaller means closer to the original. Quantizations made with an imatrix (importance data) come out slightly smaller. Levels use the value without an imatrix (or with one, for types that only have that).
These values were not measured on this model. Larger models and MoE models tend to drift less with the same type. Distributor-specific mixed types (such as UD-Q4_K_XL) cannot be matched by type name alone, so they show "-".
| Quantization | Quality guide | KLD (no imatrix) | KLD (imatrix) | Size (Llama-3-8B) |
|---|---|---|---|---|
| Q8_0 | Nearly identical | 0.0014 | - | 7.96 GiB |
| Q6_K | Very small | 0.0055 | - | 6.14 GiB |
| Q5_K_M | Very small | 0.0108 | - | 5.33 GiB |
| Q5_K_S | Small | 0.0166 | - | 5.21 GiB |
| Q5_1 | Small | 0.0180 | - | 5.65 GiB |
| Q5_0 | Small | 0.0222 | - | 5.21 GiB |
| Q4_K_M | Small | 0.0313 | 0.0282 | 4.58 GiB |
| Q4_K_S | Medium | 0.0431 | 0.0320 | 4.37 GiB |
| IQ4_NL | Small | - | 0.0357 | 4.35 GiB |
| IQ4_XS | Small | - | 0.0363 | 4.14 GiB |
| Q4_1 | Medium | 0.0717 | - | 4.78 GiB |
| Q4_0 | Medium | 0.0719 | - | 4.34 GiB |
| Q3_K_L | Medium | 0.0872 | 0.0731 | 4.03 GiB |
| Q3_K_M | Medium | 0.1019 | 0.0844 | 3.74 GiB |
| IQ3_M | Medium | - | 0.1025 | 3.53 GiB |
| IQ3_S | Medium | - | 0.1113 | 3.42 GiB |
| IQ3_XS | Large | - | 0.1387 | 3.28 GiB |
| IQ3_XXS | Large | - | 0.1836 | 3.05 GiB |
| Q3_K_S | Large | 0.2282 | 0.1998 | 3.41 GiB |
| IQ2_M | Large | - | 0.3260 | 2.74 GiB |
| Q2_K | Very large | 0.4451 | 0.3322 | 2.96 GiB |
| Q2_K_S | Very large | - | 0.4034 | 2.96 GiB |
| IQ2_S | Very large | - | 0.4392 | 2.56 GiB |
| IQ2_XS | Very large | - | 0.5463 | 2.43 GiB |
| IQ2_XXS | Very large | - | 0.8120 | 2.24 GiB |
| IQ1_M | Very large | - | 1.3931 | 2.01 GiB |
| IQ1_S | Very large | - | 2.2546 | 1.88 GiB |
Source: llama.cpp (MIT), measured on Llama-3-8B against FP16, Wikitext-2, revision f364eb6f. Original table · Reading and choosing quantizations
GGUF source
RichardErkhov/leia-llm_-_Leia-Swallow-13b-gguf
Published by the original developer About this label
Last checked: Nov 11, 2026
- Architecture
- llama
- Supported before llama.cpp b4409
- Parameters
- 13.1B
- Max context length
- 4,096
| Quantization | File size Measured | Quality guide | 4,096 max |
|---|---|---|---|
| Q2_K | 4.92 GB | Very large | 8.90 GB |
| IQ3_XS | 5.43 GB | Large | 9.41 GB |
| IQ3_S | 5.73 GB | Medium | 9.71 GB |
| Q3_K_S | 5.73 GB | Large | 9.71 GB |
| IQ3_M | 6.06 GB | Medium | 10.0 GB |
| Q3_K | 6.41 GB | - | 10.4 GB |
| Q3_K_M | 6.41 GB | Medium | 10.4 GB |
| Q3_K_L | 7.00 GB | Medium | 11.0 GB |
| IQ4_XS | 7.10 GB | Small | 11.1 GB |
| Q4_0 | 7.45 GB | Medium | 11.4 GB |
| IQ4_NL | 7.49 GB | Small | 11.5 GB |
| Q4_K_S | 7.50 GB | Medium | 11.5 GB |
| Q4_K | 7.95 GB | - | 11.9 GB |
| Q4_K_M | 7.95 GB | Small | 11.9 GB |
| Q4_1 | 8.25 GB | Medium | 12.2 GB |
| Q5_0 | 9.06 GB | Small | 13.0 GB |
| Q5_K_S | 9.06 GB | Small | 13.0 GB |
| Q5_K | 9.32 GB | - | 13.3 GB |
| Q5_K_M | 9.32 GB | Very small | 13.3 GB |
| Q5_1 | 9.87 GB | Small | 13.8 GB |
| Q6_K | 10.8 GB | Very small | 14.8 GB |
| Q8_0 | 14.0 GB | Nearly identical | 17.9 GB |
Ollama ollama run hf.co/RichardErkhov/leia-llm_-_Leia-Swallow-13b-gguf:Q4_K_M
llama.cpp llama-server -hf RichardErkhov/leia-llm_-_Leia-Swallow-13b-gguf:Q4_K_M
How to run
Example commands using Q4_K_M. To use another quantization, replace the name with one from the table above. How to run local LLMs
Ollama
Run it by pointing directly at the GGUF on Hugging Face.
ollama run hf.co/RichardErkhov/leia-llm_-_Leia-Swallow-13b-gguf:Q4_K_M
llama.cpp
Pass the repository and quantization name to llama-server (or llama-cli) with -hf.
llama-server -hf RichardErkhov/leia-llm_-_Leia-Swallow-13b-gguf:Q4_K_M
LM Studio
Paste RichardErkhov/leia-llm_-_Leia-Swallow-13b-gguf into the search box, download it, and choose the quantization from the file list.
Other models from RichardErkhov
-
1.5B
RichardErkhov
rbiswasfc_-_Qwen2-1.5B-Instruct-xLAM-fc
- Q4_K_M size
- 0.99 GB
- Memory at 8K
- 2.29 GB
Measured Estimated VRAM 4 GB+
-
7.2B
RichardErkhov
fblgit_-_juanako-7b-UNA
- Q4_K_M size
- 0.00 GB
- Memory at 8K
- 1.68 GB
Measured Estimated VRAM 4 GB+
-
8B
RichardErkhov
Sao10K_-_L3-8B-Stheno-v3.1
- Q4_K_M size
- 0.27 GB
- Memory at 8K
- 2.15 GB
Measured Estimated VRAM 4 GB+
-
7.2B
RichardErkhov
avemio-digital_-_mistral_7b_Sft_pretrain_6000_steps_merge
- Q4_K_M size
- 0.09 GB
- Memory at 8K
- 1.76 GB
Measured Estimated VRAM 4 GB+
-
13.1B
RichardErkhov
tokyotech-llm_-_Swallow-13b-instruct-v0.1
- Q4_K_M size
- 7.95 GB
- Memory at 8K
- -
Measured Estimated
-
69B
RichardErkhov
tokyotech-llm_-_Swallow-70b-NVE-instruct-hf
- Q4_K_M size
- 41.4 GB
- Memory at 8K
- -
Measured Estimated
Models of a similar size (other developers)
-
9.2B
ornith-ai
Ornith-1.5-9B
- Q4_K_M size
- 5.78 GB
- Memory at 8K
- 7.17 GB
Measured Estimated VRAM 8 GB+
-
11.9B
google
gemma-4-12B-it
- Q4_K_M size
- 7.12 GB
- Memory at 8K
- 8.83 GB
Measured Estimated VRAM 12 GB+
-
9B
Qwen
Qwen3.5-9B
- Q4_K_M size
- 5.68 GB
- Memory at 8K
- 7.05 GB
Measured Estimated VRAM 8 GB+
-
11.9B
google
gemma-4-12B-it-qat-q4_0
- Q4_0 size
- 6.98 GB
- Memory at 8K
- 8.69 GB
Measured Estimated VRAM 12 GB+
-
9.2B
khazarai
Qwen3.5-9B-Kimi-k3-Distilled
- Q4_K_M size
- 5.78 GB
- Memory at 8K
- 7.15 GB
Measured Estimated VRAM 8 GB+
-
9.2B
schneewolflabs
B1-9B
- Q4_K_M size
- 5.78 GB
- Memory at 8K
- 7.15 GB
Measured Estimated VRAM 8 GB+
Frequently asked questions
- How much memory do I need to run leia-llm_-_Leia-Swallow-13b (Q4_K_M)?
- The file size is 7.95 GB (measured). With a 4,096-token context, the estimated memory including the KV cache is 11.9 GB. The formula is published at https://localllm.az-arte.com/en/guide/memory-calculation.
- What is the command to run leia-llm_-_Leia-Swallow-13b with Ollama?
- Run "ollama run hf.co/RichardErkhov/leia-llm_-_Leia-Swallow-13b-gguf:Q4_K_M" to use the GGUF on Hugging Face directly. To use another quantization, replace the name at the end.