Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Nov 26, 2024
1 parent 5fa4e57 commit a7dad76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/brevitas_examples/common/generative/quantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
from brevitas_examples.common.generative.nn import LoRACompatibleQuantConv2d
from brevitas_examples.common.generative.nn import LoRACompatibleQuantLinear
from brevitas_examples.common.generative.quantizers import Fp8e4m3DynamicActPerGroupFloat
from brevitas_examples.common.generative.quantizers import FP8e4m3OCPDynamicActPerRowFloat
from brevitas_examples.common.generative.quantizers import FP8e4m3OCPDynamicActPerRowFixedPoint
from brevitas_examples.common.generative.quantizers import Fp8e4m3WeightSymmetricGroupQuant
from brevitas_examples.common.generative.quantizers import Int8DynamicActPerGroupFloat
from brevitas_examples.common.generative.quantizers import Int8DynamicActPerRowFixedPoint
Expand Down Expand Up @@ -198,10 +198,10 @@
'dynamic': {
'po2_scale': {
'stats': {
'per_group': {
'sym': MXFloat8e4m3Act},
'per_row': {
'sym': FP8e4m3OCPDynamicActPerRowFloat}}}}},
'sym': FP8e4m3OCPDynamicActPerRowFixedPoint},
'per_group': {
'sym': MXFloat8e4m3Act}}}}},
'float_fnuz': {
'static': {
'float_scale': {
Expand Down
2 changes: 1 addition & 1 deletion src/brevitas_examples/common/generative/quantizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Fp8e4m3DynamicActPerGroupFloat(DynamicActProxyMixin, Fp8e4m3ActPerTensorFl
scaling_stats_op = 'min_max'


class FP8e4m3OCPDynamicActPerRowFloat(Fp8e4m3ActPerTensorFloat):
class FP8e4m3OCPDynamicActPerRowFixedPoint(Fp8e4m3ActPerTensorFloat):
"""
Symmetric quantizer with per row dynamic scale.
"""
Expand Down

0 comments on commit a7dad76

Please sign in to comment.