modelconfig

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEmptyModelConfig

func CreateEmptyModelConfig(isvc *v1beta1.InferenceService, shardId int) (*v1.ConfigMap, error)

Types

type ConfigsDelta

type ConfigsDelta struct {
	// contains filtered or unexported fields
}

func NewConfigsDelta

func NewConfigsDelta(updatedConfigs ModelConfigs, deletedConfigs []string) *ConfigsDelta

func (*ConfigsDelta) Process

func (config *ConfigsDelta) Process(configMap *v1.ConfigMap) (err error)

multi-model ConfigMap apiVersion: v1 kind: ConfigMap metadata:

name: models-config
namespace: <user-model-namespace>

data:

models.json: |
  [
    {
      "modelName": "model1",
      "modelSpec": {
        "storageUri": "s3://example-bucket/path/to/model1",
        "framework": "sklearn",
        "memory": "1G"
      }
    },
    {
      "modelName": "model2",
      "modelSpec": {
        "storageUri": "s3://example-bucket/path/to/model2",
        "framework": "sklearn",
        "memory": "1G"
      }
    }
 ]

type ModelConfig

type ModelConfig struct {
	Name string             `json:"modelName"`
	Spec v1alpha1.ModelSpec `json:"modelSpec"`
}

type ModelConfigs

type ModelConfigs []ModelConfig

Jump to

Keyboard shortcuts

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