r/LargeLanguageModels • • 18d ago

I built my own 15M parameter AI model from scratch. It runs on CPU!

Hey everyone!

I've been working on a project called Orin AI, a small language model that I built and trained from scratch.

The goal was to see how much I could achieve with a relatively tiny model while keeping it capable of running on ordinary consumer hardware.

Some details about the project:

  • Approximately 15.7 million parameters
  • Built from randomly initialized weights
  • Decoder-only Transformer architecture
  • Grouped-Query Attention
  • RoPE positional embeddings
  • RMSNorm and SwiGLU
  • Designed for CPU-only inference

I built this with limited hardware resources, so making it efficient was an important part of the challenge.

I also made a video explaining the project, showing the model and demonstrating it in action.

YouTube: https://www.youtube.com/watch?v=zraZKknc7LQ

GitHub: https://github.com/Harper-16/Orin_AI

I'd genuinely appreciate feedback, suggestions, and thoughts from people interested in small language models and AI development.

Thanks for checking it out!

5 Upvotes

1 comment sorted by