You can use GPUs to accelerate your app even further. A common pattern might look like this:

  1. Use an officially supported CUDA image
  2. Add your GPU dependencies to your Image
  3. Attach a GPU to your function with gpu="A10G"

Click Run to see it in action!


$ modal run gpu.py