YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: add GPU acceleration log messages for whisper model init
Louis Beaumontc99ea65fb22b
diff --git a/crates/screenpipe-audio/src/audio_manager/manager.rs b/crates/screenpipe-audio/src/audio_manager/manager.rsindex a9524a85e..e8b3e036e 100644--- a/crates/screenpipe-audio/src/audio_manager/manager.rs+++ b/crates/screenpipe-audio/src/audio_manager/manager.rs@@ -320,10 +320,12 @@ impl AudioManager {let context_param = create_whisper_context_parameters(audio_transcription_engine.clone())?;let quantized_path = self.stt_model_path.clone();+ info!("loading whisper model with GPU acceleration...");let whisper_context = Arc::new(WhisperContext::new_with_params(&quantized_path.to_string_lossy(), context_param).expect("failed to load model"),);+ info!("whisper model loaded successfully");Ok(tokio::spawn(async move {while let Ok(audio) = whisper_receiver.recv() {diff --git a/crates/screenpipe-audio/src/transcription/whisper/model.rs b/crates/screenpipe-audio/src/transcription/whisper/model.rsindex 74d8bd3f3..1d9af041c 100644--- a/crates/screenpipe-audio/src/transcription/whisper/model.rs+++ b/crates/screenpipe-audio/src/transcription/whisper/model.rs@@ -49,6 +49,7 @@ pub fn create_whisper_context_parameters<'a>(// The whisper-rs default only enables GPU when built with the `_gpu` feature,// but we always want to try GPU if the runtime supports it.context_param.use_gpu(true);+ info!("whisper context: gpu acceleration enabled (Metal on macOS, Vulkan on Windows)");// NOTE: keep DTW disabled to avoid whisper.cpp median_filter asserts on short inputs// (WHISPER_ASSERT filter_width < a->ne[2]). Token-level timestamps are optional for us