RepositoryPythonUSHoa Kỳ
Lightning-AI

Lightning-AI/litgpt

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

13.7ksao
1.5kfork
248issue
9lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: llm-inference

#1 Repository Của Tuần

7
TINIX TRENDING·Chủ đề: llms

#7 Repository Của Tuần

7
TINIX TRENDING·Chủ đề: large-language-models

#7 Repository Của Tuần

⚡ LitGPT - 20+ LLM từ zero, tối ưu cho pretrain, finetune và deploy

LitGPT cung cấp 20+ mô hình LLM được cài đặt từ đầu, không abstraction layer, hỗ trợ Flash attention, FSDP, LoRA/QLoRA, quantization, chạy trên 1-1000+ GPU/TPU.

LitGPT là một thư viện Python mã nguồn mở (Apache 2.0) từ Lightning AI, cài đặt lại hơn 20 mô hình LLM lớn từ đầu với kiến trúc tối giản, trực tiếp, không qua lớp trừu tượng nào. Dự án hướng tới việc cung cấp các công thức (recipes) tối ưu để pretrain, finetune và triển khai mô hình ở quy mô doanh nghiệp, đồng thời hỗ trợ inference nhanh và tiết kiệm bộ nhớ GPU.

✨ Điểm nổi bật

  • Cài đặt từ đầu (no abstractions): Mỗi mô hình được viết trong một tệp duy nhất, dễ gỡ lỗi, kiểm soát hoàn toàn.
  • Flash attention & FSDP: Tối ưu tốc độ attention và hỗ trợ phân phối mô hình trên nhiều GPU/TPU.
  • LoRA, QLoRA, Adapter: Hỗ trợ fine-tuning hiệu quả với bộ nhớ thấp.
  • Quantization (fp4/8/16/32): Giảm tiêu thụ bộ nhớ GPU, chạy trên GPU thấp cấu hình.
  • 20+ mô hình hỗ trợ: Bao gồm Llama 3, Code Llama, Gemma 2, Phi 4, Qwen2.5, DeepSeek R1...
  • Triển khai nhanh: Dùng API đơn giản LLM.load() và llm.generate() để inference ngay.
  • Công thức YAML (recipes): Cấu hình pretrain/finetune bằng YAML, dễ tù biến và tái sử dụng.
  • Apache 2.0: Miễn phí cho mọi mục đích, bao gồm cả sử dụng thương mại.

💡 Vì sao đáng chú ý

LitGPT khác biệt bởi cách tiếp cận "từ đầu, không abstraction" — thay vì dựa trên các framework nặặc, mỗi mô hình được cài đặt trực tiếp trong một tệp Python, giúp dễ dàng gỡ lỗi và tối ưu hiệu năng. Kết hợp Flash attention, FSDP và quantization, thư viện giảm đáng kể bộ nhớ GPU nhưng vẫn duy trì tốc độ inference cao, phù hợp cho cả môi trường cá nhân lẫn quy mô doanh nghiệp lớn.


#LLM #MachineLearning #OpenSource #AI #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJupyter Notebook
rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

107.3k
Oct 2, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

187.7k
Oct 24, 2026
RepositoryPython
rohitg00/ai-engineering-from-scratch

Learn AI Engineering! Learn it. Build it. Ship it for others.

74.2k
Oct 23, 2026
RepositoryHTML
f/prompts.chat

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

174.6k
Oct 26, 2026
RepositoryPython
open-webui/open-webui

User-friendly AI Interface (Supports Ollama, OpenAI API, ...)

156.8k
Oct 26, 2026
RepositoryPython
AUTOMATIC1111/stable-diffusion-webui

Stable Diffusion web UI

165.1k
Mar 2, 2026
RepositoryJupyter Notebook
microsoft/AI-For-Beginners

12 Weeks, 24 Lessons, AI for All!

70.2k
Oct 23, 2026
RepositoryTypeScript
firecrawl/firecrawl

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

195.6k
Oct 26, 2026
RepositoryPython
NousResearch/hermes-agent

The agent that grows with you

257.3k
Oct 26, 2026