MCPcopy Create free account

hub / github.com/cxcscmu/AutoGEO / functions

Functions1,082 in github.com/cxcscmu/AutoGEO

Methodchat
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:211
Methodchat
r"""Get a list of responses of the chat model.
LLaMA-Factory/src/llamafactory/chat/base_engine.py:64
Methodchat
( self, messages: Sequence[dict[str, str]], system: Optional[str] = None, tool
LLaMA-Factory/src/llamafactory/chat/sglang_engine.py:232
Methodchat
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:335
Functioncheck_hub_revision_exists
Checks if a given Hub revision exists.
open-r1/src/open_r1/utils/hub.py:70
Functioncheck_json_schema
r"""Check if the json schema is valid.
LLaMA-Factory/src/llamafactory/webui/components/chatbot.py:33
Methodcheck_output_dir
r"""Restore the training status if output_dir exists.
LLaMA-Factory/src/llamafactory/webui/runner.py:492
Functioncheck_template
r"""Check if an instruct model is used. Please use queue=True to show the warning message. Inputs: top.lang, top.template
LLaMA-Factory/src/llamafactory/webui/control.py:87
Functioncode_format_reward
(completions, **kwargs)
open-r1/src/open_r1/rewards.py:973
Functioncold_start
Generate cold start training data from filtered records. Args: num_examples: Number of examples to process data_dir: Director
autogeo/loader/cold_start_data.py:127
Methodcompute_loss
r"""Compute pairwise loss. The first n examples are chosen and the last n examples are rejected. Subclass and override to inject custom behav
LLaMA-Factory/src/llamafactory/train/rm/trainer.py:88
Methodcompute_loss
(self, model, inputs, *args, **kwargs)
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:102
Methodcompute_loss
(self, model, inputs, *args, **kwargs)
LLaMA-Factory/src/llamafactory/train/pt/trainer.py:80
Methodcompute_loss
r"""Subclass and override to accept extra kwargs.
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:256
Methodcompute_loss
r"""Subclass and override to accept extra kwargs.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:273
Functioncompute_metrics
(sample)
LLaMA-Factory/scripts/eval_bleu_rouge.py:35
Functioncosine_scaled_reward
Reward function that scales based on completion length using a cosine schedule. Shorter correct solutions are rewarded more than longer ones.
open-r1/src/open_r1/rewards.py:583
Functioncreate_chat_completion
(request: ChatCompletionRequest)
LLaMA-Factory/src/llamafactory/api/app.py:102
Methodcreate_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/rm/trainer.py:68
Methodcreate_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:82
Methodcreate_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/pt/trainer.py:60
Methodcreate_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:108
Methodcreate_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:112
Functioncreate_or_update_model_card
(self: "AutoModelForCausalLMWithValueHead", output_dir: str)
LLaMA-Factory/src/llamafactory/model/patcher.py:207
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/rm/trainer.py:74
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:88
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/pt/trainer.py:66
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:114
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:118
Functioncreate_score_evaluation
(request: ScoreEvaluationRequest)
LLaMA-Factory/src/llamafactory/api/app.py:118
Functioncustom_gradient_checkpointing_func
(func: Callable, *args: Union["torch.Tensor", Any], **kwargs)
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:82
Methodemit
(self, record)
LLaMA-Factory/src/llamafactory/extras/logging.py:55
Methodencode_multiturn
( self, tokenizer: "PreTrainedTokenizer", messages: list[dict[str, str]], syst
LLaMA-Factory/src/llamafactory/data/template.py:430
Methodencode_oneturn
( self, tokenizer: "PreTrainedTokenizer", messages: list[dict[str, str]], syst
LLaMA-Factory/src/llamafactory/data/template.py:403
Functioneval_logit_processor
r"""Compute the token with the largest likelihood to reduce memory footprint.
LLaMA-Factory/src/llamafactory/train/sft/metric.py:47
Functionevaluate_and_save_example
Evaluate example and save result immediately.
autogeo/extract_rules.py:363
Methodexecute
Execute code on MorphCloud based on the provided data with enhanced debugging and recovery. Orchestrates the following steps with pr
open-r1/src/open_r1/utils/competitive_programming/morph_client.py:282
Functionexecute_batch
(batch: BatchRequest, request: Request)
open-r1/scripts/e2b_router.py:103
Functionexecute_batch
(batch: BatchRequest, request: Request)
open-r1/scripts/morph_router.py:86
Methodexecute_scripts
Execute multiple scripts and return their reward values. Args: scripts: List of code scripts to execute language: The
open-r1/src/open_r1/utils/code_providers.py:50
Methodexecute_scripts
Execute scripts using MorphCloud Sandbox API. Args: scripts: List of Python scripts to execute language: Programming
open-r1/src/open_r1/utils/code_providers.py:211
Functionfilter_func
(example)
open-r1/scripts/pass_rate_filtering/compute_pass_rate.py:187
Functionfind_contaminated
(row)
open-r1/scripts/decontaminate.py:118
Functionfix_valuehead_cpu_loading
()
LLaMA-Factory/tests/model/test_lora.py:60
Functionfix_valuehead_cpu_loading
()
LLaMA-Factory/tests/model/test_base.py:34
Methodforward
( ctx: "torch.autograd.Function", forward_function: "torch.Module", hidden
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:47
Methodforward
(self, image_features: "torch.Tensor")
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:98
Methodfunction_formatter
(functions: list["FunctionCall"])
LLaMA-Factory/src/llamafactory/data/tool_utils.py:127
Methodfunction_formatter
(functions: list["FunctionCall"])
LLaMA-Factory/src/llamafactory/data/tool_utils.py:168
Methodfunction_formatter
(functions: list["FunctionCall"])
LLaMA-Factory/src/llamafactory/data/tool_utils.py:208
Methodfunction_formatter
(functions: list["FunctionCall"])
LLaMA-Factory/src/llamafactory/data/tool_utils.py:241
Methodfunction_formatter
(functions: list["FunctionCall"])
LLaMA-Factory/src/llamafactory/data/tool_utils.py:276
Methodget_batch_loss_metrics
r"""Compute the DPO loss and other metrics for the given batch of inputs for train or test.
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:206
Methodget_batch_loss_metrics
r"""Compute the DPO loss and other metrics for the given batch of inputs for train or test.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:230
Methodget_batch_samples
r"""Replace the method of KTO Trainer with the one of the standard Trainer.
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:129
Methodget_batch_samples
r"""Replace the method of DPO Trainer with the one of the standard Trainer.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:132
Functionget_input_embeddings
(self: "AutoModelForCausalLMWithValueHead")
LLaMA-Factory/src/llamafactory/model/patcher.py:199
Methodget_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:494
Methodget_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:644
Methodget_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:744
Methodget_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1056
Methodget_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1147
Methodget_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1226
Methodget_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1292
Methodget_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1353
Functionget_model_info
r"""Get the necessary information of this model. Inputs: top.model_name Outputs: top.model_path, top.template
LLaMA-Factory/src/llamafactory/webui/control.py:78
Functionget_output_embeddings
(self: "AutoModelForCausalLMWithValueHead")
LLaMA-Factory/src/llamafactory/model/patcher.py:203
Functionget_preview
r"""Get the preview samples from the dataset.
LLaMA-Factory/src/llamafactory/webui/components/data.py:70
Methodget_scores
( self, batch_input: list[str], **input_kwargs, )
LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:258
Methodget_scores
r"""Get a list of scores of the reward model.
LLaMA-Factory/src/llamafactory/chat/base_engine.py:92
Methodget_scores
( self, batch_input: list[str], **input_kwargs, )
LLaMA-Factory/src/llamafactory/chat/sglang_engine.py:276
Methodget_scores
( self, batch_input: list[str], **input_kwargs, )
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:402
Functionhealth
()
open-r1/scripts/e2b_router.py:99
Functionhealth
()
open-r1/scripts/morph_router.py:82
Functioninfo_rank0
(self: "logging.Logger", *args, **kwargs)
LLaMA-Factory/src/llamafactory/extras/logging.py:141
Methodinstall_package
(self, language, version)
open-r1/src/open_r1/utils/competitive_programming/piston_client.py:115
Functionis_patchable
(lang)
open-r1/src/open_r1/utils/competitive_programming/code_patcher.py:85
Functionlength_cdf
r"""Calculate the distribution of the input lengths in the dataset. Usage: export CUDA_VISIBLE_DEVICES=0 python length_cdf.py --model_name_or
LLaMA-Factory/scripts/stat_utils/length_cdf.py:25
Functionlength_reward
(completions: list[list[dict[str, str]]], solution: list[str], **kwargs)
open-r1/src/open_r1/rewards.py:403
Functionlifespan
(app: "FastAPI", chat_model: "ChatModel")
LLaMA-Factory/src/llamafactory/api/app.py:61
Functionlist_checkpoints
r"""List all available checkpoints. Inputs: top.model_name, top.finetuning_type Outputs: top.checkpoint_path
LLaMA-Factory/src/llamafactory/webui/control.py:151
Functionlist_config_paths
r"""List all the saved configuration files. Inputs: train.current_time Outputs: train.config_path
LLaMA-Factory/src/llamafactory/webui/control.py:173
Functionlist_datasets
r"""List all available datasets in the dataset dir for the training stage. Inputs: *.dataset_dir, *.training_stage Outputs: *.dataset
LLaMA-Factory/src/llamafactory/webui/control.py:188
Functionlist_models
()
LLaMA-Factory/src/llamafactory/api/app.py:92
Functionlist_output_dirs
r"""List all the directories that can resume from. Inputs: top.model_name, top.finetuning_type, train.current_time Outputs: train.output_dir
LLaMA-Factory/src/llamafactory/webui/control.py:200
Functionllama_flash_attention_2_forward
( self: "LlamaFlashAttention2", hidden_states: "torch.Tensor", attention_mask: Optional["torch.Ten
LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:141
Functionllama_sdpa_attention_forward
( self: "LlamaSdpaAttention", hidden_states: "torch.Tensor", attention_mask: Optional["torch.Tenso
LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:249
Functionllamafy_baichuan2
r"""Convert the Baichuan2-7B model in the same format as LLaMA2-7B. Usage: python llamafy_baichuan2.py --input_dir input --output_dir output
LLaMA-Factory/scripts/convert_ckpt/llamafy_baichuan2.py:91
Functionllamafy_qwen
r"""Convert the Qwen models in the same format as LLaMA2. Usage: python llamafy_qwen.py --input_dir input --output_dir output Converted model
LLaMA-Factory/scripts/convert_ckpt/llamafy_qwen.py:144
Methodload_args
r"""Load the training configuration from config path.
LLaMA-Factory/src/llamafactory/webui/runner.py:478
Methodload_checkpoint
Load checkpoint for resuming. Args: checkpoint_name: Name of the checkpoint Returns: Che
autogeo/utils/logger.py:155
Methodload_model
(self, data)
LLaMA-Factory/src/llamafactory/webui/chatter.py:101
Methodloaded
(self)
LLaMA-Factory/src/llamafactory/webui/chatter.py:98
Methodlog
Override log method to handle wandb errors gracefully.
open-r1/src/grpo.py:56
Methodlog
r"""Log `logs` on the various objects watching training, including stored metrics.
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:263
Methodlog
r"""Log `logs` on the various objects watching training, including stored metrics.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:280
Methodlog_document
Log rewritten document for inspection. Args: question_id: ID of the question original: Original document text
autogeo/utils/logger.py:107
Functionmain
(filename: str)
LLaMA-Factory/scripts/eval_bleu_rouge.py:61
Functionmake_conversation
(example, prompt_column: str = script_args.dataset_prompt_column)
open-r1/src/grpo.py:200
Functionmake_conversation
(example, prompt_column: str = script_args.dataset_prompt_column)
open-r1/src/open_r1/grpo.py:91
← previousnext →701–800 of 1,082, ranked by callers