Assignment 4 Submission
Student: Mohammad Alhuwaivi ID: 4311615
Models
This repository contains two PyTorch models trained on FashionMNIST:
- DummyNet: A simple feed-forward network (Weights:
dummy-weights.bin). - VanillaNet: A deeper network with ReLU and LeakyReLU activations (Weights:
vanilla-weight.bin).
Usage
As per the assignment instructions, these models can be evaluated using the following code:
from huggingface_hub import snapshot_download
import torch as tr
# 1. Download the repository from Hugging Face
repo = snapshot_download("ai417upm/A4_4311615_Mohammad", token="YOUR_HUGGINGFACE_TOKEN")
# 2. Load DummyNet
dummy_model = tr.hub.load(repo, 'DummyNet', source='local')
dummy_model.eval()
predictions_dummy = dummy_model(tr.randn(10000, 784))
# 3. Load VanillaNet
vanilla_model = tr.hub.load(repo, 'VanillaNet', source='local')
vanilla_model.eval()
predictions_vanilla = vanilla_model(tr.randn(10000, 784))
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support