MCPcopy Create free account

hub / github.com/cxcscmu/AutoGEO / functions

Functions1,082 in github.com/cxcscmu/AutoGEO

↓ 1 callersFunctionfix_cpp_includes
(source_code)
open-r1/src/open_r1/utils/competitive_programming/code_patcher.py:76
↓ 1 callersMethodfix_jinja_template
r"""Replace the jinja template in the tokenizer.
LLaMA-Factory/src/llamafactory/data/template.py:265
↓ 1 callersFunctionfix_python3_imports
Fix common import and function changes between Python 3 versions Args: source_code (str): The Python source code to update Retu
open-r1/src/open_r1/utils/competitive_programming/code_patcher.py:4
↓ 1 callersMethodfix_special_tokens
r"""Add eos token and pad token to the tokenizer.
LLaMA-Factory/src/llamafactory/data/template.py:184
↓ 1 callersMethodfunction_formatter
r"""Generate the assistant message including all the tool calls.
LLaMA-Factory/src/llamafactory/data/tool_utils.py:73
↓ 1 callersFunctiongen_cmd
r"""Generate CLI commands for previewing.
LLaMA-Factory/src/llamafactory/webui/common.py:177
↓ 1 callersFunctiongen_loss_plot
r"""Plot loss curves in LlamaBoard.
LLaMA-Factory/src/llamafactory/extras/ploting.py:49
↓ 1 callersFunctiongenerate_answer
(model, query: str, sources: list[str], temperature: float = 0.5)
open-r1/src/open_r1/rewards.py:131
↓ 1 callersFunctiongenerate_completion
(session, prompt, args)
open-r1/scripts/generate_reasoning.py:21
↓ 1 callersFunctiongenerate_inference_with_transformers
Generate inference results and directly write to data chunks (like api_rewrite_documents). Args: model_path: Path to the model checkp
autogeo/rewriters/mini.py:217
↓ 1 callersFunctiongenerate_inference_with_vllm
Generate inference results using vLLM engine (optimized for speed). Args: model_path: Path to the model checkpoint data_dir:
autogeo/rewriters/mini.py:26
↓ 1 callersFunctionget_console_scripts
()
LLaMA-Factory/setup.py:36
↓ 1 callersFunctionget_custom_gradient_checkpointing_func
r"""Only applies gradient checkpointing to trainable layers.
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:78
↓ 1 callersFunctionget_dataset_list
r"""Get the attributes of the datasets.
LLaMA-Factory/src/llamafactory/data/parser.py:93
↓ 1 callersFunctionget_default_config
Get default configuration for Researchy-GEO dataset. Returns: Configuration dictionary
autogeo/loader/data_loader.py:7
↓ 1 callersMethodget_elapsed_time
Get elapsed time since start. Returns: Formatted elapsed time string
autogeo/utils/logger.py:172
↓ 1 callersMethodget_elem_iter
r"""Return an iterator over all elements with their names.
LLaMA-Factory/src/llamafactory/webui/manager.py:41
↓ 1 callersFunctionget_eval_args
(args: Optional[Union[dict[str, Any], list[str]]] = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:452
↓ 1 callersFunctionget_explanation_prompt
Generate prompt for LLM to explain document preference. Args: query: User query text document_a: First document text
autogeo/rules/explainer.py:5
↓ 1 callersFunctionget_explanation_response
Get explanation response from LLM for document preference. Args: query: User query text document_a: First document text
autogeo/rules/explainer.py:56
↓ 1 callersFunctionget_extracted_rules
Extract rules from explanation text using LLM. Args: explanation_text: Explanation text from LLM winner: Winner document
autogeo/rules/extractor.py:117
↓ 1 callersFunctionget_generated_contest_tests
(contest_id: str)
open-r1/src/open_r1/utils/competitive_programming/cf_scoring.py:59
↓ 1 callersFunctionget_generated_tests
(problem_id: str)
open-r1/src/open_r1/utils/competitive_programming/cf_scoring.py:89
↓ 1 callersFunctionget_gpu_count_for_vllm
vLLM enforces a constraint that the number of attention heads must be divisible by the number of GPUs and 64 must be divisible by the number of GPUs.
open-r1/src/open_r1/utils/hub.py:121
↓ 1 callersMethodget_id_by_elem
r"""Get id by element.
LLaMA-Factory/src/llamafactory/webui/manager.py:53
↓ 1 callersMethodget_inputs
r"""Generate model's responses given queries.
LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:338
↓ 1 callersFunctionget_logger
r"""Return a logger with the specified name. It it not supposed to be accessed externally.
LLaMA-Factory/src/llamafactory/extras/logging.py:120
↓ 1 callersFunctionget_logits_processor
r"""Get logits processor that removes NaN and Inf logits.
LLaMA-Factory/src/llamafactory/extras/misc.py:178
↓ 1 callersFunctionget_merged_rules
Merge and process rules through hierarchical merging, filtering, and contradiction detection. Args: rules_list: List of rules to m
autogeo/rules/merger.py:278
↓ 1 callersFunctionget_model_path
r"""Get the model path according to the model name.
LLaMA-Factory/src/llamafactory/webui/common.py:98
↓ 1 callersFunctionget_morph_client_from_env
Creates a MorphCloudExecutionClient instance using environment variables. Environment variables: MORPH_API_KEY: API key for MorphClo
open-r1/src/open_r1/utils/competitive_programming/morph_client.py:715
↓ 1 callersFunctionget_param_count_from_repo_id
Function to get model param counts from safetensors metadata or find patterns like 42m, 1.5b, 0.5m or products like 8x7b in a repo ID.
open-r1/src/open_r1/utils/hub.py:89
↓ 1 callersFunctionget_peak_memory
r"""Get the peak memory usage for the current device (in Bytes).
LLaMA-Factory/src/llamafactory/extras/misc.py:185
↓ 1 callersMethodget_projector
(self, module: "torch.nn.Module")
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:48
↓ 1 callersFunctionget_provider
Factory function to get the appropriate code execution provider. Args: provider_type: Type of provider to use ("e2b", "morph") **
open-r1/src/open_r1/utils/code_providers.py:339
↓ 1 callersFunctionget_ray_args
(args: Optional[Union[dict[str, Any], list[str]]] = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:201
↓ 1 callersFunctionget_ray_trainer
( training_function: Callable, train_loop_config: dict[str, Any], ray_args: "RayArguments", )
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:699
↓ 1 callersFunctionget_requires
()
LLaMA-Factory/setup.py:29
↓ 1 callersMethodget_rewards
r"""Compute scores using given reward model. Both inputs and outputs are put on CPU.
LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:376
↓ 1 callersFunctionget_rewards_from_server
r"""Get reward scores from the API server.
LLaMA-Factory/src/llamafactory/train/ppo/ppo_utils.py:34
↓ 1 callersFunctionget_rule_extraction_prompt
Generate prompt for extracting rules from explanation text. Args: explanation_text: Explanation text from LLM winner: Win
autogeo/rules/extractor.py:7
↓ 1 callersFunctionget_rule_filter_prompt
Generate prompt to filter rules, removing query-specific dependencies. Args: rule: Rule text that may contain query-specific refer
autogeo/rules/merger.py:47
↓ 1 callersFunctionget_slurm_piston_endpoints
Get list of active piston worker endpoints from squeue output
open-r1/src/open_r1/utils/competitive_programming/piston_client.py:201
↓ 1 callersMethodget_supported_runtimes
(self)
open-r1/src/open_r1/utils/competitive_programming/piston_client.py:121
↓ 1 callersFunctionget_swanlab_callback
r"""Get the callback for logging to SwanLab.
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:653
↓ 1 callersFunctionget_template
r"""Get the template name if the model is a chat/distill/instruct model.
LLaMA-Factory/src/llamafactory/webui/common.py:120
↓ 1 callersFunctionget_tensor_parallel_size
(model_name: str, revision: str = None, default_tp: int = 8)
open-r1/scripts/get_tensor_parallel_size.py:5
↓ 1 callersFunctionget_time
r"""Get current date and time.
LLaMA-Factory/src/llamafactory/webui/common.py:125
↓ 1 callersFunctionget_trainer_info
r"""Get training infomation for monitor. If do_train is True: Inputs: top.lang, train.output_path Outputs: train.output_box, trai
LLaMA-Factory/src/llamafactory/webui/control.py:98
↓ 1 callersFunctionget_unpad_data
r"""Prepare the indices and seqlens for flash attn varlen function. Returns: indices: indices of non-masked tokens from the flattened seq
LLaMA-Factory/src/llamafactory/model/model_utils/packing.py:81
↓ 1 callersFunctionget_unsloth_gradient_checkpointing_func
()
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:41
↓ 1 callersFunctionget_unsloth_peft_model
r"""Get the peft model for the pretrained model with unsloth. Used in training.
LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:68
↓ 1 callersFunctionget_version
()
LLaMA-Factory/setup.py:21
↓ 1 callersFunctiongreedy_knapsack
r"""Implement efficient greedy algorithm with binary search for the knapsack problem.
LLaMA-Factory/src/llamafactory/data/processor/processor_utils.py:54
↓ 1 callersFunctiongrpo_data_source_construct
Construct training data source for GRPO. Args: num_examples: Number of examples to process data_dir: Directory containing dat
autogeo/loader/grpo_data.py:66
↓ 1 callersFunctiongrpo_evaluation_construct
Construct evaluation data for GRPO training. Args: num_examples: Number of examples to process data_dir: Directory containing
autogeo/loader/grpo_data.py:7
↓ 1 callersFunctionhas_tokenized_data
r"""Check if the path has a tokenized dataset.
LLaMA-Factory/src/llamafactory/extras/misc.py:199
↓ 1 callersFunctionimpression_pos_count_simple
(sentences, n = 5, normalize=True)
open-r1/src/open_r1/GEO/evaluation_metrics.py:47
↓ 1 callersFunctionimpression_word_count_simple
(sentences, n = 5, normalize=True)
open-r1/src/open_r1/GEO/evaluation_metrics.py:35
↓ 1 callersFunctionimpression_wordpos_count_simple
(sentences, n = 5, normalize=True)
open-r1/src/open_r1/GEO/evaluation_metrics.py:22
↓ 1 callersFunctioninference_data_construct
Construct inference data for model evaluation. Args: num_examples: Number of examples to process data_dir: Directory containi
autogeo/loader/inference_data.py:7
↓ 1 callersFunctionioi_code_reward
Reward function that evaluates IOI problems using a specified execution client. Assumes the dataset has the same format as hf.co/datasets/open-r1
open-r1/src/open_r1/rewards.py:738
↓ 1 callersFunctionis_accelerator_available
r"""Check if the accelerator is available.
LLaMA-Factory/src/llamafactory/extras/misc.py:214
↓ 1 callersFunctionis_apollo_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:57
↓ 1 callersFunctionis_galore_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:53
↓ 1 callersFunctionis_librosa_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:45
↓ 1 callersFunctionis_multimodal
r"""Judge if the model is a vision language model.
LLaMA-Factory/src/llamafactory/webui/common.py:130
↓ 1 callersFunctionis_pyav_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:41
↓ 1 callersFunctionis_rouge_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:81
↓ 1 callersFunctionis_slurm_available
()
open-r1/src/open_r1/utils/callbacks.py:28
↓ 1 callersFunctionis_starlette_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:85
↓ 1 callersFunctionis_uvicorn_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:94
↓ 1 callersFunctionis_vllm_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:98
↓ 1 callersFunctionjsonify
(data: "BaseModel")
LLaMA-Factory/src/llamafactory/api/common.py:30
↓ 1 callersFunctionlaunch
()
LLaMA-Factory/src/llamafactory/launcher.py:18
↓ 1 callersFunctionllama_attention_forward
( self: "LlamaAttention", hidden_states: "torch.Tensor", attention_mask: Optional["torch.Tensor"]
LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:56
↓ 1 callersFunctionload_dataset_info
r"""Load dataset_info.json.
LLaMA-Factory/src/llamafactory/webui/common.py:135
↓ 1 callersFunctionload_engine_preference_dataset
Load preference dataset from JSON file. Args: file_path: Path to JSON file containing preference data Returns:
autogeo/rules/utils.py:6
↓ 1 callersFunctionload_eval_results
r"""Get scores after evaluation.
LLaMA-Factory/src/llamafactory/webui/common.py:207
↓ 1 callersFunctionload_ioi_tests
Load IOI tests for a given year and problem id.
open-r1/src/open_r1/utils/competitive_programming/ioi_utils.py:37
↓ 1 callersFunctionload_ioi_tests_for_year
Load IOI tests for a given year.
open-r1/src/open_r1/utils/competitive_programming/ioi_utils.py:26
↓ 1 callersFunctionload_mod_pretrained_model
(**init_kwargs)
LLaMA-Factory/src/llamafactory/model/model_utils/mod.py:26
↓ 1 callersFunctionload_processed_uuids
(output_file, uuid_column)
open-r1/scripts/generate_reasoning.py:91
↓ 1 callersFunctionload_unsloth_peft_model
r"""Load peft model with unsloth. Used in both training and inference.
LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:82
↓ 1 callersFunctionload_unsloth_pretrained_model
r"""Optionally load pretrained model with unsloth. Used in training.
LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:51
↓ 1 callersFunctionmain
()
autogeo/extract_rules.py:76
↓ 1 callersFunctionmain
Main entry point for AutoGEO evaluation pipeline.
autogeo/evaluate.py:20
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
open-r1/src/grpo.py:137
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
open-r1/src/open_r1/sft.py:55
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
open-r1/src/open_r1/grpo.py:35
↓ 1 callersFunctionmain
()
open-r1/scripts/upload_details.py:40
↓ 1 callersFunctionmain
()
open-r1/scripts/run_benchmarks.py:39
↓ 1 callersFunctionmain
()
open-r1/scripts/generate_reasoning.py:104
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
open-r1/scripts/pass_rate_filtering/compute_pass_rate.py:48
↓ 1 callersFunctionmain
()
LLaMA-Factory/setup.py:78
↓ 1 callersFunctionmain
()
LLaMA-Factory/src/train.py:18
↓ 1 callersFunctionmain
()
LLaMA-Factory/src/api.py:23
↓ 1 callersFunctionmain
()
LLaMA-Factory/src/webui.py:21
↓ 1 callersFunctionmain
()
LLaMA-Factory/src/llamafactory/cli.py:38
↓ 1 callersFunctionmain
()
LLaMA-Factory/scripts/api_example/test_toolcall.py:34
← previousnext →401–500 of 1,082, ranked by callers