Guide to GPU-accelerated ML tasks on Intel Jasper Lake (11th gen) processors with integrated GPU #11422
thariq-shanavas
started this conversation in
Community Guides
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
@Target0998 I will preface this by saying I don't quite understand why enabling the GuC and HuC works, just that it did on my system. I therefore have very limited ability to help you troubleshoot your setup. That said, there are three options for the Try all three of these settings by editing your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There appear to be some shenanigans with the LP mode on Intel Jasper Lake processors that prevent ML tasks from running on the GPU. The issues seem to be fixed by loading the GuC and HuC firmwares. This guide will walk you through installing the proprietary i915 firmware, GuC (graphics micro controller) firmware and HuC (HEVC micro controller) firmware.
This guide was tested on Debian 12 with the Linux 6.1 kernel, but things may change in the future.
From Intel [1],
This may not be enabled by default in many Linux distros. Before enabling the GuC, my ML container would frequently crash with an
out of GPU resources
error, copied below.The rest of this guide follows instructions from Jellyfin [2].
On Debian:
sudo apt update && sudo apt install -y firmware-linux-nonfree
On Ubuntu:
sudo apt update && sudo apt install -y linux-firmware
On Arch Linux:
sudo pacman -Syu linux-firmware
Or from the Linux repo directly:
Update the initramfs and grub. The commands varies between distros.
On Debian & Ubuntu:
sudo update-initramfs -u && sudo update-grub
On Arch Linux:
sudo mkinitcpio -P && sudo update-grub
Reboot the system
sudo reboot
Check the GuC & HuC status with the following commands, make sure there is no FAIL or ERROR in the outputs.
If you get a No such file or directory error when running the last two commands, try querying a dri device with a different number, for example 1:
Change your docker compose file to use the OpenVINO backend
https://immich.app/docs/features/ml-hardware-acceleration
Clear the model cache
docker volume rm immich-app_model-cache
ordocker volume rm model-cache
depending on your setup.You can find the name of the docker volume containing the ML cache using
docker volume ls
Restart Immich
And that's it! Many thanks to the Immich machine learning wizard @mertalev for help figuring this out.
[1] https://www.intel.com/content/www/us/en/content-details/609249/enabling-the-guc-huc-firmware-for-linux-on-new-intel-gpu-platforms.html
[2] https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#configure-and-verify-lp-mode-on-linux
Beta Was this translation helpful? Give feedback.
All reactions