MCPcopy Create free account

hub / github.com/LukeBailey181/sgs / functions

Functions331 in github.com/LukeBailey181/sgs

↓ 1 callersFunctiontheorem_lemma_abbrev
(file_content, declaration, tactics)
sgs/verification/prover/lean/ast_parser.py:586
↓ 1 callersFunctiontime_string_to_minutes
Convert time string in format 'DD-HH:MM:SS' or 'HH:MM:SS' to minutes. Args: time_str: Time string in format 'DD-HH:MM:SS' or 'HH:MM:
sgs/utils/__init__.py:44
↓ 1 callersMethodto_node_list
(self)
sgs/verification/prover/algorithms/rmax_tree_search.py:50
↓ 1 callersFunctiontrain_prover_and_conjecturer
Train the prover and conjecturer as a single model by mixing the prover and conjecturer datasets together
sgs/pipeline/step2_train.py:709
↓ 1 callersMethodupdate_reward
(self, reward, gamma, first_node=True)
sgs/verification/prover/algorithms/rmax_tree_search.py:76
↓ 1 callersFunctionverify_lean4_file_kimina
( code, lake_path=DEFAULT_LAKE_PATH, lean_workspace=DEFAULT_LEAN_WORKSPACE, last_env=None,
sgs/verification/prover/lean/verifier.py:501
↓ 1 callersFunctionverify_lean4_file_multiple
( codes: List[str], lake_path=DEFAULT_LAKE_PATH, lean_workspace=DEFAULT_LEAN_WORKSPACE, las
sgs/verification/prover/lean/verifier.py:194
↓ 1 callersFunctionverify_local
( proofs: List[str], num_workers: int, timeout: int, memory_limit: int = -1, monitor: bool
sgs/verification/verify_local.py:33
Method__call__
(self, *args, **kwargs)
sgs/utils/server.py:536
Method__call__
( self, num_workers: int, timeout: int, memory_limit: int = -1, lean_v
sgs/verification/verify_local.py:118
Method__call__
( self, prompts: List[str], model_config: ModelConfig )
sgs/models/query_local.py:201
Method__call__
( self, model_config: ModelConfig, buffer_size: int = 128, gpu_id: Optional[in
sgs/models/query_local.py:373
Method__call__
(self, pipeline_config: PipelineConfig)
sgs/pipeline/full_pipeline.py:740
Method__enter__
(self)
sgs/utils/__init__.py:164
Method__enter__
(self)
sgs/utils/server.py:314
Method__eq__
(self, other)
sgs/data/dataset_types.py:51
Method__exit__
(self, exc_type, exc_val, exc_tb)
sgs/utils/__init__.py:173
Method__exit__
(self, exc_type, exc, tb)
sgs/utils/server.py:318
Method__getitem__
(self, key)
sgs/verification/prover/algorithms/rmax_tree_search.py:47
Method__hash__
(self)
sgs/data/dataset_types.py:48
Method__init__
( self, interval_sec: float = 5.0, track_children: bool = False, per_process_t
sgs/utils/monitor.py:138
Method__init__
( self, resources_config: ResourcesConfig, keep_on_success: bool = False, )
sgs/utils/__init__.py:152
Method__init__
(self, server_address: str, monitor: bool = False)
sgs/utils/server.py:524
Method__init__
(self, lean_version: str = "4.15", **kwargs)
sgs/verification/verify_server.py:10
Method__init__
(self, stage_list)
sgs/verification/prover/utils.py:93
Method__init__
(self, batch_size=512, name="test")
sgs/verification/prover/workers/scheduler.py:10
Method__init__
(self, batch_size=512, name="test")
sgs/verification/prover/workers/scheduler.py:66
Method__init__
(self, scheduler_dict)
sgs/verification/prover/workers/scheduler.py:112
Method__init__
( self, data_path, data_split, data_repeat, node_rank, world_size, log_dir )
sgs/verification/prover/workers/data_loader.py:10
Method__init__
( self, local_rank, node_rank, model_path, task_queue, request
sgs/verification/prover/workers/generator.py:11
Method__init__
(self, idx, log_dir, tokenizer_path, scheduler, data_loader, cfg)
sgs/verification/prover/workers/search.py:13
Method__init__
(self, full_code, _args, _result_backup=None, **kwargs)
sgs/verification/prover/lean/proof.py:5
Method__init__
Inputs: data (`dict`): The problem information storing in a `dict` object. formal_statement (`str`): The formal s
sgs/verification/prover/lean/proof.py:173
Method__init__
(self, idx, task_queue, request_statuses, lock, extra_args=AttrDict())
sgs/verification/prover/lean/verifier.py:271
Method__init__
( self, max_concurrent_requests=64, timeout=300, memory_limit=-1,
sgs/verification/prover/lean/verifier.py:326
Method__init__
( self, max_concurrent_requests=64, timeout=300, memory_limit=-1, name="verifier", lean_version="4.15"
sgs/verification/prover/lean/verifier.py:656
Method__init__
(self, scheduler, tokenizer_path, process_print, cfg, **kwargs)
sgs/verification/prover/algorithms/base.py:10
Method__init__
(self, parent=None, code=None, **kwargs)
sgs/verification/prover/algorithms/rmax_tree_search.py:17
Method__init__
(self, **kwargs)
sgs/verification/prover/algorithms/rmax_tree_search.py:133
Method__init__
(self, **kwargs)
sgs/verification/prover/algorithms/sampling.py:5
Method__init__
(self, **data)
sgs/data/dataset_types.py:158
Method__init__
(self, *args, **kwargs)
sgs/training/custom_trainers.py:424
Method__init__
(self, num_checkpoints: int = 10)
sgs/models/query_local.py:185
Method__init__
Every guide is based on a prover model. Prover models will always be saved to disc. So we have all the information we need ab
sgs/models/guide/__init__.py:28
Method__init__
( self, # Data pipeline_config: PipelineConfig, )
sgs/pipeline/full_pipeline.py:42
Method__len__
(self)
sgs/verification/prover/workers/scheduler.py:40
Method__post_init__
(self)
sgs/training/training_types.py:40
Method__post_init__
(self)
sgs/pipeline/config.py:129
Method_check
()
sgs/utils/server.py:334
Method_extract_token
(authorization: Optional[str])
sgs/utils/server.py:347
Method_get_train_sampler
(self, train_dataset)
sgs/training/custom_trainers.py:50
Method_monitor
(self)
sgs/verification/prover/workers/scheduler.py:22
Method_monitor
(self)
sgs/verification/prover/lean/verifier.py:359
Method_monitor
(self)
sgs/verification/prover/lean/verifier.py:685
Method_rmax_exploration_summarize_results
(self, node, proof)
sgs/verification/prover/algorithms/rmax_tree_search.py:286
Method_run
(self)
sgs/utils/monitor.py:388
Method_run
()
sgs/utils/server.py:216
Method_tactic_tree_generate_proof
(self, data, node)
sgs/verification/prover/algorithms/rmax_tree_search.py:265
Method_tactic_tree_parse_proof
(self, node, code_prefix, generator_request_id)
sgs/verification/prover/algorithms/rmax_tree_search.py:278
Methodalgorithm_name
(self)
sgs/verification/prover/algorithms/base.py:26
Methodavg
(xs: List[float])
sgs/utils/monitor.py:616
Methodcheckpoint
(self, *args, **kwargs)
sgs/utils/server.py:600
Methodcheckpoint
(self, *args, **kwargs)
sgs/models/query_local.py:322
Methodcheckpoint
Override checkpoint to only allow the main process to checkpoint. Child processes spawned by ProcessPoolExecutor should not try to ch
sgs/pipeline/full_pipeline.py:744
Methodcleaned_code
(self)
sgs/verification/prover/lean/proof.py:31
Methodclose
(self)
sgs/verification/prover/workers/scheduler.py:107
Methodclose
(self)
sgs/verification/prover/workers/scheduler.py:120
Methodclose
(self)
sgs/verification/prover/lean/verifier.py:367
Methodcode
(self)
sgs/verification/prover/algorithms/rmax_tree_search.py:38
Methodcompleted_count
(self)
sgs/utils/server.py:310
Methodcompute_last_valid_char_pos
(line)
sgs/verification/prover/lean/proof.py:88
Methodcompute_loss
( self, model: nn.Module, inputs: Dict[str, Union[torch.Tensor, Any]], return_
sgs/training/custom_trainers.py:57
Methodcompute_loss
( # Fixed typo self, model: nn.Module, inputs: Dict[str, Union[torch.Tensor, Any]],
sgs/training/custom_trainers.py:135
Methodcompute_loss
( # Fixed typo self, model: nn.Module, inputs: Dict[str, Union[torch.Tensor, Any]],
sgs/training/custom_trainers.py:431
Functioncot_few_shot_prompt
(data)
sgs/verification/prover/utils.py:37
Functioncot_prompt
(data)
sgs/verification/prover/utils.py:29
Functionexample_get_generation_resources_config
Template for a GPU pool used to sample proofs and conjectures. Many parallel jobs, each allocated 1 GPU for a batched inference worker. Repla
sgs/utils/experiment_utils.py:52
Functionexample_get_training_resource_config
Template for a multi-GPU submitit training job. One job with multiple GPUs on a single node for distributed training. Replace the `<YOUR_SLUR
sgs/utils/experiment_utils.py:77
Functionexample_get_verification_resources_config
Template for a CPU-heavy submitit pool used to verify Lean proofs. Many parallel jobs, each allocated lots of CPUs and no GPU. Replace the `<
sgs/utils/experiment_utils.py:28
Functionextract_conjecture_deepseek_v2
(generation: str)
sgs/utils/prompts.py:184
Functionextract_other_vals
(data)
sgs/verification/prover/lean/ast_parser.py:176
Functionextract_proof_deepseek_v2
(generation: str)
sgs/utils/prompts.py:108
Functionextract_proof_deepseek_v2_strict
(generation: str)
sgs/utils/prompts.py:133
Functionfind_free_port
()
sgs/training/train_local.py:51
Functiongenerate_proofs
Generate (but do NOT verify) a batch of proofs for an evaluation dataset. This mirrors the generation portion of `evaluate_prover`, but skip
sgs/training/evaluate.py:548
Methodget
(self)
sgs/verification/prover/workers/data_loader.py:47
Functionget_deepseek_prover_v2_conjecturer_no_grounding_prompt
( *, seed_theorem: str, conjecturer_config: ConjecturerConfig, seed_proof: Optional[str] = Non
sgs/utils/prompts.py:30
Functionget_deepseek_prover_v2_conjecturer_prompt
( *, seed_theorem: str, conjecturer_config: ConjecturerConfig, seed_proof: Optional[str] = Non
sgs/utils/prompts.py:47
Functionget_deepseek_prover_v2_prompt
(*, header: str, theorem: str)
sgs/utils/prompts.py:18
Methodget_extra_log_data_from_response
( self, responses: List[str], )
sgs/models/guide/llm_judge_guide.py:250
Methodget_llm_judge_config
(self)
sgs/models/guide/llm_judge_guide.py:193
Methodget_model_guide_prompt
( self, conjecture_prompt: str, statement_prompt: str )
sgs/models/guide/llm_judge_guide.py:222
Methodget_model_name
(self, iteration: int)
sgs/pipeline/full_pipeline.py:292
Methodget_query_resource_config
(self)
sgs/models/guide/llm_judge_guide.py:214
Methodget_review_from_response
(self, response: str)
sgs/models/guide/llm_judge_guide.py:230
Methodget_task
( worker_id: str, num_tasks: int = 1, authorization: Optional[str] = Heade
sgs/utils/server.py:369
Methodhoeffding_ucb
(node_visitation)
sgs/verification/prover/algorithms/rmax_tree_search.py:241
Methodin_progress_count
(self)
sgs/utils/server.py:306
Methodkill_workers
(self)
sgs/models/query_server.py:86
Methodlaunch_workers
(self, num_workers: Optional[int] = None)
sgs/models/query_server.py:74
← previousnext →201–300 of 331, ranked by callers