<!--
 Copyright 2024 Google LLC

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

      https://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 -->

# Tutorials

Explore our tutorials to learn how to use MaxText, from your first run to advanced post-training techniques.

::::{grid} 1 2 2 2
:gutter: 2

:::{grid-item-card} 🚀 Getting Started
:link: tutorials/first_run
:link-type: doc

Installation, prerequisites, verification, and your first training run.
:::

:::{grid-item-card} 📚 Pre-training
:link: tutorials/pretraining
:link-type: doc

Step-by-step guides for pre-training with real datasets like C4 using HuggingFace, Grain, or TFDS.
:::

:::{grid-item-card} 🧩 Post-training
:link: tutorials/post_training_index
:link-type: doc

Techniques for SFT, RL, and other post-training workflows on TPU.
:::

:::{grid-item-card} 📊 Inference
:link: tutorials/inference
:link-type: doc

Step-by-step guides for running inference of MaxText models on vLLM.
:::
::::

```{toctree}
:hidden:
:maxdepth: 1

tutorials/first_run.md
tutorials/pretraining.md
tutorials/post_training_index.md
tutorials/inference.md
```
