MCPcopy Create free account

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

Functions443 in github.com/AMAP-ML/GPG

↓ 19 callersFunctionget_repetition_penalty_reward
Computes N-gram repetition penalty as described in Appendix C.2 of https://arxiv.org/abs/2502.03373. Reference implementation from: https://g
open-r1/src/open_r1/rewards.py:332
↓ 12 callersMethod_get_per_token_logps
(self, model, input_ids, attention_mask, pixel_values, image_grid_thw)
R1-V/src/r1-v/src/open_r1/trainer/grpo_trainer.py:346
↓ 8 callersMethodcreate_model_card
Creates a draft of a model card using the information available to the `Trainer`. Args: model_name (`str` or `None`, *op
R1-V/src/r1-v/src/open_r1/trainer/grpo_trainer.py:743
↓ 8 callersFunctiond_concat
(old_d, new_d)
Visual-RFT/src/virft/src/open_r1/trainer/grpo_trainer.py:849
↓ 8 callersFunctiond_concat
(old_d, new_d)
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:848
↓ 8 callersFunctiond_concat
(old_d, new_d)
R1-V/src/r1-v/src/open_r1/trainer/grpo_trainer.py:802
↓ 8 callersFunctiond_concat_with_padding
(old_d, new_d, pad_token_id, left_pad=False)
Visual-RFT/src/virft/src/open_r1/trainer/grpo_trainer.py:858
↓ 8 callersFunctiond_concat_with_padding
(old_d, new_d, pad_token_id, left_pad=False)
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:857
↓ 8 callersFunctiond_concat_with_padding
(old_d, new_d, pad_token_id, left_pad=False)
R1-V/src/r1-v/src/open_r1/trainer/grpo_trainer.py:811
↓ 8 callersFunctionmerge_with_padding
(valid_rewards, new_rewards, pad_token_id, left_pad=False)
open-r1/src/open_r1/gpg_trainer.py:775
↓ 7 callersMethodevaluate
(self, results, save_dir, rank=-1)
Visual-RFT/coco_evaluation/coco_evaluation.py:75
↓ 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:514
↓ 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:26
↓ 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-rs/src/open_r1/utils/evaluation.py:26
↓ 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:144
↓ 5 callersFunctiondeps_list
(*pkgs)
open-r1/setup.py:84
↓ 5 callersFunctiondeps_list
(*pkgs)
open-rs/setup.py:84
↓ 5 callersFunctionlen_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-r1/src/open_r1/rewards.py:183
↓ 4 callersMethod_prepare_inputs
(self, inputs: dict[str, Union[torch.Tensor, Any]])
open-r1/src/open_r1/gpg_trainer.py:247
↓ 4 callersFunctiondeps_list
(*pkgs)
Visual-RFT/src/virft/setup.py:80
↓ 4 callersFunctiondeps_list
(*pkgs)
VisualThinker-R1-Zero/src/open-r1-multimodal/setup.py:81
↓ 4 callersFunctiondeps_list
(*pkgs)
R1-V/src/r1-v/setup.py:80
↓ 4 callersFunctionextract_bbox
(response)
Visual-RFT/src/virft/src/open_r1/grpo.py:72
↓ 4 callersFunctionget_callbacks
(train_config, model_config)
open-rs/src/open_r1/utils/callbacks.py:79
↓ 4 callersFunctionget_tokenizer
Get the tokenizer for the model.
open-rs/src/open_r1/utils/model_utils.py:11
↓ 4 callersFunctioninit_wandb_training
Helper function for setting up Weights & Biases logging tools.
open-rs/src/open_r1/utils/wandb_logging.py:4
↓ 3 callersMethod_get_per_token_logps
( self, model, input_ids, attention_mask, pixel_values, image_
Visual-RFT/src/virft/src/open_r1/trainer/vllm_grpo_trainer.py:463
↓ 3 callersMethod_get_per_token_logps
(self, model, input_ids, attention_mask, pixel_values, image_grid_thw)
Visual-RFT/src/virft/src/open_r1/trainer/grpo_trainer.py:363
↓ 3 callersMethod_get_per_token_logps
(self, model, input_ids, attention_mask, pixel_values, image_grid_thw)
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:354
↓ 3 callersMethod_get_per_token_logps
( self, model, input_ids, attention_mask, pixel_values, image_
R1-V/src/r1-v/src/open_r1/trainer/vllm_grpo_trainer_modified.py:389
↓ 3 callersMethod_get_per_token_logps
( self, model, input_ids, attention_mask, pixel_values, image_
R1-V/src/r1-v/src/open_r1/trainer/vllm_grpo_trainer.py:481
↓ 3 callersMethod_send_to_all
(self, route, data=None, method="post")
open-r1/src/open_r1/utils/ioi/piston_client.py:98
↓ 3 callersFunctionaccuracy_reward
Reward function that checks if the completion is the same as the ground truth.
open-r1/src/open_r1/rewards.py:26
↓ 3 callersFunctioncustom_loading_dataset
Load and preprocess a dataset from Parquet files, and filter out samples exceeding a specified length. Args: dataset_name (str): The
open-r1/src/open_r1/utils/data_utils.py:72
↓ 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:120
↓ 3 callersFunctionget_callbacks
(train_config, model_config)
open-r1/src/open_r1/utils/callbacks.py:79
↓ 3 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-rs/src/open_r1/rewards.py:472
↓ 3 callersFunctionget_cosine_scaled_reward
( min_value_wrong: float = -1.0, max_value_wrong: float = -0.5, min_value_correct: float = 0.5,
open-rs/src/open_r1/rewards.py:267
↓ 3 callersFunctionget_lighteval_tasks
()
open-r1/src/open_r1/utils/evaluation.py:57
↓ 3 callersFunctionget_lighteval_tasks
()
open-rs/src/open_r1/utils/evaluation.py:57
↓ 3 callersFunctionget_repetition_penalty_reward
Computes N-gram repetition penalty as described in Appendix C.2 of https://arxiv.org/abs/2502.03373. Reference implementation from: https://g
open-rs/src/open_r1/rewards.py:343
↓ 3 callersFunctionget_reward_funcs
(script_args)
open-r1/src/open_r1/rewards.py:571
↓ 3 callersFunctionget_tokenizer
Get the tokenizer for the model.
open-r1/src/open_r1/utils/model_utils.py:11
↓ 3 callersFunctioninit_wandb_training
Helper function for setting up Weights & Biases logging tools.
open-r1/src/open_r1/utils/wandb_logging.py:4
↓ 3 callersFunctionload_image
(image_path)
Visual-RFT/lisa_evaluation/box2mask.py:14
↓ 2 callersMethod_generate_and_score_completions
( self, inputs: dict[str, Union[torch.Tensor, Any]] )
open-r1/src/open_r1/gpg_trainer.py:320
↓ 2 callersMethod_prepare_inputs
(self, inputs: dict[str, Union[torch.Tensor, Any]])
Visual-RFT/src/virft/src/open_r1/trainer/grpo_trainer.py:414
↓ 2 callersMethod_prepare_inputs
(self, inputs: dict[str, Union[torch.Tensor, Any]])
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:405
↓ 2 callersMethod_prepare_inputs
(self, inputs: dict[str, Union[torch.Tensor, Any]])
R1-V/src/r1-v/src/open_r1/trainer/grpo_trainer.py:397
↓ 2 callersMethod_release_endpoint
(self, endpoint)
open-r1/src/open_r1/utils/ioi/piston_client.py:89
↓ 2 callersMethod_send_request
(self, endpoint, route, data=None, method="post")
open-r1/src/open_r1/utils/ioi/piston_client.py:92
↓ 2 callersFunctioncode_reward
Reward function that evaluates code snippets using the E2B code interpreter. Assumes the dataset contains a `verification_info` column with test
open-r1/src/open_r1/rewards.py:441
↓ 2 callersFunctioncount_tags
(text: str)
open-r1/src/open_r1/rewards.py:134
↓ 2 callersFunctioncount_tags
(text: str)
open-rs/src/open_r1/rewards.py:73
↓ 2 callersFunctioncreate_val_dataset
( json_file, data_dir, val_num=VAL_NUM, image_dir="/home/lilei/Visual-R1/CLEVR_CoGenT_v1.0/ima
R1-V/src/distill_r1/create_hf_dataset.py:59
↓ 2 callersFunctionextract_code
(completion: str, language: str = "python")
open-r1/src/open_r1/rewards.py:428
↓ 2 callersFunctionget_cosine_scaled_reward
( min_value_wrong: float = -1.0, max_value_wrong: float = -0.5, min_value_correct: float = 0.5,
open-r1/src/open_r1/rewards.py:256
↓ 2 callersMethodget_local_batch_samples
(self, epoch_iterator, num_batches)
Visual-RFT/src/virft/src/open_r1/trainer/grpo_trainer.py:375
↓ 2 callersMethodget_local_batch_samples
(self, epoch_iterator, num_batches)
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:366
↓ 2 callersMethodget_local_batch_samples
(self, epoch_iterator, num_batches)
open-r1/src/open_r1/gpg_trainer.py:738
↓ 2 callersMethodget_local_batch_samples
(self, epoch_iterator, num_batches)
R1-V/src/r1-v/src/open_r1/trainer/grpo_trainer.py:358
↓ 2 callersFunctionis_e2b_available
()
open-r1/src/open_r1/utils/import_utils.py:22
↓ 2 callersFunctionis_e2b_available
()
open-rs/src/open_r1/utils/import_utils.py:22
↓ 2 callersMethodlog
(self, logs: dict[str, float], start_time: Optional[float] = None)
open-r1/src/open_r1/gpg_trainer.py:690
↓ 2 callersFunctionmerge
(valid_rewards, new_rewards)
open-r1/src/open_r1/gpg_trainer.py:765
↓ 2 callersFunctionnormalize_string
Basic string normalization.
open-r1/scripts/decontaminate.py:36
↓ 2 callersFunctionpad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
Visual-RFT/src/virft/src/open_r1/trainer/grpo_trainer.py:871
↓ 2 callersFunctionpad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:870
↓ 2 callersFunctionpad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
open-r1/src/open_r1/gpg_trainer.py:789
↓ 2 callersFunctionpad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
R1-V/src/r1-v/src/open_r1/trainer/grpo_trainer.py:824
↓ 2 callersFunctionremove_duplicates
(bbox_list)
Visual-RFT/src/virft/src/open_r1/grpo.py:162
↓ 2 callersFunctionrun_benchmark_jobs
(training_args: Union["SFTConfig", "GRPOConfig"], model_args: "ModelConfig")
open-r1/src/open_r1/utils/evaluation.py:96
↓ 2 callersFunctionscore_subtask
Scores all test cases in a subtask. Args: client: PistonClient instance for executing code subtask: Dictionary containing su
open-r1/src/open_r1/utils/ioi/scoring.py:163
↓ 2 callersFunctionsort_and_calculate_iou
(list1, list2, iou_threshold=0.5)
Visual-RFT/src/virft/src/open_r1/grpo.py:127
↓ 2 callersFunctionword_ngrams
Generate word-level n-grams from text.
open-r1/scripts/decontaminate.py:45
↓ 2 callersFunctionwrite_to_jsonl
Thread-safe function to write a result to JSONL file
R1-V/src/distill_r1/query_r1.py:32
↓ 1 callersMethod__init__
(self, data_source, repeat_count: int)
Visual-RFT/src/virft/src/open_r1/trainer/vllm_grpo_trainer.py:99
↓ 1 callersMethod__init__
(self, data_source, repeat_count: int)
R1-V/src/r1-v/src/open_r1/trainer/vllm_grpo_trainer.py:100
↓ 1 callersMethod_check_failed_endpoint
(self, endpoint)
open-r1/src/open_r1/utils/ioi/piston_client.py:150
↓ 1 callersFunction_extract_single_status
Determines the status code based on the score and feedback message. Args: score: The numeric score (0.0 to 1.0) feedback: Th
open-r1/src/open_r1/utils/ioi/scoring.py:109
↓ 1 callersMethod_generate_and_score_completions
( self, model, inputs: dict[str, Union[torch.Tensor, Any]] )
Visual-RFT/src/virft/src/open_r1/trainer/grpo_trainer.py:419
↓ 1 callersMethod_generate_and_score_completions
( self, model, inputs: dict[str, Union[torch.Tensor, Any]] )
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:409
↓ 1 callersMethod_generate_and_score_completions
( self, model, inputs: dict[str, Union[torch.Tensor, Any]] )
R1-V/src/r1-v/src/open_r1/trainer/grpo_trainer.py:401
↓ 1 callersFunction_init_event_loop
()
open-r1/src/open_r1/rewards.py:381
↓ 1 callersMethod_send_execute
(self, data)
open-r1/src/open_r1/utils/ioi/piston_client.py:161
↓ 1 callersMethod_wait_for_endpoint
(self)
open-r1/src/open_r1/utils/ioi/piston_client.py:85
↓ 1 callersFunctionadd_includes
Fix common compilation errors for IOI problems.
open-r1/src/open_r1/utils/ioi/utils.py:8
↓ 1 callersFunctionanswer_a_batch_question_qwen
let qwen answer a batch of questions
R1-V/src/eval/test_qwen2vl_geoqa_multigpu.py:72
↓ 1 callersFunctionbatched
Batch data into lists of length n. The last batch may be shorter.
open-r1/src/open_r1/utils/ioi/utils.py:45
↓ 1 callersFunctionbuild_distilabel_pipeline
( model: str, base_url: str = "http://localhost:8000/v1", prompt_column: Optional[str] = None,
Visual-RFT/src/virft/src/open_r1/generate.py:22
↓ 1 callersFunctionbuild_distilabel_pipeline
( model: str, base_url: str = "http://localhost:8000/v1", prompt_column: Optional[str] = None,
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/generate.py:22
↓ 1 callersFunctionbuild_distilabel_pipeline
( model: str, base_url: str = "http://localhost:8000/v1", prompt_column: Optional[str] = None,
open-r1/src/open_r1/generate.py:23
↓ 1 callersFunctionbuild_distilabel_pipeline
( model: str, base_url: str = "http://localhost:8000/v1", prompt_column: Optional[str] = None,
R1-V/src/r1-v/src/open_r1/generate.py:22
↓ 1 callersFunctionbuild_distilabel_pipeline
( model: str, base_url: str = "http://localhost:8000/v1", prompt_column: Optional[str] = None,
open-rs/src/open_r1/generate.py:23
↓ 1 callersFunctionbuild_ngram_lookup
Build ngram lookup for documents.
open-r1/scripts/decontaminate.py:51
↓ 1 callersFunctionbuild_ngram_single
(document: str, ngram_size: int = 8)
open-r1/scripts/decontaminate.py:64
↓ 1 callersFunctionbuild_transform
(input_size)
VisualThinker-R1-Zero/src/open-r1-multimodal/test.py:12
↓ 1 callersFunctionbuild_transform
(input_size)
VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/InternVL2.py:11
↓ 1 callersFunctioncal_score
(lvis_results)
Visual-RFT/lvis_evaluation/Qwen2_VL_lvis_infere.py:354
↓ 1 callersFunctioncalculate_iou
(bbox1, bbox2)
Visual-RFT/src/virft/src/open_r1/grpo.py:105
next →1–100 of 443, ranked by callers