RepositoryPythonCNChina
JI

jingyaogong/minimind

🧠 Train a 64M-parameter LLM from scratch in just 2h!

64.4kstars
8.4kforks
31issues
27views

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ủ đề: large-language-model

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: large-language-model

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: large-language-model

#1 Repository Của Ngày

🚀 MiniMind - Huấn luyện LLM siêu nhẹ từ 0 chỉ với 2 tiếng

MiniMind giúp bạn xây dựng một mô hình ngôn ngữ lớn (LLM) chỉ với ~64M tham số, chạy trọn trên cổ điển 3090 và chi phí dưới 3 USD.

MiniMind là dự án nghiên cứu mã nguồn mở từ 0, dùng PyTorch để huấn luyện một LLM nhỏ gọn (~64M) trong thời gian ngắn (~2h) và chi phí thấp (~3 USD). Dự án cung cấp toàn bộ quy trình huấn luyện từ Pretrain, SFT, LoRA, RLHF (DPO), RLAIF (PPO/GRPO/CISPO), Tool Use, Agentic RL, tới Adaptive Thinking và model distillation.

✨ Điểm nổi bật

  • Cấu trúc nhỏ gọn: Dense (~64M) + MoE (~198M-A64M), tương thích Qwen3/MoE.
  • Toàn bộ pipeline huấn luyện: Pretrain → SFT → LoRA → DPO → PPO/GRPO/CISPO → Tool Use → Agentic RL.
  • Mã nguồn từ 0 bằng PyTorch: Không dựa trên transformers hay thư viện trừu tượng.
  • Dữ liệu mở: Bao gồm dữ liệu pretrain, sft, rlaif, agent_rl và bản xác thực chất lượng cao.
  • Tương thích hệ sinh thái: Hỗ trợ transformers, vllm, llama.cpp, ollama, Llama-Factory.
  • Đánh giá & đường API: Đánh giá trên C-Eval, C-MMLU, OpenBookQA; API mở theo chuẩn OpenAI.
  • WebUI Streamlit: Giao diện chat hỗ trợ suy nghĩ và gọi công cụ.
  • Mở rộng thí nghiệm: Diffusion LM (dLM) và Linear Attention model.

💡 Vì sao đáng chú ý

MiniMind không chỉ là một dự án LLM mở, mà còn là một khóa học thực hành từ A-Z. Dự án loại bỏ sự phụ thuộc vào các framework trừu tượng, giúp người học tiếp cận trực tiếp vào cách hoạt động nội tại của LLM. Phù hợp cho cá nhân muốn nghiên cứu hoặc triển khai LLM trên phần cứng giới hạn.


#LLM #PyTorch #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

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
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
usestrix/strix

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

72.1k
Oct 26, 2026
RepositoryJupyter Notebook
rasbt/LLMs-from-scratch

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

107.3k
Oct 2, 2026
RepositoryTypeScript
thedotmack/claude-mem

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

103.3k
Oct 26, 2026
RepositoryTypeScript
OpenHands/OpenHands

🙌 OpenHands: AI-Driven Development

91.8k
Oct 25, 2026
RepositoryJupyter Notebook
microsoft/AI-For-Beginners

12 Weeks, 24 Lessons, AI for All!

70.2k
Oct 23, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

289.5k
Oct 26, 2026
RepositoryPython
XingangPan/DragGAN

Official Code for DragGAN (SIGGRAPH 2023)

35.7k
May 18, 2024