Skip to content

Commit

Permalink
Doc theme (ml-explore#5)
Browse files Browse the repository at this point in the history
* change docs theme + links + logo

* move mlx intro to landing page
  • Loading branch information
awni authored Dec 5, 2023
1 parent 7546fdb commit 6449a86
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 24 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for example with `conda`:

```
conda install sphinx
pip install sphinx-rtd-theme
pip install sphinx-book-theme
```

### Build
Expand Down
Binary file added docs/src/_static/mlx_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@

# -- Options for HTML output -------------------------------------------------

html_theme = "sphinx_rtd_theme"
html_theme = "sphinx_book_theme"

html_theme_options = {
"show_toc_level": 2,
"repository_url": "https://github.com/ml-explore/mlx",
"use_repository_button": True,
"navigation_with_keys": False,
}

html_logo = "_static/mlx_logo.png"


# -- Options for HTMLHelp output ---------------------------------------------

Expand Down
24 changes: 24 additions & 0 deletions docs/src/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
MLX
===

MLX is a NumPy-like array framework designed for efficient and flexible
machine learning on Apple silicon.

The Python API closely follows NumPy with a few exceptions. MLX also has a
fully featured C++ API which closely follows the Python API.

The main differences between MLX and NumPy are:

- **Composable function transformations**: MLX has composable function
transformations for automatic differentiation, automatic vectorization,
and computation graph optimization.
- **Lazy computation**: Computations in MLX are lazy. Arrays are only
materialized when needed.
- **Multi-device**: Operations can run on any of the supported devices (CPU,
GPU, ...)

The design of MLX is strongly inspired by frameworks like `PyTorch
<https://pytorch.org/>`_, `Jax <https://github.com/google/jax>`_, and
`ArrayFire <https://arrayfire.org/>`_. A noteable difference from these
frameworks and MLX is the *unified memory model*. Arrays in MLX live in shared
memory. Operations on MLX arrays can be performed on any of the supported
device types without performing data copies. Currently supported device types
are the CPU and GPU.

.. toctree::
:caption: Install
:maxdepth: 1
Expand Down
22 changes: 0 additions & 22 deletions docs/src/quick_start.rst
Original file line number Diff line number Diff line change
@@ -1,28 +1,6 @@
Quick Start Guide
=================

MLX is a NumPy-like array framework designed for efficient and flexible
machine learning on Apple silicon. The Python API closely follows NumPy with
a few exceptions. MLX also has a fully featured C++ API which closely follows
the Python API.

The main differences between MLX and NumPy are:

- **Composable function transformations**: MLX has composable function
transformations for automatic differentiation, automatic vectorization,
and computation graph optimization.
- **Lazy computation**: Computations in MLX are lazy. Arrays are only
materialized when needed.
- **Multi-device**: Operations can run on any of the supported devices (CPU,
GPU, ...)

The design of MLX is strongly inspired by frameworks like `PyTorch
<https://pytorch.org/>`_, `Jax <https://github.com/google/jax>`_, and
`ArrayFire <https://arrayfire.org/>`_. A noteable difference from these
frameworks and MLX is the *unified memory model*. Arrays in MLX live in shared
memory. Operations on MLX arrays can be performed on any of the supported
device types without performing data copies. Currently supported device types
are the CPU and GPU.

Basics
------
Expand Down

0 comments on commit 6449a86

Please sign in to comment.