# Lightning\-AI/lit\-llama

> Implementation of the LLaMA language model based on nanoGPT\. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA\-Adapter fine\-tuning, pre\-training\. Apache 2\.0\-licensed\.

Canonical: https://starboard.codevetter.com/explore/Lightning-AI/lit-llama

[Back to Discover](https://starboard.codevetter.com/discover)

![Lightning\-AI](https://avatars.githubusercontent.com/u/58386951?v=4&s=40)

Lightning\-AI

# lit\-llama

[View on GitHub
](https://github.com/Lightning-AI/lit-llama)

Implementation of the LLaMA language model based on nanoGPT\. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA\-Adapter fine\-tuning, pre\-training\. Apache 2\.0\-licensed\.

6\.1k stars

Python

Updated 2d ago

Created Mar 22, 2023

## Star history

\+0 stars
0\.0% growth


## Detected tools

No detected tools yet\.

## Similar projects

[![Lightning\-AI](https://avatars.githubusercontent.com/u/58386951?v=4&s=24)

Lightning\-AI/ litgpt

20\+ high\-performance LLMs with recipes to pretrain, finetune and deploy at scale\.

Python 14k 76%](https://starboard.codevetter.com/explore/Lightning-AI/litgpt)[![Lightning\-AI](https://avatars.githubusercontent.com/u/58386951?v=4&s=24)

Lightning\-AI/ LitServe

A minimal Python framework for building custom AI inference servers with full control over logic, batching, and scaling\.

Python 3\.9k 72%](https://starboard.codevetter.com/explore/Lightning-AI/LitServe)[![hiyouga](https://avatars.githubusercontent.com/u/16256802?v=4&s=24)

hiyouga/ LlamaFactory

Unified Efficient Fine\-Tuning of 100\+ LLMs & VLMs \(ACL 2024\)

Python 76k 72%](https://starboard.codevetter.com/explore/hiyouga/LlamaFactory)[![intel](https://avatars.githubusercontent.com/u/17888862?v=4&s=24)

intel/ ipex\-llm

Accelerate local LLM inference and finetuning \(LLaMA, Mistral, ChatGLM, Qwen, DeepSeek, Mixtral, Gemma, Phi, MiniCPM, Qwen\-VL, MiniCPM\-V, etc\.\) on Intel XPU \(e\.g\., local PC with iGPU and NPU, discrete GPU such as Arc, Flex and Max\); seamlessly integrate with llama\.cpp, Ollama, HuggingFace, LangChain, LlamaIndex, vLLM, DeepSpeed, Axolotl, etc\.

Python 8\.8k 70%](https://starboard.codevetter.com/explore/intel/ipex-llm)[![NVIDIA](https://avatars.githubusercontent.com/u/1728152?v=4&s=24)

NVIDIA/ TensorRT\-LLM

TensorRT LLM provides users with an easy\-to\-use Python API to define Large Language Models \(LLMs\) and supports state\-of\-the\-art optimizations to perform inference efficiently on NVIDIA GPUs\. TensorRT LLM also contains components to create Python and C\+\+ runtimes that orchestrate the inference execution in a performant way\.

Python 15k 68%](https://starboard.codevetter.com/explore/NVIDIA/TensorRT-LLM)[![Lightning\-AI](https://avatars.githubusercontent.com/u/58386951?v=4&s=24)

Lightning\-AI/ pytorch\-lightning

Pretrain, finetune ANY AI model of ANY size on 1 or 10,000\+ GPUs with zero code changes\.

Python 31k 69%](https://starboard.codevetter.com/explore/Lightning-AI/pytorch-lightning)[![meta\-llama](https://avatars.githubusercontent.com/u/153379578?v=4&s=24)

meta\-llama/ llama3

The official Meta Llama 3 GitHub site

Python 29k 68%](https://starboard.codevetter.com/explore/meta-llama/llama3)[![haotian\-liu](https://avatars.githubusercontent.com/u/6631389?v=4&s=24)

haotian\-liu/ LLaVA

\[NeurIPS'23 Oral\] Visual Instruction Tuning \(LLaVA\) built towards GPT\-4V level capabilities and beyond\.

Python 25k 68%](https://starboard.codevetter.com/explore/haotian-liu/LLaVA)
