Llm Tuning Patterns

作者 parcadeid07ff4b06b62无许可证3.9K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

LLM Tuning Patterns

仅含说明AI & Agents
AI 生成的概览

按任务类型配置 LLM 参数(如 max_tokens、temperature、top_p)的参考模式。

功能
该技能提供基于证据的指导,用于根据具体任务设置 LLM 生成参数。它给出定理证明与形式推理、代码生成以及创意或探索类任务的参数表,并说明各自理由。它还列出反模式,并提供在战术之前进行思维链推理的证明计划提示模板。
适用场景
在为 LLM 任务选择 max_tokens、temperature 或 top_p 取值时使用,尤其是定理证明、代码生成或创意工作。它也适合用来检查常见配置错误,例如证明任务中 token 过少或温度过低。
运行要求
无需工具、软件包或凭据;仅为说明性内容,不附带脚本。

LLM Tuning Patterns

Evidence-based patterns for configuring LLM parameters, based on APOLLO and Godel-Prover research.

Pattern

Different tasks require different LLM configurations. Use these evidence-based settings.

Theorem Proving / Formal Reasoning

Based on APOLLO parity analysis:

ParameterValueRationale
max_tokens4096Proofs need space for chain-of-thought
temperature0.6Higher creativity for tactic exploration
top_p0.95Allow diverse proof paths

Proof Plan Prompt

Always request a proof plan before tactics:

Given the theorem to prove:[theorem statement]
First, write a high-level proof plan explaining your approach.Then, suggest Lean 4 tactics to implement each step.

The proof plan (chain-of-thought) significantly improves tactic quality.

Parallel Sampling

For hard proofs, use parallel sampling:

  • Generate N=8-32 candidate proof attempts
  • Use best-of-N selection
  • Each sample at temperature 0.6-0.8

Code Generation

ParameterValueRationale
max_tokens2048Sufficient for most functions
temperature0.2-0.4Prefer deterministic output

Creative / Exploration Tasks

ParameterValueRationale
max_tokens4096Space for exploration
temperature0.8-1.0Maximum creativity

Anti-Patterns

  • Too low tokens for proofs: 512 tokens truncates chain-of-thought
  • Too low temperature for proofs: 0.2 misses creative tactic paths
  • No proof plan: Jumping to tactics without planning reduces success rate

Source Sessions

  • This session: APOLLO parity - increased max_tokens 512->4096, temp 0.2->0.6
  • This session: Added proof plan prompt for chain-of-thought before tactics

来源与署名

来源:parcadei/continuous-claude-v3位于.claude/skills/llm-tuning-patterns提交d07ff4b

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架