Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Defaults ¶
type Defaults struct {
SDKVersion string `yaml:"sdk_version"`
CogVersion string `yaml:"cog_version"`
}
Defaults holds default versions
type Expectation ¶
type Expectation struct {
Type string `yaml:"type"`
Value any `yaml:"value"`
Pattern string `yaml:"pattern"`
Mime string `yaml:"mime"`
Match map[string]any `yaml:"match"`
Keys []string `yaml:"keys"`
}
Expectation represents expected test output
type Manifest ¶
Manifest represents the top-level structure of manifest.yaml
func (*Manifest) FilterModels ¶
FilterModels returns models matching the given criteria
type Model ¶
type Model struct {
Name string `yaml:"name"`
Repo string `yaml:"repo"`
Path string `yaml:"path"`
GPU bool `yaml:"gpu"`
Timeout int `yaml:"timeout"`
RequiresEnv []string `yaml:"requires_env"`
RequiresTools []string `yaml:"requires_tools"`
Env map[string]string `yaml:"env"`
SDKVersion string `yaml:"sdk_version"`
CogYAMLOverrides map[string]any `yaml:"cog_yaml_overrides"`
Setup []string `yaml:"setup"`
SkipSchemaValidation bool `yaml:"skip_schema_validation"`
Tests []TestCase `yaml:"tests"`
TrainTests []TestCase `yaml:"train_tests"`
}
Model represents a single model definition
Click to show internal directories.
Click to hide internal directories.