terraform

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package terraform provides functions for loading and managing infrastructure data from Terraform state and configuration.

Index

Constants

This section is empty.

Variables

View Source
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

func LoadServiceTenancies(ctx context.Context, repoPath string) ([]models.ServiceTenancy, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL