Good reminder that there's a certain amount of memory tied up with each core (probably mainly page cache and concurrency handling etc).
Seems essentially impossible to get:
* pytorch
* GPU acceleration
* VM/container like isolation
The virtio-gpu layer gets closest but seems to only pass through graphics GPU not compute GPU so no pytorch
But... if you start applications inside your VM it will want the full 8 Gb you've allocated not the 5 Gb it uses at startup?
Edit: I stand corrected!
[1] https://developer.apple.com/documentation/virtualization/vzv...
200 lines?! That’s two orders of magnitude too many. What exactly are you doing that you need so such code for signing and notarisation?