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 · 278 stars · 27 forks · +14 stars in 24 hours · Trending score 2.19

  2. 2
    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 · 862 stars · 65 forks · +7 stars in 24 hours · Trending score 1.53

  3. 3
    mytechnotalent/TinyGPT

    A pure Rust GPT implementation from scratch.

    GitHub · Rust · 10 stars · 1 forks · +3 stars in 24 hours · Trending score 0.93

  4. 4
    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 · +2 stars in 24 hours · Trending score 0.88

  5. 5
    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 · +1 stars in 24 hours · Trending score 0.46

  6. 6
    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.42

  7. 7
    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

  8. 8
    erogol/BlaGPT

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

    GitHub · Python · 118 stars · 12 forks · 0 stars in 24 hours · Trending score 0.10

  9. 9
    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

  10. 10
    Yolande1994/CUDA_GPT2_Inference

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

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

  11. 11
    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.02

  12. 12
    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,787 stars · 1,028 forks · 0 stars in 24 hours · Trending score 0.00