Skip to page content
SAVRN
Search Plan a project

Open-weight model · Image classification

tf_efficientnetv2_s.in21k_ft_in1k

by PyTorch Image Models timm/tf_efficientnetv2_s.in21k_ft_in1k

tf_efficientnetv2_s.in21k_ft_in1k is an open-weight model for image classification from PyTorch Image Models, released under Apache License 2.0. It has 22M parameters. At 16-bit it needs about 0.1 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index. It draws 1.7M downloads a month.

A EfficientNet-v2 image classification model. Trained on ImageNet-21k and fine-tuned on ImageNet-1k in Tensorflow by paper authors, ported to PyTorch by Ross Wightman. Explore the dataset and runtime metrics of this model in timm model results.

Parameters22M
Context—
Weights173.2 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads1.7M

Runs On

What it takes to serve tf_efficientnetv2_s.in21k_ft_in1k (22M 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.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 Oct 16, 2026.

tf_efficientnetv2_s.in21k_ft_in1k on every accelerator the SAVRN Index prices, at every precision

SAVRN's Notes on tf_efficientnetv2_s.in21k_ft_in1k

22M parameters, 173.2 MB of weights, and memory that rounds to zero at every precision — EfficientNetV2-S in its ImageNet-21k-pretrained, ImageNet-1k-fine-tuned build, the recipe encoded in the in21k_ft_in1k tag. The $1.85-an-hour MI300X in the Runs On table is a rounding exercise; this is CPU or edge hardware territory. It draws 1.8M downloads a month and was refreshed 2025-01-21. The repo is 5 files, with weights in bin and safetensors.

Apache 2.0 permits commercial use with notices kept. The page lists training on ImageNet-21k then ImageNet-1k and points to arXiv:2104.00298 and the timm model-results page for per-dataset metrics — read those before committing, since 1k fine-tuned scores overstate real-world robustness. Pair it with resnet18.a1_in1k as the accuracy-versus-latency brackets for your classification pipeline and move up within timm when accuracy starts to pay.

Model Card

By PyTorch Image Models, published under apache-2.0, revision ea9abc143ea2.

Model card for tf_efficientnetv2_s.in21k_ft_in1k

A EfficientNet-v2 image classification model. Trained on ImageNet-21k and fine-tuned on ImageNet-1k in Tensorflow by paper authors, ported to PyTorch by Ross Wightman.

Model Details

  • Model Type: Image classification / feature backbone
  • Model Stats:
  • Params (M): 21.5
  • GMACs: 5.4
  • Activations (M): 22.7
  • Image size: train = 300 x 300, test = 384 x 384
  • Papers:
  • EfficientNetV2: Smaller Models and Faster Training: https://arxiv.org/abs/2104.00298
  • Dataset: ImageNet-1k
  • Pretrain Dataset: ImageNet-21k
  • Original: https://github.com/tensorflow/tpu/tree/master/models/official/efficientnet

Model Usage

Image Classification

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('tf_efficientnetv2_s.in21k_ft_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

Read the full model card (379 words)

Identity and Version

Repository
timm/tf_efficientnetv2_s.in21k_ft_in1k
Publisher
PyTorch Image Models
Task
Image classification
Modality
Image
Library
timm
Parameters
22M parameters
Languages
Not stated by the source
Revision
ea9abc143ea2b9d8e1ec1de277bce02149b9cf0e
First published
2022-12-13
Last updated
2025-01-21

Files and Weights

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

Weights2 files · 173.2 MB
Configuration1 file · 638 B
Documentation1 file · 4.2 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights86.5 MB 6f1933fb6c0d
pytorch_model.binWeights86.7 MB 40ed79ccf7aa
config.jsonConfiguration638 B —
README.mdDocumentation4.2 KB —
.gitattributesRepository1.5 KB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
173.2 MB
Download from PyTorch Image Models

Released by PyTorch Image Models through its official repository on Hugging Face. Read the license.

Built From

  • Described by arXiv:2104.00298
  • Trained on (disclosed) imagenet-1k
  • Trained on (disclosed) imagenet-21k

Memory Requirements

PrecisionWeights in memory
As published173.2 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 tf_efficientnetv2_s.in21k_ft_in1k

How much GPU memory does tf_efficientnetv2_s.in21k_ft_in1k need?

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

What is the cheapest GPU to run tf_efficientnetv2_s.in21k_ft_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 tf_efficientnetv2_s.in21k_ft_in1k commercially?

Yes. tf_efficientnetv2_s.in21k_ft_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

resnet34.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 22M parameters timm

Model · Image classification

resnet34-finetuned-scenario16

Ivan Richardson

This is the model card of a transformers model that has been pushed on the Hub. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Use the code below to get started with the model. Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Open weights 21M parameters transformers

A Vision Transformer (ViT) image classification model. Trained on ImageNet-21k and fine-tuned on ImageNet-1k (with additional augmentation and regularization) in JAX by paper authors, ported to PyTorch by Ross Wightman. - How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers: https://arxiv.org/abs/2106.10270 - An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale: https://arxiv.org/abs/2010.11929v2 Explore the dataset and runtime metrics of this model in timm model results.

Open weights apache-2.0 22M parameters timm

Binary classifier (NORMAL vs PNEUMONIA): torchvision ResNet50 (ImageNet IMAGENET1KV2 weights) fully fine-tuned on Purino/chest-xray-pneumonia-256-fullframe-gray. Research/educational use only, not a diagnostic tool. Confusion matrix (rows = true, columns = predicted): Validation (15% stratified hold-out of train, 783 images) at the selected epoch 8: accuracy 0.9885, recall 0.9880, macro-F1 0.9851, AUC 0.9983. - The dataset has no patient-level split or deduplication, so validation (and possibly test) images may come from patients seen in training; scores can be optimistic. - Trained on one pediatric dataset (Kermany et al.); it will likely not generalize to other scanners, populations or…

Open weights cc-by-4.0 24M parameters pytorch

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

Model · Image classification

regnety_032.ra_in1k

PyTorch Image Models

A RegNetY-3.2GF image classification model. Trained on ImageNet-1k by Ross Wightman in timm. The timm RegNet implementation includes a number of enhancements not present in other implementations, including: stochastic depth gradient checkpointing layer-wise LR decay configurable output stride (dilation) configurable activation and norm layers option for a pre-activation bottleneck block used in RegNetV variant only known RegNetZ model definitions with pretrained weights Explore the dataset and runtime metrics of this model in timm model results. For the comparison summary below, the rain1k, ra3in1k, chin1k, sw, and lion tagged weights are trained in timm.

Open weights apache-2.0 20M parameters timm