modelsyncer

package
v0.305.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelManager added in v0.249.0

type ModelManager interface {
	CreateNewModelOfGGUF(modelName string, spec *ollama.ModelSpec) error
	DownloadAndCreateNewModel(ctx context.Context, modelName string, resp *mv1.GetBaseModelPathResponse) error
	UpdateModelTemplateToLatest(modelname string) error
}

ModelManager is an interface for managing models.

type S

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

S is a syncer.

func New

func New(
	mm ModelManager,
	s3Client s3Client,
	miClient modelClient,
) (*S, error)

New creates a syncer..

func (*S) ListInProgressModels added in v0.219.0

func (s *S) ListInProgressModels() []string

ListInProgressModels lists all models that are in progress of registration.x

func (*S) ListSyncedModelIDs added in v0.88.0

func (s *S) ListSyncedModelIDs(ctx context.Context) []string

ListSyncedModelIDs lists all models that have been synced.

func (*S) PullModel added in v0.56.0

func (s *S) PullModel(ctx context.Context, modelID string) error

PullModel downloads and registers a model from model manager.

Jump to

Keyboard shortcuts

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