Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slower on Linux, only 5% CPU usage even though max core number #452

Open
faxotherapy opened this issue Dec 22, 2024 · 1 comment
Open

Slower on Linux, only 5% CPU usage even though max core number #452

faxotherapy opened this issue Dec 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@faxotherapy
Copy link

faxotherapy commented Dec 22, 2024

What happened?

My laptop, which does not have discrete GPU, has 4 cores/8 threads. I always want to set transcribing to full speed while not using laptop. So, I set Vibe to use 8 threads. Unfortunately, only 5% CPU usage while transcribing.

Until today, I was using an old version of Vibe (2 something), and it could run full speed, near 100% CPU usage. Unfortunately, with version 3, it's extremely slow given the 5% CPU usage , as though Vibe did not take account of my “8 threads” setting. I kept the same model too like in the older Vibe release (ver. 2).

Installed via manual install (deb package).

Steps to reproduce

  1. Select max threads
  2. Transcribe

I verified in the log, 8 threads have been set, but when visiting htop, still only 5% CPU usage.

What OS are you seeing the problem on?

Linux

Relevant log output

<details>
<summary>logs</summary>


{"timestamp":"2024-12-22T15:47:51.673005Z","level":"DEBUG","fields":{"message":"LEVEL vibe=DEBUG,vibe_core=DEBUG,whisper_rs=INFO"},"target":"vibe::logging"}
{"timestamp":"2024-12-22T15:47:51.673032Z","level":"DEBUG","fields":{"message":"Setup logging to file at /home/helene/.config/github.com.thewh1teagle.vibe/log_2024-12-22.txt"},"target":"vibe::logging"}
{"timestamp":"2024-12-22T15:47:51.673035Z","level":"DEBUG","fields":{"message":"clean old logs"},"target":"vibe::cleaner"}
{"timestamp":"2024-12-22T15:47:51.673046Z","level":"DEBUG","fields":{"message":"searching old logs in /home/helene/.config/github.com.thewh1teagle.vibe/log*.txt"},"target":"vibe::cleaner"}
{"timestamp":"2024-12-22T15:47:51.673086Z","level":"DEBUG","fields":{"message":"Skip clean of current log path /home/helene/.config/github.com.thewh1teagle.vibe/log_2024-12-22.txt"},"target":"vibe::cleaner"}
{"timestamp":"2024-12-22T15:47:51.673135Z","level":"DEBUG","fields":{"message":"searching old files in /tmp/vibe_temp*"},"target":"vibe::cleaner"}
{"timestamp":"2024-12-22T15:47:51.673205Z","level":"DEBUG","fields":{"message":"Skip deletion of /tmp/vibe_temp_2024-12-22"},"target":"vibe::cleaner"}
{"timestamp":"2024-12-22T15:47:51.673208Z","level":"DEBUG","fields":{"message":"Vibe App Running"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:47:51.673229Z","level":"DEBUG","fields":{"message":"webview version: 2.46.4"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:47:51.673232Z","level":"DEBUG","fields":{"message":"Cargo features: vulkan"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:47:51.673234Z","level":"DEBUG","fields":{"message":"CPU feature detection is not supported on this architecture."},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:47:51.673236Z","level":"DEBUG","fields":{"message":"Executable Architecture: x86_64"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:47:51.673238Z","level":"DEBUG","fields":{"message":"APP VERSION: 3.0.0"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:47:51.673240Z","level":"DEBUG","fields":{"message":"COMMIT HASH: 371af90"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:47:51.673243Z","level":"DEBUG","fields":{"message":"Non CLI mode"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:47:52.244344Z","level":"DEBUG","fields":{"message":"Vulkan check skipped on this platform"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T15:47:52.256530Z","level":"DEBUG","fields":{"message":"Default Input Device:\nOk(\"default\")"},"target":"vibe::cmd::audio"}
{"timestamp":"2024-12-22T15:47:52.256552Z","level":"DEBUG","fields":{"message":"Default Output Device:\nOk(\"default\")"},"target":"vibe::cmd::audio"}
{"timestamp":"2024-12-22T15:47:52.263127Z","level":"DEBUG","fields":{"message":"Devices: "},"target":"vibe::cmd::audio"}
{"timestamp":"2024-12-22T15:52:31.665701Z","level":"DEBUG","fields":{"message":"LEVEL vibe=DEBUG,vibe_core=DEBUG,whisper_rs=INFO"},"target":"vibe::logging"}
{"timestamp":"2024-12-22T15:52:31.665732Z","level":"DEBUG","fields":{"message":"Setup logging to file at /home/helene/.config/github.com.thewh1teagle.vibe/log_2024-12-22.txt"},"target":"vibe::logging"}
{"timestamp":"2024-12-22T15:52:31.665737Z","level":"DEBUG","fields":{"message":"clean old logs"},"target":"vibe::cleaner"}
{"timestamp":"2024-12-22T15:52:31.665752Z","level":"DEBUG","fields":{"message":"searching old logs in /home/helene/.config/github.com.thewh1teagle.vibe/log*.txt"},"target":"vibe::cleaner"}
{"timestamp":"2024-12-22T15:52:31.665800Z","level":"DEBUG","fields":{"message":"Skip clean of current log path /home/helene/.config/github.com.thewh1teagle.vibe/log_2024-12-22.txt"},"target":"vibe::cleaner"}
{"timestamp":"2024-12-22T15:52:31.665811Z","level":"DEBUG","fields":{"message":"searching old files in /tmp/vibe_temp*"},"target":"vibe::cleaner"}
{"timestamp":"2024-12-22T15:52:31.665890Z","level":"DEBUG","fields":{"message":"Skip deletion of /tmp/vibe_temp_2024-12-22"},"target":"vibe::cleaner"}
{"timestamp":"2024-12-22T15:52:31.665895Z","level":"DEBUG","fields":{"message":"Vibe App Running"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:52:31.665937Z","level":"DEBUG","fields":{"message":"webview version: 2.46.4"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:52:31.665942Z","level":"DEBUG","fields":{"message":"Cargo features: vulkan"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:52:31.665945Z","level":"DEBUG","fields":{"message":"CPU feature detection is not supported on this architecture."},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:52:31.665947Z","level":"DEBUG","fields":{"message":"Executable Architecture: x86_64"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:52:31.665951Z","level":"DEBUG","fields":{"message":"APP VERSION: 3.0.0"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:52:31.665954Z","level":"DEBUG","fields":{"message":"COMMIT HASH: 371af90"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:52:31.665957Z","level":"DEBUG","fields":{"message":"Non CLI mode"},"target":"vibe::setup"}
{"timestamp":"2024-12-22T15:52:32.260655Z","level":"DEBUG","fields":{"message":"Vulkan check skipped on this platform"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T15:52:32.278760Z","level":"DEBUG","fields":{"message":"Default Input Device:\nOk(\"default\")"},"target":"vibe::cmd::audio"}
{"timestamp":"2024-12-22T15:52:32.278781Z","level":"DEBUG","fields":{"message":"Default Output Device:\nOk(\"default\")"},"target":"vibe::cmd::audio"}
{"timestamp":"2024-12-22T15:52:32.286623Z","level":"DEBUG","fields":{"message":"Devices: "},"target":"vibe::cmd::audio"}
{"timestamp":"2024-12-22T15:59:11.796778Z","level":"DEBUG","fields":{"message":"loading model first time"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T15:59:11.796822Z","level":"DEBUG","fields":{"message":"open model..."},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:11.796833Z","level":"DEBUG","fields":{"message":"gpu device: 0"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:11.796837Z","level":"DEBUG","fields":{"message":"use gpu: true"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:11.796844Z","level":"DEBUG","fields":{"message":"creating whisper context with model path /home/helene/.local/share/github.com.thewh1teagle.vibe/ggml-distil-large-v3.bin"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:11.796855Z","level":"INFO","fields":{"message":"whisper_init_from_file_with_params_no_state: loading model from '/home/helene/.local/share/github.com.thewh1teagle.vibe/ggml-distil-large-v3.bin'"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.796895Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: use gpu    = 1"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.796906Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: flash attn = 0"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.796909Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: gpu_device = 0"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.796912Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: dtw        = 0"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823564Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: devices    = 2"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823590Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: backends   = 2"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823595Z","level":"INFO","fields":{"message":"whisper_model_load: loading model"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823624Z","level":"INFO","fields":{"message":"whisper_model_load: n_vocab       = 51866"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823628Z","level":"INFO","fields":{"message":"whisper_model_load: n_audio_ctx   = 1500"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823632Z","level":"INFO","fields":{"message":"whisper_model_load: n_audio_state = 1280"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823644Z","level":"INFO","fields":{"message":"whisper_model_load: n_audio_head  = 20"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823647Z","level":"INFO","fields":{"message":"whisper_model_load: n_audio_layer = 32"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823650Z","level":"INFO","fields":{"message":"whisper_model_load: n_text_ctx    = 448"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823653Z","level":"INFO","fields":{"message":"whisper_model_load: n_text_state  = 1280"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823656Z","level":"INFO","fields":{"message":"whisper_model_load: n_text_head   = 20"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823659Z","level":"INFO","fields":{"message":"whisper_model_load: n_text_layer  = 2"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823662Z","level":"INFO","fields":{"message":"whisper_model_load: n_mels        = 128"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823664Z","level":"INFO","fields":{"message":"whisper_model_load: ftype         = 1"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823667Z","level":"INFO","fields":{"message":"whisper_model_load: qntvr         = 0"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.823671Z","level":"INFO","fields":{"message":"whisper_model_load: type          = 5 (large v3)"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.859772Z","level":"INFO","fields":{"message":"whisper_model_load: adding 1609 extra tokens"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.860447Z","level":"INFO","fields":{"message":"whisper_model_load: n_langs       = 100"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:11.860658Z","level":"INFO","fields":{"message":"whisper_default_buffer_type: using device Vulkan0 (Intel(R) Xe Graphics (TGL GT2))"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:38.701204Z","level":"INFO","fields":{"message":"whisper_model_load:  Vulkan0 total size =  1518.88 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:39.807289Z","level":"INFO","fields":{"message":"whisper_model_load: model size    = 1518.88 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:39.812051Z","level":"DEBUG","fields":{"message":"created context successfuly"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:39.813908Z","level":"DEBUG","fields":{"message":"ffmpeg additiona options: []"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T15:59:39.813945Z","level":"DEBUG","fields":{"message":"Transcribe called with {\n  \"path\": \"/home/helene/Videos/tmp/MOVIE.mp4\",\n  \"lang\": \"en\",\n  \"verbose\": false,\n  \"n_threads\": 4,\n  \"init_prompt\": \"\",\n  \"temperature\": 0.4,\n  \"translate\": null,\n  \"max_text_ctx\": 64,\n  \"word_timestamps\": false,\n  \"max_sentence_len\": 1\n}"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:39.813972Z","level":"DEBUG","fields":{"message":"normalize \"/home/helene/Videos/tmp/MOVIE.mp4\""},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:39.814070Z","level":"DEBUG","fields":{"message":"ffmpeg path is /usr/bin/ffmpeg"},"target":"vibe_core::audio"}
{"timestamp":"2024-12-22T15:59:39.814076Z","level":"DEBUG","fields":{"message":"cmd: \"/usr/bin/ffmpeg\" \"-i\" \"/home/helene/Videos/tmp/MOVIE.mp4\" \"-ar\" \"16000\" \"-ac\" \"1\" \"-c:a\" \"pcm_s16le\" \"/tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav\" \"-hide_banner\" \"-y\" \"-loglevel\" \"error\""},"target":"vibe_core::audio"}
{"timestamp":"2024-12-22T15:59:46.750931Z","level":"DEBUG","fields":{"message":"out path is /tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:46.750956Z","level":"DEBUG","fields":{"message":"wav reader read from \"/tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav\""},"target":"vibe_core::audio"}
{"timestamp":"2024-12-22T15:59:46.750974Z","level":"DEBUG","fields":{"message":"parsing /tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav"},"target":"vibe_core::audio"}
{"timestamp":"2024-12-22T15:59:47.817750Z","level":"INFO","fields":{"message":"whisper_backend_init_gpu: using Vulkan0 backend"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:47.820121Z","level":"INFO","fields":{"message":"whisper_init_state: kv self size  =    5.24 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:47.824162Z","level":"INFO","fields":{"message":"whisper_init_state: kv cross size =   15.73 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:47.827241Z","level":"INFO","fields":{"message":"whisper_init_state: kv pad  size  =    7.86 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:47.827748Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (conv)   =   37.67 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:47.829036Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (encode) =  212.29 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:47.829800Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (cross)  =    9.25 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:47.830481Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (decode) =  100.03 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T15:59:47.830520Z","level":"DEBUG","fields":{"message":"set language to Some(\"en\")"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:47.830525Z","level":"DEBUG","fields":{"message":"setting temperature to 0.4"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:47.830528Z","level":"DEBUG","fields":{"message":"setting n_max_text_ctx to 64"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:47.830530Z","level":"DEBUG","fields":{"message":"setting init prompt to "},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:47.830533Z","level":"DEBUG","fields":{"message":"setting n threads to 4"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:48.035177Z","level":"DEBUG","fields":{"message":"set start time..."},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T15:59:48.035204Z","level":"DEBUG","fields":{"message":"setting state full..."},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:00:01.187896Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:00:13.608194Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:00:28.177732Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:00:45.692720Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:01:02.730141Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:01:18.649922Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:01:34.066001Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:01:50.041600Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:02:05.629665Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:02:20.511757Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:02:31.213004Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:02:41.995037Z","level":"DEBUG","fields":{"message":"set_progress_bar 1"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:02:54.227999Z","level":"DEBUG","fields":{"message":"set_progress_bar 1"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:03:06.880457Z","level":"DEBUG","fields":{"message":"set_progress_bar 1"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:03:17.325632Z","level":"ERROR","fields":{"message":"whisper_full_with_state: failed to encode"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:03:45.987954Z","level":"DEBUG","fields":{"message":"ffmpeg additiona options: []"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:03:45.987974Z","level":"DEBUG","fields":{"message":"Transcribe called with {\n  \"path\": \"/home/helene/Videos/tmp/MOVIE.mp4\",\n  \"lang\": \"en\",\n  \"verbose\": false,\n  \"n_threads\": 8,\n  \"init_prompt\": \"\",\n  \"temperature\": 0.4,\n  \"translate\": null,\n  \"max_text_ctx\": 64,\n  \"word_timestamps\": false,\n  \"max_sentence_len\": 1\n}"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:03:45.987993Z","level":"DEBUG","fields":{"message":"normalize \"/home/helene/Videos/tmp/MOVIE.mp4\""},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:03:45.988018Z","level":"INFO","fields":{"message":"Using cached normalized audio: /tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:03:45.988021Z","level":"DEBUG","fields":{"message":"out path is /tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:03:45.988024Z","level":"DEBUG","fields":{"message":"wav reader read from \"/tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav\""},"target":"vibe_core::audio"}
{"timestamp":"2024-12-22T16:03:45.988041Z","level":"DEBUG","fields":{"message":"parsing /tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav"},"target":"vibe_core::audio"}
{"timestamp":"2024-12-22T16:03:47.208942Z","level":"INFO","fields":{"message":"whisper_backend_init_gpu: using Vulkan0 backend"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:03:47.212937Z","level":"INFO","fields":{"message":"whisper_init_state: kv self size  =    5.24 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:03:47.217489Z","level":"INFO","fields":{"message":"whisper_init_state: kv cross size =   15.73 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:03:47.220790Z","level":"INFO","fields":{"message":"whisper_init_state: kv pad  size  =    7.86 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:03:47.221091Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (conv)   =   37.67 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:03:47.221887Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (encode) =  212.29 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:03:47.222364Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (cross)  =    9.25 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:03:47.223061Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (decode) =  100.03 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:03:47.223096Z","level":"DEBUG","fields":{"message":"set language to Some(\"en\")"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:03:47.223101Z","level":"DEBUG","fields":{"message":"setting temperature to 0.4"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:03:47.223105Z","level":"DEBUG","fields":{"message":"setting n_max_text_ctx to 64"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:03:47.223111Z","level":"DEBUG","fields":{"message":"setting init prompt to "},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:03:47.223115Z","level":"DEBUG","fields":{"message":"setting n threads to 8"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:03:47.432130Z","level":"DEBUG","fields":{"message":"set start time..."},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:03:47.432166Z","level":"DEBUG","fields":{"message":"setting state full..."},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:04:00.945350Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:04:12.573171Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:04:23.837262Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:04:37.428145Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:04:47.321700Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:04:55.397878Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:05:02.970545Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:05:11.478915Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:05:21.381251Z","level":"ERROR","fields":{"message":"whisper_full_with_state: failed to encode"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.534994Z","level":"DEBUG","fields":{"message":"model path or gpu device changed. reloading"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:07:37.535020Z","level":"DEBUG","fields":{"message":"open model..."},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:37.535033Z","level":"DEBUG","fields":{"message":"gpu device: 0"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:37.535036Z","level":"DEBUG","fields":{"message":"use gpu: true"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:37.535039Z","level":"DEBUG","fields":{"message":"creating whisper context with model path /home/helene/.local/share/github.com.thewh1teagle.vibe/ggml-large-v3.bin"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:37.535047Z","level":"INFO","fields":{"message":"whisper_init_from_file_with_params_no_state: loading model from '/home/helene/.local/share/github.com.thewh1teagle.vibe/ggml-large-v3.bin'"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535075Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: use gpu    = 1"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535078Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: flash attn = 0"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535081Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: gpu_device = 0"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535084Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: dtw        = 0"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535087Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: devices    = 2"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535090Z","level":"INFO","fields":{"message":"whisper_init_with_params_no_state: backends   = 2"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535094Z","level":"INFO","fields":{"message":"whisper_model_load: loading model"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535107Z","level":"INFO","fields":{"message":"whisper_model_load: n_vocab       = 51866"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535116Z","level":"INFO","fields":{"message":"whisper_model_load: n_audio_ctx   = 1500"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535119Z","level":"INFO","fields":{"message":"whisper_model_load: n_audio_state = 1280"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535121Z","level":"INFO","fields":{"message":"whisper_model_load: n_audio_head  = 20"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535123Z","level":"INFO","fields":{"message":"whisper_model_load: n_audio_layer = 32"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535125Z","level":"INFO","fields":{"message":"whisper_model_load: n_text_ctx    = 448"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535128Z","level":"INFO","fields":{"message":"whisper_model_load: n_text_state  = 1280"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535130Z","level":"INFO","fields":{"message":"whisper_model_load: n_text_head   = 20"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535132Z","level":"INFO","fields":{"message":"whisper_model_load: n_text_layer  = 32"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535134Z","level":"INFO","fields":{"message":"whisper_model_load: n_mels        = 128"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535136Z","level":"INFO","fields":{"message":"whisper_model_load: ftype         = 1"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535138Z","level":"INFO","fields":{"message":"whisper_model_load: qntvr         = 0"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.535141Z","level":"INFO","fields":{"message":"whisper_model_load: type          = 5 (large v3)"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.565604Z","level":"INFO","fields":{"message":"whisper_model_load: adding 1609 extra tokens"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.566106Z","level":"INFO","fields":{"message":"whisper_model_load: n_langs       = 100"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.566360Z","level":"INFO","fields":{"message":"whisper_default_buffer_type: using device Vulkan0 (Intel(R) Xe Graphics (TGL GT2))"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:37.566454Z","level":"INFO","fields":{"message":"whisper_model_load:  Vulkan0 total size =  3094.36 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:39.764704Z","level":"INFO","fields":{"message":"whisper_model_load: model size    = 3094.36 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:39.775906Z","level":"DEBUG","fields":{"message":"created context successfuly"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:39.791500Z","level":"DEBUG","fields":{"message":"ffmpeg additiona options: []"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:07:39.791531Z","level":"DEBUG","fields":{"message":"Transcribe called with {\n  \"path\": \"/home/helene/Videos/tmp/MOVIE.mp4\",\n  \"lang\": \"en\",\n  \"verbose\": false,\n  \"n_threads\": 8,\n  \"init_prompt\": \"\",\n  \"temperature\": 0.4,\n  \"translate\": null,\n  \"max_text_ctx\": 64,\n  \"word_timestamps\": false,\n  \"max_sentence_len\": 1\n}"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:39.791579Z","level":"DEBUG","fields":{"message":"normalize \"/home/helene/Videos/tmp/MOVIE.mp4\""},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:39.791611Z","level":"INFO","fields":{"message":"Using cached normalized audio: /tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:39.791615Z","level":"DEBUG","fields":{"message":"out path is /tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:39.791629Z","level":"DEBUG","fields":{"message":"wav reader read from \"/tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav\""},"target":"vibe_core::audio"}
{"timestamp":"2024-12-22T16:07:39.791651Z","level":"DEBUG","fields":{"message":"parsing /tmp/vibe_temp_2024-12-22/9295676bc8ab65a2.wav"},"target":"vibe_core::audio"}
{"timestamp":"2024-12-22T16:07:40.843616Z","level":"INFO","fields":{"message":"whisper_backend_init_gpu: using Vulkan0 backend"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:40.858354Z","level":"INFO","fields":{"message":"whisper_init_state: kv self size  =   83.89 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:40.908626Z","level":"INFO","fields":{"message":"whisper_init_state: kv cross size =  251.66 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:40.911750Z","level":"INFO","fields":{"message":"whisper_init_state: kv pad  size  =    7.86 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:40.912403Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (conv)   =   37.67 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:40.913774Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (encode) =  212.29 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:40.914264Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (cross)  =    9.25 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:40.915479Z","level":"INFO","fields":{"message":"whisper_init_state: compute buffer (decode) =  100.03 MB"},"target":"whisper_rs::whisper_sys_tracing"}
{"timestamp":"2024-12-22T16:07:40.915530Z","level":"DEBUG","fields":{"message":"set language to Some(\"en\")"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:40.915534Z","level":"DEBUG","fields":{"message":"setting temperature to 0.4"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:40.915537Z","level":"DEBUG","fields":{"message":"setting n_max_text_ctx to 64"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:40.915539Z","level":"DEBUG","fields":{"message":"setting init prompt to "},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:40.915541Z","level":"DEBUG","fields":{"message":"setting n threads to 8"},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:41.124564Z","level":"DEBUG","fields":{"message":"set start time..."},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:41.124604Z","level":"DEBUG","fields":{"message":"setting state full..."},"target":"vibe_core::transcribe"}
{"timestamp":"2024-12-22T16:07:53.198229Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:08:06.133775Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:08:16.766219Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:08:26.400820Z","level":"DEBUG","fields":{"message":"set_progress_bar 0"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:08:37.059955Z","level":"DEBUG","fields":{"message":"set_progress_bar 1"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:08:49.763888Z","level":"DEBUG","fields":{"message":"set_progress_bar 1"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:09:16.723653Z","level":"DEBUG","fields":{"message":"set_progress_bar 2"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:09:47.917607Z","level":"DEBUG","fields":{"message":"set_progress_bar 2"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:10:15.270936Z","level":"DEBUG","fields":{"message":"set_progress_bar 3"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:10:42.147671Z","level":"DEBUG","fields":{"message":"set_progress_bar 3"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:11:07.610830Z","level":"DEBUG","fields":{"message":"set_progress_bar 4"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:11:27.661690Z","level":"DEBUG","fields":{"message":"set_progress_bar 4"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:11:56.839321Z","level":"DEBUG","fields":{"message":"set_progress_bar 4"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:12:29.598844Z","level":"DEBUG","fields":{"message":"set_progress_bar 5"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:13:05.418105Z","level":"DEBUG","fields":{"message":"set_progress_bar 5"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:13:34.601201Z","level":"DEBUG","fields":{"message":"set_progress_bar 6"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:14:00.801119Z","level":"DEBUG","fields":{"message":"set_progress_bar 6"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:14:22.667252Z","level":"DEBUG","fields":{"message":"set_progress_bar 7"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:14:51.267439Z","level":"DEBUG","fields":{"message":"set_progress_bar 7"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:15:32.447630Z","level":"DEBUG","fields":{"message":"set_progress_bar 7"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:16:24.393888Z","level":"DEBUG","fields":{"message":"set_progress_bar 8"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:16:38.918516Z","level":"DEBUG","fields":{"message":"set_progress_bar 8"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:17:03.606174Z","level":"DEBUG","fields":{"message":"set_progress_bar 8"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:17:35.236853Z","level":"DEBUG","fields":{"message":"set_progress_bar 9"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:18:13.887141Z","level":"DEBUG","fields":{"message":"set_progress_bar 9"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:18:41.283505Z","level":"DEBUG","fields":{"message":"set_progress_bar 10"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:19:06.930326Z","level":"DEBUG","fields":{"message":"set_progress_bar 10"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:19:36.187504Z","level":"DEBUG","fields":{"message":"set_progress_bar 11"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:20:05.372152Z","level":"DEBUG","fields":{"message":"set_progress_bar 11"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:20:33.984364Z","level":"DEBUG","fields":{"message":"set_progress_bar 11"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:21:00.485104Z","level":"DEBUG","fields":{"message":"set_progress_bar 12"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:21:29.009582Z","level":"DEBUG","fields":{"message":"set_progress_bar 12"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:21:53.550909Z","level":"DEBUG","fields":{"message":"set_progress_bar 13"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:22:19.400504Z","level":"DEBUG","fields":{"message":"set_progress_bar 13"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:22:51.420934Z","level":"DEBUG","fields":{"message":"set_progress_bar 14"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:23:20.576051Z","level":"DEBUG","fields":{"message":"set_progress_bar 14"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:23:47.819004Z","level":"DEBUG","fields":{"message":"set_progress_bar 15"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:24:13.085715Z","level":"DEBUG","fields":{"message":"set_progress_bar 15"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:24:42.378723Z","level":"DEBUG","fields":{"message":"set_progress_bar 16"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:25:02.065289Z","level":"DEBUG","fields":{"message":"set_progress_bar 16"},"target":"vibe::cmd"}
{"timestamp":"2024-12-22T16:25:13.040753Z","level":"ERROR","fields":{"message":"whisper_full_with_state: failed to encode"},"target":"whisper_rs::whisper_sys_tracing"}


</details>
@faxotherapy faxotherapy added the bug Something isn't working label Dec 22, 2024
@faxotherapy faxotherapy changed the title Slower on Linux, only 33% CPU usage even though max cores Slower on Linux, only 33% CPU usage even though max core number Dec 22, 2024
@faxotherapy faxotherapy changed the title Slower on Linux, only 33% CPU usage even though max core number Slower on Linux, only 5% CPU usage even though max core number Dec 22, 2024
@blakkd
Copy link

blakkd commented Dec 23, 2024

Screenshot from 2024-12-23 05-43-29
Same here using vibe_3.0.0_amd64.deb it seems only 1 core is used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants