-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig-schema.json
47 lines (47 loc) · 1.09 KB
/
config-schema.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"config": {
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model to use"
},
"system": {
"type": "array",
"items": {
"type": "string"
},
"description": "System prompts"
},
"max_new_tokens": {
"type": "integer",
"description": "Maximum number of tokens to generate"
},
"max_length": {
"type": "integer",
"description": "Maximum length of the response"
},
"temperature": {
"type": "number",
"description": "Temperature for sampling"
},
"top_p": {
"type": "number",
"description": "Top-p for sampling"
},
"repetition_penalty": {
"type": "number",
"description": "Repetition penalty"
}
},
"required": [
"model",
"system"
]
}
},
"required": ["config"]
}