Downloads · 30 days
580
9% of all-time downloads
mlx-community/NVIDIA-Nemotron-Nano-9B-v2-4bits
NVIDIA-Nemotron-Nano-9B-v2-4bits is a text generation model from mlx-community. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as other.
This model mlx-community/NVIDIA-Nemotron-Nano-9B-v2-4bits was converted to MLX format from nvidia/NVIDIA-Nemotron-Nano-9B-v2 using mlx-lm version 0.26.3.
Downloads · 30 days
580
9% of all-time downloads
All-time downloads
6.7K
Public
Parameters
1.4B
5 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors5 GB · 100%
How the weights are stored.
U321.1B · 80%
From the Hugging Face model README
This model mlx-community/NVIDIA-Nemotron-Nano-9B-v2-4bits was converted to MLX format from nvidia/NVIDIA-Nemotron-Nano-9B-v2 using mlx-lm version 0.26.3.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/NVIDIA-Nemotron-Nano-9B-v2-4bits")
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)