gpt-2 repositories

Trending repositories tagged gpt-2, ranked by trending score. Updated daily.

  1. 1
    aa1143/NamiGPT

    零基础入门大模型(LLM)的基础教程:从零手写 GPT-2,一行行看懂大模型是怎么工作的 | Build GPT-2 from scratch in PyTorch, step by step

    GitHub · Python · 313 stars · 28 forks · +16 stars in 24 hours · Trending score 2.34

  2. 2
    BlinkDL/RWKV-LM

    RWKV (pronounced RwaKuv) is an RNN with great LLM performance, which can also be directly trained like a GPT transformer (parallelizable). We are at RWKV-7 "Goose". So it's combining the best of RNN and transformer - great performance, linear time, constant space (no kv-cache), fast training, infinite ctx_len, and free sentence embedding.

    GitHub · Python · 14,795 stars · 1,029 forks · +6 stars in 24 hours · Trending score 1.83

  3. 3
    keith2018/TinyGPT

    Tiny C++ LLM inference implementation from scratch

    GitHub · C++ · 132 stars · 21 forks · 0 stars in 24 hours · Trending score 0.74

  4. 4
    lonePatient/awesome-pretrained-chinese-nlp-models

    Awesome Pretrained Chinese NLP Models,高质量中文预训练模型&大模型&多模态模型&大语言模型集合

    GitHub · Python · 5,619 stars · 514 forks · 0 stars in 24 hours · Trending score 0.72

  5. 5
    niieani/gpt-tokenizer

    The fastest JavaScript BPE Tokenizer Encoder Decoder for OpenAI's GPT models (gpt-5, gpt-o*, gpt-4o, etc.). Port of OpenAI's tiktoken with additional features.

    GitHub · TypeScript · 861 stars · 65 forks · 0 stars in 24 hours · Trending score 0.57

  6. 6
    openlanguagemodel/openlanguagemodel

    Readable, composable PyTorch library for language models: build Llama, Qwen, Gemma, DeepSeek, Kimi and 20+ other architectures from plain nn.Modules, then train them on CPU, one GPU, or multi-GPU.

    GitHub · Python · 28 stars · 5 forks · 0 stars in 24 hours · Trending score 0.54

  7. 7
    erogol/BlaGPT

    Experimental playground for benchmarking language model (LM) architectures, layers, and tricks on smaller datasets. Designed for flexible experimentation and exploration.

    GitHub · Python · 119 stars · 12 forks · +1 stars in 24 hours · Trending score 0.54

  8. 8
    gladia-research-group/perseus

    A framework for encrypted CKKS transformer inference on GPU. We implement complex slots utilization for decoding, packing awareness for sparse bootstrap placement, and a python API. Perseus supports encrypted language modelling, image and sentence classification, and image generation.

    GitHub · Rust · 28 stars · 5 forks · 0 stars in 24 hours · Trending score 0.36

  9. 9
    ulmentflam/llm.mojo

    GPT-2 training in pure Mojo with hand-written CUDA and Metal GPU kernels. llm.c parity in bf16 on NVIDIA, 1.72x faster than PyTorch MPS on Apple Silicon.

    GitHub · Mojo · 33 stars · 6 forks · 0 stars in 24 hours · Trending score 0.35

  10. 10
    mytechnotalent/TinyGPT

    A pure Rust GPT implementation from scratch.

    GitHub · Rust · 10 stars · 1 forks · 0 stars in 24 hours · Trending score 0.28

  11. 11
    shreyansh26/Annotated-ML-Papers

    Annotations of the interesting ML papers I read

    GitHub · 288 stars · 28 forks · 0 stars in 24 hours · Trending score 0.22

  12. 12
    tac0mania/taco

    GPT-2 with zero floats: compress on a Mac, decompress on Windows/CUDA/Vulkan, byte-for-byte identical. Lossless LLM compression that doesn't break when the hardware changes. (alpha)

    GitHub · Rust · 12 stars · 1 forks · 0 stars in 24 hours · Trending score 0.14

  13. 13
    Alg-Khlifa-Mouad-Iyad/GPT2-MathRiddle-Forge

    Fine-Tuning GPT-2 for Math Riddles Generation with Transformers and TRL 2026

    GitHub · HTML · 56 stars · 0 forks · 0 stars in 24 hours · Trending score 0.10

  14. 14
    explosion/spacy-transformers

    🛸 Use pretrained transformers like BERT, XLNet and GPT-2 in spaCy

    GitHub · Python · 1,411 stars · 178 forks · 0 stars in 24 hours · Trending score 0.10

  15. 15
    StudioFoysal/RiddleGen-FineTuned-GPT2

    Math Riddle Generation 2026: Fine-Tuned GPT-2 for Automated Puzzle Solving

    GitHub · HTML · 55 stars · 0 forks · 0 stars in 24 hours · Trending score 0.10

  16. 16
    Yolande1994/CUDA_GPT2_Inference

    纯 CUDA 实现的 GPT2 推理,逐步优化算子与架构,最终在单请求下推理速度领先 vLLM 约 1.5 倍。逐算子逐迭代进行 NCU 视察、性能解析与记录报告。

    GitHub · Cuda · 12 stars · 0 forks · 0 stars in 24 hours · Trending score 0.08