MCPcopy Create free account

hub / github.com/NVlabs/GDPO / functions

Functions2,091 in github.com/NVlabs/GDPO

MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:230
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:326
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:31
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:61
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:219
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:315
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_online_dpo_trainer.py:35
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:44
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:160
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:110
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_rloo_trainer.py:26
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_sft_slow.py:49
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_grpo_slow.py:35
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_dpo_slow.py:43
MethodsetUpClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:30
MethodsetUpClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:63
MethodsetUpClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:142
MethodsetUpClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:220
MethodsetUpClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:283
MethodsetUpClass
(cls)
trl-GDPO/open-r1/tests/utils/test_data.py:25
Methodset_additional_resource
(self, additional_resource)
verl-GDPO/verl/single_controller/ray/base.py:136
Methodset_device_hook
(module, input, outputs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:253
Methodset_device_hook
r""" A hook that sets the device of the output of the model to the device of the first parameter of the model.
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:340
Methodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:531
Methodset_progress_bar_config
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:863
Methodshow_text
Print the text history.
trl-GDPO/trl-0.18.0-gdpo/trl/environment/base_environment.py:142
Methodshow_tokens
Print the history tokens.
trl-GDPO/trl-0.18.0-gdpo/trl/environment/base_environment.py:165
Functionsoft_overlong_punishment_reward
Reward function that penalizes overlong completions.
trl-GDPO/open-r1/src/open_r1/rewards.py:630
Methodspread
(self)
verl-GDPO/verl/utils/seqlen_balancing.py:60
Functionsqueeze
(x)
verl-GDPO/verl/utils/model.py:38
Methodstart_worker_aliveness_check
(self, every_n_seconds=1)
verl-GDPO/verl/single_controller/base/worker_group.py:121
Methodstate_dict
r""" Returns the state dictionary of the model. We add the state dictionary of the value head to the state dictionary of the wrapped m
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:364
Methodstore
(self)
verl-GDPO/verl/single_controller/base/worker_group.py:46
Methodsupported_type
(precision: Union[str, int])
verl-GDPO/verl/utils/torch_dtypes.py:43
Methodsupported_types
()
verl-GDPO/verl/utils/torch_dtypes.py:47
MethodtearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:201
MethodtearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:319
MethodtearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:69
MethodtearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:65
MethodtearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_sft_slow.py:61
MethodtearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_grpo_slow.py:40
MethodtearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_dpo_slow.py:54
MethodtearDownClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:198
MethodtearDownClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:261
MethodtearDownClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:323
Methodtest_accuracy_reward_correct_answer
Test accuracy_reward with a correct answer.
trl-GDPO/open-r1/tests/test_rewards.py:79
Methodtest_accuracy_reward_wrong_answer
Test accuracy_reward with an incorrect answer.
trl-GDPO/open-r1/tests/test_rewards.py:86
Methodtest_accuracy_reward_wrong_answer_no_latex
Test accuracy_reward with an incorrect answer and gold solution with no latex.
trl-GDPO/open-r1/tests/test_rewards.py:93
Methodtest_all_true_judge
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_judges.py:34
Methodtest_already_chatml
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:554
Methodtest_any_dtype
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:50
Methodtest_apply_chat_template
(self, tokenizer_id, example)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:154
Methodtest_apply_chat_template_with_tools
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:204
Methodtest_backward_compatibility
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:252
Methodtest_basic
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:88
Methodtest_basic_case
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:452
Methodtest_basic_case
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:496
Methodtest_basic_comet
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:274
Methodtest_basic_training
Test basic PPO training configuration and verify model updates.
trl-GDPO/trl-0.18.0-gdpo/tests/test_ppo_trainer.py:61
Methodtest_basic_wandb
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:236
Methodtest_bco
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_trainers_args.py:50
Methodtest_beta_values
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:166
Methodtest_beta_zero_no_ref_model_and_no_kl
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:812
Methodtest_calculate_loss
(self, use_lora)
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:80
Methodtest_calculate_loss
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:81
Methodtest_callback
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:320
Methodtest_check_peft_model_nb_trainable_params
r""" Check that the number of trainable parameters is correct.
trl-GDPO/trl-0.18.0-gdpo/tests/test_peft_models.py:67
Methodtest_collate_no_padding
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:68
Methodtest_collate_padding
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:55
Methodtest_compute_metrics
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_orpo_trainer.py:150
Methodtest_compute_metrics
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cpo_trainer.py:156
Methodtest_compute_metrics
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:414
Methodtest_compute_metrics
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:1225
Methodtest_compute_metrics
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_bco_trainer.py:419
Methodtest_constant_length_dataset
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:232
Methodtest_constant_length_dataset_with_pretokenized_data
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:212
Methodtest_continue_training_peft_model
r""" Load peft and checks that it can continue training.
trl-GDPO/trl-0.18.0-gdpo/tests/test_peft_models.py:192
Methodtest_conversational
(self, example)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:83
Methodtest_correct_python_format
Test code format reward with correct Python format.
trl-GDPO/open-r1/tests/test_rewards.py:486
Methodtest_cosine_scaled_reward
Test cosine_scaled_reward with various cases.
trl-GDPO/open-r1/tests/test_rewards.py:152
Methodtest_cpo
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_trainers_args.py:98
Methodtest_cpo_trainer
(self, name, loss_type, config_name)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cpo_trainer.py:52
Methodtest_cpo_trainer_with_lora
(self, config_name)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cpo_trainer.py:107
Methodtest_create_bnb_peft_model_from_config
r""" Simply creates a peft model and checks that it can be loaded.
trl-GDPO/trl-0.18.0-gdpo/tests/test_peft_models.py:103
Methodtest_create_peft_config_use_peft_false
Test that when use_peft is False, the function returns None.
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:136
Methodtest_create_peft_config_use_peft_true
Test that when use_peft is True, the function returns a LoraConfig object.
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:142
Methodtest_create_peft_model
r""" Simply creates a peft model and checks that it can be loaded.
trl-GDPO/trl-0.18.0-gdpo/tests/test_peft_models.py:46
Methodtest_create_peft_model_from_config
r""" Simply creates a peft model and checks that it can be loaded.
trl-GDPO/trl-0.18.0-gdpo/tests/test_peft_models.py:85
Methodtest_data_collator_chat_completion_lm
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:542
Methodtest_data_collator_chat_completion_lm_with_multiple_text
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:563
Methodtest_data_collator_completion_lm
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:504
Methodtest_data_collator_completion_lm_with_multiple_text
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:519
Methodtest_data_collator_finds_response_template_llama2_tokenizer
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_collator_completion_only.py:24
Methodtest_data_collator_for_chatml
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:255
Methodtest_data_collator_for_completion_only_lm
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_collator_completion_only.py:151
Methodtest_data_collator_handling_of_long_sequences
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_collator_completion_only.py:86
Methodtest_dataset_and_config_name
(self)
trl-GDPO/open-r1/tests/utils/test_data.py:30
Methodtest_different_input_types
r""" Tests if the different input types normalizer works
trl-GDPO/trl-0.18.0-gdpo/tests/test_best_of_n_sampler.py:41
Methodtest_different_languages
Test code format reward with different programming languages.
trl-GDPO/open-r1/tests/test_rewards.py:533
Methodtest_different_lengths_correct_answers
Test len_reward with different length correct answers.
trl-GDPO/open-r1/tests/test_rewards.py:218
← previousnext →1,501–1,600 of 2,091, ranked by callers