MCPcopy Create free account
hub / github.com/Recordscript/recordscript / disk_usage

Method disk_usage

src-tauri/src/transcriber.rs:196–217  ·  view source on GitHub ↗

Disk usage of models in MB Refer to this: - https://huggingface.co/ggerganov/whisper.cpp - https://huggingface.co/akashmjn/tinydiarize-whisper.cpp

(&self)

Source from the content-addressed store, hash-verified

194 /// - https://huggingface.co/ggerganov/whisper.cpp
195 /// - https://huggingface.co/akashmjn/tinydiarize-whisper.cpp
196 pub fn disk_usage(&self) -> usize {
197 match self {
198 Model::TinyWhisper => 77,
199 Model::TinyEnWhisper => 77,
200 Model::TinyQuantized => 33,
201 Model::TinyEnQuantized => 33,
202 Model::BaseWhisper => 148,
203 Model::BaseEnWhisper => 148,
204 Model::BaseQuantized => 60,
205 Model::BaseEnQuantized => 60,
206 Model::SmallWhisper => 488,
207 Model::SmallEnWhisper => 488,
208 Model::SmallQuantized => 190,
209 Model::SmallEnQuantized => 190,
210 Model::SmallDiarize => 488,
211 Model::MediumWhisper => 1530,
212 Model::MediumQuantized => 539,
213 Model::MediumEnQuantized => 539,
214 Model::LargeWhisper => 3100,
215 Model::LargeQuantized => 1080,
216 }
217 }
218
219 pub fn path(&self) -> PathBuf {
220 crate::project_directory().transcriber_model_dir().join(self.file_name())

Callers 1

download_modelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected