Skip to content

Architecture Reimplementation · Python

Mini-GPT

What it is

This repository implements a character-level, decoder-only Transformer (GPT) from scratch using PyTorch, including a tokenizer, data loader, model architecture (with self-attention, multi-head attention, feed-forward networks, and Transformer blocks), training loop, and inference capabilities, following a tutorial by Andrej Karpathy.

Scored ate5217853 Dec 2026Changes since

Merit describes the code at this commit. Later pushes count once the owner rescans. How merit is scored

Tests, level by level

From the files read and your CI on GitHub

  1. Tests exist: yes.2 test files in the repository.
  2. Can run as committed: yes.No missing imports in the test files read.
  3. CI runs them: none.No CI workflow.
  4. They pass: none.GitHub has no result of a test run for this project.

Distribution based on AI work

1 / 2
Machine Learning: 39.1%NLP & LLMs: 39.1%Data Science: 13.0%MLOps: 8.7%
  • Machine Learning39%
  • NLP & LLMs39%
  • Data Science13%
  • MLOps9%

Each field's share of the project's AI work, as scoring counts it. It ranks in the field it is most about.

What the judge found

Read from the project's code at its scored commit

Strengths5

  • Faithful from-scratch implementation of the Transformer architecture using only basic PyTorch building blocks.
  • Modular code structure separating concerns (tokenizer, dataset, model, training, plotting).
  • Includes unit tests for tokenizer and model components.
  • Clear documentation and acknowledgements of the tutorial followed.
  • Demonstrates training and inference on a small dataset, showing the effectiveness of attention.

Limitations

The owner keeps this project's limitations private

Around it on the Machine Learning board

Whole board
  1. 77datathon_finalML Application · Jupyter Notebook56.8/100Thái Sơn
  2. 78, shared rankchtbx-livive-netML Application · Python56.7/100Jarad Peckenpaugh
  3. 78, shared rankmodern-training-pipelineAI Developer Tool · Python56.7/100Mohamed Khayat
  4. 78, shared rankMini-GPTArchitecture Reimplementation · Python56.7/100hmz elf
  5. 81, shared rankIIT_gdn_IP0NB0000022ML Application · Jupyter Notebook56.5/100Gaurav

More from hmz elf