Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
license_link: https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct/blob/main/LICENSE
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
base_model: Qwen/Qwen3-Coder-30B-A3B-Instruct
|
| 7 |
+
tags:
|
| 8 |
+
- mlx
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# cs2764/Qwen3-Coder-30B-A3B-Instruct-mlx-mixed_3_6
|
| 12 |
+
|
| 13 |
+
The Model [cs2764/Qwen3-Coder-30B-A3B-Instruct-mlx-mixed_3_6](https://huggingface.co/cs2764/Qwen3-Coder-30B-A3B-Instruct-mlx-mixed_3_6) was converted to MLX format from [Qwen/Qwen3-Coder-30B-A3B-Instruct](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct) using mlx-lm version **0.26.2**.
|
| 14 |
+
|
| 15 |
+
## Use with mlx
|
| 16 |
+
|
| 17 |
+
```bash
|
| 18 |
+
pip install mlx-lm
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
```python
|
| 22 |
+
from mlx_lm import load, generate
|
| 23 |
+
|
| 24 |
+
model, tokenizer = load("cs2764/Qwen3-Coder-30B-A3B-Instruct-mlx-mixed_3_6")
|
| 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 |
+
```
|