Skip to content

Instantly share code, notes, and snippets.

View LemuSakuya's full-sized avatar
😭
にゃあ、つらいにゃあ

Lemu Sakuya LemuSakuya

😭
にゃあ、つらいにゃあ
  • Hunan Normal University
  • Hunan Normal University
  • X @LemuSakuya
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
@Einstrasse
Einstrasse / bits-stdc++.h
Created December 3, 2019 14:52
bits/stdc++.h header file
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2015 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.