Model level: a smaller or distilled model, quantization (INT8 or INT4), and speculative decoding.
Serving level: continuous batching, KV-cache and prefix caching, an optimized engine (vLLM, TensorRT-LLM), and streaming for perceived speed.
Application level: shorter prompts, fewer but better retrieved chunks, caching repeated queries, routing by difficulty, and parallelizing independent calls.
Measure quality as well as latency before and after, since compression can hurt accuracy.
Loading…