Skip to content

Commit fe7ad85

Browse files
committed
[Amir] only building -cpu variants
1 parent 495ca1c commit fe7ad85

File tree

1 file changed

+18
-109
lines changed

1 file changed

+18
-109
lines changed

.github/workflows/llama-server.yml

Lines changed: 18 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -7,47 +7,6 @@ on:
77
description: 'Create new release'
88
required: true
99
type: boolean
10-
# Build control flags - can override defaults set below
11-
enable_ubuntu_cuda:
12-
description: 'Enable Ubuntu CUDA builds'
13-
required: false
14-
type: boolean
15-
default: true
16-
enable_ubuntu_vulkan:
17-
description: 'Enable Ubuntu Vulkan builds'
18-
required: false
19-
type: boolean
20-
default: false
21-
enable_ubuntu_hip:
22-
description: 'Enable Ubuntu HIP builds'
23-
required: false
24-
type: boolean
25-
default: false
26-
enable_windows_cuda:
27-
description: 'Enable Windows CUDA builds'
28-
required: false
29-
type: boolean
30-
default: true
31-
enable_windows_vulkan:
32-
description: 'Enable Windows Vulkan builds'
33-
required: false
34-
type: boolean
35-
default: false
36-
enable_windows_kompute:
37-
description: 'Enable Windows Kompute builds'
38-
required: false
39-
type: boolean
40-
default: false
41-
enable_windows_sycl:
42-
description: 'Enable Windows SYCL builds'
43-
required: false
44-
type: boolean
45-
default: false
46-
enable_windows_hip:
47-
description: 'Enable Windows HIP builds'
48-
required: false
49-
type: boolean
50-
default: false
5110
push:
5211

5312
concurrency:
@@ -61,64 +20,18 @@ permissions:
6120

6221
env:
6322
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
64-
# Build control configuration - modify these to enable/disable builds for push events
65-
# Set to 'true' to enable, 'false' to disable
66-
ENABLE_MACOS_ARM64: 'true'
67-
ENABLE_MACOS_ARM64_METAL: 'true'
68-
ENABLE_UBUNTU_CPU: 'true'
69-
ENABLE_UBUNTU_CUDA: 'false'
70-
ENABLE_UBUNTU_VULKAN: 'false'
71-
ENABLE_UBUNTU_HIP: 'false'
72-
ENABLE_UBUNTU_MUSA: 'false'
73-
ENABLE_UBUNTU_SYCL: 'false'
74-
ENABLE_WINDOWS_CPU: 'true'
75-
ENABLE_WINDOWS_CUDA: 'false'
76-
ENABLE_WINDOWS_VULKAN: 'false'
77-
ENABLE_WINDOWS_KOMPUTE: 'false'
78-
ENABLE_WINDOWS_SYCL: 'false'
79-
ENABLE_WINDOWS_HIP: 'false'
8023

8124
jobs:
82-
macos-arm64-cpu:
83-
runs-on: macos-14
84-
if: ${{ github.event_name == 'push' && env.ENABLE_MACOS_ARM64 == 'true' }}
85-
86-
steps:
87-
- name: Clone
88-
uses: actions/checkout@v4
89-
with:
90-
fetch-depth: 0
91-
92-
- name: Dependencies
93-
continue-on-error: true
94-
run: |
95-
brew update
96-
97-
- name: Build
98-
run: |
99-
cmake -B build \
100-
-DCMAKE_BUILD_TYPE=Release \
101-
-DLLAMA_FATAL_WARNINGS=OFF \
102-
-DLLAMA_CURL=OFF \
103-
-DBUILD_SHARED_LIBS=OFF \
104-
-DGGML_METAL=OFF
105-
cmake --build build --target llama-server -j $(sysctl -n hw.logicalcpu)
106-
107-
- name: Upload artifacts
108-
uses: actions/upload-artifact@v4
109-
with:
110-
name: llama-server--aarch64-apple-darwin--cpu
111-
path: build/bin/llama-server
112-
113-
macos-arm64-metal:
25+
macos-arm64:
11426
runs-on: macos-14
115-
if: ${{ github.event_name == 'push' && env.ENABLE_MACOS_ARM64_METAL == 'true' }}
11627
strategy:
11728
matrix:
11829
variant: [metal, cpu]
11930
include:
12031
- variant: metal
12132
cmake_flags: >-
33+
-DGGML_METAL=ON
34+
-DGGML_METAL_EMBED_LIBRARY=ON
12235
- variant: cpu
12336
cmake_flags: >-
12437
-DGGML_METAL=OFF
@@ -141,19 +54,17 @@ jobs:
14154
-DLLAMA_FATAL_WARNINGS=OFF \
14255
-DLLAMA_CURL=OFF \
14356
-DBUILD_SHARED_LIBS=OFF \
144-
-DGGML_METAL=ON \
145-
-DGGML_METAL_EMBED_LIBRARY=ON
57+
${{ matrix.cmake_flags }}
14658
cmake --build build --target llama-server -j $(sysctl -n hw.logicalcpu)
14759
14860
- name: Upload artifacts
14961
uses: actions/upload-artifact@v4
15062
with:
151-
name: llama-server--aarch64-apple-darwin--metal
63+
name: llama-server--aarch64-apple-darwin--${{ matrix.variant }}
15264
path: build/bin/llama-server
15365

