+100
-100
@@ -1285,123 +1285,123 @@ jobs:
|
|||||||
path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-sycl-${{ matrix.build }}-x64.tar.gz
|
path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-sycl-${{ matrix.build }}-x64.tar.gz
|
||||||
name: llama-bin-ubuntu-sycl-${{ matrix.build }}-x64.tar.gz
|
name: llama-bin-ubuntu-sycl-${{ matrix.build }}-x64.tar.gz
|
||||||
|
|
||||||
ubuntu-22-rocm:
|
# ubuntu-22-rocm:
|
||||||
needs: [check-release, get-version]
|
# needs: [check-release, get-version]
|
||||||
if: ${{ needs.check-release.outputs.should_release == 'true' }}
|
# if: ${{ needs.check-release.outputs.should_release == 'true' }}
|
||||||
|
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
|
|
||||||
permissions:
|
# permissions:
|
||||||
actions: write
|
# actions: write
|
||||||
|
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
include:
|
# include:
|
||||||
- ROCM_VERSION: "7.14.0"
|
# - ROCM_VERSION: "7.14.0"
|
||||||
gpu_targets: "gfx908;gfx90a;gfx942;gfx950;gfx1010;gfx1011;gfx1012;gfx1030;gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036;gfx1100;gfx1101;gfx1102;gfx1150;gfx1151;gfx1152;gfx1200;gfx1201"
|
# gpu_targets: "gfx908;gfx90a;gfx942;gfx950;gfx1010;gfx1011;gfx1012;gfx1030;gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036;gfx1100;gfx1101;gfx1102;gfx1150;gfx1151;gfx1152;gfx1200;gfx1201"
|
||||||
build: 'x64'
|
# build: 'x64'
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Clone
|
# - name: Clone
|
||||||
id: checkout
|
# id: checkout
|
||||||
uses: actions/checkout@v6
|
# uses: actions/checkout@v6
|
||||||
with:
|
# with:
|
||||||
fetch-depth: 0
|
# fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Node.js
|
# - name: Setup Node.js
|
||||||
uses: actions/setup-node@v6
|
# uses: actions/setup-node@v6
|
||||||
with:
|
# with:
|
||||||
node-version: "24"
|
# node-version: "24"
|
||||||
cache: "npm"
|
# cache: "npm"
|
||||||
cache-dependency-path: "tools/ui/package-lock.json"
|
# cache-dependency-path: "tools/ui/package-lock.json"
|
||||||
|
|
||||||
- name: Free up disk space
|
# - name: Free up disk space
|
||||||
uses: ggml-org/free-disk-space@v1.3.1
|
# uses: ggml-org/free-disk-space@v1.3.1
|
||||||
with:
|
# with:
|
||||||
tool-cache: true
|
# tool-cache: true
|
||||||
|
|
||||||
# - name: ccache
|
# # - name: ccache
|
||||||
# uses: ggml-org/ccache-action@v1.2.21
|
# # uses: ggml-org/ccache-action@v1.2.21
|
||||||
# with:
|
# # with:
|
||||||
# key: release-ubuntu-22.04-rocm-${{ matrix.ROCM_VERSION }}
|
# # key: release-ubuntu-22.04-rocm-${{ matrix.ROCM_VERSION }}
|
||||||
|
|
||||||
- name: Dependencies
|
# - name: Dependencies
|
||||||
id: depends
|
# id: depends
|
||||||
run: |
|
# run: |
|
||||||
sudo apt install -y build-essential git cmake wget
|
# sudo apt install -y build-essential git cmake wget
|
||||||
|
|
||||||
- name: Setup TheRock with Wheels
|
# - name: Setup TheRock with Wheels
|
||||||
id: therock_env
|
# id: therock_env
|
||||||
run: |
|
# run: |
|
||||||
# Create Python virtual environment
|
# # Create Python virtual environment
|
||||||
python3 -m venv .venv
|
# python3 -m venv .venv
|
||||||
source .venv/bin/activate
|
# source .venv/bin/activate
|
||||||
|
|
||||||
# Install ROCm wheels for build
|
# # Install ROCm wheels for build
|
||||||
# libraries = HIP runtime and CMake configs needed for linking
|
# # libraries = HIP runtime and CMake configs needed for linking
|
||||||
# devel = compilers, headers, static libs
|
# # devel = compilers, headers, static libs
|
||||||
python -m pip install --upgrade pip
|
# python -m pip install --upgrade pip
|
||||||
python -m pip install --index-url https://repo.amd.com/rocm/whl-multi-arch/ "rocm[libraries,devel]==${{ matrix.ROCM_VERSION }}"
|
# python -m pip install --index-url https://repo.amd.com/rocm/whl-multi-arch/ "rocm[libraries,devel]==${{ matrix.ROCM_VERSION }}"
|
||||||
|
|
||||||
# Get ROCm installation paths using the rocm-sdk CLI tool
|
# # Get ROCm installation paths using the rocm-sdk CLI tool
|
||||||
ROCM_PATH=$(rocm-sdk path --root)
|
# ROCM_PATH=$(rocm-sdk path --root)
|
||||||
CMAKE_PATH=$(rocm-sdk path --cmake)
|
# CMAKE_PATH=$(rocm-sdk path --cmake)
|
||||||
BIN_PATH=$(rocm-sdk path --bin)
|
# BIN_PATH=$(rocm-sdk path --bin)
|
||||||
echo "ROCM_PATH=$ROCM_PATH"
|
# echo "ROCM_PATH=$ROCM_PATH"
|
||||||
echo "CMAKE_PATH=$CMAKE_PATH"
|
# echo "CMAKE_PATH=$CMAKE_PATH"
|
||||||
echo "BIN_PATH=$BIN_PATH"
|
# echo "BIN_PATH=$BIN_PATH"
|
||||||
|
|
||||||
# Set environment variables
|
# # Set environment variables
|
||||||
echo "ROCM_PATH=$ROCM_PATH" >> $GITHUB_ENV
|
# echo "ROCM_PATH=$ROCM_PATH" >> $GITHUB_ENV
|
||||||
echo "CMAKE_PREFIX_PATH=$CMAKE_PATH" >> $GITHUB_ENV
|
# echo "CMAKE_PREFIX_PATH=$CMAKE_PATH" >> $GITHUB_ENV
|
||||||
echo "HIP_PATH=$ROCM_PATH" >> $GITHUB_ENV
|
# echo "HIP_PATH=$ROCM_PATH" >> $GITHUB_ENV
|
||||||
echo "PATH=$BIN_PATH:${PATH}" >> $GITHUB_ENV
|
# echo "PATH=$BIN_PATH:${PATH}" >> $GITHUB_ENV
|
||||||
echo "LD_LIBRARY_PATH=$ROCM_PATH/lib:${LD_LIBRARY_PATH:-}" >> $GITHUB_ENV
|
# echo "LD_LIBRARY_PATH=$ROCM_PATH/lib:${LD_LIBRARY_PATH:-}" >> $GITHUB_ENV
|
||||||
|
|
||||||
# Keep venv activated for subsequent steps
|
# # Keep venv activated for subsequent steps
|
||||||
echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
|
# echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Build with native CMake HIP support
|
# - name: Build with native CMake HIP support
|
||||||
id: cmake_build
|
# id: cmake_build
|
||||||
run: |
|
# run: |
|
||||||
cmake -B build -S . \
|
# cmake -B build -S . \
|
||||||
-DCMAKE_HIP_COMPILER="$(hipconfig -l)/clang" \
|
# -DCMAKE_HIP_COMPILER="$(hipconfig -l)/clang" \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
# -DCMAKE_BUILD_TYPE=Release \
|
||||||
-DGGML_BACKEND_DL=ON \
|
# -DGGML_BACKEND_DL=ON \
|
||||||
-DGGML_NATIVE=OFF \
|
# -DGGML_NATIVE=OFF \
|
||||||
-DCMAKE_INSTALL_RPATH='$ORIGIN' \
|
# -DCMAKE_INSTALL_RPATH='$ORIGIN' \
|
||||||
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
|
# -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
|
||||||
-DGGML_CPU_ALL_VARIANTS=ON \
|
# -DGGML_CPU_ALL_VARIANTS=ON \
|
||||||
-DGPU_TARGETS="${{ matrix.gpu_targets }}" \
|
# -DGPU_TARGETS="${{ matrix.gpu_targets }}" \
|
||||||
-DGGML_HIP=ON \
|
# -DGGML_HIP=ON \
|
||||||
-DHIP_PLATFORM=amd \
|
# -DHIP_PLATFORM=amd \
|
||||||
-DHF_UI_VERSION=${{ needs.get-version.outputs.ui_version }} \
|
# -DHF_UI_VERSION=${{ needs.get-version.outputs.ui_version }} \
|
||||||
${{ env.CMAKE_ARGS }}
|
# ${{ env.CMAKE_ARGS }}
|
||||||
cmake --build build --config Release -j $(nproc)
|
# cmake --build build --config Release -j $(nproc)
|
||||||
|
|
||||||
# - name: ccache-clear
|
# # - name: ccache-clear
|
||||||
# uses: ./.github/actions/ccache-clear
|
# # uses: ./.github/actions/ccache-clear
|
||||||
# with:
|
# # with:
|
||||||
# key: release-ubuntu-22.04-rocm-${{ matrix.ROCM_VERSION }}
|
# # key: release-ubuntu-22.04-rocm-${{ matrix.ROCM_VERSION }}
|
||||||
|
|
||||||
- name: Determine tag name
|
# - name: Determine tag name
|
||||||
id: tag
|
# id: tag
|
||||||
uses: ./.github/actions/get-tag-name
|
# uses: ./.github/actions/get-tag-name
|
||||||
|
|
||||||
- name: Get ROCm short version
|
# - name: Get ROCm short version
|
||||||
run: echo "ROCM_VERSION_SHORT=$(echo '${{ matrix.ROCM_VERSION }}' | cut -d '.' -f 1,2)" >> $GITHUB_ENV
|
# run: echo "ROCM_VERSION_SHORT=$(echo '${{ matrix.ROCM_VERSION }}' | cut -d '.' -f 1,2)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Pack artifacts
|
# - name: Pack artifacts
|
||||||
id: pack_artifacts
|
# id: pack_artifacts
|
||||||
run: |
|
# run: |
|
||||||
cp LICENSE ./build/bin/
|
# cp LICENSE ./build/bin/
|
||||||
tar -czvf llama-${{ steps.tag.outputs.name }}-bin-ubuntu-rocm-${{ env.ROCM_VERSION_SHORT }}-${{ matrix.build }}.tar.gz --transform "s,^\.,llama-${{ steps.tag.outputs.name }}," -C ./build/bin .
|
# tar -czvf llama-${{ steps.tag.outputs.name }}-bin-ubuntu-rocm-${{ env.ROCM_VERSION_SHORT }}-${{ matrix.build }}.tar.gz --transform "s,^\.,llama-${{ steps.tag.outputs.name }}," -C ./build/bin .
|
||||||
|
|
||||||
- name: Upload artifacts
|
# - name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v6
|
# uses: actions/upload-artifact@v6
|
||||||
with:
|
# with:
|
||||||
path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-rocm-${{ env.ROCM_VERSION_SHORT }}-${{ matrix.build }}.tar.gz
|
# path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-rocm-${{ env.ROCM_VERSION_SHORT }}-${{ matrix.build }}.tar.gz
|
||||||
name: llama-bin-ubuntu-rocm-${{ env.ROCM_VERSION_SHORT }}-${{ matrix.build }}.tar.gz
|
# name: llama-bin-ubuntu-rocm-${{ env.ROCM_VERSION_SHORT }}-${{ matrix.build }}.tar.gz
|
||||||
|
|
||||||
ios-xcode:
|
ios-xcode:
|
||||||
needs: [check-release, get-version]
|
needs: [check-release, get-version]
|
||||||
@@ -1578,7 +1578,7 @@ jobs:
|
|||||||
#- windows-sycl
|
#- windows-sycl
|
||||||
- windows-rocm
|
- windows-rocm
|
||||||
- windows-openvino
|
- windows-openvino
|
||||||
- ubuntu-22-rocm
|
#- ubuntu-22-rocm
|
||||||
- ubuntu-cpu
|
- ubuntu-cpu
|
||||||
- ubuntu-vulkan
|
- ubuntu-vulkan
|
||||||
- ubuntu-24-openvino
|
- ubuntu-24-openvino
|
||||||
@@ -1688,7 +1688,7 @@ jobs:
|
|||||||
- [Ubuntu s390x (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-s390x.tar.gz)
|
- [Ubuntu s390x (CPU)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-s390x.tar.gz)
|
||||||
- [Ubuntu x64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-vulkan-x64.tar.gz)
|
- [Ubuntu x64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-vulkan-x64.tar.gz)
|
||||||
- [Ubuntu arm64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-vulkan-arm64.tar.gz)
|
- [Ubuntu arm64 (Vulkan)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-vulkan-arm64.tar.gz)
|
||||||
- [Ubuntu x64 (ROCm 7.14)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-rocm-7.14-x64.tar.gz)
|
- Ubuntu x64 (ROCm 7.14)[DISABLED](https://github.com/ggml-org/llama.cpp/pull/26969)
|
||||||
- [Ubuntu x64 (OpenVINO)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-openvino-${{ needs.ubuntu-24-openvino.outputs.openvino_version }}-x64.tar.gz)
|
- [Ubuntu x64 (OpenVINO)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-openvino-${{ needs.ubuntu-24-openvino.outputs.openvino_version }}-x64.tar.gz)
|
||||||
- [Ubuntu x64 (SYCL FP32)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-sycl-fp32-x64.tar.gz)
|
- [Ubuntu x64 (SYCL FP32)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-sycl-fp32-x64.tar.gz)
|
||||||
- [Ubuntu x64 (SYCL FP16)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-sycl-fp16-x64.tar.gz)
|
- [Ubuntu x64 (SYCL FP16)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-ubuntu-sycl-fp16-x64.tar.gz)
|
||||||
|
|||||||
Reference in New Issue
Block a user