LFM2.5-2.6B Q4_K_M Fast — Windows CUDA
This repository contains a directly runnable
Q4_K_M GGUF of
LiquidAI/LFM2.5-2.6B-GGUF
and a validated
Fast single-request Windows/CUDA profile for
llama.cpp.
The model weights are not modified. The same verified GGUF is published in both paired repositories; only the tested runtime profile differs.
Fast profile: inference is accelerated relative to the same Q4_K_M baseline without the Fast runtime settings. The frozen validation gate detected no quality regression and no new failures. This is a measured result for the documented hardware, workloads, and single-request setup—not a universal guarantee for every prompt or runtime.
Measured Fast result
Primary metric: wall-clock decoded tokens per second for one request, without batching. The profile validation used three workloads with five repetitions each (15 runs total, 256 generated tokens per run).
| Workload | Baseline, tok/s | Fast, tok/s | Fast vs baseline |
|---|
| Code copy | 114.74 | 226.27 | 1.972× (+97.2%) |
| Editorial rewrite | 112.09 | 141.26 | 1.260× (+26.0%) |
| Technical summary | 113.30 | 133.67 | 1.180× (+18.0%) |
| All 15 runs, mean ± SD | 113.38 ± 1.56 | 167.07 ± 43.51 | 1.474× (+47.4%) |
| Independent quality gate | Baseline | Fast | Regression |
|---|
| Passed tasks | 10/12 | 10/12 | None measured |
The larger Fast standard deviation reflects the deliberately mixed workload set: repetitive code benefits more than free-form editing and summarization. These are profile-validation measurements, not the pending frozen cross-machine benchmark.
Choose the matching profile
Included weight
| File | Quantization | Size | SHA-256 |
|---|
LFM2.5-2.6B-Q4_K_M.gguf | Q4_K_M | 1,674,454,848 bytes (1.56 GiB) | 79fdf00351b46cf26f020aead28d01889886be87c55fa0eb907e6f9b00bfee14 |
Tested setup
- Windows 11 laptop
- NVIDIA GeForce RTX 4060 Laptop GPU, 8 GiB VRAM
- Intel Core i7-13650HX, 64 GiB RAM
- NVIDIA driver 591.74
- official
llama.cpp CUDA server container, build 10066 (86a9c79f8)
- context 8,192, one parallel slot, continuous batching disabled
Download and verify
Install the Hugging Face CLI once, or download the GGUF with the file link above.
1py -m pip install -U huggingface_hub
2
3$ModelDir = "C:\Models\LFM2.5-2.6B"
4New-Item -ItemType Directory -Force -Path $ModelDir | Out-Null
5
6hf download petr567/LFM2.5-2.6B-Windows-RTX-CUDA-GGUF `
7 LFM2.5-2.6B-Q4_K_M.gguf `
8 --local-dir $ModelDir
9
10$Expected = "79fdf00351b46cf26f020aead28d01889886be87c55fa0eb907e6f9b00bfee14"
11$Actual = (Get-FileHash "$ModelDir\LFM2.5-2.6B-Q4_K_M.gguf" -Algorithm SHA256).Hash.ToLower()
12if ($Actual -ne $Expected) { throw "GGUF SHA-256 mismatch" }
Run the validated Fast Windows/CUDA profile
Docker Desktop must be configured for NVIDIA GPU access.
1$ModelDir = "C:\Models\LFM2.5-2.6B"
2
3docker run --rm --gpus all `
4 -p 127.0.0.1:8080:8080 `
5 -v "${ModelDir}:/models:ro" `
6 --entrypoint /app/llama-server `
7 ghcr.io/ggml-org/llama.cpp@sha256:1b3d1458ccda7287feab41b8001311acc03e24cde99ec0a2908fe83830562f38 `
8 -m /models/LFM2.5-2.6B-Q4_K_M.gguf `
9 --alias lfm2.5-2.6b-q4_k_m `
10 --host 0.0.0.0 --port 8080 `
11 -c 8192 -np 1 -ngl 99 `
12 -t 14 -tb 14 -b 2048 -ub 512 `
13 -fa auto -ctk q8_0 -ctv q8_0 `
14 --no-cont-batching --no-cache-prompt --cache-ram 0 `
15 --slot-prompt-similarity 0 --jinja --no-webui `
16 --spec-type ngram-simple `
17 --spec-ngram-simple-size-n 8 `
18 --spec-ngram-simple-size-m 64 `
19 --spec-ngram-simple-min-hits 1 `
20 --spec-draft-n-max 64
The OpenAI-compatible endpoint is available at http://127.0.0.1:8080/v1.
1$Body = @{
2 model = "lfm2.5-2.6b-q4_k_m"
3 messages = @(@{ role = "user"; content = "Write a short hello-world function in Python." })
4 max_tokens = 128
5 temperature = 0.2
6} | ConvertTo-Json -Depth 5
7
8Invoke-RestMethod -Method Post `
9 -Uri "http://127.0.0.1:8080/v1/chat/completions" `
10 -ContentType "application/json" `
11 -Body $Body
LM Studio
The GGUF itself can also be opened in LM Studio. Use an 8,192-token context, maximum GPU offload, and one parallel request. The exact ngram-simple profile above requires a compatible llama.cpp server build; do not assume an arbitrary GUI runtime exposes the same acceleration controls.
Release scope
This release contains the runnable weight and the final launch recipe. The frozen cross-machine benchmark package and its results will be attached in a later revision after verification.
Attribution and license
- Base model and GGUF: Liquid AI
- Upstream repository: LiquidAI/LFM2.5-2.6B-GGUF
- License: LFM Open License v1.0; a copy is included as
LICENSE
The license includes a commercial-use revenue threshold. Review the included license before use or redistribution.