Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LukeBailey181/sgs
/ functions
Functions
331 in github.com/LukeBailey181/sgs
⨍
Functions
331
◇
Types & classes
78
↳
Endpoints
5
↓ 1 callers
Method
__init__
(self, trainer: "GroupedImportanceSampledWeightedTrainer")
sgs/training/custom_trainers.py:391
↓ 1 callers
Method
_collect_gpu_samples
(self)
sgs/utils/monitor.py:396
↓ 1 callers
Method
_collect_once
(self)
sgs/utils/monitor.py:432
↓ 1 callers
Method
_create_app
(self)
sgs/utils/server.py:344
↓ 1 callers
Function
_detect_cgroup_paths
()
sgs/utils/monitor.py:64
↓ 1 callers
Method
_encode_length
(self, code)
sgs/verification/prover/algorithms/base.py:36
↓ 1 callers
Method
_get_idx
(self, pos_info)
sgs/verification/prover/lean/proof.py:60
↓ 1 callers
Function
_gid_to_i64
(gid: str)
sgs/training/custom_trainers.py:279
↓ 1 callers
Function
_is_main_process
Check if this is the main process (rank 0) in distributed training
sgs/training/train_local.py:83
↓ 1 callers
Method
_parse_full_code_lines
(self)
sgs/verification/prover/lean/proof.py:52
↓ 1 callers
Method
_post_process
(self, data: dict, proof_code: str)
sgs/verification/prover/workers/search.py:35
↓ 1 callers
Function
_safe_cmdline
(p: "psutil.Process")
sgs/utils/monitor.py:121
↓ 1 callers
Method
_select_node
(self)
sgs/verification/prover/algorithms/rmax_tree_search.py:233
↓ 1 callers
Function
_start_repl_process
(lake_path, lean_workspace, header)
sgs/verification/prover/lean/verifier.py:172
↓ 1 callers
Method
_tree_new_child
(self, parent)
sgs/verification/prover/algorithms/rmax_tree_search.py:192
↓ 1 callers
Method
_tree_setup
(self, data)
sgs/verification/prover/algorithms/rmax_tree_search.py:159
↓ 1 callers
Method
_tree_step
(self, node, edge, code)
sgs/verification/prover/algorithms/rmax_tree_search.py:198
↓ 1 callers
Method
_tree_update
(self, proof)
sgs/verification/prover/algorithms/rmax_tree_search.py:207
↓ 1 callers
Method
_update_full_code
(self, full_code, _result_backup=None)
sgs/verification/prover/lean/proof.py:37
↓ 1 callers
Method
_verify
(self, **task)
sgs/verification/prover/lean/verifier.py:615
↓ 1 callers
Function
add_color
(info)
sgs/verification/prover/summarize.py:41
↓ 1 callers
Function
aggregate
(split, prob_type)
sgs/verification/prover/summarize.py:48
↓ 1 callers
Method
check_if_datasets_exist
(self, checkpoint_dir: Path, iteration: int)
sgs/pipeline/full_pipeline.py:315
↓ 1 callers
Method
check_if_models_exists
( self, prover_model_save_path: Path, conjecturer_model_save_path: Path, itera
sgs/pipeline/full_pipeline.py:335
↓ 1 callers
Method
complete_job
(self, gamma, first_node=True)
sgs/verification/prover/algorithms/rmax_tree_search.py:102
↓ 1 callers
Function
convert_raw_dict_to_statements
( raw_dict: List[dict], dataset: DatasetType )
sgs/data/load_dataset.py:8
↓ 1 callers
Function
data_gen
Generate conjectures from seed theorems and proofs Args: conjectures_per_statement: Number of conjectures to generate per statement
sgs/pipeline/step1_data_gen.py:180
↓ 1 callers
Function
definition_instance
(file_content, declaration, tactics)
sgs/verification/prover/lean/ast_parser.py:883
↓ 1 callers
Function
deterministic_epoch_batch
( items: Sequence[T], iteration: int, batch_size: int, seed: int, check_file_path: str, )
sgs/pipeline/step1_data_gen.py:132
↓ 1 callers
Function
extract_string_between_positions
(lines, byte_idx_1, byte_idx_2)
sgs/verification/prover/lean/ast_parser.py:32
↓ 1 callers
Function
find_attributes_vals
(data)
sgs/verification/prover/lean/ast_parser.py:127
↓ 1 callers
Function
find_doccomment_vals
(data)
sgs/verification/prover/lean/ast_parser.py:98
↓ 1 callers
Function
find_free_port
()
sgs/utils/server.py:63
↓ 1 callers
Function
find_kind_name_structure
(file_content, data)
sgs/verification/prover/lean/ast_parser.py:1056
↓ 1 callers
Function
find_pripro_vals
(data)
sgs/verification/prover/lean/ast_parser.py:150
↓ 1 callers
Function
find_proof_inductive
(file_content, declaration)
sgs/verification/prover/lean/ast_parser.py:1449
↓ 1 callers
Function
find_proof_structure
(file_content, declaration)
sgs/verification/prover/lean/ast_parser.py:1202
↓ 1 callers
Function
find_statement_def
(file_content, data)
sgs/verification/prover/lean/ast_parser.py:758
↓ 1 callers
Function
find_statement_structure
(file_content, data)
sgs/verification/prover/lean/ast_parser.py:1143
↓ 1 callers
Function
finetune_local
Finetune a local model on a dataset. Args: model_save_path: Path to save the finetuned model train_data: List of tuples of (
sgs/training/train_local.py:90
↓ 1 callers
Method
get_conjecturer_model_name
(self, iteration: int, checkpoint_dir: str)
sgs/pipeline/full_pipeline.py:307
↓ 1 callers
Method
get_done
(self)
sgs/utils/server.py:557
↓ 1 callers
Method
get_extra_log_data_from_response
( self, responses: List[str], )
sgs/models/guide/llm_judge_guide.py:49
↓ 1 callers
Function
get_guide_prompt
(*, seed_theorem: str, conjecture: str)
sgs/utils/prompts.py:276
↓ 1 callers
Function
get_line
(lines, line_number)
sgs/verification/prover/lean/ast_parser.py:7
↓ 1 callers
Method
get_llm_judge_config
(self)
sgs/models/guide/llm_judge_guide.py:34
↓ 1 callers
Method
get_model_guide_prompt
( self, conjecture_prompt: str, statement_prompt: str, )
sgs/models/guide/llm_judge_guide.py:37
↓ 1 callers
Method
get_prover_model_name
( self, iteration: int, checkpoint_dir: str, )
sgs/pipeline/full_pipeline.py:295
↓ 1 callers
Method
get_query_resource_config
( self, )
sgs/models/guide/llm_judge_guide.py:56
↓ 1 callers
Method
get_request_outputs
(self, request_id)
sgs/verification/prover/workers/scheduler.py:94
↓ 1 callers
Function
get_result_from_repl
(repl_result, code, start_time)
sgs/verification/prover/lean/verifier.py:137
↓ 1 callers
Method
get_review_from_response
( self, response: str, )
sgs/models/guide/llm_judge_guide.py:44
↓ 1 callers
Method
get_status
(self)
sgs/verification/prover/utils.py:109
↓ 1 callers
Function
global_group_check
Runtime check that each optimizer step contains *complete groups* globally. This is written to be safe even when `dataloader_drop_last=False`, i.
sgs/training/custom_trainers.py:284
↓ 1 callers
Method
graceful_exit
( self, monitor: ResourceMonitor | None, verifier_scheduler: Lean4ServerScheduler | No
sgs/verification/verify_local.py:89
↓ 1 callers
Method
graceful_exit
( self, monitor: ResourceMonitor | None, reason: Optional[str] = None, )
sgs/models/query_local.py:354
↓ 1 callers
Function
idxs_hash
(idxs: List[int])
sgs/pipeline/step1_data_gen.py:115
↓ 1 callers
Function
inductive
(file_content, declaration, tactics)
sgs/verification/prover/lean/ast_parser.py:1498
↓ 1 callers
Method
is_result_ready
(self)
sgs/verification/prover/lean/proof.py:21
↓ 1 callers
Method
kill_workers
This will clean up all the workers that the server launched. Important incase there are pending workers that never have to be used.
sgs/utils/server.py:142
↓ 1 callers
Function
lane_start_end
(job: Tuple[float, float, str, Optional[float], Optional[float]])
sgs/utils/monitor.py:998
↓ 1 callers
Method
launch_master_worker
Launches a worker as a subprocess on the master machine.
sgs/verification/verify_server.py:42
↓ 1 callers
Method
launch_workers
(self, num_workers: Optional[int] = None)
sgs/verification/verify_server.py:14
↓ 1 callers
Method
launch_workers
(self, num_workers: Optional[int] = None)
sgs/models/query_server.py:11
↓ 1 callers
Function
load_check
(path: str)
sgs/pipeline/step1_data_gen.py:121
↓ 1 callers
Function
make_inner_list
(info)
sgs/verification/prover/summarize.py:38
↓ 1 callers
Function
prepare_conjecturer_train_data
Prepare the train data for the conjecturer This is easier than preparing the prover dataset as we simply train on all of the conjectures
sgs/pipeline/step2_train.py:80
↓ 1 callers
Function
prepare_prover_train_data
Prepare the train data for the prover Args: prover_dataset_path: Path to dataset we use to train the prover so far iteration
sgs/pipeline/step2_train.py:331
↓ 1 callers
Function
prepare_torch_distributed_training
()
sgs/training/train_local.py:59
↓ 1 callers
Function
prune_dict
(d: Dict[str, Statement], num_examples: int)
sgs/pipeline/step2_train.py:686
↓ 1 callers
Function
query_model_batch_local
( prompts: List[str], model_config: ModelConfig, )
sgs/models/query_local.py:156
↓ 1 callers
Function
read_from_repl
(proc)
sgs/verification/prover/lean/verifier.py:156
↓ 1 callers
Method
review
(self, conjectures: List[Conjecture])
sgs/models/guide/__init__.py:44
↓ 1 callers
Function
review_conjectures
Review the conjectures
sgs/pipeline/step2_train.py:971
↓ 1 callers
Function
review_conjectures_local
( conjectures: List[Conjecture], guide: Guide )
sgs/pipeline/step2_train.py:1006
↓ 1 callers
Method
run
(self)
sgs/verification/prover/workers/search.py:52
↓ 1 callers
Function
run_experiment
( checkpoint_dir: str, lr: float, wandb_tags: List[str], run_local: bool = False, )
scripts/sgs_frozen_conjecturer.py:20
↓ 1 callers
Function
run_experiment
( checkpoint_dir: str, lr: float, wandb_tags: List[str], run_local: bool = False, )
scripts/cispo_solver_only.py:19
↓ 1 callers
Function
run_experiment
( checkpoint_dir: str, lr: float, wandb_tags: List[str], run_local: bool = False, )
scripts/ei_solver_only.py:19
↓ 1 callers
Function
run_experiment
( checkpoint_dir: str, lr: float, wandb_tags: List[str], run_local: bool = False, )
scripts/sgs_no_problem_conditioning.py:23
↓ 1 callers
Function
run_experiment
( checkpoint_dir: str, lr: float, wandb_tags: List[str], run_local: bool = False, )
scripts/test_sgs.py:22
↓ 1 callers
Function
run_experiment
( checkpoint_dir: str, lr: float, wandb_tags: List[str], run_local: bool = False, )
scripts/standard_sgs.py:22
↓ 1 callers
Function
run_experiment
( checkpoint_dir: str, lr: float, wandb_tags: List[str], run_local: bool = False, )
scripts/sgs_no_guide.py:20
↓ 1 callers
Function
run_experiment
( checkpoint_dir: str, lr: float, wandb_tags: List[str], run_local: bool = False, )
scripts/cispo_sgs.py:21
↓ 1 callers
Method
run_iteration
(self, i: int)
sgs/pipeline/full_pipeline.py:278
↓ 1 callers
Function
run_pipeline_proving_and_verification
Note that launching master workers will occur for query server equal to number of GPUs on master machine.
sgs/pipeline/pipeline_pv.py:30
↓ 1 callers
Function
sanity_check_training_args
( training_config: TrainingConfig, resources_config: ResourcesConfig )
sgs/training/train_local.py:37
↓ 1 callers
Method
save
(self, path: str)
sgs/data/dataset_types.py:189
↓ 1 callers
Function
save_check
(path: str, d: Dict[str, Any])
sgs/pipeline/step1_data_gen.py:127
↓ 1 callers
Method
segmentation
(self, result=None)
sgs/verification/prover/lean/proof.py:63
↓ 1 callers
Method
size
(self)
sgs/verification/prover/workers/data_loader.py:44
↓ 1 callers
Function
split_snippet
From https://github.com/project-numina/kimina-lean-server/blob/main/server/split.py Splits a code snippet into a header (imports) and body.
sgs/verification/prover/lean/verifier.py:58
↓ 1 callers
Method
start
(self)
sgs/utils/monitor.py:187
↓ 1 callers
Function
start_repl_process
(lake_path, lean_workspace, header = None)
sgs/verification/prover/lean/verifier.py:183
↓ 1 callers
Method
stop
(self)
sgs/utils/server.py:226
↓ 1 callers
Function
stp_proof_length_reward
(proof_str: str)
sgs/pipeline/step2_train.py:75
↓ 1 callers
Function
structure
(file_content, declaration, tactics)
sgs/verification/prover/lean/ast_parser.py:1250
↓ 1 callers
Function
sub_scores_to_review
( relevance_score: float, complexity_score: float, redundancy_score: float, )
sgs/models/guide/llm_judge_guide.py:172
↓ 1 callers
Method
submit_request
(self, data)
sgs/verification/prover/workers/scheduler.py:75
↓ 1 callers
Method
submit_util_report
(self, report: UtilizationReport)
sgs/utils/server.py:571
← previous
next →
101–200 of 331, ranked by callers