mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2026-08-17 13:35:44 +08:00
16 lines
449 B
YAML
16 lines
449 B
YAML
compute_environment: LOCAL_MACHINE
|
|
distributed_type: FSDP
|
|
fsdp_config:
|
|
fsdp_auto_wrap_policy: TRANSFORMER_BASED_WRAP
|
|
fsdp_cpu_ram_efficient_loading: true
|
|
fsdp_offload_params: false
|
|
fsdp_reshard_after_forward: true
|
|
fsdp_state_dict_type: FULL_STATE_DICT
|
|
fsdp_version: 2
|
|
mixed_precision: bf16
|
|
num_machines: 1
|
|
num_processes: 4 # Adjust based on your GPU count; 4 is suitable for 4 GPUs
|
|
rdzv_backend: static
|
|
same_network: true
|
|
use_cpu: false
|