ylecun/mnist
Viewer • Updated • 70k • 101k • 258
Use the code below to get started with the model.
model = MixtureOfExperts(num_experts=10)
checkpoint_path = "FP_ML_MOE_SIMPLE_99_75.pth"
checkpoint = torch.load(checkpoint_path)
model.load_state_dict(checkpoint['model_state_dict'])
print(f"Validation Accuracy: {checkpoint["val_accuracy"]:.2f}")
input_data = torch.randn(1, 1, 28, 28)
results = model.predict(input_data.to(device))
print("Results:", results)
https://huggingface.co/datasets/ylecun/mnist
Adam with learning rate of 0.001 for fast initial convergence SGD with learning rate of 0.01 and learning rate decay to 0.001
2,247,151 parameters with 674,145 effective parameters
https://huggingface.co/datasets/ylecun/mnist
Mixture-of-Experts (MoE) architecture with a simple CNN as the experts.