विकी
Attention की दो अलग बाधाएँ हैं: decode का KV Cache और प्रशिक्षण व prefill का N×N स्कोर matrix। MQA, GQA व MLA कैश K/V छोटा करके पहली का, FlashAttention ब्लॉकिंग व online softmax से मेमोरी read/write घटाकर दूसरी का हल करते हैं; परिणाम मानक attention जितना ही सटीक रहता है।
मध्यम पढ़ने का समय: 13 मिनट
Production evaluation model quality, system reliability aur user task outcomes ko jodta hai. Paired replay se do versions compare karein, key slices par release gates rakhein, phir shadow traffic, canary aur A/B experiments se alag-alag launch questions answer karein।
मध्यम पढ़ने का समय: 8 मिनट
Test-time compute: har sawaal par zyada compute se behtar jawab - parallel sampling + voting, verifier se chunna, sequential revision, search, aur RL-trained lambi chains। Reproducible simulation se: fayde ki chhata, thaga verifier, parallel vs lambi chain।
उन्नत पढ़ने का समय: 26 मिनट
Decoding probability ko token banata hai: greedy sabse bada chunta hai, temperature dhaar badalti hai, Top-k/Top-p tail kaatte hain, beam search kai candidates rakhta hai; yeh output ki certainty, diversity aur quality tay karte hain।
शुरुआती पढ़ने का समय: 13 मिनट
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 मिनट
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 मिनट
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 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 मिनट
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 मिनट
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 मिनट
Speculative decoding chhote draft model se tokens guess karwata hai, bada model ek forward pass se verify karta hai; accept aur correction sampling rules output distribution same rakhte hain. Yeh page expected speedup derive karta hai aur interactive widget deta hai।
मध्यम पढ़ने का समय: 13 मिनट
एक पन्ने में बड़े मॉडलों के सबसे इस्तेमाल होने वाले अनुमान: पैरामीटर कैसे गिनें, प्रशिक्षण गणना लगभग 6ND, भार व KV cache कितनी मेमोरी लेते, decoding गति की बैंडविड्थ सीमा, LoRA व pass@k के सूत्र; हर सूत्र के साथ standard library से सत्यापन कोड, और Llama 3 पेपर व Hugging Face की संख्याओं से मिलान।
मध्यम पढ़ने का समय: 14 मिनट
GPU की गति दो दीवारों से तय होती है: प्रति सेकंड कितने संचालन (compute) और मेमोरी से कितने bytes (bandwidth)। Roofline मॉडल arithmetic intensity से बताता है operator पहले किस दीवार से टकराएगा — छोटे batch का decoding bandwidth से, बड़ा matrix गुणन compute से अटकता है।
मध्यम पढ़ने का समय: 23 मिनट
GPU kernel सुधार में thread का data access, chip पर data पुनः उपयोग और आउटपुट लिखना एक साथ व्यवस्थित होते हैं। Tiled matrix गुणन से यह पन्ना mask किनारों पर मेमोरी traffic निकालता है, CPU implementation से आउटपुट व traffic जाँचता है, और समझाता है pipeline व fusion निष्पादन क्यों बदलते हैं।
मध्यम पढ़ने का समय: 5 मिनट
एक model request के रास्ते पर disk, मुख्य मेमोरी, device memory, CPU और GPU को पहचानें। Matrix के bytes और copy के समय से क्षमता, bandwidth व गणना क्षमता समझें, फिर inference की मेमोरी व गति की अड़चन का पता लगाएँ।
शुरुआती पढ़ने का समय: 3 मिनट