Run this model with HF Jobs

Run amd/resnet50 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/amd/resnet50. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/amd/resnet50 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

ResNet-50 v1.5

Quantized ResNet model that could be supported by AMD Ryzen AI.

Model description

ResNet (Residual Network) was first introduced in the paper Deep Residual Learning for Image Recognition by He et al.

This model is ResNet50 v1.5 from torchvision.

How to use

Installation

Follow Ryzen AI Installation to prepare the environment for Ryzen AI. Run the following script to install pre-requisites for this model.

pip install -r requirements.txt 

Data Preparation

Follow PyTorch Example to prepare dataset.

Model Evaluation

python eval_onnx.py --onnx_model ResNet_int.onnx --ipu --provider_config Path\To\vaip_config.json --data_dir /Path/To/Your/Dataset

Performance

Metric Accuracy on IPU
Top1/Top5 76.17% / 92.86%
 @article{He2015,
    author={Kaiming He and Xiangyu Zhang and Shaoqing Ren and Jian Sun},
    title={Deep Residual Learning for Image Recognition},
    journal={arXiv preprint arXiv:1512.03385},
    year={2015}
}
Downloads last month
36
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train amd/resnet50

Paper for amd/resnet50