dr_qwen_4b / README.md
sambarta's picture
Add files using upload-large-folder tool
9c1e4ff verified
---
{}
---
# sambarta/dr_qwen_4b
This model [sambarta/dr_qwen_4b](https://huggingface.co/sambarta/dr_qwen_4b) was
converted to MLX format from [None](https://huggingface.co/None)
using mlx-lm version **0.24.1**.
## Use with mlx
```bash
pip install mlx-lm
```
```python
from mlx_lm import load, generate
model, tokenizer = load("sambarta/dr_qwen_4b")
prompt = "hello"
if tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
```