Skip to content

Baby AI is a minimalistic artificial intelligence system designed to evolve from scratch by observing character sequences and forming abstract concepts.

License

Notifications You must be signed in to change notification settings

LunaStev/babylm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Baby AI

Baby AI is a minimalistic artificial intelligence system designed to evolve from scratch by observing character sequences and forming abstract concepts. It is intentionally built without any preloaded vocabulary, grammar, or language structure. The entire AI grows step-by-step, by experiencing the world of symbols and discovering meaning through patterns.


📦 Features

  • 🧠 Concept discovery from raw character input
  • 🗂️ Dynamic vocabulary and grammar development
  • 📊 Web-based dashboard for visualization and monitoring
  • 🧾 Detailed logging of all AI activities
  • 🔁 Real-time learning with randomized data generation
  • 💾 Model saving and reloading (saved_model.pt)

📸 Dashboard

The web dashboard includes:

  • 📄 Full training logs (auto-refreshing)
  • 🧠 List of discovered concepts
  • 📊 Concept creation graph
  • 📦 Model metadata (file size, parameter count, layer count)

🚀 Getting Started

Requirements

  • Python 3.10+
  • PyTorch
  • FastAPI
  • Uvicorn
  • Jinja2
  • Matplotlib

Installation

git clone https://github.com/LunaStev/babylm.git
cd baby-ai
pip install -r requirements.txt

Run the AI Engine

python main.py

This will continuously generate random data and train the model.

Launch the Web Dashboard

uvicorn dashboard:app --reload

Open your browser and visit: http://localhost:8000


📁 Project Structure

babylm/
├── core/                # Core AI logic and model
│   ├── model.py         # BabyModel (neural network)
│   ├── engine.py        # Learning engine
│   ├── charset.py       # Character set definitions
├── web/
│   ├── dashboard.py         # FastAPI-based dashboard server
│   └── templates/
│       └── index.html   # Dashboard HTML
├── main.py              # Main training loop
├── logs/ai.log          # Training log
├── saved_model.pt       # Saved PyTorch model

📄 License

This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).


💬 About

Baby AI is a philosophical experiment in bottom-up intelligence construction. Rather than relying on pretrained language models, this project aims to simulate a truly emergent learning process—starting from nothing but symbols.

Created with ❤️ by LunaStev

About

Baby AI is a minimalistic artificial intelligence system designed to evolve from scratch by observing character sequences and forming abstract concepts.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project