LegközelebbKövetkező útmutató
Ismétlési büntetés és dekódolás vezérlők
Nyelvi AI
Nyelvi AI ÚTMUTATÓ
Mirostat is a feedback-based decoding algorithm that aims to regulate the average surprisal of generated tokens toward a target.
Hallgassa meg ezt az útmutatótAI-narrált · ~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.
Megóvja a hosszú történeteket vagy szerepjátékokat a helyi LLM-alkalmazásokban, például a KoboldAI-ban attól, hogy ismétlődő hurkokká omoljanak össze.
A llama.cpp-ben és az Ollamában mirostat-beállításként (1. vagy 2. mód, tau, eta) elérhető a hobbiak számára a kimeneti minőség beállításához.
Stabilizálja a chatbot-válaszokat, hogy ne ismételjenek kifejezéseket, és ne váljanak inkoherens érintőkké egy hosszú munkamenet során.
Olyan írók használják, akik állandó szintű kreativitást szeretnének a teljes generált szövegrészen, nem pedig a változó minőséget.
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.
Ingyenes hírlevél
Minden hétköznap reggel három ellenőrzött AI történet, egyszerű angol nyelven. Örökké ingyen, hirdetések nélkül.
Minden hétköznap egy e-mail. Egy kattintással lemondhat. Soha nem értékesítjük vagy osztjuk meg az Ön címét.
Teszteld magad
Azonnali visszajelzés minden válaszra, és megosztható tanúsítvány egy ellenőrizhető azonosítóval, miután sikeresen teljesít egy kurzust.
Támogassa az ingyenes AI oktatást. AI Understanding egy 501(c)(3) nonprofit – nincs hirdetés, nincs fizetőfal, soha. Tegyen adományt
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.
A Top-k és a top-p fix küszöböt alkalmaz, míg a Mirostat folyamatosan módosítja a csonkítását a megfigyelt meglepetések alapján, mint egy vezérlőrendszer.
Eta a tanulási sebesség; skálázza, hogy a mu kontrollváltozó milyen erősen frissül a megfigyelt és a cél meglepetés közötti hibára válaszul.
A Mirostat 2 megszünteti az 1. verzióban használt Zipf-törvény feltevésekre való hagyatkozást, így az algoritmus egyszerűbbé és szélesebb körben megbízhatóbbá válik a modellek között.
llama.cpp documents a Mirostat mode plus tau and eta parameters for its sampling implementation.
Tanulj tovább
További útmutatók készültek ehhez a témához
LegközelebbKövetkező útmutató
Ismétlési büntetés és dekódolás vezérlők
Nyelvi AI