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

Fix sizing typo in train_gpt2_fp32.cu #748

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

Conversation

gajanan-choudhary
Copy link

Fixes a simple (harmless) typo that uses NUM_ACTIVATION_TENSORS instead of NUM_BACKWARD_TENSORS in train_gpt2_fp32.cu.

Fixes a simple (harmless) typo that uses `NUM_ACTIVATION_TENSORS` instead of `NUM_BACKWARD_TENSORS` in `train_gpt2_fp32.cu`.
@gajanan-choudhary gajanan-choudhary changed the title Fix typo in train_gpt2_fp32.cu Fix sizing typo in train_gpt2_fp32.cu Aug 25, 2024
@karpathy
Copy link
Owner

Code works accidentally because 21 > 3 right?

@gajanan-choudhary
Copy link
Author

gajanan-choudhary commented Sep 2, 2024

Code works accidentally because 21 > 3 right?

Right. I tested the change locally on A100 + CUDA 12.6 and it works fine.

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