Skip to content

Commit

Permalink
remove unused lines
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 607354714
  • Loading branch information
rybakov authored and pax authors committed Feb 15, 2024
1 parent c61583c commit 5605af8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions praxis/layers/quantization/linears.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ def _get_weight_hparams(
scale_sharding = None
else:
weight_sharding = wp.wt
scale_sharding = None
if wp.wt is not None and len(wp.wt) > 1:
scale_sharding = [wp.wt[1]]
else:
Expand Down Expand Up @@ -327,7 +326,6 @@ def quantize_weight(self) -> NestedJTensor:
'quantize_weight is called during serving for quantized model, please'
' set quantized config for the model.'
)
theta = self.theta
scale_name = 'w' + base_layer.QUANTIZED_SCALE_NAME_POSTFIX

w = self.theta.w
Expand Down

0 comments on commit 5605af8

Please sign in to comment.