EveryDev.ai
Subscribe
Home
Tools

3,804+ AI tools

  • New
  • Trending
  • Featured
  • Compare
  • Arena
Categories
  • Agents2782
  • Coding1973
  • Infrastructure825
  • Projects603
  • Marketing598
  • Research520
  • Analytics468
  • Design462
  • MCP419
  • Testing346
  • Security323
  • Data305
  • Integration224
  • Prompts220
  • Communication210
  • Extensions196
  • Learning179
  • Voice175
  • Commerce160
  • DevOps135
  • Web95
  • Finance31
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Tools
    3. MiniMind
    MiniMind icon

    MiniMind

    AI Development Libraries

    An open-source project to train a 64M-parameter LLM from scratch in 2 hours on a single GPU, covering the full pipeline from tokenizer to RLAIF.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Fully free and open-source under Apache License 2.0. Clone, train, and deploy with no cost beyond compute.

    Engagement

    Available On

    macOS
    Web
    API
    CLI

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    AI Development LibrariesLocal InferenceLLM Orchestration

    Alternatives

    OllamaBitNetOpenMythos
    Developer
    Jingyao GongJiangsu, ChinaEst. 2024

    Listed Sep 2026

    About MiniMind

    MiniMind is an open-source educational project by Jingyao Gong that lets anyone train a small but complete large language model entirely from scratch. The current flagship model, MiniMind-3, has 64M parameters and can be trained on a single NVIDIA RTX 3090 in roughly two hours. All core algorithms are implemented in native PyTorch with no high-level framework abstractions, making every line of code readable and understandable.

    What It Is

    MiniMind is a full-stack LLM training framework and educational resource, not just a pretrained model. It covers the entire pipeline a production LLM goes through: custom BPE tokenizer training, pretraining on text-to-text data, supervised fine-tuning (SFT), LoRA adaptation, direct preference optimization (DPO), and reinforcement learning from AI feedback (RLAIF) via PPO, GRPO, and CISPO. The project also includes Agentic RL with multi-turn Tool-Use, adaptive thinking via <think> tags, and an OpenAI-compatible API server. Two model variants are available: a Dense 64M model and a MoE 198M/A64M model whose architecture is aligned with Qwen3/Qwen3-MoE.

    Architecture and Training Pipeline

    The MiniMind-3 Dense model uses a Transformer Decoder-Only architecture with Pre-Norm + RMSNorm, SwiGLU activations, RoPE positional encoding with YaRN length extrapolation support, and grouped-query attention (8 query heads, 4 KV heads). The MoE variant extends this with 4 experts and top-1 routing. The training pipeline is staged:

    • Pretrain: next-token prediction on pretrain_t2t_mini.jsonl or the full pretrain_t2t.jsonl
    • SFT: multi-turn dialogue fine-tuning with Tool Call and reasoning data already mixed in
    • LoRA: parameter-efficient fine-tuning implemented from scratch without peft
    • DPO: preference optimization implemented natively in PyTorch
    • RLAIF (PPO/GRPO/CISPO): online RL with a reward model (e.g., InternLM2-1.8B-Reward) or rule-based signals
    • Agentic RL: multi-turn Tool-Use rollouts with delayed reward, supporting SGLang as a decoupled rollout engine

    Compatibility and Deployment

    MiniMind-3 is compatible with the broader open-source inference ecosystem. Pretrained weights are published in both native PyTorch .pth format and HuggingFace Transformers format on ModelScope and HuggingFace. The project supports:

    • vLLM and SGLang for high-throughput serving
    • llama.cpp and ollama for local CPU/GPU inference (including ollama run jingyaogong/minimind-3)
    • Streamlit WebUI for interactive chat with thinking display and multi-turn Tool Call
    • OpenAI-compatible API (serve_openai_api.py) for drop-in use with FastGPT, Open-WebUI, and Dify
    • Single-card and multi-card (DDP, DeepSpeed) training with checkpoint resume

    Update: MiniMind-3 (April 2026)

    The latest release, dated 2026-04-01, is a major update that introduces MiniMind-3 and MiniMind-3-MoE. Key changes include:

    • Architecture aligned with Qwen3/Qwen3-MoE; shared expert design removed from MoE
    • Tokenizer rebuilt with BPE + ByteLevel, adding tool call and thinking tokens
    • New native Agentic RL training script (train_agent.py) supporting GRPO/CISPO in multi-turn Tool-Use scenarios
    • RLAIF/Agentic RL rollout engine decoupled for flexible inference backends
    • serve_openai_api.py and web_demo.py updated with reasoning_content, tool_calls, and open_thinking support
    • LoRA weight merge and export via scripts/convert_model.py
    • Standalone train_reason.py removed; thinking capability unified under chat_template + open_thinking toggle

    The GitHub repository shows over 57,000 stars and active commits through mid-2026, with the latest release tagged as v2 ("MiniMind Docs") published in October 2025.

    Why It Matters for Learners

    MiniMind is explicitly designed as a learning resource for people who want to understand LLMs by building one, not just fine-tuning one. The project avoids high-level abstractions from transformers, trl, and peft, implementing PPO, GRPO, CISPO, DPO, LoRA, and knowledge distillation from scratch in PyTorch. Evaluation support covers C-Eval, C-MMLU, ARC-Easy, PIQA, OpenBookQA, HellaSwag, and Social-IQa via the lm-evaluation-harness framework. The project has been cited in academic papers and a textbook published by Tsinghua University Press, according to the repository's acknowledgements section.

    MiniMind - 1

    Community Discussions

    Be the first to start a conversation about MiniMind

    Share your experience with MiniMind, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source

    Fully free and open-source under Apache License 2.0. Clone, train, and deploy with no cost beyond compute.

    • Full source code under Apache-2.0
    • Pretrained model weights on HuggingFace and ModelScope
    • Complete training pipeline: Pretrain, SFT, LoRA, DPO, PPO, GRPO, CISPO, Agentic RL
    • OpenAI-compatible API server
    • Streamlit WebUI

    Capabilities

    Key Features

    • Train a 64M LLM from scratch in ~2 hours on a single RTX 3090
    • Full pipeline: Tokenizer → Pretrain → SFT → LoRA → DPO → PPO/GRPO/CISPO → Agentic RL
    • Native PyTorch implementation with no high-level framework abstractions
    • Dense (64M) and MoE (198M/A64M) model variants aligned with Qwen3/Qwen3-MoE
    • OpenAI-compatible API server with tool_calls, reasoning_content, and open_thinking support
    • Adaptive Thinking via <think> tags and open_thinking toggle
    • Multi-turn Tool-Use Agentic RL with GRPO/CISPO
    • YaRN RoPE length extrapolation for long-context inference
    • Compatible with vLLM, ollama, llama.cpp, SGLang, and Transformers
    • Streamlit WebUI with thinking display and multi-turn Tool Call
    • Single-card and multi-card (DDP, DeepSpeed) training with checkpoint resume
    • Evaluation on C-Eval, C-MMLU, ARC-Easy, PIQA, OpenBookQA, HellaSwag, Social-IQa
    • LoRA weight merge and export via convert_model.py
    • Knowledge distillation (black-box and white-box) implemented from scratch
    • SwanLab and WandB integration for training visualization

    Integrations

    HuggingFace Transformers
    ModelScope
    vLLM
    ollama
    llama.cpp
    SGLang
    FastGPT
    Open-WebUI
    Dify
    Streamlit
    WandB
    SwanLab
    DeepSpeed
    lm-evaluation-harness
    MNN
    InternLM2-1.8B-Reward
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate MiniMind and help others make informed decisions.

    Developer

    Jingyao Gong

    Jingyao Gong is a student based in Jiangsu, China, who builds open-source LLM training tools focused on accessibility and education. He created MiniMind, a full-stack framework for training small language models from scratch in native PyTorch, and maintains related projects including MiniMind-V (vision multimodal) and MiniMind-O (omni multimodal). His work emphasizes transparency and reproducibility, implementing algorithms like PPO, GRPO, LoRA, and DPO without relying on high-level framework abstractions.

    Founded 2024
    Jiangsu, China
    Read more about Jingyao Gong
    WebsiteGitHub
    1 tool in directory

    Similar Tools

    Ollama icon

    Ollama

    Run large language models locally on your machine with a simple CLI and REST API, with optional cloud scaling for larger models.

    BitNet icon

    BitNet

    Microsoft's official implementation of BitNet, enabling efficient 1-bit large language model inference on CPUs without requiring GPUs.

    OpenMythos icon

    OpenMythos

    An open-source, theoretical PyTorch implementation of a Recurrent-Depth Transformer (RDT) inspired by the suspected Claude Mythos architecture, featuring MoE, MLA/GQA attention, and LTI-stable looped inference.

    Browse all tools

    Related Topics

    AI Development Libraries

    Programming libraries and frameworks that provide machine learning capabilities, model integration, and AI functionality for developers.

    303 tools

    Local Inference

    Tools and platforms for running AI inference locally without cloud dependence.

    184 tools

    LLM Orchestration

    Platforms and frameworks for designing, managing, and deploying complex LLM workflows with visual interfaces, allowing for the coordination of multiple AI models and services.

    215 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions