MCPcopy Create free account

hub / github.com/AMAP-ML/GPG / functions

Functions443 in github.com/AMAP-ML/GPG

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-rs/src/open_r1/rewards.py:274
Methodcreate_model_card
Creates a draft of a model card using the information available to the `Trainer`. Args: model_name (`str` or `None`, *op
Visual-RFT/src/virft/src/open_r1/trainer/grpo_trainer.py:790
Methodcreate_model_card
Creates a draft of a model card using the information available to the `Trainer`. Args: model_name (`str` or `None`, *op
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:790
Methoddata_collator
(features)
Visual-RFT/src/virft/src/open_r1/trainer/vllm_grpo_trainer.py:274
Methoddata_collator
(features)
Visual-RFT/src/virft/src/open_r1/trainer/grpo_trainer.py:296
Methoddata_collator
(features)
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:286
Methoddata_collator
(features)
R1-V/src/r1-v/src/open_r1/trainer/vllm_grpo_trainer_modified.py:247
Methoddata_collator
(features)
R1-V/src/r1-v/src/open_r1/trainer/vllm_grpo_trainer.py:283
Methoddata_collator
(features)
R1-V/src/r1-v/src/open_r1/trainer/grpo_trainer.py:279
Functionextract_bbox
(response)
Visual-RFT/lisa_evaluation/Qwen2_VL_lisa_infere.py:60
Functionextract_characters_regex
(s, choices=['(A)', '(B)', '(C)', '(D)', '(E)', '(F)'])
VisualThinker-R1-Zero/src/eval/evaluate_Qwen2_VL_CVBench-base.py:33
Functionextract_characters_regex
(s, choices=['(A)', '(B)', '(C)', '(D)', '(E)', '(F)'])
VisualThinker-R1-Zero/src/eval/evaluate_Qwen2_VL_CVBench.py:35
Functionfind_contaminated
(row)
open-r1/scripts/decontaminate.py:118
Functionformat_reward
Reward function that checks if the completion has a specific format.
Visual-RFT/src/virft/src/open_r1/grpo_classification.py:118
Functionformat_reward
Reward function that checks if the completion has a specific format.
Visual-RFT/src/virft/src/open_r1/grpo_lisa.py:163
Functionformat_reward
Reward function that checks if the completion has a specific format.
Visual-RFT/src/virft/src/open_r1/grpo.py:378
Functionformat_reward
Reward function that checks if the completion has a specific format.
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/grpo.py:142
Functionformat_reward
Reward function that checks if the completion has a specific format.
R1-V/src/r1-v/src/open_r1/grpo.py:112
Functionformat_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-rs/src/open_r1/rewards.py:70
Functionformat_reward_v2
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:131
Functionget_length
(text)
open-r1/src/open_r1/utils/data_utils.py:92
Methodget_train_dataloader
(self)
Visual-RFT/src/virft/src/open_r1/trainer/grpo_trainer.py:401
Methodget_train_dataloader
(self)
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:392
Methodget_train_dataloader
(self)
R1-V/src/r1-v/src/open_r1/trainer/grpo_trainer.py:384
Functiongpqa_prompt_fn
(line, task_name: str = None)
open-r1/src/open_r1/evaluate_short.py:98
Functiongpqa_prompt_fn
(line, task_name: str = None)
open-r1/src/open_r1/evaluate.py:125
Functiongpqa_prompt_fn
(line, task_name: str = None)
open-rs/src/open_r1/evaluate.py:125
Functioninfer_on_single_gpu
init model on this single gpu and let it answer asign chunk of questions
R1-V/src/eval/test_qwen2vl_geoqa_multigpu.py:94
Methodinstall_package
(self, language, version)
open-r1/src/open_r1/utils/ioi/piston_client.py:106
Functionlen_reward
Compute length-based rewards to discourage overthinking and promote token efficiency. Taken from the Kimi 1.5 tech report: https://arxiv.org/abs/
open-rs/src/open_r1/rewards.py:194
Functionlength_reward
(completions, **kwargs)
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/grpo.py:132
Functionload_image
(image_file, input_size=448, max_num=12)
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/InternVL2.py:74
Methodlog
(self, logs: dict[str, float], start_time: Optional[float] = None)
Visual-RFT/src/virft/src/open_r1/trainer/vllm_grpo_trainer.py:818
Methodlog
(self, logs: dict[str, float], start_time: Optional[float] = None)
Visual-RFT/src/virft/src/open_r1/trainer/grpo_trainer.py:781
Methodlog
(self, logs: dict[str, float], start_time: Optional[float] = None)
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:781
Methodlog
(self, logs: dict[str, float], start_time: Optional[float] = None)
R1-V/src/r1-v/src/open_r1/trainer/vllm_grpo_trainer_modified.py:748
Methodlog
(self, logs: dict[str, float], start_time: Optional[float] = None)
R1-V/src/r1-v/src/open_r1/trainer/vllm_grpo_trainer.py:826
Methodlog
(self, logs: dict[str, float], start_time: Optional[float] = None)
R1-V/src/r1-v/src/open_r1/trainer/grpo_trainer.py:734
Functionmake_conversation
(example)
Visual-RFT/src/virft/src/open_r1/grpo_classification.py:159
Functionmake_conversation
(example)
Visual-RFT/src/virft/src/open_r1/grpo_lisa.py:194
Functionmake_conversation
(example)
Visual-RFT/src/virft/src/open_r1/grpo.py:420
Functionmake_conversation
(example)
open-r1/src/open_r1/gpg.py:98
Functionmake_conversation
(example)
open-r1/src/open_r1/grpo.py:94
Functionmake_conversation
(example)
R1-V/src/r1-v/src/open_r1/grpo.py:146
Functionmake_conversation
(example)
open-rs/src/open_r1/gpg.py:183
Functionmake_conversation
(example)
open-rs/src/open_r1/grpo.py:183
Functionmake_conversation
(example)
open-rs/src/open_r1/gpg_std.py:183
Functionmake_conversation_image
(example)
Visual-RFT/src/virft/src/open_r1/grpo_classification.py:167
Functionmake_conversation_image
(example)
Visual-RFT/src/virft/src/open_r1/grpo_lisa.py:215
Functionmake_conversation_image
(example)
Visual-RFT/src/virft/src/open_r1/grpo.py:428
Functionmake_conversation_image
(example)
R1-V/src/r1-v/src/open_r1/grpo.py:170
Functionmake_conversation_math35
(example)
open-r1/src/open_r1/gpg.py:107
Functionmake_conversation_math35
(example)
open-r1/src/open_r1/test_dataset.py:10
Functionmake_conversation_math35
(example)
open-r1/src/open_r1/grpo.py:103
Functionmath_prompt_fn
(line, task_name: str = None)
open-r1/src/open_r1/evaluate_short.py:80
Functionmath_prompt_fn
(line, task_name: str = None)
open-r1/src/open_r1/evaluate.py:80
Functionmath_prompt_fn
(line, task_name: str = None)
open-rs/src/open_r1/evaluate.py:80
Functionminerva_prompt_fn
(line, task_name: str = None)
open-r1/src/open_r1/evaluate.py:107
Functionminerva_prompt_fn
(line, task_name: str = None)
open-rs/src/open_r1/evaluate.py:107
Functionolympiadbench_prompt_fn
(line, task_name: str = None)
open-r1/src/open_r1/evaluate.py:116
Functionolympiadbench_prompt_fn
(line, task_name: str = None)
open-rs/src/open_r1/evaluate.py:116
Methodon_epoch_end
Event called at the end of an epoch.
open-r1/src/open_r1/gpg.py:160
Methodon_save
(self, args: TrainingArguments, state: TrainerState, control: TrainerControl, **kwargs)
open-r1/src/open_r1/utils/callbacks.py:47
Methodon_save
(self, args: TrainingArguments, state: TrainerState, control: TrainerControl, **kwargs)
open-rs/src/open_r1/utils/callbacks.py:47
Functionplot_bbox
(image_path, bbox_list)
Visual-RFT/lvis_evaluation/Qwen2_VL_lvis_infere.py:103
Functionplot_bbox
(image_path, bbox_list)
Visual-RFT/coco_evaluation/Qwen2_VL_coco_infere.py:103
Functionplot_images
(image_paths)
Visual-RFT/lvis_evaluation/Qwen2_VL_lvis_infere.py:38
Functionplot_images
(image_paths)
Visual-RFT/coco_evaluation/Qwen2_VL_coco_infere.py:38
Functionplot_images
(image_paths)
Visual-RFT/classification/Qwen2_VL_classification_infere.py:40
Functionprocess_raw_data
(raw_data)
Visual-RFT/src/virft/local_scripts/prepare_hf_data.py:67
Functionprocess_raw_data
(raw_data)
R1-V/src/r1-v/local_scripts/prepare_hf_data.py:67
Functionprocess_single_item
(example)
Visual-RFT/src/virft/local_scripts/create_vision_cot_data.py:120
Functionprocess_single_item
(example)
R1-V/src/r1-v/local_scripts/create_vision_cot_data.py:120
Functionprompt_fn
Assumes the model is either prompted to emit \\boxed{answer} or does so automatically
Visual-RFT/src/virft/src/open_r1/evaluate.py:37
Functionprompt_fn
Assumes the model is either prompted to emit \\boxed{answer} or does so automatically
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/evaluate.py:37
Functionprompt_fn
Assumes the model is either prompted to emit \\boxed{answer} or does so automatically
R1-V/src/r1-v/src/open_r1/evaluate.py:37
Functionquery_r1
(qa_pair: Dict, output_file: str, model: str = "deepseek-ai/DeepSeek-R1", v2=False)
R1-V/src/distill_r1/query_r1.py:38
Functionreasoning_steps_reward
r"""Reward function that checks for clear step-by-step reasoning. Regex pattern: Step \d+: - matches "Step 1:", "Step 2:", etc. ^\
open-rs/src/open_r1/rewards.py:177
Functionrepetition_penalty_reward
reward function the penalizes repetitions ref implementation: https://github.com/eddycmu/demystify-long-cot/blob/release/openrlhf/ope
open-r1/src/open_r1/rewards.py:348
Functionrepetition_penalty_reward
reward function the penalizes repetitions ref implementation: https://github.com/eddycmu/demystify-long-cot/blob/release/openrlhf/ope
open-rs/src/open_r1/rewards.py:359
Methodresults2json
results: {image_id: {label: [bboxes...] } } :return coco json format: {image_id: category_id:
Visual-RFT/coco_evaluation/coco_evaluation.py:52
Functionrun
(rank, world_size)
Visual-RFT/lvis_evaluation/Qwen2_VL_lvis_infere.py:172
Functionrun
(rank, world_size)
Visual-RFT/coco_evaluation/Qwen2_VL_coco_infere.py:170
Functionrun
(rank, world_size)
Visual-RFT/classification/Qwen2_VL_classification_infere.py:66
Methodrun_benchmark_callback
(_)
open-r1/src/open_r1/utils/callbacks.py:67
Methodrun_benchmark_callback
(_)
open-rs/src/open_r1/utils/callbacks.py:67
Methodscore
Calculates the raw score for the subtask as the minimum score across all test results. Returns: float: The rounded minim
open-r1/src/open_r1/utils/ioi/scoring.py:61
Functionscore_subtasks
Scores multiple subtasks for a submission. Args: client: PistonClient instance for executing code subtasks: List of dictiona
open-r1/src/open_r1/utils/ioi/scoring.py:245
Methodsession
(self)
open-r1/src/open_r1/utils/ioi/piston_client.py:73
Methodstatus
Determines the overall status of the subtask based on the worst status among test results. Status priorities are ordered from worst t
open-r1/src/open_r1/utils/ioi/scoring.py:49
Functiontag_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-rs/src/open_r1/rewards.py:84
Methodtest_accuracy_reward_correct_answer
Test accuracy_reward with a correct answer.
open-r1/tests/test_rewards.py:74
Methodtest_accuracy_reward_wrong_answer
Test accuracy_reward with an incorrect answer.
open-r1/tests/test_rewards.py:81
Methodtest_correct_python_format
Test code format reward with correct Python format.
open-r1/tests/test_rewards.py:412
Methodtest_cosine_scaled_reward
Test cosine_scaled_reward with various cases.
open-r1/tests/test_rewards.py:138
Methodtest_different_languages
Test code format reward with different programming languages.
open-r1/tests/test_rewards.py:459
Methodtest_different_lengths_correct_answers
Test len_reward with different length correct answers.
open-r1/tests/test_rewards.py:181
Methodtest_different_lengths_incorrect_answers
Test len_reward with different length incorrect answers.
open-r1/tests/test_rewards.py:193
Methodtest_different_ngram_size
(self)
open-r1/tests/test_rewards.py:292
Methodtest_empty_completion
(self)
open-r1/tests/test_rewards.py:286
← previousnext →301–400 of 443, ranked by callers