Documentation
¶
Index ¶
Constants ¶
View Source
const ( ScriptPath = "sdk/downloader.py" TagPrefix = "--" ModelName = "model-name" ModelModule = "model-module" Path = "path" ModelClass = "model-class" ModelOptions = "model-options" TokenizerClass = "tokenizer-class" TokenizerOptions = "tokenizer-options" Overwrite = "overwrite" Skip = "skip" SkipValueModel = "model" SkipValueTokenizer = "tokenizer" EmfClient = "emf-client" OnlyConfiguration = "only-configuration" AccessToken = "access-token" )
Constants related to the downloader script python arguments.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct {
ModelName string
ModelModule string
ModelClass string
ModelOptions []string
TokenizerClass string
TokenizerOptions []string
SkipTokenizer bool
SkipModel bool
OnlyConfiguration bool
DirectoryPath string
AccessToken string
}
Args represents the arguments for the script.
func (*Args) ToCobraTokenizer ¶ added in v0.0.2
ToCobraTokenizer builds the arguments for running the cobra command
type Model ¶
type Model struct {
Path string `json:"path"`
Module string `json:"module"`
Class string `json:"class"`
Options map[string]string `json:"options"`
Tokenizer Tokenizer `json:"tokenizer"`
IsEmpty bool
}
Model represents a model returned by the downloader script.
Click to show internal directories.
Click to hide internal directories.