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