Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdapterFilePath ¶
AdapterFilePath returns the file path of the adapter.
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 (*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) DownloadAdapterOfGGUF ¶ added in v0.373.0
func (d *D) DownloadAdapterOfGGUF( ctx context.Context, modelID string, resp *mv1.GetModelPathResponse, ) error
DownloadAdapterOfGGUF downloads the adapter.
Click to show internal directories.
Click to hide internal directories.