MCPcopy Create free account

hub / github.com/NVlabs/GDPO / functions

Functions2,091 in github.com/NVlabs/GDPO

↓ 1 callersMethodcreate_model_card
Creates a draft of a model card using the information available to the `Trainer`. Args: model_name (`str` or `None`, *op
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/alignprop_trainer.py:395
↓ 1 callersMethodcreate_model_card
Creates a draft of a model card using the information available to the `Trainer`. Args: model_name (`str` or `None`, *op
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/sft_trainer.py:751
↓ 1 callersMethodcreate_model_card
Creates a draft of a model card using the information available to the `Trainer`. Args: model_name (`str` or `None`, *op
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:1529
↓ 1 callersMethodcreate_resource_pool
(self)
verl-GDPO/verl/trainer/ppo/ray_trainer.py:78
↓ 1 callersFunctioncreate_worker_group_register_center
(name, info)
verl-GDPO/verl/single_controller/base/register_center/ray.py:28
↓ 1 callersFunctioncustomize_correctness_reward_tool
(completions, answer, step, max_possible_reward, min_possible_reward, **kwargs)
verl-GDPO/verl/utils/reward_score/rlla.py:202
↓ 1 callersFunctioncustomize_format_reward_func
(completions, answer, step, max_possible_reward, min_possible_reward, **kwargs)
verl-GDPO/verl/utils/reward_score/rlla.py:44
↓ 1 callersFunctioncustomize_length_reward_func
(completions, answer, step, max_possible_reward, min_possible_reward, **kwargs)
verl-GDPO/verl/utils/reward_score/rlla.py:101
↓ 1 callersMethoddefault_tp_concat_fn
name: name of the parameter param: training parameters infer_params (List[torch.Tensor]): a list of parameters all-gathered f
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:267
↓ 1 callersMethoddispatch_fn
(x, i, chunks)
verl-GDPO/verl/protocol.py:623
↓ 1 callersFunctiondispatch_megatron_compute
User passes in dp data. The data is dispatched to all tp/pp ranks with the same dp
verl-GDPO/verl/single_controller/base/decorator.py:74
↓ 1 callersFunctiondispatch_megatron_pp_as_dp
treat pp as dp.
verl-GDPO/verl/single_controller/base/decorator.py:161
↓ 1 callersFunctiondownload_files_distributed
(download_fn)
verl-GDPO/verl/utils/dataset/rm_dataset.py:27
↓ 1 callersFunctiondownload_video
Download video if not already present locally.
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/sft_video_llm.py:62
↓ 1 callersFunctiondump_data
(data, name)
verl-GDPO/verl/utils/debug/trajectory_tracker.py:69
↓ 1 callersFunctionevaluate_equation
Safely evaluate the arithmetic equation using eval() with precautions.
verl-GDPO/verl/utils/reward_score/countdown.py:44
↓ 1 callersFunctionexecute_ioi
Requests to the IOI package return the score as a float in the stdout, as well as optional feedback/errors in stderr. Returns a tuple of (sco
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/ioi_scoring.py:302
↓ 1 callersMethodexecute_scripts
Execute scripts using E2B sandboxes. If e2b_router_url is provided, uses the RoutedSandbox for batch processing. Otherwise, uses dire
trl-GDPO/open-r1/src/open_r1/utils/code_providers.py:82
↓ 1 callersFunctionextract_hash_answer
(text: str)
trl-GDPO/open-r1/src/open_r1/gsm8k.py:80
↓ 1 callersFunctionextract_solution
Extract the equation from the solution string.
verl-GDPO/verl/utils/reward_score/countdown.py:7
↓ 1 callersFunctionextract_solution
(solution_str, method='strict')
verl-GDPO/verl/utils/reward_score/gsm8k.py:18
↓ 1 callersFunctionextract_solution
(solution_str)
verl-GDPO/verl/utils/reward_score/multiply.py:5
↓ 1 callersMethodfit
(self)
verl-GDPO/verl/trainer/fsdp_sft_trainer.py:313
↓ 1 callersFunctionfix_a_slash_b
(string)
verl-GDPO/verl/utils/reward_score/math.py:125
↓ 1 callersFunctionfix_cpp_includes
(source_code)
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/code_patcher.py:76
↓ 1 callersFunctionfix_fracs
(string)
verl-GDPO/verl/utils/reward_score/math.py:93
↓ 1 callersFunctionfix_python3_imports
Fix common import and function changes between Python 3 versions Args: source_code (str): The Python source code to update Retu
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/code_patcher.py:4
↓ 1 callersFunctionfix_sqrt
(string)
verl-GDPO/verl/utils/reward_score/math.py:150
↓ 1 callersMethodflush
(self)
verl-GDPO/verl/utils/logger/aggregate_logger.py:37
↓ 1 callersMethodforward
(self, *inputs, **kwargs)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:127
↓ 1 callersMethodforward
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_base.py:708
↓ 1 callersMethodforward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
verl-GDPO/verl/workers/reward_model/megatron/reward_model.py:185
↓ 1 callersMethodfrom_detached
(cls, worker_names=None, ray_cls_with_init=None)
verl-GDPO/verl/single_controller/ray/base.py:285
↓ 1 callersFunctionfunc_generator
(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking)
verl-GDPO/verl/single_controller/ray/base.py:36
↓ 1 callersFunctiongather_from_labels
Gather the label from data. The value in label should be [0, vocab_size) Args: data: (..., vocab_size) label (torch.IntTensor) :
verl-GDPO/verl/utils/torch_functional.py:34
↓ 1 callersFunctiongenerate
Generates sequences from the language model backbone in a way that does not affect padding tokens. Args: lm_backbone (`torch.nn.Modu
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:1345
↓ 1 callersMethodgenerate
r""" A simple wrapper around the `generate` method of the wrapped model. Please refer to the [`generate`](https://huggingface.co/docs/
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:187
↓ 1 callersFunctiongenerate_completion
(session, prompt, args)
trl-GDPO/open-r1/scripts/generate_reasoning.py:21
↓ 1 callersMethodgenerate_completions
(self, sampling: bool = False)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/rloo_trainer.py:567
↓ 1 callersMethodgenerate_from_model
Generate samples from the model and reference model for the given batch of inputs.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/orpo_trainer.py:850
↓ 1 callersMethodgenerate_from_model
Generate samples from the model and reference model for the given batch of inputs.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/cpo_trainer.py:875
↓ 1 callersMethodgenerate_from_model_and_ref
Generate samples from the model and reference model for the given batch of inputs.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/kto_trainer.py:1472
↓ 1 callersMethodgenerate_from_model_and_ref
Generate samples from the model and reference model for the given batch of inputs.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:1285
↓ 1 callersMethodgenerate_from_model_and_ref
Generate samples from the model and reference model for the given batch of inputs.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/dpo_trainer.py:1375
↓ 1 callersFunctiongenerate_function
(name)
verl-GDPO/verl/single_controller/ray/base.py:395
↓ 1 callersFunctionget_act_offloading_ctx_manager
Returns the activation offloading context manager for the model. All but the last output Linear in every step will be offloaded. If acti
trl-GDPO/trl-0.18.0-gdpo/trl/models/activation_offloading.py:343
↓ 1 callersFunctionget_all_parameters
(sub_module, recurse=False)
trl-GDPO/trl-0.18.0-gdpo/trl/models/utils.py:158
↓ 1 callersMethodget_availale_master_addr_port
(self)
verl-GDPO/verl/single_controller/base/worker.py:63
↓ 1 callersMethodget_batch_logps
Compute the log probabilities of the given labels under the given logits. Args: logits: Logits of the model (unnormalized). Shape
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/orpo_trainer.py:655
↓ 1 callersMethodget_batch_logps
Compute the log probabilities of the given labels under the given logits. Args: logits: Logits of the model (unnormalized). Shape
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/cpo_trainer.py:690
↓ 1 callersFunctionget_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
verl-GDPO/verl/utils/torch_functional.py:379
↓ 1 callersFunctionget_default_model_parallel_config
()
verl-GDPO/verl/utils/megatron/tensor_parallel.py:43
↓ 1 callersFunctionget_device_flops
(unit="T")
verl-GDPO/verl/utils/flops_counter.py:21
↓ 1 callersMethodget_eval_dataloader
Returns the evaluation [`~torch.utils.data.DataLoader`]. Subclass of transformers.src.transformers.trainer.get_eval_dataloader to pr
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/kto_trainer.py:865
↓ 1 callersFunctionget_exp_cap
Get the exponent cap of a value. This is used to cap the exponent of a value to avoid overflow. The formula is : log(value.dtype.max) E.g
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:954
↓ 1 callersFunctionget_generated_contest_tests
(contest_id: str)
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/cf_scoring.py:59
↓ 1 callersFunctionget_generated_tests
(problem_id: str)
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/cf_scoring.py:89
↓ 1 callersFunctionget_git_commit_hash
(package_name)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/utils.py:248
↓ 1 callersFunctionget_global_statistics
Computes element-wise mean and variance of the tensor across processes. Reference: https://github.com/OpenLMLab/MOSS-RLHF/blob/40b91eb2f2b71b
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:764
↓ 1 callersFunctionget_gpu_count_for_vllm
vLLM enforces a constraint that the number of attention heads must be divisible by the number of GPUs and 64 must be divisible by the number of GPUs.
trl-GDPO/open-r1/src/open_r1/utils/hub.py:121
↓ 1 callersFunctionget_huggingface_actor_config
(model_name: str, override_config_kwargs=None, trust_remote_code=False)
verl-GDPO/verl/utils/model.py:47
↓ 1 callersFunctionget_local_temp_path
Return a local temp path that joins cache_dir and basename of hdfs_path Args: hdfs_path: cache_dir: Returns:
verl-GDPO/verl/utils/fs.py:37
↓ 1 callersMethodget_megatron_global_info
(self)
verl-GDPO/verl/single_controller/base/megatron/worker.py:25
↓ 1 callersFunctionget_micro_data_parallel_rank
()
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:427
↓ 1 callersFunctionget_model_size
(model: nn.Module, scale='auto')
verl-GDPO/verl/utils/model.py:102
↓ 1 callersFunctionget_morph_client_from_env
Creates a MorphCloudExecutionClient instance using environment variables. Environment variables: MORPH_API_KEY: API key for MorphClo
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/morph_client.py:715
↓ 1 callersFunctionget_nccl_id_store_by_name
(name)
verl-GDPO/verl/utils/rendezvous/ray_backend.py:34
↓ 1 callersFunctionget_param_count_from_repo_id
Function to get model param counts from safetensors metadata or find patterns like 42m, 1.5b, 0.5m or products like 8x7b in a repo ID.
trl-GDPO/open-r1/src/open_r1/utils/hub.py:89
↓ 1 callersMethodget_partitions
(self)
verl-GDPO/verl/utils/seqlen_balancing.py:63
↓ 1 callersFunctionget_predefined_dispatch_fn
(dispatch_mode)
verl-GDPO/verl/single_controller/base/decorator.py:300
↓ 1 callersFunctionget_predefined_execute_fn
Note that here we only asks execute_all and execute_rank_zero to be implemented Leave the choice of how these two functions handle argument '
verl-GDPO/verl/single_controller/base/decorator.py:350
↓ 1 callersFunctionget_provider
Factory function to get the appropriate code execution provider. Args: provider_type: Type of provider to use ("e2b", "morph") **
trl-GDPO/open-r1/src/open_r1/utils/code_providers.py:339
↓ 1 callersFunctionget_random_string
(length: int)
verl-GDPO/verl/single_controller/ray/base.py:29
↓ 1 callersFunctionget_slurm_piston_endpoints
Get list of active piston worker endpoints from squeue output
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/piston_client.py:201
↓ 1 callersMethodget_supported_archs
()
verl-GDPO/verl/models/registry.py:65
↓ 1 callersMethodget_supported_runtimes
(self)
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/piston_client.py:121
↓ 1 callersFunctionget_tensor_parallel_size
(model_name: str, revision: str = None, default_tp: int = 8)
trl-GDPO/open-r1/scripts/get_tensor_parallel_size.py:5
↓ 1 callersFunctionget_tracked_python_files
Get a list of all tracked Python files using git.
trl-GDPO/trl-0.18.0-gdpo/scripts/add_copyrights.py:37
↓ 1 callersFunctionget_ulysses_sequence_parallel_rank
Get ulysses sequence parallel rank.
verl-GDPO/verl/utils/ulysses.py:53
↓ 1 callersFunctionget_username
()
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/chat.py:281
↓ 1 callersFunctionget_weight_loader
(arch: str)
verl-GDPO/verl/models/weight_loader_registry.py:16
↓ 1 callersMethodinit_megatron
(self, default_megatron_kwargs: Optional[Dict] = None)
verl-GDPO/verl/single_controller/ray/megatron.py:58
↓ 1 callersMethodinit_workers
Init resource pool and worker group
verl-GDPO/verl/trainer/ppo/ray_trainer.py:559
↓ 1 callersFunctioninit_zero_verbose
Perform zero verbose init - use this method on top of the CLI modules to make logging and warning output cleaner. Uses Rich if available, fal
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/utils.py:80
↓ 1 callersFunctioninitialize_global_process_group
(timeout_second=36000)
verl-GDPO/verl/utils/distributed.py:18
↓ 1 callersMethodinput
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/chat.py:252
↓ 1 callersFunctioninstructions_formatting_function
r""" return a callable function that takes in an "instructions" dataset and returns a formatted dataset, based on the tokenizer apply chat tem
trl-GDPO/trl-0.18.0-gdpo/trl/extras/dataset_formatting.py:52
↓ 1 callersFunctionioi_code_reward
Reward function that evaluates IOI problems using a specified execution client. Assumes the dataset has the same format as hf.co/datasets/open-r1
trl-GDPO/open-r1/src/open_r1/rewards.py:367
↓ 1 callersFunctionis_deepspeed_available
()
trl-GDPO/trl-0.18.0-gdpo/trl/import_utils.py:43
↓ 1 callersFunctionis_equiv
(str1, str2, verbose=False)
verl-GDPO/verl/utils/reward_score/math.py:32
↓ 1 callersFunctionis_megatron_core_available
()
verl-GDPO/verl/utils/import_utils.py:24
↓ 1 callersFunctionis_slurm_available
()
trl-GDPO/open-r1/src/open_r1/utils/callbacks.py:28
↓ 1 callersFunctionis_transformers_version_in_range
(min_version: str, max_version: str)
verl-GDPO/verl/models/transformers/monkey_patch.py:66
↓ 1 callersFunctioniter_params
(module, recurse=False)
trl-GDPO/trl-0.18.0-gdpo/trl/models/utils.py:162
↓ 1 callersMethodjudge
(self, prompts: list[str], completions: list[list[str]], shuffle_order: bool = True)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/judges.py:314
↓ 1 callersMethodjudge
( self, prompts: list[str], completions: list[str], gold_completions: Optional
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/judges.py:432
↓ 1 callersFunctionkarmarkar_karp
(seqlen_list: List[int], k_partitions: int, equal_size: bool)
verl-GDPO/verl/utils/seqlen_balancing.py:25
↓ 1 callersMethodkto_loss
Compute the KTO loss for a batch of policy and reference model log probabilities. Args: policy_chosen_logps: Log probabilities of
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/kto_trainer.py:1090
↓ 1 callersFunctionlast_boxed_only_string
(string)
verl-GDPO/verl/utils/reward_score/math.py:63
↓ 1 callersMethodload_from_json
Create an instance from the content of `json_path`.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:755
← previousnext →601–700 of 2,091, ranked by callers