Documentation for backend and front-end teams on the /chat/cycls streaming protocol.
import cycls| """ | |
| The most atomic way to train and inference 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 |
| /* Heap based virtual machine described in section 3.4 of Three Implementation Models for Scheme, Dybvig | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #include <assert.h> | |
| char token[128][32]; |
Substack https://aljamal.substack.com/p/homoiconic-python
atom=lambda x:not isinstance(x,list)
eq=lambda x,y:x == y
car=lambda x:x[0]
cdr=lambda x:x[1:]| from quickchart import QuickChart | |
| qc = QuickChart() | |
| qc.width = 800 | |
| qc.height = 400 | |
| qc.version = '2' | |
| def chart(x,y): | |
| i = [str(i) for i in range(len(x))] | |
| qc.config = f"""{{ |
| 1211 | |
| 1698 | |
| 1787 | |
| 1947 | |
| 1888 | |
| 444 | |
| 1819 | |
| 1890 | |
| 1940 | |
| 1884 |