Skip to content

feat: Add generic dockerfile#35

Open
shokerplz wants to merge 1 commit intokyuz0:mainfrom
shokerplz:feat/add_generic_docker_image
Open

feat: Add generic dockerfile#35
shokerplz wants to merge 1 commit intokyuz0:mainfrom
shokerplz:feat/add_generic_docker_image

Conversation

@shokerplz
Copy link
Copy Markdown

This PR adds a generic dockerfile which can be used to create a docker image using any available rocm release for any gpu.
Here's how it works

docker build -t llama-cpp-rocm7.0rc -f Dockerfile.rocm-generic . --no-cache --build-arg GFX=gfx1151 --build-arg ROCM_MAJOR_VER=7 --build-arg ROCM_MINOR_VER=0 --build-arg ROCM_PATH_VER=0 --build-arg REV=rc

This will be build an image with RC version of rocm. The same way we can build an image for gfx1150 with rocm 7.11

docker build -t llama-cpp-rocm7.10a -f Dockerfile.rocm-generic . --no-cache --build-arg GFX=gfx1150 --build-arg ROCM_MAJOR_VER=7 --build-arg ROCM_MINOR_VER=11 --build-arg ROCM_PATH_VER=0 --build-arg REV=a

This way there's no need to have a dockerfile per rocm version (probably the ones which require specific build arguments will still be needed)

Also I'm not sure how it works with toolbox since I am not using it, but in worst case it's surely possible to build images first and then use them with toolbox (it seems like an option according to docs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant