Files
normistral-11b-warm-mlx/README.md

51 lines
954 B
Markdown
Raw Normal View History

---
license: apache-2.0
language:
- nb
- nn
- 'no'
- se
- sv
- da
- en
- is
- fo
base_model: norallm/normistral-11b-warm
library_name: mlx
pipeline_tag: text-generation
tags:
- norwegian
- sami
- bokmaal
- nynorsk
- mlx
---
# SlimGroove/normistral-11b-warm-mlx
This model [SlimGroove/normistral-11b-warm-mlx](https://huggingface.co/SlimGroove/normistral-11b-warm-mlx) was
converted to MLX format from [norallm/normistral-11b-warm](https://huggingface.co/norallm/normistral-11b-warm)
using mlx-lm version **0.29.1**.
## Use with mlx
```bash
pip install mlx-lm
```
```python
from mlx_lm import load, generate
model, tokenizer = load("SlimGroove/normistral-11b-warm-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)
```