Skip to content

Commit f6bf813

Browse files
committed
feat: add gpu manufacturer field to shadeform api
1 parent a83ca1e commit f6bf813

File tree

6 files changed

+126
-7
lines changed

6 files changed

+126
-7
lines changed

internal/shadeform/gen/shadeform/.openapi-generator/FILES

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.gitignore
2-
.openapi-generator-ignore
32
.travis.yml
43
README.md
54
api/openapi.yaml
@@ -97,5 +96,4 @@ model_volume_types_inner.go
9796
model_volumes_response.go
9897
model_volumes_types_response.go
9998
response.go
100-
test/api_default_test.go
10199
utils.go

internal/shadeform/gen/shadeform/api/openapi.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ components:
514514
vcpus: 6
515515
storage_in_gb: 256
516516
interconnect: pcie
517+
gpu_manufacturer: nvidia
517518
os_options:
518519
- ubuntu22.04_cuda12.2_shade_os
519520
- ubuntu20.04_cuda12.0_shade_os
@@ -541,6 +542,7 @@ components:
541542
vcpus: 6
542543
storage_in_gb: 256
543544
interconnect: pcie
545+
gpu_manufacturer: nvidia
544546
os_options:
545547
- ubuntu22.04_cuda12.2_shade_os
546548
- ubuntu20.04_cuda12.0_shade_os
@@ -579,6 +581,7 @@ components:
579581
vcpus: 6
580582
storage_in_gb: 256
581583
interconnect: pcie
584+
gpu_manufacturer: nvidia
582585
os_options:
583586
- ubuntu22.04_cuda12.2_shade_os
584587
- ubuntu20.04_cuda12.0_shade_os
@@ -652,6 +655,7 @@ components:
652655
vcpus: 6
653656
storage_in_gb: 256
654657
interconnect: pcie
658+
gpu_manufacturer: nvidia
655659
launch_configuration:
656660
docker_configuration:
657661
args: --model mistralai/Mistral-7B-v0.1
@@ -717,6 +721,7 @@ components:
717721
vcpus: 6
718722
storage_in_gb: 256
719723
interconnect: pcie
724+
gpu_manufacturer: nvidia
720725
launch_configuration:
721726
docker_configuration:
722727
args: --model mistralai/Mistral-7B-v0.1
@@ -792,6 +797,7 @@ components:
792797
vcpus: 6
793798
storage_in_gb: 256
794799
interconnect: pcie
800+
gpu_manufacturer: nvidia
795801
launch_configuration:
796802
docker_configuration:
797803
args: --model mistralai/Mistral-7B-v0.1
@@ -976,6 +982,7 @@ components:
976982
vcpus: 6
977983
storage_in_gb: 256
978984
interconnect: pcie
985+
gpu_manufacturer: nvidia
979986
cloud_instance_type: gpu_1x_a6000
980987
auto_delete:
981988
spend_threshold: "3.14"
@@ -1198,6 +1205,7 @@ components:
11981205
vcpus: 6
11991206
storage_in_gb: 256
12001207
interconnect: pcie
1208+
gpu_manufacturer: nvidia
12011209
os_options:
12021210
- ubuntu22.04_cuda12.2_shade_os
12031211
- ubuntu20.04_cuda12.0_shade_os
@@ -1245,7 +1253,12 @@ components:
12451253
items:
12461254
type: string
12471255
type: array
1256+
gpu_manufacturer:
1257+
description: The manufacturer of the gpu
1258+
example: nvidia
1259+
type: string
12481260
required:
1261+
- gpu_manufacturer
12491262
- gpu_type
12501263
- interconnect
12511264
- memory_in_gb
@@ -1292,7 +1305,12 @@ components:
12921305
description: The video memory per GPU for the instance in gigabytes.
12931306
example: 48
12941307
type: integer
1308+
gpu_manufacturer:
1309+
description: The manufacturer of the gpu
1310+
example: nvidia
1311+
type: string
12951312
required:
1313+
- gpu_manufacturer
12961314
- gpu_type
12971315
- interconnect
12981316
- memory_in_gb
@@ -2693,6 +2711,7 @@ components:
26932711
vcpus: 6
26942712
storage_in_gb: 256
26952713
interconnect: pcie
2714+
gpu_manufacturer: nvidia
26962715
VolumeTypes_inner:
26972716
example:
26982717
cloud: hyperstack

