forked from nomic-ai/gpt4all
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typescript bindings maintenance (nomic-ai#2363)
* remove outdated comments Signed-off-by: limez <[email protected]> * simpler build from source Signed-off-by: limez <[email protected]> * update unix build script to create .so runtimes correctly Signed-off-by: limez <[email protected]> * configure ci build type, use RelWithDebInfo for dev build script Signed-off-by: limez <[email protected]> * add clean script Signed-off-by: limez <[email protected]> * fix streamed token decoding / emoji Signed-off-by: limez <[email protected]> * remove deprecated nCtx Signed-off-by: limez <[email protected]> * update typings Signed-off-by: jacob <[email protected]> update typings Signed-off-by: jacob <[email protected]> * readme,mspell Signed-off-by: jacob <[email protected]> * cuda/backend logic changes + name napi methods like their js counterparts Signed-off-by: limez <[email protected]> * convert llmodel example into a test, separate test suite that can run in ci Signed-off-by: limez <[email protected]> * update examples / naming Signed-off-by: limez <[email protected]> * update deps, remove the need for binding.ci.gyp, make node-gyp-build fallback easier testable Signed-off-by: limez <[email protected]> * make sure the assert-backend-sources.js script is published, but not the others Signed-off-by: limez <[email protected]> * build correctly on windows (regression on node-gyp-build) Signed-off-by: Jacob Nguyen <[email protected]> * codespell Signed-off-by: limez <[email protected]> * make sure dlhandle.cpp gets linked correctly Signed-off-by: limez <[email protected]> * add include for check_cxx_compiler_flag call during aarch64 builds Signed-off-by: limez <[email protected]> * x86 > arm64 cross compilation of runtimes and bindings Signed-off-by: limez <[email protected]> * default to cpu instead of kompute on arm64 Signed-off-by: limez <[email protected]> * formatting, more minimal example Signed-off-by: limez <[email protected]> --------- Signed-off-by: limez <[email protected]> Signed-off-by: jacob <[email protected]> Signed-off-by: Jacob Nguyen <[email protected]> Co-authored-by: Jacob Nguyen <[email protected]> Co-authored-by: jacob <[email protected]>
- Loading branch information
1 parent
f001897
commit a602f7f
Showing
30 changed files
with
1,111 additions
and
872 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Toolchain to crosscompile runtimes for arm64 on jammy x86_64 | ||
# You may have to `sudo apt-get install g++-12-aarch64-linux-gnu gcc-12-aarch64-linux-gnu` | ||
|
||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR aarch64) | ||
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc-12) | ||
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++-12) | ||
|
||
# Supported backends | ||
set(LLMODEL_CUDA off) | ||
set(LLMODEL_KOMPUTE off) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ prebuilds/ | |
!.yarn/sdks | ||
!.yarn/versions | ||
runtimes/ | ||
backend/ | ||
compile_flags.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
test/ | ||
spec/ | ||
scripts/ | ||
scripts/* | ||
!scripts/assert-backend-sources.js | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.