Chain-of-Thought Emergence › Key Parameters
Michael BrenndoerferNovember 7, 20251 min read
Language AI HandbookAll chapters The key parameters for chain-of-thought prompting and self-consistency are:
- temperature: Controls randomness in generation. Use
temperature=0for deterministic CoT responses, ortemperature=0.7for self-consistency sampling where diversity is needed. - max_tokens: Maximum response length. CoT requires more tokens than direct answers, typically 200-500 tokens for multi-step problems.
- n_samples: Number of reasoning chains for self-consistency. More samples increase accuracy but multiply inference cost linearly.
- model: The language model to use. Larger models (>10B parameters) benefit from CoT while smaller models may not show improvement.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!