Skip to content

Commit a6e5521

Browse files
committed
up
1 parent 52ae812 commit a6e5521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/models/llama/source_transformation/quantize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ def quantize( # noqa C901
128128
model,
129129
Int8DynamicActivationIntxWeightConfig(
130130
weight_dtype=getattr(torch, f"int{bitwidth}"),
131-
granularity=(
131+
weight_granularity=(
132132
PerAxis(0) if group_size == 0 else PerGroup(group_size)
133133
),
134-
mapping_type=MappingType.SYMMETRIC,
134+
weight_mapping_type=MappingType.SYMMETRIC,
135135
layout=PackedLinearInt8DynamicActivationIntxWeightLayout(),
136136
),
137137
)

0 commit comments

Comments
 (0)