mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-22 22:02:51 +08:00
Update loader.py
Former-commit-id: 5bfa8e4667534ca7737c5991f59c24ff0d6dc02f
This commit is contained in:
parent
28d9d7274d
commit
7e0ffc0a64
@ -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…
x
Reference in New Issue
Block a user