Skip to main content

tqllm

tqLLM

Buy Me a Coffee GoFundMe

C++ inference for supported Qwen models and TurboQuant GGUF weights on NVIDIA GPUs (CUDA) and Apple Silicon (Metal), with an OpenAI-compatible HTTP server.

Quick start | Documentation | Benchmarks | Credits

New in 1.8.0 (all changes):

tqLLM 1.8.0

  • Inkling-2-Mini drafting with DFlash2 (-md FOLDER, incoai's Apache-2.0 drafter), verified on tensor cores so drafted output equals plain output. RTX 3090, official checkpoint, exact: code 240.7, math 252.5, chat 142.7 tok/s (plain 91; 1.7.0 plain 78.9). DGX Spark / GB10: code 85.3, math 85.5 tok/s. Inkling guide.
  • Inkling-2-Mini on 16 GB cards: TQT expert files on YTan2000/Inkling-2-Mini-TQT (13.06 GB and 14.08 GB). RTX 5060 Ti, 13.06 GB file, --exact off, decode at 1K / 8K / 32K: 71.0 / 63.4 / 50.1 tok/s against Strata SQ-15's 57.5 / 43.8 / 3.5 on the same card.
  • Inkling-2-Mini on Mac: exact speculative decoding and the DFlash2 drafter (M5 Pro: 63.5 tok/s exact, 67.4 --exact off, from 52.6 / 56.3), turn reuse (follow-up first token at 20K: 11.35 -> 0.57 s).
  • Conversation reuse: Inkling-2-Mini resumes a follow-up turn exactly (first token after a 21K-token turn 8.07 -> 0.45 s on a 3090); the 27B prompt cache no longer re-prefills each user turn when earlier reasoning is dropped (#82).
  • GB10: the 48 GB BF16 prompt expert copies only when memory allows (an over-allocation could restart the box).

Flash-Next setup (RTX 30 or newer with 24 GB and 64 GB RAM, or a GB10): YTan2000/Qwen3.8-Flash-Next-tqLLM. Benchmarks.

Supported models

Checked on the release build: the model loads and answers fixed questions correctly (1.7.0: Flash-Next and Inkling-2-Mini on RTX 3090 and DGX Spark / GB10, Inkling-2-Mini on an M5 Pro Mac).

Model Files tqLLM loads Hardware 1.7.0 check
Qwen3.8-27B and fine-tunes (e.g. Qwopus3.8) TQ3_4S, TQ_L / TQ4, K-quant and IQ GGUFs; EXL3 folders; DFlash2 and MTP drafters NVIDIA, 16 GB and up; DGX Spark / GB10 unit tests; model check from 1.6.0
Qwen3.8-27B on a Mac mlx-community 4-bit, TQ_L, QSA files (Mac guide) Apple Silicon (48 GB tested) unit tests; model check from 1.6.0
Inkling-2-Mini (26B looped MoE, 3.4B active) the official checkpoint folder (NVFP4 / MXFP8 experts, BF16 dense) NVIDIA 24 GB and up; DGX Spark / GB10; Apple Silicon (48 GB tested) passed (exact KLD gate on 3090, GB10, M5 Pro)
Qwen3.8-Flash-Next (125B MoE, 6B active) .tqfn manifest over the public IQ3_S GGUF, tqLLM's own file, Unsloth Dynamic v3.1 GGUFs, NVIDIA NVFP4 experts 24 GB GPU + 64 GB RAM; DGX Spark / GB10 passed
Qwen3.5 / Qwen3.6 27B same formats as Qwen3.8-27B (same architecture) NVIDIA not re-run for 1.7.0
GLM-5.3-Flash, MiniMax-M3.1-Flash GSQ GGUF; EXL3 folder (guide) one GB10, one request not re-run for 1.7.0

Not verified yet: Qwen3.5 / 3.6 mixture-of-experts GGUFs (qwen35moe, such as Qwen3.6-35B-A3B). The MoE models (Flash-Next, GLM-5.3-Flash, MiniMax) do not run on native Windows yet; use WSL 2 there.

How much GPU memory it uses

Measured peak, tqLLM 1.6.0 Docker image, drafter on as shipped (DFlash2-TQ3, or the model's MTP head where marked), reasoning on. On NVIDIA cards the memory fit fills the free VRAM up to a small margin, so long contexts show close to the card's size; what does not fit (LM head, token embeddings, the oldest K/V) moves to system RAM, shown as host RAM.

Card Model file KV Context x users Peak VRAM Host RAM
RTX 3090 24 GB Qwen3.8-27B-TQ3_4S-v2.gguf bf16 4K x 1 19.5 GiB 1.6 GiB
RTX 3090 24 GB Qwen3.8-27B-TQ3_4S-v2.gguf bf16 32K x 1 21.3 GiB 1.7 GiB
RTX 3090 24 GB Qwen3.8-27B-TQ3_4S-v2.gguf bf16 64K x 1 23.1 GiB 8.1 GiB
RTX 3090 24 GB Qwen3.8-27B-TQ3_4S-v2.gguf bf16 32K x 4 (--context 131072 --np 4) 22.4 GiB 12.1 GiB
RTX 3090 24 GB Qwen3.8-27B-TQ_L-QSA.gguf, MTP, --qsa-from 49152 bf16 4K x 1 19.0 GiB 2.0 GiB
RTX 3090 24 GB Qwen3.8-27B-TQ_L-QSA.gguf, MTP, --qsa-from 49152 bf16 140K x 1 23.1 GiB 12.6 GiB
RTX 3090 24 GB Qwen3.8-27B-TQ_L-QSA.gguf, --qsa-from 49152 t4kv 256K x 1 23.3 GiB 8.7 GiB
16 GB (RTX 3090 held to 16,203 MiB free) Qwen3.8-27B-TQ_XS.gguf tq3 4K x 1 15.1 GiB 3.8 GiB
16 GB (RTX 3090 held to 16,203 MiB free) Qwen3.8-27B-TQ3_4S-v2.gguf tq3 16K x 1 15.1 GiB 4.2 GiB
16 GB (RTX 3090 held to 16,203 MiB free) Qwen3.8-27B-TQ_XS.gguf tq3 200K x 1 14.8 GiB 6.5 GiB
16 GB (RTX 3090 held to 16,203 MiB free) Qwen3.8-27B-TQ_XS.gguf tq3 256K x 1 (TqCache) 15.1 GiB 7.1 GiB
16 GB (RTX 3090 held to 16,203 MiB free) Qwen3.8-27B-TQ_XS.gguf tq3 32K x 4 15.3 GiB 5.5 GiB
GB10 / DGX Spark (unified) Qwen3.8-27B-TQ3_4S-v2.gguf bf16 4K x 1 22.2 GiB total (same memory)
GB10 / DGX Spark (unified) Qwen3.8-27B-TQ3_4S-v2.gguf bf16 128K x 1 30.3 GiB total (same memory)
GB10 / DGX Spark (unified) Qwen3.8-27B-TQ3_4S-v2.gguf bf16 32K x 4 31.7 GiB total (same memory)
GB10 / DGX Spark (unified) Flash-Next, flashnext.tqfn (public IQ3_S), MTP default 32K x 1 67.7 GiB total (same memory)
GB10 / DGX Spark (unified) Flash-Next, flashnext.tqfn (public IQ3_S), MTP default 32K x 4 71.6 GiB total (same memory)

Not measured yet: a real 16 GB card (the 16 GB rows are an RTX 3090 with the rest of its memory held), 12 GB cards and Flash-Next on a 24 GB card (both need 64 GB of system RAM; the test PC has 32 GB), and Macs. How: nvidia-smi every 200 ms through load, one short chat and prompts filling about 85 % of each slot's context, minus the idle baseline; host RAM is the drop in available system memory. On GB10 the total is that drop alone. RTX 3090 driver 615.71.09, image ytan2000/tqllm:1.6.0 (engine 933dc6f), 2026-11-15.

See what your model is doing

Watch prefill, output rates and hardware use in one view. Both rates stay in the same request card. Open http://localhost:8086/ or /monitor on the API port. No frontend build, extra service or second port is required.

Prefill and output rates together in the tqLLM monitor

Watch the 50-second monitor walkthrough

Monitor usage recording

20-second preview above; full video and step-by-step instructions. Recorded with a real model. The local hostname is hidden; telemetry is unmodified.

Run locally

On a Mac (Apple Silicon, macOS 15 or newer):

curl -fsSL https://tqllm.com/install.sh | bash   # or: brew install turbo-tan/tap/tqllm
tqllm                                # starts the server in the background; the first run downloads the model and drafter
tqllm stop                           # stops it (log: ~/.cache/tqllm/server.log)
tqllm claude                         # Claude Code pointed at the local server (or: tqllm codex)

More in the Mac guide; on Windows see the Windows guide. The steps below are for Linux with an NVIDIA GPU. Place a supported Qwen GGUF at models/model.gguf, then build from source:

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=native
cmake --build build --target tqserve -j4
./build/tqserve --model models/model.gguf --port 8086

Open localhost:8086 for the monitor. Applications use the same server at http://localhost:8086/v1.

Prefer Docker? The prebuilt image (x86-64 and arm64) runs the same server:

docker run --rm --gpus all -p 127.0.0.1:8086:8086 -v "$PWD/models:/models:ro" --entrypoint tqserve \
  ghcr.io/turbo-tan/tqllm:latest --model /models/model.gguf --host 0.0.0.0 --port 8086

latest is the newest release; use a version tag such as 1.6.0 to pin one. Or build it locally with docker compose up --build. See installation and requirements.

Two or more machines with the same model? Start a normal server on each, then point one at the others; it becomes the single address and sends each request to the box that will answer first (and a conversation back to the box that holds it):

./build/tqserve --model models/model.gguf --np 8 --port 8086 --host 0.0.0.0                 # box 2
./build/tqserve --model models/model.gguf --np 8 --port 8086 --peer http://box2:8086         # box 1: use this one

Choose your next step

You want to... Read
Pick the model and flags for your GPU (16 / 24 / 32 GB, GB10, measured speeds) Choose a setup
Run on a Mac (Apple Silicon, Metal) Mac
Download a model and add a drafter DFlash2 and MTP
Run MiniMax-M3.1-Flash or GLM-5.3-Flash on a DGX Spark / GB10 Big MoE models on one GB10
Run on an RTX 5090 (numbers, what is automatic) RTX 5090
Use a local coding agent Agent setup
Serve several users or tune memory Server options
Run a longer context TqCache
Understand TQ3, TQ4 and compatible formats Weight formats
Inspect latency, compare requests and extend the dashboard Monitor guide

Contribute and credits

See CONTRIBUTING.md for building, testing and contribution requirements, and the architecture guide for the source map.

Built on work from Qwen, ggml/llama.cpp, Google Research, z-lab, Tom Turney, spiritbuun, turboderp (ExLlamaV3: the trellis format and kernels behind X3 and our EXL3 support), @Scoobylolo (the TQV-12 and TQT weight formats, their quantisers and guides: #56, #59, #61) and the contributors listed in Credits. Third-party notices remain in NOTICE. Thank you to our community testers.

tqLLM is created by David Y. Tan and licensed under Apache-2.0: if you copy or redistribute it, keep the NOTICE file's credit with your copy. Model weights and third-party components retain their own licences.

Metadata

Release files for tqllm 1.8.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for tqllm 1.8.3
File Interpreter ABI Platform Actions
tqllm-1.8.3-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details for tqllm-1.8.3-py3-none-manylinux_2_34_x86_64.whl
tqllm-1.8.3-py3-none-manylinux_2_34_aarch64.whl Python 3 none Linux glibc 2.34+ ARM64 Details for tqllm-1.8.3-py3-none-manylinux_2_34_aarch64.whl
tqllm-1.8.3-py3-none-macosx_26_0_arm64.whl Python 3 none macOS 26.0+ ARM64 Details for tqllm-1.8.3-py3-none-macosx_26_0_arm64.whl

Total release size: 103.5 MB

Release files / tqllm-1.8.3-py3-none-manylinux_2_34_x86_64.whl

Download URL tqllm-1.8.3-py3-none-manylinux_2_34_x86_64.whl
Size 67.4 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6dfbc6163f96e1c772e03ea8784f0633a60fdb49088d475a80a0ea929fe414a8
BLAKE2b-256 checksum
How to use checksums
e1a9f0b7fc2474b07562eed49da519f0d41802b787502152594d60c87cedb07b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / tqllm-1.8.3-py3-none-manylinux_2_34_aarch64.whl

Download URL tqllm-1.8.3-py3-none-manylinux_2_34_aarch64.whl
Size 34.4 MB
Tags Linux glibc 2.34+ ARM64 Python 3
SHA-256 checksum
How to use checksums
cd0dba9a0c655f443e34984630d9606f477a354ce7cb5809a29f83488711fc97
BLAKE2b-256 checksum
How to use checksums
9b53b6d28835ab718ab5bfcf52b40aae2737bc6f32d5206d81b6c98c1d9f0c2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / tqllm-1.8.3-py3-none-macosx_26_0_arm64.whl

Download URL tqllm-1.8.3-py3-none-macosx_26_0_arm64.whl
Size 1.7 MB
Tags Python 3 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
5272b3a7aa31901517fbe1b2e14450900924457020b06a8b0fa32d1e2d48701a
BLAKE2b-256 checksum
How to use checksums
de27bf5d64be2598de24807c1ba4d1f3398935a4d75e5d44ca92b499c37aebea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for tqllm 1.8.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for tqllm-1.8.3-py3-none-manylinux_2_34_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page