Skip to content

Commit 6bb1825

Browse files
committed
Merge branch 'iqX_k-cpu+metal' into iqX_k-cpu+metal+cuda
2 parents d81cae4 + 03c12b2 commit 6bb1825

372 files changed

Lines changed: 35866 additions & 13244 deletions

File tree

Some content is hidden

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

‎.devops/intel.Dockerfile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG ONEAPI_VERSION=2025.3.3-0-devel-ubuntu24.04
1+
ARG ONEAPI_VERSION=2026.1.1-devel-ubuntu24.04
22
ARG BUILD_DATE=N/A
33
ARG APP_VERSION=N/A
44
ARG APP_REVISION=N/A
@@ -19,7 +19,7 @@ RUN npm ci
1919
COPY tools/ui/ ./
2020
RUN LLAMA_BUILD_NUMBER="$APP_VERSION" npm run build
2121

22-
FROM docker.io/intel/deep-learning-essentials:$ONEAPI_VERSION AS build
22+
FROM docker.io/intel/oneapi-toolkit:$ONEAPI_VERSION AS build
2323

2424
ARG GGML_SYCL_F16=ON
2525
ARG LEVEL_ZERO_VERSION=1.28.2
@@ -59,7 +59,7 @@ RUN mkdir -p /app/full \
5959
&& cp requirements.txt /app/full \
6060
&& cp .devops/tools.sh /app/full/tools.sh
6161

62-
FROM docker.io/intel/deep-learning-essentials:$ONEAPI_VERSION AS base
62+
FROM docker.io/intel/oneapi-toolkit:$ONEAPI_VERSION AS base
6363

6464
ARG BUILD_DATE=N/A
6565
ARG APP_VERSION=N/A

‎.devops/musa.Dockerfile‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
ARG UBUNTU_VERSION=22.04
22
# This needs to generally match the container host's environment.
33
# Target the MUSA build image
4-
ARG BASE_MUSA_DEV_CONTAINER=registry.mthreads.com/mcconline/inference/pytorch:2.9.1.post1-py3.10-musa5.2.0-mp31-devel-ubuntu${UBUNTU_VERSION}-amd64
4+
ARG BASE_MUSA_DEV_CONTAINER=registry.mthreads.com/mcconline/musa_sdk:5.2.0-devel-ubuntu${UBUNTU_VERSION}-s5000
55

6-
ARG BASE_MUSA_RUN_CONTAINER=${BASE_MUSA_DEV_CONTAINER}
6+
ARG BASE_MUSA_RUN_CONTAINER=registry.mthreads.com/mcconline/musa_sdk:5.2.0-runtime-ubuntu${UBUNTU_VERSION}-s5000
77

88
ARG BUILD_DATE=N/A
99
ARG APP_VERSION=N/A
@@ -36,7 +36,10 @@ RUN apt-get update && \
3636
python3-pip \
3737
git \
3838
libssl-dev \
39-
libgomp1
39+
libgomp1 \
40+
musa-mualg-5-2 \
41+
musa-muthrust-5-2 \
42+
libmthreads-compute
4043

4144
WORKDIR /app
4245

@@ -79,13 +82,16 @@ LABEL org.opencontainers.image.created=$BUILD_DATE \
7982
org.opencontainers.image.source=$IMAGE_SOURCE
8083

