File size: 3,553 Bytes
c016000
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
  "config": {
    "model": {
      "checkpoint": "/tmp/nemotron-3-embed-1b-bf16",
      "trust_remote_code": true,
      "dtype": "bfloat16",
      "device": "cuda"
    },
    "calibration": {
      "sources": [
        {
          "dataset": "abisee/cnn_dailymail",
          "dataset_config": "3.0.0",
          "split": "train",
          "text_field": "article",
          "num_samples": 256,
          "prompt_prefix": "passage: ",
          "seed": 42
        },
        {
          "dataset": "abisee/cnn_dailymail",
          "dataset_config": "3.0.0",
          "split": "train",
          "text_field": "highlights",
          "num_samples": 256,
          "prompt_prefix": "query: ",
          "seed": 43
        }
      ],
      "batch_size": 1,
      "max_length": 16384,
      "seed": 42
    },
    "quantization": {
      "recipe": "mtq.NVFP4_DEFAULT_CFG",
      "precision": "nvfp4",
      "output_dir": "/tmp/nemotron-3-embed-1b-nvfp4",
      "save_modelopt_state": false,
      "export_hf_checkpoint": true
    },
    "quant_cfg_overrides": [
      {
        "quantizer_name": "*embed_tokens*",
        "enable": false
      },
      {
        "quantizer_name": "lm_head*",
        "enable": false
      }
    ]
  },
  "quant_cfg": {
    "quant_cfg": [
      {
        "quantizer_name": "*",
        "enable": false
      },
      {
        "quantizer_name": "*weight_quantizer",
        "cfg": {
          "num_bits": [
            2,
            1
          ],
          "block_sizes": {
            "-1": 16,
            "type": "dynamic",
            "scale_bits": [
              4,
              3
            ]
          }
        }
      },
      {
        "quantizer_name": "*input_quantizer",
        "cfg": {
          "num_bits": [
            2,
            1
          ],
          "block_sizes": {
            "-1": 16,
            "type": "dynamic",
            "scale_bits": [
              4,
              3
            ]
          }
        }
      },
      {
        "parent_class": "nn.BatchNorm1d",
        "quantizer_name": "*",
        "enable": false
      },
      {
        "parent_class": "nn.BatchNorm2d",
        "quantizer_name": "*",
        "enable": false
      },
      {
        "parent_class": "nn.BatchNorm3d",
        "quantizer_name": "*",
        "enable": false
      },
      {
        "parent_class": "nn.LeakyReLU",
        "quantizer_name": "*",
        "enable": false
      },
      {
        "quantizer_name": "*lm_head*",
        "enable": false
      },
      {
        "quantizer_name": "*proj_out.*",
        "enable": false
      },
      {
        "quantizer_name": "*block_sparse_moe.gate*",
        "enable": false
      },
      {
        "quantizer_name": "*router*",
        "enable": false
      },
      {
        "quantizer_name": "*mlp.gate.*",
        "enable": false
      },
      {
        "quantizer_name": "*mlp.shared_expert_gate.*",
        "enable": false
      },
      {
        "quantizer_name": "*linear_attn.conv1d*",
        "enable": false
      },
      {
        "quantizer_name": "*mixer.conv1d*",
        "enable": false
      },
      {
        "quantizer_name": "*output_layer*",
        "enable": false
      },
      {
        "quantizer_name": "output.*",
        "enable": false
      },
      {
        "quantizer_name": "*embed_tokens*",
        "enable": false
      },
      {
        "quantizer_name": "lm_head*",
        "enable": false
      }
    ],
    "algorithm": "max"
  },
  "quant_type": "nvfp4",
  "modelopt_quantized": true
}