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 從公開儲存庫中收錄這些內容。

檢舉或申請下架