anyscale 0.26.14__py3-none-any.whl → 0.26.16__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/_private/anyscale_client/anyscale_client.py +4 -2
- anyscale/_private/anyscale_client/common.py +6 -4
- anyscale/_private/anyscale_client/fake_anyscale_client.py +16 -7
- anyscale/_private/docgen/__main__.py +4 -4
- anyscale/_private/docgen/generator.py +2 -2
- anyscale/_private/models/model_base.py +5 -2
- anyscale/_private/sdk/__init__.py +2 -2
- anyscale/_private/utils/progress_util.py +2 -2
- anyscale/_private/workload/workload_sdk.py +10 -7
- anyscale/aggregated_instance_usage/commands.py +6 -2
- anyscale/anyscale-cloud-setup.yaml +4 -0
- anyscale/client/README.md +8 -11
- anyscale/client/openapi_client/__init__.py +6 -8
- anyscale/client/openapi_client/api/default_api.py +292 -377
- anyscale/client/openapi_client/models/__init__.py +6 -8
- anyscale/client/openapi_client/models/alert_type.py +11 -2
- anyscale/client/openapi_client/models/create_job_queue_requests.py +3 -32
- anyscale/client/openapi_client/models/{product_autoscaler_flag.py → list_ray_sessions_response.py} +22 -23
- anyscale/client/openapi_client/models/{productautoscalerflag_response.py → listraysessionsresponse_response.py} +11 -11
- anyscale/client/openapi_client/models/metric.py +133 -3
- anyscale/client/openapi_client/models/ray_session.py +121 -0
- anyscale/client/openapi_client/models/task_exception_group_aggregate.py +28 -1
- anyscale/client/openapi_client/models/{taskexceptiongroupaggregate_list_response.py → task_exception_group_aggregate_response.py} +52 -25
- anyscale/client/openapi_client/models/task_function_name_group_aggregate.py +28 -1
- anyscale/client/openapi_client/models/{taskfunctionnamegroupaggregate_list_response.py → task_function_name_group_aggregate_response.py} +52 -25
- anyscale/client/openapi_client/models/task_job_group_aggregate.py +28 -1
- anyscale/client/openapi_client/models/{taskjobgroupaggregate_list_response.py → task_job_group_aggregate_response.py} +52 -25
- anyscale/client/openapi_client/models/task_table_row.py +19 -19
- anyscale/cloud/__init__.py +2 -2
- anyscale/cloud/_private/cloud_sdk.py +2 -2
- anyscale/cloud/commands.py +9 -6
- anyscale/cloud_resource.py +1 -1
- anyscale/cloud_utils.py +11 -6
- anyscale/cluster_compute.py +6 -5
- anyscale/cluster_env.py +10 -5
- anyscale/commands/login_commands.py +24 -3
- anyscale/commands/schedule_commands.py +2 -1
- anyscale/compute_config/_private/compute_config_sdk.py +1 -1
- anyscale/compute_config/commands.py +15 -7
- anyscale/connect_utils/prepare_cluster.py +14 -4
- anyscale/controllers/cloud_controller.py +9 -9
- anyscale/controllers/cloud_functional_verification_controller.py +4 -2
- anyscale/controllers/cluster_controller.py +1 -0
- anyscale/controllers/job_controller.py +1 -1
- anyscale/controllers/service_controller.py +2 -1
- anyscale/image/commands.py +6 -6
- anyscale/job/commands.py +12 -12
- anyscale/organization_invitation/commands.py +11 -7
- anyscale/project/__init__.py +2 -2
- anyscale/project/_private/project_sdk.py +2 -2
- anyscale/project/commands.py +3 -3
- anyscale/project_utils.py +5 -4
- anyscale/resource_quota/commands.py +18 -10
- anyscale/schedule/commands.py +12 -8
- anyscale/sdk/anyscale_client/sdk.py +5 -4
- anyscale/service/commands.py +17 -17
- anyscale/service_account/commands.py +12 -10
- anyscale/user/commands.py +5 -3
- anyscale/utils/connect_helpers.py +16 -3
- anyscale/utils/gcp_utils.py +25 -9
- anyscale/utils/runtime_env.py +3 -1
- anyscale/version.py +1 -1
- anyscale/workspace/__init__.py +10 -5
- anyscale/workspace/_private/workspace_sdk.py +9 -7
- anyscale/workspace/commands.py +25 -23
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/METADATA +1 -1
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/RECORD +72 -74
- anyscale/client/openapi_client/models/aviary_model_config_v2.py +0 -358
- anyscale/client/openapi_client/models/buffer_registration.py +0 -285
- anyscale/client/openapi_client/models/finish_ft_job_request_v2.py +0 -183
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/LICENSE +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/NOTICE +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/WHEEL +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.14.dist-info → anyscale-0.26.16.dist-info}/top_level.txt +0 -0
@@ -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()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|