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

Pre-allocate and reuse tensors #2

Open
budgetdevv opened this issue Sep 13, 2024 · 0 comments
Open

Pre-allocate and reuse tensors #2

budgetdevv opened this issue Sep 13, 2024 · 0 comments
Assignees

Comments

@budgetdevv
Copy link
Owner

Instead of letting the GC collect the managed tensors, pre-allocate them and reuse. Especially important for logits generation, where tensors are 50k+ floating point values. Unfortunately, the tensors are re-allocated each step

@budgetdevv budgetdevv self-assigned this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant