SeterusnyaPanduan seterusnya
Penalti Ulangan dan Kawalan Penyahkodan
AI bahasa
PANDUAN AI Bahasa
Mirostat is a feedback-based decoding algorithm that aims to regulate the average surprisal of generated tokens toward a target.
Dengar panduan iniAI-diceritakan · ~2 min
In its standard formulation tau specifies a target cross-entropy in bits, corresponding to perplexity 2^tau; it adjusts a truncation threshold, without guaranteeing every passage’s perplexity or factual correctness.
Standard top-k and top-p decoding apply fixed cutoffs, while the predictability of generated text can vary across a passage. Mirostat, proposed by Basu and colleagues in 2020, treats decoding as a feedback-control problem. In the standard formulation, tau is a target average surprisal or cross-entropy in bits; the corresponding perplexity is 2^tau. The sampler measures token surprisal and adjusts a truncation threshold based on the difference from the target. If generated tokens are less surprising than the target, the threshold can be loosened; if they are more surprising, it can be tightened. This aims to regulate average surprise over generation and does not require each token or passage to match the target exactly. It does not measure factual correctness.
Mengekalkan generasi cerita panjang atau main peranan dalam apl LLM tempatan seperti KoboldAI daripada runtuh menjadi gelung berulang.
Terdedah dalam llama.cpp dan Ollama sebagai tetapan mirostat (mod 1 atau 2, tau, eta) untuk penggemar menala kualiti output.
Menstabilkan respons chatbot supaya mereka tidak mengulangi frasa atau beralih kepada tangen yang tidak koheren dalam sesi yang panjang.
Digunakan oleh penulis yang mahukan tahap kreativiti yang konsisten merentas keseluruhan petikan yang dijana dan bukannya kualiti yang berubah-ubah.
Mirostat options are exposed in some local inference tools; llama.cpp, for example, documents mode, tau and eta parameters. Availability and behavior depend on the runtime and version. Its control-theoretic framing is inspiring further adaptive decoders that regulate other signals like factuality or diversity. As long-form generation grows, expect feedback-driven sampling to be combined with retrieval and repetition penalties, and possibly auto-tuned tau values that adapt to genre, replacing manual perplexity targets.
Newsletter percuma
Tiga cerita AI yang disahkan setiap pagi hari bekerja, ditulis dalam Bahasa Inggeris biasa. Percuma selamanya, tiada iklan.
Satu e-mel setiap hari bekerja. Berhenti melanggan dalam satu klik. Kami tidak pernah menjual atau berkongsi alamat anda.
Uji diri anda
Maklum balas segera pada setiap jawapan, dan sijil yang boleh dikongsi dengan ID yang boleh disahkan sebaik sahaja anda lulus kursus.
Sokong pendidikan AI percuma. AI Understanding ialah pertubuhan bukan keuntungan 501(c)(3) — tiada iklan, tiada bayaran dinding, selamanya. Buat derma
Mirostat is a feedback-based decoding algorithm that aims to regulate the average surprisal of generated tokens toward a target. In its standard formulation tau specifies a target cross-entropy in bits, corresponding to perplexity 2^tau; it adjusts a truncation threshold, without guaranteeing every passage’s perplexity or factual correctness.
Mirostat uses feedback to adjust its sampling threshold toward a target surprise or perplexity level.
Top-k dan top-p menggunakan ambang tetap, manakala Mirostat melaraskan pemangkasannya secara berterusan berdasarkan kejutan yang diperhatikan, seperti sistem kawalan.
Eta ialah kadar pembelajaran; ia menskalakan seberapa kuat pembolehubah kawalan mu dikemas kini sebagai tindak balas kepada ralat antara kejutan yang diperhatikan dan sasaran.
Mirostat 2 menghilangkan pergantungan pada andaian undang-undang Zipf yang digunakan dalam versi 1, menjadikan algoritma lebih mudah dan lebih dipercayai secara meluas merentas model.
llama.cpp documents a Mirostat mode plus tau and eta parameters for its sampling implementation.
Teruskan belajar
Lebih banyak panduan dipilih untuk topik ini
SeterusnyaPanduan seterusnya
Penalti Ulangan dan Kawalan Penyahkodan
AI bahasa