Download guac_coder/__init__.py from npc-worldwide/guac-coder: direct link, hf CLI and curl.
- Browser
- Download file 2.42 kB
-
https://huggingface.co/npc-worldwide/guac-coder/resolve/main/guac_coder/__init__.py
- Command line
-
hf download hf://npc-worldwide/guac-coder/guac_coder/__init__.py
-
curl -L -o __init__.py https://huggingface.co/npc-worldwide/guac-coder/resolve/main/guac_coder/__init__.py
2.42 kB
| """ | |
| 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", | |
| ] | |