justindal's picture
Add files using upload-large-folder tool
c5981f1 verified
|
Raw
History Blame Contribute Delete
1.18 kB
---
library_name: mlx
license: other
license_name: nvidia-open-model-license
license_link: https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/
pipeline_tag: text-generation
language:
- en
tags:
- nvidia
- nemotron-cascade-2
- reasoning
- general-purpose
- SFT
- RL
- mlx
base_model: nvidia/Nemotron-Cascade-2-30B-A3B
---
# mlx-community/Nemotron-Cascade-2-30B-A3B-mlx-6bit
This model [mlx-community/Nemotron-Cascade-2-30B-A3B-mlx-6bit](https://huggingface.co/mlx-community/Nemotron-Cascade-2-30B-A3B-mlx-6bit) was
converted to MLX format from [nvidia/Nemotron-Cascade-2-30B-A3B](https://huggingface.co/nvidia/Nemotron-Cascade-2-30B-A3B)
using mlx-lm version **0.31.1**.
## Use with mlx
```bash
pip install mlx-lm
```
```python
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/Nemotron-Cascade-2-30B-A3B-mlx-6bit")
prompt = "hello"
if tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_dict=False,
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
```