اگلااگلا گائیڈ
EAGLE کے ساتھ قیاس آرائی پر مبنی ضابطہ کشائی
تکنیکی
ٹیکنیکل گائیڈ
Speculative decoding can speed up large-model generation by letting a faster drafter propose tokens for a target model to verify in batches.
اس گائیڈ کو سنیں۔اے آئی نے بیان کیا۔ · ~2 min
Exact speculative sampling can preserve the target distribution, but speedup depends on draft cost, acceptance rate, batching and hardware.
Normally an LLM generates text one token at a time: each token requires a full forward pass through the giant model, and you can't start the next until the current one finishes. For large models at low batch sizes, decoding can be memory-bandwidth bound: each token step reads many weights, so moving data may dominate arithmetic. Other batch sizes and workloads can have different bottlenecks. Speculative decoding breaks the bottleneck. A small, cheap draft model proposes a chunk of, say, five candidate tokens. The large 'target' model then processes all five in a single parallel forward pass and checks them. In greedy decoding, the target accepts the matching prefix and uses its own token at the first mismatch, discarding the remaining draft. Exact sampling uses a rejection-sampling correction to preserve the target distribution; acceptance is not always simple token equality. The target can verify a drafted block in a parallel pass, but verification still costs computation. Net speedup depends on draft-model cost, how many tokens are accepted, and the hardware and workload.
پروڈکشن اسسٹنٹ میں جوابی تاخیر کو کم کرنے کے لیے 70B چیٹ ماڈل کے لیے ٹوکن تجویز کرنے والا 7B ڈرافٹ ماڈل
میڈوسا کے سروں کو LLM پر باندھ دیا گیا ہے لہذا یہ ایک علیحدہ ڈرافٹ ماڈل کے بغیر مستقبل کے کئی ٹوکنز کی پیش گوئی کرتا ہے۔
vLLM سرونگ کلسٹر پر ٹوکن فی سیکنڈ تھرو پٹ بڑھانے کے لیے قیاس آرائی پر مبنی ضابطہ کشائی کو قابل بناتا ہے۔
قبولیت کی شرح اور مجموعی رفتار کو بڑھانے کے لیے ماڈل کی پوشیدہ فیچر کی جگہ میں ایگل ڈرافٹنگ
Serving frameworks offer speculative decoding and self-drafting variants, but the best method depends on the target model, workload and hardware. Systems should measure latency, throughput, acceptance rate, memory use and output-distribution requirements rather than assume a fixed speedup. Some methods use a separate drafter; others add heads or use feature-space proposals. Continued research is likely to improve these tradeoffs, but deployment gains must be measured on the actual service.
مفت نیوز لیٹر
ہر ہفتے کے دن صبح تین تصدیق شدہ AI کہانیاں، سادہ انگریزی میں لکھی گئیں۔ ہمیشہ کے لیے مفت، کوئی اشتہار نہیں۔
ہر ہفتے کے دن ایک ای میل۔ ایک کلک میں ان سبسکرائب کریں۔ ہم کبھی بھی آپ کا پتہ فروخت یا شیئر نہیں کرتے۔
اپنے آپ کو جانچیں۔
ہر جواب پر فوری فیڈبیک، اور کورس پاس کرنے کے بعد قابلِ تصدیق ID کے ساتھ شیئر کرنے کے قابل سرٹیفکیٹ۔
مفت AI تعلیم کی حمایت کریں۔ AI Understanding ایک 501(c)(3) غیر منافع بخش ادارہ ہے — کوئی اشتہار نہیں، کوئی پے وال نہیں، کبھی نہیں۔ عطیہ کریں۔
Speculative decoding can speed up large-model generation by letting a faster drafter propose tokens for a target model to verify in batches. Exact speculative sampling can preserve the target distribution, but speedup depends on draft cost, acceptance rate, batching and hardware.
ایک تیز ڈرافٹ ماڈل متعدد ٹوکن تجویز کرتا ہے، اور بڑا ہدف ماڈل ان سب کو ایک ہی متوازی پاس میں چیک کرتا ہے۔
For large models at low batch sizes, repeatedly reading weights can dominate arithmetic, though the bottleneck depends on workload.
In greedy verification, the target corrects the first mismatch and the remaining drafted suffix is discarded; exact sampling uses a rejection-sampling correction instead.
The exact rejection-sampling correction preserves the target model’s distribution; this is distinct from relaxed variants.
ٹارگٹ ماڈل جتنے زیادہ ڈرافٹ ٹوکنز کو ہر تصدیقی مرحلے پر قبول کرتا ہے، اتنی ہی زیادہ رفتار۔
سیکھتے رہیں
اس موضوع کے لیے مزید گائیڈز چنے گئے ہیں۔
اگلااگلا گائیڈ
EAGLE کے ساتھ قیاس آرائی پر مبنی ضابطہ کشائی
تکنیکی