← all repositories
open-mmlab/mmpretrain

Stop Rewriting Training Loops for Every New Backbone

MMPreTrain unifies dozens of vision backbones, self-supervised methods, and multimodal models under one configurable PyTorch engine.

mmpretrain
Not currently ranked — collecting fresh signals.
star history

What it does

MMPreTrain is OpenMMLab’s training and benchmarking hub for computer vision. It wraps a sprawling model zoo—CNNs, Vision Transformers, and multimodal architectures like LLaVA and MiniGPT-4—into a modular, config-driven PyTorch framework. You pick a backbone and a training strategy, supervised or self-supervised, and the toolbox handles the scaffolding.

The interesting bit

The project started life as MMClassification, then absorbed the entire MMSelfSup library, and kept expanding until it was hosting image captioning and visual question answering. That evolution turns it from a simple classifier trainer into a general-purpose pretraining factory where the pretrain stage and the downstream task share the same rig.

Key highlights

  • Supports an almost comically long list of backbones: ResNet, ConvNeXt, Swin, DINOv2, SAM, RIFormer, and many more.
  • Bundles self-supervised algorithms including MAE, BEiT, MoCo, SimCLR, and SparK under the same roof.
  • Runs multimodal inference out of the box for image captioning, visual grounding, text-to-image retrieval, and VQA via LLaVA and MiniGPT-4.
  • Provides large-scale training configs and integrates with DeepSpeed and FSDP through a new FlexibleRunner engine.
  • Ships with analysis toolkits and dataset pipeline visualization for debugging experiments.

Caveats

  • The new training and test engine is explicitly marked as “still in progress,” so expect some rough edges if you live on the bleeding edge.
  • Migrating from older MMClassification versions involves breaking changes; the maintainers provide a migration tutorial, but it is not drop-in.

Verdict

If you are a researcher or engineer who needs to sweep across backbones or pretraining strategies without maintaining a dozen separate codebases, this is your toolbox. If you just want to download a single pretrained model and fine-tune it in five lines of plain PyTorch, the abstraction stack will feel like overkill.

Frequently asked

What is open-mmlab/mmpretrain?
MMPreTrain unifies dozens of vision backbones, self-supervised methods, and multimodal models under one configurable PyTorch engine.
Is mmpretrain open source?
Yes — open-mmlab/mmpretrain is open source, released under the Apache-2.0 license.
What language is mmpretrain written in?
open-mmlab/mmpretrain is primarily written in Python.
How popular is mmpretrain?
open-mmlab/mmpretrain has 3.8k stars on GitHub.
Where can I find mmpretrain?
open-mmlab/mmpretrain is on GitHub at https://github.com/open-mmlab/mmpretrain.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.