We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c66a831 commit ec9df69Copy full SHA for ec9df69
examples/resnet_app.yaml
@@ -2,7 +2,8 @@ name: resnet-app
2
3
resources:
4
cloud: aws
5
- accelerators: V100
+ accelerators:
6
+ V100: 1
7
8
inputs: {
9
gs://cloud-tpu-test-dataset/fake_imagenet: 70,
sky/utils/schemas.py
@@ -23,7 +23,16 @@ def get_resources_schema():
23
'type': 'string',
24
},
25
'accelerators': {
26
- 'type': 'string',
+ 'anyOf': [{
27
+ 'type': 'string',
28
+ }, {
29
+ 'type': 'object',
30
+ 'required': [],
31
+ 'maxProperties': 1,
32
+ 'additionalProperties': {
33
+ 'type': 'number'
34
+ }
35
+ }]
36
37
'instance_type': {
38
0 commit comments