15466
ubuntu-cpu:
15567
runs-on: ubuntu-22.04
156-
if: ${{ github.event_name == 'push' && env.ENABLE_UBUNTU_CPU == 'true' }}
15768
steps:
15869
- name: Clone
15970
uses: actions/checkout@v4
@@ -181,9 +92,9 @@ jobs:
18192
path: build/bin/llama-server
18293

18394
ubuntu-cuda:
95+
if: false
18496
runs-on: ubuntu-latest
18597
container: nvidia/cuda:12.6.2-devel-ubuntu24.04
186-
if: ${{ (github.event_name == 'push' && env.ENABLE_UBUNTU_CUDA == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_ubuntu_cuda) }}
18798
steps:
18899
- name: Clone
189100
uses: actions/checkout@v4
@@ -216,7 +127,7 @@ jobs:
216127

217128
ubuntu-vulkan:
218129
runs-on: ubuntu-22.04
219-
if: ${{ (github.event_name == 'push' && env.ENABLE_UBUNTU_VULKAN == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_ubuntu_vulkan) }}
130+
if: false
220131
steps:
221132
- name: Clone
222133
uses: actions/checkout@v4
@@ -247,7 +158,7 @@ jobs:
247158
ubuntu-hip:
248159
runs-on: ubuntu-22.04
249160
container: rocm/dev-ubuntu-22.04:6.0.2
250-
if: ${{ (github.event_name == 'push' && env.ENABLE_UBUNTU_HIP == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_ubuntu_hip) }}
161+
if: false
251162
strategy:
252163
matrix:
253164
build: ['native', 'legacy']
@@ -286,7 +197,7 @@ jobs:
286197
ubuntu-musa:
287198
runs-on: ubuntu-22.04
288199
container: mthreads/musa:rc3.1.0-devel-ubuntu22.04
289-
if: ${{ github.event_name == 'push' && env.ENABLE_UBUNTU_MUSA == 'true' }}
200+
if: false
290201
steps:
291202
- name: Clone
292203
uses: actions/checkout@v4
@@ -315,7 +226,7 @@ jobs:
315226
ubuntu-sycl:
316227
runs-on: ubuntu-22.04
317228
continue-on-error: true
318-
if: ${{ github.event_name == 'push' && env.ENABLE_UBUNTU_SYCL == 'true' }}
229+
if: false
319230
strategy:
320231
matrix:
321232
variant: [default, fp16]
@@ -363,8 +274,8 @@ jobs:
363274
path: build/bin/llama-server
364275

365276
windows-cuda:
277+
if: false
366278
runs-on: windows-2019
367-
if: ${{ (github.event_name == 'push' && env.ENABLE_WINDOWS_CUDA == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_windows_cuda) }}
368279
strategy:
369280
matrix:
370281
cuda:
@@ -457,7 +368,6 @@ jobs:
457368

458369
windows-cpu:
459370
runs-on: windows-latest
460-
if: ${{ github.event_name == 'push' && env.ENABLE_WINDOWS_CPU == 'true' }}
461371

462372
env:
463373
OPENBLAS_VERSION: 0.3.23
@@ -537,7 +447,7 @@ jobs:
537447
runs-on: windows-latest
538448
env:
539449
VULKAN_VERSION: 1.3.261.1
540-
if: ${{ (github.event_name == 'push' && env.ENABLE_WINDOWS_VULKAN == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_windows_vulkan) }}
450+
if: false
541451
steps:
542452
- name: Clone
543453
uses: actions/checkout@v4
@@ -574,7 +484,7 @@ jobs:
574484
runs-on: windows-latest
575485
env:
576486
VULKAN_VERSION: 1.3.261.1
577-
if: ${{ (github.event_name == 'push' && env.ENABLE_WINDOWS_KOMPUTE == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_windows_kompute) }}
487+
if: false
578488
steps:
579489
- name: Clone
580490
uses: actions/checkout@v4
@@ -614,7 +524,7 @@ jobs:
614524

615525
windows-sycl:
616526
runs-on: windows-latest
617-
if: ${{ (github.event_name == 'push' && env.ENABLE_WINDOWS_SYCL == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_windows_sycl) }}
527+
if: false
618528
defaults:
619529
run:
620530
shell: bash
@@ -664,7 +574,7 @@ jobs:
664574
strategy:
665575
matrix:
666576
gpu_target: [gfx1100, gfx1101, gfx1030]
667-
if: ${{ (github.event_name == 'push' && env.ENABLE_WINDOWS_HIP == 'true') || (github.event_name == 'workflow_dispatch' && inputs.enable_windows_hip) }}
577+
if: false
668578
steps:
669579
- name: Clone
670580
uses: actions/checkout@v4
@@ -713,16 +623,15 @@ jobs:
713623
if: always() || github.event.inputs.create_release == 'true'
714624
runs-on: ubuntu-latest
715625
needs:
716-
- macos-arm64-cpu
717-
- macos-arm64-metal
626+
- macos-arm64
718627
- ubuntu-cpu
719-
- ubuntu-cuda
628+
# - ubuntu-cuda
720629
# - ubuntu-vulkan
721630
# - ubuntu-hip
722631
# - ubuntu-musa
723632
# - ubuntu-sycl
724633
- windows-cpu
725-
- windows-cuda
634+
# - windows-cuda
726635
# - windows-vulkan
727636
# - windows-kompute
728637
# - windows-sycl

0 commit comments

Comments
 (0)