Ben Chuanlong Du's Blog

It is never too late to learn.

Use PyTorch on GPU

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

PyTorch on GPU

https://pytorch.org/docs/master/notes/cuda.html

You can use the command torch.cuda.is_available() to check whether GPU is available for PyTorch. Details of GPUs can …

Dual Boot Linux and Windows

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Mount the Windows File System

When you dual boot your machine with Linux (e.g., Ubuntu) and Windows, the Windows disk/partition might not be mounted automatically. In that case, you …

Tips on Kubernetes

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tutorials

https://www.youtube.com/watch?v=ZpbXSdzp_vo

Some Kubernetes Distributions

Microk8s seems like a good option.

  • k3s - a light-weight Kubernetes distribution ideal for edge and development - compatible with Raspberry Pi …

Tips on Minikube

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Microk8s is a more lightweight solution than Minikube (even thought Microk8s is only for Linux.)

Installation

  1. Install kubectl

  2. Install Minikube

  3. Start minikube.

    minikube start --vm-driver=hyperkit
    
  4. Check status of minikube.

    minikube …