NastępnyNastępny poradnik
Kontrola kar za powtarzanie i dekodowania
Językowa sztuczna inteligencja
PRZEWODNIK Językowy AI
Mirostat is a feedback-based decoding algorithm that aims to regulate the average surprisal of generated tokens toward a target.
Posłuchaj tego przewodnikaOpowiadane przez sztuczną inteligencję · ~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.
Zapobieganie zapadaniu się długich historii lub pokoleń w lokalnych aplikacjach LLM, takich jak KoboldAI, w powtarzalne pętle.
Ujawnione w llama.cpp i Ollama jako ustawienia mirostatu (tryb 1 lub 2, tau, eta) dla hobbystów dostrajających jakość wyjściową.
Stabilizacja odpowiedzi chatbota, aby nie powtarzały fraz ani nie zmieniały się w niespójne styczne podczas długiej sesji.
Używane przez autorów, którzy chcą mieć stały poziom kreatywności w całym wygenerowanym fragmencie, a nie zmienną jakość.
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.
Darmowy newsletter
Trzy zweryfikowane historie AI każdego poranka w dni robocze, napisane prostym angielskim. Bezpłatne na zawsze, bez reklam.
Jedno e‑mail każdego dnia roboczego. Wypisz się jednym kliknięciem. Nigdy nie sprzedajemy ani nie udostępniamy Twojego adresu.
Sprawdź się
Natychmiastowa informacja zwrotna na każde pytanie oraz udostępnialny certyfikat z weryfikowalnym ID po zaliczeniu kursu.
Wspieraj darmową edukację AI. AI Understanding jest organizacją non-profit 501(c)(3) — bez reklam, bez płatnej ściany, zawsze. Przekaż darowiznę
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 i top-p stosują stały próg, podczas gdy Mirostat w sposób ciągły dostosowuje jego obcięcie w oparciu o zaobserwowane zaskoczenie, podobnie jak system sterowania.
Eta to szybkość uczenia się; skaluje, jak mocno zmienna kontrolna mu jest aktualizowana w odpowiedzi na błąd między zaskoczeniem obserwowanym a docelowym.
Mirostat 2 eliminuje zależność od założeń prawa Zipfa zastosowanych w wersji 1, dzięki czemu algorytm jest prostszy i szerzej niezawodny we wszystkich modelach.
llama.cpp documents a Mirostat mode plus tau and eta parameters for its sampling implementation.
Ucz się dalej
Wybrano więcej przewodników na ten temat
NastępnyNastępny poradnik
Kontrola kar za powtarzanie i dekodowania
Językowa sztuczna inteligencja