index.html 26 KB

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