SıradakiSonraki rehber
Reddetme Örnekleme İnce Ayarı
Dil Yapay Zeka
Dil AI KILAVUZU
Speculative sampling uses a draft model to propose tokens and a target model to verify them.
Bu kılavuzu dinleyinAI tarafından anlatılan · ~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.
Yanıt gecikmesini aynı çıktı kalitesiyle yaklaşık yarı yarıya azaltmak için 7B taslak modeliyle birlikte 70B sohbet modeli sunuluyor.
Medusa tarzı, gelecekteki birkaç tokenı tahmin eden tek bir modele yöneliyor ve ardından bunları ayrı bir taslak ağ olmadan doğruluyor.
Birden fazla dallanma devamı öneren ve hepsini tek bir hedef geçişte doğrulayan ağaç tabanlı spekülatif kod çözme.
Taslak modelin, büyük modelin hızlı bir şekilde onayladığı öngörülebilir ortak metni ele aldığı kod tamamlama asistanlarının hızlandırılması.
Spekülatif kod çözme, çıkarım yığınlarında standart hale geliyor. Daha yeni varyantlar ayrı taslak modelini bırakıyor: kendi kendine spekülasyon, erken çıkış veya ekstra tahmin kafaları (Medusa, EAGLE) kullanıyor, ağaç tabanlı taslak oluşturma, birçok adayın devamını aynı anda doğruluyor ve ileriye dönük kod çözme, n-gram tahminlerini paralelleştiriyor. Toplu işlem ve KV önbellek yönetimi, donanıma duyarlı taslak boyutlandırma ve her milisaniyenin önemli olduğu sohbet yardımcıları ve kodlama araçları gibi gecikmeye duyarlı ürünlerde daha geniş kullanım ile daha sıkı entegrasyon bekleyebilirsiniz.
Ücretsiz bülten
Hafta içi her sabah sade İngilizce yazılmış, doğrulanmış üç yapay zeka hikayesi. Sonsuza kadar ücretsiz, reklam yok.
Hafta içi her gün bir e-posta. Tek tıklamayla aboneliğinizi iptal edin. Adresinizi asla satmayız veya paylaşmayız.
Kendinizi test edin
Her yanıtla ilgili anında geri bildirim ve bir kursu geçtiğinizde doğrulanabilir bir kimliğe sahip paylaşılabilir bir sertifika.
Ücretsiz AI eğitimini destekleyin. AI Understanding, bir 501(c)(3) kâr amacı gütmeyen kuruluştur; hiçbir zaman reklam yoktur, ödeme duvarı yoktur. Bağış yap
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.
Ucuz bir taslak model, birkaç jetonun ilerisini tahmin eder ve pahalı hedef modeli, tek bir paralel ileri geçişte hepsini kontrol eder.
Değiştirilen reddetme-örnekleme düzeltmesi, kabul edilen tokenlerin tam olarak hedef modelin tek başına üreteceği şekilde dağıtılmasını garanti eder.
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.
Öğrenmeye devam et
Bu konu için daha fazla rehber seçildi
SıradakiSonraki rehber
Reddetme Örnekleme İnce Ayarı
Dil Yapay Zeka