Skip to content

Commit 0fa9f8c

Browse files
committed
Add missing docs.
1 parent ab4f189 commit 0fa9f8c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/llm/train.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,14 @@ def train_one_epoch(
108108

109109

110110
def validate(model: LLM, dataloader: DataLoader, device: torch.device) -> float:
111-
"""Validate model performance."""
111+
"""Validate model performance.
112+
113+
Args:
114+
model (LLM): Instance of LLM.
115+
dataloader (DataLoader): Validation dataloader.
116+
device (torch.device): Torch device.
117+
118+
"""
112119
model.eval()
113120
total_loss = 0.0
114121
num_batches = 0

0 commit comments

Comments
 (0)