AMD RyzenAI Models
Collection
4 items • Updated
How to use mohitsha/transformers-resnet18-onnx-quantized-ryzen with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="mohitsha/transformers-resnet18-onnx-quantized-ryzen")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # Load model directly
from transformers import AutoModelForImageClassification
model = AutoModelForImageClassification.from_pretrained("mohitsha/transformers-resnet18-onnx-quantized-ryzen", dtype="auto")