Configuration

Reference

TokenPrint can be configured via backend environment variables (.env) or CLI flags when starting the backend inspection service.


Environment Variables

VariableDefaultDescription
MODEL_PATH./models/qwen2.5-0.5b-instruct.ggufPath to primary GGUF model file on backend.
PORT8000FastAPI backend HTTP and WebSocket port.
DEVICEcpuInference target (cpu, mps, or cuda).
CACHE_DIR~/.cache/tokenprintLocal directory for downloaded models and trace records.

Frontend Settings

Frontend configuration options (such as WebGL rendering precision, maximum FPS cap, and auto-scroll behavior) can be adjusted in the App Settings panel or persisted in localStorage.