Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MidiDataset optimizations #68

Merged
merged 11 commits into from
Nov 22, 2023
Prev Previous commit
Next Next commit
fix a minor output format mismatch when grad_checkpoint is true
  • Loading branch information
honglu2875 committed Nov 12, 2023
commit 93301fafde4970832c5d6fff0af88181d1a3ade7
2 changes: 1 addition & 1 deletion aria/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def custom_forward(*args):

return custom_forward

hidden_states = torch.utils.checkpoint.checkpoint(
hidden_states, _ = torch.utils.checkpoint.checkpoint(
Copy link
Contributor

Choose a reason for hiding this comment

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

Did this end up fixing something?

create_custom_forward(layer),
hidden_states,
preserve_rng_state=True,
Expand Down