quant.cpp icon indicating copy to clipboard operation
quant.cpp copied to clipboard

LLM inference with 7x longer context. Pure C, zero dependencies. Lossless KV cache compression + single-header library.

Results quant.cpp issues
Sort by recently updated
recently updated
newest added

## Description The `/v1/chat/completions` API responses contain raw chat template tokens that should be stripped before returning to the client. ## Examples **Llama-3.2-1B:** ```json {"content": "Hiassistant\n\n\n## Step 1:"} ``` **SmolLM2-1.7B:**...

bug

## Description When two or more HTTP requests are sent to `quant-server` simultaneously, both responses contain corrupted/garbled text. The server accepts parallel connections but shares inference state without synchronization. ##...

bug

## Description `quant_free_model()` does not free the `dequant_tensor_fp32` buffer allocated during GGUF loading, causing a **108 MB memory leak** per model load/unload cycle. ## Steps to Reproduce ```bash cc -O2...

bug

## Description `quantcpp run MODEL "prompt"` enters interactive mode instead of executing the prompt as a one-shot query. The prompt argument is silently ignored. ## Steps to Reproduce ```bash quantcpp...

bug

## Description The backwards-compatible one-shot mode documented in `quantcpp --help` and README does not work in v0.12.1. ## Steps to Reproduce ```bash pip install quantcpp # v0.12.1 quantcpp "What is...

bug

## Description `quantcpp --version` is not supported. This is a standard CLI convention that users expect. ## Steps to Reproduce ```bash quantcpp --version ``` ## Actual Behavior ``` error: unrecognized...

enhancement

## Summary While exploring P3 (Metal compute graph for KV attention), we discovered that the **existing Metal backend (\`TQ_BUILD_METAL=ON\`) makes inference 13–40% slower** than the CPU-only build on every model...

``` [ 36%] Building C object CMakeFiles/turboquant.dir/src/backend/vulkan/tq_vulkan_dispatch.c.o [ 37%] Building C object CMakeFiles/turboquant_shared.dir/src/engine/tq_transformer.c.o [ 37%] Building C object CMakeFiles/turboquant_shared.dir/src/backend/vulkan/tq_vulkan_dispatch.c.o [ 38%] Building C object CMakeFiles/turboquant_shared.dir/src/backend/vulkan/tq_vulkan_init.c.o /opt/TurboQuant.cpp/src/backend/vulkan/tq_vulkan_init.c: In function ‘tq_vk_select_device’: /opt/TurboQuant.cpp/src/backend/vulkan/tq_vulkan_init.c:201:5:...

Tracking the next round of TurboQuant work after #14 was resolved by Variant F (commit ac3c46a). Current state (post-Variant F): | KV type | Bits/elem | Llama 3.2 3B PPL...

## Summary Our `turbo_kv_3b` and `turbo_kv_4b` types implement the algorithmic structure of [Google TurboQuant (Zandieh et al., ICLR 2026)](https://arxiv.org/abs/2504.19874) — Random Hadamard Transform → Lloyd-Max codebook → 1-bit QJL residual...