skypilot-nightly 1.0.0.dev20250217__py3-none-any.whl → 1.0.0.dev20250218__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.
- sky/__init__.py +2 -2
- sky/clouds/do.py +5 -2
- sky/clouds/service_catalog/data_fetchers/fetch_lambda_cloud.py +1 -0
- sky/optimizer.py +13 -11
- sky/resources.py +8 -7
- sky/server/common.py +3 -2
- {skypilot_nightly-1.0.0.dev20250217.dist-info → skypilot_nightly-1.0.0.dev20250218.dist-info}/METADATA +1 -1
- {skypilot_nightly-1.0.0.dev20250217.dist-info → skypilot_nightly-1.0.0.dev20250218.dist-info}/RECORD +12 -12
- {skypilot_nightly-1.0.0.dev20250217.dist-info → skypilot_nightly-1.0.0.dev20250218.dist-info}/LICENSE +0 -0
- {skypilot_nightly-1.0.0.dev20250217.dist-info → skypilot_nightly-1.0.0.dev20250218.dist-info}/WHEEL +0 -0
- {skypilot_nightly-1.0.0.dev20250217.dist-info → skypilot_nightly-1.0.0.dev20250218.dist-info}/entry_points.txt +0 -0
- {skypilot_nightly-1.0.0.dev20250217.dist-info → skypilot_nightly-1.0.0.dev20250218.dist-info}/top_level.txt +0 -0
sky/__init__.py
CHANGED
@@ -5,7 +5,7 @@ from typing import Optional
|
|
5
5
|
import urllib.request
|
6
6
|
|
7
7
|
# Replaced with the current commit when building the wheels.
|
8
|
-
_SKYPILOT_COMMIT_SHA = '
|
8
|
+
_SKYPILOT_COMMIT_SHA = '912b8293b3ebeba84941c108dbede1e6dcbc9b6f'
|
9
9
|
|
10
10
|
|
11
11
|
def _get_git_commit():
|
@@ -35,7 +35,7 @@ def _get_git_commit():
|
|
35
35
|
|
36
36
|
|
37
37
|
__commit__ = _get_git_commit()
|
38
|
-
__version__ = '1.0.0.
|
38
|
+
__version__ = '1.0.0.dev20250218'
|
39
39
|
__root_dir__ = os.path.dirname(os.path.abspath(__file__))
|
40
40
|
|
41
41
|
|
sky/clouds/do.py
CHANGED
@@ -233,8 +233,11 @@ class DO(clouds.Cloud):
|
|
233
233
|
cpus=resources.cpus,
|
234
234
|
memory=resources.memory,
|
235
235
|
disk_tier=resources.disk_tier)
|
236
|
-
|
237
|
-
|
236
|
+
if default_instance_type is None:
|
237
|
+
return resources_utils.FeasibleResources([], [], None)
|
238
|
+
else:
|
239
|
+
return resources_utils.FeasibleResources(
|
240
|
+
_make([default_instance_type]), [], None)
|
238
241
|
|
239
242
|
assert len(accelerators) == 1, resources
|
240
243
|
acc, acc_count = list(accelerators.items())[0]
|
sky/optimizer.py
CHANGED
@@ -285,8 +285,6 @@ class Optimizer:
|
|
285
285
|
|
286
286
|
# Don't print for the last node, Sink.
|
287
287
|
do_print = node_i != len(topo_order) - 1
|
288
|
-
if do_print:
|
289
|
-
logger.debug('#### {} ####'.format(node))
|
290
288
|
|
291
289
|
fuzzy_candidates: List[str] = []
|
292
290
|
if node_i < len(topo_order) - 1:
|
@@ -297,6 +295,10 @@ class Optimizer:
|
|
297
295
|
blocked_resources=blocked_resources,
|
298
296
|
quiet=quiet))
|
299
297
|
node_to_candidate_map[node] = cloud_candidates
|
298
|
+
# Has to call the printing after the launchable resources are
|
299
|
+
# computed, because the missing fields of the resources are
|
300
|
+
# inferred in the _fill_in_launchable_resources function.
|
301
|
+
logger.debug('#### {} ####'.format(node))
|
300
302
|
else:
|
301
303
|
# Dummy sink node.
|
302
304
|
launchable_resources = {
|
@@ -1324,17 +1326,17 @@ def _fill_in_launchable_resources(
|
|
1324
1326
|
f'{colorama.Fore.CYAN}'
|
1325
1327
|
f'{sorted(all_fuzzy_candidates)}'
|
1326
1328
|
f'{colorama.Style.RESET_ALL}')
|
1329
|
+
else:
|
1330
|
+
if resources.cpus is not None:
|
1331
|
+
logger.info('Try specifying a different CPU count, '
|
1332
|
+
'or add "+" to the end of the CPU count '
|
1333
|
+
'to allow for larger instances.')
|
1334
|
+
if resources.memory is not None:
|
1335
|
+
logger.info('Try specifying a different memory size, '
|
1336
|
+
'or add "+" to the end of the memory size '
|
1337
|
+
'to allow for larger instances.')
|
1327
1338
|
for cloud, hint in hints.items():
|
1328
1339
|
logger.info(f'{repr(cloud)}: {hint}')
|
1329
|
-
else:
|
1330
|
-
if resources.cpus is not None:
|
1331
|
-
logger.info('Try specifying a different CPU count, '
|
1332
|
-
'or add "+" to the end of the CPU count '
|
1333
|
-
'to allow for larger instances.')
|
1334
|
-
if resources.memory is not None:
|
1335
|
-
logger.info('Try specifying a different memory size, '
|
1336
|
-
'or add "+" to the end of the memory size '
|
1337
|
-
'to allow for larger instances.')
|
1338
1340
|
|
1339
1341
|
launchable[resources] = _filter_out_blocked_launchable_resources(
|
1340
1342
|
launchable[resources], blocked_resources)
|
sky/resources.py
CHANGED
@@ -251,6 +251,7 @@ class Resources:
|
|
251
251
|
self._set_accelerators(accelerators, accelerator_args)
|
252
252
|
|
253
253
|
def validate(self):
|
254
|
+
"""Validate the resources and infer the missing fields if possible."""
|
254
255
|
self._try_canonicalize_accelerators()
|
255
256
|
self._try_validate_and_set_region_zone()
|
256
257
|
self._try_validate_instance_type()
|
@@ -1267,17 +1268,17 @@ class Resources:
|
|
1267
1268
|
def is_empty(self) -> bool:
|
1268
1269
|
"""Is this Resources an empty request (all fields None)?"""
|
1269
1270
|
return all([
|
1270
|
-
self.
|
1271
|
+
self._cloud is None,
|
1271
1272
|
self._instance_type is None,
|
1272
1273
|
self._cpus is None,
|
1273
|
-
self.
|
1274
|
-
self.
|
1275
|
-
self.
|
1274
|
+
self._memory is None,
|
1275
|
+
self._accelerators is None,
|
1276
|
+
self._accelerator_args is None,
|
1276
1277
|
not self._use_spot_specified,
|
1277
|
-
self.
|
1278
|
-
self.
|
1278
|
+
self._disk_size == _DEFAULT_DISK_SIZE_GB,
|
1279
|
+
self._disk_tier is None,
|
1279
1280
|
self._image_id is None,
|
1280
|
-
self.
|
1281
|
+
self._ports is None,
|
1281
1282
|
self._docker_login_config is None,
|
1282
1283
|
])
|
1283
1284
|
|
sky/server/common.py
CHANGED
@@ -8,6 +8,7 @@ import json
|
|
8
8
|
import os
|
9
9
|
import pathlib
|
10
10
|
import subprocess
|
11
|
+
import sys
|
11
12
|
import time
|
12
13
|
import typing
|
13
14
|
from typing import Any, Dict, Optional
|
@@ -42,7 +43,7 @@ AVAILABLE_LOCAL_API_SERVER_URLS = [
|
|
42
43
|
f'http://{host}:46580' for host in AVAILBLE_LOCAL_API_SERVER_HOSTS
|
43
44
|
]
|
44
45
|
|
45
|
-
API_SERVER_CMD = '
|
46
|
+
API_SERVER_CMD = '-m sky.server.server'
|
46
47
|
# The client dir on the API server for storing user-specific data, such as file
|
47
48
|
# mounts, logs, etc. This dir is empheral and will be cleaned up when the API
|
48
49
|
# server is restarted.
|
@@ -172,7 +173,7 @@ def start_uvicorn_in_background(deploy: bool = False, host: str = '127.0.0.1'):
|
|
172
173
|
api_server_cmd += ' --deploy'
|
173
174
|
if host is not None:
|
174
175
|
api_server_cmd += f' --host {host}'
|
175
|
-
cmd = f'{api_server_cmd} > {log_path} 2>&1'
|
176
|
+
cmd = f'{sys.executable} {api_server_cmd} > {log_path} 2>&1'
|
176
177
|
|
177
178
|
# Start the uvicorn process in the background and don't wait for it.
|
178
179
|
# If this is called from a CLI invocation, we need start_new_session=True so
|
{skypilot_nightly-1.0.0.dev20250217.dist-info → skypilot_nightly-1.0.0.dev20250218.dist-info}/RECORD
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
sky/__init__.py,sha256=
|
1
|
+
sky/__init__.py,sha256=Pna6srpHox46eHU0RFPPTH60skVAjqhun9lDfN7QwHM,6391
|
2
2
|
sky/admin_policy.py,sha256=hPo02f_A32gCqhUueF0QYy1fMSSKqRwYEg_9FxScN_s,3248
|
3
3
|
sky/authentication.py,sha256=hCEqi77nprQEg3ktfRL51xiiw16zwZOmFEDB_Z7fWVU,22384
|
4
4
|
sky/check.py,sha256=NDKx_Zm7YRxPjMv82wz3ESLnGIPljaACyqVdVNM0PzY,11258
|
@@ -10,8 +10,8 @@ sky/exceptions.py,sha256=cGepNlBkjjgvi3fazc3DbdYLKhhF_sHCuGX0-hu_QMQ,13685
|
|
10
10
|
sky/execution.py,sha256=0M4RTEzWn-B9oz221XdZOIGH12XOACmNq0j-WGUT_No,28023
|
11
11
|
sky/global_user_state.py,sha256=PlAhEkBQ9MNAaZs96R8BouhWk9iVghm6CNKSxjsyAAY,33242
|
12
12
|
sky/models.py,sha256=4xSW05BdDPEjW8Ubvj3VlVOVnzv0TbrolsFvR5R5v1U,638
|
13
|
-
sky/optimizer.py,sha256=
|
14
|
-
sky/resources.py,sha256=
|
13
|
+
sky/optimizer.py,sha256=C82l9N3umdrJ2AaM-pSg0aK5rpOAX3lEAfFU7r6hqPo,60183
|
14
|
+
sky/resources.py,sha256=f2Qo_Wt0kFruKmYm6cgYbICH_wn0Zkb8uIv6LA82SRs,72153
|
15
15
|
sky/sky_logging.py,sha256=pID2RINjH62n7SZpv70DuN8BSFYdCfTJ2ScGQpVmugg,5725
|
16
16
|
sky/skypilot_config.py,sha256=bt1vSis2aKKdQfPz80-KcjM9vNIg_qYKLNXur782Poo,8693
|
17
17
|
sky/task.py,sha256=Wvn1rQ4HvaKIOcpt2oySsNBU8ESPOtSQ0OwTxc2VthQ,54638
|
@@ -50,7 +50,7 @@ sky/clouds/aws.py,sha256=J8tczaTDL239UowN9tUlhI92SeHw01wtFucSckvG63w,54112
|
|
50
50
|
sky/clouds/azure.py,sha256=bawEw6wOLAVyrjxMD-4UjLCuMj1H5_jH8qggpfZYS54,31703
|
51
51
|
sky/clouds/cloud.py,sha256=Ej6WH6VElYdG3PG1-Sp6lFVsJ42uskV4dAg7kmoY4JA,35376
|
52
52
|
sky/clouds/cudo.py,sha256=femv17IUM1TOXuCAg6zljqyFcBGfofbXCNGckpXFHzc,13127
|
53
|
-
sky/clouds/do.py,sha256=
|
53
|
+
sky/clouds/do.py,sha256=hmksx0XML0dVHUZBMV2Wr3a5VilOsYfxX2dSBV_XK5o,11487
|
54
54
|
sky/clouds/fluidstack.py,sha256=Eb0nlfU_EwTtGtV0nPKS2ueBlB0nYiDAN9swA-jjQV0,12446
|
55
55
|
sky/clouds/gcp.py,sha256=0QpsI0Dso1xs3LhGlUq-Sq6WK-u11wN-57-vfcyhI5I,55154
|
56
56
|
sky/clouds/ibm.py,sha256=R4JR96YfXstZ2B_IgFNVEX2SBAq3q0lSWz4y7FoFoeE,21474
|
@@ -88,7 +88,7 @@ sky/clouds/service_catalog/data_fetchers/fetch_azure.py,sha256=7YVnoGDGGZI2TK02b
|
|
88
88
|
sky/clouds/service_catalog/data_fetchers/fetch_cudo.py,sha256=52P48lvWN0s1ArjeLPeLemPRpxjSRcHincRle0nqdm4,3440
|
89
89
|
sky/clouds/service_catalog/data_fetchers/fetch_fluidstack.py,sha256=yKuAFbjBRNz_e2RNNDT_aHHAuKQ86Ac7GKgIie5O6Pg,7273
|
90
90
|
sky/clouds/service_catalog/data_fetchers/fetch_gcp.py,sha256=4bU0j-mWZCymzUq7uyJfoIDaXXeJg49gUlM9oybBFI0,30903
|
91
|
-
sky/clouds/service_catalog/data_fetchers/fetch_lambda_cloud.py,sha256=
|
91
|
+
sky/clouds/service_catalog/data_fetchers/fetch_lambda_cloud.py,sha256=MUzogyLruLQmIt-To6TsfnGPgv_nnlp49XYbeshsd7I,5003
|
92
92
|
sky/clouds/service_catalog/data_fetchers/fetch_vast.py,sha256=zR9icM3ty5C8tGw13pQbsBtQQMgG4kl1j_jSGqqrgOA,4741
|
93
93
|
sky/clouds/service_catalog/data_fetchers/fetch_vsphere.py,sha256=Opp2r3KSzXPtwk3lKNbO8IX9QzjoRSwy1kW3jPjtS1c,21453
|
94
94
|
sky/clouds/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -221,7 +221,7 @@ sky/serve/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
221
221
|
sky/serve/server/core.py,sha256=cide83JrRMl45WvA0KdPtj36_g75nSiblsFtPbJ4Qyc,36660
|
222
222
|
sky/serve/server/server.py,sha256=IVEjseLX4h1EZGSpJofzEJl6lkGaBKlEY4IBlngQWD8,3479
|
223
223
|
sky/server/__init__.py,sha256=MPPBqFzXz6Jv5QSk6td_IcvnfXfNErDZVcizu4MLRow,27
|
224
|
-
sky/server/common.py,sha256=
|
224
|
+
sky/server/common.py,sha256=8J1RZ2IGJtySw-gbLE_JEb9Hm24os5qwadmQDhQMqf4,18447
|
225
225
|
sky/server/constants.py,sha256=SqhWJMassFyvWAJn2UJHvuA_0_C6f5vngMzZ2KYLsKw,770
|
226
226
|
sky/server/server.py,sha256=TZplXKA0KMs4UHLV3K5NSyhUPD0l2cmsiYgAZohn_Gs,41902
|
227
227
|
sky/server/stream_utils.py,sha256=6jo1Dq8EtD0AHmJ3e3zCUNAiSYQlUKbPil4h8pA-2ac,5813
|
@@ -336,9 +336,9 @@ sky/utils/kubernetes/k8s_gpu_labeler_setup.yaml,sha256=VLKT2KKimZu1GDg_4AIlIt488
|
|
336
336
|
sky/utils/kubernetes/kubernetes_deploy_utils.py,sha256=iAjfyPclOs8qlALACcfxLpRAO9CZ-h16leFqXZ6tNaY,10096
|
337
337
|
sky/utils/kubernetes/rsync_helper.sh,sha256=h4YwrPFf9727CACnMJvF3EyK_0OeOYKKt4su_daKekw,1256
|
338
338
|
sky/utils/kubernetes/ssh_jump_lifecycle_manager.py,sha256=Kq1MDygF2IxFmu9FXpCxqucXLmeUrvs6OtRij6XTQbo,6554
|
339
|
-
skypilot_nightly-1.0.0.
|
340
|
-
skypilot_nightly-1.0.0.
|
341
|
-
skypilot_nightly-1.0.0.
|
342
|
-
skypilot_nightly-1.0.0.
|
343
|
-
skypilot_nightly-1.0.0.
|
344
|
-
skypilot_nightly-1.0.0.
|
339
|
+
skypilot_nightly-1.0.0.dev20250218.dist-info/LICENSE,sha256=emRJAvE7ngL6x0RhQvlns5wJzGI3NEQ_WMjNmd9TZc4,12170
|
340
|
+
skypilot_nightly-1.0.0.dev20250218.dist-info/METADATA,sha256=LTMWhkCmIQwt9zptcjlq9Se2Cs9MCe7IIMcqHEE7lN0,18916
|
341
|
+
skypilot_nightly-1.0.0.dev20250218.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
342
|
+
skypilot_nightly-1.0.0.dev20250218.dist-info/entry_points.txt,sha256=StA6HYpuHj-Y61L2Ze-hK2IcLWgLZcML5gJu8cs6nU4,36
|
343
|
+
skypilot_nightly-1.0.0.dev20250218.dist-info/top_level.txt,sha256=qA8QuiNNb6Y1OF-pCUtPEr6sLEwy2xJX06Bd_CrtrHY,4
|
344
|
+
skypilot_nightly-1.0.0.dev20250218.dist-info/RECORD,,
|
File without changes
|
{skypilot_nightly-1.0.0.dev20250217.dist-info → skypilot_nightly-1.0.0.dev20250218.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|