-
Notifications
You must be signed in to change notification settings - Fork 111
/
services.xml
63 lines (54 loc) · 2.16 KB
/
services.xml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
<services version="1.0" xmlns:deploy="vespa" xmlns:preprocess="properties" minimum-required-vespa-version="8.311.28">
<container id="default" version="1.0">
<nodes deploy:environment="dev" count="1">
<resources vcpu="4" memory="16Gb" disk="125Gb">
<gpu count="1" memory="16Gb"/>
</resources>
</nodes>
<search/>
<document-api/>
<!-- See https://docs.vespa.ai/en/embedding.html#huggingface-embedder -->
<component id="e5" type="hugging-face-embedder">
<transformer-model url="https://huggingface.co/intfloat/e5-small-v2/resolve/main/model.onnx"/>
<tokenizer-model url="https://huggingface.co/intfloat/e5-small-v2/raw/main/tokenizer.json"/>
<prepend>
<query>query:</query>
<document>passage:</document>
</prepend>
</component>
<!-- See https://docs.vespa.ai/en/embedding.html#colbert-embedder -->
<component id="colbert" type="colbert-embedder">
<transformer-model url="https://huggingface.co/colbert-ir/colbertv2.0/resolve/main/model.onnx"/>
<tokenizer-model url="https://huggingface.co/colbert-ir/colbertv2.0/raw/main/tokenizer.json"/>
</component>
<!-- See https://docs.vespa.ai/en/reference/embedding-reference.html#huggingface-tokenizer-embedder-->
<component id="tokenizer" type="hugging-face-tokenizer">
<model path="models/tokenizer.json"/>
</component>
</container>
<content id="msmarco" version="1.0">
<min-redundancy>2</min-redundancy>
<documents>
<document mode="index" type="passage"/>
</documents>
<nodes count="2">
<resources vcpu="16" memory="32Gb" disk="950Gb"/>
</nodes>
<engine>
<proton>
<tuning>
<searchnode>
<requestthreads>
<persearch>4</persearch>
</requestthreads>
<feeding>
<concurrency>1.0</concurrency>
</feeding>
</searchnode>
</tuning>
</proton>
</engine>
</content>
</services>