fqih/.mycc-setup/local-ml-gpu
Claude Code and agent skill by fqih/.mycc-setup
- community
Checking that the SKILL.md file is still in the repository.
Use when running ML training/inference on local AMD GPU (RX 6700S / RX 6800S / RX 6650 XT family = Navi 23 RDNA 2). Activates unsloth venv with bundled ROCm + PyTorch, exposes GPU selection pattern, Ollama integration, libmpi workaround for system Python. Trigger on "GPU", "ROCm", "torch.cuda", "ollama", "RX 6700S", "/gpu-check".
Install
npx vskill@latest install fqih/.mycc-setup/local-ml-gpuSKILL.md
The same SKILL.md was published earlier as fqih/.mycc-setup/local-ml-gpu.
local-ml-gpu
GPU compute workflow untuk multi-device setup:
| Device | OS | GPU | VRAM | Stack | |
|---|---|---|---|---|---|
| ASUS ROG Zephyrus (primary) | Fedora 44 | AMD RX 6700S (Navi 23, RDNA 2) | 8GB | ROCm via unsloth venv | |
| Zephyrus iGPU | Fedora 44 | Radeon 680M (Rembrandt) | shared | Display | |
| HP Pavilion (secondary) | Windows 11 | NVIDIA GTX 1650 (Turing, cc 7.5) | 4GB | CUDA wheels regular | |
| Pavilion | Windows 11 | Intel/AMD iGPU (Rembrandt/Vega) | shared | Display |
Zephyrus — ROCm workflow (SUDAH JADI)
torch.cuda.is_available() = True via ROCm (PyTorch expose HIP sebagai CUDA API).
Setup — pakai unsloth venv (SUDAH JADI)
JANGAN install PyTorch ROCm baru. Unsloth sudah bundle ROCm 7.13 + PyTorch 2.10.0+rocm7.13.0.
Pakai sebagai default
Tambah ke ~/.bashrc atau ~/.zshrc:
Pakai gpu-py script.py untuk run script GPU tanpa activate venv.
Untuk project baru: clone venv via uv
System Python broken untuk ROCm — kenapa
Default python3 di pyenv (3.12.13) bisa import torch tapi gagal karena missing libmpi_cxx.so.40. Solusi: pakai unsloth venv yang bundle libs lengkap via _rocm_sdk_core.
Workaround kalau HARUS pakai system Python:
Lebih baik: pakai unsloth python langsung, no LD_LIBRARY_PATH hack.
GPU selection pattern
Pavilion (Windows 11) — CUDA workflow
GTX 1650 = Turing, CUDA cc 7.5, 4GB VRAM. RAM 8GB total = ketat, pakai swap/Page File.
Setup PyTorch CUDA di Windows
Limitasi GTX 1650 (4GB VRAM)
- ❌ Tidak bisa load LLM > 7B quantized
- ❌ Tidak bisa training LLM (cuma inference quantized)
- ✅ Inference model kecil (≤ 3B param): llama3.2-3b, phi-3-mini, gemma-2-2b
- ✅ Training CNN/kecil: image classifier, fine-tune BERT-small
- ✅ Stable Diffusion (harus
--lowvramflag) - ⚠️ Training LLM dengan QLoRA:勉强, perlu CPU offload agresif
Ollama di Windows
WSL2 alternative (Linux env di Windows)
Untuk akses ROCm-like tooling atau Linux dev env:
Sync konfigurasi CC ke Windows
Pavilion butuh config sendiri kalau CC dipakai lokal di sana:
ROCm diagnostic
Ollama (sudah terinstall, active)
Ollama perf tuning untuk RX 6700S (8GB VRAM)
Edit /etc/systemd/system/ollama.service.d/override.conf atau /etc/default/ollama:
Apply: systemctl daemon-reload && systemctl restart ollama.
Pakai Ollama dari Python
ROCm diagnostic
Cek VRAM real-time saat training:
Training pattern (LoRA pada LLM)
Common pitfalls
| Pitfall | Solusi | |
|---|---|---|
libmpi_cxx.so.40: cannot open | Pakai unsloth python, jangan system python | |
| VRAM OOM saat load model | load_in_4bit=True atau quantize ke q4_K_M | |
torch.cuda.is_available() False | Cek rocminfo, pastikan ROCm detect GPU | |
| Ollama lambat | Cek OLLAMA_NUM_GPU=999, model harus ≤ 8B untuk 8GB VRAM | |
| Training loss NaN | Lower learning rate, gradient clipping, cek dtype fp16 vs bf16 |
Invokation
Auto-trigger saat:
- Import torch / detect GPU device
- User sebut "GPU", "ROCm", "RX 6700S", "training", "fine-tune"
- Script di folder project ML
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/local-ml-gpu/SKILL.md
Popularity
- 7-day trend score
- 0
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/fqih/.mycc-setup/local-ml-gpu)