We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
Love the repo for the self-explanatory code and fun comments!
I would appreciate it if you could explain how the next batch is asynchronously being fetched in train.py:
nanoGPT/train.py
Lines 299 to 305 in 325be85
At the outset, without explicitly using something like asyncio, the execution seemed sequential to me. Apologies for the potential triviality, thanks!
asyncio
The text was updated successfully, but these errors were encountered:
It's due to this
x, y = x.pin_memory().to(device, non_blocking=True), y.pin_memory().to(device, non_blocking=True)
happens async
Sorry, something went wrong.
No branches or pull requests
Hi,
Love the repo for the self-explanatory code and fun comments!
I would appreciate it if you could explain how the next batch is asynchronously being fetched in train.py:
nanoGPT/train.py
Lines 299 to 305 in 325be85
At the outset, without explicitly using something like
asyncio
, the execution seemed sequential to me. Apologies for the potential triviality, thanks!The text was updated successfully, but these errors were encountered: