MCPcopy Create free account

hub / github.com/NVlabs/GDPO / functions

Functions2,091 in github.com/NVlabs/GDPO

Methodtest_different_lengths_incorrect_answers
Test len_reward with different length incorrect answers.
trl-GDPO/open-r1/tests/test_rewards.py:230
Methodtest_different_ngram_size
(self)
trl-GDPO/open-r1/tests/test_rewards.py:332
Methodtest_different_sample_sizes_and_n_candidates_values
r""" Tests different sample sizes and n_candidates values
trl-GDPO/trl-0.18.0-gdpo/tests/test_best_of_n_sampler.py:79
Methodtest_dpo
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cli.py:32
Methodtest_dpo
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_trainers_args.py:140
Methodtest_dpo_bare_model
A test that tests the simple usage of `DPOTrainer` using a bare model in full precision.
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_dpo_slow.py:63
Methodtest_dpo_lora_bf16_autocast
(self, loss_type, pre_compute, gen_during_eval)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:707
Methodtest_dpo_lora_bf16_autocast_llama
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:625
Methodtest_dpo_lora_force_use_ref
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:842
Methodtest_dpo_lora_save
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:570
Methodtest_dpo_lora_tags
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:759
Methodtest_dpo_loss_alpha_div_f
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:982
Methodtest_dpo_loss_js_div_f
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:1025
Methodtest_dpo_peft_model
A test that tests the simple usage of `DPOTrainer` using a peft model in full precision + different scenarios of gradient checkpointing.
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_dpo_slow.py:118
Methodtest_dpo_peft_model_qlora
A test that tests the simple usage of `DPOTrainer` using QLoRA + different scenarios of gradient checkpointing.
trl-GDPO/trl-0.18.0-gdpo/tests/slow/test_dpo_slow.py:181
Methodtest_dpo_tags
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:806
Methodtest_dpo_trainer_generate_during_eval_no_wandb
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:538
Methodtest_dpo_trainer_padding_token_is_none
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:430
Methodtest_dpo_trainer_torch_dtype
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:913
Methodtest_dpo_trainer_use_logits_to_keep
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:1068
Methodtest_dpo_trainer_w_dataset_num_proc
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:467
Methodtest_dpo_trainer_with_ref_model_is_model
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:326
Methodtest_dpo_trainer_with_tools
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:1150
Methodtest_dpo_trainer_with_weighting
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:251
Methodtest_dpo_trainer_without_providing_ref_model
(self, rpo_alpha, _)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:287
Methodtest_dpo_trainer_without_providing_ref_model_with_lora
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:380
Methodtest_dropout_config
r""" Test if we instantiate a model by adding `summary_drop_prob` to the config it will be added to the v_head
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:221
Methodtest_dropout_config
r""" Test if we instantiate a model by adding `summary_drop_prob` to the config it will be added to the v_head
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:340
Methodtest_dropout_kwargs
r""" Test if we instantiate a model by adding `summary_drop_prob` to the config it will be added to the v_head
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:234
Methodtest_dropout_kwargs
r""" Test if we instantiate a model by adding `summary_drop_prob` to the config it will be added to the v_head
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:353
Methodtest_e2b_router
(self)
trl-GDPO/open-r1/tests/slow/test_code_reward.py:38
Methodtest_e2b_router_parallel
(self)
trl-GDPO/open-r1/tests/slow/test_code_reward.py:49
Methodtest_e2b_router_run_code_success
(self)
trl-GDPO/open-r1/tests/slow/test_code_reward.py:87
Methodtest_e2b_router_run_code_with_error
(self)
trl-GDPO/open-r1/tests/slow/test_code_reward.py:105
Methodtest_empty_completion
(self)
trl-GDPO/open-r1/tests/test_rewards.py:326
Methodtest_env
(self, mock_stdout)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cli.py:41
Methodtest_eval_packing
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:830
Methodtest_even_split
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:32
Methodtest_every_checkpoint
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:343
Methodtest_example_with_padding
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:172
Methodtest_example_with_setup_model
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:140
Methodtest_example_without_padding
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:177
Methodtest_extract_prompt_conversational
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:345
Methodtest_extract_prompt_standard
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:372
Methodtest_five_word_completion_with_repetition
(self)
trl-GDPO/open-r1/tests/test_rewards.py:386
Methodtest_format_reward_correct
Test format_reward with correct format.
trl-GDPO/open-r1/tests/test_rewards.py:100
Methodtest_format_reward_incorrect
Test format_reward with incorrect format.
trl-GDPO/open-r1/tests/test_rewards.py:106
Methodtest_format_reward_specific_multiline
Test format_reward with a specific multiline input.
trl-GDPO/open-r1/tests/test_rewards.py:200
Methodtest_forward
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_geometric_mixture_wrapper.py:34
Methodtest_four_word_completion_with_repetition
(self)
trl-GDPO/open-r1/tests/test_rewards.py:378
Methodtest_from_save_transformers
Test if the model can be saved and loaded using transformers and get the same weights. We override the test of the super clas
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:151
Methodtest_from_save_transformers_sharded
Test if the model can be saved and loaded using transformers and get the same weights - sharded case
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:128
Methodtest_from_save_trl
Test if the model can be saved and loaded from a directory and get the same weights Including the additional modules (e.g. v_
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:95
Methodtest_from_save_trl_sharded
Test if the model can be saved and loaded from a directory and get the same weights - sharded case
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:112
Methodtest_full
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:184
Methodtest_full_repetition
(self)
trl-GDPO/open-r1/tests/test_rewards.py:296
Methodtest_full_repetition_with_language
(self)
trl-GDPO/open-r1/tests/test_rewards.py:450
Methodtest_generalized_jsd_loss_edge_cases
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:142
Methodtest_generate
r""" Test if `generate` works for every model
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:253
Methodtest_generate
r""" Test if `generate` works for every model
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:372
Methodtest_generate
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:78
Methodtest_generate
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:157
Methodtest_generate
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:238
Methodtest_generate
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:300
Methodtest_generate_during_eval_no_wandb
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_bco_trainer.py:354
Methodtest_generate_on_policy_outputs
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:94
Methodtest_generate_on_policy_outputs_deterministic
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:42
Methodtest_generate_samples
(self, use_lora)
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:73
Methodtest_generate_samples
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:75
Methodtest_generate_with_params
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:92
Methodtest_generate_with_params
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:171
Methodtest_generation_config_init
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:246
Methodtest_get_formatting_func_from_dataset_from_hub
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:101
Methodtest_get_formatting_func_from_dataset_with_chatml_conversations
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:60
Methodtest_get_formatting_func_from_dataset_with_chatml_messages
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:30
Methodtest_get_formatting_func_from_dataset_with_instruction
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:89
Methodtest_get_formatting_func_from_dataset_with_unknown_format
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:112
Methodtest_get_reward_funcs
Test get_reward_funcs with various reward functions.
trl-GDPO/open-r1/tests/test_rewards.py:38
Methodtest_gkd_trainer
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:216
Methodtest_grpo
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cli.py:49
Methodtest_hugging_face_judge
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_judges.py:42
Methodtest_incorrect_formats
Test code format reward with various incorrect formats.
trl-GDPO/open-r1/tests/test_rewards.py:499
Methodtest_independent_reference
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:436
Methodtest_inference
r""" Test if the model can be used for inference and outputs 3 values - logits, loss, and value states
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:205
Methodtest_inference
r""" Test if the model can be used for inference and outputs 3 values - logits, loss, and value states
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:323
Methodtest_init_minimal
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:217
Methodtest_init_with_config_field
Test initialization with a 'config' field in the dataclass (should raise ValueError).
trl-GDPO/trl-0.18.0-gdpo/tests/test_cli_utils.py:39
Methodtest_init_with_ref_model_is_model
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_bco_trainer.py:144
Methodtest_init_without_config_field
Test initialization without 'config' field in the dataclasses.
trl-GDPO/trl-0.18.0-gdpo/tests/test_cli_utils.py:34
Methodtest_invalid_format
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_rewards.py:34
Methodtest_ioi_code_reward
(self)
trl-GDPO/open-r1/tests/slow/test_code_reward.py:74
Methodtest_iterative_step_from_tensor
(self, model_name, input_name)
trl-GDPO/trl-0.18.0-gdpo/tests/test_iterative_sft_trainer.py:80
Methodtest_kto
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cli.py:57
Methodtest_kto
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_trainers_args.py:208
Methodtest_kto_lora_save
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:329
Methodtest_kto_trainer
(self, name, config_name, loss_type, pre_compute, eval_dataset)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:56
Methodtest_kto_trainer_generate_during_eval_no_wandb
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:297
Methodtest_kto_trainer_with_liger
Test KTO trainer with Liger loss enabled.
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:383
Methodtest_kto_trainer_with_ref_model_is_model
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:104
Methodtest_kto_trainer_without_providing_ref_model
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:209
← previousnext →1,601–1,700 of 2,091, ranked by callers