Skip to content

Commit

Permalink
style: apply linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tonywu71 committed Sep 27, 2024
1 parent 2956a4d commit ba15d9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions colpali_engine/utils/torch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,5 @@ def print_trainable_parameters(model: nn.Module) -> None:
all_param += param.numel()
if param.requires_grad:
trainable_params += param.numel()
print(
f"trainable params: {trainable_params:,} || all params: {all_param:,} || trainable%: {100 * trainable_params / all_param}"
)
trainable_percentage = 100 * trainable_params / all_param
print(f"trainable params: {trainable_params:,} || all params: {all_param:,} || trainable%: {trainable_percentage}")

0 comments on commit ba15d9c

Please sign in to comment.