MirostatTau

MirostatTau is the target entropy Mirostat tries to maintain across the output. Mirostat adjusts its sampling parameters on the fly to keep the actual output entropy close to this value.

Quick reference

Type float
Default 5.0
Range > 0; typical 3.08.0
Category Adaptive sampler
Field on SamplerParameters.MirostatTau

What it does

Entropy is measured in nats (natural-log units) over the per-step token distribution. Lower target entropy → tighter, more deterministic output. Higher target → more variety.

  • MirostatTau = 3.0 — tight. Output is focused, often close to greedy.
  • MirostatTau = 5.0 (default) — balanced. Good match for general chat.
  • MirostatTau = 7.0+ — looser. Output has more variety, higher perplexity.

MirostatTau only matters when Mirostat is enabled (1 or 2). Otherwise the field is ignored.

When to change it

Scenario Value
Default 5.0
Precise / code / factual output 3.04.0
Creative writing 6.08.0

Example

var preset = new Qwen25Preset();
preset.SamplerParameters.Mirostat = 2;
preset.SamplerParameters.MirostatTau = 4.0f;  // tighter than default
preset.SamplerParameters.MirostatEta = 0.1f;

using var api = AsposeLLMApi.Create(preset);

Interactions

  • Mirostat — must be 1 or 2 for MirostatTau to take effect.
  • MirostatEta — how fast Mirostat adapts toward Tau.

What’s next