Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gptqmodel/utils/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ def convert_gptq_v1_to_v2_format_module(module: BaseQuantLinear, bits: int, pack
module.qzero_format(format=2)

# Optionally convert weight from gptq_v1 to v2 format if Kernel is compatible with v2
@torch.inference_mode()
def convert_gptq_v1_to_v2_format(
model,
cfg: QuantizeConfig,
Expand Down Expand Up @@ -651,6 +652,7 @@ def convert_gptq_v2_to_v1_format_module(
module.qzero_format(format=1)

# Optionally convert weight from gptq_v2 to v1 export format if Kernel is compatible with v2
@torch.inference_mode()
def convert_gptq_v2_to_v1_format(
model,
quantize_config: QuantizeConfig,
Expand Down
4 changes: 2 additions & 2 deletions tests/models/test_qwen3_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class TestQwen3Moe(ModelTest):
DEBUG = True
ACT_GROUP_AWARE = True
DESC_ACT = False
DATASET_SIZE = 1024
DATASET_SIZE = 1024 * 4
DATASET_SORT = "desc"
QUANT_BATCH_SIZE = 4
QUANT_BATCH_SIZE = 8

def test_mimo(self):
self.quant_lm_eval()