🌐 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

GPU memory usage graph
Fig. 2 GPU utilisation spike causing OOM.
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