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

version 0.2.0 I was able to compile with Visual Studio 2019 and 2022, but there was a lot of tricks. Some of them could be addressed in the CMake. Here...

## Summary Found several memory safety and correctness issues via code audit. ## Bug 1: Stack buffer overflow in `tq_uniform_4b_attention_int_ref` (CRITICAL) **File:** `src/core/tq_uniform.c`, line 195 `int8_t q8[512]` is stack-allocated with...

The main public header `include/turboquant/tq_engine.h` exposes ~52 public functions but has minimal documentation. New users and contributors need a reference to understand the API surface. **What to do:** - Create...

good first issue
help wanted

The GGUF weight loader (`src/engine/tq_gguf_quants.c`) handles Q2_K through Q6_K dequantization, but Q3_K_M (3-bit with medium grouping) needs testing and verification against the llama.cpp reference implementation. **What to do:** - Verify...

good first issue
help wanted

The `--ppl` (perplexity) mode in `tools/quant.c` currently prints human-readable text output. For CI pipelines and automated benchmarking, a machine-parseable JSON output mode would be very useful. **What to do:** -...

good first issue
help wanted

The CLI binary (`tools/quant.c`) currently has no way to print its version. Add a `--version` flag that prints the version string (e.g. `quant.cpp v0.1.0`) and exits. **What to do:** -...

good first issue
help wanted

-- The C compiler identification is GNU 15.2.1 -- The CXX compiler identification is GNU 15.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done...

``` cmake -B build -DCMAKE_BUILD_TYPE=Release -DTQ_BUILD_TESTS=ON -DTQ_BUILD_VULKAN=ON -- The C compiler identification is GNU 15.2.1 -- The CXX compiler identification is GNU 15.2.1 -- Detecting C compiler ABI info --...