sirohikartik

Tinystories version of gpt with custom inference engine

16
0
100% credibility
Found Apr 06, 2026 at 16 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
C++
AI Summary

Custom high-performance C++ inference engine for running a 30 million parameter transformer language model trained on children's stories.

How It Works

1
๐Ÿ“– Discover TinyGPT

You hear about a fun project that lets you run a tiny AI storyteller on your Mac.

2
โฌ‡๏ธ Get the files

Download the project folder to your Mac computer.

3
๐Ÿ“ Prepare word list

Run a simple helper to create the dictionary of words the storyteller knows.

4
๐Ÿ”จ Build storyteller

Use the built-in instructions to assemble your personal story generator.

5
๐Ÿš€ Launch it

Start the program and type a starting phrase like 'Once upon a time...'

6
โœจ Watch magic happen

The AI thinks and writes a complete little story just for you.

๐Ÿ˜Š Enjoy stories

Delight in generating endless simple tales anytime you want.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 16 to 16 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is tinygpt?

TinyGPT delivers a custom C++ inference engine for a 30M parameter GPT model trained on the TinyStories dataset from GitHub. It runs autoregressive text generation on macOS CPUs, handling prompts up to 128 tokens with GPT-2 compatible tokenization and features like temperature sampling. Build once with make, then execute ./a.out for instant story-like outputs from inputs like "Hello, how are you?".

Why is it gaining traction?

This tinystories version stands out with SIMD-optimized CPU speed on Apple Silicon, no Python runtime or heavy frameworks neededโ€”pure C++ for tinygpt huggingface-style models. Developers hook into its modular generation tweaks, like max tokens and context cropping, making it a lightweight alternative to bloated inference setups for small backbones akin to tinygpt-v.

Who should use this?

ML tinkerers porting TinyStories models to edge devices, C++ enthusiasts rebuilding GPT inference from weights in .npy format, or educators demoing transformer generation without GPUs. Perfect for macOS users prototyping efficient multimodal large language model via small backbones like tinygpt-v huggingface variants.

Verdict

At 16 stars and 1.0% credibility score, it's immature with sparse tests and Linux/Windows tweaks needed, but docs guide quick setup. Grab it for educational custom engine experiments; pass for anything reliable.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.