@fugood/llama.node 0.6.2 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CMakeLists.txt +40 -30
- package/README.md +4 -1
- package/lib/binding.js +41 -29
- package/lib/binding.ts +26 -25
- package/package.json +45 -10
- package/scripts/build.js +47 -0
- package/scripts/llama.cpp.patch +109 -0
- package/src/anyascii.c +22223 -0
- package/src/anyascii.h +42 -0
- package/src/tts_utils.cpp +20 -7
- package/src/tts_utils.h +2 -0
- package/bin/darwin/arm64/llama-node.node +0 -0
- package/bin/darwin/x64/llama-node.node +0 -0
- package/bin/linux/arm64/llama-node.node +0 -0
- package/bin/linux/x64/llama-node.node +0 -0
- package/bin/linux-cuda/arm64/llama-node.node +0 -0
- package/bin/linux-cuda/x64/llama-node.node +0 -0
- package/bin/linux-vulkan/arm64/llama-node.node +0 -0
- package/bin/linux-vulkan/x64/llama-node.node +0 -0
- package/bin/win32/x64/llama-node.node +0 -0
- package/bin/win32/x64/node.lib +0 -0
- package/bin/win32-vulkan/arm64/llama-node.node +0 -0
- package/bin/win32-vulkan/arm64/node.lib +0 -0
- package/bin/win32-vulkan/x64/llama-node.node +0 -0
- package/bin/win32-vulkan/x64/node.lib +0 -0
- package/patches/node-api-headers+1.1.0.patch +0 -26
- package/src/llama.cpp/.github/workflows/build-linux-cross.yml +0 -233
- package/src/llama.cpp/.github/workflows/build.yml +0 -1078
- package/src/llama.cpp/.github/workflows/close-issue.yml +0 -28
- package/src/llama.cpp/.github/workflows/docker.yml +0 -178
- package/src/llama.cpp/.github/workflows/editorconfig.yml +0 -29
- package/src/llama.cpp/.github/workflows/gguf-publish.yml +0 -44
- package/src/llama.cpp/.github/workflows/labeler.yml +0 -17
- package/src/llama.cpp/.github/workflows/python-check-requirements.yml +0 -33
- package/src/llama.cpp/.github/workflows/python-lint.yml +0 -30
- package/src/llama.cpp/.github/workflows/python-type-check.yml +0 -40
- package/src/llama.cpp/.github/workflows/release.yml +0 -739
- package/src/llama.cpp/.github/workflows/server.yml +0 -237
- package/src/llama.cpp/.github/workflows/winget.yml +0 -42
- package/src/llama.cpp/cmake/arm64-apple-clang.cmake +0 -16
- package/src/llama.cpp/cmake/arm64-windows-llvm.cmake +0 -16
- package/src/llama.cpp/cmake/build-info.cmake +0 -64
- package/src/llama.cpp/cmake/common.cmake +0 -35
- package/src/llama.cpp/cmake/git-vars.cmake +0 -22
- package/src/llama.cpp/cmake/x64-windows-llvm.cmake +0 -5
- package/src/llama.cpp/common/build-info.cpp.in +0 -4
- package/src/llama.cpp/docs/build.md +0 -561
- package/src/llama.cpp/examples/CMakeLists.txt +0 -43
- package/src/llama.cpp/examples/batched/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/batched/batched.cpp +0 -246
- package/src/llama.cpp/examples/chat-13B.bat +0 -57
- package/src/llama.cpp/examples/convert-llama2c-to-ggml/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/convert-llama2c-to-ggml/convert-llama2c-to-ggml.cpp +0 -941
- package/src/llama.cpp/examples/deprecation-warning/deprecation-warning.cpp +0 -35
- package/src/llama.cpp/examples/embedding/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/embedding/embedding.cpp +0 -323
- package/src/llama.cpp/examples/eval-callback/CMakeLists.txt +0 -10
- package/src/llama.cpp/examples/eval-callback/eval-callback.cpp +0 -194
- package/src/llama.cpp/examples/gen-docs/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/gen-docs/gen-docs.cpp +0 -83
- package/src/llama.cpp/examples/gguf/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/gguf/gguf.cpp +0 -265
- package/src/llama.cpp/examples/gguf-hash/CMakeLists.txt +0 -22
- package/src/llama.cpp/examples/gguf-hash/deps/rotate-bits/rotate-bits.h +0 -46
- package/src/llama.cpp/examples/gguf-hash/deps/sha1/sha1.c +0 -295
- package/src/llama.cpp/examples/gguf-hash/deps/sha1/sha1.h +0 -52
- package/src/llama.cpp/examples/gguf-hash/deps/sha256/sha256.c +0 -221
- package/src/llama.cpp/examples/gguf-hash/deps/sha256/sha256.h +0 -24
- package/src/llama.cpp/examples/gguf-hash/deps/xxhash/xxhash.c +0 -42
- package/src/llama.cpp/examples/gguf-hash/deps/xxhash/xxhash.h +0 -7093
- package/src/llama.cpp/examples/gguf-hash/gguf-hash.cpp +0 -694
- package/src/llama.cpp/examples/gritlm/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/gritlm/gritlm.cpp +0 -229
- package/src/llama.cpp/examples/jeopardy/questions.txt +0 -100
- package/src/llama.cpp/examples/llama.android/app/build.gradle.kts +0 -65
- package/src/llama.cpp/examples/llama.android/build.gradle.kts +0 -6
- package/src/llama.cpp/examples/llama.android/llama/build.gradle.kts +0 -71
- package/src/llama.cpp/examples/llama.android/llama/src/main/cpp/CMakeLists.txt +0 -53
- package/src/llama.cpp/examples/llama.android/llama/src/main/cpp/llama-android.cpp +0 -452
- package/src/llama.cpp/examples/llama.android/settings.gradle.kts +0 -18
- package/src/llama.cpp/examples/lookahead/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/lookahead/lookahead.cpp +0 -472
- package/src/llama.cpp/examples/lookup/CMakeLists.txt +0 -23
- package/src/llama.cpp/examples/lookup/lookup-create.cpp +0 -40
- package/src/llama.cpp/examples/lookup/lookup-merge.cpp +0 -47
- package/src/llama.cpp/examples/lookup/lookup-stats.cpp +0 -157
- package/src/llama.cpp/examples/lookup/lookup.cpp +0 -242
- package/src/llama.cpp/examples/parallel/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/parallel/parallel.cpp +0 -492
- package/src/llama.cpp/examples/passkey/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/passkey/passkey.cpp +0 -277
- package/src/llama.cpp/examples/retrieval/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/retrieval/retrieval.cpp +0 -304
- package/src/llama.cpp/examples/save-load-state/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/save-load-state/save-load-state.cpp +0 -246
- package/src/llama.cpp/examples/simple/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/simple/simple.cpp +0 -206
- package/src/llama.cpp/examples/simple-chat/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/simple-chat/simple-chat.cpp +0 -206
- package/src/llama.cpp/examples/simple-cmake-pkg/CMakeLists.txt +0 -11
- package/src/llama.cpp/examples/speculative/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/speculative/speculative.cpp +0 -644
- package/src/llama.cpp/examples/speculative-simple/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/speculative-simple/speculative-simple.cpp +0 -261
- package/src/llama.cpp/examples/sycl/CMakeLists.txt +0 -9
- package/src/llama.cpp/examples/sycl/build.sh +0 -23
- package/src/llama.cpp/examples/sycl/ls-sycl-device.cpp +0 -13
- package/src/llama.cpp/examples/sycl/run-llama2.sh +0 -27
- package/src/llama.cpp/examples/sycl/run-llama3.sh +0 -28
- package/src/llama.cpp/examples/sycl/win-build-sycl.bat +0 -33
- package/src/llama.cpp/examples/sycl/win-run-llama2.bat +0 -9
- package/src/llama.cpp/examples/sycl/win-run-llama3.bat +0 -9
- package/src/llama.cpp/examples/training/CMakeLists.txt +0 -5
- package/src/llama.cpp/examples/training/finetune.cpp +0 -96
- package/src/llama.cpp/ggml/cmake/GitVars.cmake +0 -22
- package/src/llama.cpp/ggml/cmake/common.cmake +0 -26
- package/src/llama.cpp/ggml/src/ggml-alloc.c +0 -1042
- package/src/llama.cpp/ggml/src/ggml-backend-impl.h +0 -255
- package/src/llama.cpp/ggml/src/ggml-backend-reg.cpp +0 -586
- package/src/llama.cpp/ggml/src/ggml-backend.cpp +0 -2008
- package/src/llama.cpp/ggml/src/ggml-blas/CMakeLists.txt +0 -87
- package/src/llama.cpp/ggml/src/ggml-blas/ggml-blas.cpp +0 -517
- package/src/llama.cpp/ggml/src/ggml-cann/CMakeLists.txt +0 -74
- package/src/llama.cpp/ggml/src/ggml-cann/acl_tensor.cpp +0 -179
- package/src/llama.cpp/ggml/src/ggml-cann/acl_tensor.h +0 -258
- package/src/llama.cpp/ggml/src/ggml-cann/aclnn_ops.cpp +0 -2863
- package/src/llama.cpp/ggml/src/ggml-cann/aclnn_ops.h +0 -1110
- package/src/llama.cpp/ggml/src/ggml-cann/common.h +0 -420
- package/src/llama.cpp/ggml/src/ggml-cann/ggml-cann.cpp +0 -2570
- package/src/llama.cpp/ggml/src/ggml-common.h +0 -1857
- package/src/llama.cpp/ggml/src/ggml-cpu/cmake/FindSIMD.cmake +0 -100
- package/src/llama.cpp/ggml/src/ggml-cuda/CMakeLists.txt +0 -184
- package/src/llama.cpp/ggml/src/ggml-cuda/vendors/cuda.h +0 -15
- package/src/llama.cpp/ggml/src/ggml-cuda/vendors/hip.h +0 -243
- package/src/llama.cpp/ggml/src/ggml-cuda/vendors/musa.h +0 -140
- package/src/llama.cpp/ggml/src/ggml-hip/CMakeLists.txt +0 -131
- package/src/llama.cpp/ggml/src/ggml-impl.h +0 -601
- package/src/llama.cpp/ggml/src/ggml-kompute/CMakeLists.txt +0 -166
- package/src/llama.cpp/ggml/src/ggml-kompute/ggml-kompute.cpp +0 -2251
- package/src/llama.cpp/ggml/src/ggml-metal/CMakeLists.txt +0 -120
- package/src/llama.cpp/ggml/src/ggml-metal/ggml-metal-impl.h +0 -622
- package/src/llama.cpp/ggml/src/ggml-musa/CMakeLists.txt +0 -113
- package/src/llama.cpp/ggml/src/ggml-opencl/CMakeLists.txt +0 -96
- package/src/llama.cpp/ggml/src/ggml-opencl/ggml-opencl.cpp +0 -5124
- package/src/llama.cpp/ggml/src/ggml-opt.cpp +0 -1037
- package/src/llama.cpp/ggml/src/ggml-quants.c +0 -5232
- package/src/llama.cpp/ggml/src/ggml-quants.h +0 -100
- package/src/llama.cpp/ggml/src/ggml-rpc/CMakeLists.txt +0 -9
- package/src/llama.cpp/ggml/src/ggml-rpc/ggml-rpc.cpp +0 -1813
- package/src/llama.cpp/ggml/src/ggml-sycl/CMakeLists.txt +0 -189
- package/src/llama.cpp/ggml/src/ggml-sycl/backend.hpp +0 -37
- package/src/llama.cpp/ggml/src/ggml-sycl/binbcast.cpp +0 -239
- package/src/llama.cpp/ggml/src/ggml-sycl/binbcast.hpp +0 -39
- package/src/llama.cpp/ggml/src/ggml-sycl/common.cpp +0 -83
- package/src/llama.cpp/ggml/src/ggml-sycl/common.hpp +0 -493
- package/src/llama.cpp/ggml/src/ggml-sycl/concat.cpp +0 -197
- package/src/llama.cpp/ggml/src/ggml-sycl/concat.hpp +0 -20
- package/src/llama.cpp/ggml/src/ggml-sycl/conv.cpp +0 -100
- package/src/llama.cpp/ggml/src/ggml-sycl/conv.hpp +0 -20
- package/src/llama.cpp/ggml/src/ggml-sycl/convert.cpp +0 -623
- package/src/llama.cpp/ggml/src/ggml-sycl/convert.hpp +0 -34
- package/src/llama.cpp/ggml/src/ggml-sycl/cpy.cpp +0 -701
- package/src/llama.cpp/ggml/src/ggml-sycl/cpy.hpp +0 -11
- package/src/llama.cpp/ggml/src/ggml-sycl/dequantize.hpp +0 -791
- package/src/llama.cpp/ggml/src/ggml-sycl/dmmv.cpp +0 -1160
- package/src/llama.cpp/ggml/src/ggml-sycl/dmmv.hpp +0 -27
- package/src/llama.cpp/ggml/src/ggml-sycl/dpct/helper.hpp +0 -2957
- package/src/llama.cpp/ggml/src/ggml-sycl/element_wise.cpp +0 -1536
- package/src/llama.cpp/ggml/src/ggml-sycl/element_wise.hpp +0 -75
- package/src/llama.cpp/ggml/src/ggml-sycl/gemm.hpp +0 -99
- package/src/llama.cpp/ggml/src/ggml-sycl/getrows.cpp +0 -311
- package/src/llama.cpp/ggml/src/ggml-sycl/getrows.hpp +0 -20
- package/src/llama.cpp/ggml/src/ggml-sycl/ggml-sycl.cpp +0 -4443
- package/src/llama.cpp/ggml/src/ggml-sycl/gla.cpp +0 -105
- package/src/llama.cpp/ggml/src/ggml-sycl/gla.hpp +0 -8
- package/src/llama.cpp/ggml/src/ggml-sycl/im2col.cpp +0 -136
- package/src/llama.cpp/ggml/src/ggml-sycl/im2col.hpp +0 -21
- package/src/llama.cpp/ggml/src/ggml-sycl/mmq.cpp +0 -3030
- package/src/llama.cpp/ggml/src/ggml-sycl/mmq.hpp +0 -33
- package/src/llama.cpp/ggml/src/ggml-sycl/mmvq.cpp +0 -1108
- package/src/llama.cpp/ggml/src/ggml-sycl/mmvq.hpp +0 -27
- package/src/llama.cpp/ggml/src/ggml-sycl/norm.cpp +0 -474
- package/src/llama.cpp/ggml/src/ggml-sycl/norm.hpp +0 -26
- package/src/llama.cpp/ggml/src/ggml-sycl/outprod.cpp +0 -46
- package/src/llama.cpp/ggml/src/ggml-sycl/outprod.hpp +0 -10
- package/src/llama.cpp/ggml/src/ggml-sycl/presets.hpp +0 -74
- package/src/llama.cpp/ggml/src/ggml-sycl/quants.hpp +0 -83
- package/src/llama.cpp/ggml/src/ggml-sycl/rope.cpp +0 -362
- package/src/llama.cpp/ggml/src/ggml-sycl/rope.hpp +0 -20
- package/src/llama.cpp/ggml/src/ggml-sycl/softmax.cpp +0 -264
- package/src/llama.cpp/ggml/src/ggml-sycl/softmax.hpp +0 -20
- package/src/llama.cpp/ggml/src/ggml-sycl/sycl_hw.cpp +0 -13
- package/src/llama.cpp/ggml/src/ggml-sycl/sycl_hw.hpp +0 -23
- package/src/llama.cpp/ggml/src/ggml-sycl/tsembd.cpp +0 -73
- package/src/llama.cpp/ggml/src/ggml-sycl/tsembd.hpp +0 -20
- package/src/llama.cpp/ggml/src/ggml-sycl/vecdotq.hpp +0 -1215
- package/src/llama.cpp/ggml/src/ggml-sycl/wkv.cpp +0 -305
- package/src/llama.cpp/ggml/src/ggml-sycl/wkv.hpp +0 -10
- package/src/llama.cpp/ggml/src/ggml-threading.cpp +0 -12
- package/src/llama.cpp/ggml/src/ggml-threading.h +0 -14
- package/src/llama.cpp/ggml/src/ggml-vulkan/CMakeLists.txt +0 -196
- package/src/llama.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp +0 -10699
- package/src/llama.cpp/ggml/src/ggml-vulkan/vulkan-shaders/CMakeLists.txt +0 -39
- package/src/llama.cpp/ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp +0 -751
- package/src/llama.cpp/ggml/src/ggml.c +0 -6550
- package/src/llama.cpp/ggml/src/gguf.cpp +0 -1330
- package/src/llama.cpp/models/.editorconfig +0 -1
- package/src/llama.cpp/models/ggml-vocab-aquila.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-baichuan.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-bert-bge.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-bert-bge.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-bert-bge.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-chameleon.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-chameleon.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-command-r.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-command-r.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-command-r.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-deepseek-coder.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-deepseek-coder.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-deepseek-coder.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-deepseek-llm.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-deepseek-llm.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-deepseek-llm.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-deepseek-r1-qwen.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-deepseek-r1-qwen.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-falcon.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-falcon.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-falcon.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-gpt-2.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-gpt-2.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-gpt-2.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-gpt-4o.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-gpt-4o.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-gpt-neox.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-llama-bpe.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-llama-bpe.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-llama-bpe.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-llama-spm.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-llama-spm.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-llama-spm.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-llama4.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-llama4.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-mpt.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-mpt.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-mpt.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-phi-3.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-phi-3.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-phi-3.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-pixtral.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-pixtral.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-qwen2.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-qwen2.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-qwen2.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-refact.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-refact.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-refact.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-roberta-bpe.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-roberta-bpe.gguf.out +0 -46
- package/src/llama.cpp/models/ggml-vocab-starcoder.gguf +0 -0
- package/src/llama.cpp/models/ggml-vocab-starcoder.gguf.inp +0 -112
- package/src/llama.cpp/models/ggml-vocab-starcoder.gguf.out +0 -46
- package/src/llama.cpp/pocs/CMakeLists.txt +0 -14
- package/src/llama.cpp/pocs/vdot/CMakeLists.txt +0 -9
- package/src/llama.cpp/pocs/vdot/q8dot.cpp +0 -173
- package/src/llama.cpp/pocs/vdot/vdot.cpp +0 -311
- package/src/llama.cpp/prompts/LLM-questions.txt +0 -49
- package/src/llama.cpp/prompts/alpaca.txt +0 -1
- package/src/llama.cpp/prompts/assistant.txt +0 -31
- package/src/llama.cpp/prompts/chat-with-baichuan.txt +0 -4
- package/src/llama.cpp/prompts/chat-with-bob.txt +0 -7
- package/src/llama.cpp/prompts/chat-with-qwen.txt +0 -1
- package/src/llama.cpp/prompts/chat-with-vicuna-v0.txt +0 -7
- package/src/llama.cpp/prompts/chat-with-vicuna-v1.txt +0 -7
- package/src/llama.cpp/prompts/chat.txt +0 -28
- package/src/llama.cpp/prompts/dan-modified.txt +0 -1
- package/src/llama.cpp/prompts/dan.txt +0 -1
- package/src/llama.cpp/prompts/mnemonics.txt +0 -93
- package/src/llama.cpp/prompts/parallel-questions.txt +0 -43
- package/src/llama.cpp/prompts/reason-act.txt +0 -18
- package/src/llama.cpp/requirements/requirements-all.txt +0 -15
- package/src/llama.cpp/requirements/requirements-compare-llama-bench.txt +0 -2
- package/src/llama.cpp/requirements/requirements-convert_hf_to_gguf.txt +0 -7
- package/src/llama.cpp/requirements/requirements-convert_hf_to_gguf_update.txt +0 -7
- package/src/llama.cpp/requirements/requirements-convert_legacy_llama.txt +0 -5
- package/src/llama.cpp/requirements/requirements-convert_llama_ggml_to_gguf.txt +0 -1
- package/src/llama.cpp/requirements/requirements-convert_lora_to_gguf.txt +0 -4
- package/src/llama.cpp/requirements/requirements-gguf_editor_gui.txt +0 -3
- package/src/llama.cpp/requirements/requirements-pydantic.txt +0 -3
- package/src/llama.cpp/requirements/requirements-test-tokenizer-random.txt +0 -1
- package/src/llama.cpp/requirements/requirements-tool_bench.txt +0 -12
- package/src/llama.cpp/requirements.txt +0 -13
- package/src/llama.cpp/scripts/build-info.sh +0 -30
- package/src/llama.cpp/scripts/install-oneapi.bat +0 -19
- package/src/llama.cpp/scripts/xxd.cmake +0 -16
- package/src/llama.cpp/tests/CMakeLists.txt +0 -177
- package/src/llama.cpp/tests/get-model.cpp +0 -21
- package/src/llama.cpp/tests/get-model.h +0 -2
- package/src/llama.cpp/tests/test-arg-parser.cpp +0 -178
- package/src/llama.cpp/tests/test-autorelease.cpp +0 -24
- package/src/llama.cpp/tests/test-backend-ops.cpp +0 -4793
- package/src/llama.cpp/tests/test-barrier.cpp +0 -94
- package/src/llama.cpp/tests/test-c.c +0 -7
- package/src/llama.cpp/tests/test-chat-template.cpp +0 -417
- package/src/llama.cpp/tests/test-chat.cpp +0 -985
- package/src/llama.cpp/tests/test-double-float.cpp +0 -57
- package/src/llama.cpp/tests/test-gbnf-validator.cpp +0 -109
- package/src/llama.cpp/tests/test-gguf.cpp +0 -1338
- package/src/llama.cpp/tests/test-grammar-integration.cpp +0 -1308
- package/src/llama.cpp/tests/test-grammar-llguidance.cpp +0 -1201
- package/src/llama.cpp/tests/test-grammar-parser.cpp +0 -519
- package/src/llama.cpp/tests/test-json-schema-to-grammar.cpp +0 -1304
- package/src/llama.cpp/tests/test-llama-grammar.cpp +0 -408
- package/src/llama.cpp/tests/test-log.cpp +0 -39
- package/src/llama.cpp/tests/test-model-load-cancel.cpp +0 -27
- package/src/llama.cpp/tests/test-mtmd-c-api.c +0 -63
- package/src/llama.cpp/tests/test-opt.cpp +0 -904
- package/src/llama.cpp/tests/test-quantize-fns.cpp +0 -186
- package/src/llama.cpp/tests/test-quantize-perf.cpp +0 -365
- package/src/llama.cpp/tests/test-quantize-stats.cpp +0 -424
- package/src/llama.cpp/tests/test-regex-partial.cpp +0 -288
- package/src/llama.cpp/tests/test-rope.cpp +0 -262
- package/src/llama.cpp/tests/test-sampling.cpp +0 -399
- package/src/llama.cpp/tests/test-tokenizer-0.cpp +0 -312
- package/src/llama.cpp/tests/test-tokenizer-1-bpe.cpp +0 -155
- package/src/llama.cpp/tests/test-tokenizer-1-spm.cpp +0 -125
- package/src/llama.cpp/tools/CMakeLists.txt +0 -39
- package/src/llama.cpp/tools/batched-bench/CMakeLists.txt +0 -5
- package/src/llama.cpp/tools/batched-bench/batched-bench.cpp +0 -204
- package/src/llama.cpp/tools/cvector-generator/CMakeLists.txt +0 -5
- package/src/llama.cpp/tools/cvector-generator/completions.txt +0 -582
- package/src/llama.cpp/tools/cvector-generator/cvector-generator.cpp +0 -508
- package/src/llama.cpp/tools/cvector-generator/mean.hpp +0 -48
- package/src/llama.cpp/tools/cvector-generator/negative.txt +0 -4
- package/src/llama.cpp/tools/cvector-generator/pca.hpp +0 -315
- package/src/llama.cpp/tools/cvector-generator/positive.txt +0 -4
- package/src/llama.cpp/tools/export-lora/CMakeLists.txt +0 -5
- package/src/llama.cpp/tools/export-lora/export-lora.cpp +0 -434
- package/src/llama.cpp/tools/gguf-split/CMakeLists.txt +0 -5
- package/src/llama.cpp/tools/gguf-split/gguf-split.cpp +0 -583
- package/src/llama.cpp/tools/imatrix/CMakeLists.txt +0 -5
- package/src/llama.cpp/tools/imatrix/imatrix.cpp +0 -667
- package/src/llama.cpp/tools/llama-bench/CMakeLists.txt +0 -5
- package/src/llama.cpp/tools/llama-bench/llama-bench.cpp +0 -2024
- package/src/llama.cpp/tools/main/CMakeLists.txt +0 -5
- package/src/llama.cpp/tools/main/main.cpp +0 -977
- package/src/llama.cpp/tools/mtmd/CMakeLists.txt +0 -58
- package/src/llama.cpp/tools/mtmd/clip-impl.h +0 -462
- package/src/llama.cpp/tools/mtmd/clip.cpp +0 -4024
- package/src/llama.cpp/tools/mtmd/clip.h +0 -101
- package/src/llama.cpp/tools/mtmd/deprecation-warning.cpp +0 -22
- package/src/llama.cpp/tools/mtmd/miniaudio.h +0 -93468
- package/src/llama.cpp/tools/mtmd/mtmd-audio.cpp +0 -855
- package/src/llama.cpp/tools/mtmd/mtmd-audio.h +0 -62
- package/src/llama.cpp/tools/mtmd/mtmd-cli.cpp +0 -377
- package/src/llama.cpp/tools/mtmd/mtmd-helper.cpp +0 -297
- package/src/llama.cpp/tools/mtmd/mtmd.cpp +0 -942
- package/src/llama.cpp/tools/mtmd/mtmd.h +0 -362
- package/src/llama.cpp/tools/mtmd/requirements.txt +0 -5
- package/src/llama.cpp/tools/perplexity/CMakeLists.txt +0 -5
- package/src/llama.cpp/tools/perplexity/perplexity.cpp +0 -2063
- package/src/llama.cpp/tools/quantize/CMakeLists.txt +0 -6
- package/src/llama.cpp/tools/quantize/quantize.cpp +0 -519
- package/src/llama.cpp/tools/rpc/CMakeLists.txt +0 -4
- package/src/llama.cpp/tools/rpc/rpc-server.cpp +0 -322
- package/src/llama.cpp/tools/run/CMakeLists.txt +0 -16
- package/src/llama.cpp/tools/run/linenoise.cpp/linenoise.cpp +0 -1995
- package/src/llama.cpp/tools/run/linenoise.cpp/linenoise.h +0 -137
- package/src/llama.cpp/tools/run/run.cpp +0 -1261
- package/src/llama.cpp/tools/server/CMakeLists.txt +0 -51
- package/src/llama.cpp/tools/server/bench/requirements.txt +0 -2
- package/src/llama.cpp/tools/server/httplib.h +0 -10506
- package/src/llama.cpp/tools/server/server.cpp +0 -4966
- package/src/llama.cpp/tools/server/tests/requirements.txt +0 -8
- package/src/llama.cpp/tools/server/utils.hpp +0 -1337
- package/src/llama.cpp/tools/tokenize/CMakeLists.txt +0 -5
- package/src/llama.cpp/tools/tokenize/tokenize.cpp +0 -416
- package/src/llama.cpp/tools/tts/CMakeLists.txt +0 -5
- package/src/llama.cpp/tools/tts/tts.cpp +0 -1092
package/src/anyascii.h
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
ISC License
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2020-2023, Hunter WB <hunterwb.com>
|
|
5
|
+
|
|
6
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
8
|
+
copyright notice and this permission notice appear in all copies.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
11
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
12
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
13
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
14
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
15
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
16
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
#ifndef ANYASCII_H
|
|
20
|
+
#define ANYASCII_H
|
|
21
|
+
|
|
22
|
+
#ifdef __cplusplus
|
|
23
|
+
extern "C" {
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
#include <stddef.h>
|
|
27
|
+
#include <stdint.h>
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Gets the ASCII transliteration of a Unicode code point
|
|
31
|
+
*
|
|
32
|
+
* @param utf32 A Unicode code point
|
|
33
|
+
* @param ascii A pointer for the result to be written to; not null-terminated
|
|
34
|
+
* @return The number of chars in *ascii
|
|
35
|
+
*/
|
|
36
|
+
size_t anyascii(uint_least32_t utf32, const char **ascii);
|
|
37
|
+
|
|
38
|
+
#ifdef __cplusplus
|
|
39
|
+
}
|
|
40
|
+
#endif
|
|
41
|
+
|
|
42
|
+
#endif
|
package/src/tts_utils.cpp
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
#include "tts_utils.h"
|
|
2
|
+
#include "anyascii.h"
|
|
3
|
+
#include <codecvt>
|
|
2
4
|
|
|
3
5
|
using json = nlohmann::json;
|
|
4
6
|
|
|
7
|
+
static std::string anyascii_string(const std::string &input) {
|
|
8
|
+
std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> converter;
|
|
9
|
+
auto wstr = converter.from_bytes(input);
|
|
10
|
+
std::string output;
|
|
11
|
+
for (char32_t c : wstr) {
|
|
12
|
+
const char *r;
|
|
13
|
+
size_t rlen = anyascii(c, &r);
|
|
14
|
+
output.append(r, rlen);
|
|
15
|
+
}
|
|
16
|
+
return output;
|
|
17
|
+
}
|
|
18
|
+
|
|
5
19
|
std::string audio_text_from_speaker(json speaker,
|
|
6
20
|
const tts_type type = OUTETTS_V0_2) {
|
|
7
21
|
std::string audio_text = "<|text_start|>";
|
|
@@ -146,17 +160,16 @@ std::string replace_numbers_with_words(const std::string &input_text) {
|
|
|
146
160
|
return result;
|
|
147
161
|
}
|
|
148
162
|
|
|
149
|
-
// Based on:
|
|
150
|
-
// https://github.com/edwko/OuteTTS/blob/a613e79c489d8256dd657ea9168d78de75895d82/outetts/version/v1/prompt_processor.py#L39
|
|
151
163
|
std::string process_text(const std::string &text,
|
|
152
164
|
const tts_type tts_type = OUTETTS_V0_2) {
|
|
165
|
+
std::string processed_text = replace_numbers_with_words(text);
|
|
153
166
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
// maybe something like https://github.com/anyascii/anyascii/ could work.
|
|
157
|
-
// currently only English would be supported in this function
|
|
167
|
+
if (tts_type == OUTETTS_V0_2 || tts_type == OUTETTS_V0_3) {
|
|
168
|
+
processed_text = anyascii_string(processed_text);
|
|
158
169
|
|
|
159
|
-
|
|
170
|
+
std::regex dashes(R"([—–-])");
|
|
171
|
+
processed_text = std::regex_replace(processed_text, dashes, " ");
|
|
172
|
+
}
|
|
160
173
|
|
|
161
174
|
std::transform(processed_text.begin(), processed_text.end(),
|
|
162
175
|
processed_text.begin(), ::tolower);
|
package/src/tts_utils.h
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
enum tts_type { UNKNOWN = -1, OUTETTS_V0_2 = 1, OUTETTS_V0_3 = 2 };
|
|
12
12
|
|
|
13
|
+
static std::string anyascii_string(const std::string &input);
|
|
14
|
+
|
|
13
15
|
std::string audio_text_from_speaker(nlohmann::json speaker,
|
|
14
16
|
const tts_type type);
|
|
15
17
|
std::string audio_data_from_speaker(nlohmann::json speaker,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/win32/x64/node.lib
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
diff --git a/node_modules/node-api-headers/include/js_native_api.h b/node_modules/node-api-headers/include/js_native_api.h
|
|
2
|
-
index e06bdc8..c35398a 100644
|
|
3
|
-
--- a/node_modules/node-api-headers/include/js_native_api.h
|
|
4
|
-
+++ b/node_modules/node-api-headers/include/js_native_api.h
|
|
5
|
-
@@ -22,7 +22,7 @@
|
|
6
|
-
// If you need __declspec(dllimport), either include <node_api.h> instead, or
|
|
7
|
-
// define NAPI_EXTERN as __declspec(dllimport) on the compiler's command line.
|
|
8
|
-
#ifndef NAPI_EXTERN
|
|
9
|
-
-#ifdef _WIN32
|
|
10
|
-
+#if defined(_WIN32) && _MSC_VER
|
|
11
|
-
#define NAPI_EXTERN __declspec(dllexport)
|
|
12
|
-
#elif defined(__wasm32__)
|
|
13
|
-
#define NAPI_EXTERN \
|
|
14
|
-
diff --git a/node_modules/node-api-headers/include/node_api.h b/node_modules/node-api-headers/include/node_api.h
|
|
15
|
-
index 0345468..359c496 100644
|
|
16
|
-
--- a/node_modules/node-api-headers/include/node_api.h
|
|
17
|
-
+++ b/node_modules/node-api-headers/include/node_api.h
|
|
18
|
-
@@ -2,7 +2,7 @@
|
|
19
|
-
#define SRC_NODE_API_H_
|
|
20
|
-
|
|
21
|
-
#ifdef BUILDING_NODE_EXTENSION
|
|
22
|
-
-#ifdef _WIN32
|
|
23
|
-
+#if defined(_WIN32) && _MSC_VER
|
|
24
|
-
// Building native addon against node
|
|
25
|
-
#define NAPI_EXTERN __declspec(dllimport)
|
|
26
|
-
#elif defined(__wasm32__)
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
name: Build on Linux using cross-compiler
|
|
2
|
-
on:
|
|
3
|
-
workflow_dispatch:
|
|
4
|
-
workflow_call:
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
ubuntu-24-riscv64-cpu-cross:
|
|
8
|
-
runs-on: ubuntu-24.04
|
|
9
|
-
|
|
10
|
-
steps:
|
|
11
|
-
- uses: actions/checkout@v4
|
|
12
|
-
- name: Setup Riscv
|
|
13
|
-
run: |
|
|
14
|
-
sudo dpkg --add-architecture riscv64
|
|
15
|
-
|
|
16
|
-
# Add arch-specific repositories for non-amd64 architectures
|
|
17
|
-
cat << EOF | sudo tee /etc/apt/sources.list.d/riscv64-ports.list
|
|
18
|
-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble main universe
|
|
19
|
-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe
|
|
20
|
-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-security main universe
|
|
21
|
-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-backports main universe
|
|
22
|
-
EOF
|
|
23
|
-
|
|
24
|
-
sudo apt-get update || true ;# Prevent failure due to missing URLs.
|
|
25
|
-
|
|
26
|
-
sudo apt-get install -y --no-install-recommends \
|
|
27
|
-
build-essential \
|
|
28
|
-
gcc-14-riscv64-linux-gnu \
|
|
29
|
-
g++-14-riscv64-linux-gnu \
|
|
30
|
-
libcurl4-openssl-dev:riscv64
|
|
31
|
-
|
|
32
|
-
- name: Build
|
|
33
|
-
run: |
|
|
34
|
-
cmake -B build -DCMAKE_BUILD_TYPE=Release \
|
|
35
|
-
-DGGML_OPENMP=OFF \
|
|
36
|
-
-DLLAMA_BUILD_EXAMPLES=ON \
|
|
37
|
-
-DLLAMA_BUILD_TOOLS=ON \
|
|
38
|
-
-DLLAMA_BUILD_TESTS=OFF \
|
|
39
|
-
-DCMAKE_SYSTEM_NAME=Linux \
|
|
40
|
-
-DCMAKE_SYSTEM_PROCESSOR=riscv64 \
|
|
41
|
-
-DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
|
|
42
|
-
-DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14 \
|
|
43
|
-
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
44
|
-
-DCMAKE_FIND_ROOT_PATH=/usr/lib/riscv64-linux-gnu \
|
|
45
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
|
46
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
|
47
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
|
|
48
|
-
|
|
49
|
-
cmake --build build --config Release -j $(nproc)
|
|
50
|
-
|
|
51
|
-
ubuntu-24-riscv64-vulkan-cross:
|
|
52
|
-
runs-on: ubuntu-24.04
|
|
53
|
-
|
|
54
|
-
steps:
|
|
55
|
-
- uses: actions/checkout@v4
|
|
56
|
-
- name: Setup Riscv
|
|
57
|
-
run: |
|
|
58
|
-
sudo dpkg --add-architecture riscv64
|
|
59
|
-
|
|
60
|
-
# Add arch-specific repositories for non-amd64 architectures
|
|
61
|
-
cat << EOF | sudo tee /etc/apt/sources.list.d/riscv64-ports.list
|
|
62
|
-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble main universe
|
|
63
|
-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe
|
|
64
|
-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-security main universe
|
|
65
|
-
deb [arch=riscv64] http://ports.ubuntu.com/ubuntu-ports/ noble-backports main universe
|
|
66
|
-
EOF
|
|
67
|
-
|
|
68
|
-
sudo apt-get update || true ;# Prevent failure due to missing URLs.
|
|
69
|
-
|
|
70
|
-
sudo apt-get install -y --no-install-recommends \
|
|
71
|
-
build-essential \
|
|
72
|
-
glslc \
|
|
73
|
-
gcc-14-riscv64-linux-gnu \
|
|
74
|
-
g++-14-riscv64-linux-gnu \
|
|
75
|
-
libvulkan-dev:riscv64 \
|
|
76
|
-
libcurl4-openssl-dev:riscv64
|
|
77
|
-
|
|
78
|
-
- name: Build
|
|
79
|
-
run: |
|
|
80
|
-
cmake -B build -DCMAKE_BUILD_TYPE=Release \
|
|
81
|
-
-DGGML_VULKAN=ON \
|
|
82
|
-
-DGGML_OPENMP=OFF \
|
|
83
|
-
-DLLAMA_BUILD_EXAMPLES=ON \
|
|
84
|
-
-DLLAMA_BUILD_TOOLS=ON \
|
|
85
|
-
-DLLAMA_BUILD_TESTS=OFF \
|
|
86
|
-
-DCMAKE_SYSTEM_NAME=Linux \
|
|
87
|
-
-DCMAKE_SYSTEM_PROCESSOR=riscv64 \
|
|
88
|
-
-DCMAKE_C_COMPILER=riscv64-linux-gnu-gcc-14 \
|
|
89
|
-
-DCMAKE_CXX_COMPILER=riscv64-linux-gnu-g++-14 \
|
|
90
|
-
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
91
|
-
-DCMAKE_FIND_ROOT_PATH=/usr/lib/riscv64-linux-gnu \
|
|
92
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
|
93
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
|
94
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
|
|
95
|
-
|
|
96
|
-
cmake --build build --config Release -j $(nproc)
|
|
97
|
-
|
|
98
|
-
ubuntu-24-arm64-vulkan-cross:
|
|
99
|
-
runs-on: ubuntu-24.04
|
|
100
|
-
|
|
101
|
-
steps:
|
|
102
|
-
- uses: actions/checkout@v4
|
|
103
|
-
- name: Setup Arm64
|
|
104
|
-
run: |
|
|
105
|
-
sudo dpkg --add-architecture arm64
|
|
106
|
-
|
|
107
|
-
# Add arch-specific repositories for non-amd64 architectures
|
|
108
|
-
cat << EOF | sudo tee /etc/apt/sources.list.d/arm64-ports.list
|
|
109
|
-
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ noble main universe
|
|
110
|
-
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe
|
|
111
|
-
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ noble-security main universe
|
|
112
|
-
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ noble-backports main universe
|
|
113
|
-
EOF
|
|
114
|
-
|
|
115
|
-
sudo apt-get update || true ;# Prevent failure due to missing URLs.
|
|
116
|
-
|
|
117
|
-
sudo apt-get install -y --no-install-recommends \
|
|
118
|
-
build-essential \
|
|
119
|
-
glslc \
|
|
120
|
-
crossbuild-essential-arm64 \
|
|
121
|
-
libvulkan-dev:arm64 \
|
|
122
|
-
libcurl4-openssl-dev:arm64
|
|
123
|
-
|
|
124
|
-
- name: Build
|
|
125
|
-
run: |
|
|
126
|
-
cmake -B build -DCMAKE_BUILD_TYPE=Release \
|
|
127
|
-
-DGGML_VULKAN=ON \
|
|
128
|
-
-DGGML_OPENMP=OFF \
|
|
129
|
-
-DLLAMA_BUILD_EXAMPLES=ON \
|
|
130
|
-
-DLLAMA_BUILD_TOOLS=ON \
|
|
131
|
-
-DLLAMA_BUILD_TESTS=OFF \
|
|
132
|
-
-DCMAKE_SYSTEM_NAME=Linux \
|
|
133
|
-
-DCMAKE_SYSTEM_PROCESSOR=aarch64 \
|
|
134
|
-
-DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc \
|
|
135
|
-
-DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ \
|
|
136
|
-
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
137
|
-
-DCMAKE_FIND_ROOT_PATH=/usr/lib/aarch64-linux-gnu \
|
|
138
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
|
139
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
|
140
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
|
|
141
|
-
|
|
142
|
-
cmake --build build --config Release -j $(nproc)
|
|
143
|
-
|
|
144
|
-
ubuntu-24-ppc64el-cpu-cross:
|
|
145
|
-
runs-on: ubuntu-24.04
|
|
146
|
-
|
|
147
|
-
steps:
|
|
148
|
-
- uses: actions/checkout@v4
|
|
149
|
-
- name: Setup PowerPC64le
|
|
150
|
-
run: |
|
|
151
|
-
sudo dpkg --add-architecture ppc64el
|
|
152
|
-
|
|
153
|
-
# Add arch-specific repositories for non-amd64 architectures
|
|
154
|
-
cat << EOF | sudo tee /etc/apt/sources.list.d/ppc64el-ports.list
|
|
155
|
-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble main universe
|
|
156
|
-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe
|
|
157
|
-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-security main universe
|
|
158
|
-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-backports main universe
|
|
159
|
-
EOF
|
|
160
|
-
|
|
161
|
-
sudo apt-get update || true ;# Prevent failure due to missing URLs.
|
|
162
|
-
|
|
163
|
-
sudo apt-get install -y --no-install-recommends \
|
|
164
|
-
build-essential \
|
|
165
|
-
gcc-14-powerpc64le-linux-gnu \
|
|
166
|
-
g++-14-powerpc64le-linux-gnu \
|
|
167
|
-
libcurl4-openssl-dev:ppc64el
|
|
168
|
-
|
|
169
|
-
- name: Build
|
|
170
|
-
run: |
|
|
171
|
-
cmake -B build -DCMAKE_BUILD_TYPE=Release \
|
|
172
|
-
-DGGML_OPENMP=OFF \
|
|
173
|
-
-DLLAMA_BUILD_EXAMPLES=ON \
|
|
174
|
-
-DLLAMA_BUILD_TOOLS=ON \
|
|
175
|
-
-DLLAMA_BUILD_TESTS=OFF \
|
|
176
|
-
-DCMAKE_SYSTEM_NAME=Linux \
|
|
177
|
-
-DCMAKE_SYSTEM_PROCESSOR=ppc64 \
|
|
178
|
-
-DCMAKE_C_COMPILER=powerpc64le-linux-gnu-gcc-14 \
|
|
179
|
-
-DCMAKE_CXX_COMPILER=powerpc64le-linux-gnu-g++-14 \
|
|
180
|
-
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
181
|
-
-DCMAKE_FIND_ROOT_PATH=/usr/lib/powerpc64le-linux-gnu \
|
|
182
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
|
183
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
|
184
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
|
|
185
|
-
|
|
186
|
-
cmake --build build --config Release -j $(nproc)
|
|
187
|
-
|
|
188
|
-
ubuntu-24-ppc64el-vulkan-cross:
|
|
189
|
-
runs-on: ubuntu-24.04
|
|
190
|
-
|
|
191
|
-
steps:
|
|
192
|
-
- uses: actions/checkout@v4
|
|
193
|
-
- name: Setup PowerPC64le
|
|
194
|
-
run: |
|
|
195
|
-
sudo dpkg --add-architecture ppc64el
|
|
196
|
-
|
|
197
|
-
# Add arch-specific repositories for non-amd64 architectures
|
|
198
|
-
cat << EOF | sudo tee /etc/apt/sources.list.d/ppc64el-ports.list
|
|
199
|
-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble main universe
|
|
200
|
-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-updates main universe
|
|
201
|
-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-security main universe
|
|
202
|
-
deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports/ noble-backports main universe
|
|
203
|
-
EOF
|
|
204
|
-
|
|
205
|
-
sudo apt-get update || true ;# Prevent failure due to missing URLs.
|
|
206
|
-
|
|
207
|
-
sudo apt-get install -y --no-install-recommends \
|
|
208
|
-
build-essential \
|
|
209
|
-
glslc \
|
|
210
|
-
gcc-14-powerpc64le-linux-gnu \
|
|
211
|
-
g++-14-powerpc64le-linux-gnu \
|
|
212
|
-
libvulkan-dev:ppc64el \
|
|
213
|
-
libcurl4-openssl-dev:ppc64el
|
|
214
|
-
|
|
215
|
-
- name: Build
|
|
216
|
-
run: |
|
|
217
|
-
cmake -B build -DCMAKE_BUILD_TYPE=Release \
|
|
218
|
-
-DGGML_VULKAN=ON \
|
|
219
|
-
-DGGML_OPENMP=OFF \
|
|
220
|
-
-DLLAMA_BUILD_EXAMPLES=ON \
|
|
221
|
-
-DLLAMA_BUILD_TOOLS=ON \
|
|
222
|
-
-DLLAMA_BUILD_TESTS=OFF \
|
|
223
|
-
-DCMAKE_SYSTEM_NAME=Linux \
|
|
224
|
-
-DCMAKE_SYSTEM_PROCESSOR=ppc64 \
|
|
225
|
-
-DCMAKE_C_COMPILER=powerpc64le-linux-gnu-gcc-14 \
|
|
226
|
-
-DCMAKE_CXX_COMPILER=powerpc64le-linux-gnu-g++-14 \
|
|
227
|
-
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
228
|
-
-DCMAKE_FIND_ROOT_PATH=/usr/lib/powerpc64le-linux-gnu \
|
|
229
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
|
|
230
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
|
|
231
|
-
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
|
|
232
|
-
|
|
233
|
-
cmake --build build --config Release -j $(nproc)
|