Skip to content
Open
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
2 changes: 2 additions & 0 deletions scripts/train_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ def train_loop(config: _config.TrainConfig):
(model.module if isinstance(model, torch.nn.parallel.DistributedDataParallel) else model), model_path
)
logging.info(f"Loaded PyTorch weights from {config.pytorch_weight_path}")
else:
logging.warning("No weights loaded, training from scratch.")

# Optimizer + learning rate schedule from config
warmup_steps = config.lr_schedule.warmup_steps
Expand Down
1 change: 1 addition & 0 deletions src/openpi/training/weight_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def load(self, params: at.Params) -> at.Params:
@dataclasses.dataclass(frozen=True)
class NoOpWeightLoader(WeightLoader):
def load(self, params: at.Params) -> at.Params:
logger.warning("No weights loaded, training from scratch.")
return params


Expand Down