File tree Expand file tree Collapse file tree 28 files changed +304
-88
lines changed Expand file tree Collapse file tree 28 files changed +304
-88
lines changed Original file line number Diff line number Diff line change 42
42
run : |
43
43
cd docs
44
44
make papermill
45
+ - name : Coverage
46
+ run : |
47
+ set -ex
48
+ cd docs
49
+ make coverage
50
+ if [ "$(wc -l build/*/coverage/python.txt)" -ne 2 ]
51
+ then
52
+ cat build/*/coverage/python.txt
53
+ echo "missing documentation coverage!"
54
+ exit 1
55
+ fi
45
56
46
57
docpush :
47
58
runs-on : ubuntu-18.04
Original file line number Diff line number Diff line change @@ -10,11 +10,12 @@ The top level modules in TorchX are:
10
10
11
11
1. :mod: `torchx.specs `: application spec (job definition) APIs
12
12
2. :mod: `torchx.components `: predefined (builtin) app specs
13
- 3. :mod: `torchx.runner `: given an app spec, submits the app as a job on a scheduler
14
- 4. :mod: `torchx.schedulers `: backend job schedulers that the runner supports
15
- 5. :mod: `torchx.pipelines `: adapters that convert the given app spec to a "stage" in an ML pipeline platform
16
- 6. :mod: `torchx.runtime `: util and abstraction libraries you can use in authoring apps (not app spec)
17
- 7. :mod: `torchx.cli `: CLI tool
13
+ 3. :mod: `torchx.workspace `: handles patching images for remote execution
14
+ 4. :mod: `torchx.cli `: CLI tool
15
+ 5. :mod: `torchx.runner `: given an app spec, submits the app as a job on a scheduler
16
+ 6. :mod: `torchx.schedulers `: backend job schedulers that the runner supports
17
+ 7. :mod: `torchx.pipelines `: adapters that convert the given app spec to a "stage" in an ML pipeline platform
18
+ 8. :mod: `torchx.runtime `: util and abstraction libraries you can use in authoring apps (not app spec)
18
19
19
20
Below is a UML diagram
20
21
Original file line number Diff line number Diff line change 4
4
.. automodule :: torchx.components.utils
5
5
.. currentmodule :: torchx.components.utils
6
6
7
- .. autofunction :: torchx.components.utils.echo
8
- .. autofunction :: torchx.components.utils.touch
9
- .. autofunction :: torchx.components.utils.sh
10
- .. autofunction :: torchx.components.utils.copy
11
- .. autofunction :: torchx.components.utils.python
12
- .. autofunction :: torchx.components.utils.booth
7
+ .. autofunction :: echo
8
+ .. autofunction :: touch
9
+ .. autofunction :: sh
10
+ .. autofunction :: copy
11
+ .. autofunction :: python
12
+ .. autofunction :: booth
13
+ .. autofunction :: binary
Original file line number Diff line number Diff line change 66
66
"IPython.sphinxext.ipython_console_highlighting" ,
67
67
]
68
68
69
+ # coverage options
70
+
71
+ coverage_ignore_modules = [
72
+ "torchx.components.component_test_base" ,
73
+ ]
74
+
69
75
# katex options
70
76
#
71
77
#
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ most unique applications can be serviced without customizing the whole vertical
16
16
17
17
18
18
**GETTING STARTED? ** First learn the :ref: `basic concepts<basics:Basic Concepts> ` and
19
- follow the :ref: `quickstart guide<quickstart:Quickstart> `.
19
+ follow the :ref: `quickstart guide<quickstart:Quickstart - Custom Components > `.
20
20
21
21
.. image :: torchx_index_diag.png
22
22
@@ -47,8 +47,37 @@ Documentation
47
47
quickstart.md
48
48
cli
49
49
50
+ runner.config
51
+
50
52
advanced
51
53
54
+
55
+ Works With
56
+ ---------------
57
+
58
+ .. _Schedulers :
59
+ .. toctree ::
60
+ :maxdepth: 1
61
+ :caption: Schedulers
62
+
63
+ schedulers/local
64
+ schedulers/docker
65
+ schedulers/kubernetes
66
+ schedulers/slurm
67
+ schedulers/ray
68
+ schedulers/aws_batch
69
+
70
+ .. _Pipelines :
71
+ .. toctree ::
72
+ :maxdepth: 1
73
+ :caption: Pipelines
74
+
75
+ pipelines/kfp
76
+
77
+
78
+ Examples
79
+ ------------
80
+
52
81
.. toctree ::
53
82
:maxdepth: 1
54
83
:caption: Examples
@@ -58,6 +87,7 @@ Documentation
58
87
examples_pipelines/index
59
88
60
89
90
+
61
91
Components Library
62
92
---------------------
63
93
.. _Components :
@@ -85,28 +115,6 @@ Runtime Library
85
115
runtime/tracking
86
116
87
117
88
- Works With
89
- ---------------
90
-
91
- .. _Schedulers :
92
- .. toctree ::
93
- :maxdepth: 1
94
- :caption: Schedulers
95
-
96
- schedulers/local
97
- schedulers/kubernetes
98
- schedulers/slurm
99
- schedulers/ray
100
- schedulers/aws_batch
101
-
102
- .. _Pipelines :
103
- .. toctree ::
104
- :maxdepth: 1
105
- :caption: Pipelines
106
-
107
- pipelines/kfp
108
-
109
-
110
118
Reference
111
119
-----------
112
120
@@ -118,6 +126,7 @@ Reference
118
126
specs
119
127
runner
120
128
schedulers
129
+ workspace
121
130
pipelines
122
131
123
132
.. toctree ::
@@ -126,15 +135,3 @@ Reference
126
135
127
136
app_best_practices
128
137
component_best_practices
129
-
130
-
131
- Experimental
132
- ---------------
133
- .. toctree ::
134
- :maxdepth: 1
135
- :caption: Experimental Features
136
-
137
- experimental/runner.config
138
-
139
-
140
-
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ jupyter:
12
12
name : python3
13
13
---
14
14
15
- # Quickstart
15
+ # Quickstart - Custom Components
16
16
17
17
This is a self contained guide on how to build a simple app and component spec
18
18
and launch it via two different schedulers.
Original file line number Diff line number Diff line change 1
- (beta) .torchxconfig file
1
+ .torchxconfig
2
2
-----------------------------
3
3
4
4
.. automodule :: torchx.runner.config
@@ -10,3 +10,7 @@ Config API Functions
10
10
.. autofunction :: apply
11
11
.. autofunction :: load
12
12
.. autofunction :: dump
13
+ .. autofunction :: find_configs
14
+ .. autofunction :: get_configs
15
+ .. autofunction :: get_config
16
+ .. autofunction :: load_sections
Original file line number Diff line number Diff line change @@ -14,4 +14,7 @@ Ax (Adaptive Experimentation)
14
14
.. currentmodule :: torchx.runtime.hpo.ax
15
15
16
16
.. autoclass :: TorchXRunner
17
+ :members:
18
+
17
19
.. autoclass :: AppMetric
20
+ :members:
Original file line number Diff line number Diff line change @@ -2,7 +2,17 @@ AWS Batch
2
2
=================
3
3
4
4
.. automodule :: torchx.schedulers.aws_batch_scheduler
5
+
5
6
.. currentmodule :: torchx.schedulers.aws_batch_scheduler
6
7
7
8
.. autoclass :: AWSBatchScheduler
8
9
:members:
10
+ :show-inheritance:
11
+
12
+ .. autoclass :: BatchJob
13
+ :members:
14
+
15
+ Reference
16
+ ~~~~~~~~~~~~
17
+
18
+ .. autofunction :: create_scheduler
Original file line number Diff line number Diff line change
1
+ Docker
2
+ =================
3
+
4
+ .. automodule :: torchx.schedulers.docker_scheduler
5
+
6
+ .. currentmodule :: torchx.schedulers.docker_scheduler
7
+
8
+ .. autoclass :: DockerScheduler
9
+ :members:
10
+ :show-inheritance:
11
+
12
+ .. autoclass :: DockerJob
13
+ :members:
14
+
15
+ Reference
16
+ ~~~~~~~~~~~~
17
+
18
+ .. autofunction :: create_scheduler
19
+
20
+ .. autoclass :: DockerContainer
21
+ :members:
22
+
23
+ .. autofunction :: has_docker
Original file line number Diff line number Diff line change @@ -2,8 +2,22 @@ Kubernetes
2
2
=================
3
3
4
4
.. automodule :: torchx.schedulers.kubernetes_scheduler
5
+
5
6
.. currentmodule :: torchx.schedulers.kubernetes_scheduler
6
7
7
8
.. autoclass :: KubernetesScheduler
8
9
:members:
10
+ :show-inheritance:
11
+
12
+ .. autoclass :: KubernetesJob
13
+ :members:
14
+
15
+ Reference
16
+ ~~~~~~~~~~~~
9
17
18
+ .. autofunction :: create_scheduler
19
+ .. autofunction :: app_to_resource
20
+ .. autofunction :: cleanup_str
21
+ .. autofunction :: pod_labels
22
+ .. autofunction :: role_to_pod
23
+ .. autofunction :: sanitize_for_serialization
Original file line number Diff line number Diff line change 2
2
=================
3
3
4
4
.. automodule :: torchx.schedulers.local_scheduler
5
+
5
6
.. currentmodule :: torchx.schedulers.local_scheduler
6
7
7
8
.. autoclass :: LocalScheduler
8
9
:members:
9
-
10
- .. automodule :: torchx.schedulers.docker_scheduler
11
- .. currentmodule :: torchx.schedulers.docker_scheduler
12
-
13
- .. autoclass :: DockerScheduler
14
- :members:
10
+ :show-inheritance:
15
11
16
12
Image Providers
17
13
~~~~~~~~~~~~~~~~~
18
14
19
- .. currentmodule :: torchx.schedulers.local_scheduler
20
-
21
15
.. autoclass :: ImageProvider
22
16
:members:
23
17
24
18
.. autoclass :: CWDImageProvider
25
19
:members:
20
+
21
+ .. autoclass :: LocalDirectoryImageProvider
22
+ :members:
23
+
24
+ Reference
25
+ ~~~~~~~~~~~~
26
+
27
+ .. autofunction :: create_cwd_scheduler
28
+
29
+ .. autoclass :: LogIterator
30
+ :members:
31
+
32
+ .. autoclass :: PopenRequest
33
+ :members:
34
+
35
+ .. autoclass :: ReplicaParam
36
+ :members:
37
+
38
+ .. autoclass :: SignalException
39
+ :members:
Original file line number Diff line number Diff line change 2
2
=================
3
3
4
4
.. automodule :: torchx.schedulers.ray_scheduler
5
+
5
6
.. currentmodule :: torchx.schedulers.ray_scheduler
6
7
7
8
.. autoclass :: RayScheduler
8
9
:members:
10
+ :show-inheritance:
11
+
12
+ .. autofunction :: create_scheduler
13
+ .. autofunction :: has_ray
14
+ .. autofunction :: serialize
15
+
16
+ .. autoclass :: RayJob
17
+ :members:
Original file line number Diff line number Diff line change 2
2
=================
3
3
4
4
.. automodule :: torchx.schedulers.slurm_scheduler
5
+
5
6
.. currentmodule :: torchx.schedulers.slurm_scheduler
6
7
7
8
.. autoclass :: SlurmScheduler
8
9
:members:
10
+ :show-inheritance:
11
+
12
+ .. autofunction :: create_scheduler
13
+
14
+ .. autoclass :: SlurmBatchRequest
15
+ :members:
16
+
17
+ .. autoclass :: SlurmReplicaRequest
18
+ :members:
You can’t perform that action at this time.
0 commit comments