turbocpp — llama.cpp + TurboQuant
Live llama.cpp running TinyLlama-1.1B-Chat (Q4_K_M) via a prebuilt wheel + interactive Hadamard-rotation visualizer.
Code: github.com/Ary5272/turbocpp · Wheel: pip install turbocpp from the dataset mirror · Docker: ghcr.io/ary5272/turbocpp:cpu
Live llama.cpp inference on TinyLlama-1.1B-Chat at Q4_K_M, loaded via llama-cpp-python on this Space's CPU.
First call may wait ~60s while the GGUF downloads.
model status: loading: downloading tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf
Drag the sliders to see how a Walsh-Hadamard rotation reshapes a synthetic LLM-style weight distribution. The rotation is orthogonal — fp32 model output is unchanged — but per-block max-abs drops 3-5× → much smaller Q4 / Q4_K rounding error.
Use the API
Python (recommended):
from gradio_client import Client
c = Client('AIencoder/turboquant-visualizer')
out, stats = c.predict(prompt='Hi', max_tokens=64, temperature=0.7,
api_name='/generate')
Raw HTTP (Gradio 5 uses the /gradio_api/call/ prefix):
curl -X POST https://aiencoder-turboquant-visualizer.hf.space/gradio_api/call/generate \
-H 'content-type: application/json' \
-d '{"data":["Hi", 64, 0.7]}'
# returns an EVENT_ID; then GET /gradio_api/call/generate/<EVENT_ID> for the result
Endpoints: /generate, /visualize, /status. Full machine-readable spec at /gradio_api/info.