Serving

Serving से जुड़े अध्याय और लेख।

विकी

Pehla inference service: model function ko HTTP requests lena

Python se apne computer par ek inference endpoint chalayein, JSON bhejein aur status code padhein। Toy decoder se samjhein model, runner, server aur client kya karte hain, phir streaming responses aur deployment ki taraf badhein।

शुरुआती पढ़ने का समय: 10 मिनट

Continuous batching aur PagedAttention: service kai requests ek saath kaise

Decode har step saare weights padhta hai; batching throughput lagbhag free badhata hai. Yeh page llama.cpp se concurrency, continuous batching, KV cache paging aur prefix caching naapta hai, aur dikhata hai service kai requests kaise serve karti hai।

मध्यम पढ़ने का समय: 31 मिनट

KV cache aur inference performance optimization

Samjhein KV cache autoregressive decoding ke repeat computation kaise ghataata hai, aur latency, throughput, memory aur service scheduling ke beech ke trade-off systematically pakdein।

मध्यम पढ़ने का समय: 17 मिनट

Prefix caching aur PD separation: repeat computation ek hi baar

Prefix caching system prompt, multi-turn history aur shared docs ki KV cache requests ke beech reuse karta hai; RadixAttention aur LMCache reuse ka organization solve karte hain. PD separation prefill aur decode ko alag hardware par rakhta hai - kab faydemand, DistServe batata hai।

मध्यम पढ़ने का समय: 13 मिनट

Model quantization: INT8, INT4, GPTQ aur AWQ ka siddhant aur measurement

Quantization weights, activations ya KV cache ko kam bits mein rakhta hai. Yeh page memory aur bandwidth ka hisaab lagata hai, Qwen2.5-0.5B par INT8 aur INT4 ki perplexity naapta hai, SmoothQuant, AWQ, GPTQ aur KV cache quantization implement karta hai, aur selection table deta hai।

मध्यम पढ़ने का समय: 50 मिनट

LLM inference service: latency metrics, measurement aur engine selection

Inference service ko first-token latency, token interval aur throughput ek saath manage karna hota hai. Yeh page llama.cpp se naapta hai ek request ka time kahan jaata hai, warm-up kyun zaroori hai, aur llama.cpp, Ollama, vLLM, SGLang ki positioning aur metrics compare karta hai।

मध्यम पढ़ने का समय: 28 मिनट

लेख

vLLM and PagedAttention: Managing the KV Cache Like Paged Memory

vLLM paper (SOSP 2023) ऑपरेटिंग सिस्टम की paging को KV cache पर लाती है: स्थिर आकार के blocks, आवश्यकतानुसार allocation, block table mapping, copy-on-write sharing। यह लेख paper के आँकड़े मद-दर-मद जाँचता है और headline '2–4×' के पीछे की वास्तविक रेंज, तुलना-पैमाना और लागू होने की सीमाएँ बताता है।

शोधपत्र SOSP 2023

विषय