Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVlabs/GDPO
/ functions
Functions
2,091 in github.com/NVlabs/GDPO
⨍
Functions
2,091
◇
Types & classes
346
↳
Endpoints
46
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:230
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:326
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:31
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:61
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:219
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:315
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_online_dpo_trainer.py:35
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:44
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:160
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:110
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_rloo_trainer.py:26
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_sft_slow.py:49
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_grpo_slow.py:35
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_dpo_slow.py:43
Method
setUpClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:30
Method
setUpClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:63
Method
setUpClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:142
Method
setUpClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:220
Method
setUpClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:283
Method
setUpClass
(cls)
trl-GDPO/open-r1/tests/utils/test_data.py:25
Method
set_additional_resource
(self, additional_resource)
verl-GDPO/verl/single_controller/ray/base.py:136
Method
set_device_hook
(module, input, outputs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:253
Method
set_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
Method
set_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
Method
set_progress_bar_config
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:863
Method
show_text
Print the text history.
trl-GDPO/trl-0.18.0-gdpo/trl/environment/base_environment.py:142
Method
show_tokens
Print the history tokens.
trl-GDPO/trl-0.18.0-gdpo/trl/environment/base_environment.py:165
Function
soft_overlong_punishment_reward
Reward function that penalizes overlong completions.
trl-GDPO/open-r1/src/open_r1/rewards.py:630
Method
spread
(self)
verl-GDPO/verl/utils/seqlen_balancing.py:60
Function
squeeze
(x)
verl-GDPO/verl/utils/model.py:38
Method
start_worker_aliveness_check
(self, every_n_seconds=1)
verl-GDPO/verl/single_controller/base/worker_group.py:121
Method
state_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
Method
store
(self)
verl-GDPO/verl/single_controller/base/worker_group.py:46
Method
supported_type
(precision: Union[str, int])
verl-GDPO/verl/utils/torch_dtypes.py:43
Method
supported_types
()
verl-GDPO/verl/utils/torch_dtypes.py:47
Method
tearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:201
Method
tearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:319
Method
tearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:69
Method
tearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:65
Method
tearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_sft_slow.py:61
Method
tearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_grpo_slow.py:40
Method
tearDown
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_dpo_slow.py:54
Method
tearDownClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:198
Method
tearDownClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:261
Method
tearDownClass
(cls)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:323
Method
test_accuracy_reward_correct_answer
Test accuracy_reward with a correct answer.
trl-GDPO/open-r1/tests/test_rewards.py:79
Method
test_accuracy_reward_wrong_answer
Test accuracy_reward with an incorrect answer.
trl-GDPO/open-r1/tests/test_rewards.py:86
Method
test_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
Method
test_all_true_judge
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_judges.py:34
Method
test_already_chatml
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:554
Method
test_any_dtype
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:50
Method
test_apply_chat_template
(self, tokenizer_id, example)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:154
Method
test_apply_chat_template_with_tools
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:204
Method
test_backward_compatibility
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:252
Method
test_basic
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:88
Method
test_basic_case
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:452
Method
test_basic_case
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:496
Method
test_basic_comet
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:274
Method
test_basic_training
Test basic PPO training configuration and verify model updates.
trl-GDPO/trl-0.18.0-gdpo/tests/test_ppo_trainer.py:61
Method
test_basic_wandb
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:236
Method
test_bco
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_trainers_args.py:50
Method
test_beta_values
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:166
Method
test_beta_zero_no_ref_model_and_no_kl
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:812
Method
test_calculate_loss
(self, use_lora)
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:80
Method
test_calculate_loss
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:81
Method
test_callback
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:320
Method
test_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
Method
test_collate_no_padding
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:68
Method
test_collate_padding
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:55
Method
test_compute_metrics
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_orpo_trainer.py:150
Method
test_compute_metrics
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cpo_trainer.py:156
Method
test_compute_metrics
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:414
Method
test_compute_metrics
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:1225
Method
test_compute_metrics
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_bco_trainer.py:419
Method
test_constant_length_dataset
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:232
Method
test_constant_length_dataset_with_pretokenized_data
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:212
Method
test_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
Method
test_conversational
(self, example)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:83
Method
test_correct_python_format
Test code format reward with correct Python format.
trl-GDPO/open-r1/tests/test_rewards.py:486
Method
test_cosine_scaled_reward
Test cosine_scaled_reward with various cases.
trl-GDPO/open-r1/tests/test_rewards.py:152
Method
test_cpo
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_trainers_args.py:98
Method
test_cpo_trainer
(self, name, loss_type, config_name)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cpo_trainer.py:52
Method
test_cpo_trainer_with_lora
(self, config_name)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cpo_trainer.py:107
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_data_collator_chat_completion_lm
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:542
Method
test_data_collator_chat_completion_lm_with_multiple_text
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:563
Method
test_data_collator_completion_lm
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:504
Method
test_data_collator_completion_lm_with_multiple_text
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:519
Method
test_data_collator_finds_response_template_llama2_tokenizer
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_collator_completion_only.py:24
Method
test_data_collator_for_chatml
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:255
Method
test_data_collator_for_completion_only_lm
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_collator_completion_only.py:151
Method
test_data_collator_handling_of_long_sequences
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_collator_completion_only.py:86
Method
test_dataset_and_config_name
(self)
trl-GDPO/open-r1/tests/utils/test_data.py:30
Method
test_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
Method
test_different_languages
Test code format reward with different programming languages.
trl-GDPO/open-r1/tests/test_rewards.py:533
Method
test_different_lengths_correct_answers
Test len_reward with different length correct answers.
trl-GDPO/open-r1/tests/test_rewards.py:218
← previous
next →
1,501–1,600 of 2,091, ranked by callers