domain

package
v0.0.0-...-b049424 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TrainingStatusFailed      = trainingStatus("Failed")
	TrainingStatusPending     = trainingStatus("Pending")
	TrainingStatusRunning     = trainingStatus("Running")
	TrainingStatusCreating    = trainingStatus("Creating")
	TrainingStatusAbnormal    = trainingStatus("Abnormal")
	TrainingStatusCompleted   = trainingStatus("Completed")
	TrainingStatusTerminated  = trainingStatus("Terminated")
	TrainingStatusTerminating = trainingStatus("Terminating")
)

Functions

This section is empty.

Types

type AICCFinetune

type AICCFinetune struct {
	Id    string
	User  Account
	Model ModelName
	Task  string

	AICCFinetuneConfig

	Job       JobInfo
	JobDetail JobDetail
}

func (*AICCFinetune) DefaultCommand

func (t *AICCFinetune) DefaultCommand() string

func (*AICCFinetune) DefaultInferenceCommand

func (t *AICCFinetune) DefaultInferenceCommand() string

type AICCFinetuneConfig

type AICCFinetuneConfig struct {
	Name FinetuneName
	Desc FinetuneDesc

	Hyperparameters []KeyValue
	Env             []KeyValue
}

type AICCFinetuneIndex

type AICCFinetuneIndex struct {
	User       Account
	Model      string
	FinetuneId string
}

type Account

type Account interface {
	Account() string
}

Account

func NewAccount

func NewAccount(v string) (Account, error)

type CustomizedKey

type CustomizedKey interface {
	CustomizedKey() string
}

CustomizedKey

func NewCustomizedKey

func NewCustomizedKey(v string) (CustomizedKey, error)

type CustomizedValue

type CustomizedValue interface {
	CustomizedValue() string
}

CustomizedValue

func NewCustomizedValue

func NewCustomizedValue(v string) (CustomizedValue, error)

type Directory

type Directory interface {
	Directory() string
	LastDirectory() string
}

Directory

func NewDirectory

func NewDirectory(v string) (Directory, error)

type FilePath

type FilePath interface {
	FilePath() string
}

FilePath

func NewFilePath

func NewFilePath(v string) (FilePath, error)

type FinetuneDesc

type FinetuneDesc interface {
	FinetuneDesc() string
}

FinetuneDesc

func NewFinetuneDesc

func NewFinetuneDesc(v string) (FinetuneDesc, error)

type FinetuneName

type FinetuneName interface {
	FinetuneName() string
}

FinetuneName

func NewFinetuneName

func NewFinetuneName(v string) (FinetuneName, error)

type Input

type Input struct {
	Key  CustomizedKey
	User Account
	File string
}

type JobDetail

type JobDetail struct {
	Status     TrainingStatus
	Error      string
	LogPath    string
	OutputPath string
	Duration   int
}

type JobInfo

type JobInfo struct {
	Endpoint  string
	JobId     string
	LogDir    string
	OutputDir string
}

type KeyValue

type KeyValue struct {
	Key   CustomizedKey
	Value CustomizedValue
}

type ModelName

type ModelName interface {
	ModelName() string
}

ModelName

func NewModelName

func NewModelName(v string) (ModelName, error)

type TrainingStatus

type TrainingStatus interface {
	TrainingStatus() string
	IsDone() bool
	IsSuccess() bool
}

TrainingStatus

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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