deepspeed note

This commit is contained in:
sayakpaul
2024-12-26 08:12:41 +05:30
parent 1d5e0566fb
commit 1594c1dade
+1
View File
@@ -385,6 +385,7 @@ If you would like to use a custom dataset, refer to the dataset preparation guid
> [!NOTE]
> To lower memory requirements:
> - Use a DeepSpeed config to launch training (refer to [`accelerate_configs/deepspeed.yaml`](./accelerate_configs/deepspeed.yaml) as an example).
> - Pass `--precompute_conditions` when launching training.
> - Pass `--gradient_checkpointing` when launching training.
> - Do not perform validation/testing. This saves a significant amount of memory, which can be used to focus solely on training if you're on smaller VRAM GPUs.