You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/src/dev/setup.rst
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,19 @@ Adding Nodes to Rafiki
36
36
37
37
Rafiki has with its dynamic stack (e.g. train workers, inference workes, predictors)
38
38
running as `Docker Swarm Services <https://docs.docker.com/engine/swarm/services/>`_.
39
-
Horizontal scaling can be done by `adding more nodes to the swarm <https://docs.docker.com/engine/swarm/join-nodes/>`_.
39
+
40
+
Horizontal scaling can be done by adding more nodes to the swarm.
41
+
42
+
Perform the following for *each* worker node to be added:
43
+
44
+
1. Connect the node to the same network as the master, so that the node can `join the master's Docker Swarm <https://docs.docker.com/engine/swarm/join-nodes/>`_.
To illustrate how to write models on Rafiki, we have written the following:
39
71
40
72
- Sample pre-processing logic to convert common dataset formats to Rafiki's own dataset formats in `./examples/datasets/ <https://github.com/nginyc/rafiki/tree/master/examples/datasets/>`_
41
73
- Sample models in `./examples/models/ <https://github.com/nginyc/rafiki/tree/master/examples/models/>`_
42
-
- A method :meth:`rafiki.model.test_model_class` that simulates a full train-inference flow on any Rafiki model
43
74
44
75
To start testing your model, first install the Python dependencies at ``rafiki/model/requirements.txt``:
45
76
@@ -93,13 +124,3 @@ Example: Testing Models for ``POS_TAGGING``
:class:`rafiki.model.BaseModel` has a property ``utils`` that subclasses the model utility classes
102
-
:class:`rafiki.model.log.ModelLogUtils` and :class:`rafiki.model.dataset.ModelDatasetUtils`. They
103
-
help with model logging & dataset loading respectively.
104
-
105
-
Refer to the sample usage in the implementation of `./examples/models/image_classification/TfSingleHiddenLayer.py <https://github.com/nginyc/rafiki/tree/master/examples/models/image_classification/TfSingleHiddenLayer.py>`_.
Copy file name to clipboardExpand all lines: docs/src/user/quickstart.rst
+8-12Lines changed: 8 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,21 +7,17 @@ Quick Start
7
7
8
8
.. note::
9
9
10
-
If you're a *Model Developer* just looking to contribute models to a running instance of Rafiki, refer to :ref:`quickstart-model-developers`.
10
+
- If you're a *Model Developer* just looking to contribute models to a running instance of Rafiki, refer to :ref:`quickstart-model-developers`.
11
+
- If you're an *Application Developer* just looking to train and deploy models on a running instance of Rafiki, refer to :ref:`quickstart-app-developers`.
12
+
- If you're an *Application User* just looking to make predictions to deployed models on a running instance of Rafiki, refer to :ref:`quickstart-app-users`.
11
13
12
-
.. note::
13
-
14
-
If you're an *Application Developer* just looking to train and deploy models on a running instance of Rafiki, refer to :ref:`quickstart-app-developers`.
15
-
16
-
.. note::
17
-
18
-
If you're an *Application User* just looking to make predictions to deployed models on a running instance of Rafiki, refer to :ref:`quickstart-app-users`.
19
14
15
+
This guide assumes you have deployed your an empty instance of Rafiki and you want to try a *full* train-inference flow,
16
+
including adding of models, submitting a train job and submitting a inference job to Rafiki.
20
17
21
-
This guide assumes you have deployed your an empty instance of Rafiki and you want to do a *full* train-inference flow,
22
-
including preparation of dataset and adding of models to Rafiki. Below, the sequence of examples submit the
23
-
`Fashion MNIST dataset <https://github.com/zalandoresearch/fashion-mnist>`_ for training and inference.
24
-
Alternatively, after installing Rafiki Client's dependencies, you can run `./examples/scripts/client_quickstart.py <https://github.com/nginyc/rafiki/blob/master/examples/scripts/client_quickstart.py>`_.
18
+
The sequence of examples below submits the `Fashion MNIST dataset <https://github.com/zalandoresearch/fashion-mnist>`_ for training and inference.
19
+
Alternatively, after installing the Rafiki Client's dependencies, you can refer and run the scripted version of this quickstart
0 commit comments