Tr

Trained Tiny Tales GPT(30M model)from scratch and deployed in $15

Hacker News

Trained Tiny Tales GPT(30M model)from scratch and deployed in $15

For the last few weeks, I have been working on training an LLM from scratch and deploying it in production on Google Cloud Platform. Finally, I trained a 30 million parameter model on 1 billion tokens and deployed it as a web service. You can access the LLM using this site - https://kunalmishra.info The following steps were taken to build Tiny Tales GPT 1. Downloaded and preprocessed 8GB of dataset using multiprocessing library. 2. Tokenized the data using byte pair encoding to create 1 billion tokens sharded in different bin files. 3. Defined a training setup and trained the model on a small version of the LLaMA model architecture with 30 million parameters. 4. The training was done using Distributed Data-Parallel on two A-100 GPUs provided by JarvisLabs.ai (they are most cost-optimized) 5. After the training is done, an inference script is created to predict the tokens from the trained model given the input context vector. 6. Developed REST-based API service using Flask framework to interact with the inference service to the end user. 7. Finally used GCP's virtual machines, instance groups, load balancers, and DNS services to deploy the service on the internet.

Share card

Actual performance

18points
1comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, model, google · Missing: agents, macos, agent
88%88% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: created, para · Missing: supports, reddit linkedin, podcasting
87%87% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: llama, ide, io · Missing: https docs, excited, just released
71%71% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: google, para · Missing: mobile apps, ios, personal
36%36% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: platform · Missing: plus, intuitive, reviews
24%24% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: training · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Th
ThiruvalluvarGPT – GPT model trained using Tamil Tirukkural Poems46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ThiruvalluvarGPT – GPT model trained using Tamil Tirukkural Poems

Hacker News2
Ch
Chesslm – Tiny chess model trained on Stockfish52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Chesslm – Tiny chess model trained on Stockfish

Hacker News1
GP
GPT-2 from scratch in PyTorch – Video tutorial38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GPT-2 from scratch in PyTorch – Video tutorial

Hacker News1
Bu
Building a GPT from scratch: What I learned and why it mattered67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Building a GPT from scratch: What I learned and why it mattered

Hacker News2
Ne
Nested VMs from Scratch in C66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Nested VMs from Scratch in C

Hacker News4
A
A debugger from scratch – part 166%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A debugger from scratch – part 1

Hacker News3
Ja
Javadoc Rewritten from Scratch61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Javadoc Rewritten from Scratch

Hacker News9
MM
MMOBomb 4.0 – I rebuild it from scratch61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MMOBomb 4.0 – I rebuild it from scratch

Hacker News1
GC
GCounter CRDT Implemented from Scratch in Golang56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GCounter CRDT Implemented from Scratch in Golang

Hacker News1
The CEO's Brainpan
The CEO's Brainpan27%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

An itch that I can't quite scratch.

Indie Hackers24communication