Help us shape the future of Go! Take the 2026 Go Developer Survey

modelfile

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultModelfileName = "Modelfile"

DefaultModelfileName is the default name of the modelfile.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateConfig

type GenerateConfig struct {
	Workspace                   string
	Name                        string
	Version                     string
	Output                      string
	IgnoreUnrecognizedFileTypes bool // [deprecated] will be removed in the next release
	Overwrite                   bool
	Arch                        string
	Family                      string
	Format                      string
	ParamSize                   string
	Precision                   string
	Quantization                string
	ModelURL                    string
	Provider                    string // Explicit provider for short-form URLs (e.g., "huggingface", "modelscope")
	DownloadDir                 string // Custom directory for downloading models (optional)
	ExcludePatterns             []string
	IncludePatterns             []string
}

func NewGenerateConfig

func NewGenerateConfig() *GenerateConfig

func (*GenerateConfig) Convert

func (g *GenerateConfig) Convert(workspace string) error

func (*GenerateConfig) Validate

func (g *GenerateConfig) Validate() error

Jump to

Keyboard shortcuts

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