This repository contains a simple feed-forward neural network trained to classify MNIST handwritten digits (0–9).
1import torch
2
3loaded = ClassifierHF.from_pretrained("apembere/mnist-classifier-hf")
4loaded.eval()
5
6with torch.no_grad():
7 logits = loaded(x)
8 preds = torch.argmax(logits, dim=1)
MNIST handwritten digits loaded via torchvision in the tutorial notebook.
Test accuracy is printed in the notebook after training and after reloading from the Hub.