Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
171 changes: 74 additions & 97 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/voice-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pubkey = "RWRmHACtt9SpjQB/l+dAoCe+3iqxq/Xe/90P6dyCW70axzy3UkWl+Ave"

[dependencies]
voice-tts = { version = "0.2.0", path = "../voice-tts" }
quill-mlx = "0.25.5"
voice-g2p = { version = "0.2.0", path = "../voice-g2p" }
voice-stt = { version = "0.1.0", path = "../voice-stt" }
clap = { version = "4", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/voice-cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn find_metallib(build_dir: &Path) -> Option<PathBuf> {
for entry in entries.flatten() {
let name = entry.file_name();
let name_str = name.to_string_lossy();
if name_str.starts_with("mlx-sys-") {
if name_str.starts_with("quill-mlx-sys-") || name_str.starts_with("mlx-sys-") {
println!(
"cargo:warning=[metallib] found mlx-sys dir: {}",
entry.path().display()
Expand Down
6 changes: 6 additions & 0 deletions crates/voice-cli/src/mcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ pub fn run(config: ServerConfig) {
stt_tokenizer: None,
};

// Cap the Metal buffer cache at 2 GB to prevent unbounded memory growth
// across repeated inference calls.
if let Err(e) = quill_mlx::metal::set_cache_limit(2 * 1024 * 1024 * 1024) {
eprintln!("warning: failed to set Metal cache limit: {e}");
}

let mut stdout = io::stdout();

if !QUIET.load(Ordering::Relaxed) {
Expand Down
2 changes: 1 addition & 1 deletion crates/voice-dsp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ license = "MIT"
repository = "https://github.com/rgbkrk/voicers"

[dependencies]
mlx-rs = { version = "0.25" }
quill-mlx = "0.25.5"
2 changes: 1 addition & 1 deletion crates/voice-dsp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let (magnitude, phase) = stft.transform(&audio_batch)?;
let reconstructed = stft.inverse(&magnitude, &phase)?;
```

All functions operate on `mlx_rs::Array` and return `Result<_, mlx_rs::error::Exception>`.
All functions operate on `quill_mlx::Array` and return `Result<_, quill_mlx::error::Exception>`.

## Requirements

Expand Down
Loading