Skip to content

Commit

Permalink
Feat (quant): switch custom float scaling default to absmax
Browse files Browse the repository at this point in the history
  • Loading branch information
volcacius committed Sep 21, 2023
1 parent 2b203c9 commit c6b86cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/brevitas/quant/experimental/float_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ class ScaledFloatWeightBase(FloatWeightBase, WeightQuantSolver):


class ScaledFloatActBase(FloatActBase, ActQuantSolver):
scaling_stats_op = 'percentile'
scaling_stats_op = 'max'
scaling_impl_type = 'parameter_from_stats'
restrict_scaling_type = 'fp'
high_percentile_q = 99.999
collect_stats_steps = 300
float_scaling_impl = FloatScaling

Expand Down

0 comments on commit c6b86cc

Please sign in to comment.