Update loader.py
This commit is contained in:
parent
bb2e6b0ea3
commit
5bfa8e4667
|
@ -155,8 +155,7 @@ def load_model(
|
|||
model.eval()
|
||||
else:
|
||||
model.train()
|
||||
if model_args.visual_inputs:
|
||||
model.vision_tower.requires_grad_(False)
|
||||
|
||||
trainable_params, all_param = count_parameters(model)
|
||||
if is_trainable:
|
||||
param_stats = "trainable params: {:d} || all params: {:d} || trainable%: {:.4f}".format(
|
||||
|
|
Loading…
Reference in New Issue