Skip to main content

Introduction

MMPreTrain is an open source pre-training toolbox based on PyTorch.

Major features

  • Various backbones and pretrained models
  • Rich training strategies (supervised learning, self-supervised learning, multi-modality learning etc.)
  • Bag of training tricks
  • Large-scale training configs
  • High efficiency and extensibility
  • Powerful toolkits for model analysis and experiments
  • Various out-of-box inference tasks.
    • Image Classification
    • Image Caption
    • Visual Question Answering
    • Visual Grounding
    • Retrieval (Image-To-Image, Text-To-Image, Image-To-Text)

https://github.com/vbti-development/onedl-mmpretrain/assets/26739999/e4dcd3a2-f895-4d1b-a351-fbc74a04e904

What's new

The VBTI development team is forking MMLabs code, making it work with newer pytorch versions and fixing bugs. We are only a small team, so your help is appreciated.

🌟 v1.1.0 was released in 12/10/2023

  • Support Mini-GPT4 training and provide a Chinese model (based on Baichuan-7B)
  • Support zero-shot classification based on CLIP.

🌟 v1.0.0 was released in 04/07/2023

🌟 Upgrade from MMClassification to MMPreTrain

  • Integrated Self-supervised learning algorithms from MMSelfSup, such as MAE, BEiT, etc.
  • Support RIFormer, a simple but effective vision backbone by removing token mixer.
  • Refactor dataset pipeline visualization.
  • Support LeViT, XCiT, ViG, ConvNeXt-V2, EVA, RevViT, EfficientnetV2, CLIP, TinyViT and MixMIM backbones.

This release introduced a brand new and flexible training & test engine, but it's still in progress. Welcome to try according to the documentation.

And there are some BC-breaking changes. Please check the migration tutorial.

Please refer to changelog for more details and other release history.

Installation

Below are quick steps for installation:

uv pip install
conda create -n onedl-lab python=3.10 pytorch==2.8.0 torchvision==0.23.0 cudatoolkit=12.9 -c pytorch -y
conda activate onedl-lab
pip install onedl-mim
git clone https://github.com/VBTI-development/onedl-mmpretrain.git
cd onedl-mmpretrain
mim install -e .

Please refer to installation documentation for more detailed installation and dataset preparation.

For multi-modality models support, please install the extra dependencies by:

mim install -e ".[multimodal]"

User Guides

We provided a series of tutorials about the basic usage of MMPreTrain for new users:

For more information, please refer to our documentation.

Model zoo

Results and models are available in the model zoo.

Overview
Supported Backbones Self-supervised Learning Multi-Modality Algorithms Others
Image Retrieval Task: Training&Test Tips: Regression Heads:

Contributing

We appreciate all contributions to improve MMPreTrain. Please refer to CONTRUBUTING for the contributing guideline.

Acknowledgement

MMPreTrain is an open source project that is contributed by researchers and engineers from various colleges and companies. We appreciate all the contributors who implement their methods or add new features, as well as users who give valuable feedbacks. We wish that the toolbox and benchmark could serve the growing research community by providing a flexible toolkit to reimplement existing methods and supporting their own academic research.

Citation

If you find this project useful in your research, please consider cite:

@misc{2023mmpretrain,
    title={OneDL Pre-training Toolbox and Benchmark},
    author={OneDL-MMPreTrain Contributors},
    howpublished = {\url{https://github.com/vbti-development/onedl-mmpretrain}},
    year={2025}
}

License

This project is released under the Apache 2.0 license.

Projects in VBTI-development

  • MMEngine: Foundational library for training deep learning models.
  • MMCV: Foundational library for computer vision.
  • MMPreTrain: Pre-training toolbox and benchmark.
  • MMDetection: Detection toolbox and benchmark.
  • MMRotate: Rotated object detection toolbox and benchmark.
  • MMSegmentation: Semantic segmentation toolbox and benchmark.
  • MMDeploy: Model deployment framework.
  • MIM: MIM installs VBTI packages.

Metadata

Release files for onedl-mmpretrain 1.3.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for onedl-mmpretrain 1.3.6
File Size Uploaded Provenance Actions
onedl_mmpretrain-1.3.6.tar.gz 955.2 kB Without provenance Details for onedl_mmpretrain-1.3.6.tar.gz

Release files / onedl_mmpretrain-1.3.6.tar.gz

Download URL onedl_mmpretrain-1.3.6.tar.gz
Size 955.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0a40b43f242f7dcfda92ea2f81ad70a6fe6912eaa615d46b18326708e14e176e
BLAKE2b-256 checksum
How to use checksums
e1fe87f7fc36627fcca651cddb95dce1e95f597ad6d9f3270e5162170a6bbb58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for onedl-mmpretrain 1.3.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page