Update _utils.py
This commit is contained in:
parent
51257d37a8
commit
bd506f2c44
1 changed files with 1 additions and 1 deletions
|
|
@ -561,7 +561,7 @@ def prepare_model_for_kbit_training(
|
|||
model.get_input_embeddings().register_forward_hook(make_inputs_require_grad)
|
||||
|
||||
# Enable grads on non language models as well
|
||||
requires_grad_for_gradient_checkpointing()
|
||||
requires_grad_for_gradient_checkpointing(model)
|
||||
pass
|
||||
|
||||
return model
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue