Skip to content

Commit 3400fce

Browse files
authored
feat: adapt to llama.cpp changes, repeat penalty, improved grammar (#60)
* Adapted to new `llama.cpp` interface * Added support for repeat penalty * Improved grammar support * Added build toolchains for cross-compilation * Moved context and evaluation options to `LlamaContext`, `LlamaContext`'s `evaluate` function, and `LlamaChatSession`'s `prompt` function while supporting the existing interface. This way the API is better aligned with `llama.cpp` while preserving compatibility with existing projects that use the old interface.
1 parent 03ec18b commit 3400fce

16 files changed

+724
-184
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,16 @@ jobs:
9999
choco install ninja cmake
100100
101101
- name: Install dependencies on ubuntu
102-
if: startsWith(matrix.config.name, 'Ubuntu Latest GCC')
102+
if: startsWith(matrix.config.name, 'Ubuntu GCC')
103103
run: |
104104
sudo apt-get update
105-
sudo apt-get install ninja-build cmake libtbb-dev
105+
sudo apt-get install ninja-build cmake libtbb-dev g++-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-arm-linux-gnueabihf gcc-arm-linux-gnueabihf
106+
107+
which aarch64-linux-gnu-gcc
108+
which aarch64-linux-gnu-g++
109+
110+
which arm-linux-gnueabihf-gcc
111+
which arm-linux-gnueabihf-g++
106112
107113
- name: Install dependencies on macos
108114
if: startsWith(matrix.config.os, 'macos')
@@ -151,7 +157,7 @@ jobs:
151157
case "win":
152158
return ["x64" /*, "arm64" */ ]; // disabled arm64 for now as compilation doesn't work
153159
case "linux":
154-
return ["x64", "arm64", "armv7l", "ppc64le"];
160+
return ["x64", "arm64", "armv7l"];
155161
case "mac":
156162
return ["x64", "arm64"];
157163
}

0 commit comments

Comments
 (0)