anyscale 0.24.88__py3-none-any.whl → 0.25.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/__init__.py +56 -0
- anyscale/_private/anyscale_client/anyscale_client.py +179 -28
- anyscale/_private/anyscale_client/common.py +109 -2
- anyscale/_private/anyscale_client/fake_anyscale_client.py +239 -1
- anyscale/_private/docgen/README.md +1 -1
- anyscale/_private/docgen/__main__.py +71 -21
- anyscale/_private/docgen/api.md +13 -20
- anyscale/_private/docgen/generator.py +3 -2
- anyscale/_private/docgen/models.md +4 -49
- anyscale/_private/workload/workload_config.py +21 -7
- anyscale/aggregated_instance_usage/__init__.py +1 -1
- anyscale/aggregated_instance_usage/commands.py +2 -4
- anyscale/aggregated_instance_usage/models.py +8 -8
- anyscale/client/README.md +25 -22
- anyscale/client/openapi_client/__init__.py +16 -14
- anyscale/client/openapi_client/api/default_api.py +1139 -959
- anyscale/client/openapi_client/models/__init__.py +16 -14
- anyscale/client/openapi_client/models/baseimagesenum.py +43 -1
- anyscale/client/openapi_client/models/{session_event_types.py → cloud_deployment_config.py} +35 -24
- anyscale/client/openapi_client/models/{platformfinetuningjob_response.py → clouddeploymentconfig_response.py} +11 -11
- anyscale/client/openapi_client/models/{log_level_types.py → cluster_event_source.py} +12 -7
- anyscale/client/openapi_client/models/{company_size.py → cluster_size.py} +10 -10
- anyscale/client/openapi_client/models/cluster_status_details.py +2 -1
- anyscale/client/openapi_client/models/{sessionevent_list_response.py → clusterevent_list_response.py} +15 -15
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_notification_channel_record.py +29 -3
- anyscale/client/openapi_client/models/decorated_interactive_session.py +1 -57
- anyscale/client/openapi_client/models/decorated_job.py +1 -57
- anyscale/client/openapi_client/models/decorated_job_submission.py +1 -29
- anyscale/client/openapi_client/models/decorated_production_job.py +1 -29
- anyscale/client/openapi_client/models/decorated_session.py +1 -57
- anyscale/client/openapi_client/models/decorated_unified_job.py +1 -30
- anyscale/client/openapi_client/models/{resubmit_ft_job_request.py → describe_machine_pool_request.py} +21 -20
- anyscale/client/openapi_client/models/describe_machine_pool_response.py +123 -0
- anyscale/client/openapi_client/models/describemachinepoolresponse_response.py +121 -0
- anyscale/client/openapi_client/models/ha_jobs_sort_field.py +1 -2
- anyscale/client/openapi_client/models/internal_production_job.py +1 -29
- anyscale/client/openapi_client/models/jobs_sort_field.py +1 -2
- anyscale/client/openapi_client/models/machine_allocation_state.py +3 -1
- anyscale/client/openapi_client/models/machine_state_info.py +326 -0
- anyscale/client/openapi_client/models/{fine_tuning_job_status.py → notification_channel_slack_config.py} +34 -16
- anyscale/client/openapi_client/models/organization_marketing_questions.py +80 -54
- anyscale/client/openapi_client/models/request_state_info.py +210 -0
- anyscale/client/openapi_client/models/{platformfinetuningjob_list_response.py → scheduler_info.py} +43 -38
- anyscale/client/openapi_client/models/serve_deployment_fast_api_docs_status.py +123 -0
- anyscale/client/openapi_client/models/serve_deployment_state.py +2 -1
- anyscale/client/openapi_client/models/servedeploymentfastapidocsstatus_response.py +121 -0
- anyscale/client/openapi_client/models/sessions_sort_field.py +1 -2
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +43 -1
- anyscale/client/openapi_client/models/unified_job_sort_field.py +1 -2
- anyscale/client/openapi_client/models/update_cloud_collaborator.py +121 -0
- anyscale/client/openapi_client/models/usage_by_cluster.py +28 -1
- anyscale/client/openapi_client/models/usage_by_user.py +30 -3
- anyscale/client/openapi_client/models/workload_info.py +210 -0
- anyscale/cloud/__init__.py +83 -0
- anyscale/cloud/_private/cloud_sdk.py +25 -0
- anyscale/cloud/commands.py +45 -0
- anyscale/cloud/models.py +91 -0
- anyscale/cluster_compute.py +1 -1
- anyscale/commands/aggregated_instance_usage_commands.py +4 -4
- anyscale/commands/cloud_commands.py +87 -14
- anyscale/commands/command_examples.py +65 -0
- anyscale/commands/job_commands.py +15 -3
- anyscale/commands/machine_pool_commands.py +113 -1
- anyscale/commands/organization_invitation_commands.py +98 -0
- anyscale/commands/project_commands.py +52 -2
- anyscale/commands/resource_quota_commands.py +98 -11
- anyscale/commands/service_account_commands.py +65 -8
- anyscale/commands/service_commands.py +61 -1
- anyscale/commands/session_commands_hidden.py +5 -1
- anyscale/commands/user_commands.py +1 -1
- anyscale/commands/util.py +2 -2
- anyscale/commands/workspace_commands.py +1 -1
- anyscale/connect.py +1 -1
- anyscale/connect_utils/project.py +7 -4
- anyscale/controllers/cloud_controller.py +63 -30
- anyscale/controllers/cloud_functional_verification_controller.py +1 -1
- anyscale/controllers/cluster_controller.py +3 -11
- anyscale/controllers/compute_config_controller.py +1 -1
- anyscale/controllers/experimental_integrations_controller.py +1 -1
- anyscale/controllers/job_controller.py +8 -6
- anyscale/controllers/list_controller.py +2 -2
- anyscale/controllers/machine_pool_controller.py +12 -1
- anyscale/controllers/project_controller.py +4 -3
- anyscale/controllers/schedule_controller.py +1 -1
- anyscale/controllers/service_controller.py +1 -1
- anyscale/controllers/workspace_controller.py +1 -1
- anyscale/models/job_model.py +1 -1
- anyscale/organization_invitation/__init__.py +61 -0
- anyscale/organization_invitation/_private/organization_invitation_sdk.py +24 -0
- anyscale/organization_invitation/commands.py +84 -0
- anyscale/organization_invitation/models.py +45 -0
- anyscale/project/__init__.py +35 -0
- anyscale/project/_private/project_sdk.py +27 -0
- anyscale/project/commands.py +56 -0
- anyscale/project/models.py +91 -0
- anyscale/{project.py → project_utils.py} +3 -4
- anyscale/resource_quota/__init__.py +99 -0
- anyscale/resource_quota/_private/resource_quota_sdk.py +120 -0
- anyscale/resource_quota/commands.py +150 -0
- anyscale/resource_quota/models.py +303 -0
- anyscale/scripts.py +4 -0
- anyscale/sdk/anyscale_client/__init__.py +0 -5
- anyscale/sdk/anyscale_client/api/default_api.py +119 -150
- anyscale/sdk/anyscale_client/models/__init__.py +0 -5
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +43 -1
- anyscale/sdk/anyscale_client/models/cluster_status_details.py +2 -1
- anyscale/sdk/anyscale_client/models/jobs_sort_field.py +1 -2
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +43 -1
- anyscale/sdk/anyscale_client/sdk.py +1 -1
- anyscale/service/__init__.py +21 -0
- anyscale/service/_private/service_sdk.py +13 -0
- anyscale/service/commands.py +35 -0
- anyscale/service_account/__init__.py +88 -0
- anyscale/service_account/_private/service_account_sdk.py +101 -0
- anyscale/service_account/commands.py +147 -0
- anyscale/service_account/models.py +66 -0
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/shared_anyscale_utils/utils/id_gen.py +2 -0
- anyscale/user/__init__.py +1 -1
- anyscale/user/commands.py +1 -1
- anyscale/user/models.py +25 -15
- anyscale/util.py +23 -0
- anyscale/utils/cloud_utils.py +1 -1
- anyscale/version.py +1 -1
- anyscale/workspace_utils.py +1 -1
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/METADATA +1 -5
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/RECORD +134 -119
- anyscale/client/openapi_client/models/create_fine_tuning_hyperparameters.py +0 -156
- anyscale/client/openapi_client/models/create_fine_tuning_job_product_request.py +0 -353
- anyscale/client/openapi_client/models/finish_ft_job_request.py +0 -204
- anyscale/client/openapi_client/models/platform_fine_tuning_job.py +0 -577
- anyscale/client/openapi_client/models/session_event.py +0 -267
- anyscale/client/openapi_client/models/session_event_cause.py +0 -150
- anyscale/controllers/resource_quota_controller.py +0 -183
- anyscale/controllers/service_account_controller.py +0 -168
- anyscale/sdk/anyscale_client/models/log_level_types.py +0 -100
- anyscale/sdk/anyscale_client/models/session_event.py +0 -267
- anyscale/sdk/anyscale_client/models/session_event_cause.py +0 -150
- anyscale/sdk/anyscale_client/models/session_event_types.py +0 -111
- anyscale/sdk/anyscale_client/models/sessionevent_list_response.py +0 -147
- anyscale/utils/imports/azure.py +0 -14
- /anyscale/{cloud.py → cloud_utils.py} +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/LICENSE +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/NOTICE +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/WHEEL +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/entry_points.txt +0 -0
- {anyscale-0.24.88.dist-info → anyscale-0.25.5.dist-info}/top_level.txt +0 -0
@@ -1,577 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Managed Ray API
|
5
|
-
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: 0.1.0
|
9
|
-
Generated by: https://openapi-generator.tech
|
10
|
-
"""
|
11
|
-
|
12
|
-
|
13
|
-
import pprint
|
14
|
-
import re # noqa: F401
|
15
|
-
|
16
|
-
import six
|
17
|
-
|
18
|
-
from openapi_client.configuration import Configuration
|
19
|
-
|
20
|
-
|
21
|
-
class PlatformFineTuningJob(object):
|
22
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
-
Ref: https://openapi-generator.tech
|
24
|
-
|
25
|
-
Do not edit the class manually.
|
26
|
-
"""
|
27
|
-
|
28
|
-
"""
|
29
|
-
Attributes:
|
30
|
-
openapi_types (dict): The key is attribute name
|
31
|
-
and the value is attribute type.
|
32
|
-
attribute_map (dict): The key is attribute name
|
33
|
-
and the value is json key in definition.
|
34
|
-
"""
|
35
|
-
openapi_types = {
|
36
|
-
'result_files': 'list[str]',
|
37
|
-
'trained_tokens': 'int',
|
38
|
-
'hyperparameters': 'CreateFineTuningHyperparameters',
|
39
|
-
'training_file': 'str',
|
40
|
-
'validation_file': 'str',
|
41
|
-
'model': 'str',
|
42
|
-
'id': 'str',
|
43
|
-
'created_at': 'datetime',
|
44
|
-
'finished_at': 'datetime',
|
45
|
-
'fine_tuned_model': 'str',
|
46
|
-
'status': 'FineTuningJobStatus',
|
47
|
-
'error': 'str',
|
48
|
-
'creator_id': 'str',
|
49
|
-
'cloud_id': 'str',
|
50
|
-
'creator_email': 'str',
|
51
|
-
'creator_deleted_at': 'datetime',
|
52
|
-
'ha_job_id': 'str'
|
53
|
-
}
|
54
|
-
|
55
|
-
attribute_map = {
|
56
|
-
'result_files': 'result_files',
|
57
|
-
'trained_tokens': 'trained_tokens',
|
58
|
-
'hyperparameters': 'hyperparameters',
|
59
|
-
'training_file': 'training_file',
|
60
|
-
'validation_file': 'validation_file',
|
61
|
-
'model': 'model',
|
62
|
-
'id': 'id',
|
63
|
-
'created_at': 'created_at',
|
64
|
-
'finished_at': 'finished_at',
|
65
|
-
'fine_tuned_model': 'fine_tuned_model',
|
66
|
-
'status': 'status',
|
67
|
-
'error': 'error',
|
68
|
-
'creator_id': 'creator_id',
|
69
|
-
'cloud_id': 'cloud_id',
|
70
|
-
'creator_email': 'creator_email',
|
71
|
-
'creator_deleted_at': 'creator_deleted_at',
|
72
|
-
'ha_job_id': 'ha_job_id'
|
73
|
-
}
|
74
|
-
|
75
|
-
def __init__(self, result_files=[], trained_tokens=None, hyperparameters=None, training_file=None, validation_file=None, model=None, id=None, created_at=None, finished_at=None, fine_tuned_model=None, status=None, error=None, creator_id=None, cloud_id=None, creator_email=None, creator_deleted_at=None, ha_job_id=None, local_vars_configuration=None): # noqa: E501
|
76
|
-
"""PlatformFineTuningJob - a model defined in OpenAPI""" # noqa: E501
|
77
|
-
if local_vars_configuration is None:
|
78
|
-
local_vars_configuration = Configuration()
|
79
|
-
self.local_vars_configuration = local_vars_configuration
|
80
|
-
|
81
|
-
self._result_files = None
|
82
|
-
self._trained_tokens = None
|
83
|
-
self._hyperparameters = None
|
84
|
-
self._training_file = None
|
85
|
-
self._validation_file = None
|
86
|
-
self._model = None
|
87
|
-
self._id = None
|
88
|
-
self._created_at = None
|
89
|
-
self._finished_at = None
|
90
|
-
self._fine_tuned_model = None
|
91
|
-
self._status = None
|
92
|
-
self._error = None
|
93
|
-
self._creator_id = None
|
94
|
-
self._cloud_id = None
|
95
|
-
self._creator_email = None
|
96
|
-
self._creator_deleted_at = None
|
97
|
-
self._ha_job_id = None
|
98
|
-
self.discriminator = None
|
99
|
-
|
100
|
-
if result_files is not None:
|
101
|
-
self.result_files = result_files
|
102
|
-
if trained_tokens is not None:
|
103
|
-
self.trained_tokens = trained_tokens
|
104
|
-
if hyperparameters is not None:
|
105
|
-
self.hyperparameters = hyperparameters
|
106
|
-
self.training_file = training_file
|
107
|
-
if validation_file is not None:
|
108
|
-
self.validation_file = validation_file
|
109
|
-
self.model = model
|
110
|
-
self.id = id
|
111
|
-
self.created_at = created_at
|
112
|
-
if finished_at is not None:
|
113
|
-
self.finished_at = finished_at
|
114
|
-
self.fine_tuned_model = fine_tuned_model
|
115
|
-
self.status = status
|
116
|
-
if error is not None:
|
117
|
-
self.error = error
|
118
|
-
self.creator_id = creator_id
|
119
|
-
self.cloud_id = cloud_id
|
120
|
-
self.creator_email = creator_email
|
121
|
-
if creator_deleted_at is not None:
|
122
|
-
self.creator_deleted_at = creator_deleted_at
|
123
|
-
if ha_job_id is not None:
|
124
|
-
self.ha_job_id = ha_job_id
|
125
|
-
|
126
|
-
@property
|
127
|
-
def result_files(self):
|
128
|
-
"""Gets the result_files of this PlatformFineTuningJob. # noqa: E501
|
129
|
-
|
130
|
-
Array with the ID of the .json file that contains finetuning results. Available after the job is `running` # noqa: E501
|
131
|
-
|
132
|
-
:return: The result_files of this PlatformFineTuningJob. # noqa: E501
|
133
|
-
:rtype: list[str]
|
134
|
-
"""
|
135
|
-
return self._result_files
|
136
|
-
|
137
|
-
@result_files.setter
|
138
|
-
def result_files(self, result_files):
|
139
|
-
"""Sets the result_files of this PlatformFineTuningJob.
|
140
|
-
|
141
|
-
Array with the ID of the .json file that contains finetuning results. Available after the job is `running` # noqa: E501
|
142
|
-
|
143
|
-
:param result_files: The result_files of this PlatformFineTuningJob. # noqa: E501
|
144
|
-
:type: list[str]
|
145
|
-
"""
|
146
|
-
|
147
|
-
self._result_files = result_files
|
148
|
-
|
149
|
-
@property
|
150
|
-
def trained_tokens(self):
|
151
|
-
"""Gets the trained_tokens of this PlatformFineTuningJob. # noqa: E501
|
152
|
-
|
153
|
-
Number of tokens trained on. Available after the job is `succeeded` # noqa: E501
|
154
|
-
|
155
|
-
:return: The trained_tokens of this PlatformFineTuningJob. # noqa: E501
|
156
|
-
:rtype: int
|
157
|
-
"""
|
158
|
-
return self._trained_tokens
|
159
|
-
|
160
|
-
@trained_tokens.setter
|
161
|
-
def trained_tokens(self, trained_tokens):
|
162
|
-
"""Sets the trained_tokens of this PlatformFineTuningJob.
|
163
|
-
|
164
|
-
Number of tokens trained on. Available after the job is `succeeded` # noqa: E501
|
165
|
-
|
166
|
-
:param trained_tokens: The trained_tokens of this PlatformFineTuningJob. # noqa: E501
|
167
|
-
:type: int
|
168
|
-
"""
|
169
|
-
|
170
|
-
self._trained_tokens = trained_tokens
|
171
|
-
|
172
|
-
@property
|
173
|
-
def hyperparameters(self):
|
174
|
-
"""Gets the hyperparameters of this PlatformFineTuningJob. # noqa: E501
|
175
|
-
|
176
|
-
Hyperparameters used for fine-tuning. # noqa: E501
|
177
|
-
|
178
|
-
:return: The hyperparameters of this PlatformFineTuningJob. # noqa: E501
|
179
|
-
:rtype: CreateFineTuningHyperparameters
|
180
|
-
"""
|
181
|
-
return self._hyperparameters
|
182
|
-
|
183
|
-
@hyperparameters.setter
|
184
|
-
def hyperparameters(self, hyperparameters):
|
185
|
-
"""Sets the hyperparameters of this PlatformFineTuningJob.
|
186
|
-
|
187
|
-
Hyperparameters used for fine-tuning. # noqa: E501
|
188
|
-
|
189
|
-
:param hyperparameters: The hyperparameters of this PlatformFineTuningJob. # noqa: E501
|
190
|
-
:type: CreateFineTuningHyperparameters
|
191
|
-
"""
|
192
|
-
|
193
|
-
self._hyperparameters = hyperparameters
|
194
|
-
|
195
|
-
@property
|
196
|
-
def training_file(self):
|
197
|
-
"""Gets the training_file of this PlatformFineTuningJob. # noqa: E501
|
198
|
-
|
199
|
-
ID of the .jsonl file used for training # noqa: E501
|
200
|
-
|
201
|
-
:return: The training_file of this PlatformFineTuningJob. # noqa: E501
|
202
|
-
:rtype: str
|
203
|
-
"""
|
204
|
-
return self._training_file
|
205
|
-
|
206
|
-
@training_file.setter
|
207
|
-
def training_file(self, training_file):
|
208
|
-
"""Sets the training_file of this PlatformFineTuningJob.
|
209
|
-
|
210
|
-
ID of the .jsonl file used for training # noqa: E501
|
211
|
-
|
212
|
-
:param training_file: The training_file of this PlatformFineTuningJob. # noqa: E501
|
213
|
-
:type: str
|
214
|
-
"""
|
215
|
-
if self.local_vars_configuration.client_side_validation and training_file is None: # noqa: E501
|
216
|
-
raise ValueError("Invalid value for `training_file`, must not be `None`") # noqa: E501
|
217
|
-
|
218
|
-
self._training_file = training_file
|
219
|
-
|
220
|
-
@property
|
221
|
-
def validation_file(self):
|
222
|
-
"""Gets the validation_file of this PlatformFineTuningJob. # noqa: E501
|
223
|
-
|
224
|
-
ID of the .jsonl file used for validation. Optional # noqa: E501
|
225
|
-
|
226
|
-
:return: The validation_file of this PlatformFineTuningJob. # noqa: E501
|
227
|
-
:rtype: str
|
228
|
-
"""
|
229
|
-
return self._validation_file
|
230
|
-
|
231
|
-
@validation_file.setter
|
232
|
-
def validation_file(self, validation_file):
|
233
|
-
"""Sets the validation_file of this PlatformFineTuningJob.
|
234
|
-
|
235
|
-
ID of the .jsonl file used for validation. Optional # noqa: E501
|
236
|
-
|
237
|
-
:param validation_file: The validation_file of this PlatformFineTuningJob. # noqa: E501
|
238
|
-
:type: str
|
239
|
-
"""
|
240
|
-
|
241
|
-
self._validation_file = validation_file
|
242
|
-
|
243
|
-
@property
|
244
|
-
def model(self):
|
245
|
-
"""Gets the model of this PlatformFineTuningJob. # noqa: E501
|
246
|
-
|
247
|
-
A supported model used as a base for fine-tuning # noqa: E501
|
248
|
-
|
249
|
-
:return: The model of this PlatformFineTuningJob. # noqa: E501
|
250
|
-
:rtype: str
|
251
|
-
"""
|
252
|
-
return self._model
|
253
|
-
|
254
|
-
@model.setter
|
255
|
-
def model(self, model):
|
256
|
-
"""Sets the model of this PlatformFineTuningJob.
|
257
|
-
|
258
|
-
A supported model used as a base for fine-tuning # noqa: E501
|
259
|
-
|
260
|
-
:param model: The model of this PlatformFineTuningJob. # noqa: E501
|
261
|
-
:type: str
|
262
|
-
"""
|
263
|
-
if self.local_vars_configuration.client_side_validation and model is None: # noqa: E501
|
264
|
-
raise ValueError("Invalid value for `model`, must not be `None`") # noqa: E501
|
265
|
-
|
266
|
-
self._model = model
|
267
|
-
|
268
|
-
@property
|
269
|
-
def id(self):
|
270
|
-
"""Gets the id of this PlatformFineTuningJob. # noqa: E501
|
271
|
-
|
272
|
-
The ID of the fine-tuning job # noqa: E501
|
273
|
-
|
274
|
-
:return: The id of this PlatformFineTuningJob. # noqa: E501
|
275
|
-
:rtype: str
|
276
|
-
"""
|
277
|
-
return self._id
|
278
|
-
|
279
|
-
@id.setter
|
280
|
-
def id(self, id):
|
281
|
-
"""Sets the id of this PlatformFineTuningJob.
|
282
|
-
|
283
|
-
The ID of the fine-tuning job # noqa: E501
|
284
|
-
|
285
|
-
:param id: The id of this PlatformFineTuningJob. # noqa: E501
|
286
|
-
:type: str
|
287
|
-
"""
|
288
|
-
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
289
|
-
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
290
|
-
|
291
|
-
self._id = id
|
292
|
-
|
293
|
-
@property
|
294
|
-
def created_at(self):
|
295
|
-
"""Gets the created_at of this PlatformFineTuningJob. # noqa: E501
|
296
|
-
|
297
|
-
The time the job was submitted # noqa: E501
|
298
|
-
|
299
|
-
:return: The created_at of this PlatformFineTuningJob. # noqa: E501
|
300
|
-
:rtype: datetime
|
301
|
-
"""
|
302
|
-
return self._created_at
|
303
|
-
|
304
|
-
@created_at.setter
|
305
|
-
def created_at(self, created_at):
|
306
|
-
"""Sets the created_at of this PlatformFineTuningJob.
|
307
|
-
|
308
|
-
The time the job was submitted # noqa: E501
|
309
|
-
|
310
|
-
:param created_at: The created_at of this PlatformFineTuningJob. # noqa: E501
|
311
|
-
:type: datetime
|
312
|
-
"""
|
313
|
-
if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
|
314
|
-
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
|
315
|
-
|
316
|
-
self._created_at = created_at
|
317
|
-
|
318
|
-
@property
|
319
|
-
def finished_at(self):
|
320
|
-
"""Gets the finished_at of this PlatformFineTuningJob. # noqa: E501
|
321
|
-
|
322
|
-
The time the job finished # noqa: E501
|
323
|
-
|
324
|
-
:return: The finished_at of this PlatformFineTuningJob. # noqa: E501
|
325
|
-
:rtype: datetime
|
326
|
-
"""
|
327
|
-
return self._finished_at
|
328
|
-
|
329
|
-
@finished_at.setter
|
330
|
-
def finished_at(self, finished_at):
|
331
|
-
"""Sets the finished_at of this PlatformFineTuningJob.
|
332
|
-
|
333
|
-
The time the job finished # noqa: E501
|
334
|
-
|
335
|
-
:param finished_at: The finished_at of this PlatformFineTuningJob. # noqa: E501
|
336
|
-
:type: datetime
|
337
|
-
"""
|
338
|
-
|
339
|
-
self._finished_at = finished_at
|
340
|
-
|
341
|
-
@property
|
342
|
-
def fine_tuned_model(self):
|
343
|
-
"""Gets the fine_tuned_model of this PlatformFineTuningJob. # noqa: E501
|
344
|
-
|
345
|
-
A generated ID of the fine-tuned model # noqa: E501
|
346
|
-
|
347
|
-
:return: The fine_tuned_model of this PlatformFineTuningJob. # noqa: E501
|
348
|
-
:rtype: str
|
349
|
-
"""
|
350
|
-
return self._fine_tuned_model
|
351
|
-
|
352
|
-
@fine_tuned_model.setter
|
353
|
-
def fine_tuned_model(self, fine_tuned_model):
|
354
|
-
"""Sets the fine_tuned_model of this PlatformFineTuningJob.
|
355
|
-
|
356
|
-
A generated ID of the fine-tuned model # noqa: E501
|
357
|
-
|
358
|
-
:param fine_tuned_model: The fine_tuned_model of this PlatformFineTuningJob. # noqa: E501
|
359
|
-
:type: str
|
360
|
-
"""
|
361
|
-
if self.local_vars_configuration.client_side_validation and fine_tuned_model is None: # noqa: E501
|
362
|
-
raise ValueError("Invalid value for `fine_tuned_model`, must not be `None`") # noqa: E501
|
363
|
-
|
364
|
-
self._fine_tuned_model = fine_tuned_model
|
365
|
-
|
366
|
-
@property
|
367
|
-
def status(self):
|
368
|
-
"""Gets the status of this PlatformFineTuningJob. # noqa: E501
|
369
|
-
|
370
|
-
The current status of the job # noqa: E501
|
371
|
-
|
372
|
-
:return: The status of this PlatformFineTuningJob. # noqa: E501
|
373
|
-
:rtype: FineTuningJobStatus
|
374
|
-
"""
|
375
|
-
return self._status
|
376
|
-
|
377
|
-
@status.setter
|
378
|
-
def status(self, status):
|
379
|
-
"""Sets the status of this PlatformFineTuningJob.
|
380
|
-
|
381
|
-
The current status of the job # noqa: E501
|
382
|
-
|
383
|
-
:param status: The status of this PlatformFineTuningJob. # noqa: E501
|
384
|
-
:type: FineTuningJobStatus
|
385
|
-
"""
|
386
|
-
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
|
387
|
-
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
388
|
-
|
389
|
-
self._status = status
|
390
|
-
|
391
|
-
@property
|
392
|
-
def error(self):
|
393
|
-
"""Gets the error of this PlatformFineTuningJob. # noqa: E501
|
394
|
-
|
395
|
-
Error message. Available if the job is `failed` # noqa: E501
|
396
|
-
|
397
|
-
:return: The error of this PlatformFineTuningJob. # noqa: E501
|
398
|
-
:rtype: str
|
399
|
-
"""
|
400
|
-
return self._error
|
401
|
-
|
402
|
-
@error.setter
|
403
|
-
def error(self, error):
|
404
|
-
"""Sets the error of this PlatformFineTuningJob.
|
405
|
-
|
406
|
-
Error message. Available if the job is `failed` # noqa: E501
|
407
|
-
|
408
|
-
:param error: The error of this PlatformFineTuningJob. # noqa: E501
|
409
|
-
:type: str
|
410
|
-
"""
|
411
|
-
|
412
|
-
self._error = error
|
413
|
-
|
414
|
-
@property
|
415
|
-
def creator_id(self):
|
416
|
-
"""Gets the creator_id of this PlatformFineTuningJob. # noqa: E501
|
417
|
-
|
418
|
-
The ID of the user who submitted the job # noqa: E501
|
419
|
-
|
420
|
-
:return: The creator_id of this PlatformFineTuningJob. # noqa: E501
|
421
|
-
:rtype: str
|
422
|
-
"""
|
423
|
-
return self._creator_id
|
424
|
-
|
425
|
-
@creator_id.setter
|
426
|
-
def creator_id(self, creator_id):
|
427
|
-
"""Sets the creator_id of this PlatformFineTuningJob.
|
428
|
-
|
429
|
-
The ID of the user who submitted the job # noqa: E501
|
430
|
-
|
431
|
-
:param creator_id: The creator_id of this PlatformFineTuningJob. # noqa: E501
|
432
|
-
:type: str
|
433
|
-
"""
|
434
|
-
if self.local_vars_configuration.client_side_validation and creator_id is None: # noqa: E501
|
435
|
-
raise ValueError("Invalid value for `creator_id`, must not be `None`") # noqa: E501
|
436
|
-
|
437
|
-
self._creator_id = creator_id
|
438
|
-
|
439
|
-
@property
|
440
|
-
def cloud_id(self):
|
441
|
-
"""Gets the cloud_id of this PlatformFineTuningJob. # noqa: E501
|
442
|
-
|
443
|
-
Cloud id fo the FT job # noqa: E501
|
444
|
-
|
445
|
-
:return: The cloud_id of this PlatformFineTuningJob. # noqa: E501
|
446
|
-
:rtype: str
|
447
|
-
"""
|
448
|
-
return self._cloud_id
|
449
|
-
|
450
|
-
@cloud_id.setter
|
451
|
-
def cloud_id(self, cloud_id):
|
452
|
-
"""Sets the cloud_id of this PlatformFineTuningJob.
|
453
|
-
|
454
|
-
Cloud id fo the FT job # noqa: E501
|
455
|
-
|
456
|
-
:param cloud_id: The cloud_id of this PlatformFineTuningJob. # noqa: E501
|
457
|
-
:type: str
|
458
|
-
"""
|
459
|
-
if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
|
460
|
-
raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
|
461
|
-
|
462
|
-
self._cloud_id = cloud_id
|
463
|
-
|
464
|
-
@property
|
465
|
-
def creator_email(self):
|
466
|
-
"""Gets the creator_email of this PlatformFineTuningJob. # noqa: E501
|
467
|
-
|
468
|
-
Email of user who triggered the fine tuning job. # noqa: E501
|
469
|
-
|
470
|
-
:return: The creator_email of this PlatformFineTuningJob. # noqa: E501
|
471
|
-
:rtype: str
|
472
|
-
"""
|
473
|
-
return self._creator_email
|
474
|
-
|
475
|
-
@creator_email.setter
|
476
|
-
def creator_email(self, creator_email):
|
477
|
-
"""Sets the creator_email of this PlatformFineTuningJob.
|
478
|
-
|
479
|
-
Email of user who triggered the fine tuning job. # noqa: E501
|
480
|
-
|
481
|
-
:param creator_email: The creator_email of this PlatformFineTuningJob. # noqa: E501
|
482
|
-
:type: str
|
483
|
-
"""
|
484
|
-
if self.local_vars_configuration.client_side_validation and creator_email is None: # noqa: E501
|
485
|
-
raise ValueError("Invalid value for `creator_email`, must not be `None`") # noqa: E501
|
486
|
-
|
487
|
-
self._creator_email = creator_email
|
488
|
-
|
489
|
-
@property
|
490
|
-
def creator_deleted_at(self):
|
491
|
-
"""Gets the creator_deleted_at of this PlatformFineTuningJob. # noqa: E501
|
492
|
-
|
493
|
-
Timestamp of when the user who triggered the fine tuning job was deleted. # noqa: E501
|
494
|
-
|
495
|
-
:return: The creator_deleted_at of this PlatformFineTuningJob. # noqa: E501
|
496
|
-
:rtype: datetime
|
497
|
-
"""
|
498
|
-
return self._creator_deleted_at
|
499
|
-
|
500
|
-
@creator_deleted_at.setter
|
501
|
-
def creator_deleted_at(self, creator_deleted_at):
|
502
|
-
"""Sets the creator_deleted_at of this PlatformFineTuningJob.
|
503
|
-
|
504
|
-
Timestamp of when the user who triggered the fine tuning job was deleted. # noqa: E501
|
505
|
-
|
506
|
-
:param creator_deleted_at: The creator_deleted_at of this PlatformFineTuningJob. # noqa: E501
|
507
|
-
:type: datetime
|
508
|
-
"""
|
509
|
-
|
510
|
-
self._creator_deleted_at = creator_deleted_at
|
511
|
-
|
512
|
-
@property
|
513
|
-
def ha_job_id(self):
|
514
|
-
"""Gets the ha_job_id of this PlatformFineTuningJob. # noqa: E501
|
515
|
-
|
516
|
-
|
517
|
-
:return: The ha_job_id of this PlatformFineTuningJob. # noqa: E501
|
518
|
-
:rtype: str
|
519
|
-
"""
|
520
|
-
return self._ha_job_id
|
521
|
-
|
522
|
-
@ha_job_id.setter
|
523
|
-
def ha_job_id(self, ha_job_id):
|
524
|
-
"""Sets the ha_job_id of this PlatformFineTuningJob.
|
525
|
-
|
526
|
-
|
527
|
-
:param ha_job_id: The ha_job_id of this PlatformFineTuningJob. # noqa: E501
|
528
|
-
:type: str
|
529
|
-
"""
|
530
|
-
|
531
|
-
self._ha_job_id = ha_job_id
|
532
|
-
|
533
|
-
def to_dict(self):
|
534
|
-
"""Returns the model properties as a dict"""
|
535
|
-
result = {}
|
536
|
-
|
537
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
538
|
-
value = getattr(self, attr)
|
539
|
-
if isinstance(value, list):
|
540
|
-
result[attr] = list(map(
|
541
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
542
|
-
value
|
543
|
-
))
|
544
|
-
elif hasattr(value, "to_dict"):
|
545
|
-
result[attr] = value.to_dict()
|
546
|
-
elif isinstance(value, dict):
|
547
|
-
result[attr] = dict(map(
|
548
|
-
lambda item: (item[0], item[1].to_dict())
|
549
|
-
if hasattr(item[1], "to_dict") else item,
|
550
|
-
value.items()
|
551
|
-
))
|
552
|
-
else:
|
553
|
-
result[attr] = value
|
554
|
-
|
555
|
-
return result
|
556
|
-
|
557
|
-
def to_str(self):
|
558
|
-
"""Returns the string representation of the model"""
|
559
|
-
return pprint.pformat(self.to_dict())
|
560
|
-
|
561
|
-
def __repr__(self):
|
562
|
-
"""For `print` and `pprint`"""
|
563
|
-
return self.to_str()
|
564
|
-
|
565
|
-
def __eq__(self, other):
|
566
|
-
"""Returns true if both objects are equal"""
|
567
|
-
if not isinstance(other, PlatformFineTuningJob):
|
568
|
-
return False
|
569
|
-
|
570
|
-
return self.to_dict() == other.to_dict()
|
571
|
-
|
572
|
-
def __ne__(self, other):
|
573
|
-
"""Returns true if both objects are not equal"""
|
574
|
-
if not isinstance(other, PlatformFineTuningJob):
|
575
|
-
return True
|
576
|
-
|
577
|
-
return self.to_dict() != other.to_dict()
|