domain

package
v1.5.6-temp Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileName

func NewFileName(v string, model string, task string) error

Types

type AICCFinetune

type AICCFinetune struct {
	Id    string
	User  types.Account
	Model ModelName
	Task  FinetuneTask

	AICCFinetuneConfig

	CreatedAt int64

	// following fields is not under the controlling of version
	Job       JobInfo
	JobDetail JobDetail
}

type AICCFinetuneConfig

type AICCFinetuneConfig struct {
	Name FinetuneName
	Desc FinetuneDesc

	Hyperparameters []KeyValue
	Env             []KeyValue
}

type AICCFinetuneCreateEvent

type AICCFinetuneCreateEvent struct {
	User  types.Account
	Id    string
	Model string
	Task  string
}

type AICCFinetuneIndex

type AICCFinetuneIndex struct {
	User       types.Account
	Model      ModelName
	FinetuneId string
}

type AICCFinetuneSummary

type AICCFinetuneSummary struct {
	Id        string
	Name      FinetuneName
	Desc      FinetuneDesc
	Error     string
	Status    string
	Duration  int
	CreatedAt int64
	Task      string
}

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
	IsRootDir() bool
}

Directory

func NewDirectory

func NewDirectory(v string) (Directory, error)

type FileName

type FileName interface {
	FileName() string
}

FileName

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 FinetuneTask

type FinetuneTask interface {
	FinetuneTask() string
}

FinetuneTask

func NewFinetuneTask

func NewFinetuneTask(v string) (FinetuneTask, error)

type InputeFilePath

type InputeFilePath interface {
	InputeFilePath() string
}

InputFilePath

func NewInputeFilePath

func NewInputeFilePath(v string) (InputeFilePath, error)

type JobDetail

type JobDetail struct {
	Status     string
	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 UploadService

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

func (*UploadService) Upload

func (s *UploadService) Upload(
	data io.Reader, fileName string, user string, model string, task string,
) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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