Downloads · 30 days
65
6% of all-time downloads
Avarok/nvidia-nemotron-nano-12b-v2-q4_k_m
nvidia-nemotron-nano-12b-v2-q4_k_m is a machine learning model from Avarok. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for llama.cpp. The card lists the license as other.
This repository provides a 4-bit quantized GGUF build of NVIDIA Nemotron Nano 12B v2 using Q4KM, reducing the on-disk size to approximately 7GB from roughly 23GB for the original full precision weights, while preservi…
Downloads · 30 days
65
6% of all-time downloads
All-time downloads
1.2K
Public
Repo size
7.5 GB
Likes
1
Public
Click a slice to open those files.
.gguf7.5 GB · 100%
From the Hugging Face model README
This repository provides a 4-bit quantized GGUF build of NVIDIA Nemotron Nano 12B v2 using Q4_K_M, reducing the on-disk size to approximately 7GB from roughly 23GB for the original full precision weights, while preserving core capabilities.
Upstream base model: nvidia/NVIDIA-Nemotron-Nano-12B-v2
SHA256: 82ea4805d2f9f37e3c67b06768141ff58e43fb0dcd3983a82e9c2f481eb7fea8
model-q4.gguf (7.0GB)tokenizer.jsontokenizer_config.jsonspecial_tokens_map.jsonconfig.jsongeneration_config.jsonconfiguration_nemotron_h.pymodeling_nemotron_h.pynemotron_toolcall_parser_no_streaming.pybias.md, explainability.md, privacy.md, safety.mdacc-vs-budget.pngREADME.mdNote: GGUF inference backends may vary in their native support for tool-calling integrations; use the included parser or your own orchestration as needed.
-ngl offloading; very long contexts may require 24 to 48GB VRAM or hybrid CPU plus GPU offloadBuild llama.cpp, then run:
Generate:
./llama-cli -m model-q4.gguf -p "Hello, Nemotron." -n 128 -t 8 -c 4096 -ngl 35
Server:
./llama-server -m model-q4.gguf -c 4096 -ngl 35
For very long contexts, increase -c accordingly and ensure sufficient RAM or VRAM for KV cache.
pip install llama-cpp-python
from llama_cpp import Llama
llm = Llama(model_path="model-q4.gguf", n_ctx=4096, n_threads=8)
out = llm("Write a short greeting.", max_tokens=128)
print(out)
Create a Modelfile referencing this repo, then create and run:
Modelfile:
FROM hf.co/Avarok/nvidia-nemotron-nano-12b-v2-q4_k_m
PARAMETER num_ctx 4096
Commands:
ollama create nemotron-nano-12b-q4km -f Modelfile
ollama run nemotron-nano-12b-q4km
Note: Ollama versions and syntax may evolve; consult Ollama docs if the Modelfile interface changes.
This artifact was produced by converting the upstream weights to GGUF and quantizing with Q4_K_M. An equivalent quantization command with llama.cpp tools is:
llama-quantize input.gguf model-q4.gguf Q4_K_M
Exact commands may differ based on the conversion workflow for the upstream model version.
Review the included bias, privacy, and safety documents. As with all LLMs, outputs may be inaccurate or unsafe without proper safeguards and human oversight.