internal/shadeform/gen/shadeform/docs/InstanceConfiguration.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ Name | Type | Description | Notes
1212
**Interconnect** | **string** | The type of GPU interconnect. |
1313
**Nvlink** | Pointer to **bool** | If the instance has NVLink | [optional]
1414
**VramPerGpuInGb** | **int32** | The video memory per GPU for the instance in gigabytes. |
15+
**GpuManufacturer** | **string** | The manufacturer of the gpu |
1516
**Os** | **string** | The operating system of the instance. |
1617

1718
## Methods
1819

1920
### NewInstanceConfiguration
2021

21-
`func NewInstanceConfiguration(memoryInGb int32, storageInGb int32, vcpus int32, numGpus int32, gpuType string, interconnect string, vramPerGpuInGb int32, os string, ) *InstanceConfiguration`
22+
`func NewInstanceConfiguration(memoryInGb int32, storageInGb int32, vcpus int32, numGpus int32, gpuType string, interconnect string, vramPerGpuInGb int32, gpuManufacturer string, os string, ) *InstanceConfiguration`
2223

2324
NewInstanceConfiguration instantiates a new InstanceConfiguration object
2425
This constructor will assign default values to properties that have it defined,
@@ -198,6 +199,26 @@ and a boolean to check if the value has been set.
198199
SetVramPerGpuInGb sets VramPerGpuInGb field to given value.
199200

200201

202+
### GetGpuManufacturer
203+
204+
`func (o *InstanceConfiguration) GetGpuManufacturer() string`
205+
206+
GetGpuManufacturer returns the GpuManufacturer field if non-nil, zero value otherwise.
207+
208+
### GetGpuManufacturerOk
209+
210+
`func (o *InstanceConfiguration) GetGpuManufacturerOk() (*string, bool)`
211+
212+
GetGpuManufacturerOk returns a tuple with the GpuManufacturer field if it's non-nil, zero value otherwise
213+
and a boolean to check if the value has been set.
214+
215+
### SetGpuManufacturer
216+
217+
`func (o *InstanceConfiguration) SetGpuManufacturer(v string)`
218+
219+
SetGpuManufacturer sets GpuManufacturer field to given value.
220+
221+
201222
### GetOs
202223

203224
`func (o *InstanceConfiguration) GetOs() string`

internal/shadeform/gen/shadeform/docs/InstanceTypeConfiguration.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ Name | Type | Description | Notes
1313
**Nvlink** | Pointer to **bool** | If the instance has NVLink | [optional]
1414
**VramPerGpuInGb** | **int32** | The video memory per GPU for the instance in gigabytes. |
1515
**OsOptions** | **[]string** | The list of available operating systems for the instance. |
16+
**GpuManufacturer** | **string** | The manufacturer of the gpu |
1617

1718
## Methods
1819

1920
### NewInstanceTypeConfiguration
2021

21-
`func NewInstanceTypeConfiguration(memoryInGb int32, storageInGb int32, vcpus int32, numGpus int32, gpuType string, interconnect string, vramPerGpuInGb int32, osOptions []string, ) *InstanceTypeConfiguration`
22+
`func NewInstanceTypeConfiguration(memoryInGb int32, storageInGb int32, vcpus int32, numGpus int32, gpuType string, interconnect string, vramPerGpuInGb int32, osOptions []string, gpuManufacturer string, ) *InstanceTypeConfiguration`
2223

2324
NewInstanceTypeConfiguration instantiates a new InstanceTypeConfiguration object
2425
This constructor will assign default values to properties that have it defined,
@@ -218,6 +219,26 @@ and a boolean to check if the value has been set.
218219
SetOsOptions sets OsOptions field to given value.
219220

220221

222+
### GetGpuManufacturer
223+
224+
`func (o *InstanceTypeConfiguration) GetGpuManufacturer() string`
225+
226+
GetGpuManufacturer returns the GpuManufacturer field if non-nil, zero value otherwise.
227+
228+
### GetGpuManufacturerOk
229+
230+
`func (o *InstanceTypeConfiguration) GetGpuManufacturerOk() (*string, bool)`
231+
232+
GetGpuManufacturerOk returns a tuple with the GpuManufacturer field if it's non-nil, zero value otherwise
233+
and a boolean to check if the value has been set.
234+
235+
### SetGpuManufacturer
236+
237+
`func (o *InstanceTypeConfiguration) SetGpuManufacturer(v string)`
238+
239+
SetGpuManufacturer sets GpuManufacturer field to given value.
240+
241+
221242

222243
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
223244

internal/shadeform/gen/shadeform/model_instance_configuration.go

Lines changed: 31 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/shadeform/gen/shadeform/model_instance_type_configuration.go

Lines changed: 32 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)