Skip to content

Conversation

@wli51
Copy link
Collaborator

@wli51 wli51 commented Nov 17, 2025

Overview

Following previous PRs (#17 , #18, #19) that implements the infrastructure to abstract away the model training complexity away from trainer and enforcing more robust device management, this PR finally integrates the parts from previous PRs into the trainer.

Adds

  1. src/virtual_stain_flow/trainers/logging_trainer.py: simplified logging trainer utilizing new training infra
  2. examples/training_with_logging_example.ipynb: new example to demo logging trainer

Refactors (minor)

  1. `src/virtual_stain_flow/engine/forward_groups.py
  2. src/virtual_stain_flow/engine/loss_group.py
    to better integrate with AbstractTrainer
  3. src/virtual_stain_flow/trainers/AbstractTrainer.py: to show a training progress bar

Removes

All the obsolete trainer classes

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@wli51 wli51 marked this pull request as ready for review November 17, 2025 19:55
@wli51 wli51 changed the title PR integrating engine into new trainers PR integrating engine into new trainers and finalizing the multi-gpu fix Nov 17, 2025
Copy link
Member

@jenna-tomkinson jenna-tomkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I added some comments and questions to address prior to merging, but overall looks cool and very concise!

@wli51 wli51 force-pushed the dev-fix-multi-gpu-update-trainer branch from 3666d08 to 8c395cf Compare November 21, 2025 19:04
@wli51
Copy link
Collaborator Author

wli51 commented Nov 21, 2025

Thanks for reviewing @jenna-tomkinson! I have applied changes to address all of your suggestions. Merging now!

@wli51 wli51 merged commit 59c92c1 into WayScience:main Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants