[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77W8QZ3RS7DKASNJRKPXNH9":3,"skill-same:01M77W8QZ3RS7DKASNJRKPXNH9":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M77W8QZ3RS7DKASNJRKPXNH9","test-time-compute-guide",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ft\u002Ftest-time-compute-guide\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# test-time-compute-guide\n\n## Description\nMaster test-time compute and chain-of-thought reasoning techniques for LLMs. Learn how to effectively use \"thinking time\" to improve model performance through parallel sampling, sequential revision, and process reward models.\n\n## Implementation\n\nTest-time compute (TTC) and Chain-of-Thought (CoT) have led to significant improvements in LLM performance. The core idea is enabling models to \"think\" longer before producing final answers, similar to human System 2 thinking.\n\n### Key Concepts:\n- **Parallel Sampling**: Generate multiple outputs simultaneously and select the best using verifiers or process reward models\n- **Sequential Revision**: Iteratively refine responses by asking the model to reflect on and correct mistakes  \n- **Process Reward Models (PRM)**: Guide beam search candidate selection during decoding\n- **Self-Consistency**: Use majority voting among multiple CoT rollouts when ground truth isn't available\n\n### When to Use Each Approach:\n- **Easier questions**: Benefit from purely sequential test-time compute\n- **Harder questions**: Perform best with optimal ratio of sequential to parallel compute\n\n## Code Examples\n\n### Example 1: Basic Chain-of-Thought Prompting\n```python\ndef cot_prompt(problem):\n    \"\"\"Generate chain-of-thought prompt for math problems\"\"\"\n    return f\"\"\"Solve this step by step:\n\nProblem: {problem}\n\nLet's think step by step:\n\"\"\"\n\n# Usage\nproblem = \"What is 12345 times 56789?\"\nprompt = cot_prompt(problem)\n```\n\n### Example 2: Best-of-N Sampling\n```python\nimport random\n\ndef best_of_n_sampling(model, prompt, n=5, scorer=None):\n    \"\"\"Generate N samples and return the highest scoring one\"\"\"\n    samples = []\n    for _ in range(n):\n        sample = model.generate(prompt, temperature=random.uniform(0.7, 1.2))\n        score = scorer(sample) if scorer else len(sample)  # Simple length-based scoring\n        samples.append((sample, score))\n    \n    return max(samples, key=lambda x: x[1])[0]\n```\n\n### Example 3: Beam Search with Process Reward\n```python\ndef beam_search_with_prm(model, prm_model, prompt, beam_width=5, max_steps=10):\n    \"\"\"Beam search guided by process reward model\"\"\"\n    beams = [(prompt, 0.0)]  # (sequence, cumulative_reward)\n    \n    for step in range(max_steps):\n        candidates = []\n        for seq, reward in beams:\n            # Generate next tokens\n            next_tokens = model.generate_next_tokens(seq, top_k=beam_width)\n            for token in next_tokens:\n                new_seq = seq + token\n                # Get process reward for this step\n                step_reward = prm_model.evaluate(new_seq)\n                candidates.append((new_seq, reward + step_reward))\n        \n        # Keep top beam_width candidates\n        beams = sorted(candidates, key=lambda x: x[1], reverse=True)[:beam_width]\n    \n    return beams[0][0]  # Return highest reward sequence\n```\n\n## Dependencies\n- Python 3.8+\n- Transformers library (for LLM integration)\n- Custom process reward model implementation",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Ft\u002Ftest-time-compute-guide",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill test-time-compute-guide",{"tool":37,"command":38},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill test-time-compute-guide",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill test-time-compute-guide","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ft\u002Ftest-time-compute-guide\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]