Study reference implementations of state-of-the-art models to understand TensorFlow best practices.
Fine-tune pre-built models on your own dataset instead of training from scratch.
Use Orbit to write custom training loops that work across CPU, GPU, and TPU.
Build production models by starting from officially maintained, optimized implementations.
Requires TensorFlow 2 installation and compatible Python version; GPU/TPU optional but examples assume specific hardware setup.
The TensorFlow Model Garden is a collection of model implementations and examples built with TensorFlow. Its stated goal is to demonstrate best practices so TensorFlow users can take full advantage of the framework for research and product development. It does not provide a single model, but a curated set of reference implementations contributors can read, run, modify, and use as starting points. Inside the repository the code is split into a few directories. The official directory holds example implementations of state-of-the-art models written with TensorFlow 2's high-level APIs; these are officially maintained, kept up to date, and "reasonably optimized for fast performance while still being easy to read." The research directory contains model implementations contributed by researchers in TensorFlow 1 or 2, maintained by those researchers rather than the core team. The community directory is a curated list of GitHub repositories outside this one that hold models powered by TensorFlow 2. Finally, orbit is a flexible, lightweight library for writing customized training loops in TensorFlow 2.x, it integrates with tf.distribute and supports running on CPU, GPU, and TPU. Two installation paths are described. The first is a pip package, tf-models-official, that installs all models and their dependencies; a tf-models-nightly package tracks the master branch. The second is cloning the repository and adding it to the Python path. Someone would use the Model Garden when they want a known-good TensorFlow implementation of a published model to study, fine-tune, or build a product on top of, instead of writing one from scratch. The code is in Python and licensed under Apache-2.0.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.