MCPcopy Create free account

hub / github.com/cxcscmu/AutoGEO / functions

Functions1,082 in github.com/cxcscmu/AutoGEO

↓ 4 callersFunctionextract_citations_new
Extract citations from text and organize by paragraphs and sentences. Args: text: Text containing citations in [n] format
autogeo/evaluation/metrics/geo_score.py:17
↓ 4 callersFunctionextract_code
(completion: str, language: str | None = "python")
open-r1/src/open_r1/rewards.py:847
↓ 4 callersFunctionget_dataset_config
Get configuration for a specific dataset. Args: dataset_name: Name of the dataset (Researchy-GEO, E-commerce, or GEO-Bench)
autogeo/config.py:63
↓ 4 callersMethodget_elem_list
r"""Return the list of all elements.
LLaMA-Factory/src/llamafactory/webui/manager.py:37
↓ 4 callersFunctionget_logger
Get or create a logger instance. Args: log_dir: Directory to save log files task_name: Name of the task log_level: Lo
autogeo/utils/logger.py:190
↓ 4 callersFunctionget_model
Get the model
open-r1/src/open_r1/utils/model_utils.py:23
↓ 4 callersFunctionget_reward_funcs
(script_args)
open-r1/src/open_r1/rewards.py:1017
↓ 4 callersFunctionget_soft_overlong_punishment
Reward function that penalizes overlong completions. It is used to penalize overlong completions, but not to reward shorter completions. Refe
open-r1/src/open_r1/rewards.py:991
↓ 4 callersMethodget_thought_word_ids
r"""Get the token ids of thought words.
LLaMA-Factory/src/llamafactory/data/template.py:106
↓ 4 callersFunctionget_tokenizer
Get the tokenizer for the model.
open-r1/src/open_r1/utils/model_utils.py:9
↓ 4 callersFunctionimpression_pos_count_simple
Calculate impression score based on position only. Args: sentences: Nested list of sentences with citations n: Number of
autogeo/evaluation/metrics/geo_score.py:84
↓ 4 callersFunctionimpression_word_count_simple
Calculate impression score based on word count only. Args: sentences: Nested list of sentences with citations n: Number o
autogeo/evaluation/metrics/geo_score.py:61
↓ 4 callersFunctionimpression_wordpos_count_simple
Calculate impression score based on word count and position. Args: sentences: Nested list of sentences with citations n:
autogeo/evaluation/metrics/geo_score.py:36
↓ 4 callersFunctioninit_adapter
r"""Initialize the adapters. Support full-parameter, freeze and LoRA training. Note that the trainable parameters must be cast to float32.
LLaMA-Factory/src/llamafactory/model/adapter.py:261
↓ 4 callersFunctionis_morph_available
()
open-r1/src/open_r1/utils/import_utils.py:29
↓ 4 callersFunctionparse_template
r"""Extract a chat template from the tokenizer.
LLaMA-Factory/src/llamafactory/data/template.py:530
↓ 4 callersMethodstep
(self, closure: Optional[Callable[[], float]] = None)
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:81
↓ 3 callersMethod__call__
(self, features: list[dict[str, Any]])
LLaMA-Factory/src/llamafactory/data/collator.py:284
↓ 3 callersFunction_call_llm_with_retry
Call LLM with retry logic and JSON parsing. Args: prompt: Prompt text for LLM llm_args: Dictionary of LLM arguments
autogeo/rules/merger.py:101
↓ 3 callersFunction_check_extra_dependencies
( model_args: "ModelArguments", finetuning_args: "FinetuningArguments", training_args: Optional["T
LLaMA-Factory/src/llamafactory/hparams/parser.py:136
↓ 3 callersMethod_close_thread_pool
(self)
LLaMA-Factory/src/llamafactory/train/callbacks.py:222
↓ 3 callersFunction_configure_library_root_logger
r"""Configure root logger using a stdout stream handler with an explicit format.
LLaMA-Factory/src/llamafactory/extras/logging.py:100
↓ 3 callersFunction_create_stream_chat_completion_chunk
( completion_id: str, model: str, delta: "ChatCompletionMessage", index: Optional[int] = 0,
LLaMA-Factory/src/llamafactory/api/chat.py:172
↓ 3 callersMethod_encode
r"""Encode formatted inputs to pairs of token ids. Turn 0: prefix + system + query resp Turn t: query
LLaMA-Factory/src/llamafactory/data/template.py:129
↓ 3 callersFunction_get_init_kwargs
r"""Get arguments to load config/tokenizer/model. Note: including inplace operation of model_args.
LLaMA-Factory/src/llamafactory/model/loader.py:60
↓ 3 callersFunction_get_library_root_logger
()
LLaMA-Factory/src/llamafactory/extras/logging.py:96
↓ 3 callersFunction_get_preprocessed_dataset
r"""Preprocesses the dataset, including format checking and tokenization.
LLaMA-Factory/src/llamafactory/data/loader.py:230
↓ 3 callersMethod_initialize
r"""Validate the configuration.
LLaMA-Factory/src/llamafactory/webui/runner.py:75
↓ 3 callersFunction_is_close
(batch_a: dict[str, Any], batch_b: dict[str, Any])
LLaMA-Factory/tests/data/test_mm_plugin.py:110
↓ 3 callersMethod_send_to_all
(self, route, data=None, method="post")
open-r1/src/open_r1/utils/competitive_programming/piston_client.py:107
↓ 3 callersFunction_set_env_vars
()
LLaMA-Factory/src/llamafactory/hparams/parser.py:99
↓ 3 callersFunction_set_transformers_logging
()
LLaMA-Factory/src/llamafactory/hparams/parser.py:92
↓ 3 callersMethod_update_component
r"""Update gradio components according to the (elem_id, properties) mapping.
LLaMA-Factory/src/llamafactory/webui/engine.py:40
↓ 3 callersFunction_verify_model_args
( model_args: "ModelArguments", data_args: "DataArguments", finetuning_args: "FinetuningArguments"
LLaMA-Factory/src/llamafactory/hparams/parser.py:107
↓ 3 callersFunctionautogeo_evaluation
Evaluate AutoGEO API rewritten documents. Args: num_examples: Number of examples to process data_dir: Directory containing da
autogeo/evaluation/evaluator.py:154
↓ 3 callersFunctioncall_gemini
Call Gemini API with retry logic. Args: user_prompt: User prompt text system_prompt: System prompt text (default: COMMON_SYST
autogeo/utils/gemini.py:16
↓ 3 callersFunctionchange_name
(name: str, old_index: int, new_index: int)
LLaMA-Factory/scripts/llama_pro.py:36
↓ 3 callersMethodchat
r"""Get a list of responses of the chat model.
LLaMA-Factory/src/llamafactory/chat/chat_model.py:65
↓ 3 callersFunctioncheck_lora_model
(model: "LoraModel")
LLaMA-Factory/src/llamafactory/train/test_utils.py:46
↓ 3 callersMethodclose
(self)
LLaMA-Factory/src/llamafactory/extras/logging.py:62
↓ 3 callersMethodcopyfrom
(cls, source: "Self", **kwargs)
LLaMA-Factory/src/llamafactory/hparams/model_args.py:417
↓ 3 callersFunctioncreate_ref_model
r"""Create reference model for PPO/DPO training. Evaluation mode is not supported. The valuehead parameter is randomly initialized since it is us
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:111
↓ 3 callersMethodencode_multiturn
r"""Return multiple pairs of token ids representing prompts and responses respectively.
LLaMA-Factory/src/llamafactory/data/template.py:74
↓ 3 callersFunctionestimate_token_count
Estimate token count for a list of rules. Args: rules_list: List of rule strings Returns: Estimated token
autogeo/rules/merger.py:88
↓ 3 callersFunctionfind_all_linear_modules
r"""Find all available modules to apply LoRA, GaLore or APOLLO.
LLaMA-Factory/src/llamafactory/model/model_utils/misc.py:28
↓ 3 callersFunctionfix_proxy
r"""Fix proxy settings for gradio ui.
LLaMA-Factory/src/llamafactory/extras/misc.py:304
↓ 3 callersFunctionfix_valuehead_checkpoint
r"""Fix the valuehead checkpoint files. The model is already unwrapped. There are three cases: 1. full tuning without ds_zero3: state_di
LLaMA-Factory/src/llamafactory/train/callbacks.py:56
↓ 3 callersMethodformat_example
r"""Convert dataset examples to messages.
LLaMA-Factory/src/llamafactory/eval/template.py:36
↓ 3 callersFunctionformat_reward
Reward function that checks if the reasoning process is enclosed within <think> and </think> tags, while the final answer is enclosed within <answer>
open-r1/src/open_r1/rewards.py:456
↓ 3 callersFunctiongenerate_answer_claude
Generate answer using Claude with RAG. Args: query: User query text sources: List of source document texts model
autogeo/evaluation/generative_engine.py:86
↓ 3 callersFunctiongenerate_answer_gemini
Generate answer using Gemini with RAG. Args: query: User query text sources: List of source document texts model
autogeo/evaluation/generative_engine.py:28
↓ 3 callersFunctiongenerate_answer_gpt
Generate answer using GPT with RAG. Args: query: User query text sources: List of source document texts model_na
autogeo/evaluation/generative_engine.py:55
↓ 3 callersMethodget_base_elems
r"""Get the base elements that are commonly used.
LLaMA-Factory/src/llamafactory/webui/manager.py:57
↓ 3 callersFunctionget_callbacks
(train_config, model_config)
open-r1/src/open_r1/utils/callbacks.py:85
↓ 3 callersFunctionget_dataset_converter
r"""Get a dataset converter.
LLaMA-Factory/src/llamafactory/data/converter.py:244
↓ 3 callersFunctionget_eval_template
(name: str)
LLaMA-Factory/src/llamafactory/eval/template.py:60
↓ 3 callersFunctionget_forbidden_modules
r"""Freeze vision tower and language model for VLM full/freeze tuning.
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:159
↓ 3 callersFunctionget_lighteval_tasks
()
open-r1/src/open_r1/utils/evaluation.py:62
↓ 3 callersFunctionget_llm_response
Get response from appropriate LLM based on model name. This function uses the centralized LLM clients from utils, with support for pas
autogeo/rules/llm_client.py:12
↓ 3 callersFunctionget_rewrite_prompt_template
Get the rewrite prompt template without calling the API. Useful for testing or when you only need the prompt. Args: dataset:
autogeo/rewriters/core.py:326
↓ 3 callersMethodget_scores
r"""Get a list of scores of the reward model.
LLaMA-Factory/src/llamafactory/chat/chat_model.py:129
↓ 3 callersFunctioninit_wandb_training
Helper function for setting up Weights & Biases logging tools.
open-r1/src/open_r1/utils/wandb_logging.py:4
↓ 3 callersFunctionis_pillow_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:69
↓ 3 callersFunctionis_ray_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:73
↓ 3 callersFunctionload_config
r"""Load model config.
LLaMA-Factory/src/llamafactory/model/loader.py:127
↓ 3 callersFunctionload_data
Load dataset from Hugging Face and reconstruct into local JSON files. Args: config: Configuration dictionary with dataset settings
autogeo/loader/data_loader.py:120
↓ 3 callersFunctionparse_rewrite_method
Parse rewrite method name to extract dataset name and LLM name. Args: rewrite_method_name: Method name in format 'autogeo_{dataset}_{
autogeo/loader/utils.py:5
↓ 3 callersFunctionprocess_prediction_text
Process prediction text to extract rewritten content. Args: text: Raw prediction text that may contain introductory phrases l
autogeo/evaluation/evaluator.py:25
↓ 3 callersMethodremove_thought
r"""Remove thought from assistant message.
LLaMA-Factory/src/llamafactory/data/template.py:101
↓ 3 callersMethodreset
(self)
LLaMA-Factory/src/llamafactory/extras/misc.py:63
↓ 2 callersMethod__post_init__
(self)
LLaMA-Factory/src/llamafactory/hparams/training_args.py:58
↓ 2 callersMethod_add_or_replace_eos_token
r"""Add or replace eos token to the tokenizer.
LLaMA-Factory/src/llamafactory/data/template.py:168
↓ 2 callersMethod_build_config_dict
r"""Build a dictionary containing the current training configuration.
LLaMA-Factory/src/llamafactory/webui/runner.py:381
↓ 2 callersMethod_check_failed_endpoint
(self, endpoint)
open-r1/src/open_r1/utils/competitive_programming/piston_client.py:124
↓ 2 callersFunction_check_video_is_nested_images
r"""Check if the video is nested images.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:138
↓ 2 callersFunction_clean_cmd
r"""Remove args with NoneType or False or empty string value.
LLaMA-Factory/src/llamafactory/webui/common.py:164
↓ 2 callersMethod_cleanup_server
r"""Clean up the server process when the engine is destroyed.
LLaMA-Factory/src/llamafactory/chat/sglang_engine.py:130
↓ 2 callersMethod_convert_elements_to_ids
r"""Convert elements to token ids.
LLaMA-Factory/src/llamafactory/data/template.py:110
↓ 2 callersFunction_convert_sharegpt_to_openai
(messages: list[dict[str, str]])
LLaMA-Factory/tests/data/processor/test_pairwise.py:45
↓ 2 callersMethod_create_thread_pool
(self, output_dir: str)
LLaMA-Factory/src/llamafactory/train/callbacks.py:218
↓ 2 callersMethod_dump
(self)
LLaMA-Factory/src/llamafactory/train/rm/metric.py:31
↓ 2 callersMethod_dump
(self)
LLaMA-Factory/src/llamafactory/train/sft/metric.py:65
↓ 2 callersMethod_dump
(self)
LLaMA-Factory/src/llamafactory/train/sft/metric.py:96
↓ 2 callersMethod_encode_data_example
( self, prompt: list[dict[str, str]], response: list[dict[str, str]], system:
LLaMA-Factory/src/llamafactory/data/processor/supervised.py:33
↓ 2 callersMethod_generate
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:103
↓ 2 callersMethod_generate
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
LLaMA-Factory/src/llamafactory/chat/sglang_engine.py:140
↓ 2 callersFunction_get_config_path
r"""Get the path to user config.
LLaMA-Factory/src/llamafactory/webui/common.py:69
↓ 2 callersFunction_get_default_rules
Get default rules for a dataset when extracted rules are unavailable. These are fallback rules used when extracted rules are not available.
autogeo/rewriters/core.py:66
↓ 2 callersMethod_get_jinja_template
r"""Return the jinja template.
LLaMA-Factory/src/llamafactory/data/template.py:237
↓ 2 callersFunction_get_library_name
()
LLaMA-Factory/src/llamafactory/extras/logging.py:92
↓ 2 callersFunction_get_merged_dataset
r"""Return the merged datasets in the standard format.
LLaMA-Factory/src/llamafactory/data/loader.py:165
↓ 2 callersMethod_get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:515
↓ 2 callersMethod_get_number_of_features
(self, orig_height: int, orig_width: int, height: int, width: int)
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:89
↓ 2 callersMethod_get_or_create_base_snapshot
Get or create a snapshot with the necessary dependencies and scripts for evaluation.
open-r1/src/open_r1/utils/competitive_programming/morph_client.py:337
↓ 2 callersFunction_get_unsloth_kwargs
( config: "PretrainedConfig", model_name_or_path: str, model_args: "ModelArguments", finetunin
LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:30
↓ 2 callersMethod_get_video_sample_indices
r"""Compute video sample indices according to fps.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:238
↓ 2 callersFunction_init_event_loop
Initialize or get the current event loop.
open-r1/src/open_r1/rewards.py:728
↓ 2 callersMethod_launch
r"""Start the training process.
LLaMA-Factory/src/llamafactory/webui/runner.py:357
↓ 2 callersFunction_load_data_file
(file_path: str)
LLaMA-Factory/src/llamafactory/webui/components/data.py:60
↓ 2 callersFunction_noisy_mean_initialization
(embed_weight: "torch.Tensor", num_new_tokens: int)
LLaMA-Factory/src/llamafactory/model/model_utils/embedding.py:32
← previousnext →101–200 of 1,082, ranked by callers