How to Check Sampling Parameter Support Across Providers
Check sampling parameter support in each provider's own reference before relying on a setting your provider may not offer.
THE FIELD GUIDE
Understand model formats, context windows, quantization, embeddings, and sampling before choosing settings for a real task.
Check sampling parameter support in each provider's own reference before relying on a setting your provider may not offer.
Compare greedy decoding with sampling on the same prompt to see when randomness helps and when it hurts.
Stop a model repeating itself by raising the frequency and presence penalties so repeated tokens cost more.
Get reproducible model output by setting a seed, so the same prompt and settings give the same reply.
Cap model output length with max tokens so a reply stops at the length you need instead of running on.
Change temperature or top-p, not both, so you can tell which setting caused the difference in the output.
Limit token choices with top-k in a local model so the model only picks from the k most likely next tokens.
Narrow the model's token choices with top-p so it only picks from the tokens that cover most of the probability.
Raise temperature to around 0.9 for brainstorming so the model tries less likely, more varied ideas.
Set temperature to 0 for factual answers so the model picks its most likely token at every step.