chore: show batch_size in training step log
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -504,7 +504,7 @@ class SelvaLoraTrainer:
|
|||||||
loss_history.append(avg)
|
loss_history.append(avg)
|
||||||
lr_now = scheduler.get_last_lr()[0]
|
lr_now = scheduler.get_last_lr()[0]
|
||||||
print(f"[LoRA Trainer] step {step:5d}/{steps} "
|
print(f"[LoRA Trainer] step {step:5d}/{steps} "
|
||||||
f"loss={avg:.4f} lr={lr_now:.2e}", flush=True)
|
f"loss={avg:.4f} lr={lr_now:.2e} bs={batch_size}", flush=True)
|
||||||
running_loss = 0.0
|
running_loss = 0.0
|
||||||
|
|
||||||
# Live preview: send updated loss curve to ComfyUI frontend
|
# Live preview: send updated loss curve to ComfyUI frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user