MCPcopy Create free account

hub / github.com/cxcscmu/AutoGEO / functions

Functions1,082 in github.com/cxcscmu/AutoGEO

↓ 2 callersFunction_normalize_scores
(scores: list[float])
open-r1/src/open_r1/rewards.py:267
↓ 2 callersMethod_parse_eval_args
r"""Build and validate the evaluation arguments.
LLaMA-Factory/src/llamafactory/webui/runner.py:294
↓ 2 callersMethod_parse_example
r"""Parse eval example. input: a dict with keys {"question", "A", "B", "C", "D", "answer"} output: a tuple of (prompt, response).
LLaMA-Factory/src/llamafactory/eval/template.py:27
↓ 2 callersMethod_parse_train_args
r"""Build and validate the training arguments.
LLaMA-Factory/src/llamafactory/webui/runner.py:128
↓ 2 callersMethod_preprocess_image
r"""Pre-process a single image.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:219
↓ 2 callersMethod_preview
r"""Preview the training commands.
LLaMA-Factory/src/llamafactory/webui/runner.py:346
↓ 2 callersMethod_process_args
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", processor: Optional["Pro
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:73
↓ 2 callersFunction_process_request
( request: "ChatCompletionRequest", )
LLaMA-Factory/src/llamafactory/api/chat.py:73
↓ 2 callersFunction_register_eval_template
(name: str, system: str, choice: str, answer: str)
LLaMA-Factory/src/llamafactory/eval/template.py:56
↓ 2 callersMethod_release_endpoint
(self, endpoint)
open-r1/src/open_r1/utils/competitive_programming/piston_client.py:98
↓ 2 callersMethod_reset
(self, max_steps: int = 0)
LLaMA-Factory/src/llamafactory/train/callbacks.py:198
↓ 2 callersMethod_send_request
(self, endpoint, route, data=None, method="post")
open-r1/src/open_r1/utils/competitive_programming/piston_client.py:101
↓ 2 callersMethod_timing
(self, cur_steps: int)
LLaMA-Factory/src/llamafactory/train/callbacks.py:205
↓ 2 callersMethodachat
r"""Asynchronously get a list of responses of the chat model.
LLaMA-Factory/src/llamafactory/chat/chat_model.py:81
↓ 2 callersMethodaget_scores
r"""Asynchronously get a list of scores of the reward model.
LLaMA-Factory/src/llamafactory/chat/chat_model.py:138
↓ 2 callersMethodastream_chat
r"""Asynchronously get the response token-by-token of the chat model.
LLaMA-Factory/src/llamafactory/chat/chat_model.py:113
↓ 2 callersFunctionbatched
Batch data into lists of length n. The last batch may be shorter.
open-r1/src/open_r1/utils/competitive_programming/utils.py:4
↓ 2 callersFunctioncalculate_tps
r"""Calculate effective tokens per second.
LLaMA-Factory/src/llamafactory/extras/misc.py:108
↓ 2 callersMethodconcatenated_forward
( self, model: "PreTrainedModel", batch: dict[str, "torch.Tensor"] )
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:169
↓ 2 callersMethodconcatenated_forward
r"""Compute the sum log probabilities of the labels under given logits if loss_type is not IPO, ORPO or SimPO. Otherwise the average log prob
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:180
↓ 2 callersFunctioncount_parameters
r"""Return the number of trainable parameters and number of all parameters in the model.
LLaMA-Factory/src/llamafactory/extras/misc.py:121
↓ 2 callersFunctioncreate_app
(chat_model: "ChatModel")
LLaMA-Factory/src/llamafactory/api/app.py:69
↓ 2 callersFunctioncreate_chat_box
( engine: "Engine", visible: bool = False )
LLaMA-Factory/src/llamafactory/webui/components/chatbot.py:48
↓ 2 callersFunctioncreate_preview_box
(dataset_dir: "gr.Textbox", dataset: "gr.Dropdown")
LLaMA-Factory/src/llamafactory/webui/components/data.py:86
↓ 2 callersFunctioncreate_ui
(demo_mode: bool = False)
LLaMA-Factory/src/llamafactory/webui/interface.py:37
↓ 2 callersFunctiondictify
(data: "BaseModel")
LLaMA-Factory/src/llamafactory/api/common.py:23
↓ 2 callersFunctionexport_model
(args: Optional[dict[str, Any]] = None)
LLaMA-Factory/src/llamafactory/train/tuner.py:113
↓ 2 callersMethodextract_tool
r"""Extract tool message.
LLaMA-Factory/src/llamafactory/data/template.py:85
↓ 2 callersFunctionfind_expanded_modules
r"""Find the modules in the expanded blocks to apply lora.
LLaMA-Factory/src/llamafactory/model/model_utils/misc.py:55
↓ 2 callersMethodforward
r"""Run forward pass and computes the log probabilities.
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:134
↓ 2 callersFunctionget_batch_logps
r"""Compute the log probabilities of the given labels under the given logits. Returns: logps: A tensor of shape (batch_size,) containing
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:587
↓ 2 callersFunctionget_cosine_scaled_reward
( min_value_wrong: float = -1.0, max_value_wrong: float = -0.5, min_value_correct: float = 0.5,
open-r1/src/open_r1/rewards.py:576
↓ 2 callersFunctionget_dataset_module
r"""Convert dataset or dataset dict to dataset module.
LLaMA-Factory/src/llamafactory/data/data_utils.py:121
↓ 2 callersFunctionget_num_words
Count number of words in a tokenized line (words longer than 2 characters). Args: line: List of word tokens Returns
autogeo/evaluation/metrics/geo_score.py:6
↓ 2 callersFunctionget_num_words
(line)
open-r1/src/open_r1/GEO/evaluation_metrics.py:10
↓ 2 callersMethodget_ollama_modelfile
r"""Return the ollama modelfile. TODO: support function calling.
LLaMA-Factory/src/llamafactory/data/template.py:310
↓ 2 callersFunctionget_piston_client_from_env
(session=None)
open-r1/src/open_r1/utils/competitive_programming/piston_client.py:17
↓ 2 callersFunctionget_rewrite_method_name
Generate standardized rewrite method name for storing results. Args: dataset: Name of the dataset (Researchy-GEO, E-commerce, or GEO-
autogeo/config.py:99
↓ 2 callersFunctionget_rule_merging_prompt
Generate prompt for merging rules. Args: rules_list: List of rules to merge Returns: Formatted prompt stri
autogeo/rules/merger.py:7
↓ 2 callersFunctionget_seqlens_in_batch
r"""Get the sequnce lengths in the current batch. e.g. ```python # input [ [1, 1, 2, 2, 2, 0], [1, 2, 2, 3, 3, 3],
LLaMA-Factory/src/llamafactory/model/model_utils/packing.py:55
↓ 2 callersFunctionget_tool_utils
(name: str)
LLaMA-Factory/src/llamafactory/data/tool_utils.py:315
↓ 2 callersFunctiongeu_score
Calculate and save GEU scores for documents. Args: num_examples: Number of examples to process (None for all) engine_llm: LLM
autogeo/evaluation/metrics/geu_score.py:712
↓ 2 callersFunctioninfer_optim_dtype
r"""Infer the optimal dtype according to the model_dtype and device compatibility.
LLaMA-Factory/src/llamafactory/extras/misc.py:204
↓ 2 callersFunctionis_e2b_available
()
open-r1/src/open_r1/utils/import_utils.py:22
↓ 2 callersFunctionis_fastapi_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:49
↓ 2 callersFunctionis_matplotlib_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:65
↓ 2 callersFunctionis_requests_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:77
↓ 2 callersFunctionis_sglang_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:102
↓ 2 callersFunctionload_args
r"""Load the training configuration from config path.
LLaMA-Factory/src/llamafactory/webui/common.py:149
↓ 2 callersFunctionload_valuehead_params
r"""Load value head parameters from Hugging Face Hub or local disk. Returns: dict with keys `v_head.summary.weight` and `v_head.summary.bias`.
LLaMA-Factory/src/llamafactory/model/model_utils/valuehead.py:33
↓ 2 callersMethodlog_progress
Log progress information. Args: current: Current progress total: Total items item_name: Name of i
autogeo/utils/logger.py:85
↓ 2 callersFunctionmake_request_with_retry
Make a request with retry logic for rate limiting.
autogeo/loader/github_loader.py:41
↓ 2 callersFunctionnested_detach
r"""Detach `tensors` (even if it's a nested list/tuple/dict of tensors).
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:634
↓ 2 callersFunctionnormalize_string
Basic string normalization.
open-r1/scripts/decontaminate.py:36
↓ 2 callersFunctionpatch_valuehead_model
()
LLaMA-Factory/src/llamafactory/train/test_utils.py:113
↓ 2 callersFunctionprepare_4d_attention_mask
r"""Expand 2d attention mask to 4d attention mask. Expand the attention mask with indices from (batch_size, seq_len) to (batch_size, 1, seq_len,
LLaMA-Factory/src/llamafactory/data/collator.py:41
↓ 2 callersFunctionread_args
r"""Get arguments from the command line or a config file.
LLaMA-Factory/src/llamafactory/hparams/parser.py:58
↓ 2 callersFunctionreconstruct_directory_split
Reconstruct dataset split into multiple JSON files in a directory. Args: dataset_split: Dataset split from Hugging Face datasets
autogeo/loader/data_loader.py:31
↓ 2 callersFunctionreplace_model
r"""Replace the default/reward modules in the model. The model is already unwrapped.
LLaMA-Factory/src/llamafactory/train/ppo/ppo_utils.py:43
↓ 2 callersFunctionrun_benchmark_jobs
(training_args: Union["SFTConfig", "GRPOConfig"], model_args: "ModelConfig")
open-r1/src/open_r1/utils/evaluation.py:106
↓ 2 callersFunctionrun_catch_exceptions
(task)
open-r1/src/open_r1/rewards.py:763
↓ 2 callersMethodrun_code
Execute multiple scripts using MorphCloud via the router. Args: scripts: List of code scripts to execute. la
open-r1/src/open_r1/utils/routed_morph.py:48
↓ 2 callersFunctionsave_args
r"""Save the training configuration to config path.
LLaMA-Factory/src/llamafactory/webui/common.py:158
↓ 2 callersFunctionscore_subtask
Scores all test cases in a subtask. Args: client: PistonClient instance for executing code subtask: Dictionary containing su
open-r1/src/open_r1/utils/competitive_programming/ioi_scoring.py:164
↓ 2 callersMethodsend_execute
(self, data, language="cms_ioi", max_retries=5)
open-r1/src/open_r1/utils/competitive_programming/piston_client.py:137
↓ 2 callersFunctionsetup_fs
r"""Set up a filesystem object based on the path protocol.
LLaMA-Factory/src/llamafactory/data/data_utils.py:145
↓ 2 callersFunctionsmooth
r"""EMA implementation according to TensorBoard.
LLaMA-Factory/src/llamafactory/extras/ploting.py:34
↓ 2 callersMethodto_dict
Converts the SubtaskResult to a dictionary representation. Returns: dict: Dictionary containing all subtask result data
open-r1/src/open_r1/utils/competitive_programming/ioi_scoring.py:91
↓ 2 callersFunctionword_ngrams
Generate word-level n-grams from text.
open-r1/scripts/decontaminate.py:45
↓ 2 callersMethodzero_grad
(self, set_to_none: bool = True)
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:77
↓ 1 callersMethod__init__
(self, config: "LlavaConfig")
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:85
↓ 1 callersMethod__init__
(self, manager: "Manager", demo_mode: bool = False, lazy_init: bool = True)
LLaMA-Factory/src/llamafactory/webui/chatter.py:81
↓ 1 callersMethod__init__
r"""Init a runner.
LLaMA-Factory/src/llamafactory/webui/runner.py:58
↓ 1 callersMethod__post_init__
(self)
LLaMA-Factory/src/llamafactory/data/formatter.py:128
↓ 1 callersFunction_apply_llama_patch
()
LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:352
↓ 1 callersMethod_compile_code
Compile the code on the instance. Args: instance: The MorphCloud instance Returns: InstanceExecResp
open-r1/src/open_r1/utils/competitive_programming/morph_client.py:166
↓ 1 callersFunction_create_adam_mini_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", )
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:468
↓ 1 callersFunction_create_apollo_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", finetuning_args: "FinetuningArgume
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:283
↓ 1 callersFunction_create_badam_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", finetuning_args: "FinetuningArgume
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:407
↓ 1 callersFunction_create_galore_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", finetuning_args: "FinetuningArgume
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:195
↓ 1 callersFunction_create_loraplus_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", finetuning_args: "FinetuningArgume
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:367
↓ 1 callersFunction_create_muon_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", )
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:493
↓ 1 callersMethod_encode_data_example
( self, prompt: list[dict[str, str]], response: list[dict[str, str]], system:
LLaMA-Factory/src/llamafactory/data/processor/pairwise.py:31
↓ 1 callersMethod_encode_data_example
( self, prompt: list[dict[str, str]], response: list[dict[str, str]], kl_respo
LLaMA-Factory/src/llamafactory/data/processor/feedback.py:31
↓ 1 callersMethod_encode_data_example
( self, prompt: list[dict[str, str]], response: list[dict[str, str]], system:
LLaMA-Factory/src/llamafactory/data/processor/unsupervised.py:31
↓ 1 callersMethod_execute
Internal implementation of execute with no retry logic. Args: data: Dictionary containing execution data Return
open-r1/src/open_r1/utils/competitive_programming/morph_client.py:250
↓ 1 callersMethod_execute_with_instance
Execute code using a prepared instance. Args: instance: Ready MorphCloud instance data: Execution data te
open-r1/src/open_r1/utils/competitive_programming/morph_client.py:222
↓ 1 callersFunction_extract_single_status
Determines the status code based on the score and feedback message. Args: score: The numeric score (0.0 to 1.0) feedback: Th
open-r1/src/open_r1/utils/competitive_programming/ioi_scoring.py:110
↓ 1 callersFunction_filter_rules
Filter rules to remove query-specific dependencies and keep only general principles. Args: rules_list: List of rules to filter
autogeo/rules/merger.py:238
↓ 1 callersMethod_finalize
r"""Clean the cached memory and resets the runner.
LLaMA-Factory/src/llamafactory/webui/runner.py:117
↓ 1 callersFunction_fix_json_string
Fix common JSON issues in LLM responses, especially unescaped quotes. Args: text: JSON string that may have formatting issues
autogeo/rules/extractor.py:37
↓ 1 callersFunction_format_response
r"""Post-process the response text. Based on: https://huggingface.co/spaces/Lyte/DeepSeek-R1-Distill-Qwen-1.5B-Demo-GGUF/blob/main/app.py
LLaMA-Factory/src/llamafactory/webui/chatter.py:46
↓ 1 callersFunction_get_anthropic_client
Get or create Anthropic client. Returns: Anthropic client instance Raises: ValueError: If ANTHROPIC_API_KEY not
autogeo/utils/anthropic.py:17
↓ 1 callersMethod_get_compile_script
Get the compile script content.
open-r1/src/open_r1/utils/competitive_programming/morph_client.py:408
↓ 1 callersFunction_get_dataset_processor
r"""Return the corresponding dataset processor.
LLaMA-Factory/src/llamafactory/data/loader.py:190
↓ 1 callersFunction_get_default_logging_level
r"""Return the default logging level.
LLaMA-Factory/src/llamafactory/extras/logging.py:80
↓ 1 callersFunction_get_gemma3_token_type_ids
r"""Get gemma3 token type ids for computing loss. Returns: batch_token_type_ids: shape (batch_size, seq_length)
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:110
↓ 1 callersMethod_get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1424
↓ 1 callersMethod_get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1503
↓ 1 callersMethod_get_ollama_template
r"""Return the ollama template.
LLaMA-Factory/src/llamafactory/data/template.py:298
← previousnext →201–300 of 1,082, ranked by callers