# RMistral
RMistral is a Rust implementation of the quantized [Mistral 7B](https://mistral.ai/news/announcing-mistral-7b/) language model.
Mistral 7B is a very small but performant language model that can be easily run on your local machine.
This library uses [Candle](https://github.com/huggingface/candle) to run Mistral.
## Usage
```rust, no_run
use rmistral::prelude::*;
#[tokio::main]
async fn main() {
let mut model = Mistral::default();
let prompt = "The capital of France is ";
let mut result = model.stream_text(prompt).await.unwrap();
print!("{prompt}");
while let Some(token) = result.next().await {
print!("{token}");
}
}
```