modeldownloader

package
v1.46.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompletionIndicationFilePath added in v1.22.0

func CompletionIndicationFilePath(modelDir, modelID string) string

CompletionIndicationFilePath returns the file path of the completion indication file.

func ModelFilePath

func ModelFilePath(modelDir, modelID string, format mv1.ModelFormat) (string, error)

ModelFilePath returns the file path of the model.

Types

type D

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

D is a downloader.

func New

func New(modelDir string, s3Client s3Client) *D

New returns a new Manager.

func (*D) CompletionIndicationFilePath added in v1.22.0

func (d *D) CompletionIndicationFilePath(modelID string) string

CompletionIndicationFilePath returns the completion indication file path.

func (*D) Download

func (d *D) Download(
	ctx context.Context,
	modelID string,
	srcPath string,
	format mv1.ModelFormat,
	adapterType mv1.AdapterType,
) error

Download downloads the model.

func (*D) ModelFilePath added in v1.22.0

func (d *D) ModelFilePath(modelID string, format mv1.ModelFormat) (string, error)

ModelFilePath returns the model file path.

func (*D) OllamaModelfilePath added in v1.22.0

func (d *D) OllamaModelfilePath(modelID string) string

OllamaModelfilePath returns the Ollama model file path.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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