whisper.rn 0.5.2 → 0.5.3

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.
Files changed (57) hide show
  1. package/cpp/ggml-alloc.c +11 -4
  2. package/cpp/ggml-backend-reg.cpp +8 -0
  3. package/cpp/ggml-backend.cpp +0 -2
  4. package/cpp/ggml-cpu/arch/arm/quants.c +428 -26
  5. package/cpp/ggml-cpu/ggml-cpu-impl.h +3 -1
  6. package/cpp/ggml-cpu/ggml-cpu.c +50 -21
  7. package/cpp/ggml-cpu/ops.cpp +458 -349
  8. package/cpp/ggml-cpu/ops.h +4 -4
  9. package/cpp/ggml-cpu/repack.cpp +143 -29
  10. package/cpp/ggml-cpu/simd-mappings.h +25 -25
  11. package/cpp/ggml-cpu/unary-ops.cpp +16 -0
  12. package/cpp/ggml-cpu/unary-ops.h +2 -0
  13. package/cpp/ggml-cpu/vec.cpp +17 -0
  14. package/cpp/ggml-cpu/vec.h +10 -0
  15. package/cpp/ggml-impl.h +17 -1
  16. package/cpp/ggml-metal/ggml-metal-context.m +5 -6
  17. package/cpp/ggml-metal/ggml-metal-device.cpp +101 -4
  18. package/cpp/ggml-metal/ggml-metal-device.h +8 -1
  19. package/cpp/ggml-metal/ggml-metal-device.m +216 -14
  20. package/cpp/ggml-metal/ggml-metal-impl.h +90 -2
  21. package/cpp/ggml-metal/ggml-metal-ops.cpp +346 -85
  22. package/cpp/ggml-metal/ggml-metal-ops.h +2 -0
  23. package/cpp/ggml-metal/ggml-metal.cpp +5 -0
  24. package/cpp/ggml-metal/ggml-metal.metal +12436 -0
  25. package/cpp/ggml.c +154 -5
  26. package/cpp/ggml.h +73 -0
  27. package/cpp/whisper.cpp +5 -1
  28. package/ios/rnwhisper.xcframework/ios-arm64/rnwhisper.framework/Headers/ggml-impl.h +17 -1
  29. package/ios/rnwhisper.xcframework/ios-arm64/rnwhisper.framework/Headers/ggml.h +73 -0
  30. package/ios/rnwhisper.xcframework/ios-arm64/rnwhisper.framework/Info.plist +0 -0
  31. package/ios/rnwhisper.xcframework/ios-arm64/rnwhisper.framework/ggml-metal.metal +12436 -0
  32. package/ios/rnwhisper.xcframework/ios-arm64/rnwhisper.framework/rnwhisper +0 -0
  33. package/ios/rnwhisper.xcframework/ios-arm64_x86_64-simulator/rnwhisper.framework/Headers/ggml-impl.h +17 -1
  34. package/ios/rnwhisper.xcframework/ios-arm64_x86_64-simulator/rnwhisper.framework/Headers/ggml.h +73 -0
  35. package/ios/rnwhisper.xcframework/ios-arm64_x86_64-simulator/rnwhisper.framework/Info.plist +0 -0
  36. package/ios/rnwhisper.xcframework/ios-arm64_x86_64-simulator/rnwhisper.framework/_CodeSignature/CodeResources +1 -1
  37. package/ios/rnwhisper.xcframework/ios-arm64_x86_64-simulator/rnwhisper.framework/ggml-metal.metal +12436 -0
  38. package/ios/rnwhisper.xcframework/ios-arm64_x86_64-simulator/rnwhisper.framework/rnwhisper +0 -0
  39. package/ios/rnwhisper.xcframework/tvos-arm64/rnwhisper.framework/Headers/ggml-impl.h +17 -1
  40. package/ios/rnwhisper.xcframework/tvos-arm64/rnwhisper.framework/Headers/ggml.h +73 -0
  41. package/ios/rnwhisper.xcframework/tvos-arm64/rnwhisper.framework/Info.plist +0 -0
  42. package/ios/rnwhisper.xcframework/tvos-arm64/rnwhisper.framework/ggml-metal.metal +12436 -0
  43. package/ios/rnwhisper.xcframework/tvos-arm64/rnwhisper.framework/rnwhisper +0 -0
  44. package/ios/rnwhisper.xcframework/tvos-arm64_x86_64-simulator/rnwhisper.framework/Headers/ggml-impl.h +17 -1
  45. package/ios/rnwhisper.xcframework/tvos-arm64_x86_64-simulator/rnwhisper.framework/Headers/ggml.h +73 -0
  46. package/ios/rnwhisper.xcframework/tvos-arm64_x86_64-simulator/rnwhisper.framework/Info.plist +0 -0
  47. package/ios/rnwhisper.xcframework/tvos-arm64_x86_64-simulator/rnwhisper.framework/_CodeSignature/CodeResources +1 -1
  48. package/ios/rnwhisper.xcframework/tvos-arm64_x86_64-simulator/rnwhisper.framework/ggml-metal.metal +12436 -0
  49. package/ios/rnwhisper.xcframework/tvos-arm64_x86_64-simulator/rnwhisper.framework/rnwhisper +0 -0
  50. package/package.json +1 -1
  51. package/whisper-rn.podspec +1 -1
  52. package/cpp/ggml-metal/ggml-whisper-sim.metallib +0 -0
  53. package/cpp/ggml-metal/ggml-whisper.metallib +0 -0
  54. package/ios/rnwhisper.xcframework/ios-arm64/rnwhisper.framework/ggml-whisper.metallib +0 -0
  55. package/ios/rnwhisper.xcframework/ios-arm64_x86_64-simulator/rnwhisper.framework/ggml-whisper-sim.metallib +0 -0
  56. package/ios/rnwhisper.xcframework/tvos-arm64/rnwhisper.framework/ggml-whisper.metallib +0 -0
  57. package/ios/rnwhisper.xcframework/tvos-arm64_x86_64-simulator/rnwhisper.framework/ggml-whisper-sim.metallib +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whisper.rn",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "React Native binding of whisper.cpp",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
35
35
 
36
36
  if ENV["RNWHISPER_BUILD_FROM_SOURCE"] == "1"
37
37
  s.source_files = "ios/**/*.{h,m,mm}", "cpp/**/*.{h,cpp,hpp,c,m,mm}"
38
- s.resources = "cpp/**/*.{metallib}"
38
+ s.resources = "cpp/ggml-metal/ggml-metal.metal"
39
39
  base_compiler_flags += " -DRNWHISPER_BUILD_FROM_SOURCE"
40
40
 
41
41
  s.subspec "no-require-arc" do |ss|