Skip to content

Installation

Stable release

To install the latest stable release of FastMLX, use the following command:

1
pip install -U fastmlx

This is the recommended method to install FastMLX, as it will always install the most recent stable release.

If pip isn't installed, you can follow the Python installation guide to set it up.

Installation from Sources

To install FastMLX directly from the source code, run this command in your terminal:

1
pip install git+https://github.com/Blaizzy/fastmlx

Running the Server

There are two ways to start the FastMLX server:

Using the fastmlx command:

1
fastmlx

or

Using uvicorn directly:

1
uvicorn fastmlx:app --reload --workers 0

WARNING: The --reload flag should not be used in production. It is only intended for development purposes.

Additional Notes

  • Dependencies: Ensure that you have the required dependencies installed. FastMLX relies on several libraries, which pip will handle automatically.