|
|
|
@@ -1060,6 +1060,9 @@ type UserImageConfig struct { |
|
|
|
CreateVersion bool `json:"create_version"` |
|
|
|
Flavor Flavor `json:"flavor"` |
|
|
|
PoolID string `json:"pool_id"` |
|
|
|
ShareAddr string `json:"nas_share_addr"` |
|
|
|
MountPath string `json:"nas_mount_path"` |
|
|
|
NasType string `json:"nas_type"` |
|
|
|
} |
|
|
|
|
|
|
|
type CreateTrainJobParams struct { |
|
|
|
@@ -1083,13 +1086,18 @@ type Config struct { |
|
|
|
CreateVersion bool `json:"create_version"` |
|
|
|
Flavor Flavor `json:"flavor"` |
|
|
|
PoolID string `json:"pool_id"` |
|
|
|
ShareAddr string `json:"nas_share_addr"` |
|
|
|
MountPath string `json:"nas_mount_path"` |
|
|
|
NasType string `json:"nas_type"` |
|
|
|
} |
|
|
|
|
|
|
|
type CreateInferenceJobParams struct { |
|
|
|
JobName string `json:"job_name"` |
|
|
|
Description string `json:"job_desc"` |
|
|
|
InfConfig InfConfig `json:"config"` |
|
|
|
WorkspaceID string `json:"workspace_id"` |
|
|
|
} |
|
|
|
|
|
|
|
type CreateInfUserImageParams struct { |
|
|
|
JobName string `json:"job_name"` |
|
|
|
Description string `json:"job_desc"` |
|
|
|
@@ -1147,6 +1155,9 @@ type TrainJobVersionConfig struct { |
|
|
|
Flavor Flavor `json:"flavor"` |
|
|
|
PoolID string `json:"pool_id"` |
|
|
|
PreVersionId int64 `json:"pre_version_id"` |
|
|
|
ShareAddr string `json:"nas_share_addr"` |
|
|
|
MountPath string `json:"nas_mount_path"` |
|
|
|
NasType string `json:"nas_type"` |
|
|
|
} |
|
|
|
|
|
|
|
type TrainJobVersionUserImageConfig struct { |
|
|
|
@@ -1162,6 +1173,9 @@ type TrainJobVersionUserImageConfig struct { |
|
|
|
PreVersionId int64 `json:"pre_version_id"` |
|
|
|
UserImageUrl string `json:"user_image_url"` |
|
|
|
UserCommand string `json:"user_command"` |
|
|
|
ShareAddr string `json:"nas_share_addr"` |
|
|
|
MountPath string `json:"nas_mount_path"` |
|
|
|
NasType string `json:"nas_type"` |
|
|
|
} |
|
|
|
|
|
|
|
type CreateConfigParams struct { |
|
|
|
@@ -1177,6 +1191,7 @@ type CreateConfigParams struct { |
|
|
|
LogUrl string `json:"log_url"` |
|
|
|
Flavor Flavor `json:"flavor"` |
|
|
|
PoolID string `json:"pool_id"` |
|
|
|
Volumes []Volumes `json:"volumes"` |
|
|
|
} |
|
|
|
|
|
|
|
type Parameter struct { |
|
|
|
|