Skip to content

Comments

Peteish13#739

Merged
dirkgr merged 310 commits intomainfrom
peteish13-augusta
Nov 18, 2024
Merged

Peteish13#739
dirkgr merged 310 commits intomainfrom
peteish13-augusta

Conversation

@dirkgr
Copy link
Member

@dirkgr dirkgr commented Oct 21, 2024

  • Peteish13 configs
  • More options for torch.compile()
  • Apply compile() to one block at a time.
  • Fixes to run in the Google cloud
  • Scripts to run on the Augusta cluster

@dirkgr dirkgr requested review from 2015aroras and epwalsh November 15, 2024 19:49
@dirkgr dirkgr marked this pull request as ready for review November 15, 2024 19:57

del eval_batches

# Eval compiles a bunch more versions, and the result is terrible. This way we get back to zero.
Copy link
Member

Choose a reason for hiding this comment

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

What do you that the result is terrible?

Copy link
Member

Choose a reason for hiding this comment

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

so this prompted me to look into this a bit more and I think I've found a better solution: just mark the model input sizes as dynamic. I tested this out in OLMo-core and it appears to work well.
allenai/OLMo-core#105

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it compiles a bunch of versions for different batch sizes, because that's how we call it during eval, and then they stick around. In all of my early runs I had high tps until the first eval, and then low tps afterwards. This is what fixed it.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried dynamic and it was bad. I don't remember the way in which it was bad, but it didn't work. That's why I added that version in the first place.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, oh well. I tested with nightly so maybe it's just better now with recent compiler advances.

@dirkgr dirkgr merged commit 7e81a6c into main Nov 18, 2024
@dirkgr dirkgr deleted the peteish13-augusta branch November 18, 2024 18:38
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.

3 participants