Skip to content

Commit b670c83

Browse files
committed
Merge remote-tracking branch 'ggml-org/master' into feature/turboquant-kv-cache
2 parents 883bf4a + 400ac8e commit b670c83

41 files changed

Lines changed: 1516 additions & 910 deletions

Some content is hidden

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

.github/workflows/build-riscv.yml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ env:
3535

3636
jobs:
3737
ubuntu-riscv64-native-sanitizer:
38-
runs-on: RISCV64
38+
runs-on: ubuntu-24.04-riscv
3939

4040
continue-on-error: true
4141

@@ -50,17 +50,18 @@ jobs:
5050
sudo apt-get update
5151
5252
# Install necessary packages
53-
sudo apt-get install -y libatomic1 libtsan2 gcc-14 g++-14 rustup cmake build-essential wget ccache git-lfs
53+
sudo apt-get install -y libatomic1 libtsan2 gcc-14 g++-14 cmake build-essential wget git-lfs
5454
5555
# Set gcc-14 and g++-14 as the default compilers
5656
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100
5757
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100
58-
sudo ln -sf /usr/bin/gcc-14 /usr/bin/gcc
59-
sudo ln -sf /usr/bin/g++-14 /usr/bin/g++
6058
61-
# Install Rust stable version
62-
rustup install stable
63-
rustup default stable
59+
if ! which rustc; then
60+
# Install Rust stable version
61+
sudo apt-get install -y rustup
62+
rustup install stable
63+
rustup default stable
64+
fi
6465
6566
git lfs install
6667
@@ -73,23 +74,12 @@ jobs:
7374
id: checkout
7475
uses: actions/checkout@v6
7576

76-
- name: Setup ccache
77-
run: |
78-
# Unique cache directory per matrix combination
79-
export CCACHE_DIR="$HOME/.ccache/sanitizer-${{ matrix.sanitizer }}-${{ matrix.build_type }}"
80-
mkdir -p "$CCACHE_DIR"
81-
82-
# Configure ccache
83-
ccache --set-config=max_size=5G
84-
ccache --set-config=compression=true
85-
ccache --set-config=compression_level=6
86-
ccache --set-config=cache_dir="$CCACHE_DIR"
87-
ccache --set-config=sloppiness=file_macro,time_macros,include_file_mtime,include_file_ctime
88-
ccache --set-config=hash_dir=false
89-
90-
# Export for subsequent steps
91-
echo "CCACHE_DIR=$CCACHE_DIR" >> $GITHUB_ENV
92-
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
77+
# FIXME: Enable when ggml-org/ccache-action works on riscv64
78+
# - name: ccache
79+
# uses: ggml-org/ccache-action@v1.2.21
80+
# with:
81+
# key: ubuntu-riscv64-native-sanitizer-${{ matrix.sanytizer }}-${{ matrix.build_type }}
82+
# save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
9383

9484
- name: Build
9585
id: cmake_build

.github/workflows/build-vulkan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272

7373
- name: Setup Vulkan SDK
7474
if: steps.cache-sdk.outputs.cache-hit != 'true'
75-
uses: ./.github/actions/linux-setup-vulkan-llvmpipe
75+
uses: ./.github/actions/linux-setup-vulkan
7676
with:
7777
path: ./vulkan_sdk
7878
version: ${{ env.VULKAN_SDK_VERSION }}

.github/workflows/build.yml

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -996,32 +996,29 @@ jobs:
996996
cmake --build build -j ${env:NUMBER_OF_PROCESSORS}
997997
998998
ubuntu-cpu-riscv64-native:
999-
runs-on: RISCV64
999+
runs-on: ubuntu-24.04-riscv
10001000

