prince-canuma
commited on
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- mlx
|
5 |
+
---
|
6 |
+
|
7 |
+
# mlx-community/CodeQwen1.5-7B-4bit
|
8 |
+
This model was converted to MLX format from [`Qwen/CodeQwen1.5-7B`]() using mlx-lm version **0.9.0**.
|
9 |
+
|
10 |
+
Model added by [Prince Canuma](https://twitter.com/Prince_Canuma).
|
11 |
+
|
12 |
+
Refer to the [original model card](https://huggingface.co/Qwen/CodeQwen1.5-7B) for more details on the model.
|
13 |
+
## Use with mlx
|
14 |
+
|
15 |
+
```bash
|
16 |
+
pip install mlx-lm
|
17 |
+
```
|
18 |
+
|
19 |
+
```python
|
20 |
+
from mlx_lm import load, generate
|
21 |
+
|
22 |
+
model, tokenizer = load("mlx-community/CodeQwen1.5-7B-4bit")
|
23 |
+
response = generate(model, tokenizer, prompt="hello", verbose=True)
|
24 |
+
```
|