Documentation
¶
Overview ¶
Package terraform provides functions for loading and managing infrastructure data from Terraform state and configuration.
Index ¶
- Variables
- func LoadBaseModels(ctx context.Context, repoPath string, env models.Environment) (map[string]*models.BaseModel, error)
- func LoadGpuPools(ctx context.Context, repoPath string, env models.Environment) ([]models.GpuPool, error)
- func LoadModelArtifacts(ctx context.Context, repoPath string, env models.Environment) (map[string][]models.ModelArtifact, error)
- func LoadServiceTenancies(ctx context.Context, repoPath string) ([]models.ServiceTenancy, error)
- type ChartValues
Constants ¶
This section is empty.
Variables ¶
var ( // ErrBaseModelMapNotResolved is returned when the base model map cannot be resolved. ErrBaseModelMapNotResolved = errors.New("base model map not resolved") // ErrReplicaMapNotResolved is returned when the replica map cannot be resolved. ErrReplicaMapNotResolved = errors.New("replica map not resolved") // ErrDeprecationMapNotResolved is returned when the deprecation map cannot be resolved. ErrDeprecationMapNotResolved = errors.New("deprecation map not resolved") // ErrModelArtifactMapNotResolved is returned when the model artifact map cannot be resolved. ErrModelArtifactMapNotResolved = errors.New("model artifact map not resolved") )
Functions ¶
func LoadBaseModels ¶
func LoadBaseModels(ctx context.Context, repoPath string, env models.Environment) ( map[string]*models.BaseModel, error, )
LoadBaseModels loads base model definitions from the given repository path and environment. Now accepts context.Context as the first parameter.
func LoadGpuPools ¶
func LoadGpuPools(ctx context.Context, repoPath string, env models.Environment) ([]models.GpuPool, error)
LoadGpuPools loads GpuPool objects from the given repository path and environment. Now accepts context.Context as the first parameter.
func LoadModelArtifacts ¶
func LoadModelArtifacts(ctx context.Context, repoPath string, env models.Environment) (map[string][]models.ModelArtifact, error)
LoadModelArtifacts loads ModelArtifact objects from the given repository path and environment. Now accepts context.Context as the first parameter.
func LoadServiceTenancies ¶
LoadServiceTenancies loads ServiceTenancy objects from the given repository path. Now accepts context.Context as the first parameter.
Types ¶
type ChartValues ¶
type ChartValues struct {
Model *models.ModelSetting `yaml:"model"`
ModelMetaData *struct {
DacShapeConfigs *string `yaml:"dacShapeConfigs"`
TrainingConfigs *string `yaml:"trainingConfigs"`
ServingBaseModelConfigs *string `yaml:"servingBaseModelConfigs"`
} `yaml:"modelMetaData"`
}
ChartValues represents the values used for chart templating in model deployment.
Fields:
- Model: model settings for deployment
- ModelMetaData: metadata including DAC shape configs, training configs, and serving base model configs