prince-canuma
commited on
Commit
•
cd5a3c8
1
Parent(s):
e9ea18f
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- mlx
|
5 |
+
---
|
6 |
+
|
7 |
+
# mlx-community/Yi-1.5-9B-Chat-4bit
|
8 |
+
|
9 |
+
The Model [mlx-community/Yi-1.5-9B-Chat-4bit](https://huggingface.co/mlx-community/Yi-1.5-9B-Chat-4bit) was converted to MLX format from [01-ai/Yi-1.5-9B-Chat](https://huggingface.co/01-ai/Yi-1.5-9B-Chat) using mlx-lm version **0.13.0**.
|
10 |
+
|
11 |
+
## Use with mlx
|
12 |
+
|
13 |
+
```bash
|
14 |
+
pip install mlx-lm
|
15 |
+
```
|
16 |
+
|
17 |
+
```python
|
18 |
+
from mlx_lm import load, generate
|
19 |
+
|
20 |
+
model, tokenizer = load("mlx-community/Yi-1.5-9B-Chat-4bit")
|
21 |
+
response = generate(model, tokenizer, prompt="hello", verbose=True)
|
22 |
+
```
|