Skip to content

Instantly share code, notes, and snippets.

View manel00's full-sized avatar

Manel M manel00

View GitHub Profile
"""
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
@jalalhejazi
jalalhejazi / app.js
Created April 22, 2013 14:06
nodejs: Node create server and send data.json filecontent to client of CORS !
/*
Response header info:
Access-Control-Allow-Origin:*
Content-Type:text/json
X-Powered-By:nodejs
*/
var http = require('http');
var fs = require('fs');