ChetanXpro / nodejs-whisper

NodeJS Bindings for Whisper - the CPU version of OpenAI's Whisper, as initially crafted in C++ by ggerganov.
https://npmjs.com/nodejs-whisper
MIT License
93 stars 22 forks source link

Too much is being logged #114

Open binarykitchen opened 1 month ago

binarykitchen commented 1 month ago

Verbose flag is set to false, yet too much is logged, like that:

[dev:server] 
[dev:server] stderr--- whisper_init_from_file_with_params_no_state: loading model from './models/ggml-base.bin'
[dev:server] whisper_model_load: loading model
[dev:server] whisper_model_load: n_vocab       = 51865
[dev:server] whisper_model_load: n_audio_ctx   = 1500
[dev:server] whisper_model_load: n_audio_state = 512
[dev:server] whisper_model_load: n_audio_head  = 8
[dev:server] whisper_model_load: n_audio_layer = 6
[dev:server] whisper_model_load: n_text_ctx    = 448
[dev:server] whisper_model_load: n_text_state  = 512
[dev:server] whisper_model_load: n_text_head   = 8
[dev:server] whisper_model_load: n_text_layer  = 6
[dev:server] whisper_model_load: n_mels        = 80
[dev:server] whisper_model_load: ftype         = 1
[dev:server] whisper_model_load: qntvr         = 0
[dev:server] whisper_model_load: type          = 2 (base)
[dev:server] whisper_model_load: adding 1608 extra tokens

Probably from Python/C dunno ...

binarykitchen commented 1 month ago

@ChetanXpro Can you introduce a new logger option?

binarykitchen commented 1 month ago

If you are too busy, would you accept a PR from me?

ChetanXpro commented 1 month ago

@binarykitchen Yeah, I was a bit busy for some weeks. Maybe I will be free this week. Feel free to raise a PR, I am happy to merge that.

binarykitchen commented 1 month ago

Cool, new PR is up. I haven't tested it yet, please review carefully: https://github.com/ChetanXpro/nodejs-whisper/pull/118