Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 5 additions & 1 deletion trlx/data/configs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass
from typing import Any, Dict, Tuple
from typing import Any, Dict, Optional, Tuple

import yaml

Expand Down Expand Up @@ -80,6 +80,9 @@ class TrainConfig:

:param project_name: Project name for wandb
:type project_name: str

:param entity_name: Entity name for wandb
:type entity_name: str
"""

total_steps: int
Expand All @@ -102,6 +105,7 @@ class TrainConfig:

checkpoint_dir: str = "ckpts"
project_name: str = "trlx"
entity_name: Optional[str] = None
seed: int = 1000

@classmethod
Expand Down
1 change: 1 addition & 0 deletions trlx/model/accelerate_base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def __init__(self, config, train_mode=True):
init_kwargs={
"wandb": {
"name": f"{config.model.model_path}",
"entity": self.config.train.entity_name,
"mode": "disabled"
if os.environ.get("debug", False)
else "online",
Expand Down