MCPcopy Create free account

hub / github.com/LukeBailey181/sgs / functions

Functions331 in github.com/LukeBailey181/sgs

↓ 238 callersMethodget
(self, no_wait=False)
sgs/verification/prover/workers/scheduler.py:47
↓ 48 callersFunctionget_local_running_config
Resource config for running everything in-process on the local machine. No slurm, no submitit. Generation uses all visible GPUs, training auto-
sgs/utils/experiment_utils.py:126
↓ 24 callersFunctionprocess_lean_file
(file_contents, byte_idx_1, byte_idx_2)
sgs/verification/prover/lean/ast_parser.py:6
↓ 21 callersFunctionextract_positions
(node)
sgs/verification/prover/lean/ast_parser.py:71
↓ 18 callersMethodclose
(self)
sgs/verification/prover/workers/scheduler.py:60
↓ 16 callersMethodload
(cls, path: str)
sgs/data/dataset_types.py:106
↓ 13 callersFunctionget_submitit_executor
( resources_config: ResourcesConfig, log_dir: Optional[str] = None, )
sgs/utils/__init__.py:103
↓ 13 callersFunctionlog_data
Log data to wandb Args: wandb_run: The wandb run to log to data: The data to log iteration: The iteration number
sgs/pipeline/step1_data_gen.py:89
↓ 12 callersFunctionextract_vals
(data)
sgs/verification/prover/lean/ast_parser.py:85
↓ 11 callersFunction_assert_and_get_file_ext
Return the lowercase file extension (including dot) and assert it's supported.
sgs/data/dataset_types.py:26
↓ 11 callersFunctionget_deepseek_prover_v2_prover_config
()
sgs/utils/experiment_utils.py:149
↓ 10 callersFunctionexample_get_master_running_config
Template for the outer orchestrator job that runs the pipeline loop. A single long-running job with modest resources that coordinates the tra
sgs/utils/experiment_utils.py:102
↓ 10 callersMethodstart
(self, **kwargs)
sgs/verification/prover/utils.py:105
↓ 9 callersFunction_read_file
(path: str)
sgs/utils/monitor.py:41
↓ 8 callersFunctionget_deepseek_prover_v2_conjecturer_config
( mode: ConjecturerSetup, )
sgs/utils/experiment_utils.py:168
↓ 8 callersFunctionget_standard_training_config
()
sgs/utils/experiment_utils.py:189
↓ 8 callersFunctionlog_utilization_report_timings
( reports: Sequence[UtilizationReport | None], wandb_run: wandb.Run | None, wandb_prefix: str, )
sgs/utils/monitor.py:938
↓ 8 callersFunctionrun_pipeline
(pipeline_config: PipelineConfig)
sgs/pipeline/full_pipeline.py:733
↓ 7 callersMethodresult
(self)
sgs/verification/prover/lean/proof.py:13
↓ 6 callersFunctionchunk_list
Split list into exactly n_chunks chunks, distributing items as evenly as possible.
sgs/utils/__init__.py:79
↓ 6 callersFunctionexport
()
sgs/utils/__init__.py:237
↓ 6 callersFunctionlog_token_counts
Returns data that can be logged to wandb. If wandb_run given then this data is logged inside this function.
sgs/models/query.py:33
↓ 6 callersMethodsave
(self, path: str)
sgs/data/dataset_types.py:122
↓ 6 callersMethodstop_and_report
( self, num_examples: Optional[int] = None, )
sgs/utils/monitor.py:333
↓ 5 callersFunction_atomic_json_dump
Atomically write JSON to avoid NFS partial/corrupt writes.
sgs/data/dataset_types.py:10
↓ 5 callersMethod_auth_dependency
(self, token: Optional[str] = None)
sgs/utils/server.py:333
↓ 5 callersMethod_headers
(self)
sgs/utils/server.py:538
↓ 5 callersMethodprocess_print
(self, logs, **kwargs)
sgs/verification/prover/workers/search.py:44
↓ 5 callersFunctionquery_model_batch
( prompts: List[str], model_config: ModelConfig, resources_config: ResourcesConfig, mode: Quer
sgs/models/query.py:108
↓ 5 callersMethodresults
Copy of results dict: task_id -> result.
sgs/utils/server.py:252
↓ 5 callersMethodrun
(self)
sgs/pipeline/full_pipeline.py:170
↓ 4 callersFunction_autolabel
(bar_container)
sgs/utils/monitor.py:914
↓ 4 callersMethod_update_value
(self, gamma)
sgs/verification/prover/algorithms/rmax_tree_search.py:110
↓ 4 callersMethodadd_tasks
Add string tasks. Returns the list of generated task_ids.
sgs/utils/server.py:238
↓ 4 callersMethodcheck_parallel_jobs
Polls parallel jobs and cleans up after finished jobs. For now we only fun eval jobs in parallel so this is all we need to do.
sgs/pipeline/full_pipeline.py:138
↓ 4 callersFunctionconvert_pos
(lines, byte_idx)
sgs/verification/prover/lean/ast_parser.py:13
↓ 4 callersFunctionget_datetime
(readable=False)
sgs/verification/prover/utils.py:63
↓ 4 callersMethodis_idle
(self)
sgs/verification/prover/utils.py:98
↓ 4 callersFunctionprocess_modifier
(file_content, declaration, tactics)
sgs/verification/prover/lean/ast_parser.py:445
↓ 4 callersMethodput
(self, item)
sgs/verification/prover/workers/scheduler.py:43
↓ 4 callersMethodreset_state
(self, num_checkpoints: int)
sgs/models/query_local.py:189
↓ 4 callersMethodrun
(self)
sgs/verification/prover/lean/verifier.py:621
↓ 4 callersMethodsave
(self, path: str)
sgs/data/dataset_types.py:392
↓ 4 callersMethodstart
(self)
sgs/utils/server.py:208
↓ 4 callersMethodsubmit_all_request
(self, data_list)
sgs/verification/prover/workers/scheduler.py:83
↓ 4 callersMethodsubmit_util_report
( payload: SubmitUtilReport, authorization: Optional[str] = Header(None) )
sgs/utils/server.py:505
↓ 4 callersMethodutil_reports
Copy of util_reports list.
sgs/utils/server.py:257
↓ 4 callersFunctionverify_lean4_file
( code, lake_path=DEFAULT_LAKE_PATH, lean_workspace=DEFAULT_LEAN_WORKSPACE, last_env=None,
sgs/verification/prover/lean/verifier.py:398
↓ 3 callersMethod__init__
(self, idx, task_queue, request_statuses, lock, extra_args=AttrDict())
sgs/verification/prover/lean/verifier.py:599
↓ 3 callersMethod__post_init__
(self)
sgs/models/model_types.py:66
↓ 3 callersMethod_is_done_locked
(self)
sgs/utils/server.py:323
↓ 3 callersMethodclose
(self)
sgs/verification/prover/lean/verifier.py:693
↓ 3 callersFunctionfind_kind_name_theorem_lemma_abbrev_def_instance_inductive
(file_content, data)
sgs/verification/prover/lean/ast_parser.py:189
↓ 3 callersFunctionfinetune_model
Finetune a model on the train data. This function basically serves as a switcher between different trainign paths and submit it or not.
sgs/training/train.py:22
↓ 3 callersMethodfrom_dict
(cls, dict_data, parent=None)
sgs/verification/prover/algorithms/rmax_tree_search.py:64
↓ 3 callersFunctionget_job_start_and_end_times
Returns a list of (state, start_ts, end_ts) per attempt (chronological). Timestamps are Unix seconds as floats. end_ts is None if not finishe
sgs/utils/__init__.py:198
↓ 3 callersMethodget_tasks
(self, num_tasks: int = 1)
sgs/utils/server.py:544
↓ 3 callersMethodlaunch_workers
Launch a number of workers based on the resources config. This should be implemented by the subclass. If num_workers not giv
sgs/utils/server.py:133
↓ 3 callersFunctionload_eval_dataset
(eval_dataset: DatasetType)
sgs/data/load_dataset.py:40
↓ 3 callersFunctionload_jsonl_objects
(input_path)
sgs/verification/prover/utils.py:84
↓ 3 callersMethodreport_dead
(self, reason: Optional[str] = None)
sgs/utils/server.py:580
↓ 3 callersMethodsample
(self, data, **kwargs)
sgs/verification/prover/algorithms/sampling.py:9
↓ 3 callersFunctionterminate_repl
(proc)
sgs/verification/prover/lean/verifier.py:103
↓ 3 callersFunctionverify_lean_code
Send Lean code to the verifier and check if it passes. Args: verifier_address: The address of the verifier server. lean_code: A l
sgs/verification/verify_client.py:31
↓ 3 callersFunctionvllm_result_to_entropy
(result)
sgs/models/query_local.py:24
↓ 3 callersMethodwait_until_done
Block until all tasks are completed. Returns True if done, False if timeout.
sgs/utils/server.py:262
↓ 2 callersMethod_compute_summary
(self)
sgs/utils/monitor.py:612
↓ 2 callersFunction_parse_cpuset_list
(s: str)
sgs/utils/monitor.py:49
↓ 2 callersMethod_post_sample_info
(self, **kwargs)
sgs/verification/prover/algorithms/base.py:29
↓ 2 callersMethod_preprocess_data
(self, input_data)
sgs/verification/prover/algorithms/base.py:39
↓ 2 callersMethod_save_ckpt
(self, ckpt_dict: dict)
sgs/verification/prover/algorithms/rmax_tree_search.py:150
↓ 2 callersFunction_slurm_env
()
sgs/utils/monitor.py:100
↓ 2 callersMethodanalyze
Inputs: code (`str`): The code of formal proof. require_verification (`bool`, *optional*, defaults to True):
sgs/verification/prover/lean/proof.py:189
↓ 2 callersFunctioncleanup_submitit_job
(job: Job)
sgs/utils/__init__.py:185
↓ 2 callersFunctionconvert_line_col_to_char_idx
(lines, line, col)
sgs/verification/prover/lean/ast_parser.py:51
↓ 2 callersFunctionevaluate_prover
Evaluate a prover model. Args: prover_config: The config for the prover model. gen_resources_config: The resources config fo
sgs/training/evaluate.py:36
↓ 2 callersFunctionextract_guide_conclusion_complexity_score
(generation: str)
sgs/utils/prompts.py:244
↓ 2 callersFunctionextract_guide_redundancy_score
(generation: str)
sgs/utils/prompts.py:229
↓ 2 callersFunctionextract_guide_relevance_score
(generation: str)
sgs/utils/prompts.py:261
↓ 2 callersFunctionfind_proof
(file_content, data)
sgs/verification/prover/lean/ast_parser.py:396
↓ 2 callersFunctionfind_statement_theorem_lemma_abbrev
(file_content, data)
sgs/verification/prover/lean/ast_parser.py:301
↓ 2 callersMethodget_all_request_outputs
(self, request_id_list)
sgs/verification/prover/workers/scheduler.py:101
↓ 2 callersMethodget_conjecturer_dataset_name
(self, iteration: int)
sgs/pipeline/full_pipeline.py:286
↓ 2 callersMethodget_prover_dataset_name
(self, iteration: int)
sgs/pipeline/full_pipeline.py:289
↓ 2 callersMethodget_request_status
(self, request_id)
sgs/verification/prover/workers/scheduler.py:87
↓ 2 callersMethodlaunch_master_worker
Launches as many workers on master machine as there are GPUs available
sgs/models/query_server.py:38
↓ 2 callersFunctionlean4_parser
(file_content, data)
sgs/verification/prover/lean/ast_parser.py:1676
↓ 2 callersFunctionlength_reward
(model_config, generation_tokens: List[int])
sgs/pipeline/step2_train.py:57
↓ 2 callersFunctionload_config
(fname)
sgs/verification/prover/utils.py:71
↓ 2 callersFunctionquery_repl
(proc, message_str)
sgs/verification/prover/lean/verifier.py:166
↓ 2 callersMethodreport
(self, num_examples: Optional[int] = None)
sgs/utils/monitor.py:293
↓ 2 callersMethodreset
(self)
sgs/verification/prover/utils.py:101
↓ 2 callersMethodstart_new_job
(self, gamma, first_node=True)
sgs/verification/prover/algorithms/rmax_tree_search.py:94
↓ 2 callersMethodsubmit_results
(self, results_model: SubmitResults)
sgs/utils/server.py:564
↓ 2 callersMethodto_dict
(self)
sgs/verification/prover/algorithms/rmax_tree_search.py:55
↓ 2 callersMethodto_dict
(self)
sgs/pipeline/config.py:112
↓ 2 callersFunctionto_ts
(s: str)
sgs/utils/__init__.py:220
↓ 2 callersMethodupdate_code
(self, code)
sgs/verification/prover/algorithms/rmax_tree_search.py:41
↓ 1 callersMethod__init__
( self, worker_resources_config: ResourcesConfig, monitor: bool = False, allow
sgs/utils/server.py:77
↓ 1 callersMethod__init__
(self, **data)
sgs/data/dataset_types.py:84
next →1–100 of 331, ranked by callers