Immich using all available resources on image upload

Hi all,

Immich is deployed on Proxmox (single node with 4 x Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz) in an LXC with 2 vCPUs and 4GB of memory.

The LXC runs docker installed via tteck's script for Dockge (no other docker containers are running except for the Immich ones).

The Intel integrated GPU has been passed through by mapping the device in the LXC configuration, as follows:

lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file

The problem is that as soon as I upload even a small number of pictures, the CPU and memory usage goes through the roof, making the whole LXC unresponsive, so I'm not able to tail the logs.
I have a gut feeling that the HW acceleration for the ML operations is not being used, but I'm not too sure how to prove that.

Does anyone here have an idea of what's going on? Thanks in advance!
P.S. Immich is great!

Immich CPU and memory usage in Proxmox