File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -166,8 +166,7 @@ def main(**kwargs):
166
166
#setting up FSDP if enable_fsdp is enabled
167
167
if train_config .enable_fsdp :
168
168
if not train_config .use_peft and train_config .freeze_layers :
169
-
170
- freeze_transformer_layers (train_config .num_freeze_layers )
169
+ freeze_transformer_layers (model , train_config .num_freeze_layers )
171
170
172
171
mixed_precision_policy , wrapping_policy = get_policies (fsdp_config , rank )
173
172
my_auto_wrapping_policy = fsdp_auto_wrap_policy (model , LlamaDecoderLayer )
@@ -217,7 +216,7 @@ def main(**kwargs):
217
216
split = "test" ,
218
217
)
219
218
if not train_config .enable_fsdp or rank == 0 :
220
- print (f"--> Validation Set Length = { len (dataset_val )} " )
219
+ print (f"--> Validation Set Length = { len (dataset_val )} " )
221
220
222
221
if train_config .batching_strategy == "packing" :
223
222
dataset_train = ConcatDataset (dataset_train , chunk_size = train_config .context_length )
You can’t perform that action at this time.
0 commit comments