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

use cuda if available, speeding up training #13

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

Conversation

gantrol
Copy link

@gantrol gantrol commented Jul 22, 2024

Total training time on CPU(13700F): 138.42 seconds
Total training time on GPU(3080Ti): 64.58 seconds
GPU speedup: 2.14x

@karpathy
Copy link
Contributor

So the tricky thing here is that using GPU (or MPS) could actually be slower because our networks here might be very very small. So the auto-detect logic is a bit more complex possibly. Hmm let me think.

@karpathy
Copy link
Contributor

This is what I have
#14

Not 100% sure how to handle this right now. It's introducing a layer of complexity that I'm not sure I want to "bundle" into this module.

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.

2 participants