Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Open In Colab Open In Kaggle

This page shows how an author marks a tutorial that is too heavy for the browser. Add runtime: colab to the frontmatter. The page then shows its code read-only, with a banner that links to Colab and Kaggle, instead of editable cells that can’t run here.

Use it for tutorials that need PyTorch, a GPU, large datasets or long training runs.

A tiny training loop, the kind of thing that belongs in Colab: