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
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
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
| $columns: 12; | |
| $gap: 30px; | |
| $breakpoints: ( | |
| xs: 480px, | |
| sm: 768px, | |
| md: 960px, | |
| lg: 1170px, | |
| xl: 1280px | |
| ); |
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
| #!/bin/bash | |
| # Linux version | |
| # Use this script to pipe in/out of the clipboard | |
| # | |
| # Usage: someapp | clip # Pipe someapp's output into clipboard | |
| # clip | someapp # Pipe clipboard's content into someapp | |
| # | |
| if command -v xclip 1>/dev/null; then | |
| if [[ -p /dev/stdin ]] ; then |
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
| git tag -d TagName && git push origin :refs/tags/TagName |