|
| 1 | +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +# QuantizerCfgList snippet of disabled quantizers for Nemotron VL. Merges the |
| 17 | +# standard `default_disabled_quantizers` exclusions with Nemotron-VL-specific |
| 18 | +# ones (only the decoder is quantized; vision/encoder branches, including the |
| 19 | +# Nemotron-Parse radio/model_encoder modules, are skipped). Recipes that |
| 20 | +# import this should NOT also import `default_disabled_quantizers`. |
| 21 | + |
| 22 | +# modelopt-schema: modelopt.torch.quantization.config.QuantizerCfgListConfig |
| 23 | + - quantizer_name: '*block_sparse_moe.gate*' |
| 24 | + enable: false |
| 25 | + - quantizer_name: '*linear_attn.conv1d*' |
| 26 | + enable: false |
| 27 | + - quantizer_name: '*lm_head*' |
| 28 | + enable: false |
| 29 | + - quantizer_name: '*mixer.conv1d*' |
| 30 | + enable: false |
| 31 | + - quantizer_name: '*mlp.gate.*' |
| 32 | + enable: false |
| 33 | + - quantizer_name: '*mlp.shared_expert_gate.*' |
| 34 | + enable: false |
| 35 | + - quantizer_name: '*output_layer*' |
| 36 | + enable: false |
| 37 | + - quantizer_name: '*proj_out.*' |
| 38 | + enable: false |
| 39 | + - quantizer_name: '*router*' |
| 40 | + enable: false |
| 41 | + - quantizer_name: 'output.*' |
| 42 | + enable: false |
| 43 | + - parent_class: 'nn.BatchNorm1d' |
| 44 | + quantizer_name: '*' |
| 45 | + enable: false |
| 46 | + - parent_class: 'nn.BatchNorm2d' |
| 47 | + quantizer_name: '*' |
| 48 | + enable: false |
| 49 | + - parent_class: 'nn.BatchNorm3d' |
| 50 | + quantizer_name: '*' |
| 51 | + enable: false |
| 52 | + - parent_class: 'nn.LeakyReLU' |
| 53 | + quantizer_name: '*' |
| 54 | + enable: false |
| 55 | + - quantizer_name: '*vision*' |
| 56 | + enable: false |
| 57 | + - quantizer_name: '*image*' |
| 58 | + enable: false |
| 59 | + - quantizer_name: '*radio*' |
| 60 | + enable: false |
| 61 | + - quantizer_name: '*visual*' |
| 62 | + enable: false |
| 63 | + - quantizer_name: '*encoder*' |
| 64 | + enable: false |
| 65 | + - quantizer_name: '*model_encoder*' |
| 66 | + enable: false |
0 commit comments