পরবর্তী আপপরবর্তী গাইড
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.
একটি 7B খসড়া মডেল একটি 70B চ্যাট মডেলের জন্য টোকেন প্রস্তাব করছে যাতে একজন প্রোডাকশন অ্যাসিস্ট্যান্টের প্রতিক্রিয়া লেটেন্সি কাটতে পারে
মেডুসার মাথা একটি এলএলএম-এর উপর ঠেলে দেওয়া হয়েছে যাতে এটি একটি পৃথক খসড়া মডেল ছাড়াই একবারে বেশ কয়েকটি ভবিষ্যতের টোকেনের পূর্বাভাস দেয়
vLLM একটি সার্ভিং ক্লাস্টারে টোকেন-প্রতি-সেকেন্ড থ্রুপুট বাড়াতে অনুমানমূলক ডিকোডিং সক্ষম করে
গ্রহণযোগ্যতার হার এবং সামগ্রিক গতি বাড়ানোর জন্য মডেলের লুকানো-বৈশিষ্ট্যের জায়গায় EAGLE খসড়া তৈরি করা
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 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 এর সাথে অনুমানমূলক ডিকোডিং
টেকনিক্যাল