Skip to content

Commit

Permalink
address backward prefetch policy deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
philippguevorguian committed Jan 30, 2024
1 parent 32b3c9d commit b851e36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config/accelerate_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ distributed_type: FSDP
downcast_bf16: 'no'
fsdp_config:
fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
fsdp_backward_prefetch_policy: BACKWARD_PRE
fsdp_backward_prefetch: BACKWARD_PRE
fsdp_offload_params: false
fsdp_sharding_strategy: 1
fsdp_state_dict_type: FULL_STATE_DICT
fsdp_transformer_layer_cls_to_wrap: CustomOPTForCausalLM
fsdp_transformer_layer_cls_to_wrap: OPTForCausalLM
machine_rank: 0
main_training_function: main
mixed_precision: bf16
Expand Down
2 changes: 1 addition & 1 deletion src/config/test_configs/fsdp_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ distributed_type: FSDP
downcast_bf16: 'no'
fsdp_config:
fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
fsdp_backward_prefetch_policy: BACKWARD_PRE
fsdp_backward_prefetch: BACKWARD_PRE
fsdp_offload_params: false
fsdp_sharding_strategy: 1
fsdp_state_dict_type: FULL_STATE_DICT
Expand Down

0 comments on commit b851e36

Please sign in to comment.