Skip to content

Commit 9496871

Browse files
committed
Merge branch 'feat/1' of github.com:skyne98/llama.cpp-gfx906 into feat/1
2 parents d57ad8d + 7e7516f commit 9496871

File tree

601 files changed

+1039
-201939
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

601 files changed

+1039
-201939
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,8 @@ poetry.toml
148148
/run-vim.sh
149149
/run-chat.sh
150150

151-
.specstory
151+
.specstory
152+
153+
# Model files
154+
models/
155+
*.gguf

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "ggml"]
2+
path = ggml
3+
url = https://github.com/skyne98/ggml-gfx906

Dockerfile.gfx906

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Optimized Docker image for GFX906 (AMD Instinct MI50) development
2-
ARG ROCM_VERSION=5.7.3
2+
ARG ROCM_VERSION=6.2
33
ARG UBUNTU_VERSION=22.04
44

55
# Development base with all ROCm tools
6-
FROM rocm/dev-ubuntu-${UBUNTU_VERSION}:${ROCM_VERSION}-complete AS dev-base
6+
FROM rocm/dev-ubuntu-${UBUNTU_VERSION}:${ROCM_VERSION} AS dev-base
77

88
# Set GFX906-specific environment
99
ENV AMDGPU_TARGETS=gfx906 \

Dockerfile.gfx906-test

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Quick test Docker image for GFX906
2+
FROM rocm/dev-ubuntu-22.04:6.2
3+
4+
# Set GFX906 environment
5+
ENV AMDGPU_TARGETS=gfx906 \
6+
HSA_OVERRIDE_GFX_VERSION=9.0.6 \
7+
ROCM_PATH=/opt/rocm \
8+
PATH=${ROCM_PATH}/bin:$PATH \
9+
LD_LIBRARY_PATH=${ROCM_PATH}/lib:${ROCM_PATH}/lib64:$LD_LIBRARY_PATH
10+
11+
# Install minimal dependencies
12+
RUN apt-get update && apt-get install -y \
13+
build-essential \
14+
cmake \
15+
git \
16+
&& rm -rf /var/lib/apt/lists/*
17+
18+
# Set working directory
19+
WORKDIR /workspace
20+
21+
# Copy the project
22+
COPY . /workspace/llama.cpp-gfx906/
23+
24+
# Build the project
25+
WORKDIR /workspace/llama.cpp-gfx906
26+
RUN cmake -B build -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx906 && \
27+
cmake --build build --config Release -j$(nproc)
28+
29+
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)