nomos-1-8bit-mlx / README.md
leonsarmiento's picture
Add files using upload-large-folder tool
a0dbee4 verified
---
license: apache-2.0
base_model: NousResearch/nomos-1
pipeline_tag: text-generation
library_name: mlx
tags:
- mlx
---
# leonsarmiento/nomos-1-8bit-mlx
This model [leonsarmiento/nomos-1-8bit-mlx](https://huggingface.co/leonsarmiento/nomos-1-8bit-mlx) was
converted to MLX format from [NousResearch/nomos-1](https://huggingface.co/NousResearch/nomos-1)
using mlx-lm version **0.28.3**.
## Use with mlx
```bash
pip install mlx-lm
```
```python
from mlx_lm import load, generate
model, tokenizer = load("leonsarmiento/nomos-1-8bit-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)
```