]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ruby : add Core ML support (#3214)
authorKITAITI Makoto <redacted>
Sun, 1 Jun 2025 09:16:02 +0000 (18:16 +0900)
committerGitHub <redacted>
Sun, 1 Jun 2025 09:16:02 +0000 (18:16 +0900)
commit0251445005a3ea9db60bd5f47a3470f08a2414ca
tree607d7a46b397e06ac306b6e00e5fc9f4783b2507
parent98dfe8dc264b7d0d1daccfff9a9c043bcc2ece4b
ruby : add Core ML support (#3214)

* Prevent overflow

* Fix memsize of Whisper::Context

* Rename xxx_initialize to more Ruby-esque name: xxx_s_new

* Define Whisper::Model::ZipURI

* Define Whisper::Model.coreml_compiled_models

* Make Options' @cmake_options Hash

* Use --{enable,disable}-whisper-coreml option for -I/opt/homebrew/opt/llvm/include

* Prepare Core ML model if enabled

* Add test for ZipURI

* Add signatures for ZipURI

* Add Whisper.system_info_str

* Add test for Whisper.system_info_str

* Add signagure for Model.coreml_compiled_models

* Add signature for Whisper.system_info_str

* Add test for Core ML

* Update date

* Maintain .gitignore
14 files changed:
bindings/ruby/.gitignore
bindings/ruby/ext/.gitignore
bindings/ruby/ext/options.rb
bindings/ruby/ext/ruby_whisper.c
bindings/ruby/ext/ruby_whisper_context.c
bindings/ruby/ext/ruby_whisper_model.c
bindings/ruby/ext/ruby_whisper_params.c
bindings/ruby/ext/ruby_whisper_segment.c
bindings/ruby/lib/whisper/model/uri.rb
bindings/ruby/sig/whisper.rbs
bindings/ruby/tests/test_model.rb
bindings/ruby/tests/test_package.rb
bindings/ruby/tests/test_whisper.rb
bindings/ruby/whispercpp.gemspec