ILSVRC/imagenet-1k
Viewer • Updated • 1.43M • 102k • 1.2k
Run amd/mnasnet_b1 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:
Use HF Jobs to fine-tune https://huggingface.co/amd/mnasnet_b1. 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.
Use HF Jobs to run batch inference with https://huggingface.co/amd/mnasnet_b1 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.
How to use amd/mnasnet_b1 with timm:
import timm
model = timm.create_model("hf-hub:amd/mnasnet_b1", pretrained=True)Quantized MNASNet_b1 model that could be supported by AMD Ryzen AI.
MNASNet was first introduced in the paper MnasNet: Platform-Aware Neural Architecture Search for Mobile.
The model implementation is from timm.
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
Follow ImageNet to prepare dataset.
python eval_onnx.py --onnx_model mnasnet_b1_int.onnx --ipu --provider_config Path\To\vaip_config.json --data_dir /Path/To/Your/Dataset
| Metric | Accuracy on IPU |
|---|---|
| Top1/Top5 | 73.51% / 91.56% |
@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}}
}
@inproceedings{tan2019mnasnet,
title={Mnasnet: Platform-aware neural architecture search for mobile},
author={Tan, Mingxing and Chen, Bo and Pang, Ruoming and Vasudevan, Vijay and Sandler, Mark and Howard, Andrew and Le, Quoc V},
booktitle={Proceedings of the IEEE/CVF conference on computer vision and pattern recognition},
pages={2820--2828},
year={2019}
}
import timm model = timm.create_model("hf-hub:amd/mnasnet_b1", pretrained=True)