Upload fastai model to Kaggle competition

Hi to all,

I’m new to Kaggle and I’m participating in the RSNA Intracranial Hemorrhage Detection competition.

I received an email saying that to be eligible to remain on the final leaderboard I should upload the model(s) I’ll be using in Stage 2. So far I have done everything using fastai v2. I have saved the model I’ve used with the .save() method, which serializes the learner in a python readable file. The question is, do I upload this to Kaggle? How do they know how to load it?

Thank you all.

1 Like

You can either do that and put the code you used for inference with it, or (if you seeded and registered your hyperparameters correctly) just give the whole code (training + inference) with the hyperparameters you used for your best model. They need to be able to check if your prediction is consistent with what you uploaded, so anything that enables them to do that is ok.