@agency-lang/whisper-local 0.0.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 +51 -0
- package/README.md +145 -0
- package/build/Release/whisper_addon.node +0 -0
- package/dist/src/addon.d.ts +11 -0
- package/dist/src/addon.js +22 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +117 -0
- package/dist/src/ffmpeg.d.ts +11 -0
- package/dist/src/ffmpeg.js +154 -0
- package/dist/src/handleCache.d.ts +9 -0
- package/dist/src/handleCache.js +83 -0
- package/dist/src/modelManager.d.ts +12 -0
- package/dist/src/modelManager.js +172 -0
- package/dist/src/packageRoot.d.ts +8 -0
- package/dist/src/packageRoot.js +21 -0
- package/dist/src/transcribe.d.ts +2 -0
- package/dist/src/transcribe.js +36 -0
- package/dist/src/types.d.ts +11 -0
- package/dist/src/types.js +17 -0
- package/index.agency +32 -0
- package/models.lock.json +55 -0
- package/package.json +52 -0
- package/vendor/whisper.cpp/CMakeLists.txt +251 -0
- package/vendor/whisper.cpp/LICENSE +21 -0
- package/vendor/whisper.cpp/UPSTREAM_SHA256 +1 -0
- package/vendor/whisper.cpp/VERSION +1 -0
- package/vendor/whisper.cpp/cmake/DefaultTargetOptions.cmake +16 -0
- package/vendor/whisper.cpp/cmake/FindFFmpeg.cmake +163 -0
- package/vendor/whisper.cpp/cmake/build-info.cmake +60 -0
- package/vendor/whisper.cpp/cmake/git-vars.cmake +22 -0
- package/vendor/whisper.cpp/cmake/whisper-config.cmake.in +65 -0
- package/vendor/whisper.cpp/cmake/whisper.pc.in +10 -0
- package/vendor/whisper.cpp/ggml/CMakeLists.txt +434 -0
- package/vendor/whisper.cpp/ggml/cmake/BuildTypes.cmake +54 -0
- package/vendor/whisper.cpp/ggml/cmake/GitVars.cmake +22 -0
- package/vendor/whisper.cpp/ggml/cmake/common.cmake +50 -0
- package/vendor/whisper.cpp/ggml/cmake/ggml-config.cmake.in +152 -0
- package/vendor/whisper.cpp/ggml/include/ggml-alloc.h +76 -0
- package/vendor/whisper.cpp/ggml/include/ggml-backend.h +354 -0
- package/vendor/whisper.cpp/ggml/include/ggml-blas.h +25 -0
- package/vendor/whisper.cpp/ggml/include/ggml-cann.h +123 -0
- package/vendor/whisper.cpp/ggml/include/ggml-cpp.h +39 -0
- package/vendor/whisper.cpp/ggml/include/ggml-cpu.h +143 -0
- package/vendor/whisper.cpp/ggml/include/ggml-cuda.h +47 -0
- package/vendor/whisper.cpp/ggml/include/ggml-kompute.h +50 -0
- package/vendor/whisper.cpp/ggml/include/ggml-metal.h +66 -0
- package/vendor/whisper.cpp/ggml/include/ggml-opencl.h +26 -0
- package/vendor/whisper.cpp/ggml/include/ggml-opt.h +237 -0
- package/vendor/whisper.cpp/ggml/include/ggml-rpc.h +33 -0
- package/vendor/whisper.cpp/ggml/include/ggml-sycl.h +49 -0
- package/vendor/whisper.cpp/ggml/include/ggml-vulkan.h +29 -0
- package/vendor/whisper.cpp/ggml/include/ggml.h +2221 -0
- package/vendor/whisper.cpp/ggml/include/gguf.h +202 -0
- package/vendor/whisper.cpp/ggml/src/CMakeLists.txt +404 -0
- package/vendor/whisper.cpp/ggml/src/ggml-alloc.c +1042 -0
- package/vendor/whisper.cpp/ggml/src/ggml-amx/CMakeLists.txt +107 -0
- package/vendor/whisper.cpp/ggml/src/ggml-amx/common.h +94 -0
- package/vendor/whisper.cpp/ggml/src/ggml-amx/ggml-amx.cpp +446 -0
- package/vendor/whisper.cpp/ggml/src/ggml-amx/mmq.cpp +2510 -0
- package/vendor/whisper.cpp/ggml/src/ggml-amx/mmq.h +17 -0
- package/vendor/whisper.cpp/ggml/src/ggml-backend-impl.h +255 -0
- package/vendor/whisper.cpp/ggml/src/ggml-backend-reg.cpp +591 -0
- package/vendor/whisper.cpp/ggml/src/ggml-backend.cpp +2016 -0
- package/vendor/whisper.cpp/ggml/src/ggml-blas/CMakeLists.txt +87 -0
- package/vendor/whisper.cpp/ggml/src/ggml-blas/ggml-blas.cpp +517 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/CMakeLists.txt +75 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/Doxyfile +2579 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/acl_tensor.cpp +181 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/acl_tensor.h +258 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/aclnn_ops.cpp +3193 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/aclnn_ops.h +1125 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/common.h +425 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/ggml-cann.cpp +2630 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/kernels/CMakeLists.txt +30 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/kernels/ascendc_kernels.h +19 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/kernels/dup.cpp +234 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/kernels/get_row_f16.cpp +197 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/kernels/get_row_f32.cpp +190 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/kernels/get_row_q4_0.cpp +204 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/kernels/get_row_q8_0.cpp +191 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/kernels/quantize_f16_q8_0.cpp +218 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/kernels/quantize_f32_q8_0.cpp +216 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cann/kernels/quantize_float_to_q4_0.cpp +295 -0
- package/vendor/whisper.cpp/ggml/src/ggml-common.h +1861 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/CMakeLists.txt +584 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/amx/amx.cpp +221 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/amx/amx.h +8 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/amx/common.h +91 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/amx/mmq.cpp +2511 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/amx/mmq.h +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/arm/cpu-feats.cpp +94 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/arm/quants.c +4113 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/arm/repack.cpp +2162 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/loongarch/quants.c +2638 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/powerpc/cpu-feats.cpp +82 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/powerpc/quants.c +2731 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/riscv/quants.c +2068 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/riscv/repack.cpp +396 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/s390/quants.c +1299 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/wasm/quants.c +1480 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/x86/cpu-feats.cpp +327 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/x86/quants.c +4310 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch/x86/repack.cpp +3284 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/arch-fallback.h +184 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/binary-ops.cpp +158 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/binary-ops.h +16 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/cmake/FindSIMD.cmake +100 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/common.h +72 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu-impl.h +511 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu.c +3473 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/ggml-cpu.cpp +671 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/hbm.cpp +55 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/hbm.h +8 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/kleidiai/kernels.cpp +337 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/kleidiai/kernels.h +95 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/kleidiai/kleidiai.cpp +482 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/kleidiai/kleidiai.h +17 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/llamafile/sgemm.cpp +3593 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/llamafile/sgemm.h +19 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/ops.cpp +9085 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/ops.h +111 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/quants.c +1157 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/quants.h +89 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/repack.cpp +1570 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/repack.h +98 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/simd-mappings.h +1006 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/traits.cpp +36 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/traits.h +38 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/unary-ops.cpp +186 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/unary-ops.h +28 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/vec.cpp +321 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cpu/vec.h +973 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/CMakeLists.txt +184 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/acc.cu +61 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/acc.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/arange.cu +34 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/arange.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/argmax.cu +91 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/argmax.cuh +3 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/argsort.cu +104 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/argsort.cuh +3 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/binbcast.cu +363 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/binbcast.cuh +9 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/clamp.cu +45 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/clamp.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/common.cuh +812 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/concat.cu +221 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/concat.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/conv-transpose-1d.cu +89 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/conv-transpose-1d.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/conv2d-dw.cu +161 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/conv2d-dw.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/conv2d-transpose.cu +91 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/conv2d-transpose.cuh +4 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/convert.cu +730 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/convert.cuh +26 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/count-equal.cu +64 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/count-equal.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/cp-async.cuh +57 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/cpy.cu +705 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/cpy.cuh +11 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/cross-entropy-loss.cu +189 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/cross-entropy-loss.cuh +7 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/dequantize.cuh +103 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/diagmask.cu +40 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/diagmask.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn-common.cuh +881 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn-mma-f16.cuh +1474 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn-tile-f16.cu +357 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn-tile-f16.cuh +3 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn-tile-f32.cu +365 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn-tile-f32.cuh +3 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn-vec-f16.cuh +482 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn-vec-f32.cuh +472 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn-wmma-f16.cu +634 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn-wmma-f16.cuh +3 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn.cu +346 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/fattn.cuh +3 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/getrows.cu +275 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/getrows.cuh +15 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/ggml-cuda.cu +3562 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/gla.cu +93 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/gla.cuh +3 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/im2col.cu +103 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/im2col.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/mma.cuh +396 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/mmq.cu +324 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/mmq.cuh +3217 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/mmv.cu +336 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/mmv.cuh +12 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/mmvq.cu +595 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/mmvq.cuh +12 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/norm.cu +458 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/norm.cuh +11 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/opt-step-adamw.cu +78 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/opt-step-adamw.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/out-prod.cu +68 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/out-prod.cuh +3 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/pad.cu +49 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/pad.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/pool2d.cu +94 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/pool2d.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/quantize.cu +190 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/quantize.cuh +27 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/rope.cu +456 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/rope.cuh +7 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/scale.cu +31 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/scale.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/softmax.cu +283 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/softmax.cuh +7 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/ssm-conv.cu +148 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/ssm-conv.cuh +3 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/ssm-scan.cu +155 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/ssm-scan.cuh +3 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/sum.cu +45 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/sum.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/sumrows.cu +39 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/sumrows.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_1-ncols2_16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_1-ncols2_8.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_16-ncols2_1.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_16-ncols2_2.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_16-ncols2_4.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_2-ncols2_16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_2-ncols2_4.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_2-ncols2_8.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_32-ncols2_1.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_32-ncols2_2.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_4-ncols2_16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_4-ncols2_2.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_4-ncols2_4.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_4-ncols2_8.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_64-ncols2_1.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_8-ncols2_1.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_8-ncols2_2.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_8-ncols2_4.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-mma-f16-instance-ncols1_8-ncols2_8.cu +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-f16-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-f16-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-f16-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-f16-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-f16-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-f16-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_0-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_0-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_0-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_0-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_0-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_0-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_1-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_1-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_1-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_1-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_1-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q4_1-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_0-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_0-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_0-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_0-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_0-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_0-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_1-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_1-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_1-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_1-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_1-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q5_1-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q8_0-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q8_0-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q8_0-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q8_0-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q8_0-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs128-q8_0-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs256-f16-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs64-f16-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs64-f16-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs64-f16-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs64-f16-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs64-f16-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs64-f16-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-f16-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-f16-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-f16-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-f16-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-f16-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-f16-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_0-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_0-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_0-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_0-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_0-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_0-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_1-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_1-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_1-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_1-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_1-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q4_1-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_0-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_0-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_0-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_0-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_0-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_0-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_1-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_1-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_1-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_1-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_1-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q5_1-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q8_0-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q8_0-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q8_0-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q8_0-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q8_0-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs128-q8_0-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs256-f16-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs64-f16-f16.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs64-f16-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs64-f16-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs64-f16-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs64-f16-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f32-instance-hs64-f16-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/generate_cu_files.py +78 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-iq1_s.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-iq2_s.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-iq2_xs.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-iq2_xxs.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-iq3_s.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-iq3_xxs.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-iq4_nl.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-iq4_xs.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-q2_k.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-q3_k.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-q4_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-q4_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-q4_k.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-q5_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-q5_1.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-q5_k.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-q6_k.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/template-instances/mmq-instance-q8_0.cu +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/tsembd.cu +47 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/tsembd.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/unary.cu +289 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/unary.cuh +59 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/upscale.cu +51 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/upscale.cuh +5 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/vecdotq.cuh +1135 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/vendors/cuda.h +15 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/vendors/hip.h +243 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/vendors/musa.h +140 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/wkv.cu +199 -0
- package/vendor/whisper.cpp/ggml/src/ggml-cuda/wkv.cuh +7 -0
- package/vendor/whisper.cpp/ggml/src/ggml-hip/CMakeLists.txt +135 -0
- package/vendor/whisper.cpp/ggml/src/ggml-impl.h +603 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/CMakeLists.txt +166 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/ggml-kompute.cpp +2251 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/common.comp +112 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_add.comp +58 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_addrow.comp +25 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_cpy_f16_f16.comp +52 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_cpy_f16_f32.comp +52 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_cpy_f32_f16.comp +52 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_cpy_f32_f32.comp +52 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_diagmask.comp +30 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_gelu.comp +22 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_getrows.comp +17 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_getrows_f16.comp +31 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_getrows_f32.comp +31 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_getrows_q4_0.comp +38 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_getrows_q4_1.comp +39 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_getrows_q6_k.comp +44 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_mul.comp +52 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_mul_mat_f16.comp +69 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_mul_mat_mat_f32.comp +51 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_mul_mat_q4_0.comp +33 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_mul_mat_q4_1.comp +35 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_mul_mat_q4_k.comp +140 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_mul_mat_q6_k.comp +106 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_mul_mat_q8_0.comp +73 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_mul_mv_q_n.comp +52 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_mul_mv_q_n_pre.comp +28 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_norm.comp +84 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_relu.comp +21 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_rmsnorm.comp +53 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_rope_neox_f16.comp +52 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_rope_neox_f32.comp +52 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_rope_norm_f16.comp +52 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_rope_norm_f32.comp +52 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_scale.comp +19 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_scale_8.comp +23 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_silu.comp +22 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/op_softmax.comp +72 -0
- package/vendor/whisper.cpp/ggml/src/ggml-kompute/kompute-shaders/rope_common.comp +71 -0
- package/vendor/whisper.cpp/ggml/src/ggml-metal/CMakeLists.txt +121 -0
- package/vendor/whisper.cpp/ggml/src/ggml-metal/ggml-metal-impl.h +622 -0
- package/vendor/whisper.cpp/ggml/src/ggml-metal/ggml-metal.m +6023 -0
- package/vendor/whisper.cpp/ggml/src/ggml-metal/ggml-metal.metal +7124 -0
- package/vendor/whisper.cpp/ggml/src/ggml-musa/CMakeLists.txt +113 -0
- package/vendor/whisper.cpp/ggml/src/ggml-musa/mudnn.cu +112 -0
- package/vendor/whisper.cpp/ggml/src/ggml-musa/mudnn.cuh +12 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/CMakeLists.txt +109 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/ggml-opencl.cpp +6665 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/add.cl +83 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/argsort.cl +86 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/clamp.cl +20 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/concat.cl +109 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/cpy.cl +184 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/cvt.cl +118 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/diag_mask_inf.cl +58 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/div.cl +72 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/embed_kernel.py +26 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/gelu.cl +62 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/gemv_noshuffle.cl +268 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/gemv_noshuffle_general.cl +274 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/get_rows.cl +163 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/group_norm.cl +72 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/im2col_f16.cl +57 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/im2col_f32.cl +57 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul.cl +79 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mat_Ab_Bi_8x4.cl +139 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_f16_f16.cl +118 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_f16_f32.cl +118 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_f16_f32_1row.cl +94 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_f16_f32_l4.cl +84 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_f32_f32.cl +118 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_id_q4_0_f32_8x_flat.cl +283 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_q4_0_f32.cl +192 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_q4_0_f32_1d_16x_flat.cl +307 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_q4_0_f32_1d_8x_flat.cl +265 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_q4_0_f32_8x_flat.cl +272 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_q4_0_f32_v.cl +254 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/mul_mv_q6_k.cl +190 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/norm.cl +81 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/pad.cl +30 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/relu.cl +16 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/repeat.cl +39 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/rms_norm.cl +96 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/rope.cl +721 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/scale.cl +16 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/sigmoid.cl +29 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/silu.cl +30 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/softmax_4_f16.cl +87 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/softmax_4_f32.cl +87 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/softmax_f16.cl +86 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/softmax_f32.cl +86 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/sub.cl +72 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/sum_rows.cl +39 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/tanh.cl +63 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/transpose.cl +84 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/tsembd.cl +48 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opencl/kernels/upscale.cl +121 -0
- package/vendor/whisper.cpp/ggml/src/ggml-opt.cpp +1037 -0
- package/vendor/whisper.cpp/ggml/src/ggml-quants.c +5230 -0
- package/vendor/whisper.cpp/ggml/src/ggml-quants.h +100 -0
- package/vendor/whisper.cpp/ggml/src/ggml-rpc/CMakeLists.txt +9 -0
- package/vendor/whisper.cpp/ggml/src/ggml-rpc/ggml-rpc.cpp +1816 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/CMakeLists.txt +189 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/backend.hpp +37 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/binbcast.cpp +344 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/binbcast.hpp +39 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/common.cpp +83 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/common.hpp +584 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/concat.cpp +182 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/concat.hpp +20 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/conv.cpp +95 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/conv.hpp +20 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/convert.cpp +575 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/convert.hpp +34 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/cpy.cpp +839 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/cpy.hpp +11 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/dequantize.hpp +823 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/dmmv.cpp +1144 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/dmmv.hpp +27 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/dpct/helper.hpp +2987 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/element_wise.cpp +1511 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/element_wise.hpp +77 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/gemm.hpp +102 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/getrows.cpp +212 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/getrows.hpp +20 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/ggml-sycl.cpp +4608 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/gla.cpp +106 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/gla.hpp +8 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/im2col.cpp +136 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/im2col.hpp +21 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/mmq.cpp +3010 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/mmq.hpp +33 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/mmvq.cpp +1065 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/mmvq.hpp +27 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/norm.cpp +482 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/norm.hpp +26 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/outprod.cpp +47 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/outprod.hpp +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/presets.hpp +74 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/quants.hpp +111 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/rope.cpp +472 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/rope.hpp +20 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/softmax.cpp +261 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/softmax.hpp +20 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/sycl_hw.cpp +13 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/sycl_hw.hpp +23 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/tsembd.cpp +67 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/tsembd.hpp +20 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/vecdotq.hpp +1307 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/wkv.cpp +289 -0
- package/vendor/whisper.cpp/ggml/src/ggml-sycl/wkv.hpp +10 -0
- package/vendor/whisper.cpp/ggml/src/ggml-threading.cpp +12 -0
- package/vendor/whisper.cpp/ggml/src/ggml-threading.h +14 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/CMakeLists.txt +189 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/cmake/host-toolchain.cmake.in +15 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp +10937 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/CMakeLists.txt +27 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/acc.comp +29 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/add.comp +29 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/argmax.comp +51 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/argsort.comp +69 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/clamp.comp +17 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/concat.comp +41 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/contig_copy.comp +49 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/conv2d_dw.comp +105 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/conv_transpose_1d.comp +98 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/copy.comp +23 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/copy_from_quant.comp +51 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/copy_to_quant.comp +242 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/cos.comp +17 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/count_equal.comp +31 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_f32.comp +20 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_funcs.comp +462 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_funcs_cm2.comp +699 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_head.comp +13 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq1_m.comp +42 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq1_s.comp +35 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq2_s.comp +44 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq2_xs.comp +43 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq2_xxs.comp +48 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq3_s.comp +39 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq3_xxs.comp +49 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq4_nl.comp +32 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq4_xs.comp +34 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q2_k.comp +34 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q3_k.comp +42 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q4_0.comp +30 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q4_1.comp +32 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q4_k.comp +68 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q5_0.comp +34 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q5_1.comp +35 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q5_k.comp +70 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q6_k.comp +33 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/dequant_q8_0.comp +31 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/diag_mask_inf.comp +34 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/div.comp +27 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn.comp +337 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_base.comp +162 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm1.comp +360 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_cm2.comp +267 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/flash_attn_split_k_reduce.comp +59 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/gelu.comp +25 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/gelu_quick.comp +23 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/generic_binary_head.comp +64 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/generic_head.comp +9 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/generic_unary_head.comp +76 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/get_rows.comp +33 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/get_rows_quant.comp +41 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/group_norm.comp +66 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/im2col.comp +100 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/l2_norm.comp +41 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/leaky_relu.comp +22 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul.comp +27 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_split_k_reduce.comp +48 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec.comp +169 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_base.comp +118 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq1_m.comp +82 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq1_s.comp +79 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq2_s.comp +90 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq2_xs.comp +87 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq2_xxs.comp +87 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq3_s.comp +90 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iq3_xxs.comp +88 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_nc.comp +118 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_p021.comp +154 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_q2_k.comp +130 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_q3_k.comp +132 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_q4_k.comp +136 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_q5_k.comp +167 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_q6_k.comp +130 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mm.comp +868 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mm_cm2.comp +441 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mmq.comp +442 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/mul_mmq_funcs.comp +99 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/norm.comp +44 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/opt_step_adamw.comp +42 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/pad.comp +28 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/pool2d.comp +74 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/quantize_q8_1.comp +77 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/relu.comp +21 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/repeat.comp +26 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/repeat_back.comp +37 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/rms_norm.comp +52 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/rms_norm_back.comp +55 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/rope_head.comp +58 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/rope_multi.comp +60 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/rope_neox.comp +43 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/rope_norm.comp +43 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/rope_vision.comp +47 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/scale.comp +24 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/sigmoid.comp +20 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/silu.comp +22 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/silu_back.comp +26 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/sin.comp +17 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/soft_max.comp +173 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/soft_max_back.comp +50 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/square.comp +17 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/sub.comp +29 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/sum_rows.comp +37 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/tanh.comp +20 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/test_bfloat16_support.comp +7 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/test_coopmat2_support.comp +7 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/test_coopmat_support.comp +7 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/test_integer_dot_support.comp +7 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/timestep_embedding.comp +41 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/types.comp +1373 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/upscale.comp +36 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp +753 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/wkv6.comp +87 -0
- package/vendor/whisper.cpp/ggml/src/ggml-vulkan/vulkan-shaders/wkv7.comp +91 -0
- package/vendor/whisper.cpp/ggml/src/ggml.c +6601 -0
- package/vendor/whisper.cpp/ggml/src/ggml.cpp +26 -0
- package/vendor/whisper.cpp/ggml/src/gguf.cpp +1347 -0
- package/vendor/whisper.cpp/include/whisper.h +738 -0
- package/vendor/whisper.cpp/src/CMakeLists.txt +145 -0
- package/vendor/whisper.cpp/src/coreml/whisper-compat.h +10 -0
- package/vendor/whisper.cpp/src/coreml/whisper-compat.m +35 -0
- package/vendor/whisper.cpp/src/coreml/whisper-decoder-impl.h +158 -0
- package/vendor/whisper.cpp/src/coreml/whisper-decoder-impl.m +227 -0
- package/vendor/whisper.cpp/src/coreml/whisper-encoder-impl.h +154 -0
- package/vendor/whisper.cpp/src/coreml/whisper-encoder-impl.m +223 -0
- package/vendor/whisper.cpp/src/coreml/whisper-encoder.h +26 -0
- package/vendor/whisper.cpp/src/coreml/whisper-encoder.mm +73 -0
- package/vendor/whisper.cpp/src/openvino/whisper-openvino-encoder.cpp +108 -0
- package/vendor/whisper.cpp/src/openvino/whisper-openvino-encoder.h +31 -0
- package/vendor/whisper.cpp/src/whisper-arch.h +197 -0
- package/vendor/whisper.cpp/src/whisper.cpp +8969 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import * as fs from "node:fs/promises";
|
|
2
|
+
import { createWriteStream } from "node:fs";
|
|
3
|
+
import * as os from "node:os";
|
|
4
|
+
import * as path from "node:path";
|
|
5
|
+
import * as crypto from "node:crypto";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
import { KNOWN_MODELS } from "./types.js";
|
|
8
|
+
import { findPackageRoot } from "./packageRoot.js";
|
|
9
|
+
export class ModelManagerError extends Error {
|
|
10
|
+
constructor(message) {
|
|
11
|
+
super(message);
|
|
12
|
+
this.name = "ModelManagerError";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export function resolveModelDir() {
|
|
16
|
+
const override = process.env.AGENCY_WHISPER_MODELS_DIR;
|
|
17
|
+
if (override)
|
|
18
|
+
return override;
|
|
19
|
+
return path.join(os.homedir(), ".agency/models/whisper");
|
|
20
|
+
}
|
|
21
|
+
export function resolveModelPath(name, dir = resolveModelDir()) {
|
|
22
|
+
if (!KNOWN_MODELS.includes(name)) {
|
|
23
|
+
throw new ModelManagerError(`unknown model "${name}". Choices: ${KNOWN_MODELS.join(", ")}`);
|
|
24
|
+
}
|
|
25
|
+
return path.join(dir, `ggml-${name}.bin`);
|
|
26
|
+
}
|
|
27
|
+
export async function isModelInstalled(name, dir = resolveModelDir()) {
|
|
28
|
+
const p = resolveModelPath(name, dir);
|
|
29
|
+
try {
|
|
30
|
+
const st = await fs.stat(p);
|
|
31
|
+
return st.isFile();
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
38
|
+
const __dirname = path.dirname(__filename);
|
|
39
|
+
const PACKAGE_ROOT = findPackageRoot(__dirname);
|
|
40
|
+
// Parse + validate lockfile text. Pulled out from loadLockfile so the
|
|
41
|
+
// schema-rejection branch is testable without writing to PACKAGE_ROOT.
|
|
42
|
+
export function parseLockfile(text, source = "<inline>") {
|
|
43
|
+
let parsed;
|
|
44
|
+
try {
|
|
45
|
+
parsed = JSON.parse(text);
|
|
46
|
+
}
|
|
47
|
+
catch (err) {
|
|
48
|
+
throw new ModelManagerError(`failed to parse ${source}: ${err.message}`);
|
|
49
|
+
}
|
|
50
|
+
if (typeof parsed !== "object" || parsed === null) {
|
|
51
|
+
throw new ModelManagerError(`${source} is not a JSON object`);
|
|
52
|
+
}
|
|
53
|
+
const schemaVersion = parsed.schemaVersion;
|
|
54
|
+
if (schemaVersion !== 1) {
|
|
55
|
+
throw new ModelManagerError(`unsupported lockfile schema version ${String(schemaVersion)} in ${source}`);
|
|
56
|
+
}
|
|
57
|
+
const models = parsed.models;
|
|
58
|
+
if (typeof models !== "object" || models === null || Array.isArray(models)) {
|
|
59
|
+
throw new ModelManagerError(`${source} is missing a 'models' object (got ${models === null ? "null" : Array.isArray(models) ? "array" : typeof models})`);
|
|
60
|
+
}
|
|
61
|
+
return parsed;
|
|
62
|
+
}
|
|
63
|
+
export async function loadLockfile() {
|
|
64
|
+
const lockPath = path.join(PACKAGE_ROOT, "models.lock.json");
|
|
65
|
+
const text = await fs.readFile(lockPath, "utf8");
|
|
66
|
+
return parseLockfile(text, lockPath);
|
|
67
|
+
}
|
|
68
|
+
export async function sha256OfFile(filepath) {
|
|
69
|
+
const hash = crypto.createHash("sha256");
|
|
70
|
+
const fd = await fs.open(filepath, "r");
|
|
71
|
+
try {
|
|
72
|
+
const stream = fd.createReadStream();
|
|
73
|
+
for await (const chunk of stream)
|
|
74
|
+
hash.update(chunk);
|
|
75
|
+
}
|
|
76
|
+
finally {
|
|
77
|
+
await fd.close();
|
|
78
|
+
}
|
|
79
|
+
return hash.digest("hex");
|
|
80
|
+
}
|
|
81
|
+
function isAllowedScheme(url) {
|
|
82
|
+
// Allow https everywhere; allow http only for localhost test fixtures.
|
|
83
|
+
if (url.startsWith("https://"))
|
|
84
|
+
return true;
|
|
85
|
+
return /^http:\/\/(127\.0\.0\.1|localhost)(:|\/|$)/.test(url);
|
|
86
|
+
}
|
|
87
|
+
export async function downloadModel(entry, dest) {
|
|
88
|
+
// Defense in depth: even though the lockfile is committed and reviewed, refuse
|
|
89
|
+
// to fetch over plaintext. The SHA-256 check below would still catch tampering,
|
|
90
|
+
// but rejecting non-HTTPS up front avoids exposing the user's network to a
|
|
91
|
+
// downgrade attack and makes lockfile-tampering review easier.
|
|
92
|
+
// Allow http://127.0.0.1 and http://localhost for tests.
|
|
93
|
+
if (!isAllowedScheme(entry.url)) {
|
|
94
|
+
throw new ModelManagerError(`refusing to download model over non-HTTPS URL: ${entry.url}`);
|
|
95
|
+
}
|
|
96
|
+
await fs.mkdir(path.dirname(dest), { recursive: true });
|
|
97
|
+
const partial = `${dest}.partial`;
|
|
98
|
+
// Clean any leftover partial from a prior failed attempt.
|
|
99
|
+
await fs.rm(partial, { force: true });
|
|
100
|
+
const response = await fetch(entry.url);
|
|
101
|
+
if (!response.ok || !response.body) {
|
|
102
|
+
throw new ModelManagerError(`failed to download model from ${entry.url}: HTTP ${response.status}`);
|
|
103
|
+
}
|
|
104
|
+
// fetch() follows redirects by default. Re-check the *final* URL's scheme
|
|
105
|
+
// so a compromised endpoint can't downgrade us from https to http.
|
|
106
|
+
if (response.url && !isAllowedScheme(response.url)) {
|
|
107
|
+
throw new ModelManagerError(`refusing to follow redirect to non-HTTPS URL: ${response.url} (started from ${entry.url})`);
|
|
108
|
+
}
|
|
109
|
+
const hash = crypto.createHash("sha256");
|
|
110
|
+
const out = createWriteStream(partial);
|
|
111
|
+
// Helper: close the WriteStream cleanly before unlinking the partial file.
|
|
112
|
+
// On Windows an open handle can prevent fs.rm from deleting the file.
|
|
113
|
+
const closeStream = (err) => new Promise((resolve) => {
|
|
114
|
+
if (out.closed || out.destroyed) {
|
|
115
|
+
resolve();
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
out.once("close", () => resolve());
|
|
119
|
+
out.destroy(err);
|
|
120
|
+
});
|
|
121
|
+
try {
|
|
122
|
+
const reader = response.body.getReader();
|
|
123
|
+
for (;;) {
|
|
124
|
+
const { done, value } = await reader.read();
|
|
125
|
+
if (done)
|
|
126
|
+
break;
|
|
127
|
+
hash.update(value);
|
|
128
|
+
if (!out.write(value)) {
|
|
129
|
+
await new Promise((resolve) => out.once("drain", () => resolve()));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
await new Promise((resolve, reject) => {
|
|
133
|
+
out.end((err) => (err ? reject(err) : resolve()));
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
catch (err) {
|
|
137
|
+
await closeStream(err);
|
|
138
|
+
await fs.rm(partial, { force: true });
|
|
139
|
+
throw err;
|
|
140
|
+
}
|
|
141
|
+
const actual = hash.digest("hex");
|
|
142
|
+
if (actual !== entry.sha256) {
|
|
143
|
+
await fs.rm(partial, { force: true });
|
|
144
|
+
throw new ModelManagerError(`SHA-256 mismatch (expected ${entry.sha256}, got ${actual}). ` +
|
|
145
|
+
`The downloaded file has been deleted. This may indicate a corrupted ` +
|
|
146
|
+
`download or compromised mirror.`);
|
|
147
|
+
}
|
|
148
|
+
await fs.rename(partial, dest);
|
|
149
|
+
}
|
|
150
|
+
export async function ensureModel(name, dir = resolveModelDir()) {
|
|
151
|
+
const target = resolveModelPath(name, dir);
|
|
152
|
+
if (await isModelInstalled(name, dir))
|
|
153
|
+
return target;
|
|
154
|
+
const lock = await loadLockfile();
|
|
155
|
+
const entry = lock.models[name];
|
|
156
|
+
if (!entry) {
|
|
157
|
+
throw new ModelManagerError(`no lockfile entry for model "${name}"`);
|
|
158
|
+
}
|
|
159
|
+
// Defensive: refuse to "download" a placeholder. KNOWN_MODELS is kept in
|
|
160
|
+
// sync with models.lock.json so this branch should be unreachable in
|
|
161
|
+
// shipped code; it stays as belt-and-suspenders against a future regression
|
|
162
|
+
// where a placeholder slips back into the lockfile.
|
|
163
|
+
if (entry.sha256 === "0".repeat(64)) {
|
|
164
|
+
throw new ModelManagerError(`model "${name}" has a placeholder hash in models.lock.json. ` +
|
|
165
|
+
`The lockfile has not been populated yet (this is a setup bug).`);
|
|
166
|
+
}
|
|
167
|
+
if (process.stderr.isTTY) {
|
|
168
|
+
process.stderr.write(`Downloading ${name} (~${Math.round(entry.sizeBytes / 1e6)} MB) ...\n`);
|
|
169
|
+
}
|
|
170
|
+
await downloadModel(entry, target);
|
|
171
|
+
return target;
|
|
172
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Walk up from startDir until we find a directory containing package.json.
|
|
3
|
+
* Same shape as agency-lang's lib/importPaths.ts:findPackageRoot — kept inline
|
|
4
|
+
* here so this package has no implementation dependency on agency-lang internals.
|
|
5
|
+
* Don't replace with `path.join(__dirname, "..", "..")` — that breaks if tsc
|
|
6
|
+
* outDir changes.
|
|
7
|
+
*/
|
|
8
|
+
export declare function findPackageRoot(startDir: string): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import * as path from "node:path";
|
|
3
|
+
/**
|
|
4
|
+
* Walk up from startDir until we find a directory containing package.json.
|
|
5
|
+
* Same shape as agency-lang's lib/importPaths.ts:findPackageRoot — kept inline
|
|
6
|
+
* here so this package has no implementation dependency on agency-lang internals.
|
|
7
|
+
* Don't replace with `path.join(__dirname, "..", "..")` — that breaks if tsc
|
|
8
|
+
* outDir changes.
|
|
9
|
+
*/
|
|
10
|
+
export function findPackageRoot(startDir) {
|
|
11
|
+
let dir = startDir;
|
|
12
|
+
for (;;) {
|
|
13
|
+
if (existsSync(path.join(dir, "package.json")))
|
|
14
|
+
return dir;
|
|
15
|
+
const parent = path.dirname(dir);
|
|
16
|
+
if (parent === dir) {
|
|
17
|
+
throw new Error(`Could not find package root walking up from ${startDir} (no package.json)`);
|
|
18
|
+
}
|
|
19
|
+
dir = parent;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { decodeToPcm } from "./ffmpeg.js";
|
|
2
|
+
import { ensureModel } from "./modelManager.js";
|
|
3
|
+
import { loadAddon } from "./addon.js";
|
|
4
|
+
import { acquireHandle, isCached } from "./handleCache.js";
|
|
5
|
+
export async function transcribe(filepath, language = "", model = "base.en") {
|
|
6
|
+
if (!filepath) {
|
|
7
|
+
throw new Error("transcribe: filepath is required");
|
|
8
|
+
}
|
|
9
|
+
const modelPath = await ensureModel(model);
|
|
10
|
+
const instance = acquireHandle(modelPath, () => {
|
|
11
|
+
const { WhisperModel } = loadAddon();
|
|
12
|
+
return new WhisperModel(modelPath);
|
|
13
|
+
});
|
|
14
|
+
// If caching is disabled (AGENCY_WHISPER_HANDLE_CACHE_MAX=0), the instance
|
|
15
|
+
// is not in the cache; we must free it ourselves once the transcribe
|
|
16
|
+
// resolves so the underlying whisper_context isn't leaked.
|
|
17
|
+
const owned = !isCached(modelPath);
|
|
18
|
+
try {
|
|
19
|
+
const pcm = await decodeToPcm(filepath);
|
|
20
|
+
const segments = await instance.transcribe(pcm, {
|
|
21
|
+
language,
|
|
22
|
+
translate: false,
|
|
23
|
+
});
|
|
24
|
+
return segments.join("").trim();
|
|
25
|
+
}
|
|
26
|
+
finally {
|
|
27
|
+
if (owned) {
|
|
28
|
+
try {
|
|
29
|
+
instance.free();
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
// Best-effort; if the instance is still busy somehow, leave it for GC.
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const KNOWN_MODELS: readonly ["tiny", "tiny.en", "base", "base.en", "small", "small.en", "medium", "medium.en", "large-v3", "large-v3-turbo"];
|
|
2
|
+
export type ModelName = (typeof KNOWN_MODELS)[number];
|
|
3
|
+
export type LockfileEntry = {
|
|
4
|
+
url: string;
|
|
5
|
+
sha256: string;
|
|
6
|
+
sizeBytes: number;
|
|
7
|
+
};
|
|
8
|
+
export type Lockfile = {
|
|
9
|
+
schemaVersion: 1;
|
|
10
|
+
models: Record<ModelName, LockfileEntry>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Every entry here must have a real pinned URL + SHA-256 in
|
|
2
|
+
// models.lock.json. To add another upstream model, run
|
|
3
|
+
// `HF_COMMIT=<sha> MODELS="<name>" bash scripts/generate-lockfile.sh`,
|
|
4
|
+
// confirm the printed SHA against the HuggingFace UI, then add the name
|
|
5
|
+
// to this list and a row to README.md's Models table.
|
|
6
|
+
export const KNOWN_MODELS = [
|
|
7
|
+
"tiny",
|
|
8
|
+
"tiny.en",
|
|
9
|
+
"base",
|
|
10
|
+
"base.en",
|
|
11
|
+
"small",
|
|
12
|
+
"small.en",
|
|
13
|
+
"medium",
|
|
14
|
+
"medium.en",
|
|
15
|
+
"large-v3",
|
|
16
|
+
"large-v3-turbo",
|
|
17
|
+
];
|
package/index.agency
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
## Installation
|
|
3
|
+
|
|
4
|
+
```
|
|
5
|
+
npm install @agency-lang/whisper-local
|
|
6
|
+
npx -p @agency-lang/whisper-local agency-whisper build
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Requires `cmake`, a C++17 compiler, and `ffmpeg` on PATH.
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { transcribe } from "pkg::@agency-lang/whisper-local"
|
|
15
|
+
|
|
16
|
+
node main() {
|
|
17
|
+
const text = transcribe("interview.m4a", "en", "base.en")
|
|
18
|
+
print(text)
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The first call downloads the requested model (~150 MB for "base.en", less
|
|
23
|
+
for "tiny" / "tiny.en") into `~/.agency/models/whisper/`. Subsequent calls
|
|
24
|
+
reuse the local file with no network access.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
import { transcribe as transcribeImpl } from "./dist/src/transcribe.js"
|
|
28
|
+
|
|
29
|
+
/// Transcribe an audio file locally using whisper.cpp. No network at runtime.
|
|
30
|
+
export def transcribe(filepath: string, language: string = "", model: string = "base.en"): string {
|
|
31
|
+
return transcribeImpl(filepath, language, model)
|
|
32
|
+
}
|
package/models.lock.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"models": {
|
|
4
|
+
"tiny": {
|
|
5
|
+
"url": "https://huggingface.co/ggerganov/whisper.cpp/resolve/5359861c739e955e79d9a303bcbc70fb988958b1/ggml-tiny.bin",
|
|
6
|
+
"sha256": "be07e048e1e599ad46341c8d2a135645097a538221678b7acdd1b1919c6e1b21",
|
|
7
|
+
"sizeBytes": 77691713
|
|
8
|
+
},
|
|
9
|
+
"tiny.en": {
|
|
10
|
+
"url": "https://huggingface.co/ggerganov/whisper.cpp/resolve/5359861c739e955e79d9a303bcbc70fb988958b1/ggml-tiny.en.bin",
|
|
11
|
+
"sha256": "921e4cf8686fdd993dcd081a5da5b6c365bfde1162e72b08d75ac75289920b1f",
|
|
12
|
+
"sizeBytes": 77704715
|
|
13
|
+
},
|
|
14
|
+
"base": {
|
|
15
|
+
"url": "https://huggingface.co/ggerganov/whisper.cpp/resolve/5359861c739e955e79d9a303bcbc70fb988958b1/ggml-base.bin",
|
|
16
|
+
"sha256": "60ed5bc3dd14eea856493d334349b405782ddcaf0028d4b5df4088345fba2efe",
|
|
17
|
+
"sizeBytes": 147951465
|
|
18
|
+
},
|
|
19
|
+
"base.en": {
|
|
20
|
+
"url": "https://huggingface.co/ggerganov/whisper.cpp/resolve/5359861c739e955e79d9a303bcbc70fb988958b1/ggml-base.en.bin",
|
|
21
|
+
"sha256": "a03779c86df3323075f5e796cb2ce5029f00ec8869eee3fdfb897afe36c6d002",
|
|
22
|
+
"sizeBytes": 147964211
|
|
23
|
+
},
|
|
24
|
+
"small": {
|
|
25
|
+
"url": "https://huggingface.co/ggerganov/whisper.cpp/resolve/5359861c739e955e79d9a303bcbc70fb988958b1/ggml-small.bin",
|
|
26
|
+
"sha256": "1be3a9b2063867b937e64e2ec7483364a79917e157fa98c5d94b5c1fffea987b",
|
|
27
|
+
"sizeBytes": 487601967
|
|
28
|
+
},
|
|
29
|
+
"small.en": {
|
|
30
|
+
"url": "https://huggingface.co/ggerganov/whisper.cpp/resolve/5359861c739e955e79d9a303bcbc70fb988958b1/ggml-small.en.bin",
|
|
31
|
+
"sha256": "c6138d6d58ecc8322097e0f987c32f1be8bb0a18532a3f88f734d1bbf9c41e5d",
|
|
32
|
+
"sizeBytes": 487614201
|
|
33
|
+
},
|
|
34
|
+
"medium": {
|
|
35
|
+
"url": "https://huggingface.co/ggerganov/whisper.cpp/resolve/5359861c739e955e79d9a303bcbc70fb988958b1/ggml-medium.bin",
|
|
36
|
+
"sha256": "6c14d5adee5f86394037b4e4e8b59f1673b6cee10e3cf0b11bbdbee79c156208",
|
|
37
|
+
"sizeBytes": 1533763059
|
|
38
|
+
},
|
|
39
|
+
"medium.en": {
|
|
40
|
+
"url": "https://huggingface.co/ggerganov/whisper.cpp/resolve/5359861c739e955e79d9a303bcbc70fb988958b1/ggml-medium.en.bin",
|
|
41
|
+
"sha256": "cc37e93478338ec7700281a7ac30a10128929eb8f427dda2e865faa8f6da4356",
|
|
42
|
+
"sizeBytes": 1533774781
|
|
43
|
+
},
|
|
44
|
+
"large-v3": {
|
|
45
|
+
"url": "https://huggingface.co/ggerganov/whisper.cpp/resolve/5359861c739e955e79d9a303bcbc70fb988958b1/ggml-large-v3.bin",
|
|
46
|
+
"sha256": "64d182b440b98d5203c4f9bd541544d84c605196c4f7b845dfa11fb23594d1e2",
|
|
47
|
+
"sizeBytes": 3095033483
|
|
48
|
+
},
|
|
49
|
+
"large-v3-turbo": {
|
|
50
|
+
"url": "https://huggingface.co/ggerganov/whisper.cpp/resolve/5359861c739e955e79d9a303bcbc70fb988958b1/ggml-large-v3-turbo.bin",
|
|
51
|
+
"sha256": "1fc70f774d38eb169993ac391eea357ef47c88757ef72ee5943879b7e8e2bc69",
|
|
52
|
+
"sizeBytes": 1624555275
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agency-lang/whisper-local",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Local Whisper transcription for Agency using vendored whisper.cpp",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"agency": "./index.agency",
|
|
7
|
+
"main": "./dist/src/transcribe.js",
|
|
8
|
+
"bin": {
|
|
9
|
+
"agency-whisper": "./dist/src/cli.js"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/src/transcribe.d.ts",
|
|
14
|
+
"import": "./dist/src/transcribe.js"
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/",
|
|
20
|
+
"build/Release/whisper_addon.node",
|
|
21
|
+
"vendor/",
|
|
22
|
+
"CMakeLists.txt",
|
|
23
|
+
"index.agency",
|
|
24
|
+
"models.lock.json",
|
|
25
|
+
"README.md"
|
|
26
|
+
],
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"agency-lang": "0.1.2"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"cmake-js": "^7.3.0",
|
|
32
|
+
"node-addon-api": "^8.0.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@types/node": "^25.0.6",
|
|
36
|
+
"typescript": "^5.0.0",
|
|
37
|
+
"vitest": "^3.0.0"
|
|
38
|
+
},
|
|
39
|
+
"author": "Aditya Bhargava",
|
|
40
|
+
"license": "ISC",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/egonSchiele/agency-lang/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/egonSchiele/agency-lang",
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build:ts": "tsc",
|
|
47
|
+
"build:native": "cmake-js compile --runtime=node",
|
|
48
|
+
"build": "pnpm run build:native && pnpm run build:ts",
|
|
49
|
+
"test": "vitest",
|
|
50
|
+
"test:run": "vitest run"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.5) # for add_link_options and implicit target directories.
|
|
2
|
+
project("whisper.cpp" C CXX)
|
|
3
|
+
project("whisper.cpp" VERSION 1.7.6)
|
|
4
|
+
include(CheckIncludeFileCXX)
|
|
5
|
+
|
|
6
|
+
set(SOVERSION 1)
|
|
7
|
+
|
|
8
|
+
#set(CMAKE_WARN_DEPRECATED YES)
|
|
9
|
+
set(CMAKE_WARN_UNUSED_CLI YES)
|
|
10
|
+
|
|
11
|
+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
12
|
+
|
|
13
|
+
if (NOT XCODE AND NOT MSVC AND NOT CMAKE_BUILD_TYPE)
|
|
14
|
+
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
|
|
15
|
+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
|
|
16
|
+
endif()
|
|
17
|
+
|
|
18
|
+
# Add path to modules
|
|
19
|
+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
|
|
20
|
+
|
|
21
|
+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
22
|
+
|
|
23
|
+
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
|
24
|
+
set(WHISPER_STANDALONE ON)
|
|
25
|
+
|
|
26
|
+
include(git-vars)
|
|
27
|
+
|
|
28
|
+
# configure project version
|
|
29
|
+
configure_file(${CMAKE_SOURCE_DIR}/bindings/javascript/package-tmpl.json ${CMAKE_SOURCE_DIR}/bindings/javascript/package.json @ONLY)
|
|
30
|
+
else()
|
|
31
|
+
set(WHISPER_STANDALONE OFF)
|
|
32
|
+
endif()
|
|
33
|
+
|
|
34
|
+
if (EMSCRIPTEN)
|
|
35
|
+
set(BUILD_SHARED_LIBS_DEFAULT OFF)
|
|
36
|
+
|
|
37
|
+
option(WHISPER_WASM_SINGLE_FILE "whisper: embed WASM inside the generated whisper.js" ON)
|
|
38
|
+
|
|
39
|
+
# TODO: without these, we get the following error:
|
|
40
|
+
# wasm-ld: error: --shared-memory is disallowed by whisper.cpp.o because it was not compiled with 'atomics' or 'bulk-memory' features.
|
|
41
|
+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
|
|
42
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
|
|
43
|
+
|
|
44
|
+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s TOTAL_STACK=5242880")
|
|
45
|
+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -s TOTAL_STACK=5242880")
|
|
46
|
+
|
|
47
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
|
|
48
|
+
else()
|
|
49
|
+
if (MINGW)
|
|
50
|
+
set(BUILD_SHARED_LIBS_DEFAULT OFF)
|
|
51
|
+
else()
|
|
52
|
+
set(BUILD_SHARED_LIBS_DEFAULT ON)
|
|
53
|
+
endif()
|
|
54
|
+
endif()
|
|
55
|
+
|
|
56
|
+
option(BUILD_SHARED_LIBS "build shared libraries" ${BUILD_SHARED_LIBS_DEFAULT})
|
|
57
|
+
|
|
58
|
+
#
|
|
59
|
+
# option list
|
|
60
|
+
#
|
|
61
|
+
|
|
62
|
+
# debug
|
|
63
|
+
option(WHISPER_ALL_WARNINGS "whisper: enable all compiler warnings" ON)
|
|
64
|
+
option(WHISPER_ALL_WARNINGS_3RD_PARTY "whisper: enable all compiler warnings in 3rd party libs" OFF)
|
|
65
|
+
|
|
66
|
+
# build
|
|
67
|
+
option(WHISPER_FATAL_WARNINGS "whisper: enable -Werror flag" OFF)
|
|
68
|
+
option(WHISPER_USE_SYSTEM_GGML "whisper: use system-installed GGML library" OFF)
|
|
69
|
+
|
|
70
|
+
# sanitizers
|
|
71
|
+
option(WHISPER_SANITIZE_THREAD "whisper: enable thread sanitizer" OFF)
|
|
72
|
+
option(WHISPER_SANITIZE_ADDRESS "whisper: enable address sanitizer" OFF)
|
|
73
|
+
option(WHISPER_SANITIZE_UNDEFINED "whisper: enable undefined sanitizer" OFF)
|
|
74
|
+
|
|
75
|
+
# extra artifacts
|
|
76
|
+
option(WHISPER_BUILD_TESTS "whisper: build tests" ${WHISPER_STANDALONE})
|
|
77
|
+
option(WHISPER_BUILD_EXAMPLES "whisper: build examples" ${WHISPER_STANDALONE})
|
|
78
|
+
option(WHISPER_BUILD_SERVER "whisper: build server example" ${WHISPER_STANDALONE})
|
|
79
|
+
|
|
80
|
+
# 3rd party libs
|
|
81
|
+
option(WHISPER_CURL "whisper: use libcurl to download model from an URL" OFF)
|
|
82
|
+
option(WHISPER_SDL2 "whisper: support for libSDL2" OFF)
|
|
83
|
+
|
|
84
|
+
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
85
|
+
option(WHISPER_FFMPEG "whisper: support building and linking with ffmpeg libs (avcodec, swresample, ...)" OFF)
|
|
86
|
+
endif()
|
|
87
|
+
|
|
88
|
+
option(WHISPER_COREML "whisper: enable Core ML framework" OFF)
|
|
89
|
+
option(WHISPER_COREML_ALLOW_FALLBACK "whisper: allow non-CoreML fallback" OFF)
|
|
90
|
+
option(WHISPER_OPENVINO "whisper: support for OpenVINO" OFF)
|
|
91
|
+
|
|
92
|
+
# Required for relocatable CMake package
|
|
93
|
+
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/build-info.cmake)
|
|
94
|
+
|
|
95
|
+
# override ggml options
|
|
96
|
+
set(GGML_SANITIZE_THREAD ${WHISPER_SANITIZE_THREAD})
|
|
97
|
+
set(GGML_SANITIZE_ADDRESS ${WHISPER_SANITIZE_ADDRESS})
|
|
98
|
+
set(GGML_SANITIZE_UNDEFINED ${WHISPER_SANITIZE_UNDEFINED})
|
|
99
|
+
set(GGML_ALL_WARNINGS ${WHISPER_ALL_WARNINGS})
|
|
100
|
+
set(GGML_FATAL_WARNINGS ${WHISPER_FATAL_WARNINGS})
|
|
101
|
+
|
|
102
|
+
# transition helpers
|
|
103
|
+
function (whisper_option_depr TYPE OLD NEW)
|
|
104
|
+
if (${OLD})
|
|
105
|
+
message(${TYPE} "${OLD} is deprecated and will be removed in the future.\nUse ${NEW} instead\n")
|
|
106
|
+
set(${NEW} ON)
|
|
107
|
+
endif()
|
|
108
|
+
endfunction()
|
|
109
|
+
|
|
110
|
+
whisper_option_depr(FATAL_ERROR WHISPER_CUBLAS GGML_CUDA)
|
|
111
|
+
whisper_option_depr(WARNING WHISPER_CUDA GGML_CUDA)
|
|
112
|
+
whisper_option_depr(WARNING WHISPER_KOMPUTE GGML_KOMPUTE)
|
|
113
|
+
whisper_option_depr(WARNING WHISPER_METAL GGML_METAL)
|
|
114
|
+
whisper_option_depr(WARNING WHISPER_METAL_EMBED_LIBRARY GGML_METAL_EMBED_LIBRARY)
|
|
115
|
+
whisper_option_depr(WARNING WHISPER_NATIVE GGML_NATIVE)
|
|
116
|
+
whisper_option_depr(WARNING WHISPER_OPENMP GGML_OPENMP)
|
|
117
|
+
whisper_option_depr(WARNING WHISPER_RPC GGML_RPC)
|
|
118
|
+
whisper_option_depr(WARNING WHISPER_SYCL GGML_SYCL)
|
|
119
|
+
whisper_option_depr(WARNING WHISPER_SYCL_F16 GGML_SYCL_F16)
|
|
120
|
+
whisper_option_depr(WARNING WHISPER_CCACHE GGML_CCACHE)
|
|
121
|
+
|
|
122
|
+
if (GGML_CUDA AND NOT MSVC)
|
|
123
|
+
#GGML_CUDA enabled, add the necessary compile options -Wno-deprecated-gpu-targets
|
|
124
|
+
add_compile_options(-Wno-deprecated-gpu-targets)
|
|
125
|
+
endif()
|
|
126
|
+
|
|
127
|
+
#
|
|
128
|
+
# build the library
|
|
129
|
+
#
|
|
130
|
+
|
|
131
|
+
if (NOT TARGET ggml)
|
|
132
|
+
if (WHISPER_USE_SYSTEM_GGML)
|
|
133
|
+
find_package(ggml REQUIRED)
|
|
134
|
+
if (NOT ggml_FOUND)
|
|
135
|
+
message(FATAL_ERROR "System-installed GGML library not found.")
|
|
136
|
+
endif()
|
|
137
|
+
add_library(ggml ALIAS ggml::ggml)
|
|
138
|
+
else()
|
|
139
|
+
add_subdirectory(ggml)
|
|
140
|
+
if(WIN32)
|
|
141
|
+
# The following adds a _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR macro and is a workaround for
|
|
142
|
+
# the Windows C++ standard library which does not support constexpr mutexes.
|
|
143
|
+
# From the release notes://github.com/microsoft/STL/wiki/Changelog
|
|
144
|
+
# Disable constexpr mutex constructor on Windows
|
|
145
|
+
# Fixed mutex's constructor to be constexpr. #3824 #4000 #4339
|
|
146
|
+
# Note: Programs that aren't following the documented restrictions on binary compatibility may encounter
|
|
147
|
+
# null dereferences in mutex machinery. You must follow this rule:
|
|
148
|
+
# When you mix binaries built by different supported versions of the toolset, the Redistributable version
|
|
149
|
+
# must be at least as new as the latest toolset used by any app component.
|
|
150
|
+
# You can define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR as an escape hatch.
|
|
151
|
+
#
|
|
152
|
+
# Specifically to whisper.cpp this would cause a crash when using the Java bindings.
|
|
153
|
+
# resulting in a Invalid memory access error.
|
|
154
|
+
target_compile_definitions(ggml-base PRIVATE _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
|
|
155
|
+
endif()
|
|
156
|
+
endif()
|
|
157
|
+
# ... otherwise assume ggml is added by a parent CMakeLists.txt
|
|
158
|
+
endif()
|
|
159
|
+
add_subdirectory(src)
|
|
160
|
+
|
|
161
|
+
#
|
|
162
|
+
# install
|
|
163
|
+
#
|
|
164
|
+
|
|
165
|
+
include(GNUInstallDirs)
|
|
166
|
+
include(CMakePackageConfigHelpers)
|
|
167
|
+
|
|
168
|
+
set(WHISPER_BUILD_NUMBER ${BUILD_NUMBER})
|
|
169
|
+
set(WHISPER_BUILD_COMMIT ${BUILD_COMMIT})
|
|
170
|
+
set(WHISPER_INSTALL_VERSION ${CMAKE_PROJECT_VERSION})
|
|
171
|
+
|
|
172
|
+
set(WHISPER_INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR} CACHE PATH "Location of header files")
|
|
173
|
+
set(WHISPER_LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Location of library files")
|
|
174
|
+
set(WHISPER_BIN_INSTALL_DIR ${CMAKE_INSTALL_BINDIR} CACHE PATH "Location of binary files")
|
|
175
|
+
|
|
176
|
+
get_directory_property(WHISPER_TRANSIENT_DEFINES COMPILE_DEFINITIONS)
|
|
177
|
+
|
|
178
|
+
set_target_properties(whisper PROPERTIES PUBLIC_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/include/whisper.h)
|
|
179
|
+
install(TARGETS whisper LIBRARY PUBLIC_HEADER)
|
|
180
|
+
|
|
181
|
+
configure_package_config_file(
|
|
182
|
+
${CMAKE_CURRENT_SOURCE_DIR}/cmake/whisper-config.cmake.in
|
|
183
|
+
${CMAKE_CURRENT_BINARY_DIR}/whisper-config.cmake
|
|
184
|
+
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/whisper
|
|
185
|
+
PATH_VARS
|
|
186
|
+
WHISPER_INCLUDE_INSTALL_DIR
|
|
187
|
+
WHISPER_LIB_INSTALL_DIR
|
|
188
|
+
WHISPER_BIN_INSTALL_DIR )
|
|
189
|
+
|
|
190
|
+
write_basic_package_version_file(
|
|
191
|
+
${CMAKE_CURRENT_BINARY_DIR}/whisper-version.cmake
|
|
192
|
+
VERSION ${WHISPER_INSTALL_VERSION}
|
|
193
|
+
COMPATIBILITY SameMajorVersion)
|
|
194
|
+
|
|
195
|
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/whisper-config.cmake
|
|
196
|
+
${CMAKE_CURRENT_BINARY_DIR}/whisper-version.cmake
|
|
197
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/whisper)
|
|
198
|
+
|
|
199
|
+
configure_file(cmake/whisper.pc.in
|
|
200
|
+
"${CMAKE_CURRENT_BINARY_DIR}/whisper.pc"
|
|
201
|
+
@ONLY)
|
|
202
|
+
|
|
203
|
+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/whisper.pc"
|
|
204
|
+
DESTINATION lib/pkgconfig)
|
|
205
|
+
|
|
206
|
+
#
|
|
207
|
+
# programs, examples and tests
|
|
208
|
+
#
|
|
209
|
+
|
|
210
|
+
if (WHISPER_BUILD_TESTS AND NOT CMAKE_JS_VERSION)
|
|
211
|
+
include(CTest)
|
|
212
|
+
add_subdirectory(tests)
|
|
213
|
+
endif ()
|
|
214
|
+
|
|
215
|
+
if (WHISPER_BUILD_EXAMPLES)
|
|
216
|
+
add_subdirectory(examples)
|
|
217
|
+
endif()
|
|
218
|
+
|
|
219
|
+
if (MSVC)
|
|
220
|
+
set(MSVC_WARNING_FLAGS
|
|
221
|
+
/wd4101 # Unreferenced local variable
|
|
222
|
+
/wd4005 # Macro redefinition
|
|
223
|
+
/wd4065 # switch statement contains 'default' but no 'case' labels
|
|
224
|
+
/wd4267 # Conversion from 'size_t' to a smaller type, possible loss of data
|
|
225
|
+
/wd4244 # Conversion from one type to another type, possible loss of ata
|
|
226
|
+
/wd4805 # Unsafe mix of type
|
|
227
|
+
/wd4305 # Truncation from 'type1' to 'type2' (often double to float)
|
|
228
|
+
/wd4996 # Function or variable may be unsafe/deprecated
|
|
229
|
+
)
|
|
230
|
+
function(disable_msvc_warnings target_name)
|
|
231
|
+
if(TARGET ${target_name})
|
|
232
|
+
target_compile_options(${target_name} PRIVATE ${MSVC_WARNING_FLAGS})
|
|
233
|
+
endif()
|
|
234
|
+
endfunction()
|
|
235
|
+
|
|
236
|
+
if (WHISPER_BUILD_EXAMPLES)
|
|
237
|
+
disable_msvc_warnings(whisper)
|
|
238
|
+
disable_msvc_warnings(common)
|
|
239
|
+
disable_msvc_warnings(common-sdl)
|
|
240
|
+
disable_msvc_warnings(lsp)
|
|
241
|
+
disable_msvc_warnings(wchess-core)
|
|
242
|
+
disable_msvc_warnings(whisper-command)
|
|
243
|
+
disable_msvc_warnings(whisper-cli)
|
|
244
|
+
disable_msvc_warnings(whisper-server)
|
|
245
|
+
disable_msvc_warnings(whisper-stream)
|
|
246
|
+
disable_msvc_warnings(whisper-talk-llama)
|
|
247
|
+
disable_msvc_warnings(whisper-bench)
|
|
248
|
+
disable_msvc_warnings(quantize)
|
|
249
|
+
disable_msvc_warnings(vad-speech-segments)
|
|
250
|
+
endif()
|
|
251
|
+
endif()
|