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
Copy file name to clipboardExpand all lines: docs/source/user_guide/cli/opctl/configure.rst
+82-8Lines changed: 82 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,12 @@
1
+
#################
1
2
CLI Configuration
2
-
=================
3
+
#################
3
4
4
-
**Prerequisite**
5
+
.. _configuration_prerequisites:
5
6
6
-
* You have completed :doc:`ADS CLI installation <../quickstart>`
7
+
.. admonition:: Prerequisites
8
+
9
+
- You have completed :doc:`ADS CLI installation <../quickstart>`
7
10
8
11
9
12
Setup default values for different options while running ``OCI Data Sciecne Jobs`` or ``OCI DataFlow``. By setting defaults, you can avoid inputing compartment ocid, project ocid, etc.
@@ -40,14 +43,14 @@ This will prompt you to setup default ADS CLI configurations for each OCI profil
40
43
subnet_id = oci.xxxx.<subnet-ocid>
41
44
log_group_id = oci.xxxx.<log_group_ocid>
42
45
log_id = oci.xxxx.<log_ocid>
43
-
shape_name = VM.Standard2.2
46
+
shape_name = VM.Standard.E2.4
44
47
block_storage_size_in_GBs = 100
45
48
46
49
[ANOTHERPROF]
47
50
compartment_id = oci.xxxx.<compartment_ocid>
48
51
project_id = oci.xxxx.<project_ocid>
49
52
subnet_id = oci.xxxx.<subnet-ocid>
50
-
shape_name = VM.Standard2.1
53
+
shape_name = VM.Standard.E2.4
51
54
log_group_id =ocid1.loggroup.oc1.xxx.xxxxx
52
55
log_id = oci.xxxx.<log_ocid>
53
56
block_storage_size_in_GBs = 50
@@ -57,10 +60,10 @@ This will prompt you to setup default ADS CLI configurations for each OCI profil
@@ -79,6 +82,34 @@ This will prompt you to setup default ADS CLI configurations for each OCI profil
79
82
compartment_id = oci.xxxx.<compartment_ocid>
80
83
project_id = oci.xxxx.<project_ocid>
81
84
85
+
``~/.ads_ops/model_deployment_config.ini`` will contain defaults for deploying ``Data Science Model``. Defaults are set for each profile listed in your oci config file. Here is a sample -
``~/.ads_ops/local_backend.ini`` will contain defaults for running jobs and pipeline steps locally. While local operations do not involve connections to OCI services, default
84
115
configurations are still set for each profile listed in your oci config file for consistency. Here is a sample -
@@ -93,3 +124,46 @@ configurations are still set for each profile listed in your oci config file for
93
124
[ANOTHERPROF]
94
125
max_parallel_containers = 4
95
126
pipeline_status_poll_interval_seconds = 5
127
+
128
+
129
+
Generate Starter YAML
130
+
---------------------
131
+
132
+
The examples demonstrated in this section show how to generate starter YAML specification for the Data Science Job, Data Flow Application, Data Science Model Deployment and ML Pipeline services. It takes into account the config files generated within ``ads opctl configure`` operation, as well as values extracted from the environment variables.
133
+
134
+
To generate starter specification run -
135
+
136
+
.. code-block::
137
+
138
+
ads opctl init --help
139
+
140
+
The resource type is a mandatory attribute that needs to be provided. Currently supported resource types - `dataflow`, `deployment`, `job` and `pipeline`.
141
+
For instance to generate starter specification for the Data Science job, run -
142
+
143
+
.. code-block::
144
+
145
+
ads opctl init job
146
+
147
+
The resulting YAML will be printed in the console. By default the ``python`` runtime will be used.
148
+
149
+
150
+
**Supported runtimes**
151
+
152
+
- For a ``job`` - `container`, `gitPython`, `notebook`, `python` and `script`.
153
+
- For a ``pipeline`` - `container`, `gitPython`, `notebook`, `python` and `script`.
154
+
- For a ``dataflow`` - `dataFlow` and `dataFlowNotebook`.
155
+
- For a ``deployment`` - `conda` and `container`.
156
+
157
+
158
+
If you want to specify a particular runtime use -
159
+
160
+
.. code-block::
161
+
162
+
ads opctl init job --runtime-type container
163
+
164
+
Use the ``--output`` attribute to save the result in a YAML file.
0 commit comments