Skip to content

Instantly share code, notes, and snippets.

View monideep2255's full-sized avatar

Monideep Chakraborti monideep2255

View GitHub Profile
@monideep2255
monideep2255 / microgpt.py
Created February 13, 2026 00:42 — forked from karpathy/microgpt.py
microgpt
"""
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
#calculation of sum and average
def main():
'''Function: main
Parameters: none
Return: the sum and the average
'''
user_input = int(input("Enter the number of values to read: "))
#This condition will make sure that the user enters min. 1 as value
@monideep2255
monideep2255 / small.py
Last active September 25, 2020 02:53
5001 module 4 functions
'''
Monideep Chakraborti
CS 5001, Fall 2020
Module 3, Exercise 1
09/21/2020
'''
def main():
first_number = int(input("Enter first: "))
second_number = int(input("Enter second: "))