Update README.md
Browse files
README.md
CHANGED
|
@@ -16,21 +16,9 @@ The Model [muhtasham/spark-tj-mlx-fp16](https://huggingface.co/muhtasham/spark-t
|
|
| 16 |
## Use with mlx
|
| 17 |
|
| 18 |
```bash
|
| 19 |
-
pip install mlx-
|
| 20 |
```
|
| 21 |
|
| 22 |
-
```
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
model, tokenizer = load("muhtasham/spark-tj-mlx-fp16")
|
| 26 |
-
|
| 27 |
-
prompt="hello"
|
| 28 |
-
|
| 29 |
-
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
| 30 |
-
messages = [{"role": "user", "content": prompt}]
|
| 31 |
-
prompt = tokenizer.apply_chat_template(
|
| 32 |
-
messages, tokenize=False, add_generation_prompt=True
|
| 33 |
-
)
|
| 34 |
-
|
| 35 |
-
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
| 36 |
```
|
|
|
|
| 16 |
## Use with mlx
|
| 17 |
|
| 18 |
```bash
|
| 19 |
+
pip install -U mlx-audio
|
| 20 |
```
|
| 21 |
|
| 22 |
+
```bash
|
| 23 |
+
python -m mlx_audio.tts.generate --model muhtasham/spark-tj-mlx-fp16 --text "Саломат бошед"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
```
|