Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions skyrl/train/config/sft_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,21 @@ def from_cli_overrides(cls, args: Union[List[str], dict]) -> "SFTConfig":

seed: int = 42

# ---- Data loading ----
num_workers: int = 8
"""Number of worker processes for parallel tokenization during dataset loading. Set to 0 for single-threaded."""

# ---- Tokenized dataset caching ----
cache_dir: str = os.path.join(
os.environ.get("XDG_CACHE_HOME", os.path.expanduser("~/.cache")), "skyrl", "tokenized_datasets"
)
"""Directory to cache tokenized datasets. For multi-node training, set this to an NFS-mounted path so all nodes can
share the cache."""
force_recache: bool = False
"""If True, ignore existing cache and re-tokenize the dataset."""
disable_cache: bool = False
"""If True, disable cache completely (always tokenize from scratch)."""

# ---- Training target ----
train_on_what: TrainOnWhat = TrainOnWhat.LAST_ASSISTANT_MESSAGE
"""Which tokens to compute loss on. See :class:`TrainOnWhat` for options."""
Expand Down
Loading
Loading