index.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>MiniMind - Train LLMs from Scratch</title>
  7. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
  8. <style>
  9. @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
  10. :root {
  11. --mc-grass: #5fa824;
  12. --mc-stone: #7f8c8d;
  13. --mc-wood: #8b5a3c;
  14. --mc-sand: #d4a574;
  15. --mc-gold: #ffd700;
  16. --mc-dark: #1e1e1e;
  17. --mc-light: #f5f5f5;
  18. --primary: #5e72e4;
  19. --accent: #11cdef;
  20. }
  21. * {
  22. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  23. }
  24. .pixel-font {
  25. font-family: 'Press Start 2P', 'Courier New', monospace;
  26. }
  27. body {
  28. background: linear-gradient(180deg, #87ceeb 0%, #e0f6ff 50%, #d4a574 100%);
  29. min-height: 100vh;
  30. padding: 20px;
  31. margin: 0;
  32. }
  33. .container-main {
  34. background: var(--mc-light);
  35. border: 4px solid;
  36. border-color: #fff #ccc #999 #fff;
  37. box-shadow: inset 1px 1px 0 rgba(255,255,255,.5),
  38. inset -1px -1px 0 rgba(0,0,0,.5),
  39. 3px 3px 0 rgba(0,0,0,.3);
  40. padding: 40px;
  41. max-width: 1200px;
  42. margin: 0 auto;
  43. image-rendering: pixelated;
  44. image-rendering: -moz-crisp-edges;
  45. image-rendering: crisp-edges;
  46. }
  47. /* Logo */
  48. .logo {
  49. max-width: 80%;
  50. height: auto;
  51. image-rendering: pixelated;
  52. display: block;
  53. }
  54. /* Badge Container - between logo and title */
  55. .badge-container {
  56. display: flex;
  57. flex-wrap: wrap;
  58. justify-content: center;
  59. gap: 8px;
  60. margin: 12px 0 15px 0;
  61. }
  62. .badge-container img {
  63. height: 22px;
  64. }
  65. /* Title Section */
  66. .title-section {
  67. text-align: center;
  68. background: var(--mc-grass);
  69. color: white;
  70. padding: 20px 20px;
  71. border: 3px solid;
  72. border-color: #fff #777 #777 #fff;
  73. box-shadow: inset 1px 1px 0 rgba(255,255,255,.3),
  74. inset -1px -1px 0 rgba(0,0,0,.3);
  75. margin-bottom: 20px;
  76. }
  77. .title-section h1 {
  78. display: none;
  79. }
  80. .subtitle {
  81. display: none;
  82. }
  83. .tagline {
  84. font-size: 0.85rem;
  85. color: #fff;
  86. margin: 0;
  87. line-height: 1.4;
  88. }
  89. /* Stats Section */
  90. .stats-section {
  91. display: grid;
  92. grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  93. gap: 12px;
  94. margin: 20px 0;
  95. }
  96. .stat-box {
  97. background: var(--mc-sand);
  98. border: 3px solid;
  99. border-color: #fff #888 #888 #fff;
  100. box-shadow: inset 1px 1px 0 rgba(255,255,255,.3),
  101. inset -1px -1px 0 rgba(0,0,0,.3),
  102. 2px 2px 0 rgba(0,0,0,.2);
  103. padding: 15px;
  104. text-align: center;
  105. background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  106. }
  107. .stat-box h3 {
  108. margin: 0;
  109. font-size: 1.4rem;
  110. color: #333;
  111. text-shadow: 1px 1px 0 rgba(255,255,255,.8);
  112. }
  113. .stat-box p {
  114. margin: 6px 0 0 0;
  115. font-size: 0.7rem;
  116. color: #555;
  117. font-weight: bold;
  118. }
  119. /* Feature Cards */
  120. .features-grid {
  121. display: grid;
  122. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  123. gap: 15px;
  124. margin: 25px 0;
  125. }
  126. .feature-card {
  127. background: var(--mc-light);
  128. border: 3px solid;
  129. border-color: #fff #888 #888 #fff;
  130. box-shadow: inset 1px 1px 0 rgba(255,255,255,.5),
  131. inset -1px -1px 0 rgba(0,0,0,.2),
  132. 3px 3px 0 rgba(0,0,0,.2);
  133. padding: 15px;
  134. background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  135. transition: transform 0.1s, box-shadow 0.1s;
  136. }
  137. .feature-card:hover {
  138. transform: translate(-2px, -2px);
  139. box-shadow: inset 1px 1px 0 rgba(255,255,255,.5),
  140. inset -1px -1px 0 rgba(0,0,0,.2),
  141. 5px 5px 0 rgba(0,0,0,.3);
  142. }
  143. .feature-card h3 {
  144. margin: 0 0 8px 0;
  145. color: var(--mc-grass);
  146. font-size: 0.9rem;
  147. }
  148. .feature-card p {
  149. margin: 0;
  150. color: #555;
  151. font-size: 0.75rem;
  152. line-height: 1.4;
  153. }
  154. /* Section Headers */
  155. .section-header {
  156. background: var(--mc-stone);
  157. color: white;
  158. padding: 12px 15px;
  159. border: 3px solid;
  160. border-color: #fff #555 #555 #fff;
  161. box-shadow: inset 1px 1px 0 rgba(255,255,255,.3),
  162. inset -1px -1px 0 rgba(0,0,0,.3);
  163. margin: 25px 0 15px 0;
  164. font-size: 1rem;
  165. font-weight: bold;
  166. text-shadow: 1px 1px 0 rgba(0,0,0,.5);
  167. }
  168. /* Models Table */
  169. .models-table {
  170. margin: 18px 0;
  171. }
  172. .models-table table {
  173. width: 100%;
  174. border-collapse: collapse;
  175. border: 3px solid;
  176. border-color: #fff #888 #888 #fff;
  177. box-shadow: inset 1px 1px 0 rgba(255,255,255,.3),
  178. inset -1px -1px 0 rgba(0,0,0,.3);
  179. background: var(--mc-light);
  180. }
  181. .models-table thead {
  182. background: var(--mc-wood);
  183. color: white;
  184. }
  185. .models-table thead th {
  186. padding: 10px;
  187. text-align: center;
  188. font-weight: bold;
  189. font-size: 0.8rem;
  190. text-shadow: 1px 1px 0 rgba(0,0,0,.5);
  191. border-right: 2px solid rgba(0,0,0,.2);
  192. }
  193. .models-table tbody tr {
  194. border-bottom: 2px solid #ddd;
  195. }
  196. .models-table tbody tr:nth-child(even) {
  197. background: #f0f0f0;
  198. }
  199. .models-table td {
  200. padding: 8px 10px;
  201. text-align: center;
  202. font-size: 0.8rem;
  203. border-right: 2px solid #ddd;
  204. }
  205. .models-table td:last-child {
  206. border-right: none;
  207. }
  208. .models-table tbody tr:hover {
  209. background: #fffacd !important;
  210. }
  211. /* Changelog */
  212. .changelog-section {
  213. margin: 18px 0;
  214. }
  215. .changelog-item {
  216. background: var(--mc-light);
  217. border: 3px solid;
  218. border-color: #fff #888 #888 #fff;
  219. box-shadow: inset 1px 1px 0 rgba(255,255,255,.3),
  220. inset -1px -1px 0 rgba(0,0,0,.2),
  221. 2px 2px 0 rgba(0,0,0,.15);
  222. padding: 0;
  223. margin: 8px 0;
  224. }
  225. .changelog-header {
  226. background: var(--mc-gold);
  227. color: #333;
  228. padding: 10px 15px;
  229. cursor: pointer;
  230. font-weight: bold;
  231. user-select: none;
  232. display: flex;
  233. justify-content: space-between;
  234. align-items: center;
  235. transition: background 0.1s;
  236. border-bottom: 2px solid #ddd;
  237. font-size: 0.85rem;
  238. }
  239. .changelog-header:hover {
  240. background: #ffed4e;
  241. }
  242. .changelog-header.open {
  243. background: #ffd700;
  244. }
  245. .toggle-icon {
  246. font-size: 0.9rem;
  247. }
  248. .changelog-content {
  249. padding: 12px 15px;
  250. display: none;
  251. background: #fafafa;
  252. font-size: 0.8rem;
  253. }
  254. .changelog-item.open .changelog-content {
  255. display: block;
  256. }
  257. .changelog-content ul {
  258. list-style: none;
  259. padding-left: 0;
  260. margin: 0;
  261. }
  262. .changelog-content li {
  263. padding: 4px 0;
  264. padding-left: 20px;
  265. position: relative;
  266. color: #333;
  267. line-height: 1.3;
  268. }
  269. .changelog-content li:before {
  270. content: "▸";
  271. position: absolute;
  272. left: 0;
  273. color: var(--mc-grass);
  274. font-weight: bold;
  275. }
  276. /* Links Section */
  277. .links-section {
  278. background: var(--mc-grass);
  279. color: white;
  280. padding: 25px;
  281. border: 3px solid;
  282. border-color: #fff #555 #555 #fff;
  283. box-shadow: inset 1px 1px 0 rgba(255,255,255,.2),
  284. inset -1px -1px 0 rgba(0,0,0,.3),
  285. 3px 3px 0 rgba(0,0,0,.3);
  286. margin: 25px 0;
  287. }
  288. .links-section h2 {
  289. text-align: center;
  290. margin-bottom: 15px;
  291. font-size: 1rem;
  292. text-shadow: 1px 1px 0 rgba(0,0,0,.5);
  293. }
  294. .links-grid {
  295. display: grid;
  296. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  297. gap: 10px;
  298. }
  299. .pixel-button {
  300. background: var(--mc-sand);
  301. color: #333;
  302. border: 3px solid;
  303. border-color: #fff #888 #888 #fff;
  304. box-shadow: inset 1px 1px 0 rgba(255,255,255,.3),
  305. inset -1px -1px 0 rgba(0,0,0,.2),
  306. 2px 2px 0 rgba(0,0,0,.2);
  307. padding: 8px 14px;
  308. text-decoration: none;
  309. font-weight: bold;
  310. text-align: center;
  311. cursor: pointer;
  312. display: inline-block;
  313. transition: all 0.1s;
  314. font-size: 0.75rem;
  315. }
  316. .pixel-button:hover {
  317. border-color: #888 #fff #fff #888;
  318. box-shadow: inset -1px -1px 0 rgba(255,255,255,.3),
  319. inset 1px 1px 0 rgba(0,0,0,.2),
  320. 1px 1px 0 rgba(0,0,0,.1);
  321. transform: translate(2px, 2px);
  322. color: #333;
  323. text-decoration: none;
  324. }
  325. .pixel-button:active {
  326. box-shadow: inset 1px 1px 0 rgba(255,255,255,.3),
  327. inset -1px -1px 0 rgba(0,0,0,.2);
  328. transform: translate(3px, 3px);
  329. }
  330. /* Why Section */
  331. .why-section {
  332. background: var(--mc-light);
  333. border: 3px solid;
  334. border-color: #fff #888 #888 #fff;
  335. box-shadow: inset 1px 1px 0 rgba(255,255,255,.3),
  336. inset -1px -1px 0 rgba(0,0,0,.2);
  337. padding: 20px;
  338. margin: 22px 0;
  339. }
  340. .why-section h2 {
  341. color: var(--mc-wood);
  342. margin-bottom: 15px;
  343. font-size: 1rem;
  344. }
  345. .why-section ul {
  346. list-style: none;
  347. padding-left: 0;
  348. margin: 0;
  349. }
  350. .why-section li {
  351. padding: 4px 0;
  352. padding-left: 22px;
  353. position: relative;
  354. color: #333;
  355. line-height: 1.4;
  356. font-size: 0.8rem;
  357. }
  358. .why-section li:before {
  359. content: "→";
  360. position: absolute;
  361. left: 0;
  362. color: var(--mc-grass);
  363. font-weight: bold;
  364. font-size: 0.9rem;
  365. }
  366. .quote {
  367. font-style: italic;
  368. color: #666;
  369. border-left: 4px solid var(--mc-grass);
  370. padding-left: 12px;
  371. margin: 15px 0;
  372. font-size: 0.85rem;
  373. }
  374. /* Visuals */
  375. .visuals-container {
  376. display: flex;
  377. overflow-x: auto;
  378. gap: 12px;
  379. padding: 15px;
  380. background: var(--mc-light);
  381. border: 3px solid #ddd;
  382. margin: 20px 0;
  383. border-radius: 2px;
  384. }
  385. .visuals-container img {
  386. width: auto;
  387. height: auto;
  388. max-height: 450px;
  389. border: 2px solid #999;
  390. image-rendering: auto;
  391. flex-shrink: 0;
  392. object-fit: contain;
  393. }
  394. .visuals-container::-webkit-scrollbar {
  395. height: 10px;
  396. }
  397. .visuals-container::-webkit-scrollbar-track {
  398. background: #e0e0e0;
  399. }
  400. .visuals-container::-webkit-scrollbar-thumb {
  401. background: #999;
  402. border: 1px solid #777;
  403. }
  404. /* Footer */
  405. .footer {
  406. text-align: center;
  407. padding-top: 20px;
  408. border-top: 3px solid #ccc;
  409. margin-top: 25px;
  410. color: #666;
  411. font-size: 0.75rem;
  412. }
  413. .footer a {
  414. color: var(--mc-grass);
  415. text-decoration: none;
  416. font-weight: bold;
  417. }
  418. .footer a:hover {
  419. text-decoration: underline;
  420. }
  421. @media (max-width: 768px) {
  422. .container-main {
  423. padding: 20px;
  424. }
  425. .title-section h1 {
  426. font-size: 2.2rem;
  427. }
  428. .stats-section {
  429. grid-template-columns: repeat(2, 1fr);
  430. }
  431. .features-grid {
  432. grid-template-columns: 1fr;
  433. }
  434. .visuals-container {
  435. flex-wrap: wrap;
  436. }
  437. .visuals-container img {
  438. max-width: 100%;
  439. height: auto;
  440. }
  441. }
  442. </style>
  443. </head>
  444. <body>
  445. <div class="container-main">
  446. <!-- Logo -->
  447. <div align="center" style="padding: 30px 0;">
  448. <img src="./images/logo.png" alt="MiniMind Logo" class="logo"/>
  449. </div>
  450. <!-- Badges -->
  451. <div class="badge-container">
  452. <img src="https://visitor-badge.laobi.icu/badge?page_id=jingyaogong/minimind" alt="Visitor Badge">
  453. <img src="https://img.shields.io/github/stars/jingyaogong/minimind?style=social" alt="GitHub Stars">
  454. <img src="https://img.shields.io/github/license/jingyaogong/minimind" alt="License">
  455. <img src="https://img.shields.io/github/last-commit/jingyaogong/minimind" alt="Last Commit">
  456. </div>
  457. <!-- Title Section -->
  458. <div class="title-section">
  459. <p class="tagline pixel-font">
  460. Train a 26M ChatBot from zero.<br/>
  461. 2 hours. ¥3. One 3090.<br/>
  462. That's it.
  463. </p>
  464. </div>
  465. <!-- Key Stats -->
  466. <div class="stats-section">
  467. <div class="stat-box">
  468. <h3>26M</h3>
  469. <p>Parameters</p>
  470. </div>
  471. <div class="stat-box">
  472. <h3>2h</h3>
  473. <p>Training</p>
  474. </div>
  475. <div class="stat-box">
  476. <h3>¥3</h3>
  477. <p>Cost</p>
  478. </div>
  479. <div class="stat-box">
  480. <h3>1/7000</h3>
  481. <p>vs GPT-3</p>
  482. </div>
  483. </div>
  484. <!-- What You Get -->
  485. <div class="section-header pixel-font">✨ What You Get</div>
  486. <div class="features-grid">
  487. <div class="feature-card">
  488. <h3>💰 Ultra-Cheap</h3>
  489. <p>One 3090. Zero to ChatBot in 2 hours, costing just ¥3.</p>
  490. </div>
  491. <div class="feature-card">
  492. <h3>📦 Full Stack</h3>
  493. <p>Complete pipeline: Tokenizer → Pretrain → SFT → LoRA → PPO/GRPO/SPO</p>
  494. </div>
  495. <div class="feature-card">
  496. <h3>🔬 Latest RL (2025)</h3>
  497. <p>PPO, GRPO, SPO + YaRN length extrapolation. Native PyTorch implementation.</p>
  498. </div>
  499. <div class="feature-card">
  500. <h3>📖 Learn by Reading</h3>
  501. <p>Pure PyTorch. No black boxes. Understand every line of code.</p>
  502. </div>
  503. <div class="feature-card">
  504. <h3>🔌 Plug & Play</h3>
  505. <p>Compatible with vLLM, ollama, llama.cpp, transformers.</p>
  506. </div>
  507. <div class="feature-card">
  508. <h3>⚡ OpenAI API</h3>
  509. <p>Drop-in replacement for FastGPT, Open-WebUI, Dify.</p>
  510. </div>
  511. </div>
  512. <!-- Models -->
  513. <div class="section-header pixel-font">📦 Models</div>
  514. <div class="models-table">
  515. <table>
  516. <thead>
  517. <tr>
  518. <th>Model</th>
  519. <th>Parameters</th>
  520. <th>Hidden Dim</th>
  521. <th>Layers</th>
  522. <th>Memory</th>
  523. </tr>
  524. </thead>
  525. <tbody>
  526. <tr>
  527. <td><strong>MiniMind2-Small</strong></td>
  528. <td>26M</td>
  529. <td>512</td>
  530. <td>8</td>
  531. <td>~0.5 GB</td>
  532. </tr>
  533. <tr>
  534. <td><strong>MiniMind2</strong></td>
  535. <td>104M</td>
  536. <td>768</td>
  537. <td>16</td>
  538. <td>~1.0 GB</td>
  539. </tr>
  540. <tr>
  541. <td><strong>MiniMind2-MoE</strong></td>
  542. <td>145M</td>
  543. <td>640</td>
  544. <td>8</td>
  545. <td>~1.0 GB</td>
  546. </tr>
  547. </tbody>
  548. </table>
  549. </div>
  550. <!-- What's New / Changelog -->
  551. <div class="section-header pixel-font">📰 What's New</div>
  552. <div class="changelog-section">
  553. <div class="changelog-item open">
  554. <div class="changelog-header open" onclick="toggleChangelog(this)">
  555. <span>🔥 2025-10-24 (Latest)</span>
  556. <span class="toggle-icon">−</span>
  557. </div>
  558. <div class="changelog-content">
  559. <ul>
  560. <li>🔥 RLAIF algorithms: PPO, GRPO, SPO (native PyTorch)</li>
  561. <li>Checkpoint resume training: auto-save & cross-GPU recovery</li>
  562. <li>RLAIF dataset: rlaif-mini.jsonl (10K samples); Simplified DPO dataset with Chinese data</li>
  563. <li>YaRN algorithm for RoPE length extrapolation</li>
  564. <li>Adaptive Thinking in reasoning models</li>
  565. <li>Tool Calling & Reasoning tags support</li>
  566. <li>Complete RLAIF chapter with training curves</li>
  567. <li>SwanLab integration (WandB alternative for China)</li>
  568. <li>Code standardization & bug fixes</li>
  569. </ul>
  570. </div>
  571. </div>
  572. <div class="changelog-item">
  573. <div class="changelog-header" onclick="toggleChangelog(this)">
  574. <span>⚙️ 2025-04-26 (Major Refactor)</span>
  575. <span class="toggle-icon">+</span>
  576. </div>
  577. <div class="changelog-content">
  578. <ul>
  579. <li>Model parameter renaming (align with Transformers)</li>
  580. <li>Generate method refactor (GenerationMixin)</li>
  581. <li>✅ llama.cpp, vllm, ollama support</li>
  582. <li>Vocab update: &lt;s&gt;&lt;/s&gt; → &lt;|im_start|&gt;&lt;|im_end|&gt;</li>
  583. <li>Code structure standardization</li>
  584. </ul>
  585. </div>
  586. </div>
  587. <div class="changelog-item">
  588. <div class="changelog-header" onclick="toggleChangelog(this)">
  589. <span>🎉 2025-02-09 (MiniMind2 Release)</span>
  590. <span class="toggle-icon">+</span>
  591. </div>
  592. <div class="changelog-content">
  593. <ul>
  594. <li>Complete codebase rewrite</li>
  595. <li>MiniMind2 series: 26M, 104M, 145M models</li>
  596. <li>JSONL data format (no preprocessing needed)</li>
  597. <li>LoRA from scratch (no peft dependency)</li>
  598. <li>DPO native PyTorch implementation</li>
  599. <li>White-box model distillation</li>
  600. <li>DeepSeek-R1 distillation models</li>
  601. <li>HQ pretraining data (2h on single 3090)</li>
  602. </ul>
  603. </div>
  604. </div>
  605. <div class="changelog-item">
  606. <div class="changelog-header" onclick="toggleChangelog(this)">
  607. <span>🎬 2024-10-05 (Vision Multimodal)</span>
  608. <span class="toggle-icon">+</span>
  609. </div>
  610. <div class="changelog-content">
  611. <ul>
  612. <li>Vision multimodal support</li>
  613. <li>MiniMind-V project launch</li>
  614. </ul>
  615. </div>
  616. </div>
  617. <div class="changelog-item">
  618. <div class="changelog-header" onclick="toggleChangelog(this)">
  619. <span>🔧 2024-09-27 (Data Preprocessing)</span>
  620. <span class="toggle-icon">+</span>
  621. </div>
  622. <div class="changelog-content">
  623. <ul>
  624. <li>Pretrain dataset preprocessing update</li>
  625. <li>Text integrity preservation</li>
  626. <li>Code cleanup</li>
  627. </ul>
  628. </div>
  629. </div>
  630. <div class="changelog-item">
  631. <div class="changelog-header" onclick="toggleChangelog(this)">
  632. <span>📝 2024-09-17 (MoE & Tokenizer)</span>
  633. <span class="toggle-icon">+</span>
  634. </div>
  635. <div class="changelog-content">
  636. <ul>
  637. <li>MiniMind-V1-MoE model release</li>
  638. <li>Standardized minimind_tokenizer</li>
  639. <li>Removed mistral_tokenizer variants</li>
  640. </ul>
  641. </div>
  642. </div>
  643. <div class="changelog-item">
  644. <div class="changelog-header" onclick="toggleChangelog(this)">
  645. <span>🚀 2024-09-01 (V1 Release)</span>
  646. <span class="toggle-icon">+</span>
  647. </div>
  648. <div class="changelog-content">
  649. <ul>
  650. <li>MiniMind-V1 (108M) release</li>
  651. <li>3 epochs pretrain + 10 epochs SFT</li>
  652. <li>ModelScope online demo</li>
  653. </ul>
  654. </div>
  655. </div>
  656. <div class="changelog-item">
  657. <div class="changelog-header" onclick="toggleChangelog(this)">
  658. <span>⭐ 2024-08-27 (First Release)</span>
  659. <span class="toggle-icon">+</span>
  660. </div>
  661. <div class="changelog-content">
  662. <ul>
  663. <li>🚀 First open-source release</li>
  664. <li>MiniMind project launched</li>
  665. </ul>
  666. </div>
  667. </div>
  668. </div>
  669. <!-- Visuals -->
  670. <div class="section-header pixel-font">🎮 Inside MiniMind</div>
  671. <div align="center">
  672. <div class="visuals-container">
  673. <img src="./images/minimind2.gif" alt="Streamlit Demo">
  674. <img src="./images/LLM-structure.png" alt="LLM Structure">
  675. <img src="./images/LLM-structure-moe.png" alt="LLM Structure MOE">
  676. </div>
  677. </div>
  678. <!-- Try It Links -->
  679. <div class="links-section">
  680. <h2 class="pixel-font">🎯 Try It Online</h2>
  681. <div class="links-grid">
  682. <a href="https://www.modelscope.cn/studios/gongjy/MiniMind-Reasoning" class="pixel-button">
  683. 🍓 Reasoning Model
  684. </a>
  685. <a href="https://www.modelscope.cn/studios/gongjy/MiniMind" class="pixel-button">
  686. 💬 Chat Model
  687. </a>
  688. <a href="https://www.bilibili.com/video/BV12dHPeqE72/" class="pixel-button">
  689. 📹 Video Demo
  690. </a>
  691. </div>
  692. <div style="border-top: 3px solid rgba(255,255,255,.3); margin: 25px 0;"></div>
  693. <h2 class="pixel-font">📦 Get the Code</h2>
  694. <div class="links-grid">
  695. <a href="https://github.com/jingyaogong/minimind" class="pixel-button">
  696. GitHub
  697. </a>
  698. <a href="https://huggingface.co/collections/jingyaogong/minimind-66caf8d999f5c7fa64f399e5" class="pixel-button">
  699. 🤗 HuggingFace
  700. </a>
  701. <a href="https://www.modelscope.cn/profile/gongjy" class="pixel-button">
  702. ModelScope
  703. </a>
  704. </div>
  705. </div>
  706. <!-- Why MiniMind -->
  707. <div class="why-section">
  708. <h2>💡 Why MiniMind?</h2>
  709. <ul>
  710. <li>Train from zero, not just finetune</li>
  711. <li>Pure PyTorch—no magic, no black boxes</li>
  712. <li>Understand by building, not by reading docs</li>
  713. <li>Works on your laptop—no cloud GPUs needed</li>
  714. <li>2025 RLAIF algorithms: PPO, GRPO, SPO</li>
  715. <li>OpenAI API compatible—plug into any UI</li>
  716. <li>Vision support via MiniMind-V</li>
  717. <li>Code you can actually read and modify</li>
  718. </ul>
  719. <p class="quote">
  720. 💭 "Building a Lego plane beats flying first class."
  721. </p>
  722. </div>
  723. <!-- Footer -->
  724. <div class="footer">
  725. <p>
  726. Timings based on single 3090. YMMV.<br/>
  727. Apache-2.0 License ·
  728. <a href="https://github.com/jingyaogong/minimind">GitHub</a>
  729. </p>
  730. </div>
  731. </div>
  732. <script>
  733. function toggleChangelog(element) {
  734. const item = element.parentElement;
  735. item.classList.toggle('open');
  736. const icon = element.querySelector('.toggle-icon');
  737. if (item.classList.contains('open')) {
  738. icon.textContent = '−';
  739. } else {
  740. icon.textContent = '+';
  741. }
  742. }
  743. </script>
  744. <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
  745. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js"></script>
  746. </body>
  747. </html>