-
Notifications
You must be signed in to change notification settings - Fork 22
/
base.json
executable file
·78 lines (78 loc) · 2.18 KB
/
base.json
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"inference_settings": [
{
"model_settings": {
"generator_settings": {
"model_path": "tests/fixtures/models/llama2_tiny",
"model_type": "causal",
"transformers_settings": {},
"resize_token_embeddings": true,
"embeddings_initialization_strategy": {
"<RS>": "<s>",
"</RS>": "</s>",
"<bot>": "bot",
"<user>": "user",
"<system>": "system"
},
"adapter_path": "tests/fixtures/models/llama2_tiny_fine_tuned_rag"
},
"question_encoder_settings": {
"model_path": "tests/fixtures/models/tiny-bert-embedder",
"model_type": "encoder",
"transformers_settings": {},
"embeddings_initialization_strategy": {}
},
"index_settings": {
"index_path": "tests/fixtures/datasets/rag/fake_wiki.faiss",
"passages_path": "tests/fixtures/datasets/rag/fake_wiki"
},
"retrieval_settings": {
"n_docs": 1,
"max_doc_length": 100,
"query_encoder_max_length": 512
}
},
"tokenizer_settings": {
"use_fast": false,
"tokenizer_path": "tests/fixtures/models/llama2_tiny_fine_tuned_rag"
},
"generation_settings": [
{
"transformers_settings": {
"num_beams": 1,
"max_new_tokens": 10,
"repetition_penalty": 1.2,
"stop_strings": "</RS>",
"do_sample": false
},
"custom_settings": {
"skip_special_tokens": false,
"remove_prompt": false
}
}
]
}
],
"dataset_settings": {
"sources": [
{
"name": "test",
"records_path": "tests/fixtures/datasets/chat/train_chat_rag.jsonl",
"sample_rate": 1.0
}
],
"prompt_template": {
"role_tag_mapping": {
"bot": "<bot>",
"user": "<user>",
"system": "<system>"
},
"prefix_template": "<RS>{role}",
"suffix_template": "</RS>"
},
"dataset_type": "chat",
"max_tokens_count": 2000,
"only_answer_loss": true
},
"save_path": "test_inference_rag_output"
}