anyscale 0.26.15__py3-none-any.whl → 0.26.17__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.
Files changed (66) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +4 -2
  2. anyscale/_private/anyscale_client/common.py +6 -4
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +15 -6
  4. anyscale/_private/docgen/__main__.py +4 -4
  5. anyscale/_private/docgen/generator.py +2 -2
  6. anyscale/_private/sdk/__init__.py +2 -2
  7. anyscale/_private/workload/workload_sdk.py +6 -4
  8. anyscale/aggregated_instance_usage/commands.py +6 -2
  9. anyscale/anyscale-cloud-setup-gcp.yaml +2 -0
  10. anyscale/client/README.md +11 -6
  11. anyscale/client/openapi_client/__init__.py +8 -4
  12. anyscale/client/openapi_client/api/default_api.py +402 -270
  13. anyscale/client/openapi_client/models/__init__.py +8 -4
  14. anyscale/client/openapi_client/models/alert_type.py +11 -2
  15. anyscale/client/openapi_client/models/create_job_queue_requests.py +3 -32
  16. anyscale/client/openapi_client/models/i_know_response.py +174 -0
  17. anyscale/client/openapi_client/models/i_know_time_series_event.py +148 -0
  18. anyscale/client/openapi_client/models/job_report.py +199 -0
  19. anyscale/client/openapi_client/models/job_with_report.py +254 -0
  20. anyscale/client/openapi_client/models/jobwithreport_list_response.py +147 -0
  21. anyscale/client/openapi_client/models/{product_autoscaler_flag.py → list_ray_sessions_response.py} +22 -23
  22. anyscale/client/openapi_client/models/{productautoscalerflag_response.py → listraysessionsresponse_response.py} +11 -11
  23. anyscale/client/openapi_client/models/metric.py +133 -3
  24. anyscale/client/openapi_client/models/ray_session.py +121 -0
  25. anyscale/cloud/__init__.py +2 -2
  26. anyscale/cloud/_private/cloud_sdk.py +2 -2
  27. anyscale/cloud/commands.py +9 -6
  28. anyscale/cloud_utils.py +5 -4
  29. anyscale/cluster_compute.py +2 -2
  30. anyscale/cluster_env.py +2 -0
  31. anyscale/commands/cloud_commands.py +43 -0
  32. anyscale/commands/login_commands.py +24 -3
  33. anyscale/commands/schedule_commands.py +2 -1
  34. anyscale/compute_config/commands.py +15 -7
  35. anyscale/controllers/cloud_controller.py +151 -8
  36. anyscale/controllers/cluster_controller.py +1 -0
  37. anyscale/controllers/job_controller.py +1 -1
  38. anyscale/controllers/service_controller.py +1 -0
  39. anyscale/image/commands.py +6 -6
  40. anyscale/job/_private/job_sdk.py +22 -24
  41. anyscale/job/commands.py +12 -12
  42. anyscale/organization_invitation/commands.py +11 -7
  43. anyscale/project/__init__.py +2 -2
  44. anyscale/project/_private/project_sdk.py +2 -2
  45. anyscale/project/commands.py +3 -3
  46. anyscale/project_utils.py +1 -1
  47. anyscale/resource_quota/commands.py +18 -10
  48. anyscale/schedule/commands.py +12 -8
  49. anyscale/sdk/anyscale_client/sdk.py +1 -0
  50. anyscale/service/commands.py +17 -17
  51. anyscale/service_account/commands.py +12 -10
  52. anyscale/user/commands.py +5 -3
  53. anyscale/utils/gcp_utils.py +25 -9
  54. anyscale/version.py +1 -1
  55. anyscale/workspace/__init__.py +1 -1
  56. anyscale/workspace/_private/workspace_sdk.py +5 -3
  57. anyscale/workspace/commands.py +26 -24
  58. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/METADATA +1 -1
  59. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/RECORD +64 -60
  60. anyscale/client/openapi_client/models/aviary_model_config_v2.py +0 -358
  61. anyscale/client/openapi_client/models/finish_ft_job_request_v2.py +0 -183
  62. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/LICENSE +0 -0
  63. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/NOTICE +0 -0
  64. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/WHEEL +0 -0
  65. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/entry_points.txt +0 -0
  66. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/top_level.txt +0 -0
