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
↓ 238 callers
Method
get
(self, no_wait=False)
sgs/verification/prover/workers/scheduler.py:47
↓ 48 callers
Function
get_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 callers
Function
process_lean_file
(file_contents, byte_idx_1, byte_idx_2)
sgs/verification/prover/lean/ast_parser.py:6
↓ 21 callers
Function
extract_positions
(node)
sgs/verification/prover/lean/ast_parser.py:71
↓ 18 callers
Method
close
(self)
sgs/verification/prover/workers/scheduler.py:60
↓ 16 callers
Method
load
(cls, path: str)
sgs/data/dataset_types.py:106
↓ 13 callers
Function
get_submitit_executor
( resources_config: ResourcesConfig, log_dir: Optional[str] = None, )
sgs/utils/__init__.py:103
↓ 13 callers
Function
log_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 callers
Function
extract_vals
(data)
sgs/verification/prover/lean/ast_parser.py:85
↓ 11 callers
Function
_assert_and_get_file_ext
Return the lowercase file extension (including dot) and assert it's supported.
sgs/data/dataset_types.py:26
↓ 11 callers
Function
get_deepseek_prover_v2_prover_config
()
sgs/utils/experiment_utils.py:149
↓ 10 callers
Function
example_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 callers
Method
start
(self, **kwargs)
sgs/verification/prover/utils.py:105
↓ 9 callers
Function
_read_file
(path: str)
sgs/utils/monitor.py:41
↓ 8 callers
Function
get_deepseek_prover_v2_conjecturer_config
( mode: ConjecturerSetup, )
sgs/utils/experiment_utils.py:168
↓ 8 callers
Function
get_standard_training_config
()
sgs/utils/experiment_utils.py:189
↓ 8 callers
Function
log_utilization_report_timings
( reports: Sequence[UtilizationReport | None], wandb_run: wandb.Run | None, wandb_prefix: str, )
sgs/utils/monitor.py:938
↓ 8 callers
Function
run_pipeline
(pipeline_config: PipelineConfig)
sgs/pipeline/full_pipeline.py:733
↓ 7 callers
Method
result
(self)
sgs/verification/prover/lean/proof.py:13
↓ 6 callers
Function
chunk_list
Split list into exactly n_chunks chunks, distributing items as evenly as possible.
sgs/utils/__init__.py:79
↓ 6 callers
Function
export
()
sgs/utils/__init__.py:237
↓ 6 callers
Function
log_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 callers
Method
save
(self, path: str)
sgs/data/dataset_types.py:122
↓ 6 callers
Method
stop_and_report
( self, num_examples: Optional[int] = None, )
sgs/utils/monitor.py:333
↓ 5 callers
Function
_atomic_json_dump
Atomically write JSON to avoid NFS partial/corrupt writes.
sgs/data/dataset_types.py:10
↓ 5 callers
Method
_auth_dependency
(self, token: Optional[str] = None)
sgs/utils/server.py:333
↓ 5 callers
Method
_headers
(self)
sgs/utils/server.py:538
↓ 5 callers
Method
process_print
(self, logs, **kwargs)
sgs/verification/prover/workers/search.py:44
↓ 5 callers
Function
query_model_batch
( prompts: List[str], model_config: ModelConfig, resources_config: ResourcesConfig, mode: Quer
sgs/models/query.py:108
↓ 5 callers
Method
results
Copy of results dict: task_id -> result.
sgs/utils/server.py:252
↓ 5 callers
Method
run
(self)
sgs/pipeline/full_pipeline.py:170
↓ 4 callers
Function
_autolabel
(bar_container)
sgs/utils/monitor.py:914
↓ 4 callers
Method
_update_value
(self, gamma)
sgs/verification/prover/algorithms/rmax_tree_search.py:110
↓ 4 callers
Method
add_tasks
Add string tasks. Returns the list of generated task_ids.
sgs/utils/server.py:238
↓ 4 callers
Method
check_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 callers
Function
convert_pos
(lines, byte_idx)
sgs/verification/prover/lean/ast_parser.py:13
↓ 4 callers
Function
get_datetime
(readable=False)
sgs/verification/prover/utils.py:63
↓ 4 callers
Method
is_idle
(self)
sgs/verification/prover/utils.py:98
↓ 4 callers
Function
process_modifier
(file_content, declaration, tactics)
sgs/verification/prover/lean/ast_parser.py:445
↓ 4 callers
Method
put
(self, item)
sgs/verification/prover/workers/scheduler.py:43
↓ 4 callers
Method
reset_state
(self, num_checkpoints: int)
sgs/models/query_local.py:189
↓ 4 callers
Method
run
(self)
sgs/verification/prover/lean/verifier.py:621
↓ 4 callers
Method
save
(self, path: str)
sgs/data/dataset_types.py:392
↓ 4 callers
Method
start
(self)
sgs/utils/server.py:208
↓ 4 callers
Method
submit_all_request
(self, data_list)
sgs/verification/prover/workers/scheduler.py:83
↓ 4 callers
Method
submit_util_report
( payload: SubmitUtilReport, authorization: Optional[str] = Header(None) )
sgs/utils/server.py:505
↓ 4 callers
Method
util_reports
Copy of util_reports list.
sgs/utils/server.py:257
↓ 4 callers
Function
verify_lean4_file
( code, lake_path=DEFAULT_LAKE_PATH, lean_workspace=DEFAULT_LEAN_WORKSPACE, last_env=None,
sgs/verification/prover/lean/verifier.py:398
↓ 3 callers
Method
__init__
(self, idx, task_queue, request_statuses, lock, extra_args=AttrDict())
sgs/verification/prover/lean/verifier.py:599
↓ 3 callers
Method
__post_init__
(self)
sgs/models/model_types.py:66
↓ 3 callers
Method
_is_done_locked
(self)
sgs/utils/server.py:323
↓ 3 callers
Method
close
(self)
sgs/verification/prover/lean/verifier.py:693
↓ 3 callers
Function
find_kind_name_theorem_lemma_abbrev_def_instance_inductive
(file_content, data)
sgs/verification/prover/lean/ast_parser.py:189
↓ 3 callers
Function
finetune_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 callers
Method
from_dict
(cls, dict_data, parent=None)
sgs/verification/prover/algorithms/rmax_tree_search.py:64
↓ 3 callers
Function
get_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 callers
Method
get_tasks
(self, num_tasks: int = 1)
sgs/utils/server.py:544
↓ 3 callers
Method
launch_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 callers
Function
load_eval_dataset
(eval_dataset: DatasetType)
sgs/data/load_dataset.py:40
↓ 3 callers
Function
load_jsonl_objects
(input_path)
sgs/verification/prover/utils.py:84
↓ 3 callers
Method
report_dead
(self, reason: Optional[str] = None)
sgs/utils/server.py:580
↓ 3 callers
Method
sample
(self, data, **kwargs)
sgs/verification/prover/algorithms/sampling.py:9
↓ 3 callers
Function
terminate_repl
(proc)
sgs/verification/prover/lean/verifier.py:103
↓ 3 callers
Function
verify_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 callers
Function
vllm_result_to_entropy
(result)
sgs/models/query_local.py:24
↓ 3 callers
Method
wait_until_done
Block until all tasks are completed. Returns True if done, False if timeout.
sgs/utils/server.py:262
↓ 2 callers
Method
_compute_summary
(self)
sgs/utils/monitor.py:612
↓ 2 callers
Function
_parse_cpuset_list
(s: str)
sgs/utils/monitor.py:49
↓ 2 callers
Method
_post_sample_info
(self, **kwargs)
sgs/verification/prover/algorithms/base.py:29
↓ 2 callers
Method
_preprocess_data
(self, input_data)
sgs/verification/prover/algorithms/base.py:39
↓ 2 callers
Method
_save_ckpt
(self, ckpt_dict: dict)
sgs/verification/prover/algorithms/rmax_tree_search.py:150
↓ 2 callers
Function
_slurm_env
()
sgs/utils/monitor.py:100
↓ 2 callers
Method
analyze
Inputs: code (`str`): The code of formal proof. require_verification (`bool`, *optional*, defaults to True):
sgs/verification/prover/lean/proof.py:189
↓ 2 callers
Function
cleanup_submitit_job
(job: Job)
sgs/utils/__init__.py:185
↓ 2 callers
Function
convert_line_col_to_char_idx
(lines, line, col)
sgs/verification/prover/lean/ast_parser.py:51
↓ 2 callers
Function
evaluate_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 callers
Function
extract_guide_conclusion_complexity_score
(generation: str)
sgs/utils/prompts.py:244
↓ 2 callers
Function
extract_guide_redundancy_score
(generation: str)
sgs/utils/prompts.py:229
↓ 2 callers
Function
extract_guide_relevance_score
(generation: str)
sgs/utils/prompts.py:261
↓ 2 callers
Function
find_proof
(file_content, data)
sgs/verification/prover/lean/ast_parser.py:396
↓ 2 callers
Function
find_statement_theorem_lemma_abbrev
(file_content, data)
sgs/verification/prover/lean/ast_parser.py:301
↓ 2 callers
Method
get_all_request_outputs
(self, request_id_list)
sgs/verification/prover/workers/scheduler.py:101
↓ 2 callers
Method
get_conjecturer_dataset_name
(self, iteration: int)
sgs/pipeline/full_pipeline.py:286
↓ 2 callers
Method
get_prover_dataset_name
(self, iteration: int)
sgs/pipeline/full_pipeline.py:289
↓ 2 callers
Method
get_request_status
(self, request_id)
sgs/verification/prover/workers/scheduler.py:87
↓ 2 callers
Method
launch_master_worker
Launches as many workers on master machine as there are GPUs available
sgs/models/query_server.py:38
↓ 2 callers
Function
lean4_parser
(file_content, data)
sgs/verification/prover/lean/ast_parser.py:1676
↓ 2 callers
Function
length_reward
(model_config, generation_tokens: List[int])
sgs/pipeline/step2_train.py:57
↓ 2 callers
Function
load_config
(fname)
sgs/verification/prover/utils.py:71
↓ 2 callers
Function
query_repl
(proc, message_str)
sgs/verification/prover/lean/verifier.py:166
↓ 2 callers
Method
report
(self, num_examples: Optional[int] = None)
sgs/utils/monitor.py:293
↓ 2 callers
Method
reset
(self)
sgs/verification/prover/utils.py:101
↓ 2 callers
Method
start_new_job
(self, gamma, first_node=True)
sgs/verification/prover/algorithms/rmax_tree_search.py:94
↓ 2 callers
Method
submit_results
(self, results_model: SubmitResults)
sgs/utils/server.py:564
↓ 2 callers
Method
to_dict
(self)
sgs/verification/prover/algorithms/rmax_tree_search.py:55
↓ 2 callers
Method
to_dict
(self)
sgs/pipeline/config.py:112
↓ 2 callers
Function
to_ts
(s: str)
sgs/utils/__init__.py:220
↓ 2 callers
Method
update_code
(self, code)
sgs/verification/prover/algorithms/rmax_tree_search.py:41
↓ 1 callers
Method
__init__
( self, worker_resources_config: ResourcesConfig, monitor: bool = False, allow
sgs/utils/server.py:77
↓ 1 callers
Method
__init__
(self, **data)
sgs/data/dataset_types.py:84
next →
1–100 of 331, ranked by callers