Skip to content

remove att masking on valid, test and pred#80

Merged
EzicStar merged 3 commits intomainfrom
fix/vit-masking
Jun 25, 2025
Merged

remove att masking on valid, test and pred#80
EzicStar merged 3 commits intomainfrom
fix/vit-masking

Conversation

@EzicStar
Copy link
Copy Markdown
Contributor

- make validation and testing more efficient
- improve lightning_model code
- make alibi mask optional when there no attention mask is passed as parameter
@EzicStar EzicStar requested a review from georg-wolflein June 23, 2025 16:15
@EzicStar EzicStar self-assigned this Jun 23, 2025
@EzicStar
Copy link
Copy Markdown
Contributor Author

Regarding the TODO left in the _step function, ignored it on purpose 😊

Copy link
Copy Markdown
Contributor

@georg-wolflein georg-wolflein left a comment

Choose a reason for hiding this comment

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

Nice, thank you so much for diagnosing this significant issue! Could you perform some testing before merging please?

Specifically, could you please do the following (if you haven't already):

  1. For a dataset that caused CUDA OOM before this PR, can you check that it works now with this PR?
  2. For a dataset that did not cause CUDA OOM before this PR, can you compare the prediction results to ensure that the numbers didn't change?

Thank you @EzicStar, this is a really important contribution. I approved this PR, so feel free to merge once you addressed the comments (very minor) and performed the experiments outlined above:)

@EzicStar EzicStar merged commit ee756a3 into main Jun 25, 2025
4 checks passed
@EzicStar EzicStar deleted the fix/vit-masking branch August 20, 2025 11:04
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.

CUDA OOM during validation with full bag size (large slides/tile sets exceed GPU memory) in train/crossval

2 participants