8184
RUN apt-get update \
82-
&& apt-get install -y libgomp1 curl ffmpeg \
85+
&& apt-get install -y libgomp1 curl ffmpeg libmthreads-compute \
8386
&& apt autoremove -y \
8487
&& apt clean -y \
8588
&& rm -rf /tmp/* /var/tmp/* \
8689
&& find /var/cache/apt/archives /var/lib/apt/lists -not -name lock -type f -delete \
8790
&& find /var/cache -type f -delete
8891

92+
# The MUSA runtime image does not register its library directory
93+
RUN echo "/usr/local/musa/lib" > /etc/ld.so.conf.d/musa-runtime.conf && ldconfig
94+
8995
COPY --from=build /app/lib/ /app
9096

9197
### Full

‎.github/workflows/build-apple.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ concurrency:
3333
env:
3434
GGML_NLOOP: 3
3535
GGML_N_THREADS: 1
36+
GGML_SCHED_DEBUG_REALLOC: 1
3637
LLAMA_ARG_LOG_COLORS: 1
3738
LLAMA_ARG_LOG_PREFIX: 1
3839
LLAMA_ARG_LOG_TIMESTAMPS: 1
@@ -98,7 +99,8 @@ jobs:
9899
id: cmake_test
99100
run: |
100101
cd build
101-
ctest -L main -E "test-llama-archs" --verbose --timeout 900
102+
# ref: https://github.com/ggml-org/llama.cpp/pull/19802#issuecomment-4013704023
103+
ctest -L main -E "test-llama-archs|test-save-load-state" --verbose --timeout 900
102104
103105
macos-latest-x64:
104106
runs-on: macos-15-intel

‎.github/workflows/build-cpu.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ concurrency:
3737
env:
3838
GGML_NLOOP: 3
3939
GGML_N_THREADS: 1
40+
GGML_SCHED_DEBUG_REALLOC: 1
4041
LLAMA_ARG_LOG_COLORS: 1
4142
LLAMA_ARG_LOG_PREFIX: 1
4243
LLAMA_ARG_LOG_TIMESTAMPS: 1

‎.github/workflows/build-cuda-ubuntu.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
hf_bucket: ggml-org/cache
6969

7070
- name: Build with CMake
71-
# TODO: Remove GGML_CUDA_CUB_3DOT2 flag once CCCL 3.2 is bundled within CTK and that CTK version is used in this project
71+
# TODO: Drop GGML_CUDA_CCCL_VERSION when this job uses CTK >= 13.5, which bundles CCCL >= 3.5.
7272
run: |
7373
cmake -S . -B build -G Ninja \
7474
-DLLAMA_FATAL_WARNINGS=ON \
@@ -77,7 +77,7 @@ jobs:
7777
-DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined \
7878
-DGGML_NATIVE=OFF \
7979
-DGGML_CUDA=ON \
80-
-DGGML_CUDA_CUB_3DOT2=ON
80+
-DGGML_CUDA_CCCL_VERSION=v3.4.3
8181
cmake --build build
8282
8383
- name: ccache-buckets-save
@@ -145,7 +145,7 @@ jobs:
145145

146146
musa:
147147
runs-on: ubuntu-22.04
148-
container: registry.mthreads.com/mcconline/inference/pytorch:2.9.1.post1-py3.10-musa5.2.0-mp31-devel-ubuntu22.04-amd64
148+
container: registry.mthreads.com/mcconline/musa_sdk:5.2.0-devel-ubuntu22.04-s5000
149149

150150
steps:
151151
- name: Clone
@@ -156,7 +156,7 @@ jobs:
156156
id: depends
157157
run: |
158158
apt-get update
159-
apt-get install -y build-essential git cmake libssl-dev jq python3-venv
159+
apt-get install -y build-essential git cmake libssl-dev jq python3-venv musa-mualg-5-2 musa-muthrust-5-2 libmthreads-compute
160160
161161
- name: ccache
162162
uses: ggml-org/ccache-action@v1.2.24

‎.github/workflows/build-cuda-windows.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,16 @@ jobs:
3131
strategy:
3232
matrix:
3333
include:
34+
# CTK >= 13.5 bundles CCCL >= 3.5; omit GGML_CUDA_CCCL_VERSION for those versions.
3435
- cuda: '12.4'
3536
arch: x64
36-
defines: '-DGGML_CUDA_CUB_3DOT2=ON'
37+
defines: '-DGGML_CUDA_CCCL_VERSION=v3.4.3'
3738
- cuda: '13.4'
3839
arch: x64
39-
defines: ''
40+
defines: '-DGGML_CUDA_CCCL_VERSION=v3.4.3'
4041
- cuda: '13.4'
4142
arch: arm64
42-
defines: '-DCMAKE_TOOLCHAIN_FILE=cmake/arm64-windows-msvc-cuda.cmake'
43+
defines: '-DGGML_CUDA_CCCL_VERSION=v3.4.3 -DCMAKE_TOOLCHAIN_FILE=cmake/arm64-windows-msvc-cuda.cmake'
4344

4445
steps:
4546
- name: Clone

‎.github/workflows/build-ibm.yml‎

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ on:
1919
types: [opened, synchronize, reopened]
2020
paths: [
2121
'.github/workflows/build-ibm.yml',
22-
'ggml/src/ggml-cpu/**'
22+
'ggml/src/ggml-cpu/**',
23+
'ggml/src/ggml-zdnn/**'
2324
]
2425

2526
concurrency:
@@ -100,6 +101,46 @@ jobs:
100101
wget https://huggingface.co/ggml-org/models/resolve/main/tinyllamas/stories260K-be.gguf
101102
./bin/llama-completion -m stories260K-be.gguf -p "One day, Lily met a Shoggoth" -n 500 -c 256
102103
104+
ubuntu-26-zdnn-s390x:
105+
name: ubuntu-26-zdnn-s390x
106+
runs-on: ubuntu-24.04-s390x
107+
container: ubuntu:26.04 # required to get GCC 15.1 and binutils 2.44
108+
defaults:
109+
run:
110+
shell: bash
111+
112+
steps:
113+
- name: Build Dependencies
114+
id: build_depends
115+
run: |
116+
apt-get update
117+
apt-get install -y --no-install-recommends \
118+
build-essential cmake git ca-certificates \
119+
libssl-dev libzdnn-dev
120+
121+
- name: Clone
122+
id: checkout
123+
uses: actions/checkout@v6
124+
125+
- name: Toolchain workaround (GCC 15)
126+
run: |
127+
apt-get install -y gcc-15 g++-15
128+
echo "CC=gcc-15" >> "$GITHUB_ENV"
129+
echo "CXX=g++-15" >> "$GITHUB_ENV"
130+
131+
- name: Build with zDNN Backend
132+
id: cmake_build
133+
run: |
134+
cmake -B build \
135+
-DLLAMA_FATAL_WARNINGS=ON \
136+
-DGGML_NATIVE=OFF \
137+
-DGGML_VXE=ON \
138+
-DGGML_ZDNN=ON \
139+
-DGGML_RPC=ON \
140+
-DCMAKE_C_FLAGS="-march=arch15" \
141+
-DCMAKE_CXX_FLAGS="-march=arch15"
142+
time cmake --build build --config Release -j $(nproc)
143+
103144
ubuntu-24-ppc64le:
104145
runs-on: ubuntu-24.04-ppc64le
105146

‎.github/workflows/build-sycl.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
env:
5050
ONEAPI_ROOT: /opt/intel/oneapi/
51-
ONEAPI_INSTALLER_VERSION: "2025.3.3"
51+
ONEAPI_INSTALLER_VERSION: "2026.1"
5252
LEVEL_ZERO_VERSION: "1.33.1"
5353
LEVEL_ZERO_UBUNTU_VERSION: "u24.04"
5454

@@ -63,8 +63,8 @@ jobs:
6363
shell: bash
6464
run: |
6565
cd /tmp
66-
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/56f7923a-adb8-43f3-8b02-2b60fcac8cab/intel-deep-learning-essentials-2025.3.3.16_offline.sh -O intel-deep-learning-essentials_offline.sh
67-
sudo bash intel-deep-learning-essentials_offline.sh -s -a --silent --eula accept
66+
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/5996e26b-f48a-42b1-8db0-b002ad0bd8d7/intel-oneapi-toolkit-2026.1.1.33_offline.sh -O intel-oneapi-toolkit_offline.sh
67+
sudo bash intel-oneapi-toolkit_offline.sh -s -a --silent --eula accept
6868
6969
- name: Install Level Zero SDK
7070
shell: bash
@@ -129,11 +129,11 @@ jobs:
129129
shell: bash
130130

131131
env:
132-
WINDOWS_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b60765d1-2b85-4e85-86b6-cb0e9563a699/intel-deep-learning-essentials-2025.3.3.18_offline.exe
132+
WINDOWS_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/0cb67a0d-67f6-410b-868b-f4a0a17ff0cf/intel-oneapi-toolkit-2026.1.1.32_offline.exe
133133
WINDOWS_DPCPP_MKL: intel.oneapi.win.cpp-dpcpp-common:intel.oneapi.win.mkl.devel:intel.oneapi.win.dnnl:intel.oneapi.win.tbb.devel
134134
LEVEL_ZERO_SDK_URL: https://github.com/oneapi-src/level-zero/releases/download/v1.33.1/level-zero-win-sdk-1.33.1.zip
135135
ONEAPI_ROOT: "C:/Program Files (x86)/Intel/oneAPI"
136-
ONEAPI_INSTALLER_VERSION: "2025.3.3"
136+
ONEAPI_INSTALLER_VERSION: "2026.1"
137137
steps:
138138
- name: Clone
139139
id: checkout

‎.github/workflows/build-vulkan.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ concurrency:
3131
env:
3232
GGML_NLOOP: 3
3333
GGML_N_THREADS: 1
34+
GGML_SCHED_DEBUG_REALLOC: 1
3435
LLAMA_ARG_LOG_COLORS: 1
3536
LLAMA_ARG_LOG_PREFIX: 1
3637
LLAMA_ARG_LOG_TIMESTAMPS: 1

‎.github/workflows/ci-self-hosted-cuda.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ env:
4545

4646
jobs:
4747
gpu-cuda:
48-
runs-on: "hf-jobs-t4-small:cuda13"
48+
runs-on: "hf-jobs-t4-medium:cuda13"
4949

5050
steps:
5151
- name: Clone

0 commit comments

Comments
 (0)