Skip to content

Commit a227c1e

Browse files
authored
temporary apply that viral x2 speedup PR (#156)
1 parent 527dd14 commit a227c1e

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ _tmp
1313
/scripts/_tmp_hf_space
1414
/cpp/test_glue
1515
/cpp/*.bin
16+
tmp.patch

llama.cpp

scripts/build_wasm.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
#!/bin/bash
22

3-
set -e
3+
#set -e
44

55
CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
66
cd $CURRENT_PATH
77

88
export D_UID=$UID
99
export D_GID=$GID
1010

11+
# temporary apply that viral x2 speedup PR lmao
12+
wget https://patch-diff.githubusercontent.com/raw/ggerganov/llama.cpp/pull/11453.patch -O ../tmp.patch
13+
cd ../llama.cpp
14+
git apply ../tmp.patch
15+
cd $CURRENT_PATH
16+
1117
docker compose up llamacpp-wasm-builder --exit-code-from llamacpp-wasm-builder
18+
19+
cd ../llama.cpp
20+
git reset --hard HEAD

src/multi-thread/wllama.wasm

-257 Bytes
Binary file not shown.

src/single-thread/wllama.wasm

-248 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)