File size: 1,702 Bytes
e1ced61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""CPU-testable contracts shared by SFT, RL, and evaluation adapters.

The modules in this package deliberately keep GPU frameworks behind lazy
launcher checks.  Dataset admission, target construction, reward parsing,
fairness scheduling, and token accounting can therefore be tested before a
training server is allocated.
"""

from .answers import (
    UNANSWERABLE_TOKEN,
    AnswerParse,
    NormalizationError,
    answers_equal,
    normalize_answer,
    parse_answer,
)
from .data import AdmissionError, AdmissionRequest, AdmittedGroup, admit_group, load_groups
from .ledger import CompletionTokenLedger, LedgerError
from .rewards import (
    ALL_ARMS,
    LEGACY_ARM_ALIASES,
    ArmPlan,
    RewardTrace,
    RewardWeights,
    canonical_arm,
    plan_all_arms,
    plan_four_arms,
    score_completion,
)
from .slots import (
    ComparisonSlot,
    build_comparison_slots,
    comparison_slot_from_row,
    comparison_slot_manifest_sha256,
)
from .targets import TargetMappingError, defacto_target, ours_target

__all__ = [
    "ALL_ARMS",
    "LEGACY_ARM_ALIASES",
    "UNANSWERABLE_TOKEN",
    "AdmissionError",
    "AdmissionRequest",
    "AdmittedGroup",
    "AnswerParse",
    "ArmPlan",
    "ComparisonSlot",
    "CompletionTokenLedger",
    "LedgerError",
    "NormalizationError",
    "RewardTrace",
    "RewardWeights",
    "TargetMappingError",
    "admit_group",
    "answers_equal",
    "build_comparison_slots",
    "canonical_arm",
    "comparison_slot_from_row",
    "comparison_slot_manifest_sha256",
    "defacto_target",
    "load_groups",
    "normalize_answer",
    "ours_target",
    "parse_answer",
    "plan_all_arms",
    "plan_four_arms",
    "score_completion",
]