Llama2 inference in one TypeScript file
-
Updated
May 29, 2025 - JavaScript
Llama2 inference in one TypeScript file
Codebase for Linguistic Collapse: Neural Collapse in (Large) Language Models [NeurIPS 2024] [arXiv:2405.17767]
🎈 A series of lightweight GPT models featuring TinyGPT Base (~51M params) and TinyGPT2 (~95M params). Fast, creative text generation trained on whimsical stories.
Dataset Generation Code for SimpleStories
Implementation of a small GPT-style transformer from scratch in PyTorch. Learn how Large Language Models work by building, training, generating text, and visualizing attention.
Train and run a small Llama 2 model from scratch on the TinyStories dataset.
Train GPT style model on tinystories dataset
Code implementation for our paper "BERTtime Stories: Investigating the Role of Synthetic Story Data in Language Pre-training" as part of the 2024 BabyLM Challenge
This project fine-tunes GPT-2, a popular pre-trained transformer model, to generate short stories using the TinyStories dataset. The goal is to teach GPT-2 to produce creative and coherent stories based on prompts.
Small transformer trained from scratch
Specialized agentic coding LLM — 3B, pre-trained from scratch, runs locally on Apple Silicon. No API key, no data leaving your machine, zero cost per call.
Training a tiny GPT-like Transformer language model
A 110M-parameter Llama-style transformer trained from scratch on the TinyStories dataset, optimized for high-throughput training on 4GB VRAM consumer GPUs. The project features a custom asynchronous CUDA-stream prefetcher and KV-cache inference, achieving 10k+ TPS on an RTX 3050.
A port of karpathy/llama2.c to MS-DOS
StoryByte — a ~1M-parameter GPT trained from scratch on TinyStories. The model behind the Let's Data Science 'Build a Tiny LLM — From Tokens to Text' course; its whole forward pass runs in ~40 lines of NumPy in a browser.
How small can English get? 8 tiny language models (fp16 vs ternary) trained from scratch on TinyStories, judged by a frozen LLM judge, and running live in your browser.
A PyTorch implementation of a Bigram Language Model using Transformer architecture for character-level text generation.
Built a GPT-2 architecture from scratch in PyTorch and trained it on the TinyStories dataset. The result is a lightweight model that generates coherent, short form children's stories.
Byte Latent Transformer (BLT) LLM built from scratch in PyTorch — tokenizer-free, byte-level, trained end-to-end on TinyStories to 0.71 BPB. Clone & run.
Add a description, image, and links to the tinystories topic page so that developers can more easily learn about it.
To associate your repository with the tinystories topic, visit your repo's landing page and select "manage topics."