- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 4.4k
 
feat(ml): update ONNX Runtime, OpenVINO and ROCm stack #23458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
f6d9707    to
    330f176      
    Compare
  
    f3fc522    to
    464bf0c      
    Compare
  
    | 
           @mertalev I noticed strange behaivior while testing this PR: GPU works fine for 5-10 minutes and then  I can open separate issue if necessary.  | 
    
| 
           It should be able to do multiple tasks at the same time. I haven't seen this before, so I think it's likely related to the ocl driver change in this PR. Not sure if this is a known upstream issue or what the root cause is.  | 
    
| 
           @mertalev okay, I will do some research during weekend.  | 
    
| 
           But I would test it anyway, especially with older hardware (even B570/B580 could be considered older, since I use Arc Pro B50 and for now I believe it's some driver bug, since GPU is basically brand new).  | 
    
981aeb3    to
    ec96665      
    Compare
  
    393583c    to
    3ecc0df      
    Compare
  
    3ecc0df    to
    b529019      
    Compare
  
    d0d6917    to
    2d57bda      
    Compare
  
    | 
           Because I bumped   | 
    
          
 I believe it's some driver issue in the end, setting   | 
    
| 
           Testing on a 155H processor looks promising so far on CPU and OpenVINO. I haven't encountered the error you mentioned after many runs with different settings, though this test library only has a dozen or so assets. Will do more testing with a larger library later, as well as on ROCm.  | 
    
| 
           @mertalev with Arc Pro B50, it straight up leaks GPU memory from the start of the job, and after about 2–3 thousand pictures processed, it reaches the VRAM limit (16 GB in my case) and throws a  
 This means the problem is in the   | 
    
Description
I noticed that Intel Battlemage GPUs are not supported by Immich. This means that, unfortunately, owners of B570, B580, Arc Pro B50, and B60 cannot use GPU acceleration with Immich.
Since the B50 debuted only in Sep 2025, I had to update the OpenVINO image from Bookworm to Trixie (otherwise the
.debpackages fromintel-graphics-compilerandcompute-runtimewouldn't install) and update Python from 3.11 to 3.13. This allowed me to use the newestonnx,onnxruntime-gpu, andonnxruntime-openvinowith Arc Pro support.Due to that dependency bump I also had to refresh ROCm stack.
Fixes #21190.
How Has This Been Tested?
I tested it on personal setup with Arc Pro B50, unfortunately I don't have another hardware to test regress with CUDA/ROCm and other providers.
Screenshots (if appropriate)
Checklist:
src/services/uses repositories implementations for database calls, filesystem operations, etc.src/repositories/is pretty basic/simple and does not have any immich specific logic (that belongs insrc/services/)Please describe to which degree, if any, an LLM was used in creating this pull request.
Was not used at all.