Sign in

GitHub › C › llama2.c

karpathy /llama2.c

Inference Llama 2 in one file of pure C

Stars20,512
Forks2,698
Open issues193
Avg. stars / day17faster than 86% of C
LanguageC
LicenseMIT
CreatedJul 23, 2023
Last activityAug 6, 2024
Repocharts statusBronze10.0k Stars Club
  • 10.0k Stars ClubBronze · 20,512 stars on GitHub

📈 Growth card

updates every day · free to share
Growth card of karpathy/llama2.c: star curve, stars gained, growth and rank

llama2.c's momentum in one picture: star curve, stars gained, growth and chart rank. Post it, put it in the README or in your release notes. It refreshes every day.

Put the live card in your README

It switches between light and dark with GitHub's theme and updates every day.

<a href="https://repocharts.com/repo/github/karpathy/llama2.c/?ref=card"><picture><source media="(prefers-color-scheme: dark)" srcset="https://repocharts.com/og/live/growth.png?repo=github%2Fkarpathy%2Fllama2.c&theme=dark&size=wide&src=readme"><img alt="llama2.c star growth on Repocharts" src="https://repocharts.com/og/live/growth.png?repo=github%2Fkarpathy%2Fllama2.c&theme=light&size=wide&src=readme" width="600"></picture></a>

Momentum

starts with the second daily update

Repocharts records a data point every day. Growth figures appear from tomorrow on.

Stars over time

tracked daily since Dec 5, 2026 ·

20,512 stars today. This graph fills in as daily data points come in.

Chart positions

December 5, 2026
ChartRankPrev.PeakDays on chartAt this rank
C#62 ·–#6211 day

Rank history

last 90 days, #1 at the top

The rank history appears after the second daily update.

Compared with the C chart

bar = this repo, line = chart median
Stars20.5k90% of median
Forks2.7k84% of median
Avg. stars per day172.4× median
Open issues19367% of median

Commit activity

last 52 weeks

Commit activity is fetched once a week and appears here after the next update.

llama2.c GitHub stats: quick answers

How many stars does karpathy/llama2.c have?

karpathy/llama2.c has 20,512 stars on GitHub (as of December 5, 2026).

Where does llama2.c rank?

karpathy/llama2.c ranks #62 in the C ranking on December 5, 2026.

What language is llama2.c written in?

llama2.c is written mainly in C and licensed under MIT.

Cite and share

According to Repocharts, karpathy/llama2.c ranks #62 in the C ranking on December 5, 2026.