nightmedia's picture
Update README.md
6418894 verified
---
license: apache-2.0
base_model: internlm/JanusCoderV-7B
library_name: mlx
pipeline_tag: image-text-to-text
tags:
- mlx
---
# JanusCoderV-7B-qx86-hi-mlx
This model [JanusCoderV-7B-qx86x-hi-mlx](https://huggingface.co/nightmedia/JanusCoderV-7B-qx86-hi-mlx) was
converted to MLX format from [internlm/JanusCoderV-7B](https://huggingface.co/internlm/JanusCoderV-7B)
using mlx-lm version **0.28.4**.
## Use with mlx
```bash
pip install mlx-lm
```
```python
from mlx_lm import load, generate
model, tokenizer = load("JanusCoderV-7B-qx86-hi-mlx")
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)
```
#