Skip to content

Commit

Permalink
feat: adapt to llama.cpp changes, repeat penalty, improved grammar (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
giladgd authored Oct 8, 2023
1 parent 03ec18b commit 3400fce
Show file tree
Hide file tree
Showing 16 changed files with 724 additions and 184 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,16 @@ jobs:
choco install ninja cmake
- name: Install dependencies on ubuntu
if: startsWith(matrix.config.name, 'Ubuntu Latest GCC')
if: startsWith(matrix.config.name, 'Ubuntu GCC')
run: |
sudo apt-get update
sudo apt-get install ninja-build cmake libtbb-dev
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
which aarch64-linux-gnu-gcc
which aarch64-linux-gnu-g++
which arm-linux-gnueabihf-gcc
which arm-linux-gnueabihf-g++
- name: Install dependencies on macos
if: startsWith(matrix.config.os, 'macos')
Expand Down Expand Up @@ -151,7 +157,7 @@ jobs:
case "win":
return ["x64" /*, "arm64" */ ]; // disabled arm64 for now as compilation doesn't work
case "linux":
return ["x64", "arm64", "armv7l", "ppc64le"];
return ["x64", "arm64", "armv7l"];
case "mac":
return ["x64", "arm64"];
}
Expand Down
Loading

0 comments on commit 3400fce

Please sign in to comment.