Skip to content

Commit

Permalink
Fix get_dtype_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov committed Jun 30, 2023
1 parent 7bf9b40 commit f8b32ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/petals/server/throughput.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,6 @@ def get_device_name(device: torch.device) -> str:

def get_dtype_name(dtype: torch.dtype, quant_type: QuantType) -> str:
name = str(dtype)
if quant_type is not None:
if quant_type != QuantType.NONE:
name += f", quantized to {quant_type.name.lower()}"
return name

0 comments on commit f8b32ec

Please sign in to comment.