Skip to main content

Build a Custom ChatGPT for $100 with Open-Source nanochat

Build Your Own ChatGPT Clone for Under $100

Artificial intelligence development has taken a significant leap toward accessibility with the launch of nanochat, an open-source project that allows developers to build a fully functional chat AI system at minimal cost. Created by renowned AI expert Andrej Karpathy, this tool represents what he calls "the best ChatGPT implementation under $100."

Breaking Down Barriers in AI Development

The project serves dual purposes: as both a practical tool and an educational resource. Unlike previous implementations that focused solely on pre-training, nanochat provides an end-to-end pipeline covering:

  • Model training
  • Fine-tuning
  • Performance evaluation
  • Interactive deployment

The entire system comprises approximately 8,000 lines of code with minimal dependencies, making it exceptionally readable and modifiable.

Image

Technical Specifications and Process Flow

The workflow requires:

  1. Starting a cloud node with 8 H100 GPUs (~$24/hour)
  2. Running the smoothrun.sh script
  3. Completing the process in about 4 hours

The technical process includes:

  • Data preprocessing: Using high-quality corpora like FineWeb-Edu
  • Tokenization: Fast Rust-based tokenizer supporting 65,536 vocabulary size
  • Pre-training: PyTorch-based Transformer model training
  • Fine-tuning: Integration of SmolTalk dialogue dataset and reinforcement learning optimization

The final product supports both command-line and web interfaces, capable of generating stories, answering questions, and even handling basic tool calls.

Performance Metrics and Scaling Options

The project demonstrates remarkable scalability:

Training Duration Cost Capabilities Achieved

The model achieves particularly strong results in multiple-choice testing scenarios.

Educational Value and Community Impact

As the capstone project for Karpathy's LLM101n course, nanochat aims to provide:

  • A unified baseline stack
  • Readable/modifiable code
  • Complete workflow transparency

The GitHub repository has already generated significant community engagement (Project URL).

Key Points:

  1. Creates functional chatbot clones for under $100
  2. Complete training-to-deployment pipeline in ~4 hours
  3. Educational focus with transparent code structure
  4. Scales effectively with additional compute resources
  5. Potential benchmark for AI education/research

Enjoyed this article?

Subscribe to our newsletter for the latest AI news, product reviews, and project recommendations delivered to your inbox weekly.

Weekly digestFree foreverUnsubscribe anytime

Related Articles

News

Chinese AI Giants Gear Up for Spring Festival Model Showdown

As Lunar New Year approaches, China's AI sector is buzzing with anticipation. Zhipu AI and MiniMax are set to unveil their latest models - GLM-5 and M2.2 respectively - promising breakthroughs in creative writing and programming. Meanwhile, ByteDance and Alibaba prepare their own offerings, signaling intensified competition in the AI landscape. These releases could redefine how we interact with artificial intelligence.

February 3, 2026
AI-developmentChina-techmachine-learning
OpenAI's GPT-5.3-Codex: A Game-Changer for Developers
News

OpenAI's GPT-5.3-Codex: A Game-Changer for Developers

OpenAI has unveiled GPT-5.3-Codex, its most advanced programming assistant yet. This powerhouse not only writes code with unprecedented accuracy but also handles complex system operations like a seasoned engineer. With dramatic efficiency gains and top-tier security features, it's set to revolutionize how developers work.

February 6, 2026
AI-developmentprogramming-toolsOpenAI
Ant Group's Robotics Leap: Open-Source AI Model Boosts Robot Intelligence
News

Ant Group's Robotics Leap: Open-Source AI Model Boosts Robot Intelligence

Ant Group's Lingbo Technology has made its embodied intelligence model LingBot-VLA fully open-source, marking a significant advancement in robotics. The model demonstrates remarkable cross-platform adaptability and training efficiency, outperforming existing frameworks. Alongside this release, their new LingBot-Depth spatial perception model enhances 3D environmental understanding for robots and autonomous vehicles. These developments could accelerate smart robotics adoption across industries.

January 28, 2026
roboticsAI innovationAnt Group
Tencent's Hunyuan Image 3.0 Goes Open-Source: A Game-Changer for AI Creativity
News

Tencent's Hunyuan Image 3.0 Goes Open-Source: A Game-Changer for AI Creativity

Tencent has made waves in the AI community by open-sourcing its powerful Hunyuan Image 3.0 model. With an impressive 80 billion parameters, this image-to-image tool ranks among the world's best, offering everything from meme creation to professional design enhancements. The company is putting its full weight behind the open-source movement, making both standard and lightweight versions available to developers worldwide.

January 28, 2026
AI creativityopen-sourceimage editing
Curl pulls plug on bug bounty program amid AI-generated report flood
News

Curl pulls plug on bug bounty program amid AI-generated report flood

The widely-used command line tool curl is shutting down its vulnerability reward program after being overwhelmed by low-quality AI-generated reports. Founder Daniel Stenberg says these 'AI slop' submissions sound professional but offer no real value, instead draining developers' time. Starting February 2026, curl will no longer pay for bug reports and warns that spam submitters may face public shaming.

January 23, 2026
open-sourceAI-challengescybersecurity
LTX-2 Opens New Era for AI Video Creation
News

LTX-2 Opens New Era for AI Video Creation

The Lightricks team has unleashed LTX-2, a groundbreaking open-source model that generates synchronized 4K video and audio in one shot. Running smoothly on consumer GPUs, this technology brings professional-grade video creation to your desktop. Developers are already celebrating its arrival with ready-to-use workflows and optimized performance.

January 7, 2026
AI-videoopen-sourcecreative-tools