majentik commited on
Commit
03ea283
·
verified ·
1 Parent(s): 6f5c210

Add model card

Browse files
Files changed (1) hide show
  1. README.md +85 -0
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: gguf
3
+ base_model: nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16
4
+ tags:
5
+ - gguf
6
+ - rotorquant
7
+ - kv-cache-quantization
8
+ - nemotron
9
+ - nvidia
10
+ - mamba2
11
+ - hybrid
12
+ - llama-cpp
13
+ - quantized
14
+ license: other
15
+ license_name: nvidia-open-model-license
16
+ license_link: https://developer.download.nvidia.com/licenses/nvidia-open-model-license-agreement-june-2024.pdf
17
+ ---
18
+
19
+ # Nemotron-3-Nano-4B-RotorQuant-GGUF-Q2_K
20
+
21
+ GGUF Q2_K weight-quantized variant of [nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16](https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16) with **RotorQuant** KV cache compression for efficient inference with llama.cpp, Ollama, and LM Studio. Features a dense hybrid Mamba-2 + Attention architecture with 4B parameters and up to 262K context length. Maximum compression for memory-constrained environments.
22
+
23
+ ## Overview
24
+
25
+ This model combines two compression techniques:
26
+ - **GGUF Q2_K weight quantization** -- reduces model size from ~8 GB to ~1.5 GB
27
+ - **RotorQuant KV cache compression** -- block-diagonal rotations (Clifford algebra) for 3-bit KV cache, 5.3x faster prefill
28
+
29
+ ## Quickstart
30
+
31
+ ### llama.cpp
32
+ ```bash
33
+ llama-cli -m Nemotron-3-Nano-4B-RotorQuant-GGUF-Q2_K.gguf \
34
+ --cache-type-k planar3 --cache-type-v iso3 \
35
+ -p "Explain quantum computing"
36
+ ```
37
+
38
+ ### Ollama
39
+ ```bash
40
+ ollama run majentik/Nemotron-3-Nano-4B-RotorQuant-GGUF-Q2_K
41
+ ```
42
+
43
+ ### LM Studio
44
+ Download the GGUF file and load in LM Studio. Enable RotorQuant KV cache in advanced settings.
45
+
46
+ ## Specifications
47
+
48
+ | Property | Value |
49
+ |----------|-------|
50
+ | Base Model | nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16 |
51
+ | Parameters | 4B (dense, Mamba-2 + Attention hybrid) |
52
+ | Context Length | 262,144 tokens (262K) |
53
+ | Weight Quantization | GGUF Q2_K |
54
+ | KV Cache | RotorQuant 3-bit (planar/iso) |
55
+ | File Size | ~1.5 GB |
56
+ | License | NVIDIA Open Model License (commercial use OK) |
57
+ | Compatible | llama.cpp, Ollama, LM Studio, koboldcpp |
58
+
59
+ ## What is RotorQuant?
60
+
61
+ RotorQuant applies block-diagonal rotations (Clifford algebra) for KV cache compression. When used with llama.cpp's `--cache-type-k planar3 --cache-type-v iso3` flags:
62
+
63
+ | Metric | RotorQuant | TurboQuant |
64
+ |--------|-----------|-----------|
65
+ | Prefill Speed | 3,822 tok/s | 722 tok/s |
66
+ | Decode Speed | 119 tok/s | 93 tok/s |
67
+ | Perplexity | 6.91 | 7.07 |
68
+
69
+ ## GGUF Quant Variants
70
+
71
+ | Quant | File Size | Quality | Variant |
72
+ |-------|-----------|---------|---------|
73
+ | **Q2_K** | **~1.5 GB** | **Lowest (max compression)** | **This model** |
74
+ | Q3_K_M | ~1.8 GB | Low | [Q3_K_M](https://huggingface.co/majentik/Nemotron-3-Nano-4B-RotorQuant-GGUF-Q3_K_M) |
75
+ | IQ4_XS | ~2 GB | Medium-Low | [IQ4_XS](https://huggingface.co/majentik/Nemotron-3-Nano-4B-RotorQuant-GGUF-IQ4_XS) |
76
+ | Q4_K_M | ~2.5 GB | Medium | [Q4_K_M](https://huggingface.co/majentik/Nemotron-3-Nano-4B-RotorQuant-GGUF-Q4_K_M) |
77
+ | Q5_K_M | ~3 GB | Medium-High | [Q5_K_M](https://huggingface.co/majentik/Nemotron-3-Nano-4B-RotorQuant-GGUF-Q5_K_M) |
78
+ | Q8_0 | ~4.5 GB | High | [Q8_0](https://huggingface.co/majentik/Nemotron-3-Nano-4B-RotorQuant-GGUF-Q8_0) |
79
+
80
+ ## See Also
81
+
82
+ - [nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16](https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16) -- Base model
83
+ - [majentik/Nemotron-3-Nano-4B-RotorQuant](https://huggingface.co/majentik/Nemotron-3-Nano-4B-RotorQuant) -- RotorQuant KV-cache (transformers)
84
+ - [majentik/Nemotron-3-Nano-4B-RotorQuant-MLX-2bit](https://huggingface.co/majentik/Nemotron-3-Nano-4B-RotorQuant-MLX-2bit) -- MLX 2-bit variant
85
+ - [RotorQuant GitHub](https://github.com/scrya-com/rotorquant)