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

rave generate improvements #297

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nshaheed
Copy link

@nshaheed nshaheed commented Mar 9, 2024

  • Added torch.no_grad to main. Without this, this gradients accumulate when doing inference and the memory consumption on longer files explode. Without this fix I was getting OOM errors on 24gb of vram with a 17-minute file. With this change, roughly 9gb of VRAM is used with the same file (and ~1gb when using a small chunk size)
  • removed the re.sub. This isn't being used and caused rave generate to fail with windows filepaths (due to \ being incorrectly read as escape characters)

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.

None yet

1 participant