helper

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultArg             string = "default"
	SpeculativeDecodingArg string = "speculative-decoding"
)

These two modes are preset.

Variables

This section is empty.

Functions

func DetectArgFrom added in v0.0.9

func DetectArgFrom(playground *inferenceapi.Playground) string

DetectArgFrom wil auto detect the arg from model roles if not set explicitly.

func FetchModelsByPlayground

func FetchModelsByPlayground(ctx context.Context, k8sClient client.Client, playground *inferenceapi.Playground) (models []*coreapi.OpenModel, err error)

func FetchModelsByService

func FetchModelsByService(ctx context.Context, k8sClient client.Client, service *inferenceapi.Service) (models []*coreapi.OpenModel, err error)

Types

type BackendRuntimeParser

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

TODO: add unit tests.

func NewBackendRuntimeParser

func NewBackendRuntimeParser(backendRuntime *inferenceapi.BackendRuntime) *BackendRuntimeParser

func (*BackendRuntimeParser) Args

func (p *BackendRuntimeParser) Args(playground *inferenceapi.Playground, models []*coreapi.OpenModel) ([]string, error)

func (*BackendRuntimeParser) Commands

func (p *BackendRuntimeParser) Commands() []string

func (*BackendRuntimeParser) Envs

func (p *BackendRuntimeParser) Envs() []corev1.EnvVar

func (*BackendRuntimeParser) Image

func (p *BackendRuntimeParser) Image(version string) string

func (*BackendRuntimeParser) Resources

func (*BackendRuntimeParser) Version

func (p *BackendRuntimeParser) Version() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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