mmengine
Engine of OpenMMLab projects
Decision gist · record as of 2026-08-14
Yes. MMEngine is actively maintained, has low install friction, uses a permissive license, and integrates well with standard PyTorch workflows. It's particularly valuable if you're building training pipelines for computer vision or want to leverage distributed training frameworks without manual orchestration. No known vulnerabilities. Install it if you want a structured, configurable training abstraction; skip it if you prefer writing training loops directly.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires PyTorch >=1.6 <=2.1 and Python >=3.7 <=3.11 to be installed first.
- Low friction installation via pip; active maintenance with recent commits and regular releases.
- Depends on 9 common libraries including numpy, matplotlib, and opencv-python, all widely available.
License · maintenance · safety
permissive license (permissive) — Permissive license (Apache Software License per classifiers) allows use in commercial and proprietary projects without restriction.
last release 2025-03-04 (528 days) · last repo commit 2026-07-13 · 1,486 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 836,666 downloads/mo, #4,932 on PyPI
Alternatives
Verify before relying
pip install mmengine
from mmengine.runner import Runner
from mmengine.model import BaseModel
runner = Runner(
model=MyModel(),
train_dataloader=train_loader,
optim_wrapper=dict(optimizer=dict(type='SGD', lr=0.001)),
train_cfg=dict(by_epoch=True, max_epochs=5)
)
runner.train()- Whether the library works with PyTorch versions beyond 2.1 (current support table shows <=2.1).
- Performance characteristics when training very large models with the integrated frameworks (ColossalAI, DeepSpeed, FSDP).
- Compatibility with custom training loops outside the Runner abstraction.
What it is and what it does
MMEngine is a training engine built on PyTorch that abstracts the training loop into a configurable Runner class. It handles model forward passes, loss computation, gradient updates, and validation workflows, allowing you to define training logic declaratively rather than imperatively. The library integrates with distributed training frameworks like DeepSpeed, FSDP, and ColossalAI, supports mixed-precision training and gradient checkpointing, and provides hooks for monitoring via TensorBoard, WandB, MLflow, and other platforms.
You define a model inheriting from BaseModel, create datasets and metrics, then pass them to a Runner with a configuration dictionary specifying training parameters. The Runner handles the training loop, checkpointing, and metric evaluation. It's designed as the training backbone for OpenMMLab projects but is generic enough for non-OpenMMLab PyTorch workflows. The library depends on standard data science libraries (numpy, matplotlib, opencv-python) and configuration tools (pyyaml, rich for terminal output).
Use it for
- Training computer vision models on image datasets with built-in support for distributed training across multiple GPUs or nodes.
- Building configurable training pipelines where hyperparameters and training strategies are specified in Python or YAML config files rather than hardcoded.
- Integrating large-model training frameworks like DeepSpeed or FSDP into PyTorch projects without manually orchestrating distributed communication.
- Monitoring training progress across multiple logging backends (TensorBoard, WandB, MLflow) simultaneously from a single Runner configuration.
- Implementing custom metrics and validation logic via the BaseMetric interface while the Runner handles the training loop and checkpointing.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
MMEngine is actively maintained, has low install friction, uses a permissive license, and integrates well with standard PyTorch workflows. It's particularly valuable if you're building training pipelines for computer vision or want to leverage distributed training frameworks without manual orchestration. No known vulnerabilities. Install it if you want a structured, configurable training abstraction; skip it if you prefer writing training loops directly.
Install
mmengine on PyPI
Before you install
Low friction installation via pip; active maintenance with recent commits and regular releases. Depends on 9 common libraries including numpy, matplotlib, and opencv-python, all widely available.
Requires PyTorch >=1.6 <=2.1 and Python >=3.7 <=3.11 to be installed first.
License in practice
Permissive license (Apache Software License per classifiers) allows use in commercial and proprietary projects without restriction.
Quickstart
pip install mmengine
from mmengine.runner import Runner
from mmengine.model import BaseModel
runner = Runner(
model=MyModel(),
train_dataloader=train_loader,
optim_wrapper=dict(optimizer=dict(type='SGD', lr=0.001)),
train_cfg=dict(by_epoch=True, max_epochs=5)
)
runner.train()
Verify before relying
- Whether the library works with PyTorch versions beyond 2.1 (current support table shows <=2.1).
- Performance characteristics when training very large models with the integrated frameworks (ColossalAI, DeepSpeed, FSDP).
- Compatibility with custom training loops outside the Runner abstraction.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesaddictmatplotlibnumpypyyamlrichtermcoloryapfopencv-pythonregex |
| Maintenance | Actively maintained 528 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 836,666 / month, #4,932 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Utilities |
Evidence: mmengine-0.10.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “deep learning training engine”
- mmengineMMEngine is a foundational PyTorch training library that provides a…
- pytorch-ignitePyTorch Ignite provides a high-level training and evaluation engine…
- keras-nightlyA multi-backend deep learning framework that lets you build and train…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also mmdet · openmim · mmcv · trainer · accelerate · pytorch-ignite · lightning · coqui-tts-trainer · torcheval · fairscale