Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromBytes ¶
func NewFromBytes(b []byte) (*InferenceConfig, *FineTuneConfig, error)
Types ¶
type FineTuneConfig ¶ added in v0.7.0
type FineTuneConfig struct { APIVersion string `yaml:"apiVersion"` Target string `yaml:"target"` BaseModel string `yaml:"baseModel"` Datasets []Dataset `yaml:"datasets"` Config FineTuneConfigSpec `yaml:"config"` Output FineTuneOutputSpec `yaml:"output"` }
type FineTuneConfigSpec ¶ added in v0.7.0
type FineTuneConfigSpec struct {
Unsloth FineTuneConfigUnslothSpec `yaml:"unsloth"`
}
type FineTuneConfigUnslothSpec ¶ added in v0.7.0
type FineTuneConfigUnslothSpec struct { Packing bool `yaml:"packing"` MaxSeqLength int `yaml:"maxSeqLength"` LoadIn4bit bool `yaml:"loadIn4bit"` BatchSize int `yaml:"batchSize"` GradientAccumulationSteps int `yaml:"gradientAccumulationSteps"` WarmupSteps int `yaml:"warmupSteps"` MaxSteps int `yaml:"maxSteps"` LearningRate float64 `yaml:"learningRate"` LoggingSteps int `yaml:"loggingSteps"` Optimizer string `yaml:"optimizer"` WeightDecay float64 `yaml:"weightDecay"` LrSchedulerType string `yaml:"lrSchedulerType"` Seed int `yaml:"seed"` }
type FineTuneOutputSpec ¶ added in v0.7.0
type InferenceConfig ¶ added in v0.7.0
type Model ¶
type Model struct { Name string `yaml:"name"` Source string `yaml:"source"` SHA256 string `yaml:"sha256"` PromptTemplates []PromptTemplate `yaml:"promptTemplates"` }
type PromptTemplate ¶
Click to show internal directories.
Click to hide internal directories.