Where can I find the full list of parameters for the Accelerate yaml config?

Is there a full list of parameters for the yaml config file? I can’t find it. There’s one on the CLI: The Command Line. What are the differences between:

  • the plugin
  • specifying the config via a yaml
  • via flags

Are they just different ways of doing the same thing?

Thanks!

1 Like

quick question:

How do you define multiple layers to wrap?

Is it like this?

fsdp_config:
     fsdp_transformer_layer_cls_to_wrap: 
         - LlamaDecoderLayer
         - Phi3DecoderLayer

I’m getting an issue where

[rank1]: Exception: Could not find the transformer layer class to wrap in the model.

for the “Phi3DecoderLayer”. I run accelerate.prepare on 2 models: 1 is using llama and 1 is phi3.

1 Like

Is there a full list of parameters for the yaml config file?

Last resort.

fsdp_config:
     fsdp_transformer_layer_cls_to_wrap: 
         - LlamaDecoderLayer
         - Phi3DecoderLayer

This is correct as YAML, but it will be treated as a list in Python, so it would be better to write it as a string. Maybe like this:

fsdp_config:
     fsdp_transformer_layer_cls_to_wrap: "LlamaDecoderLayer,Phi3DecoderLayer"