SkillAgentSearch skills...

Nxml

LLaMA from First Principles

Install / Use

/learn @lachlansneff/Nxml
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

LLaMA from First Principles

I wanted to learn more about how transfomers worked, so I spent a night hacking at an implementation of LLaMA from scratch.

No ML frameworks. No BLAS. Minimal abstractions. Clarity over performance.

I haven't finished it, but it's probably more than half way finished.

Remaining pieces

  • Rotary Position Embedding
  • Finish adding all the layer operations
  • Fix all the bugs in the matrix multiplication implementations
  • Token decoding

Related Skills

View on GitHub
GitHub Stars52
CategoryDevelopment
Updated1mo ago
Forks1

Languages

Rust

Security Score

95/100

Audited on Feb 3, 2026

No findings