blob: 530e8d5aaa6b53ae6cb93c2e824763cc3ca8f7d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
namespace=embedding
# Wordpiece tokenizer
tokenizerVocab model
transformerModel model
# Max length of token sequence model can handle
transformerMaxTokens int default=384
# Pooling strategy
poolingStrategy enum { cls, mean } default=mean
# Input names
transformerInputIds string default=input_ids
transformerAttentionMask string default=attention_mask
transformerTokenTypeIds string default=token_type_ids
# special token ids
transformerStartSequenceToken int default=101
transformerEndSequenceToken int default=102
# Output name
transformerOutput string default=output_0
# Settings for ONNX model evaluation
onnxExecutionMode enum { parallel, sequential } default=sequential
onnxInterOpThreads int default=1
onnxIntraOpThreads int default=-4 # n=number of threads -> n<0: CPUs/(-n), n==0: CPUs, n>0: n
# GPU device id, -1 for CPU
onnxGpuDevice int default=0
|