SAVRN
Search Contact SAVRN

Open-weight model · Image classification

resnet-50

by Microsoft microsoft/resnet-50

ResNet model pre-trained on ImageNet-1k at resolution 224x224. It was introduced in the paper Deep Residual Learning for Image Recognition by He et al.

Parameters26M
Context
Weights410.3 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads756.3k

Runs On

What it takes to serve resnet-50 (26M 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.1 GB 0.1 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 Sep 18, 2026.

SAVRN's Notes on resnet-50

Sorting images into the ImageNet-1k classes is the job, and at 26M parameters it costs almost nothing in memory. Sixteen-bit weights take 0.1 GB, and the cheapest row in our runs_on table is one MI300X with 192 GB at $1.85 an hour. A card that size carries this classifier as a side load, so the question is how many images an hour justify holding any GPU for it.

Apache 2.0 permits commercial use, modification and redistribution, provided the license notices stay and significant changes are stated, with a patent grant from contributors. Access is open. Check that the ImageNet-1k labels match yours before committing, since that is the training set, and note the 410 MB on disk is stored in float32, heavier than what sits in memory. It ships as safetensors, pytorch, jax and tf; the residual design is in arXiv:1512.03385.

Model Card

By Microsoft, published under apache-2.0, revision 34c2154c194f.

ResNet-50 v1.5

ResNet model pre-trained on ImageNet-1k at resolution 224x224. It was introduced in the paper Deep Residual Learning for Image Recognition by He et al.

Disclaimer: The team releasing ResNet did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

ResNet (Residual Network) is a convolutional neural network that democratized the concepts of residual learning and skip connections. This enables to train much deeper models.

This is ResNet v1.5, which differs from the original model: in the bottleneck blocks which require downsampling, v1 has stride = 2 in the first 1x1 convolution, whereas v1.5 has stride = 2 in the 3x3 convolution. This difference makes ResNet50 v1.5 slightly more accurate (\~0.5% top1) than v1, but comes with a small performance drawback (~5% imgs/sec) according to Nvidia.

Intended uses & limitations

Read the full model card (287 words)

Configuration

Architecture
ResNetForImageClassification
Stored precision
float32
Model type
resnet

Identity and Version

Repository
microsoft/resnet-50
Publisher
Microsoft
Task
Image classification
Modality
Image
Library
transformers
Parameters
26M parameters
Languages
tf, jax
Revision
34c2154c194f829b11125337b98c8f5f9965ff19
First published
2022-03-16
Last updated
2024-02-13

Files and Weights

8 files, 410.3 MB in total. The weights are 4 files totalling 410.3 MB in bin, h5, msgpack, safetensors.

Weights4 files · 410.3 MB
Configuration2 files · 69.8 KB
Documentation1 file · 2.6 KB
Repository1 file · 1.2 KB
Every file
FileTypeSizeSHA-256
flax_model.msgpackWeights102.5 MB 1dba0174a596
model.safetensorsWeights102.5 MB 9c6061af1f45
pytorch_model.binWeights102.6 MB ff8163a13233
tf_model.h5Weights102.8 MB 57afa67ca9f9
config.jsonConfiguration69.6 KB
preprocessor_config.jsonConfiguration266 B
README.mdDocumentation2.6 KB
.gitattributesRepository1.2 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
410.3 MB
Download from Microsoft

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

Built From

Memory Requirements

PrecisionWeights in memory
As published410.3 MB
16-bit0.1 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.

Built on This Model

Questions About resnet-50

How much GPU memory does resnet-50 need?

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

What is the cheapest GPU to run resnet-50 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 resnet-50 commercially?

Yes. resnet-50 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

resnet50.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 26M parameters timm

Model · Image classification

resnet50.fb_swsl_ig1b_ft_in1k

PyTorch Image Models

A ResNet-B image classification model. single layer 7x7 convolution with pooling 1x1 convolution shortcut downsample Pretrained on Instagram-1B hashtags dataset using semi-weakly supervised learning and fine-tuned on ImageNet-1k by paper authors. - Billion-scale semi-supervised learning for image classification: https://arxiv.org/abs/1905.00546 - 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 cc-by-nc-4.0 26M parameters timm

Model · Image classification

resnet50d.ra2_in1k

PyTorch Image Models

A ResNet-D image classification model. 3-layer stem of 3x3 convolutions with pooling 2x2 average pool + 1x1 convolution shortcut downsample 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 - Deep Residual Learning for Image Recognition: https://arxiv.org/abs/1512.03385 - Bag of Tricks for Image Classification with Convolutional Neural Networks: https://arxiv.org/abs/1812.01187 Explore the dataset and runtime metrics of…

Open weights apache-2.0 26M parameters timm

Model · Image classification

resnet50_gn.a1h_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. Based on ResNet Strikes Back A1 recipe Stronger dropout, stochastic depth, and RandAugment than paper 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 26M parameters timm

Model · Image classification

FGVCBoeing737

Chaiyakrit

This model is a fine-tuned version of microsoft/resnet-50 on the imagefolder dataset. It achieves the following results on the evaluation set: The following hyperparameters were used during training: - learningrate: 0.0001 - trainbatchsize: 8 - evalbatchsize: 16 - gradientaccumulationsteps: 2 - totaltrainbatchsize: 16 - lrschedulertype: cosine - numepochs: 20 - labelsmoothingfactor: 0.1 - Transformers 5.16.1 - Pytorch 2.11.0+cu128 - Datasets 4.8.5 - Tokenizers 0.23.1

Open weights apache-2.0 24M parameters transformers