Update README.md
Browse files
README.md
CHANGED
|
@@ -2,34 +2,21 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- tg
|
| 5 |
-
base_model: muhtasham/orpheus-tj
|
| 6 |
pipeline_tag: text-to-speech
|
| 7 |
tags:
|
| 8 |
- mlx
|
| 9 |
---
|
| 10 |
|
| 11 |
-
#
|
| 12 |
|
| 13 |
-
The Model [
|
| 14 |
|
| 15 |
## Use with mlx
|
| 16 |
|
| 17 |
```bash
|
| 18 |
-
pip install mlx-
|
| 19 |
```
|
| 20 |
|
| 21 |
-
```
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
model, tokenizer = load("muhtasham/orpheus-tj-mlx-fp16")
|
| 25 |
-
|
| 26 |
-
prompt="hello"
|
| 27 |
-
|
| 28 |
-
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
| 29 |
-
messages = [{"role": "user", "content": prompt}]
|
| 30 |
-
prompt = tokenizer.apply_chat_template(
|
| 31 |
-
messages, tokenize=False, add_generation_prompt=True
|
| 32 |
-
)
|
| 33 |
-
|
| 34 |
-
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
| 35 |
```
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- tg
|
|
|
|
| 5 |
pipeline_tag: text-to-speech
|
| 6 |
tags:
|
| 7 |
- mlx
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# re-skill/orpheus-tj-early-mlx-fp16
|
| 11 |
|
| 12 |
+
The Model [re-skill/orpheus-tj-early-mlx-fp16](https://huggingface.co/re-skill/orpheus-tj-early-mlx-fp16) was converted to MLX format from [re-skill/orpheus-tj-early](https://huggingface.co/re-skill/orpheus-tj-early) using mlx-lm version **0.22.3**.
|
| 13 |
|
| 14 |
## Use with mlx
|
| 15 |
|
| 16 |
```bash
|
| 17 |
+
pip install mlx-audio
|
| 18 |
```
|
| 19 |
|
| 20 |
+
```bash
|
| 21 |
+
mlx_audio.tts.generate --model re-skill/orpheus-tj-early-mlx-fp16 --max_tokens 1200 --temperature 0.0 --top_p 0.95 --repetition_penalty 1.1 --text "салом ин матн пурра бо компютер сохта шудааст ман қурбони собир нестам."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
```
|