This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # microgpt_atomics_inline.exs | |
| # Port of microgpt.py by @karpathy | |
| # | |
| # Storage: :atomics array (7 slots per node) in place of Python dicts. | |
| # Refs threaded: both data ref and counter ref passed as args, zero | |
| # :persistent_term.get calls during training/inference. | |
| # @compile inline on all hot V and MicroGPT functions. | |
| # | |
| # Optimizations that diverge from the Python original: | |
| # |