meta-llama/llama

Inference code for Llama models

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 26 minutes ago
Added to GitGenius on March 20th, 2024
Created on February 14th, 2023
Open Issues & Pull Requests: 532 (+0)
Number of forks: 9,788
Total Stargazers: 59,579 (+0)
Total Subscribers: 535 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 64.1 days
Mean response time: 162.9 days
90th percentile: 424.5 days
Tracked items: 192

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 2% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 475
New in 7 days: 2
Closed in 7 days: 0
Avg open age: 739 days
Stale 30+ days: 467
Stale 90+ days: 462

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 1
Events in 7 days: 3

Top labels

  • model-usage (158)
  • download-install (85)
  • question (71)
  • documentation (57)
  • needs-more-information (52)
  • model-access (46)
  • compatibility (42)
  • invalid (33)

Detailed Description

The meta-llama/llama repository is a Python-based inference codebase for Llama language models that has been deprecated as of the Llama 3.1 release. The repository originally served as a minimal example for loading and running inference on Llama 2 models, which ranged from 7 billion to 70 billion parameters in size. The codebase included both pre-trained base models and fine-tuned chat variants designed for dialogue applications.

The repository's primary functionality centered on model inference with specific requirements for different model sizes. The 7B model required a model-parallel value of 1, the 13B model required 2, and the 70B model required 8. All models supported sequence lengths up to 4096 tokens, with users able to configure max_seq_len and max_batch_size parameters according to their hardware constraints. The codebase included example scripts such as example_text_completion.py for pretrained models and example_chat_completion.py for fine-tuned chat models, with the latter requiring specific formatting including INST and SYS tags, BOS and EOS tokens, and particular whitespace conventions.

Model access was controlled through a registration process on Meta's website, where users would receive signed download URLs valid for 24 hours with download limits. The repository also provided access through Hugging Face, where users could request access by acknowledging the license in model cards. The download.sh script automated the model retrieval process, requiring wget and md5sum to be installed on the user's system.

The repository's contributor network overlapped with major projects including microsoft/vscode, microsoft/typescript, and rust-lang/rust.

The repository is now deprecated in favor of a consolidated ecosystem of specialized repositories. Users are directed to llama-models for foundation models and utilities, PurpleLlama for safety and inference mitigations, llama-toolchain for model development interfaces, llama-agentic-system for end-to-end agentic applications, and llama-cookbook for community-driven scripts and integrations. The original Llama v1 release remains available in the llama_v1 branch. The codebase included a Responsible Use Guide addressing potential risks and ethical considerations for developers deploying these models.