File size: 2,420 Bytes
498f80b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
359579b
 
498f80b
 
 
359579b
 
498f80b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
359579b
 
 
 
498f80b
 
 
 
 
 
 
 
 
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
"""
guac-coder: LLM fine-tuned for research code and scientific writing.
"""

__version__ = "0.1.0"

from guac_coder.config import DataConfig, GRPOConfig, RewardConfig
from guac_coder.data import (
    build_prompt,
    generate_sft_pairs,
    load_code_from_repos,
    load_data,
    load_research_tasks,
    prepare_training_examples,
    save_data,
)
from guac_coder.decision_judge import (
    DecisionJudgeConfig,
    DecisionRaterError,
    ask_decision_model,
    available,
    clear_cache,
    combined_decision_reward,
    compute_decision_rewards,
    map_to_rule_rewards,
)
from guac_coder.grpo_evaluator import (
    _RULE_KEYS,
    build_judge_prompt,
    compute_grpo_reward,
    parse_judge_response,
)
from guac_coder.grpo_pipeline import (
    GuacRewardAdapter,
    build_trainer,
    run_grpo,
)
from guac_coder.grpo_rewards import (
    GRPO_REWARD_REGISTRY,
    SEABORN_FLOOR,
    VALIDITY_FLOOR,
    StaticCodeAnalyzer,
    combined_grpo_reward,
    compute_grpo_rewards,
    detect_seaborn,
    uses_seaborn,
)
from guac_coder.rater_audit import compare_raters, run_audit
from guac_coder.rewards import (
    compute_llm_judge_reward,
    compute_static_rewards,
    compute_total_reward,
    total_static_reward,
)
from guac_coder.training import (
    load_checkpoint,
    save_checkpoint,
    score_completion,
    train_grpo,
)

__all__ = [
    "__version__",
    "GRPOConfig",
    "RewardConfig",
    "DataConfig",
    "compute_static_rewards",
    "compute_llm_judge_reward",
    "compute_total_reward",
    "total_static_reward",
    "load_research_tasks",
    "build_prompt",
    "prepare_training_examples",
    "load_code_from_repos",
    "save_data",
    "load_data",
    "generate_sft_pairs",
    "train_grpo",
    "score_completion",
    "run_audit",
    "compare_raters",
    "load_checkpoint",
    "save_checkpoint",
    "GuacRewardAdapter",
    "build_trainer",
    "run_grpo",
    "compute_grpo_reward",
    "build_judge_prompt",
    "parse_judge_response",
    "_RULE_KEYS",
    "compute_grpo_rewards",
    "combined_grpo_reward",
    "GRPO_REWARD_REGISTRY",
    "StaticCodeAnalyzer",
    "detect_seaborn",
    "uses_seaborn",
    "SEABORN_FLOOR",
    "VALIDITY_FLOOR",
    "DecisionJudgeConfig",
    "DecisionRaterError",
    "ask_decision_model",
    "available",
    "clear_cache",
    "combined_decision_reward",
    "compute_decision_rewards",
    "map_to_rule_rewards",
]