Skip to content

Commit

Permalink
Expose config for Rust API
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Oct 12, 2024
1 parent 1958832 commit 8ab7d12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mistralrs/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,9 @@ impl Model {

Ok(self.runner.get_sender()?.send(request).await?)
}

/// Retrieve some information about this model.
pub fn config(&self) -> &MistralRsConfig {
self.runner.config()
}
}

0 comments on commit 8ab7d12

Please sign in to comment.