manjunathshiva's picture
Add files using upload-large-folder tool
da83d68 verified
---
library_name: mlx
pipeline_tag: text-generation
license: apache-2.0
language:
- en
base_model: miromind-ai/MiroThinker-32B-DPO-v0.1
tags:
- agent
- open-source
- miromind
- mlx
---
# mlx-community/MiroThinker-32B-DPO-v0.1-4bit-8k
This model [mlx-community/MiroThinker-32B-DPO-v0.1-4bit-8k](https://huggingface.co/mlx-community/MiroThinker-32B-DPO-v0.1-4bit-8k) was
converted to MLX format from [miromind-ai/MiroThinker-32B-DPO-v0.1](https://huggingface.co/miromind-ai/MiroThinker-32B-DPO-v0.1)
using mlx-lm version **0.26.3**.
## Use with mlx
```bash
pip install mlx-lm
```
```python
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/MiroThinker-32B-DPO-v0.1-4bit-8k")
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)
```