For the simplest case, all you really need is:
- lxc launch images:ubuntu/20.04 u1 -c nvidia.runtime=true
- lxc config device add u1 gpu gpu
- lxc exec u1 bash
The setup hasn’t changed since that Ubuntu 18.04 tutorial and the steps above should work just fine so long as your host system has the drivers and nvidia tools installed.