Download kdflow/arguments/fsdp_args.py from codemaivanngu/ctopd: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/codemaivanngu/ctopd/resolve/main/kdflow/arguments/fsdp_args.py
- Command line
-
hf download hf://codemaivanngu/ctopd/kdflow/arguments/fsdp_args.py
-
curl -L -o fsdp_args.py https://huggingface.co/codemaivanngu/ctopd/resolve/main/kdflow/arguments/fsdp_args.py
387 Bytes
| from dataclasses import dataclass, field | |
| from typing import Optional | |
| class FSDPArguments: | |
| """ Arguments for fsdp backend.""" | |
| fsdp_size: int = field( | |
| default=-1, | |
| metadata={"help": "FSDP shard size (for HSDP)."} | |
| ) | |
| cpu_offload: bool = field( | |
| default=False, | |
| metadata={"help": "Offload Adam optimizer to GPU."} | |
| ) | |