{"id":"oscr:b:Z1KFHX0H8JFXN-P","url":"https://openscicode.org/b/oscr:b:Z1KFHX0H8JFXN-P","status":"current","doi":"10.1038/s41586-024-08548-w","since":"2026-11-14","page":"doi_10.1038_s41586-024-08548-w","repo":"github.com/karpathy/mingpt","commit":"37baab71b9abea1b76ab957409a1cc2fbfba8a26","path":"mingpt/model.py","swhid":"swh:1:cnt:83ee22dc07707fd9cb62eb3215c1c1e4b150b5c9","lines":[29,71],"symbol":"CausalSelfAttention","paragraphs":[[84,"Methods › Modelling › Transformers"]],"method":"lexical-v1","origin":"machine","paper":"https://doi.org/10.1038/s41586-024-08548-w","swhid_qualified":"swh:1:cnt:83ee22dc07707fd9cb62eb3215c1c1e4b150b5c9;origin=https://github.com/karpathy/mingpt;anchor=swh:1:rev:37baab71b9abea1b76ab957409a1cc2fbfba8a26;path=/mingpt/model.py;lines=29-71","reader":"https://openscicode.org/paper/doi_10.1038_s41586-024-08548-w/?path=mingpt%2Fmodel.py#L29-L71","citation":"Code block oscr:b:Z1KFHX0H8JFXN-P (https://openscicode.org/b/oscr:b:Z1KFHX0H8JFXN-P)\nmingpt/model.py, lines 29 to 71, in github.com/karpathy/mingpt (https://github.com/karpathy/mingpt), commit 37baab71b9abea1b76ab957409a1cc2fbfba8a26.\nPaper: https://doi.org/10.1038/s41586-024-08548-w\nSWHID: swh:1:cnt:83ee22dc07707fd9cb62eb3215c1c1e4b150b5c9;origin=https://github.com/karpathy/mingpt;anchor=swh:1:rev:37baab71b9abea1b76ab957409a1cc2fbfba8a26;path=/mingpt/model.py;lines=29-71"}