MCPcopy Create free account

hub / github.com/NVlabs/GDPO / functions

Functions2,091 in github.com/NVlabs/GDPO

↓ 1 callersMethod__init__
(self, resource_pool: RayResourcePool, ray_cls_with_init: RayClassWithInitAr
verl-GDPO/verl/single_controller/ray/megatron.py:44
↓ 1 callersMethod__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
verl-GDPO/verl/models/llama/megatron/layers/parallel_decoder.py:35
↓ 1 callersMethod__init__
(self, input_size, num_heads, num_key_value_heads,
verl-GDPO/verl/models/llama/megatron/layers/parallel_linear.py:23
↓ 1 callersMethod__init__
(self)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/ddpo.py:81
↓ 1 callersMethod__init__
(self, buffer_size, min_count)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:861
↓ 1 callersMethod__init__
( self, args: PPOConfig, processing_class: Optional[ Union[PreTrainedToken
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/ppo_trainer.py:101
↓ 1 callersMethod__init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/auxiliary_modules.py:26
↓ 1 callersMethod__init__
( self, pretrained_model=None, score_module=None, supports_rm_adapter=False, rm_adapter_name=None, **k
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_base.py:84
↓ 1 callersMethod__init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/activation_offloading.py:336
↓ 1 callersMethod_balance_batch
Reorder the data on single controller such that each dp rank gets similar total tokens
verl-GDPO/verl/trainer/ppo/ray_trainer.py:647
↓ 1 callersMethod_bind_worker_method
Bind the worker method to the WorkerGroup
verl-GDPO/verl/single_controller/base/worker_group.py:136
↓ 1 callersFunction_bind_workers_method_to_parent
Binds the methods of each worker to the WorkerDict. Note that we only bind public methods that are decorated by register
verl-GDPO/verl/single_controller/ray/base.py:380
↓ 1 callersMethod_block_until_all_workers_alive
(self)
verl-GDPO/verl/single_controller/base/worker_group.py:113
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
verl-GDPO/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:214
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
verl-GDPO/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:224
↓ 1 callersFunction_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
verl-GDPO/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:267
↓ 1 callersFunction_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
verl-GDPO/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:278
↓ 1 callersFunction_broadcast_tp_shard_tensor_vocab
broadcast tensor in tp shards across mp_group
verl-GDPO/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:131
↓ 1 callersMethod_build_critic_model_optimizer
(self, model_path, megatron_config
verl-GDPO/verl/workers/megatron_workers.py:446
↓ 1 callersMethod_build_critic_model_optimizer
(self, config)
verl-GDPO/verl/workers/fsdp_workers.py:540
↓ 1 callersMethod_build_dataloader
(self)
verl-GDPO/verl/trainer/fsdp_sft_trainer.py:92
↓ 1 callersMethod_build_model
(self, config)
verl-GDPO/verl/workers/fsdp_workers.py:793
↓ 1 callersMethod_build_model_optimizer
(self)
verl-GDPO/verl/trainer/fsdp_sft_trainer.py:139
↓ 1 callersMethod_build_param_buffer
Build the parameter buffer in each pp rank
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:82
↓ 1 callersMethod_build_rm_model
(self, model_path, megatron_config: ModelParallelConfig, override_model_config)
verl-GDPO/verl/workers/megatron_workers.py:614
↓ 1 callersMethod_build_rollout
(self)
verl-GDPO/verl/workers/megatron_workers.py:216
↓ 1 callersMethod_build_rollout
(self)
verl-GDPO/verl/workers/fsdp_workers.py:250
↓ 1 callersFunction_check_and_sort_partitions
(partitions)
verl-GDPO/verl/utils/seqlen_balancing.py:170
↓ 1 callersFunction_check_dispatch_mode
(dispatch_mode)
verl-GDPO/verl/single_controller/base/decorator.py:366
↓ 1 callersFunction_check_execute_mode
(execute_mode)
verl-GDPO/verl/single_controller/base/decorator.py:375
↓ 1 callersMethod_compile_code
Compile the code on the instance. Args: instance: The MorphCloud instance Returns: InstanceExecResp
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/morph_client.py:166
↓ 1 callersMethod_compute_judge
(self, model_data, ref_data, context_length)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/xpo_trainer.py:254
↓ 1 callersMethod_compute_judge
(self, model_data, mixture_data, context_length)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/nash_md_trainer.py:269
↓ 1 callersMethod_compute_logprobs
(self, model, model_data, ref_data, context_length)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/xpo_trainer.py:289
↓ 1 callersMethod_compute_logprobs
(self, model, model_data, context_length)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/nash_md_trainer.py:303
↓ 1 callersMethod_compute_loss
(self, model, inputs)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:1397
↓ 1 callersMethod_compute_loss_liger
Compute the KTO loss using the Liger-Kernel's LigerFusedLinearKTOLoss. Args: model: The policy model used for generating
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/kto_trainer.py:1191
↓ 1 callersMethod_compute_losses
( self, model_logprobs_model_data, model_logprobs_ref_data, ref_logprobs_ref_d
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/xpo_trainer.py:321
↓ 1 callersMethod_compute_losses
( self, model_logprobs_model_data, ref_logprobs_model_data, probability, )
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/nash_md_trainer.py:328
↓ 1 callersFunction_compute_mlflow_params_from_objects
(params)
verl-GDPO/verl/utils/tracking.py:74
↓ 1 callersMethod_compute_rewards
(self, model_data, ref_data, context_length)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/xpo_trainer.py:236
↓ 1 callersMethod_compute_rewards
(self, model_data, mixture_data, context_length)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/nash_md_trainer.py:251
↓ 1 callersMethod_config_check
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/ddpo_trainer.py:555
↓ 1 callersMethod_configure_before_init
(self, register_center_name: str, rank: int)
verl-GDPO/verl/single_controller/base/worker.py:102
↓ 1 callersMethod_configure_with_meta
This function should only be called inside by WorkerGroup
verl-GDPO/verl/single_controller/base/worker.py:147
↓ 1 callersFunction_copy
(from_path: str, to_path: str, timeout: int = None)
verl-GDPO/verl/utils/hdfs_io.py:113
↓ 1 callersMethod_create_dataloader
(self)
verl-GDPO/verl/trainer/ppo/ray_trainer.py:429
↓ 1 callersMethod_create_model_from_path
Creates a model from a path or model identifier.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/iterative_sft_trainer.py:222
↓ 1 callersMethod_create_model_from_path
Creates a model from a path or model identifier.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/sft_trainer.py:410
↓ 1 callersMethod_determine_best_metric
Determine if the model should be saved based on the evaluation metrics. If args.metric_for_best_model is not set, the loss is used.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/online_dpo_trainer.py:748
↓ 1 callersMethod_download
(self)
verl-GDPO/verl/utils/dataset/rm_dataset.py:70
↓ 1 callersMethod_download
(self)
verl-GDPO/verl/utils/dataset/sft_dataset.py:69
↓ 1 callersMethod_download
(self)
verl-GDPO/verl/utils/dataset/rl_dataset.py:94
↓ 1 callersMethod_enable_gradient_checkpointing
Enables gradient checkpointing for the model.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/sft_trainer.py:491
↓ 1 callersMethod_enable_gradient_checkpointing
Enables gradient checkpointing for the model.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:823
↓ 1 callersMethod_execute
Internal implementation of execute with no retry logic. Args: data: Dictionary containing execution data Return
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/morph_client.py:250
↓ 1 callersMethod_execute_with_instance
Execute code using a prepared instance. Args: instance: Ready MorphCloud instance data: Execution data te
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/morph_client.py:222
↓ 1 callersFunction_exists
hdfs capable to check whether a file_path is exists
verl-GDPO/verl/utils/hdfs_io.py:43
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
verl-GDPO/verl/utils/torch_functional.py:469
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:58
↓ 1 callersMethod_expand_to_token_level
(self, data: DataProto, scores: torch.Tensor)
verl-GDPO/verl/workers/fsdp_workers.py:911
↓ 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
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/ioi_scoring.py:110
↓ 1 callersFunction_flatten_dict
(raw: Dict[str, Any], *, sep: str)
verl-GDPO/verl/utils/tracking.py:101
↓ 1 callersMethod_forward_head
(self, hidden_states)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:301
↓ 1 callersMethod_forward_head
(self, hidden_states)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:554
↓ 1 callersMethod_forward_micro_batch
(self, micro_batch)
verl-GDPO/verl/workers/fsdp_workers.py:857
↓ 1 callersMethod_generate
(self, model, prompts)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/online_dpo_trainer.py:466
↓ 1 callersMethod_generate_completions
(self, prompts, model)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/xpo_trainer.py:181
↓ 1 callersMethod_generate_completions
(self, model, prompts)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/nash_md_trainer.py:176
↓ 1 callersMethod_generate_minibatch
(self, prompts: DataProto)
verl-GDPO/verl/workers/rollout/hf_rollout.py:51
↓ 1 callersMethod_generate_samples
Generate samples from the model Args: batch_size (int): Batch size to use for sampling with_grad (bool): Whe
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/alignprop_trainer.py:321
↓ 1 callersMethod_generate_vllm
(self, model, prompts)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/online_dpo_trainer.py:430
↓ 1 callersMethod_get_chosen_prob
Calculates the probability if the given prompt embedding is from desirable dataset. This function calculates the probability in the p
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:743
↓ 1 callersMethod_get_compile_script
Get the compile script content.
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/morph_client.py:408
↓ 1 callersMethod_get_eval_sampler
(self, eval_dataset)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:815
↓ 1 callersMethod_get_free_port
(self)
verl-GDPO/verl/single_controller/base/worker.py:58
↓ 1 callersMethod_get_last_hidden_state
(self, unwrapped_model, input_ids, attention_mask, logits_to_keep=None)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:846
↓ 1 callersMethod_get_node_ip
(self)
verl-GDPO/verl/single_controller/base/worker.py:39
↓ 1 callersFunction_get_parallel_model_architecture_from_config
(config: PretrainedConfig, value=False)
verl-GDPO/verl/utils/model.py:243
↓ 1 callersMethod_get_prompt_embeddings
Extract embeddings from frozen embedding model
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:791
↓ 1 callersMethod_get_prompts_and_single_completions
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_judges.py:29
↓ 1 callersMethod_get_run_script
Get the run script content.
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/morph_client.py:485
↓ 1 callersMethod_get_train_sampler
(self, dataset: Optional[Dataset] = None)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/kto_trainer.py:1465
↓ 1 callersMethod_get_train_sampler
(self, dataset: Optional[Dataset] = None)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:779
↓ 1 callersMethod_get_udm_weight
(self, rejected_embeddings: torch.FloatTensor)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:1099
↓ 1 callersFunction_get_variance
(self, timestep, prev_timestep)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:174
↓ 1 callersMethod_has_lm_head
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:303
↓ 1 callersMethod_init_head
(self)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:289
↓ 1 callersMethod_init_head
(self)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:542
↓ 1 callersMethod_init_rope
(self)
verl-GDPO/verl/models/llama/megatron/layers/parallel_attention.py:204
↓ 1 callersMethod_init_tensor_dummy_dataset
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_iterative_sft_trainer.py:39
↓ 1 callersMethod_init_textual_dummy_dataset
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_iterative_sft_trainer.py:62
↓ 1 callersMethod_init_weights
r""" Initializes the weights of the value head. The default initialization strategy is random. Users can pass a different initializati
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:109
↓ 1 callersMethod_init_weights
r""" We initialize the weights of the value head.
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:385
↓ 1 callersMethod_init_with_detached_workers
(self, worker_names)
verl-GDPO/verl/single_controller/ray/base.py:209
↓ 1 callersMethod_init_with_resource_pool
(self, resource_pool, ray_cls_with_init, bin_pack, detached)
verl-GDPO/verl/single_controller/ray/base.py:214
↓ 1 callersMethod_is_worker_alive
(self, worker)
verl-GDPO/verl/single_controller/base/worker_group.py:110
↓ 1 callersMethod_load_params_to_cuda
(self, pp_rank, to_empty=False)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:92
↓ 1 callersMethod_log_statistics
( self, model_data, ref_data, model_logprobs_model_data, model_logprob
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/xpo_trainer.py:361
↓ 1 callersMethod_log_statistics
( self, model_data, mixture_data, model_logprobs_model_data, ref_logpr
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/nash_md_trainer.py:348
← previousnext →401–500 of 2,091, ranked by callers