10011001
steps:
10021002
- name: Install dependencies
10031003
run: |
10041004
sudo apt-get update
10051005
10061006
# Install necessary packages
1007-
sudo apt-get install -y libatomic1 libtsan2 gcc-14 g++-14 rustup cmake build-essential libssl-dev wget ccache git-lfs
1007+
sudo apt-get install -y libatomic1 libtsan2 gcc-14 g++-14 cmake build-essential libssl-dev wget git-lfs
10081008
10091009
# Set gcc-14 and g++-14 as the default compilers
10101010
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100
10111011
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100
1012-
sudo ln -sf /usr/bin/gcc-14 /usr/bin/gcc
1013-
sudo ln -sf /usr/bin/g++-14 /usr/bin/g++
10141012
1015-
# Install Rust stable version
1016-
rustup install stable
1017-
rustup default stable
1013+
if ! which rustc; then
1014+
# Install Rust stable version
1015+
sudo apt-get install -y rustup
1016+
rustup install stable
1017+
rustup default stable
1018+
fi
10181019
10191020
git lfs install
10201021
1021-
- name: Clone
1022-
id: checkout
1023-
uses: actions/checkout@v6
1024-
10251022
- name: Check environment
10261023
run: |
10271024
uname -a
@@ -1031,25 +1028,17 @@ jobs:
10311028
cmake --version
10321029
rustc --version
10331030
1034-
- name: Setup ccache
1035-
run: |
1036-
# Set unique cache directory for this job
1037-
export CCACHE_DIR="$HOME/.ccache/cpu-cmake-rv64-native"
1038-
mkdir -p "$CCACHE_DIR"
1039-
1040-
# Configure ccache for optimal performance
1041-
ccache --set-config=max_size=5G
1042-
ccache --set-config=compression=true
1043-
ccache --set-config=compression_level=6
1044-
ccache --set-config=cache_dir="$CCACHE_DIR"
1045-
1046-
# Enable more aggressive caching
1047-
ccache --set-config=sloppiness=file_macro,time_macros,include_file_mtime,include_file_ctime
1048-
ccache --set-config=hash_dir=false
1031+
- name: Clone
1032+
id: checkout
1033+
uses: actions/checkout@v6
10491034

1050-
# Export for subsequent steps
1051-
echo "CCACHE_DIR=$CCACHE_DIR" >> $GITHUB_ENV
1052-
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
1035+
# FIXME: Enable when ggml-org/ccache-action works on riscv64
1036+
# - name: ccache
1037+
# uses: ggml-org/ccache-action@v1.2.21
1038+
# with:
1039+
# key: ubuntu-cpu-riscv64-native
1040+
# evict-old-files: 1d
1041+
# save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
10531042

10541043
- name: Build
10551044
id: cmake_build

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ jobs:
7373
{ "tag": "cpu", "dockerfile": ".devops/cpu.Dockerfile", "platforms": "linux/amd64", "full": true, "light": true, "server": true, "free_disk_space": false, "runs_on": "ubuntu-24.04" },
7474
{ "tag": "cpu", "dockerfile": ".devops/cpu.Dockerfile", "platforms": "linux/arm64", "full": true, "light": true, "server": true, "free_disk_space": false, "runs_on": "ubuntu-24.04-arm" },
7575
{ "tag": "cpu", "dockerfile": ".devops/s390x.Dockerfile", "platforms": "linux/s390x", "full": true, "light": true, "server": true, "free_disk_space": false, "runs_on": "ubuntu-24.04-s390x" },
76-
{ "tag": "cuda cuda12", "dockerfile": ".devops/cuda.Dockerfile", "cuda_version": "12.9.1", "platforms": "linux/amd64", "full": true, "light": true, "server": true, "free_disk_space": true, "runs_on": "ubuntu-24.04" },
77-
{ "tag": "cuda cuda12", "dockerfile": ".devops/cuda.Dockerfile", "cuda_version": "12.9.1", "platforms": "linux/arm64", "full": true, "light": true, "server": true, "free_disk_space": true, "runs_on": "ubuntu-24.04-arm" },
76+
{ "tag": "cuda cuda12", "dockerfile": ".devops/cuda.Dockerfile", "cuda_version": "12.8.1", "platforms": "linux/amd64", "full": true, "light": true, "server": true, "free_disk_space": true, "runs_on": "ubuntu-24.04" },
77+
{ "tag": "cuda cuda12", "dockerfile": ".devops/cuda.Dockerfile", "cuda_version": "12.8.1", "platforms": "linux/arm64", "full": true, "light": true, "server": true, "free_disk_space": true, "runs_on": "ubuntu-24.04-arm" },
7878
{ "tag": "cuda13", "dockerfile": ".devops/cuda.Dockerfile", "cuda_version": "13.1.1", "platforms": "linux/amd64", "full": true, "light": true, "server": true, "free_disk_space": true, "runs_on": "ubuntu-24.04" },
7979
{ "tag": "cuda13", "dockerfile": ".devops/cuda.Dockerfile", "cuda_version": "13.1.1", "platforms": "linux/arm64", "full": true, "light": true, "server": true, "free_disk_space": true, "runs_on": "ubuntu-24.04-arm" },
8080
{ "tag": "musa", "dockerfile": ".devops/musa.Dockerfile", "platforms": "linux/amd64", "full": true, "light": true, "server": true, "free_disk_space": true, "runs_on": "ubuntu-24.04" },

0 commit comments

Comments
 (0)