bokuwalily/claude-code-skills/local-llm-slow-diagnosis
Claude Code and agent skill by bokuwalily/claude-code-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
ローカルLLM(ollama等)がMac/ノートPCで異常に遅い(eval rate 1-2 t/s等)時の原因切り分け。"100% GPU"表示なのに遅い場合に発火。
Install
npx vskill@latest install bokuwalily/claude-code-skills/local-llm-slow-diagnosisSKILL.md
The same SKILL.md was published earlier as bokuwalily/claude-code-skills/local-llm-slow-diagnosis.
Procedure
切り分けは「安く効く順」ではなく「最も見落とす順」で。電力を最後に回すと時間を溶かす。
ollama psでPROCESSOR列確認。"100% GPU"でも遅いなら以下へ(GPU"割当"≠フルクロック)- メモリ切り分け:
memory_pressure | grep free。他モデルをollama stop <model>して再測定。変化なければメモリは無関係 - バージョン:
ollama --versionとgh api repos/ollama/ollama/releases/latest --jq .tag_nameを比較。更新しても変わらなければソフトは無関係 - 電力(最重要・盲点):
system_profiler SPPowerDataType | grep -iE "Wattage|State of Charge"
- アダプタW数が低い(8W=iPhone充電器クラス)+バッテリー低残量 → GPUスロットリング確定
- Apple Siliconノートは給電不足/低バッテリー時にGPUクロックを絞る。AC接続でも起こる
- 補助:
pmset -g | grep lowpowermode(1なら低電力モード)、pmset -g therm(CPU_Speed_Limit<100でサーマル抑制)
Pitfalls
- "100% GPU"はGPU割当の意味で、フルクロックの意味ではない。prompt eval も generation も両方遅いなら電力/熱を疑う
- ollamaバージョン更新やメモリ解放を先に試しがちだが、給電が原因なら全部無駄。電力確認を早める
- M5等の最新チップはアダプタ70W+必須。8-30Wでは高負荷時に破綻し、充電も追いつかずバッテリーが低残量で張り付く
- macOSのollamaは手動DMG。CLI更新は
brew install --cask --force ollama-app(モデルは~/.ollamaに残り保持される)
Verification
- アダプタを70W+に替え、バッテリー50%+まで充電後に
ollama run <model> --verbose "short task"で eval rate 再測定 - 10倍以上改善すれば電力が原因だったと確定(実例: 8W時1.28 t/s → 68W時10.73 t/s)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/local-llm-slow-diagnosis/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bokuwalily/claude-code-skills/local-llm-slow-diagnosis)