@@ -1,358 +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 AviaryModelConfigV2(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
- 'base_model_id': 'str',
37
- 'model_id': 'str',
38
- 'generation': 'object',
39
- 'cloud_id': 'str',
40
- 'project_id': 'str',
41
- 'ha_job_id': 'str',
42
- 'workspace_id': 'str',
43
- 'model_metadata': 'object',
44
- 'lora_mirror_config': 'object',
45
- 'full_param_mirror_config': 'object'
46
- }
47
-
48
- attribute_map = {
49
- 'base_model_id': 'base_model_id',
50
- 'model_id': 'model_id',
51
- 'generation': 'generation',
52
- 'cloud_id': 'cloud_id',
53
- 'project_id': 'project_id',
54
- 'ha_job_id': 'ha_job_id',
55
- 'workspace_id': 'workspace_id',
56
- 'model_metadata': 'model_metadata',
57
- 'lora_mirror_config': 'lora_mirror_config',
58
- 'full_param_mirror_config': 'full_param_mirror_config'
59
- }
60
-
61
- def __init__(self, base_model_id=None, model_id=None, generation=None, cloud_id=None, project_id=None, ha_job_id=None, workspace_id=None, model_metadata=None, lora_mirror_config=None, full_param_mirror_config=None, local_vars_configuration=None): # noqa: E501
62
- """AviaryModelConfigV2 - a model defined in OpenAPI""" # noqa: E501
63
- if local_vars_configuration is None:
64
- local_vars_configuration = Configuration()
65
- self.local_vars_configuration = local_vars_configuration
66
-
67
- self._base_model_id = None
68
- self._model_id = None
69
- self._generation = None
70
- self._cloud_id = None
71
- self._project_id = None
72
- self._ha_job_id = None
73
- self._workspace_id = None
74
- self._model_metadata = None
75
- self._lora_mirror_config = None
76
- self._full_param_mirror_config = None
77
- self.discriminator = None
78
-
79
- self.base_model_id = base_model_id
80
- self.model_id = model_id
81
- self.generation = generation
82
- self.cloud_id = cloud_id
83
- if project_id is not None:
84
- self.project_id = project_id
85
- if ha_job_id is not None:
86
- self.ha_job_id = ha_job_id
87
- if workspace_id is not None:
88
- self.workspace_id = workspace_id
89
- if model_metadata is not None:
90
- self.model_metadata = model_metadata
91
- if lora_mirror_config is not None:
92
- self.lora_mirror_config = lora_mirror_config
93
- if full_param_mirror_config is not None:
94
- self.full_param_mirror_config = full_param_mirror_config
95
-
96
- @property
97
- def base_model_id(self):
98
- """Gets the base_model_id of this AviaryModelConfigV2. # noqa: E501
99
-
100
-
101
- :return: The base_model_id of this AviaryModelConfigV2. # noqa: E501
102
- :rtype: str
103
- """
104
- return self._base_model_id
105
-
106
- @base_model_id.setter
107
- def base_model_id(self, base_model_id):
108
- """Sets the base_model_id of this AviaryModelConfigV2.
109
-
110
-
111
- :param base_model_id: The base_model_id of this AviaryModelConfigV2. # noqa: E501
112
- :type: str
113
- """
114
- if self.local_vars_configuration.client_side_validation and base_model_id is None: # noqa: E501
115
- raise ValueError("Invalid value for `base_model_id`, must not be `None`") # noqa: E501
116
-
117
- self._base_model_id = base_model_id
118
-
119
- @property
120
- def model_id(self):
121
- """Gets the model_id of this AviaryModelConfigV2. # noqa: E501
122
-
123
-
124
- :return: The model_id of this AviaryModelConfigV2. # noqa: E501
125
- :rtype: str
126
- """
127
- return self._model_id
128
-
129
- @model_id.setter
130
- def model_id(self, model_id):
131
- """Sets the model_id of this AviaryModelConfigV2.
132
-
133
-
134
- :param model_id: The model_id of this AviaryModelConfigV2. # noqa: E501
135
- :type: str
136
- """
137
- if self.local_vars_configuration.client_side_validation and model_id is None: # noqa: E501
138
- raise ValueError("Invalid value for `model_id`, must not be `None`") # noqa: E501
139
-
140
- self._model_id = model_id
141
-
142
- @property
143
- def generation(self):
144
- """Gets the generation of this AviaryModelConfigV2. # noqa: E501
145
-
146
-
147
- :return: The generation of this AviaryModelConfigV2. # noqa: E501
148
- :rtype: object
149
- """
150
- return self._generation
151
-
152
- @generation.setter
153
- def generation(self, generation):
154
- """Sets the generation of this AviaryModelConfigV2.
155
-
156
-
157
- :param generation: The generation of this AviaryModelConfigV2. # noqa: E501
158
- :type: object
159
- """
160
- if self.local_vars_configuration.client_side_validation and generation is None: # noqa: E501
161
- raise ValueError("Invalid value for `generation`, must not be `None`") # noqa: E501
162
-
163
- self._generation = generation
164
-
165
- @property
166
- def cloud_id(self):
167
- """Gets the cloud_id of this AviaryModelConfigV2. # noqa: E501
168
-
169
-
170
- :return: The cloud_id of this AviaryModelConfigV2. # noqa: E501
171
- :rtype: str
172
- """
173
- return self._cloud_id
174
-
175
- @cloud_id.setter
176
- def cloud_id(self, cloud_id):
177
- """Sets the cloud_id of this AviaryModelConfigV2.
178
-
179
-
180
- :param cloud_id: The cloud_id of this AviaryModelConfigV2. # noqa: E501
181
- :type: str
182
- """
183
- if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
184
- raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
185
-
186
- self._cloud_id = cloud_id
187
-
188
- @property
189
- def project_id(self):
190
- """Gets the project_id of this AviaryModelConfigV2. # noqa: E501
191
-
192
-
193
- :return: The project_id of this AviaryModelConfigV2. # noqa: E501
194
- :rtype: str
195
- """
196
- return self._project_id
197
-
198
- @project_id.setter
199
- def project_id(self, project_id):
200
- """Sets the project_id of this AviaryModelConfigV2.
201
-
202
-
203
- :param project_id: The project_id of this AviaryModelConfigV2. # noqa: E501
204
- :type: str
205
- """
206
-
207
- self._project_id = project_id
208
-
209
- @property
210
- def ha_job_id(self):
211
- """Gets the ha_job_id of this AviaryModelConfigV2. # noqa: E501
212
-
213
-
214
- :return: The ha_job_id of this AviaryModelConfigV2. # noqa: E501
215
- :rtype: str
216
- """
217
- return self._ha_job_id
218
-
219
- @ha_job_id.setter
220
- def ha_job_id(self, ha_job_id):
221
- """Sets the ha_job_id of this AviaryModelConfigV2.
222
-
223
-
224
- :param ha_job_id: The ha_job_id of this AviaryModelConfigV2. # noqa: E501
225
- :type: str
226
- """
227
-
228
- self._ha_job_id = ha_job_id
229
-
230
- @property
231
- def workspace_id(self):
232
- """Gets the workspace_id of this AviaryModelConfigV2. # noqa: E501
233
-
234
-
235
- :return: The workspace_id of this AviaryModelConfigV2. # noqa: E501
236
- :rtype: str
237
- """
238
- return self._workspace_id
239
-
240
- @workspace_id.setter
241
- def workspace_id(self, workspace_id):
242
- """Sets the workspace_id of this AviaryModelConfigV2.
243
-
244
-
245
- :param workspace_id: The workspace_id of this AviaryModelConfigV2. # noqa: E501
246
- :type: str
247
- """
248
-
249
- self._workspace_id = workspace_id
250
-
251
- @property
252
- def model_metadata(self):
253
- """Gets the model_metadata of this AviaryModelConfigV2. # noqa: E501
254
-
255
-
256
- :return: The model_metadata of this AviaryModelConfigV2. # noqa: E501
257
- :rtype: object
258
- """
259
- return self._model_metadata
260
-
261
- @model_metadata.setter
262
- def model_metadata(self, model_metadata):
263
- """Sets the model_metadata of this AviaryModelConfigV2.
264
-
265
-
266
- :param model_metadata: The model_metadata of this AviaryModelConfigV2. # noqa: E501
267
- :type: object
268
- """
269
-
270
- self._model_metadata = model_metadata
271
-
272
- @property
273
- def lora_mirror_config(self):
274
- """Gets the lora_mirror_config of this AviaryModelConfigV2. # noqa: E501
275
-
276
-
277
- :return: The lora_mirror_config of this AviaryModelConfigV2. # noqa: E501
278
- :rtype: object
279
- """
280
- return self._lora_mirror_config
281
-
282
- @lora_mirror_config.setter
283
- def lora_mirror_config(self, lora_mirror_config):
284
- """Sets the lora_mirror_config of this AviaryModelConfigV2.
285
-
286
-
287
- :param lora_mirror_config: The lora_mirror_config of this AviaryModelConfigV2. # noqa: E501
288
- :type: object
289
- """
290
-
291
- self._lora_mirror_config = lora_mirror_config
292
-
293
- @property
294
- def full_param_mirror_config(self):
295
- """Gets the full_param_mirror_config of this AviaryModelConfigV2. # noqa: E501
296
-
297
-
298
- :return: The full_param_mirror_config of this AviaryModelConfigV2. # noqa: E501
299
- :rtype: object
300
- """
301
- return self._full_param_mirror_config
302
-
303
- @full_param_mirror_config.setter
304
- def full_param_mirror_config(self, full_param_mirror_config):
305
- """Sets the full_param_mirror_config of this AviaryModelConfigV2.
306
-
307
-
308
- :param full_param_mirror_config: The full_param_mirror_config of this AviaryModelConfigV2. # noqa: E501
309
- :type: object
310
- """
311
-
312
- self._full_param_mirror_config = full_param_mirror_config
313
-
314
- def to_dict(self):
315
- """Returns the model properties as a dict"""
316
- result = {}
317
-
318
- for attr, _ in six.iteritems(self.openapi_types):
319
- value = getattr(self, attr)
320
- if isinstance(value, list):
321
- result[attr] = list(map(
322
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
323
- value
324
- ))
325
- elif hasattr(value, "to_dict"):
326
- result[attr] = value.to_dict()
327
- elif isinstance(value, dict):
328
- result[attr] = dict(map(
329
- lambda item: (item[0], item[1].to_dict())
330
- if hasattr(item[1], "to_dict") else item,
331
- value.items()
332
- ))
333
- else:
334
- result[attr] = value
335
-
336
- return result
337
-
338
- def to_str(self):
339
- """Returns the string representation of the model"""
340
- return pprint.pformat(self.to_dict())
341
-
342
- def __repr__(self):
343
- """For `print` and `pprint`"""
344
- return self.to_str()
345
-
346
- def __eq__(self, other):
347
- """Returns true if both objects are equal"""
348
- if not isinstance(other, AviaryModelConfigV2):
349
- return False
350
-
351
- return self.to_dict() == other.to_dict()
352
-
353
- def __ne__(self, other):
354
- """Returns true if both objects are not equal"""
355
- if not isinstance(other, AviaryModelConfigV2):
356
- return True
357
-
358
- return self.to_dict() != other.to_dict()
@@ -1,183 +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 FinishFTJobRequestV2(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
- 'ft_type': 'str',
37
- 'model_config_version': 'str',
38
- 'model_config': 'AviaryModelConfigV2'
39
- }
40
-
41
- attribute_map = {
42
- 'ft_type': 'ft_type',
43
- 'model_config_version': 'model_config_version',
44
- 'model_config': 'model_config'
45
- }
46
-
47
- def __init__(self, ft_type=None, model_config_version=None, model_config=None, local_vars_configuration=None): # noqa: E501
48
- """FinishFTJobRequestV2 - a model defined in OpenAPI""" # noqa: E501
49
- if local_vars_configuration is None:
50
- local_vars_configuration = Configuration()
51
- self.local_vars_configuration = local_vars_configuration
52
-
53
- self._ft_type = None
54
- self._model_config_version = None
55
- self._model_config = None
56
- self.discriminator = None
57
-
58
- self.ft_type = ft_type
59
- self.model_config_version = model_config_version
60
- self.model_config = model_config
61
-
62
- @property
63
- def ft_type(self):
64
- """Gets the ft_type of this FinishFTJobRequestV2. # noqa: E501
65
-
66
-
67
- :return: The ft_type of this FinishFTJobRequestV2. # noqa: E501
68
- :rtype: str
69
- """
70
- return self._ft_type
71
-
72
- @ft_type.setter
73
- def ft_type(self, ft_type):
74
- """Sets the ft_type of this FinishFTJobRequestV2.
75
-
76
-
77
- :param ft_type: The ft_type of this FinishFTJobRequestV2. # noqa: E501
78
- :type: str
79
- """
80
- if self.local_vars_configuration.client_side_validation and ft_type is None: # noqa: E501
81
- raise ValueError("Invalid value for `ft_type`, must not be `None`") # noqa: E501
82
- allowed_values = ["lora", "full"] # noqa: E501
83
- if self.local_vars_configuration.client_side_validation and ft_type not in allowed_values: # noqa: E501
84
- raise ValueError(
85
- "Invalid value for `ft_type` ({0}), must be one of {1}" # noqa: E501
86
- .format(ft_type, allowed_values)
87
- )
88
-
89
- self._ft_type = ft_type
90
-
91
- @property
92
- def model_config_version(self):
93
- """Gets the model_config_version of this FinishFTJobRequestV2. # noqa: E501
94
-
95
- The version of LLMForge # noqa: E501
96
-
97
- :return: The model_config_version of this FinishFTJobRequestV2. # noqa: E501
98
- :rtype: str
99
- """
100
- return self._model_config_version
101
-
102
- @model_config_version.setter
103
- def model_config_version(self, model_config_version):
104
- """Sets the model_config_version of this FinishFTJobRequestV2.
105
-
106
- The version of LLMForge # noqa: E501
107
-
108
- :param model_config_version: The model_config_version of this FinishFTJobRequestV2. # noqa: E501
109
- :type: str
110
- """
111
- if self.local_vars_configuration.client_side_validation and model_config_version is None: # noqa: E501
112
- raise ValueError("Invalid value for `model_config_version`, must not be `None`") # noqa: E501
113
-
114
- self._model_config_version = model_config_version
115
-
116
- @property
117
- def model_config(self):
118
- """Gets the model_config of this FinishFTJobRequestV2. # noqa: E501
119
-
120
-
121
- :return: The model_config of this FinishFTJobRequestV2. # noqa: E501
122
- :rtype: AviaryModelConfigV2
123
- """
124
- return self._model_config
125
-
126
- @model_config.setter
127
- def model_config(self, model_config):
128
- """Sets the model_config of this FinishFTJobRequestV2.
129
-
130
-
131
- :param model_config: The model_config of this FinishFTJobRequestV2. # noqa: E501
132
- :type: AviaryModelConfigV2
133
- """
134
- if self.local_vars_configuration.client_side_validation and model_config is None: # noqa: E501
135
- raise ValueError("Invalid value for `model_config`, must not be `None`") # noqa: E501
136
-
137
- self._model_config = model_config
138
-
139
- def to_dict(self):
140
- """Returns the model properties as a dict"""
141
- result = {}
142
-
143
- for attr, _ in six.iteritems(self.openapi_types):
144
- value = getattr(self, attr)
145
- if isinstance(value, list):
146
- result[attr] = list(map(
147
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
148
- value
149
- ))
150
- elif hasattr(value, "to_dict"):
151
- result[attr] = value.to_dict()
152
- elif isinstance(value, dict):
153
- result[attr] = dict(map(
154
- lambda item: (item[0], item[1].to_dict())
155
- if hasattr(item[1], "to_dict") else item,
156
- value.items()
157
- ))
158
- else:
159
- result[attr] = value
160
-
161
- return result
162
-
163
- def to_str(self):
164
- """Returns the string representation of the model"""
165
- return pprint.pformat(self.to_dict())
166
-
167
- def __repr__(self):
168
- """For `print` and `pprint`"""
169
- return self.to_str()
170
-
171
- def __eq__(self, other):
172
- """Returns true if both objects are equal"""
173
- if not isinstance(other, FinishFTJobRequestV2):
174
- return False
175
-
176
- return self.to_dict() == other.to_dict()
177
-
178
- def __ne__(self, other):
179
- """Returns true if both objects are not equal"""
180
- if not isinstance(other, FinishFTJobRequestV2):
181
- return True
182
-
183
- return self.to_dict() != other.to_dict()