Skip to content

Working inference on a RTX4070 #40

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

frutiemax92
Copy link

It is possible to run inference under 12GB VRAM with those modifications. It's not really fast as you need to swap the transformer to cpu, then text_encoder to gpu, etc. I also had to remove the torch.compile directives due to the precision being bfloat16 everywhere.

image

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.

1 participant