Skip to content

prawilny/ollama-rocm-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Personal OCI image of ollama with ROCm support enabled. Tested on default configuration (default AMD driver, SELinux enabled, ...) Fedora 39 with podman, podman-compose and AMD 6700XT.

Contains a fix for AMD 6700XT, which will possibly break it for other GPUs. If you want to use this image with another GPU, you will likely want to remove ENV HSA_OVERRIDE_GFX_VERSION=10.3.0 from /Dockerfile.

Rootless podman and SELinux

You need to allow rootless podman containers to use devices:

sudo setsebool container_use_devices=true

Quick demo

docker compose up -d --build
docker compose exec ollama ollama run mistral

More links:

ollama/ollama#738

ollama/ollama#814

https://hub.docker.com/r/bergutman/ollama-rocm

https://github.com/RadeonOpenCompute/ROCm-docker

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published