Papers › fastai: A Layered API for Deep Learning

fastai: A Layered API for Deep Learning

11 Feb 2020arXiv:2002.04688archive 2025-07-28

Jeremy Howard, Sylvain Gugger

fastai is a deep learning library which provides practitioners with high-level components that can quickly and easily provide state-of-the-art results in standard deep learning domains, and provides researchers with low-level components that can be mixed and matched to build new approaches. It aims to do both things without substantial compromises in ease of use, flexibility, or performance. This is possible thanks to a carefully layered architecture, which expresses common underlying patterns of many deep learning and data processing techniques in terms of decoupled abstractions. These abstractions can be expressed concisely and clearly by leveraging the dynamism of the underlying Python language and the flexibility of the PyTorch library. fastai includes: a new type dispatch system for Python along with a semantic type hierarchy for tensors; a GPU-optimized computer vision library which can be extended in pure Python; an optimizer which refactors out the common functionality of modern optimizers into two basic pieces, allowing optimization algorithms to be implemented in 4-5 lines of code; a novel 2-way callback system that can access any part of the data, model, or optimizer and change it at any point during training; a new data block API; and much more. We have used this library to successfully create a complete deep learning course, which we were able to write more quickly than using previous approaches, and the code was more clear. The library is already in wide use in research, industry, and teaching. NB: This paper covers fastai v2, which is currently in pre-release at http://dev.fast.ai/

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2002.04688")

Code

Syntology Ran 0 of 8 code samples harvested from 2 repositories linked to this paper; 8 have no recorded run.

By repository: official repository: 1 sample from 1 repository, 0 ran; community (archive-listed): 7 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

fastai/fastai officialmentioned in papermentioned on GitHubpytorch report
fastai/nbdev mentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

8 samples harvested; 0 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

8unverified

Licence: 0 of the 8 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_dls fastai/fastai/nbs/examples/train_imagenette.py official repository unverified Apache-2.0 (permissive) · 4bb32acdcd7e6dde · report
create_output fastai/nbdev/nbdev/config.py community (archive-listed) unverified Apache-2.0 (permissive) · 4a56b9b2ee78302e · report
find_var fastai/nbdev/nbdev/maker.py community (archive-listed) unverified Apache-2.0 (permissive) · 01e5074570469eff · report
is_nbdev fastai/nbdev/nbdev/config.py community (archive-listed) unverified Apache-2.0 (permissive) · bff6593e435fc1eb · report
nb_mdoc fastai/nbdev/nbdev/export.py community (archive-listed) unverified Apache-2.0 (permissive) · 210993801372c9f7 · report
patch_name fastai/nbdev/nbdev/doclinks.py community (archive-listed) unverified Apache-2.0 (permissive) · 73fd795cb76fa4c3 · report
read_var fastai/nbdev/nbdev/maker.py community (archive-listed) unverified Apache-2.0 (permissive) · 4dbdb13fe6334f41 · report
update_var fastai/nbdev/nbdev/maker.py community (archive-listed) unverified Apache-2.0 (permissive) · 7f51a8146638003d · report

Tasks

Deep Learning

1 archive task tag without a task page not shown.

Datasets

Introduced by this paper, per the archive.

ImagenetteImagewoofImage网

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Tanh Activation

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections