Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cxcscmu/AutoGEO
/ functions
Functions
1,082 in github.com/cxcscmu/AutoGEO
⨍
Functions
1,082
◇
Types & classes
185
↳
Endpoints
8
Method
chat
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:211
Method
chat
r"""Get a list of responses of the chat model.
LLaMA-Factory/src/llamafactory/chat/base_engine.py:64
Method
chat
( self, messages: Sequence[dict[str, str]], system: Optional[str] = None, tool
LLaMA-Factory/src/llamafactory/chat/sglang_engine.py:232
Method
chat
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:335
Function
check_hub_revision_exists
Checks if a given Hub revision exists.
open-r1/src/open_r1/utils/hub.py:70
Function
check_json_schema
r"""Check if the json schema is valid.
LLaMA-Factory/src/llamafactory/webui/components/chatbot.py:33
Method
check_output_dir
r"""Restore the training status if output_dir exists.
LLaMA-Factory/src/llamafactory/webui/runner.py:492
Function
check_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
Function
code_format_reward
(completions, **kwargs)
open-r1/src/open_r1/rewards.py:973
Function
cold_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
Method
compute_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
Method
compute_loss
(self, model, inputs, *args, **kwargs)
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:102
Method
compute_loss
(self, model, inputs, *args, **kwargs)
LLaMA-Factory/src/llamafactory/train/pt/trainer.py:80
Method
compute_loss
r"""Subclass and override to accept extra kwargs.
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:256
Method
compute_loss
r"""Subclass and override to accept extra kwargs.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:273
Function
compute_metrics
(sample)
LLaMA-Factory/scripts/eval_bleu_rouge.py:35
Function
cosine_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
Function
create_chat_completion
(request: ChatCompletionRequest)
LLaMA-Factory/src/llamafactory/api/app.py:102
Method
create_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/rm/trainer.py:68
Method
create_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:82
Method
create_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/pt/trainer.py:60
Method
create_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:108
Method
create_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:112
Function
create_or_update_model_card
(self: "AutoModelForCausalLMWithValueHead", output_dir: str)
LLaMA-Factory/src/llamafactory/model/patcher.py:207
Method
create_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/rm/trainer.py:74
Method
create_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:88
Method
create_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/pt/trainer.py:66
Method
create_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:114
Method
create_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:118
Function
create_score_evaluation
(request: ScoreEvaluationRequest)
LLaMA-Factory/src/llamafactory/api/app.py:118
Function
custom_gradient_checkpointing_func
(func: Callable, *args: Union["torch.Tensor", Any], **kwargs)
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:82
Method
emit
(self, record)
LLaMA-Factory/src/llamafactory/extras/logging.py:55
Method
encode_multiturn
( self, tokenizer: "PreTrainedTokenizer", messages: list[dict[str, str]], syst
LLaMA-Factory/src/llamafactory/data/template.py:430
Method
encode_oneturn
( self, tokenizer: "PreTrainedTokenizer", messages: list[dict[str, str]], syst
LLaMA-Factory/src/llamafactory/data/template.py:403
Function
eval_logit_processor
r"""Compute the token with the largest likelihood to reduce memory footprint.
LLaMA-Factory/src/llamafactory/train/sft/metric.py:47
Function
evaluate_and_save_example
Evaluate example and save result immediately.
autogeo/extract_rules.py:363
Method
execute
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
Function
execute_batch
(batch: BatchRequest, request: Request)
open-r1/scripts/e2b_router.py:103
Function
execute_batch
(batch: BatchRequest, request: Request)
open-r1/scripts/morph_router.py:86
Method
execute_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
Method
execute_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
Function
filter_func
(example)
open-r1/scripts/pass_rate_filtering/compute_pass_rate.py:187
Function
find_contaminated
(row)
open-r1/scripts/decontaminate.py:118
Function
fix_valuehead_cpu_loading
()
LLaMA-Factory/tests/model/test_lora.py:60
Function
fix_valuehead_cpu_loading
()
LLaMA-Factory/tests/model/test_base.py:34
Method
forward
( ctx: "torch.autograd.Function", forward_function: "torch.Module", hidden
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:47
Method
forward
(self, image_features: "torch.Tensor")
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:98
Method
function_formatter
(functions: list["FunctionCall"])
LLaMA-Factory/src/llamafactory/data/tool_utils.py:127
Method
function_formatter
(functions: list["FunctionCall"])
LLaMA-Factory/src/llamafactory/data/tool_utils.py:168
Method
function_formatter
(functions: list["FunctionCall"])
LLaMA-Factory/src/llamafactory/data/tool_utils.py:208
Method
function_formatter
(functions: list["FunctionCall"])
LLaMA-Factory/src/llamafactory/data/tool_utils.py:241
Method
function_formatter
(functions: list["FunctionCall"])
LLaMA-Factory/src/llamafactory/data/tool_utils.py:276
Method
get_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
Method
get_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
Method
get_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
Method
get_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
Function
get_input_embeddings
(self: "AutoModelForCausalLMWithValueHead")
LLaMA-Factory/src/llamafactory/model/patcher.py:199
Method
get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:494
Method
get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:644
Method
get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:744
Method
get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1056
Method
get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1147
Method
get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1226
Method
get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1292
Method
get_mm_inputs
( self, images: list["ImageInput"], videos: list["VideoInput"], audios: list["
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:1353
Function
get_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
Function
get_output_embeddings
(self: "AutoModelForCausalLMWithValueHead")
LLaMA-Factory/src/llamafactory/model/patcher.py:203
Function
get_preview
r"""Get the preview samples from the dataset.
LLaMA-Factory/src/llamafactory/webui/components/data.py:70
Method
get_scores
( self, batch_input: list[str], **input_kwargs, )
LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:258
Method
get_scores
r"""Get a list of scores of the reward model.
LLaMA-Factory/src/llamafactory/chat/base_engine.py:92
Method
get_scores
( self, batch_input: list[str], **input_kwargs, )
LLaMA-Factory/src/llamafactory/chat/sglang_engine.py:276
Method
get_scores
( self, batch_input: list[str], **input_kwargs, )
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:402
Function
health
()
open-r1/scripts/e2b_router.py:99
Function
health
()
open-r1/scripts/morph_router.py:82
Function
info_rank0
(self: "logging.Logger", *args, **kwargs)
LLaMA-Factory/src/llamafactory/extras/logging.py:141
Method
install_package
(self, language, version)
open-r1/src/open_r1/utils/competitive_programming/piston_client.py:115
Function
is_patchable
(lang)
open-r1/src/open_r1/utils/competitive_programming/code_patcher.py:85
Function
length_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
Function
length_reward
(completions: list[list[dict[str, str]]], solution: list[str], **kwargs)
open-r1/src/open_r1/rewards.py:403
Function
lifespan
(app: "FastAPI", chat_model: "ChatModel")
LLaMA-Factory/src/llamafactory/api/app.py:61
Function
list_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
Function
list_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
Function
list_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
Function
list_models
()
LLaMA-Factory/src/llamafactory/api/app.py:92
Function
list_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
Function
llama_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
Function
llama_sdpa_attention_forward
( self: "LlamaSdpaAttention", hidden_states: "torch.Tensor", attention_mask: Optional["torch.Tenso
LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:249
Function
llamafy_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
Function
llamafy_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
Method
load_args
r"""Load the training configuration from config path.
LLaMA-Factory/src/llamafactory/webui/runner.py:478
Method
load_checkpoint
Load checkpoint for resuming. Args: checkpoint_name: Name of the checkpoint Returns: Che
autogeo/utils/logger.py:155
Method
load_model
(self, data)
LLaMA-Factory/src/llamafactory/webui/chatter.py:101
Method
loaded
(self)
LLaMA-Factory/src/llamafactory/webui/chatter.py:98
Method
log
Override log method to handle wandb errors gracefully.
open-r1/src/grpo.py:56
Method
log
r"""Log `logs` on the various objects watching training, including stored metrics.
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:263
Method
log
r"""Log `logs` on the various objects watching training, including stored metrics.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:280
Method
log_document
Log rewritten document for inspection. Args: question_id: ID of the question original: Original document text
autogeo/utils/logger.py:107
Function
main
(filename: str)
LLaMA-Factory/scripts/eval_bleu_rouge.py:61
Function
make_conversation
(example, prompt_column: str = script_args.dataset_prompt_column)
open-r1/src/grpo.py:200
Function
make_conversation
(example, prompt_column: str = script_args.dataset_prompt_column)
open-r1/src/open_r1/grpo.py:91
← previous
next →
701–800 of 1,082, ranked by callers