Documentation ¶
Index ¶
Constants ¶
View Source
const ( WrapMaxChars = 80 IndentChars = 4 )
Variables ¶
View Source
var HuggingFaceCommonTasks = map[string]string{
"fillmask": "bert-base-uncased",
"summarization": "facebook/bart-large-cnn",
"classification": "distilbert-base-uncased-finetuned-sst-2-english",
"text-generation": "gpt2",
"ner": "dbmdz/bert-large-cased-finetuned-conll03-english",
"translation": "t5-base",
"bloom": "bigscience/bloom",
"bloomz": "bigscience/bloomz",
"chatlegacy": "OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5",
"starcoder": "bigcode/starcoder",
"ll2c7": "meta-llama/Llama-2-7b-chat-hf",
"ll2c13": "meta-llama/Llama-2-13b-chat-hf",
"ll2c70": "meta-llama/Llama-2-70b-chat-hf",
"chat": "meta-llama/Llama-2-70b-chat-hf",
"clb7": "codellama/CodeLlama-7b-hf",
"clb13": "codellama/CodeLlama-13b-hf",
"cli34": "codellama/CodeLlama-34b-Instruct-hf",
}
Functions ¶
func ErrWrongNumberOfArgs ¶
func J2Y ¶
func J2Y(w io.WriteCloser, r io.ReadCloser, _ any) (int64, error)
func Y2J ¶
func Y2J(w io.WriteCloser, r io.ReadCloser, _ any) (int64, error)
Types ¶
type HuggingFaceRequest ¶ added in v1.12.0
Source Files ¶
- 0single.go
- 0stdconfigbuilders.go
- base64.go
- bzip2.go
- claude.go
- clipboard.go
- dummy.go
- exec.go
- feed2y.go
- googleai.go
- hash.go
- help.go
- hex.go
- html2md.go
- huggingface.go
- jcs.go
- json5Json.go
- jsonIndent.go
- jsonYaml.go
- jsonpath.go
- limit.go
- lz4.go
- lzfse.go
- maxbw.go
- mimetype.go
- mistral.go
- openai.go
- pgzip.go
- plist.go
- pv.go
- quotedPrintable.go
- removeAnsi.go
- s2.go
- simples.go
- sponge.go
- stdCompress.go
- translate.go
- utf8.go
- wazero.go
- wolframalpha.go
- wrap.go
- xz.go
- zip.go
- zstd.go
Click to show internal directories.
Click to hide internal directories.