Skip to content

Educational Implementation · C

llama2.c

Inference Llama 2 in one file of pure C

Not ranked yet

This project would rank 27th in NLP & LLMs.

Only verified builders' projects are ranked. Is this yours? Claim @karpathy's Atlas with a read-only GitHub sign-in and it takes its place on the board.

Claim to rank it

What it is

llama2.c provides a minimal educational implementation for training and inferencing the Llama 2 language model, featuring a PyTorch training pipeline, model export utilities, and a pure C inference engine for dependency-free execution.

Scored at350e04f7 Oct 2026Changes since

Merit describes the code at this commit. Later pushes count once the owner rescans. How merit is scored

Tests, level by level

From the files read and your CI on GitHub

  1. Tests exist: yes.1 test file in the repository.
  2. Can run as committed: yes.No missing imports in the test files read.
  3. CI runs them: yes.The whole suite: pytest
  4. They pass: not checked.Not checked at this scan. AI-Atlas never runs code; it reads the result of your own CI at the next scan.

Distribution based on AI work

1 / 2
NLP & LLMs: 42.2%Machine Learning: 40.0%Data Science: 13.3%MLOps: 4.4%
  • NLP & LLMs42%
  • Machine Learning40%
  • Data Science13%
  • MLOps4%

Each field's share of the project's AI work, as scoring counts it. It ranks in the field it is most about.

What the judge found

Read from the project's code at its scored commit.

Strengths2

  • Provides a pure C inference engine for Llama 2 that is dependency-free and educational.
  • Offers a complete, well-documented pipeline from training to inference that is easy to run and verify.

Limitations

The owner keeps this project's limitations private.

Where it would sit on the NLP & LLMs board

Whole board
  1. 25gguf-editorAI Developer Tool · Python66.1/100AdvancedMaster Mind
  2. 26Darwin-educationML Application · TypeScript66.0/100AdvancedDemetrios Chiuratto Agourakis
  3. 27, shared rankgw2-accessibilityOther AI Project · C++65.7/100AdvancedTodd0042
  4. 27, shared rankTheLuxApp-Ai-ChatBotML Application · TypeScript65.7/100AdvancedMaster Mind
  5. 27, shared rankllama2.cEducational Implementation · C65.7/100AdvancedAndrej

More from Andrej