Lawyer Llama 13b v2 needs about 15.3 GB of memory at Q4_K_M (a 8.1 GB file) with an 8K context window, so it fits on a 16 GB GPU. This repository has 25 quants, from 0.0 GB to 10.9 GB (Q6_K).
Lawyer Llama 13b v2 – a 13.3 billion‑parameter Llama model fine‑tuned for legal text
Lawyer Llama 13b v2 is a 13.3 billion‑parameter Llama model trained on legal documents. It supports a 4096‑token context window and is released under the llama2 license. The model is available in multiple GGUF quantizations.
Good at
- Legal drafting
- Contract analysis
- Legal Q&A
Limits
- No vision support
- Requires 8 k context for memory estimates
- License is llama2
Best for
- Drafting legal briefs
- Reviewing contracts
- Answering legal queries
Who it’s for. Developers building legal AI tools, lawyers seeking automated drafting assistance, and researchers exploring legal language models.
Quants & memory
| Quant | File | Est. memory | vs VRAM | Result | |
|---|---|---|---|---|---|
| — | 0.0 GB | 3.9 GB | Fits | Get file → | |
| IQ1_S | 3.0 GB | 6.9 GB | Fits | Get file → | |
| IQ1_M | 3.3 GB | 7.1 GB | Fits | Get file → | |
| IQ2_XXS | 3.7 GB | 7.5 GB | Tight | Get file → | |
| IQ2_XS | 4.0 GB | 7.9 GB | Tight | Get file → | |
| IQ2_S | 4.4 GB | 8.2 GB | Too big | Get file → | |
| Q2_K_S | 4.6 GB | 8.5 GB | Too big | Get file → | |
| IQ2_M | 4.7 GB | 8.5 GB | Too big | Get file → | |
| Q2_K | 5.0 GB | 8.9 GB | Too big | Get file → | |
| IQ3_XXS | 5.1 GB | 9.0 GB | Too big | Get file → | |
| IQ3_XS | 5.5 GB | 9.4 GB | Too big | Get file → | |
| IQ3_S | 5.8 GB | 9.7 GB | Too big | Get file → | |
| Q3_K_S | 5.8 GB | 9.7 GB | Too big | Get file → | |
| IQ3_M | 6.2 GB | 10.0 GB | Too big | Get file → | |
| Q3_K_M | 6.5 GB | 10.4 GB | Too big | Get file → | |
| Q3_K_L | 7.1 GB | 11.0 GB | Too big | Get file → | |
| IQ4_XS | 7.2 GB | 11.0 GB | Too big | Get file → | |
| IQ4_NL | 7.6 GB | 11.4 GB | Too big | Get file → | |
| Q4_0 | 7.6 GB | 11.4 GB | Too big | Get file → | |
| Q4_K_S | 7.6 GB | 11.5 GB | Too big | Get file → | |
| Q4_K_M | 8.1 GB | 11.9 GB | Too big | Get file → | |
| Q4_1 | 8.4 GB | 12.2 GB | Too big | Get file → | |
| Q5_K_S | 9.2 GB | 13.0 GB | Too big | Get file → | |
| Q5_K_M | 9.4 GB | 13.3 GB | Too big | Get file → | |
| Q6_K | 10.9 GB | 14.8 GB | Too big | Get file → |
For 8 GB VRAM, use Q4_K_M (8.06 GB file, 15.3 GB memory). For 12 GB VRAM, Q3_K_M (6.52 GB file, 13.7 GB memory) is suitable. If memory is limited, IQ1_S (3.04 GB file, 10.3 GB memory) offers a good trade‑off.
What GPU do you need for Lawyer Llama 13b v2?
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 the main file (0.0 GB file, about 7.2 GB in use).
- 12 GB VRAM: the best quant that fits is IQ2_M (4.7 GB file, about 11.9 GB in use).
- 16 GB VRAM: the best quant that fits is Q4_1 (8.4 GB file, about 15.6 GB in use).
- 24 GB VRAM: the best quant that fits is Q6_K (10.9 GB file, about 18.1 GB in use).
Which Lawyer Llama 13b v2 quant should you choose?
Q4_K_M is the usual starting point for Lawyer Llama 13b v2: it balances file size and quality well. Here it is a 8.1 GB file.
If memory is tight, the smallest file is the first one in the table at 0.0 GB, with the quality trade-offs that come with fewer bits.
New to quant names? Read GGUF quantization explained.
Specifications
Architecture from the GGUF header
Source
Frequently asked questions about Lawyer Llama 13b v2
How much VRAM does Lawyer Llama 13b v2 need?
About 15.3 GB at Q4_K_M with an 8K context window. That is the 8.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 Lawyer Llama 13b v2 on an 8 GB GPU?
Yes, with the smaller files: the 0.0 GB file needs about 7.2 GB at 8K context. Larger quants in this repository do not fit in 8 GB.
What is the file size of Lawyer Llama 13b v2 GGUF?
It depends on the quant: file is 0.0 GB, IQ1_S is 3.0 GB, IQ1_M is 3.3 GB, IQ2_XXS is 3.7 GB, IQ2_XS is 4.0 GB, IQ2_S is 4.4 GB and 19 more.
What context length does Lawyer Llama 13b v2 support?
The GGUF header lists a trained context length of 4,096 tokens (4K). The KV cache grows with the context you use: about 6.7 GB at 8K and 3.4 GB at 4K.
Where can I download Lawyer Llama 13b v2 GGUF?
The files are on Hugging Face in the mradermacher/lawyer-llama-13b-v2-i1-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 Lawyer Llama 13b v2 use?
Hugging Face lists the license as llama2. 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 Q4_K_M on 8 GB VRAM?
Yes, Q4_K_M requires 15.3 GB memory at 8 k context, so 8 GB VRAM is insufficient.
Does this model support vision tasks?
No, the model has no vision capabilities.
What license does it use?
The model is released under the llama2 license.