.. _`quick-start`: Quick Start ==================================================================== .. contents:: Table of Contents This guide assumes you have deployed your own empty instance of Rafiki and you want to try a *full* train-inference flow as the *Super Admin*: 1. Authenticating on Rafiki 2. Submitting models 3. Uploading datasets 4. Creating a model training job 5. Creating a model serving job after the model training job completes 6. Making predictions Follow the sequence of examples below to submit the `Fashion MNIST dataset `_ for training and inference. Alternatively, refer and run the scripted version of this quickstart `./examples/scripts/quickstart.py `_. To learn more about what else you can do on Rafiki, explore the methods of :class:`rafiki.client.Client`. .. note:: If you haven't set up Rafiki on your local machine, refer to :ref:`quick-setup` before continuing. .. note:: - For *Model Developers* just looking to contribute models, refer to :ref:`quickstart-model-developers` - For *Application Developers* just looking to train and deploy models, refer to :ref:`quickstart-app-developers` - For *Application Users* just looking to make predictions, refer to :ref:`quickstart-app-users` Installing the client -------------------------------------------------------------------- .. include:: ./client-installation.include.rst Initializing the client -------------------------------------------------------------------- Example: .. code-block:: python from rafiki.client import Client client = Client(admin_host='localhost', admin_port=3000) client.login(email='superadmin@rafiki', password='rafiki') .. seealso:: :meth:`rafiki.client.Client.login` Creating models -------------------------------------------------------------------- .. include:: ./client-create-models.include.rst Listing available models by task -------------------------------------------------------------------- .. include:: ./client-list-models.include.rst Creating datasets -------------------------------------------------------------------- .. include:: ./client-create-datasets.include.rst Creating a train job -------------------------------------------------------------------- .. include:: ./client-create-train-job.include.rst Listing train jobs -------------------------------------------------------------------- .. include:: ./client-list-train-jobs.include.rst Creating an inference job with the latest train job -------------------------------------------------------------------- .. include:: ./client-create-inference-job.include.rst Listing inference jobs -------------------------------------------------------------------- .. include:: ./client-list-inference-jobs.include.rst Making predictions -------------------------------------------------------------------- .. include:: ./making-predictions.include.rst Stopping a running inference job -------------------------------------------------------------------- .. include:: ./client-stop-inference-job.include.rst