Kaggle tips for running fast.ai notebooks in 2025

Our fast.ai study group is fairly active and we’ve struggled a bit trying to make some of the course notebooks work in Kaggle. For example, the Small models: Road to the Top, Part 2 notebook doesn’t work both with the original and latest environments. Here’s what worked:

  1. Use the latest environment.
  2. Change the second cell to the following:
    comp = 'paddy-disease-classification'
    path = setup_comp(comp, install='"timm>=0.6.2.dev0"')
    from fastai.vision.all import *
    set_seed(42)
    

In general, we’ve found that trying to install fastai causes issues and the latest image already has fastai v2.7.11 so removing installation steps for fastai, fastcore etc solves the problem. I’ve created this topic to list so that all of us can list various issues and solutions so that all the course notebooks can be run easily on Kaggle.

6 Likes