MirostatEta
Contents
[
Hide
]
MirostatEta is the learning rate of Mirostat’s adaptive loop. It controls how quickly Mirostat reacts to divergence between observed entropy and the target entropy MirostatTau.
Quick reference
| Type | float |
| Default | 0.1 |
| Range | > 0; typical 0.05 – 0.3 |
| Category | Adaptive sampler |
| Field on | SamplerParameters.MirostatEta |
What it does
After each token, Mirostat computes the difference between the observed entropy and MirostatTau. It scales that difference by MirostatEta and adjusts its internal threshold accordingly.
MirostatEta = 0.05— slow adaptation. Smoother behavior; takes longer to settle.MirostatEta = 0.1(default) — balanced.MirostatEta = 0.3— fast adaptation. Tighter tracking ofTaubut noisier.
MirostatEta only matters when Mirostat is enabled.
When to change it
| Scenario | Value |
|---|---|
| Default | 0.1 |
| Smoother, slower adaptation | 0.05 |
| Fast tracking, aggressive correction | 0.2 – 0.3 |
Most users leave MirostatEta = 0.1. Adjust only when Mirostat’s entropy wanders too far from Tau or oscillates too much.
Example
var preset = new Qwen25Preset();
preset.SamplerParameters.Mirostat = 2;
preset.SamplerParameters.MirostatTau = 5.0f;
preset.SamplerParameters.MirostatEta = 0.05f; // slow, smooth adaptation
using var api = AsposeLLMApi.Create(preset);
Interactions
Mirostat— must be1or2.MirostatTau— the targetMirostatEtaadapts toward.
What’s next
- Mirostat — mode selector.
- MirostatTau — entropy target.
- Sampler parameters hub — all sampler knobs.