SAVRN
Search Contact SAVRN

Open-weight model · Image classification

cspnext_m.rsb_a1_in1k

by Munehiro Kobayashi munehiro-k/cspnext_m.rsb_a1_in1k

cspnext_m.rsb_a1_in1k is an open-weight model for image classification from Munehiro Kobayashi, released under Apache License 2.0. It has 13M parameters. At 16-bit it needs about 0 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index.

A CSPNeXt image classification model. Pretrained on ImageNet-1k by OpenMMLab (RTMDet) and converted to timm format. Name disambiguation: This is the CSPNeXt backbone of RTMDet (OpenMMLab), as implemented in MMDetection.

Parameters13M
Context—
Weights104.7 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

Runs On

What it takes to serve cspnext_m.rsb_a1_in1k (13M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.0 GB 0.0 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 5, 2026.

cspnext_m.rsb_a1_in1k on every accelerator the SAVRN Index prices, at every precision

Model Card

By Munehiro Kobayashi, published under apache-2.0, revision 5ab2a117c839.

A CSPNeXt image classification model. Pretrained on ImageNet-1k by OpenMMLab (RTMDet) and converted to timm format. Name disambiguation: This is the CSPNeXt backbone of RTMDet (OpenMMLab), as implemented in MMDetection. A separate paper, CSPNeXt: A new efficient token hybrid backbone (Chen et al., EAAI 2024, doi:10.1016/j.engappai.2024.107886), uses the same name for a different architecture. These weights do not implement that paper; please cite RTMDet (below) for this model. - https://github.com/open-mmlab/mmdetection/tree/main/configs/rtmdet/classification - https://download.openmmlab.com/mmdetection/v3.0/rtmdet/cspnextrsbpretrain/cspnext-m8xb256-rsb-a1-600ein1k-ecb3bbd9.pth ImageNet-1k…

Read Munehiro Kobayashi's full model card

Model card for cspnext_m.rsb_a1_in1k

A CSPNeXt image classification model. Pretrained on ImageNet-1k by OpenMMLab (RTMDet) and converted to timm format.

Name disambiguation: This is the CSPNeXt backbone of RTMDet (OpenMMLab), as implemented in MMDetection. A separate paper, CSPNeXt: A new efficient token hybrid backbone (Chen et al., EAAI 2024, doi:10.1016/j.engappai.2024.107886), uses the same name for a different architecture. These weights do not implement that paper; please cite RTMDet (below) for this model.

Model Details

  • Model Type: Image classification / feature backbone
  • Model Stats:
  • Params (M): 13.05
  • GMACs: 1.92
  • Activations (M): 5.33
  • Image size: 224 x 224
  • Papers:
  • RTMDet: An Empirical Study of Designing Real-Time Object Detectors: https://arxiv.org/abs/2212.07784
  • Original:
  • https://github.com/open-mmlab/mmdetection/tree/main/configs/rtmdet/classification
  • https://download.openmmlab.com/mmdetection/v3.0/rtmdet/cspnext_rsb_pretrain/cspnext-m_8xb256-rsb-a1-600e_in1k-ecb3bbd9.pth
  • Dataset: ImageNet-1k

Model Usage

Image Classification

from urllib.request import urlopen
from PIL import Image
import timm
import torch

img = Image.open(urlopen(
    'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))

model = timm.create_model('hf_hub:munehiro-k/cspnext_m.rsb_a1_in1k', pretrained=True)
model = model.eval()

# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

output = model(transforms(img).unsqueeze(0))  # unsqueeze single image into batch of 1

top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5)

Feature Map Extraction

from urllib.request import urlopen
from PIL import Image
import timm

img = Image.open(urlopen(
    'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))

model = timm.create_model(
    'hf_hub:munehiro-k/cspnext_m.rsb_a1_in1k',
    pretrained=True,
    features_only=True,
)
model = model.eval()

data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

output = model(transforms(img).unsqueeze(0))  # unsqueeze single image into batch of 1

for o in output:
    # print shape of each feature map in output
    # e.g.:
#  torch.Size([1, 48, 112, 112])
#  torch.Size([1, 96, 56, 56])
#  torch.Size([1, 192, 28, 28])
#  torch.Size([1, 384, 14, 14])
#  torch.Size([1, 768, 7, 7])

    print(o.shape)

Image Embeddings

from urllib.request import urlopen
from PIL import Image
import timm

img = Image.open(urlopen(
    'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png'
))

model = timm.create_model(
    'hf_hub:munehiro-k/cspnext_m.rsb_a1_in1k',
    pretrained=True,
    num_classes=0,  # remove classifier nn.Linear
)
model = model.eval()

data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

output = model(transforms(img).unsqueeze(0))  # output is (batch_size, num_features) shaped tensor

# or equivalently (without needing to set num_classes=0)
output = model.forward_features(transforms(img).unsqueeze(0))
# output is unpooled, a (1, 768, 7, 7) shaped tensor

output = model.forward_head(output, pre_logits=True)
# output is a (1, num_features) shaped tensor

Model Comparison

ImageNet-1k validation accuracy at 224x224 as reported by OpenMMLab (source); not re-evaluated for this conversion. Params and GMACs are measured on the timm model. The evaluation transform of the source is: resize shorter edge to 236 (bicubic), center crop 224 (crop_pct=0.949).

model params (M) GMACs top-1 (%) top-5 (%)
cspnext_tiny.rsb_a1_in1k 2.73 0.34 69.44 89.45
cspnext_s.rsb_a1_in1k 4.89 0.66 74.41 92.23
cspnext_m.rsb_a1_in1k 13.05 1.92 79.27 94.79
cspnext_l.rsb_a1_in1k 27.16 4.18 81.30 95.62
cspnext_x.rsb_a1_in1k 48.85 7.73 82.10 95.69

Provenance and License

  • Weights were converted to timm format from the OpenMMLab checkpoint listed under Original above (key renaming only, no change to the tensor values). The model definition is a plain PyTorch re-implementation adapted from MMDetection / MMPretrain.
  • SHA-256 of the original checkpoint (cspnext-m_8xb256-rsb-a1-600e_in1k-ecb3bbd9.pth): ecb3bbd91bbe3ec79f1acb25171e70431a85dd5098a0860d8e34f50393ae953a
  • The OpenMMLab checkpoints were trained on ImageNet-1k with the MMPretrain rsb-a1 configs (configs/rtmdet/classification/cspnext-*_8xb256-rsb-a1-600e_in1k.py; 600 epochs, Lamb optimizer).
  • License: the MMDetection repository is released under Apache-2.0 (LICENSE, Copyright 2018-2023 OpenMMLab) and its RTMDet classification README makes no separate license statement for the checkpoints. They are therefore treated as Apache-2.0 here. This has not been confirmed with OpenMMLab: the same question (open-mmlab/mmdetection#11484, opened 2024-02-20) had no reply from the maintainers as of 2026-10-04. The training data, ImageNet-1k, is subject to its own terms of access.

Citation

@misc{lyu2022rtmdet,
      title={RTMDet: An Empirical Study of Designing Real-Time Object Detectors},
      author={Chengqi Lyu and Wenwei Zhang and Haian Huang and Yue Zhou and Yudong Wang and Yanyi Liu and Shilong Zhang and Kai Chen},
      year={2022},
      eprint={2212.07784},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}
@misc{rw2019timm,
  author = {Ross Wightman},
  title = {PyTorch Image Models},
  year = {2019},
  publisher = {GitHub},
  journal = {GitHub repository},
  doi = {10.5281/zenodo.4414861},
  howpublished = {\url{https://github.com/huggingface/pytorch-image-models}}
}

Identity and Version

Repository
munehiro-k/cspnext_m.rsb_a1_in1k
Publisher
Munehiro Kobayashi
Task
Image classification
Modality
Image
Library
timm
Parameters
13M parameters
Languages
Not stated by the source
Revision
5ab2a117c8394886ed9352bced5d01abe2cf71e0
First published
2026-10-04
Last updated
2026-10-04

Files and Weights

5 files, 104.8 MB in total. The weights are 2 files totalling 104.7 MB in bin, safetensors.

Weights2 files · 104.7 MB
Configuration1 file · 59.8 KB
Documentation1 file · 6.4 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights52.3 MB a8ae5c9df0e3
pytorch_model.binWeights52.4 MB 0b694b916339
config.jsonConfiguration59.8 KB —
README.mdDocumentation6.4 KB —
.gitattributesRepository1.5 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
104.7 MB
Download from Munehiro Kobayashi

Released by Munehiro Kobayashi through its official repository on Hugging Face. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published104.7 MB
16-bit0.0 GB
8-bit0.0 GB
4-bit0.0 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About cspnext_m.rsb_a1_in1k

How much GPU memory does cspnext_m.rsb_a1_in1k need?

About 0 GB at 16-bit and 0 GB at 4-bit: the weights (13M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run cspnext_m.rsb_a1_in1k on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use cspnext_m.rsb_a1_in1k commercially?

Yes. cspnext_m.rsb_a1_in1k is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Image classification

efficientnet_b3.ra2_in1k

PyTorch Image Models

A EfficientNet image classification model. Trained on ImageNet-1k in timm using recipe template described below. RandAugment RA2 recipe. Inspired by and evolved from EfficientNet RandAugment recipes. Published as B recipe in ResNet Strikes Back. RMSProp (TF 1.0 behaviour) optimizer, EMA weight averaging Step (exponential decay w/ staircase) LR schedule with warmup Explore the dataset and runtime metrics of this model in timm model results.

Open weights apache-2.0 12M parameters timm

Model · Image classification

resnet18.a1_in1k

PyTorch Image Models

A ResNet-B image classification model. single layer 7x7 convolution with pooling 1x1 convolution shortcut downsample Trained on ImageNet-1k in timm using recipe template described below. ResNet Strikes Back A1 recipe - Deep Residual Learning for Image Recognition: https://arxiv.org/abs/1512.03385 Explore the dataset and runtime metrics of this model in timm model results.

Open weights apache-2.0 12M parameters timm

Model · Image classification

resnet18.a3_in1k

PyTorch Image Models

A ResNet-B image classification model. single layer 7x7 convolution with pooling 1x1 convolution shortcut downsample Trained on ImageNet-1k in timm using recipe template described below. ResNet Strikes Back A3 recipe - Deep Residual Learning for Image Recognition: https://arxiv.org/abs/1512.03385 Explore the dataset and runtime metrics of this model in timm model results.

Open weights apache-2.0 12M parameters timm

Model · Image classification

Crimson-Flame-6-resNet18

AI/ML Mentorship

This model is a fine-tuned ResNet-18 trained to classify fetal ultrasound standard planes. This model was trained on dataset Marc-HealthAI/fetal-planes-classification-dataset-main. No explicit description provided in dataset metadata. Burgos-Artizzu, X.P., Coronado-Gutiérrez, D., Valenzuela-Alcaraz, B. et al. Evaluation of deep convolutional neural networks for automatic classification of common maternal fetal ultrasound planes. Sci Rep 10, 10200 (2020). https://doi.org/10.1038/s41598-020-67076-5 A large dataset of routinely acquired maternal-fetal screening ultrasound images collected from two different hospitals by several operators and ultrasound machines. All images were manually…

Open weights mit 11M parameters pytorch

Model · Image classification

convnextv2_nano.fcmae_ft_in1k

PyTorch Image Models

A ConvNeXt-V2 image classification model. Pretrained with a fully convolutional masked autoencoder framework (FCMAE) and fine-tuned on ImageNet-1k. Explore the dataset and runtime metrics of this model in timm model results. All timing numbers from eager model PyTorch 1.13 on RTX 3090 w/ AMP.

Open weights cc-by-nc-4.0 16M parameters timm

Model · Image classification

repvgg_a0.rvgg_in1k

PyTorch Image Models

A RepVGG image classification model. Trained on ImageNet-1k by paper authors. This model architecture is implemented using timm's flexible BYOBNet (Bring-Your-Own-Blocks Network). block / stage layout stem layout output stride (dilation) activation and norm layers channel and spatial / self-attention layers...and also includes timm features common to many other architectures, including: stochastic depth gradient checkpointing layer-wise LR decay per-stage feature extraction Explore the dataset and runtime metrics of this model in timm model results.

Open weights mit 9M parameters timm