MCPcopy Create free account

hub / github.com/NVlabs/GDPO / functions

Functions2,091 in github.com/NVlabs/GDPO

Methodtest_with_dataset
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:474
Methodtest_with_extra_column
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:503
Methodtest_with_iterable_dataset
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:457
Methodtest_with_iterable_dataset
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:488
Methodtest_with_model_
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:422
Methodtest_with_model_neftune
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:595
Methodtest_with_multiple_eval_datasets
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:478
Methodtest_with_none_tensor
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:51
Methodtest_with_pretokenized_data_packing
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:278
Methodtest_without_conversations_key
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:537
Methodtest_without_ref_model
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:114
Methodtest_xpo
(self, alpha_list)
trl-GDPO/trl-0.18.0-gdpo/tests/test_trainers_args.py:390
Methodtest_xpo_trainer_judge_training
(self, config_name)
trl-GDPO/trl-0.18.0-gdpo/tests/test_xpo_trainer.py:195
Methodtest_xpo_trainer_training
(self, config_name)
trl-GDPO/trl-0.18.0-gdpo/tests/test_xpo_trainer.py:43
Methodtest_zero_loss_for_identical_inputs
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:198
Methodtext_encoder
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:850
Methodthis_rank_models
(self)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:191
Functionto_conversational
Convert prompt from "xxx" to [{"role": "user", "content": [{"type": "image"}, {"type": "text", "text": "xxx"}]}] and chosen and rejected from
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/rlaif-v.py:51
Methodto_dict
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/alignprop_config.py:181
Functionto_preference
(example)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/tldr_preference.py:51
Functionto_prompt_completion
(example)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/tldr.py:51
Functionto_prompt_completion
(example, tokenizer)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/lm-human-preferences-sentiment.py:51
Functionto_prompt_completion
(example, tokenizer)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/lm-human-preferences-descriptiveness.py:56
Functionto_unpaired_preference
(example)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/ultrafeedback-prompt.py:51
Functionto_unpaired_preference
(example, model_name, aspect)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/ultrafeedback.py:88
Functiontokenize
(element)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/rloo/rloo.py:102
Functiontokenize
(element)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/rloo/rloo_tldr.py:100
Functiontokenize
(element)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/ppo/ppo_tldr.py:132
Functiontokenize
(element)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/ppo/ppo.py:129
Functiontokenize
(sample)
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/toxicity/scripts/gpt-j-6b-toxicity.py:127
Methodtokenize
(example, tokenizer)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ppo_trainer.py:52
Functiontokenize_and_postprocess_data
input_data is the output from tokenizer.
verl-GDPO/verl/utils/torch_functional.py:225
Methodtokenize_example
(example)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:1123
Methodtokenize_function
(examples)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:78
Methodtokenize_function
(examples)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:226
Methodtokenize_row
Tokenize a single row from a ORPO specific dataset. At this stage, we don't convert to PyTorch tensors yet; we just handle the truncation
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/orpo_trainer.py:405
Methodtokenize_row
Tokenize a row of the dataset. Args: features (`dict[str, str]`): Row of the dataset, should contain the
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/dpo_trainer.py:571
Methodtokenize_row
Tokenize a single row from a CPO specific dataset. At this stage, we don't convert to PyTorch tensors yet; we just handle the truncation
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/cpo_trainer.py:430
Methodtokenizer
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:842
Methodtorch_call
(self, examples: list[Union[list[int], Any, dict[str, Any]]])
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/dpo_trainer.py:124
Methodtorch_call
(self, examples: list[Union[list[int], Any, dict[str, Any]]])
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/sft_trainer.py:126
Methodtp_size
(self)
verl-GDPO/verl/single_controller/base/megatron/worker_group.py:36
Methodtraining_step
( self, model: nn.Module, inputs: dict[str, Union[torch.Tensor, Any]], num_items_in_batch: Optional[in
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/online_dpo_trainer.py:517
Methodtraining_step
( self, model: nn.Module, inputs: dict[str, Union[torch.Tensor, Any]], num_items_in_batch: Optional[in
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/xpo_trainer.py:444
Methodtraining_step
Perform a training step for the Generalized Knowledge Distillation (GKD) model. This method implements the on-policy learning approa
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/gkd_trainer.py:278
Methodtraining_step
( self, model: nn.Module, inputs: dict[str, Union[torch.Tensor, Any]], num_items_in_batch: Optional[in
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/nash_md_trainer.py:407
Methodtraining_step
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/sft_trainer.py:731
Functiontruncate
(examples)
trl-GDPO/trl-0.18.0-gdpo/trl/data_utils.py:572
Methodunet
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:834
Functionunfold_batch_dim
Unfold the first n dims as new batch dim
verl-GDPO/verl/protocol.py:124
Methoduninstall_package
(self, language, version)
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/piston_client.py:118
Methodunpack_tensor_single_stream
(unpack_tensor_id: int)
trl-GDPO/trl-0.18.0-gdpo/trl/models/activation_offloading.py:188
Methodunpack_tensor_with_streams
(unpack_tensor_id: int)
trl-GDPO/trl-0.18.0-gdpo/trl/models/activation_offloading.py:212
Methodupdate
(self, current_kl, n_steps)
verl-GDPO/verl/trainer/ppo/core_algos.py:39
Methodupdate
(self, prompts, rewards)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:866
Methodupdate_actor
(self, data: DataProto)
verl-GDPO/verl/workers/megatron_workers.py:326
Methodupdate_critic
(self, data: DataProto)
verl-GDPO/verl/workers/megatron_workers.py:559
Methodupdate_critic
Update the critic
verl-GDPO/verl/workers/critic/base.py:38
Methodupdate_critic
(self, dataloader: Iterable[DataProto])
verl-GDPO/verl/workers/critic/megatron_critic.py:204
Methodupdate_critic
(self, data: DataProto)
verl-GDPO/verl/workers/critic/dp_critic.py:146
Functionupdate_dict_with_config
(dictionary: Dict, config: DictConfig)
verl-GDPO/verl/utils/config.py:20
Functionupdate_kwargs_with_config
(dictionary: Dict, config: ModelParallelConfig)
verl-GDPO/verl/utils/megatron/tensor_parallel.py:27
Functionupdate_named_param
Updates the model weights with the provided tensor. Once this endpoint is called, the client process should broadcast the updated we
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/vllm_serve.py:524
Methodupdate_named_param
Receives updated weights from the client process and updates the named parameter in the model. Args: name (`str`):
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/vllm_serve.py:113
Methodupdate_policy
Update the policy with an iterator of DataProto Args: dataloader (Iterable[DataProto]): an iterator over the DataProto that retur
verl-GDPO/verl/workers/actor/megatron_actor.py:329
Methodupdate_policy
(self, data: DataProto)
verl-GDPO/verl/workers/actor/dp_actor.py:203
Methodupdate_this_rank_models
(self, new_models)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:186
Methoduser
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/utils.py:54
Methodvae
Returns the Variational Autoencoder model used from mapping images to and from the latent space
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:93
Methodvae
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:838
Methodvalidate_input
(keys)
verl-GDPO/verl/protocol.py:402
Methodverify_sufficient_virtual_memory
()
trl-GDPO/trl-0.18.0-gdpo/trl/models/activation_offloading.py:109
Functionvocab_parallel_log_probs_from_logits_response_rmpad
Similar to log_probs_from_logits_response_rmpad, but the logits_rmpad is now spliited across tensor parallel region. This will further reduce the
verl-GDPO/verl/utils/megatron/tensor_parallel.py:141
Methodvocab_size
`int`: Size of the base vocabulary (without the added tokens).
verl-GDPO/verl/workers/rollout/tokenizer.py:28
Functionwait
()
verl-GDPO/verl/utils/ulysses.py:146
Methodwait_and_del_remaining_references
()
trl-GDPO/trl-0.18.0-gdpo/trl/models/activation_offloading.py:218
Methodwait_for_hdfs
(self)
verl-GDPO/verl/utils/debug/trajectory_tracker.py:63
Functionwarning_handler
(message, category, filename, lineno, file=None, line=None)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/utils.py:100
Methodweight_buffers
(self)
verl-GDPO/verl/utils/memory_buffer.py:209
Methodweighted_score
Calculates the weighted score by multiplying the raw score by the available points. Returns: float: The rounded weighted
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/ioi_scoring.py:76
Methodwhiten
(values: torch.Tensor)
trl-GDPO/trl-0.18.0-gdpo/tests/test_core.py:39
Methodworker_names
(self)
verl-GDPO/verl/single_controller/ray/base.py:281
Methodworkers
(self)
verl-GDPO/verl/single_controller/ray/base.py:362
Methodworld_size
(self)
verl-GDPO/verl/single_controller/ray/base.py:366
Methodworld_size
(self)
verl-GDPO/verl/single_controller/base/worker_group.py:39
Methodworld_size
(self)
verl-GDPO/verl/single_controller/base/worker_group.py:130
Methodworld_size
(self)
verl-GDPO/verl/single_controller/base/worker.py:171
Methodwrapped_forward
(*_args: Any, **_kwargs: Any)
trl-GDPO/trl-0.18.0-gdpo/trl/models/utils.py:321
Functionwrapper
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/extras/profiling.py:94
Methodzero
Reset the buffer to zero.
verl-GDPO/verl/utils/memory_buffer.py:36
Methodzero
Reset the buffer to zero.
verl-GDPO/verl/utils/megatron/memory.py:29
← previous2,001–2,091 of 2,091, ranked by callers