MCPcopy Create free account

hub / github.com/cxcscmu/AutoGEO / functions

Functions1,082 in github.com/cxcscmu/AutoGEO

↓ 292 callersMethodappend
r"""Add the user input to chatbot. Inputs: infer.chatbot, infer.messages, infer.role, infer.query, infer.escape_html Output: infer.ch
LLaMA-Factory/src/llamafactory/webui/chatter.py:175
↓ 211 callersMethodinfo
Log info message.
autogeo/utils/logger.py:69
↓ 207 callersMethodjoin
(self, attr: dict[str, Any])
LLaMA-Factory/src/llamafactory/data/parser.py:72
↓ 104 callersFunctionregister_model_group
( models: dict[str, dict[DownloadSource, str]], template: Optional[str] = None, multimodal: bool =
LLaMA-Factory/src/llamafactory/extras/constants.py:138
↓ 101 callersMethodupdate
(self, val, n=1)
LLaMA-Factory/src/llamafactory/extras/misc.py:69
↓ 100 callersMethodinfo_rank0
(self, *args, **kwargs)
LLaMA-Factory/src/llamafactory/extras/logging.py:70
↓ 100 callersFunctionregister_template
r"""Register a chat template. To add the following chat template: ``` <s><user>user prompt here <model>model response here</s> <u
LLaMA-Factory/src/llamafactory/data/template.py:459
↓ 55 callersMethodwarning_rank0
(self, *args, **kwargs)
LLaMA-Factory/src/llamafactory/extras/logging.py:73
↓ 45 callersMethodwarning
Log warning message.
autogeo/utils/logger.py:73
↓ 41 callersFunctionget_mm_plugin
r"""Get plugin for multimodal inputs.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1743
↓ 37 callersFunctioncheck_version
r"""Optionally check the package version.
LLaMA-Factory/src/llamafactory/extras/misc.py:76
↓ 35 callersMethodget_elem_by_id
r"""Get element by id. Example: top.lang, train.dataset
LLaMA-Factory/src/llamafactory/webui/manager.py:46
↓ 30 callersMethoderror
Log error message.
autogeo/utils/logger.py:77
↓ 29 callersMethodapply
r"""Forms a list of slots according to the inputs to encode.
LLaMA-Factory/src/llamafactory/data/formatter.py:33
↓ 27 callersMethod_validate_input
r"""Validate if this model accepts the input modalities.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:150
↓ 27 callersFunctionget_template_and_fix_tokenizer
r"""Get chat template and fixes the tokenizer.
LLaMA-Factory/src/llamafactory/data/template.py:591
↓ 26 callersFunctionload_tokenizer
r"""Load pretrained tokenizer and optionally loads processor. Note: including inplace operation of model_args.
LLaMA-Factory/src/llamafactory/model/loader.py:75
↓ 21 callersFunctionget_full_path
Get full path for a dataset configuration key. Args: dataset_name: Name of the dataset path_key: Configuration key (e.g., 'ru
autogeo/config.py:83
↓ 21 callersFunctionget_repetition_penalty_reward
Computes N-gram repetition penalty as described in Appendix C.2 of https://huggingface.co/papers/2502.03373. Reference implementation from: h
open-r1/src/open_r1/rewards.py:656
↓ 20 callersFunctionis_env_enabled
r"""Check if the environment variable is enabled.
LLaMA-Factory/src/llamafactory/extras/misc.py:221
↓ 19 callersFunctionis_transformers_version_greater_than
(content: str)
LLaMA-Factory/src/llamafactory/extras/packages.py:90
↓ 18 callersFunction_is_package_available
(name: str)
LLaMA-Factory/src/llamafactory/extras/packages.py:30
↓ 17 callersFunctionget_save_dir
r"""Get the path to saved model checkpoints.
LLaMA-Factory/src/llamafactory/webui/common.py:59
↓ 17 callersMethodto_dict
(self)
LLaMA-Factory/src/llamafactory/hparams/data_args.py:185
↓ 16 callersMethod_get_mm_inputs
r"""Process visual inputs. Returns: (llava and paligemma) pixel_values: tensor with shape (B, C, H, W) Returns: (qwen2-v
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:309
↓ 16 callersFunction_register_composite_model
r"""Register a new composite model. Args: model_type: model type projector_key: multi_modal_projector vision_model_keys:
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:58
↓ 16 callersFunctionload_model
r"""Load pretrained model.
LLaMA-Factory/src/llamafactory/model/loader.py:133
↓ 15 callersMethod_validate_messages
r"""Validate if the number of images, videos and audios match the number of placeholders in messages.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:190
↓ 14 callersFunctionload_train_model
(add_valuehead: bool = False, **kwargs)
LLaMA-Factory/src/llamafactory/train/test_utils.py:64
↓ 14 callersMethodprocess_messages
r"""Pre-process input messages before tokenization for VLMs.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:398
↓ 13 callersMethodencode_oneturn
r"""Return a single pair of token ids representing prompt and response respectively.
LLaMA-Factory/src/llamafactory/data/template.py:58
↓ 12 callersFunction_check_plugin
( plugin: "BasePlugin", tokenizer: "PreTrainedTokenizer", processor: "ProcessorMixin", expecte
LLaMA-Factory/tests/data/test_mm_plugin.py:128
↓ 12 callersFunction_load_tokenizer_module
(model_name_or_path: str)
LLaMA-Factory/tests/data/test_mm_plugin.py:123
↓ 12 callersFunction_set_z3_leaf_modules
(model: "PreTrainedModel", leaf_modules: list[Union["nn.Module", str]])
LLaMA-Factory/src/llamafactory/model/model_utils/moe.py:29
↓ 12 callersFunctionget_dataset
r"""Get the train dataset and optionally gets the evaluation dataset.
LLaMA-Factory/src/llamafactory/data/loader.py:277
↓ 11 callersFunctionis_gradio_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:61
↓ 11 callersMethodprocess_token_ids
r"""Pre-process token ids after tokenization for VLMs.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:410
↓ 10 callersFunction_get_mm_inputs
(processor: "ProcessorMixin")
LLaMA-Factory/tests/data/test_mm_plugin.py:86
↓ 10 callersFunctionaggregate_json_files
Aggregate evaluation results from multiple JSON files. Args: json_folder: Directory containing JSON files dic_name: Dictionar
autogeo/evaluation/aggregate_results.py:24
↓ 10 callersMethoddebug
Log debug message.
autogeo/utils/logger.py:81
↓ 10 callersFunctionload_dataset_module
(**kwargs)
LLaMA-Factory/src/llamafactory/train/test_utils.py:105
↓ 10 callersMethodsave_model
r"""Save model checkpoint. Subclass and override to inject custom behavior.
LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:477
↓ 10 callersMethodwarning_rank0_once
(self, *args, **kwargs)
LLaMA-Factory/src/llamafactory/extras/logging.py:76
↓ 9 callersMethod_regularize_images
r"""Regularize images to avoid error. Including reading and pre-processing.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:250
↓ 9 callersMethodapply
(self, **kwargs)
LLaMA-Factory/src/llamafactory/data/formatter.py:98
↓ 9 callersFunctioncode_reward
Reward function that evaluates code snippets using a code execution provider. Assumes the dataset contains a `verification_info` column with test
open-r1/src/open_r1/rewards.py:882
↓ 9 callersMethodextract
(self, content: str)
LLaMA-Factory/src/llamafactory/data/formatter.py:141
↓ 9 callersFunctionshift
(state: "torch.Tensor")
LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:96
↓ 8 callersMethod_convert_slots_to_jinja
r"""Convert slots to jinja template.
LLaMA-Factory/src/llamafactory/data/template.py:215
↓ 8 callersMethodclose
Close logger and log final summary.
autogeo/utils/logger.py:183
↓ 8 callersFunctionget_dataset
Load a dataset or a mixture of datasets based on the configuration. Args: args (ScriptArguments): Script arguments containing dataset con
open-r1/src/open_r1/utils/data.py:14
↓ 8 callersFunctionget_train_args
(args: Optional[Union[dict[str, Any], list[str]]] = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:207
↓ 8 callersFunctionload_reference_model
( model_path: str, lora_path: Optional[str] = None, use_lora: bool = False, use_pissa: bool =
LLaMA-Factory/src/llamafactory/train/test_utils.py:76
↓ 8 callersMethodset_attr
(self, key: str, obj: dict[str, Any], default: Optional[Any] = None)
LLaMA-Factory/src/llamafactory/data/parser.py:69
↓ 7 callersMethodadd_elems
r"""Add elements to manager.
LLaMA-Factory/src/llamafactory/webui/manager.py:30
↓ 7 callersFunctioncompare_model
(model_a: "torch.nn.Module", model_b: "torch.nn.Module", diff_keys: list[str] = [])
LLaMA-Factory/src/llamafactory/train/test_utils.py:35
↓ 7 callersMethodeval
(self)
LLaMA-Factory/src/llamafactory/eval/evaluator.py:79
↓ 7 callersFunctionget_code_format_reward
Format reward function specifically for code responses. Args: language: Programming language supported by E2B https://e2b.dev/docs/code-i
open-r1/src/open_r1/rewards.py:966
↓ 7 callersFunctionget_device_count
r"""Get the number of available devices.
LLaMA-Factory/src/llamafactory/extras/misc.py:164
↓ 7 callersFunctionget_infer_args
(args: Optional[Union[dict[str, Any], list[str]]] = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:417
↓ 7 callersFunctionload_config
r"""Load user config if exists.
LLaMA-Factory/src/llamafactory/webui/common.py:74
↓ 7 callersFunctionload_infer_model
(add_valuehead: bool = False, **kwargs)
LLaMA-Factory/src/llamafactory/train/test_utils.py:70
↓ 7 callersMethodrun_code
Executes a batch of scripts in the sandbox environment. Args: scripts (list[str]): A list of code scripts to execute.
open-r1/src/open_r1/utils/routed_sandbox.py:41
↓ 7 callersFunctiontorch_gc
r"""Collect the device memory.
LLaMA-Factory/src/llamafactory/extras/misc.py:244
↓ 6 callersFunction_check_template
r"""Check template. Args: model_id: the model id on hugging face hub. template_name: the template name. prompt_str: the s
LLaMA-Factory/tests/data/test_template.py:63
↓ 6 callersMethod_find_medias
r"""Optionally concatenate media path to media dir when loading from local disk.
LLaMA-Factory/src/llamafactory/data/converter.py:43
↓ 6 callersMethod_regularize_videos
r"""Regularizes videos to avoid error. Including reading, resizing and converting.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:271
↓ 6 callersFunctioncreate_custom_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", finetuning_args: "FinetuningArgume
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:522
↓ 6 callersFunctioncreate_custom_scheduler
( training_args: "TrainingArguments", num_training_steps: int, optimizer: Optional["torch.optim.Op
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:546
↓ 6 callersFunctionget_current_device
r"""Get the current available device.
LLaMA-Factory/src/llamafactory/extras/misc.py:148
↓ 6 callersMethodget_stop_token_ids
r"""Return stop token ids.
LLaMA-Factory/src/llamafactory/data/template.py:89
↓ 6 callersFunctioninfer_seqlen
r"""Compute the real sequence length after truncation by the cutoff_len.
LLaMA-Factory/src/llamafactory/data/processor/processor_utils.py:76
↓ 6 callersFunctionnumpify
r"""Cast a torch tensor or a numpy array to a numpy array.
LLaMA-Factory/src/llamafactory/extras/misc.py:226
↓ 6 callersFunctionplot_loss
r"""Plot loss curves and saves the image.
LLaMA-Factory/src/llamafactory/extras/ploting.py:69
↓ 6 callersFunctionregister_lighteval_task
Registers a LightEval task configuration. - Core tasks can be added from this table: https://github.com/huggingface/lighteval/blob/main/src/light
open-r1/src/open_r1/utils/evaluation.py:27
↓ 6 callersFunctiontag_count_reward
Reward function that checks if we produce the desired number of think and answer tags associated with `format_reward()`. Adapted from: https://gi
open-r1/src/open_r1/rewards.py:464
↓ 5 callersMethod__post_init__
(self)
LLaMA-Factory/src/llamafactory/hparams/model_args.py:342
↓ 5 callersFunction_check_tokenization
r"""Check token ids and texts. encode(text) == token_ids decode(token_ids) == text
LLaMA-Factory/tests/data/test_template.py:50
↓ 5 callersMethod_get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:895
↓ 5 callersMethod_regularize_audios
r"""Regularizes audios to avoid error. Including reading and resampling.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:295
↓ 5 callersMethodapply
(self, **kwargs)
LLaMA-Factory/src/llamafactory/data/formatter.py:132
↓ 5 callersFunctioncreate_modelcard_and_push
( trainer: "Trainer", model_args: "ModelArguments", data_args: "DataArguments", training_args:
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:85
↓ 5 callersFunctiondeps_list
(*pkgs)
open-r1/setup.py:88
↓ 5 callersMethodget_mm_inputs
r"""Build batched multimodal inputs for VLMs. Arguments: images: a list of image inputs, shape (num_images,) videos:
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:424
↓ 5 callersFunctionlen_reward
Compute length-based rewards to discourage overthinking and promote token efficiency. Taken from the Kimi 1.5 tech report: https://huggingface.co
open-r1/src/open_r1/rewards.py:503
↓ 5 callersFunctionreconstruct_single_file
Reconstruct dataset split into a single JSON file. Args: dataset_split: Dataset split from Hugging Face datasets output_f
autogeo/loader/data_loader.py:76
↓ 5 callersFunctionrun_exp
(args: Optional[dict[str, Any]] = None, callbacks: Optional[list["TrainerCallback"]] = None)
LLaMA-Factory/src/llamafactory/train/tuner.py:94
↓ 5 callersMethodstream_chat
r"""Get the response token-by-token of the chat model.
LLaMA-Factory/src/llamafactory/chat/chat_model.py:94
↓ 5 callersFunctionuse_modelscope
()
LLaMA-Factory/src/llamafactory/extras/misc.py:283
↓ 5 callersFunctionuse_openmind
()
LLaMA-Factory/src/llamafactory/extras/misc.py:287
↓ 5 callersFunctionuse_ray
()
LLaMA-Factory/src/llamafactory/extras/misc.py:291
↓ 4 callersMethod_convert_slots_to_ollama
r"""Convert slots to ollama template.
LLaMA-Factory/src/llamafactory/data/template.py:274
↓ 4 callersFunction_escape_html
r"""Escape HTML characters.
LLaMA-Factory/src/llamafactory/webui/chatter.py:41
↓ 4 callersFunction_get_decay_parameter_names
r"""Return a list of names of parameters with weight decay. (weights in non-layernorm layers).
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:188
↓ 4 callersMethod_jinja_escape
r"""Escape single quotes in content.
LLaMA-Factory/src/llamafactory/data/template.py:210
↓ 4 callersFunction_load_rules_from_file
Load extracted rules from file if available. Args: dataset: Name of the dataset engine_llm: External generative engine name
autogeo/rewriters/core.py:13
↓ 4 callersFunction_parse_args
( parser: "HfArgumentParser", args: Optional[Union[dict[str, Any], list[str]]] = None, allow_extra_keys: b
LLaMA-Factory/src/llamafactory/hparams/parser.py:75
↓ 4 callersFunctionaccuracy_reward
Reward function that checks if the completion is the same as the ground truth.
open-r1/src/open_r1/rewards.py:412
↓ 4 callersFunctioncalculate_pixels
r"""Calculate the number of pixels from the expression.
LLaMA-Factory/src/llamafactory/webui/common.py:215
↓ 4 callersFunctioncall_llm_for_json
Call LLM and parse response as Pydantic model. Args: prompt: Prompt text for LLM pydantic_model: Pydantic model class for val
autogeo/evaluation/metrics/geu_score.py:294
next →1–100 of 1,082, ranked by callers