Update README.md
Browse files
README.md
CHANGED
@@ -18,21 +18,10 @@ using mlx-lm version **0.22.2**.
|
|
18 |
## Use with mlx
|
19 |
|
20 |
```bash
|
21 |
-
pip install mlx-
|
22 |
```
|
23 |
|
24 |
-
```
|
25 |
-
|
26 |
-
|
27 |
-
model, tokenizer = load("mlx-community/orpheus-3b-0.1-pretrained-4bit")
|
28 |
-
|
29 |
-
prompt = "hello"
|
30 |
-
|
31 |
-
if tokenizer.chat_template is not None:
|
32 |
-
messages = [{"role": "user", "content": prompt}]
|
33 |
-
prompt = tokenizer.apply_chat_template(
|
34 |
-
messages, add_generation_prompt=True
|
35 |
-
)
|
36 |
|
37 |
-
|
38 |
-
```
|
|
|
18 |
## Use with mlx
|
19 |
|
20 |
```bash
|
21 |
+
pip install mlx-audio
|
22 |
```
|
23 |
|
24 |
+
```bash
|
25 |
+
python -m mlx_audio.tts.generate --model mlx-community/orpheus-3b-0.1-pretrained-4bit --text "Hello world" --voice tara --temperature 0.6 --audio_format mp3```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
+
```
|
|