fix(oci): run Ollama and llama.cpp on Intel and AMD integrated GPUs

This commit is contained in:
MacRimi
2026-10-31 00:25:21 +01:00
parent 81cc746e19
commit f9fe4d2793
6 changed files with 226 additions and 5 deletions
+57
View File
@@ -410,9 +410,60 @@
}
]
},
{
"id": "vulkan",
"label": "Intel/AMD (Vulkan)",
"architectures": [
"amd64"
],
"image": {
"reference": "ollama/ollama:latest",
"registry": "docker.io",
"repository": "ollama/ollama",
"tag": "latest",
"digest": null,
"pull_policy": "resolve-selected-tag-to-architecture-digest-at-install"
},
"device_requests": [
{
"id": "gpu-render",
"path_prompt": "GPU render device",
"host_path_default": "/dev/dri/renderD128",
"mode": "0660",
"deny_write": false,
"gid_strategy": "host-device-gid",
"kind": "character-device",
"container_path_strategy": "same-as-host",
"drm_vendor_ids": [
"0x8086",
"0x1002"
]
}
],
"environment": [
{
"name": "OLLAMA_IGPU_ENABLE",
"value": "1"
}
]
},
{
"id": "rocm",
"label": "AMD (ROCm)",
"amd_gfx_targets": [
90008,
90010,
90402,
90500,
100300,
110000,
110001,
110002,
110500,
110501,
120000,
120001
],
"architectures": [
"amd64"
],
@@ -448,6 +499,12 @@
"kind": "character-device",
"container_path_strategy": "same-as-host"
}
],
"environment": [
{
"name": "OLLAMA_IGPU_ENABLE",
"value": "1"
}
]
}
]