lit-llama
Free5.8k
About lit-llama
Lit-LLaMA is an open-source, independent implementation of Meta's LLaMA language model, built on the nanoGPT architecture and released under the Apache 2.0 license. It provides a fully transparent codebase for pretraining, finetuning, and inference of LLaMA-style models, supporting advanced techniques such as flash attention, Int8 and GPTQ 4-bit quantization, LoRA, and LLaMA-Adapter fine-tuning. The project is designed for researchers and developers who need a flexible, permissively licensed alternative to the original GPL-licensed LLaMA code. However, the repository is no longer actively maintained; users are directed to the successor project, LitGPT, for ongoing development and support. Lit-LLaMA works with the original LLaMA weights distributed by Meta under a research-only license, and users interested in LLaMA 2, Open LLaMA, or Vicuna weights should refer to the Lit-GPT repository.
Key Features
Pros & Cons
- Fully open-source under Apache 2.0 license, avoiding GPL restrictions
- Supports multiple quantization methods (Int8, GPTQ 4-bit) for efficiency
- Includes flash attention for faster inference
- Offers LoRA and LLaMA-Adapter fine-tuning for parameter-efficient adaptation
- Built on the well-known nanoGPT codebase for ease of understanding
- No longer actively maintained; users should consider the LitGPT successor
- Requires original LLaMA weights from Meta, which are under a research-only license
- Free tier limits or usage restrictions are not applicable as it is self-hosted software
- Documentation and community support may be limited due to deprecation
- Setup and usage require technical expertise in Python and machine learning