आगेअगली गाइड
सतत प्रशिक्षण और स्वचालित पुनर्प्रशिक्षण
तकनीकी
तकनीकी गाइड
निरंतर बैचिंग प्रत्येक अनुरोध समाप्त होने तक एक निश्चित बैच को पकड़ने के बजाय पीढ़ी पुनरावृत्तियों के बीच सक्रिय अनुरोध सेट को अद्यतन करती है।
इस गाइड को सुनेंएआई-नैरेटेड · ~2 min
It can improve serving utilization, while capacity limits and scheduling policy still govern latency.
GPUs are fastest when they process many requests together in a batch. The naive approach, static batching, groups a fixed set of requests, runs them all to completion, then starts the next batch. The problem: language model outputs vary wildly in length, so short requests finish early and their slots sit idle while the batch waits for the longest one, wasting GPU cycles and delaying new arrivals. Continuous batching (also called in-flight or iteration-level batching, popularized by the Orca paper and used in vLLM, TensorRT-LLM, and TGI) operates at the granularity of a single decoding step. After each token is generated, finished sequences exit the batch and queued requests can be admitted when the scheduler has capacity. Iteration-level admission can improve utilization and reduce avoidable waiting compared with fixed batches; the measured effect depends on request lengths, capacity, and scheduling.
एक चैट एपीआई नए आए उपयोगकर्ता संदेशों को अगले बैच के लिए कतारबद्ध करने के बजाय तुरंत चल रहे बैच में स्वीकार कर रहा है
एक संक्षिप्त पूर्ण उत्तर को मध्य-बैच से बाहर निकालना और उसके स्लॉट को बैकफ़िल करना ताकि GPU कभी भी लंबी पीढ़ी की प्रतीक्षा में निष्क्रिय न रहे
प्रत्येक डिकोड चरण पर सस्ते में अनुक्रम सम्मिलित करने और हटाने के लिए वीएलएलएम के पेजेडअटेंशन के साथ निरंतर बैचिंग का संयोजन
एक कोड-समापन सेवा, बैच को पूर्ण रखते हुए तीव्र, परिवर्तनीय-लंबाई वाले ट्रैफ़िक के तहत उच्च टोकन-प्रति-सेकंड को बनाए रखती है
Serving teams balance throughput with time to first token and time between generated tokens. Long prefill work can delay decoding unless the scheduler splits or otherwise manages it. Capacity budgets, request priorities, and fairness policies determine which work is admitted. Continuous batching can be combined with paged caches, chunked prefill, and speculative decoding, but each combination should be measured on the actual traffic and hardware.
मुफ़्त न्यूज़लेटर
हर कार्यदिवस की सुबह तीन सत्यापित एआई कहानियाँ, सादे अंग्रेजी में लिखी गईं। हमेशा के लिए मुफ़्त, कोई विज्ञापन नहीं।
प्रत्येक सप्ताह के दिन एक ईमेल. एक क्लिक में सदस्यता समाप्त करें. हम आपका पता कभी नहीं बेचते या साझा नहीं करते।
स्वयं की जांच करो
प्रत्येक उत्तर पर त्वरित प्रतिक्रिया, और पाठ्यक्रम पास करने के बाद एक सत्यापन योग्य आईडी के साथ एक साझा करने योग्य प्रमाणपत्र।
निःशुल्क एआई शिक्षा का समर्थन करें। AI Understanding एक 501(c)(3) गैर-लाभकारी संस्था है - कोई विज्ञापन नहीं, कोई पेवॉल नहीं। दान करें
Continuous batching updates the active request set between generation iterations instead of holding one fixed batch until every request finishes. It can improve serving utilization, while capacity limits and scheduling policy still govern latency.
क्योंकि आउटपुट की लंबाई अलग-अलग होती है, समाप्त अनुक्रम तब तक निष्क्रिय रहते हैं जब तक कि सबसे धीमा अनुक्रम पूरा नहीं हो जाता, GPU चक्र बर्बाद हो जाता है और नए अनुरोधों में देरी होती है।
निरंतर (पुनरावृत्ति-स्तर) बैचिंग प्रत्येक डिकोड चरण के बाद सक्रिय सेट को अपडेट करती है, इसलिए यह पूरे अनुरोध के बजाय टोकन-दर-टोकन संचालित करती है।
Iteration-level scheduling can refill available capacity subject to memory, token, and other limits.
PagedAttention प्रत्येक अनुक्रम के KV कैश को स्वतंत्र ब्लॉकों में संग्रहीत करता है, इसलिए उड़ान के बीच में अनुक्रम को जोड़ने या हटाने से दूसरों की स्मृति बाधित नहीं होती है।
ओर्का पेपर ने पुनरावृत्ति-स्तरीय शेड्यूलिंग की शुरुआत की, और इस विचार को वीएलएलएम, टीजीआई और टेन्सोरआरटी-एलएलएम जैसी सेवा प्रणालियों द्वारा अपनाया गया।
सीखते रहो
इस विषय के लिए अधिक मार्गदर्शिकाएँ चुनी गईं
आगेअगली गाइड
सतत प्रशिक्षण और स्वचालित पुनर्प्रशिक्षण
तकनीकी