forked from ollama/ollama
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[WIP] Migrate away from centos7 #3
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
50d0f25
rootless amdgpu runtime via docker compose
cazlo f39b24a
improved docker rebuild layer caching optimization
cazlo a53b437
avoid rebuild of rocm when changing branch
cazlo de2966a
[chkpt] messing around with stable diffusion
cazlo 16380f0
rocm rocky8 builder layer
cazlo fd61e1a
[ckpt] functioning rocm build with no centos
cazlo c6f457e
[ckpt] functioning rocm build using gcc 11.2.1
cazlo 2762efb
[to drop] noop to force CI run
cazlo 98fdf70
Merge branch 'main' into migrate-away-from-centos7
cazlo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ build/*/*/* | |
!build/**/placeholder | ||
llama/build | ||
__debug_bin* | ||
llama/vendor | ||
llama/vendor | ||
data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
services: | ||
runtime-rocm-rootless: | ||
image: ollama/ollama:rocm | ||
profiles: | ||
- template | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
target: runtime-rocm-rootless | ||
args: | ||
RENDER_GROUP_ID: ${RENDER_GROUP_ID:-106} | ||
devices: | ||
- "/dev/kfd:/dev/kfd:rwm" | ||
- "/dev/dri:/dev/dri:rwm" | ||
# tty: true | ||
# entrypoint: | ||
# - /bin/bash | ||
ipc: host | ||
shm_size: 8GB | ||
cap_add: | ||
- SYS_PTRACE | ||
# privileged: true | ||
security_opt: | ||
- seccomp=unconfined | ||
|
||
networks: | ||
- ollama | ||
|
||
ollama: | ||
volumes: | ||
- ./data:/root/.ollama | ||
ports: | ||
- 11434:11434 | ||
extends: | ||
service: runtime-rocm-rootless | ||
profiles: | ||
- runtime | ||
|
||
stable-diffusion-webui: | ||
image: ollama/stable-diffusion-webui:rocm | ||
extends: | ||
service: runtime-rocm-rootless | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
target: stable-diffusion-webui | ||
profiles: | ||
- runtime | ||
ports: | ||
- 7860:7860 | ||
# tty: true | ||
# command: /bin/bash | ||
|
||
networks: | ||
ollama: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
11.7.1 was chosen for consistency with upstream llama.cpp. (see also ggerganov/llama.cpp@66b039a) 11.8.0 is actually latest available in the 11 major cuda version.
looking at https://docs.nvidia.com/cuda/archive/11.8.0/cuda-toolkit-release-notes/index.html, not seeing anything hugely compelling outside of rocky 9 support: