Skip to content

Commit 41846f3

Browse files
committed
Add helper scripts
1 parent 74eaeb8 commit 41846f3

File tree

6 files changed

+26
-0
lines changed

6 files changed

+26
-0
lines changed

prepare.remoting.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cmake -S . -B ../build.remoting-frontend \
2+
-DGGML_REMOTINGFRONTEND=ON \
3+
-DGGML_CPU_ARM_ARCH=native \
4+
-DGGML_NATIVE=OFF \
5+
-DCMAKE_BUILD_TYPE=Debug \
6+
"$@"

prepare.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cmake -S . -B ./build -DGGML_VULKAN=ON -DGGML_NATIVE=OFF -DGGML_METAL=OFF #-DCMAKE_BUILD_TYPE=Debug #-DGGML_VULKAN_DEBUG=1

prepare.vulkan.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cmake -S . -B ../build.vulkan -DGGML_VULKAN=ON -DGGML_NATIVE=OFF -DGGML_METAL=OFF

run.remoting.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#! /bin/bash
2+
3+
if [[ ${1:-} == "gdb" ]]; then
4+
prefix="gdb --args"
5+
else
6+
prefix=""
7+
fi
8+
9+
MODEL="$HOME/models/llama3.2"
10+
PROMPT="say nothing"
11+
$prefix \
12+
../build.remoting-frontend/bin/llama-run \
13+
--ngl 99 \
14+
--verbose \
15+
"$MODEL" \
16+
"$PROMPT"

run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./build/bin/llama-run --ngl 999 --verbose ~/models/llama3.2 "say nothing"

run.vulkan.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../build.vulkan/bin/llama-run --ngl 99 --verbose ~/models/llama3.2 "say nothing"

0 commit comments

Comments
 (0)