Block oscr:b:Z1KFHX0H8JFXN-P
A block of code linked to a paper, with an identifier OSCR gives it for good: it is never reused nor deleted. What a block identifier is · this block in JSON
- Identifier
oscr:b:Z1KFHX0H8JFXN-P- Status
- Current: the registry links these lines to the paper today.
- Paper
- doi:10.1038/s41586-024-08548-w · its page here
- Code
- github.com/karpathy/mingpt,
mingpt/model.py, lines 29 to 71 (CausalSelfAttention) - Commit read
37baab71b9abea1b76ab957409a1cc2fbfba8a26- SWHID
swh:1:cnt:83ee22dc07707fd9cb62eb3215c1c1e4b150b5c9;origin=https://github.com/karpathy/mingpt;anchor=swh:1:rev:37baab71b9abea1b76ab957409a1cc2fbfba8a26;path=/mingpt/model.py;lines=29-71(the Software Heritage identifier of the file as its authors published it, before any email address is hidden for display; it opens in Software Heritage's archive once the repository is archived there)- In the paper
- paragraph 84 (Methods › Modelling › Transformers)
- Linked by
- the registry's matching program (lexical-v1), which can be wrong
- Identifier given
- 2026-11-14
Open these lines beside the paper
Cite this block
Copy this text: the identifier and its page first, then the code, the paper and the SWHID.
Code block oscr:b:Z1KFHX0H8JFXN-P (https://openscicode.org/b/oscr:b:Z1KFHX0H8JFXN-P)
mingpt/model.py, lines 29 to 71, in github.com/karpathy/mingpt (https://github.com/karpathy/mingpt), commit 37baab71b9abea1b76ab957409a1cc2fbfba8a26.
Paper: https://doi.org/10.1038/s41586-024-08548-w
SWHID: swh:1:cnt:83ee22dc07707fd9cb62eb3215c1c1e4b150b5c9;origin=https://github.com/karpathy/mingpt;anchor=swh:1:rev:37baab71b9abea1b76ab957409a1cc2fbfba8a26;path=/mingpt/model.py;lines=29-71