quant.cpp
quant.cpp copied to clipboard
LLM inference with 7x longer context. Pure C, zero dependencies. Lossless KV cache compression + single-header library.
## Summary Add a `quantcpp recommend` command that suggests the optimal model based on hardware specs and user priorities (speed vs quality). ## Motivation Our testing revealed a counter-intuitive finding:...
## Summary Add a new public API function that combines answer generation with automatic coherence verification — the core mechanism that took RLV from 15/20 to 19/20 on the large-doc...
## Problem `quant.h` (single-header) and `src/engine/*.c` (split sources / libturboquant) implement the same inference logic independently. They have diverged, causing: - **#77**: SmolLM2-1.7B produces garbage via `quant-server` (libturboquant) but works...
## Summary Investigate creating or fine-tuning a small (1.7-3.8B) model with a 32K vocabulary optimized for English document QA on quant.cpp. This addresses the fundamental speed/quality tension discovered in our...
## Summary Complete the Phi-3 architecture port from `quant.h` to `src/engine/*.c` so that `quant-server` (libturboquant) can serve Phi-3.5 with Metal GPU acceleration. ## Current State - **quant.h**: Phi-3.5 works perfectly...
## Summary Add a lightweight sentence embedding model (all-MiniLM-L6-v2, 22M params) as the third signal in the Reciprocal Rank Fusion (RRF) locator, catching semantic matches that BM25 and keywords miss....
## Summary Make `quant.h` the canonical source and auto-generate `src/engine/*.c` from it, eliminating the sync-divergence bug class that caused #77 (SmolLM2 numerical instability in libturboquant). ## Problem `quant.h` and `src/engine/*.c`...
## Description After commit `91814d4` ("Phi-3.5 server support + Metal workaround"), SmolLM2-1.7B server inference produces garbage output. This model previously worked correctly. ## Steps to Reproduce ```bash ./build-metal/quant-server SmolLM2-1.7B-Instruct-Q8_0.gguf -p...
## Summary Users need guidance on which model to choose for their use case. Based on extensive testing and research, we propose adding a **model selection guide** to the documentation...
## Description When the requested port is already in use, `quantcpp serve` crashes with SIGABRT (exit code -6) instead of showing a user-friendly error message. ## Steps to Reproduce ```bash...