Skip to content

Commit 8ed18f8

Browse files
committed
Build with RHEL 8 / c8s ABI
Signed-off-by: Christian Heimes <[email protected]>
1 parent f24f85e commit 8ed18f8

File tree

4 files changed

+46
-21
lines changed

4 files changed

+46
-21
lines changed

.github/workflows/build.yaml

Lines changed: 40 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,33 @@ jobs:
3333
run: make quantize
3434

3535
- name: file info
36-
run: file build/quantize*
36+
run: file build/quantize-arm64-darwin
37+
38+
- name: test quantize
39+
run: |
40+
build/quantize-arm64-darwin \
41+
llama.cpp/models/ggml-vocab-llama.gguf \
42+
/tmp/ggml-vocab-Q4_K_M.gguf \
43+
Q4_K_M
3744
3845
- uses: actions/upload-artifact@v4
3946
with:
40-
name: "quantize-macos-arm64"
41-
path: build/quantize*
47+
name: "quantize-arm64-darwin"
48+
path: build/quantize-arm64-darwin
4249

4350
linux-build:
4451
name: "Build quantize on Linux for ${{ matrix.arch }}"
4552
runs-on: "ubuntu-latest"
4653
strategy:
4754
fail-fast: true
4855
matrix:
49-
arch:
50-
- "amd64"
51-
- "arm64"
52-
# - "ppc64le"
53-
# - "s390x"
54-
image:
55-
- registry.access.redhat.com/ubi9/python-312
56+
include:
57+
- arch: "amd64"
58+
suffix: "x86_64-linux"
59+
image: quay.io/sclorg/python-312-c8s:c8s
60+
- arch: "arm64"
61+
suffix: "aarch64-linux"
62+
image: quay.io/sclorg/python-312-c8s:c8s
5663
steps:
5764
- uses: "actions/checkout@v4"
5865
with:
@@ -70,21 +77,34 @@ jobs:
7077
7178
- name: make build/quantize from llama.cpp sources
7279
run: |
73-
set -e
74-
docker run --platform linux/${{ matrix.arch }} ${{ matrix.image }} uname -a
75-
docker run --platform linux/${{ matrix.arch }} \
76-
-v .:/opt/app-root/src \
77-
-e CMAKE_ARGS="-DLLAMA_FATAL_WARNINGS=ON" \
78-
${{ matrix.image }} \
79-
make quantize
80+
set -e
81+
docker run --platform linux/${{ matrix.arch }} ${{ matrix.image }} uname -a
82+
docker run --platform linux/${{ matrix.arch }} \
83+
-v .:/opt/app-root/src \
84+
-e CMAKE_ARGS="-DLLAMA_FATAL_WARNINGS=ON" \
85+
${{ matrix.image }} \
86+
make quantize
8087
8188
- name: file info
82-
run: file build/quantize*
89+
run: file build/quantize-${{ matrix.suffix }}
90+
91+
- name: file symbols
92+
run: nm -a build/quantize-${{ matrix.suffix }} | grep -o "GLIBC.*" | sort -u
93+
94+
- name: test quantize
95+
run: |
96+
docker run --platform linux/${{ matrix.arch }} \
97+
-v .:/opt/app-root/src \
98+
${{ matrix.image }} \
99+
build/quantize-${{ matrix.suffix }} \
100+
llama.cpp/models/ggml-vocab-llama.gguf \
101+
/tmp/ggml-vocab-Q4_K_M.gguf \
102+
Q4_K_M
83103
84104
- uses: actions/upload-artifact@v4
85105
with:
86-
name: "quantize-linux-${{ matrix.arch }}"
87-
path: build/quantize*
106+
name: "quantize-${{ matrix.suffix }}"
107+
path: build/quantize-${{ matrix.suffix }}
88108

89109
merge-artifacts:
90110
name: Merge artifacts

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# instructlab-quantize
22

33
llama.cpp's [`quantize`](https://github.com/ggerganov/llama.cpp/blob/master/examples/quantize/quantize.cpp)
4-
binary for [InstructLab](https://github.com/instructlab/instructlab) on macOS ARM64.
4+
binary for [InstructLab](https://github.com/instructlab/instructlab).
5+
6+
- macOS ARM64
7+
- Linux x86_64 glibc with RHEL 8 ABI (`GLIBCXX_3.4.22`, `GLIBC_2.27`)
8+
- Linux aarch64 glibc with RHEL 8 ABI (`GLIBCXX_3.4.22`, `GLIBC_2.27`)
9+
510

611
`quantize` program was written by 'the ggml authors' for `llama.cpp`. License:
712

-48.3 KB
Binary file not shown.
-62.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)