prince-canuma commited on
Commit
9f2e30d
·
verified ·
1 Parent(s): 4dca444

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -15
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-lm
22
  ```
23
 
24
- ```python
25
- from mlx_lm import load, generate
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
- response = generate(model, tokenizer, prompt=prompt, verbose=True)
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
+ ```