Full access is free during Beta. A paid subscription will be offered after Beta.

Fast.ai — User Guide

fast.ai practical DL.

Strengths
  • Completely free, includes course videos and code
  • Practice first, write code first and then understand theory
  • The fastai library makes deep learning code extremely concise
  • Equipped with Jupyter Notebook, you can learn and practice at the same time
  • Active community, good forum support
Best for
  • People with programming background learn deep learning
  • Quickly get started with PyTorch and deep learning practices
  • Learn computer vision and NLP applications
  • Learn best practices for deep learning
  • Preparing for a Kaggle competition

Course structure and learning path

Fast.ai adopts a "top-down" learning method, running the code first and then understanding the principles.

Scenario

Start the Practical Deep Learning course

Prompt example
Course address: course.fast.ai

Lesson 1: Start with image classification
1. Open Jupyter Notebook (Kaggle or Colab recommended)
2. Run the first code example:

```python
from fastai.vision.all import *

# Download dataset
path = untar_data(URLs.PETS)

#Create data loader
dls = ImageDataLoaders.from_name_re(
    path, get_image_files(path/"images"),
    pat=r'([^/]+)_\d+.jpg$',
    item_tfms=Resize(460),
    batch_tfms=aug_transforms(size=224)
)

#Train model
learn = vision_learner(dls, resnet34, metrics=error_rate)
learn.fine_tune(3)
```

3. After a few minutes, the model training is completed
4. Accuracy usually exceeds 90%
Output / what to expect
Trained a pet breed classifier in less than 10 lines of code, Accuracy rate exceeds 90%, This is the charm of Fast.ai: let you see the effect first, and then explain the principle.
Tips

It is recommended to run the code on Kaggle. The free GPU quota is enough for learning.

Scenario

Take an NLP course

Prompt example
Fast.ai NLP Course (Part 3 of course.fast.ai):

1. Introduction to text classification:
```python
from fastai.text.all import *

# Load IMDb data set
path = untar_data(URLs.IMDB)
dls = TextDataLoaders.from_folder(path, valid='test')

# Train language model
learn = text_classifier_learner(
    dls, AWD_LSTM, drop_mult=0.5, metrics=accuracy
)
learn.fine_tune(4, 1e-2)
```

2. Understand the Transformer architecture
3. Implement a simple attention mechanism from scratch
Output / what to expect
Learn NLP from practice, Run the code first to see the effect. Learn more about the principles behind it.
Tips

Fast.ai’s NLP course is a great introduction to Transformer.

Starter & above

The rest of this guide

Additional scenarios and the full comparison table are included with Starter and above. Sign in with an eligible account to load them.

You're on the Free plan. Upgrade to Starter or higher to unlock the rest of this guide—additional scenarios and the full comparison table.

Loading full guide…