-
-
Notifications
You must be signed in to change notification settings - Fork 713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Phi-3 model #1580
base: main
Are you sure you want to change the base?
Adding Phi-3 model #1580
Conversation
examples/phi/phi3-ft.yml
Outdated
fsdp: | ||
- full_shard | ||
- auto_wrap | ||
fsdp_config: | ||
fsdp_limit_all_gathers: true | ||
fsdp_sync_module_states: true | ||
fsdp_offload_params: true | ||
fsdp_use_orig_params: false | ||
fsdp_cpu_ram_efficient_loading: true | ||
fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP | ||
fsdp_transformer_layer_cls_to_wrap: Phi3DecoderLayer | ||
fsdp_state_dict_type: FULL_STATE_DICT | ||
fsdp_sharding_strategy: FULL_SHARD | ||
resize_token_embeddings_to_32x: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally we prefer not to have FSDP or deepspeed specific configs (which require multi-gpu) for smaller models that should fit on single GPU systems.
Will you also add support for |
will merge this after #1582 |
Was wondering when would this be merged? |
Too busy to work on this :P |
@winglian I am having some issues with phi-3-small and phi-3-medium models.
Is it correct to assume this PR won't solve these, right? |
Adding Phi-3 model
fsdp_transformer_layer_cls_to_wrap: Phi3DecoderLayer