57 lines
2.3 KiB
Markdown
57 lines
2.3 KiB
Markdown
<div align="center">
|
|
|
|
<img src="./images/logo.png"></img>
|
|
|
|
---
|
|
|
|
<img src="https://visitor-badge.laobi.icu/badge?page_id=jingyaogong/minimind"></img>
|
|
<img src="https://img.shields.io/github/stars/jingyaogong/minimind?style=social"></img>
|
|
<img src="https://img.shields.io/github/license/jingyaogong/minimind"></img>
|
|
<img src="https://img.shields.io/github/last-commit/jingyaogong/minimind"></img>
|
|
<img src="https://img.shields.io/badge/PRs-welcome-blue"></img>
|
|
<img src="https://img.shields.io/badge/🤗-MiniMind%20%20Collection-blue"></img>
|
|
|
|
---
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div align="center">
|
|
<h3>"The Greatest Path is the Simplest"</h3>
|
|
|
|
<a href="https://github.com/jingyaogong/minimind">🔗MiniMind Github Repo🔗</a>
|
|
</div>
|
|
|
|
|
|
|
|
* This open-source project aims to train a tiny language model called **MiniMind** from scratch in just 3 hours, with a model size of only 26.88M.
|
|
|
|
* **MiniMind** is extremely lightweight, with the smallest version being approximately $\frac{1}{7000}$ the size of GPT3, making it possible for even an ordinary personal GPU to perform quick inference and even training.
|
|
|
|
* **MiniMind** provides the full-stage code for a simplified large model structure, dataset cleaning and preprocessing, supervised pretraining, supervised instruction fine-tuning (SFT), low-rank adaptation (LoRA) fine-tuning, and direct preference alignment with reinforcement learning without rewards (DPO). It also includes code for expanding to sparse models with mixed experts (MoE) and multi-modal vision language models (VLM): <a href="https://github.com/jingyaogong/minimind-v">MiniMind-V</a>.
|
|
|
|
* This is not just an implementation of an open-source model but also a tutorial for getting started with large language models (LLM).
|
|
|
|
* We hope this project will serve as an introductory example for researchers, helping them quickly get started and inspiring more exploration and innovation in the LLM field.
|
|
|
|
> To avoid misinterpretation, "fastest 3 hours" means you need a machine with hardware configuration superior to mine. Detailed specifications will be provided below.
|
|
|
|
|
|
|
|
<div align="center">
|
|
|
|
---
|
|
|
|
<img src="./images/streamlit.gif"></img>
|
|
|
|
<a href="https://www.modelscope.cn/studios/gongjy/minimind">ModelScope Online</a> |
|
|
<a href="https://www.bilibili.com/video/BV12dHPeqE72/?share_source=copy_web&vd_source=670c2504f88726f8cf4a21ef6147c0e8">Bilibili Video Link</a>
|
|
|
|
---
|
|
|
|
</div>
|
|
|
|
|
|
|