-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathlog.schema
72 lines (65 loc) · 2.04 KB
/
log.schema
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
{
"$schema": "http://json-schema.org/schema#",
"title": "LM Challenge log format",
"description": "Validate any log datum against the LM Challenge log file specification. A log file should consist of JSONlines encoded items that match this schema.",
"type": "object",
"properties": {
"user": {"type": ["string", "null"]},
"character": {"type": "number"},
"message": {"type": "number"},
"token": {"type": "number"},
"target": {"type": "string"},
"select": {"type": "boolean"},
"logp": {
"title": "(Character|Word) Entropy result",
"type": ["number", "null"]
},
"completions": {
"title": "Word Completion result",
"type": "array",
"items": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
}
},
"results": {
"title": "Word Reranking result",
"type": "array",
"items": {
"type": "array",
"minItems": 3,
"additionalItems": false,
"items": [
{
"title": "Candidate",
"type": "string"
},
{
"title": "Error score",
"type": "number",
"maximum": 0
},
{
"title": "LM score",
"type": ["number", "null"]
},
{
"title": "Combined score (optional)",
"type": "number"
}
]
}
},
"verbatim": {"type": "string"}
},
"required": [
"user", "character", "message", "token", "target"
],
"dependencies": {
"results": ["verbatim"],
"verbatim": ["results"]
}
}