Skip to content

Instantly share code, notes, and snippets.

View MnAkash's full-sized avatar
🎯
Focusing

Moniruzzaman Akash MnAkash

🎯
Focusing
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
@jmlrt
jmlrt / gdrive_upload_folder.py
Last active November 29, 2024 08:08
Python script to upload folder to Google Drive
# -*- coding: utf-8 -*-
"""
Upload folder to Google Drive
"""
# Enable Python3 compatibility
from __future__ import (unicode_literals, absolute_import, print_function,
division)