Skip to content

Commit

Permalink
missing attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
glerzing committed Aug 8, 2023
1 parent 9dae10c commit 5cc4a17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trlx/models/modeling_ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def __init__(
num_value_layers_unfrozen=0,
):
super().__init__(base_model, peft_config=peft_config)
self.num_value_layers_unfrozen = num_value_layers_unfrozen
parameter = next(hf_get_lm_head(self.base_model).parameters())
dtype = parameter.dtype
device = parameter.device
Expand Down

0 comments on commit 5cc4a17

Please sign in to comment.