Update README.md
Browse files
README.md
CHANGED
@@ -12,13 +12,18 @@ model-index:
|
|
12 |
results: []
|
13 |
---
|
14 |
|
15 |
-
# tulu-2-dpo-13b-4bit-mlx
|
16 |
This model was converted to MLX format from [`allenai/tulu-2-dpo-13b`]().
|
17 |
Refer to the [original model card](https://huggingface.co/allenai/tulu-2-dpo-13b) for more details on the model.
|
18 |
## Use with mlx
|
|
|
19 |
```bash
|
20 |
-
pip install mlx
|
21 |
-
|
22 |
-
|
23 |
-
python
|
|
|
|
|
|
|
|
|
24 |
```
|
|
|
12 |
results: []
|
13 |
---
|
14 |
|
15 |
+
# mlx-community/tulu-2-dpo-13b-4bit-mlx
|
16 |
This model was converted to MLX format from [`allenai/tulu-2-dpo-13b`]().
|
17 |
Refer to the [original model card](https://huggingface.co/allenai/tulu-2-dpo-13b) for more details on the model.
|
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/tulu-2-dpo-13b-4bit-mlx")
|
28 |
+
response = generate(model, tokenizer, prompt="hello", verbose=True)
|
29 |
```
|