Skip to content

Commit ec9df69

Browse files
authored
fix schema check for sky spot (skypilot-org#942)
* fix schema check for sky spot * quote
1 parent c66a831 commit ec9df69

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

examples/resnet_app.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: resnet-app
22

33
resources:
44
cloud: aws
5-
accelerators: V100
5+
accelerators:
6+
V100: 1
67

78
inputs: {
89
gs://cloud-tpu-test-dataset/fake_imagenet: 70,

sky/utils/schemas.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,16 @@ def get_resources_schema():
2323
'type': 'string',
2424
},
2525
'accelerators': {
26-
'type': 'string',
26+
'anyOf': [{
27+
'type': 'string',
28+
}, {
29+
'type': 'object',
30+
'required': [],
31+
'maxProperties': 1,
32+
'additionalProperties': {
33+
'type': 'number'
34+
}
35+
}]
2736
},
2837
'instance_type': {
2938
'type': 'string',

0 commit comments

Comments
 (0)