পরবর্তী আপপরবর্তী গাইড
প্রত্যাখ্যান স্যাম্পলিং ফাইন-টিউনিং
ভাষা এআই
ভাষা এআই গাইড
Speculative sampling uses a draft model to propose tokens and a target model to verify them.
এই নির্দেশিকা শুনুনএআই-বর্ণিত · ~2 min
With the exact rejection-sampling correction, it preserves the target distribution; speedup depends on draft cost, acceptance, target verification and workload.
Autoregressive generation is slow because each token needs a full forward pass of a huge model. Speculative sampling fixes this by pairing a cheap draft model with the expensive target model. The draft proposes a short run of tokens (say 4-8); the target then scores all of them in one parallel forward pass. A modified rejection-sampling rule accepts the longest prefix that is consistent with the target's own distribution and resamples at the first rejected position. Because acceptance is probabilistic and corrected, the final token stream is provably distributed exactly as if the target had generated alone, no quality loss. Speedups vary with draft cost, acceptance rate, target verification, batching and hardware. A parallel verification pass can confirm multiple tokens, but is not free.
অভিন্ন আউটপুট মানের সাথে মোটামুটি অর্ধেক প্রতিক্রিয়া বিলম্ব কমাতে একটি 7B খসড়া মডেলের সাথে একটি 70B চ্যাট মডেল পরিবেশন করা।
একটি একক মডেলে মেডুসা-শৈলীর মাথাগুলি ভবিষ্যতের বেশ কয়েকটি টোকেনের পূর্বাভাস দেয়, তারপর আলাদা খসড়া নেটওয়ার্ক ছাড়াই সেগুলি যাচাই করে।
ট্রি-ভিত্তিক অনুমানমূলক ডিকোডিং যা একাধিক শাখার ধারাবাহিকতা প্রস্তাব করে এবং সেগুলিকে একটি লক্ষ্য পাসে যাচাই করে।
কোড-সম্পূর্ণতা সহকারীকে দ্রুততর করা যেখানে খসড়া মডেলটি অনুমানযোগ্য বয়লারপ্লেট পরিচালনা করে যা বড় মডেলটি দ্রুত নিশ্চিত করে।
অনুমানের স্ট্যাকগুলিতে অনুমানমূলক ডিকোডিং মানক হয়ে উঠছে। নতুন রূপগুলি পৃথক খসড়া মডেল বাদ দেয়: স্ব-অনুমান প্রাথমিক-প্রস্থান বা অতিরিক্ত ভবিষ্যদ্বাণী প্রধান (মেডুসা, ঈগল) ব্যবহার করে, গাছ-ভিত্তিক খসড়া একযোগে অনেক প্রার্থীর ধারাবাহিকতা যাচাই করে, এবং লুকআহেড ডিকোডিং এন-গ্রাম অনুমানকে সমান্তরাল করে। ব্যাচিং এবং কেভি-ক্যাশে ম্যানেজমেন্ট, হার্ডওয়্যার-সচেতন ড্রাফ্ট সাইজিং, এবং চ্যাট অ্যাসিস্ট্যান্ট এবং কোডিং টুলের মতো লেটেন্সি-সংবেদনশীল পণ্যগুলিতে বিস্তৃত ব্যবহার আশা করুন যেখানে প্রতি মিলিসেকেন্ড গণনা করা হয়।
ফ্রি নিউজলেটার
প্রতি সপ্তাহের কাজের দিন সকালে তিনটি যাচাইকৃত এআই স্টোরি, সহজ ইংরেজিতে লেখা। চিরকালের জন্য ফ্রি, কোনো বিজ্ঞাপন নেই।
প্রতি সপ্তাহের কাজের দিনে একটি ইমেল। এক ক্লিকেই আনসাবস্ক্রাইব করুন। আমরা কখনোই আপনার ঠিকানা বিক্রি বা শেয়ার করি না।
নিজেকে পরীক্ষা করুন
প্রতিটি উত্তরের তাৎক্ষণিক ফিডব্যাক, এবং কোর্স পাস করার পর যাচাইযোগ্য আইডি সহ একটি শেয়ারযোগ্য সার্টিফিকেট।
ফ্রি এআই শিক্ষাকে সমর্থন করুন। AI Understanding একটি 501(c)(3) অলাভজনক প্রতিষ্ঠান — কোনো বিজ্ঞাপন নেই, কোনো পেওয়াল নেই, কখনোই না। একটি দান করুন
Speculative sampling uses a draft model to propose tokens and a target model to verify them. With the exact rejection-sampling correction, it preserves the target distribution; speedup depends on draft cost, acceptance, target verification and workload.
একটি সস্তা খসড়া মডেল সামনে বেশ কয়েকটি টোকেন অনুমান করে, এবং ব্যয়বহুল টার্গেট মডেল সেগুলিকে একটি একক সমান্তরাল ফরোয়ার্ড পাসে পরীক্ষা করে।
সংশোধিত প্রত্যাখ্যান-নমুনা সংশোধন গ্যারান্টি দেয় যে গৃহীত টোকেনগুলি ঠিক সেইভাবে বিতরণ করা হবে যেমন টার্গেট মডেল একাই উত্পাদিত হবে।
Exact speculative sampling uses a rejection-sampling correction and discards the later draft suffix.
The rejection-sampling rule preserves the target distribution; this does not guarantee the same sampled string for each random seed.
The target pass scores the draft proposals and supplies target probabilities used by the acceptance rule and residual correction; it has a computation cost.
শিখতে থাকুন
এই বিষয়ের জন্য বাছাই করা আরও গাইড
পরবর্তী আপপরবর্তী গাইড
প্রত্যাখ্যান স্যাম্পলিং ফাইন-টিউনিং
ভাষা এআই