Debugging Memo
🌐 Website Building
Problem 1 — Token expired, cannot git push
Click to reveal solution
Flush stale credential with:
git credential-osxkeychain erase
protocol=https
host=github.com
…then run hexo d
and paste the new PAT.
0
🧠 Deep Learning
Problem 1 — CUDA out-of-memory during model training
Click to reveal solution
1️⃣ Add torch.cuda.empty_cache()
between epochs.
2️⃣ Use gradient accumulation (smaller mini-batches).
3️⃣ Check pin_memory
≠ True on dataloader when unnecessary.
0
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.