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

Implement kv-cache #21

Merged
merged 2 commits into from
Mar 14, 2023
Merged

Implement kv-cache #21

merged 2 commits into from
Mar 14, 2023

Conversation

certik
Copy link
Owner

@certik certik commented Mar 14, 2023

Fixes #3.

@certik
Copy link
Owner Author

certik commented Mar 14, 2023

It seems the performance is about the same for use_cache = .false.. For use_cache = .true. the performance is much higher (on par with PyTorch) and it still produces the same answer.

@certik certik merged commit 561e276 into main Mar 14, 2023
@certik certik deleted the kv4 branch March 14, 2023 04:22
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.

Implement kv cache
1 participant