MCPcopy Create free account

hub / github.com/NVlabs/GDPO / functions

Functions2,091 in github.com/NVlabs/GDPO

↓ 1 callersFunctionload_ioi_tests
Load IOI tests for a given year and problem id.
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/ioi_utils.py:37
↓ 1 callersFunctionload_ioi_tests_for_year
Load IOI tests for a given year.
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/ioi_utils.py:26
↓ 1 callersFunctionload_megatron_param_and_grad
(module_list: nn.ModuleList, device_id, load_grad=False, hybrid_engine=None)
verl-GDPO/verl/utils/megatron_utils.py:241
↓ 1 callersFunctionload_model_and_tokenizer
(args)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/chat.py:352
↓ 1 callersMethodload_model_cls
(model_arch: str, value=False)
verl-GDPO/verl/models/registry.py:49
↓ 1 callersMethodload_params_to_cuda
(self)
verl-GDPO/verl/workers/reward_model/megatron/reward_model.py:270
↓ 1 callersFunctionload_processed_uuids
(output_file, uuid_column)
trl-GDPO/open-r1/scripts/generate_reasoning.py:91
↓ 1 callersMethodlog
Log `logs` on the various objects watching training, including stored metrics. Args: logs (`dict[str, float]`):
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/orpo_trainer.py:965
↓ 1 callersMethodlog
Log `logs` on the various objects watching training, including stored metrics. Args: logs (`dict[str, float]`):
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:1423
↓ 1 callersMethodlog
Log `logs` on the various objects watching training, including stored metrics. Args: logs (`dict[str, float]`):
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/cpo_trainer.py:985
↓ 1 callersFunctionlog_seqlen_unbalance
(seqlen_list: List[int], partitions: List[List[int]], prefix)
verl-GDPO/verl/utils/seqlen_balancing.py:186
↓ 1 callersFunctionlogprobs_from_logits_flash_attn
(logits, labels)
verl-GDPO/verl/utils/torch_functional.py:65
↓ 1 callersFunctionlogprobs_from_logits_naive
(logits, labels)
verl-GDPO/verl/utils/torch_functional.py:70
↓ 1 callersFunctionmain
(config)
verl-GDPO/verl/trainer/main_ppo.py:106
↓ 1 callersFunctionmain
(config)
verl-GDPO/verl/trainer/main_generation.py:40
↓ 1 callersFunctionmain
(config)
verl-GDPO/verl/trainer/main_eval.py:35
↓ 1 callersFunctionmain
(config)
verl-GDPO/verl/trainer/fsdp_sft_trainer.py:360
↓ 1 callersFunctionmain
Main function to check and add copyright for all tracked Python files.
trl-GDPO/trl-0.18.0-gdpo/scripts/add_copyrights.py:73
↓ 1 callersFunctionmain
(test_size, push_to_hub, repo_id)
trl-GDPO/trl-0.18.0-gdpo/scripts/generate_zen_dataset.py:49
↓ 1 callersFunctionmain
(slack_channel_name)
trl-GDPO/trl-0.18.0-gdpo/scripts/log_reports.py:65
↓ 1 callersFunctionmain
()
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/sft_vlm_gemma3.py:133
↓ 1 callersFunctionmain
()
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/sft_gemma3.py:27
↓ 1 callersFunctionmain
(args)
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama/scripts/supervised_finetuning.py:207
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/dpo.py:69
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/sft.py:73
↓ 1 callersFunctionmain
(args: ChatArguments)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/chat.py:398
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/kto.py:74
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/grpo.py:64
↓ 1 callersFunctionmain
(script_args: ScriptArguments)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/vllm_serve.py:335
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
trl-GDPO/open-r1/src/open_r1/sft.py:55
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
trl-GDPO/open-r1/src/open_r1/gsm8k.py:134
↓ 1 callersFunctionmain
()
trl-GDPO/open-r1/scripts/upload_details.py:40
↓ 1 callersFunctionmain
()
trl-GDPO/open-r1/scripts/run_benchmarks.py:39
↓ 1 callersFunctionmain
()
trl-GDPO/open-r1/scripts/generate_reasoning.py:104
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
trl-GDPO/open-r1/scripts/pass_rate_filtering/compute_pass_rate.py:48
↓ 1 callersFunctionmake_parser
(subparsers: argparse._SubParsersAction = None)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/dpo.py:139
↓ 1 callersFunctionmake_parser
(subparsers: argparse._SubParsersAction = None)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/sft.py:134
↓ 1 callersFunctionmake_parser
(subparsers: argparse._SubParsersAction = None)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/chat.py:504
↓ 1 callersFunctionmake_parser
(subparsers: argparse._SubParsersAction = None)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/kto.py:116
↓ 1 callersFunctionmake_parser
(subparsers: argparse._SubParsersAction = None)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/grpo.py:120
↓ 1 callersFunctionmake_parser
(subparsers: argparse._SubParsersAction = None)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/vllm_serve.py:573
↓ 1 callersFunctionmasked_var
Compute variance of tensor with masked values.
verl-GDPO/verl/utils/torch_functional.py:112
↓ 1 callersFunctionmasked_whiten
Whiten values with masked values.
verl-GDPO/verl/utils/torch_functional.py:130
↓ 1 callersFunctionmean_pooling
(model_output, attention_mask)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/bco.py:87
↓ 1 callersFunctionmerge_models
Merge two models using mergekit Args: config (`MergeConfig`): The merge configuration. out_path (`str`): The output path for
trl-GDPO/trl-0.18.0-gdpo/trl/mergekit_utils.py:264
↓ 1 callersFunctionnanmax
Compute the maximum value of a tensor, ignoring NaNs. This function only supports 1D tensors. Args: tensor (`torch.Tensor`): Input t
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:280
↓ 1 callersFunctionnanmin
Compute the minimum value of a tensor, ignoring NaNs. This function only supports 1D tensors. Args: tensor (`torch.Tensor`): Input t
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:265
↓ 1 callersFunctionnanstd
Compute the standard deviation of a tensor, ignoring NaNs. This function only supports 1D tensors. Args: tensor (`torch.Tensor`):
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:197
↓ 1 callersFunctionnormalize_model_name
Transform the model name in each model_chunk in each pp stage into the name in inference engine
verl-GDPO/verl/utils/model.py:192
↓ 1 callersMethodnull_ref_context
Context manager for handling null reference model (that is, peft adapter manipulation).
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/ppo_trainer.py:318
↓ 1 callersMethododds_ratio_loss
Compute ORPO's odds ratio (OR) loss for a batch of policy and reference model log probabilities. Args: policy_chosen_logps: Log p
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/orpo_trainer.py:623
↓ 1 callersFunctionoffload_fsdp_grad
(module)
verl-GDPO/verl/utils/fsdp_utils.py:79
↓ 1 callersFunctionoffload_megatron_param_and_grad
(module_list: nn.ModuleList, offload_grad=False, hybrid_engine=None)
verl-GDPO/verl/utils/megatron_utils.py:226
↓ 1 callersMethodoffload_params_to_cpu
offload params of models that are not of current pp rank to cpu
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:157
↓ 1 callersMethodon_after_inner_forward
(self, wrapper_module: nn.Module, original_module: nn.Module)
trl-GDPO/trl-0.18.0-gdpo/trl/models/utils.py:337
↓ 1 callersMethodon_after_outer_forward
(self, wrapper_module: nn.Module, original_module: nn.Module)
trl-GDPO/trl-0.18.0-gdpo/trl/models/utils.py:340
↓ 1 callersFunctionpad_dataproto_to_divisor
Pad a DataProto to size divisible by size_divisor Args: size_divisor (int): size divisor Returns: data: (DataProto): the pad
verl-GDPO/verl/protocol.py:40
↓ 1 callersFunctionpad_to_sequence_parallel
pad the tokens such that the total length is a multiple of sp world size Args: unpad_tokens: (total_nnz, ...). Tokens after removing padd
verl-GDPO/verl/utils/megatron/sequence_parallel.py:29
↓ 1 callersFunctionparse_args
Parse command-line arguments for the e2b_router script. Arguments: --host (str): The hostname or IP address to bind the server to. D
trl-GDPO/open-r1/scripts/e2b_router.py:139
↓ 1 callersFunctionparse_args
Parse command-line arguments for the morph_router script. Arguments: --host (str): The hostname or IP address to bind the server to.
trl-GDPO/open-r1/scripts/morph_router.py:143
↓ 1 callersFunctionparse_eos_tokens
(tokenizer, eos_tokens, eos_token_ids)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/chat.py:378
↓ 1 callersFunctionparse_settings
(user_input, current_args, interface)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/chat.py:315
↓ 1 callersFunctionpatch_code
(text, lang)
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/code_patcher.py:89
↓ 1 callersFunctionpipeline_step
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `list[str]`, *optional*): The prompt or prompts to guide t
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:326
↓ 1 callersFunctionpipeline_step_with_grad
r""" Function to get RGB image with gradients attached to the model weights. Args: prompt (`str` or `list[str]`, *optional*, defaults
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:532
↓ 1 callersMethodpost_init
r""" Post initialization method. This method is called after the model is instantiated and loaded from a checkpoint. It can be used to
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_base.py:566
↓ 1 callersMethodprediction_step
( self, model: Union[PreTrainedModel, nn.Module], inputs: dict[str, Union[torch.Tensor
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/reward_trainer.py:293
↓ 1 callersFunctionprepare_dataset
Prepare dataset example for training.
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/sft_video_llm.py:83
↓ 1 callersFunctionprepare_dataset
(dataset: DatasetDict, dataset_name: str, dataset_train_split: str)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/sft_vlm_gemma3.py:117
↓ 1 callersMethodprepare_inputs_for_generation
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_base.py:719
↓ 1 callersMethodprepare_model_inputs
(self, input_ids: torch.Tensor, attention_mask: torch.Tensor, labels: torch.Tensor)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/iterative_sft_trainer.py:227
↓ 1 callersFunctionprepare_sample_text
Prepare the text from a sample of the dataset.
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama/scripts/supervised_finetuning.py:99
↓ 1 callersFunctionprepare_sample_text
Prepare the text from a sample of the dataset.
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama_2/scripts/sft_llama2.py:111
↓ 1 callersMethodprint_help
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/chat.py:276
↓ 1 callersFunctionprint_trainable_parameters
Prints the number of trainable parameters in the model.
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama/scripts/supervised_finetuning.py:84
↓ 1 callersMethodprint_user_message
(self, text)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/chat.py:264
↓ 1 callersFunctionprocess_example
(example)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/prm800k.py:51
↓ 1 callersFunctionprocess_example
(example, session, args, output_file, pbar)
trl-GDPO/open-r1/scripts/generate_reasoning.py:45
↓ 1 callersFunctionprocess_log_file
(log)
trl-GDPO/trl-0.18.0-gdpo/scripts/log_reports.py:34
↓ 1 callersMethodpush_to_hub
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:217
↓ 1 callersFunctionpush_to_hub_revision
Pushes the model to branch on a Hub repo.
trl-GDPO/open-r1/src/open_r1/utils/hub.py:39
↓ 1 callersFunctionrandn_tensor
A helper function to create random tensors on the desired `device` with the desired `dtype`. When passing a list of generators, you can seed each
trl-GDPO/trl-0.18.0-gdpo/trl/core.py:113
↓ 1 callersMethodre_encode_by_rm_tokenizer
(self, data: DataProto)
verl-GDPO/verl/workers/reward_model/megatron/reward_model.py:58
↓ 1 callersFunctionreasoning_steps_reward
r"""Reward function that checks for clear step-by-step reasoning. Regex pattern: Step \d+: - matches "Step 1:", "Step 2:", etc. ^\
trl-GDPO/open-r1/src/open_r1/rewards.py:115
↓ 1 callersFunctionrecurse
(nest: dict, prefix: str, into: dict)
trl-GDPO/trl-0.18.0-gdpo/trl/core.py:29
↓ 1 callersFunctionremove_boxed
(s)
verl-GDPO/verl/utils/reward_score/math.py:49
↓ 1 callersFunctionremove_hooks
Removes the optimizer hooks from a DeepSpeed ZeRO-3 model.
trl-GDPO/trl-0.18.0-gdpo/trl/models/utils.py:135
↓ 1 callersFunctionremove_right_units
(string)
verl-GDPO/verl/utils/reward_score/math.py:140
↓ 1 callersMethodreorder
Note that this operation is in-place
verl-GDPO/verl/protocol.py:539
↓ 1 callersFunctionrepeat_each_element_k_times
(list_to_repeat: list, k: int)
trl-GDPO/open-r1/scripts/pass_rate_filtering/compute_pass_rate.py:137
↓ 1 callersMethodrgb_with_grad
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:827
↓ 1 callersFunctionrun_lighteval_job
( benchmark: str, training_args: Union["SFTConfig", "GRPOConfig"], model_args: "ModelConfig", )
trl-GDPO/open-r1/src/open_r1/utils/evaluation.py:69
↓ 1 callersFunctionrun_script
(script: str, language: str)
trl-GDPO/open-r1/scripts/e2b_router.py:110
↓ 1 callersFunctionrun_script
(script: str, language: str)
trl-GDPO/open-r1/scripts/morph_router.py:96
↓ 1 callersFunctionrun_submission
Executes a submission against a test case using the Piston execution environment. Args: client: PistonClient instance for executing
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/ioi_scoring.py:267
↓ 1 callersFunctionrun_training
(args, train_data, val_data)
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama/scripts/supervised_finetuning.py:147
↓ 1 callersFunctionsave_chat
(chat, args, filename)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/chat.py:290
↓ 1 callersMethodsave_to_json
Save the content of this instance in JSON format inside `json_path`.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:745
↓ 1 callersMethodscheduler_step
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:82
↓ 1 callersFunctionscore_single_test_case
( client: PistonClient, problem_data: dict, test_input: str, test_output: str, submission:
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/cf_scoring.py:12
← previousnext →701–800 of 2,091, ranked by callers