TwIL LM needs about 3.2 GB of memory at Q4_K_M (a 1.1 GB file) with an 8K context window, so it fits on a 4 GB GPU. This repository has 4 quants, from 1.1 GB (Q4_K_M) to 3.4 GB (F16).
TwIL LM: 1.7B reasoning model for formal logic tasks
TwIL LM is a 1.7B parameter model fine‑tuned from SmolLM2‑1.7B‑Instruct for formal logic. It supports reasoning, structured output, and function calling. The model is available in several GGUF quantizations for local inference.
Good at
- Formal logic reasoning
- Structured output generation
- Function calling
Limits
- No vision support
- English‑only content
- Requires 8‑k context for full performance
Best for
- Formal logic tutoring
- Logic puzzle solving
- Structured data extraction
Who it’s for. Developers needing a lightweight logic model for on‑device inference. Researchers working on formal reasoning benchmarks. Educators creating logic exercises.
Quants & memory
| Quant | File | Est. memory | vs VRAM | Result | |
|---|---|---|---|---|---|
| Q4_K_M | 1.1 GB | 3.2 GB | Fits | Get file → | |
| Q5_K_M | 1.2 GB | 3.3 GB | Fits | Get file → | |
| Q8_0 | 1.8 GB | 3.9 GB | Fits | Get file → | |
| F16 | 3.4 GB | 5.5 GB | Fits | Get file → |
For 8 GB VRAM, use Q4_K_M (1.06 GB, ~3.2 GB RAM). For 12 GB VRAM, Q5_K_M (1.23 GB, ~3.3 GB RAM). If more memory is available, Q8_0 (1.82 GB, ~3.9 GB RAM) offers higher precision.
What GPU do you need for TwIL LM?
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 Q8_0 (1.8 GB file, about 3.9 GB in use).
- 6 GB VRAM: the best quant that fits is F16 (3.4 GB file, about 5.5 GB in use).
Which TwIL LM quant should you choose?
Q4_K_M is the usual starting point for TwIL LM: it balances file size and quality well. Here it is a 1.1 GB file.
The Q8_0 file is 1.8 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.
New to quant names? Read GGUF quantization explained.
Specifications
Architecture from the GGUF header
Source
Frequently asked questions about TwIL LM
How much VRAM does TwIL LM need?
About 3.2 GB at Q4_K_M with an 8K context window. That is the 1.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 TwIL LM on an 8 GB GPU?
Yes, with F16: the 3.4 GB file needs about 5.5 GB at 8K context. Larger quants in this repository do not fit in 8 GB.
What is the file size of TwIL LM GGUF?
It depends on the quant: Q4_K_M is 1.1 GB, Q5_K_M is 1.2 GB, Q8_0 is 1.8 GB, F16 is 3.4 GB.
What context length does TwIL LM support?
The GGUF header lists a trained context length of 8,192 tokens (8K). The KV cache grows with the context you use: about 1.6 GB at 8K and 1.6 GB at 8K.
Where can I download TwIL LM GGUF?
The files are on Hugging Face in the webAI-Official/TwIL-LM repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.
What license does TwIL LM use?
Hugging Face lists the license as other. 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 TwIL LM on 8 GB VRAM?
Yes, the Q4_K_M quantization is 1.06 GB and requires about 3.2 GB RAM at 8‑k context.
Does TwIL LM support image inputs?
No, the model has no vision capabilities.
What context length does TwIL LM need?
It was trained on 8192 tokens and performs best with that context length.