Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC - Enhancements to Sphinx documentation #648

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/preview_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "readthedocs-preview"
single-version: true
project-slug: "google-grain"
single-version: true
55 changes: 32 additions & 23 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,46 @@
# Grain - Feeding JAX Models



Grain is a library for reading data for training and evaluating JAX models. It's
open source, fast and deterministic.

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

:::{grid-item-card} {octicon}`zap;1.5em;sd-mr-1` Powerful Users can bring
arbitrary Python transformations. :::
:::{grid-item-card} {octicon}`zap;1.5em;sd-mr-1` Powerful
Users can bring arbitrary Python transformations.
:::

:::{grid-item-card} {octicon}`tools;1.5em;sd-mr-1` Flexible Grain is designed to
:::{grid-item-card} {octicon}`tools;1.5em;sd-mr-1` Flexible
Grain is designed to
be modular. Users can readily override Grain components if need be with their
own implementation. :::
own implementation.
:::

:::{grid-item-card} {octicon}`versions;1.5em;sd-mr-1` Deterministic Multiple
runs of the same pipeline will produce the same output. :::
:::{grid-item-card} {octicon}`versions;1.5em;sd-mr-1` Deterministic
Multiple runs of the same pipeline will produce the same output.
:::

:::{grid-item-card} {octicon}`check-circle;1.5em;sd-mr-1` Resilient to
pre-emptions Grain is designed such that checkpoints have minimal size. After
:::{grid-item-card} {octicon}`check-circle;1.5em;sd-mr-1` Resilient to pre-emptions
Grain is designed such that checkpoints have minimal size. After
pre-emption, Grain can resume from where it left off and produce the same output
as if it was never pre-empted. :::
as if it was never pre-empted.
:::

:::{grid-item-card} {octicon}`sparkles-fill;1.5em;sd-mr-1` Performant We took
care while designing Grain to ensure that it's performant (refer to the
:::{grid-item-card} {octicon}`zap;1.5em;sd-mr-1` Performant
We took care while designing Grain to ensure that it's performant (refer to the
[Behind the Scenes](behind_the_scenes.md) section of the documentation.) We also
tested it against multiple data modalities (e.g.Text/Audio/Images/Videos). :::
tested it against multiple data modalities (e.g.Text/Audio/Images/Videos).
:::

:::{grid-item-card} {octicon}`package;1.5em;sd-mr-1` With minimal dependencies
Grain minimizes its set of dependencies when possible. For example, it should
not depend on TensorFlow. :::

not depend on TensorFlow.
:::
::::

``` {toctree}
:maxdepth: 1
:hidden:
:caption: Getting started
installation
behind_the_scenes
Expand All @@ -43,27 +49,30 @@ data_sources

``` {toctree}
:maxdepth: 1
:hidden:
:caption: Data Loader
data_loader/samplers
data_loader/transformations
```

``` {toctree}
:maxdepth: 1
:hidden:
:caption: Tutorials
tutorials/dataset_basic_tutorial
```

<!-- Automatically generated documentation from docstrings -->
``` {toctree}
:maxdepth: 1
:caption: Contributor guides
CONTRIBUTING
:hidden:
:caption: References
autoapi/index
```

<!-- Automatically generated documentation from docstrings -->

``` {toctree}
:maxdepth: 1
:caption: References
autoapi/index
:hidden:
:caption: Contributor guides
CONTRIBUTING
```