mirror of
https://github.com/wassname/peft.git
synced 2026-09-09 11:28:32 +08:00
Update other.py
typo
This commit is contained in:
@@ -34,7 +34,7 @@ def prepare_model_for_int8_training(
|
||||
model, output_embedding_layer_name="lm_head", use_gradient_checkpointing=True, layer_norm_names=["layer_norm"]
|
||||
):
|
||||
r"""
|
||||
This method wrapps the entire protocol for preparing a model before running a training. This includes:
|
||||
This method wraps the entire protocol for preparing a model before running a training. This includes:
|
||||
1- Cast the layernorm in fp32 2- making output embedding layer require grads 3- Add the upcasting of the lm
|
||||
head to fp32
|
||||
|
||||
|
||||
Reference in New Issue
Block a user