Practical overview
When it fits
Use RepLKNet when you need a MegEngine image-classification implementation and want to work with its supplied weights, training configuration or evaluation workflow.
Who it is for
- Researchers evaluating convolutional neural network models for image classification.
- Developers using MegEngine who want to train or fine-tune RepLKNet with the documented BaseCls workflow.
- Practitioners benchmarking large depth-wise convolution kernels.
Documented uses
- Evaluate a RepLKNet model against ImageNet validation data using a weight file.
- Train or fine-tune with the provided ImageNet configuration and training script.
- Compare large depth-wise convolution kernel speed using the benchmark script.
Requirements & limits
The repository is public and identifies the project as open source. The README states an MIT license, while repository metadata lists Apache-2.0.
- The documented training and evaluation workflows depend on MegEngine and BaseCls.
- Evaluation requires a compatible weight file and validation data path.
- The README lists a RepLKNet-31B ImageNet-1K model at 224 × 224 with 83.58 accuracy, 79M parameters and 15.3G FLOPs.
- MegEngine 1.8.2 is specified as the minimum for optimized large depth-wise convolutions in the benchmark context.
- The repository catalog marks MegEngine downstream models and downstream code as absent.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Evaluate RepLKNet on ImageNet validation data
Run the documented evaluation workflow with a pretrained weight file and ImageNet validation data.
Before you start
- MegEngine installed.
- BaseCls installed.
- A compatible RepLKNet weight file.
- An ImageNet validation dataset and its local path.
Steps
Install MegEngine using the README's documented pip command.
Install BaseCls using the documented pip command.
From the repository, run
./main_imagenet_test.py -f configs/replknet31_base_224_pt1k.py -w [weights] batch_size 64 data.val_path /path/to/imagenet/val, replacing the weight placeholder and validation path with local values.
Expected outcome
The evaluation script runs with the selected configuration, weights and validation-data path.
Guide limitations
- The command requires a compatible weight file and ImageNet validation path.
- The repository documents the command but does not establish results for a particular environment or dataset.
Set up the documented ImageNet training workflow
Prepare the MegEngine and BaseCls dependencies and invoke the repository's ImageNet training command.
Before you start
- MegEngine and BaseCls installed.
- ImageNet training and validation data, with local paths.
Steps
Install MegEngine using the README's documented pip command.
Install BaseCls using the documented pip command.
From the repository, run
./main_imagenet_train.py -f configs/replknet31_base_224_pt1k.py data.train_path /path/to/imagenet/train data.val_path /path/to/imagenet/val, substituting the local dataset paths.
Expected outcome
The documented training command is configured to use the RepLKNet-31B ImageNet-1K configuration and the supplied data paths.
Guide limitations
- The README does not detail dataset preparation or custom-dataset configuration changes.
- The command alone does not establish a successful training run.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 21 November 2026
- Original website title
- MegEngine/RepLKNet · Official homepage title · retained in its source language

