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
test_different_lengths_incorrect_answers
Test len_reward with different length incorrect answers.
trl-GDPO/open-r1/tests/test_rewards.py:230
Method
test_different_ngram_size
(self)
trl-GDPO/open-r1/tests/test_rewards.py:332
Method
test_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
Method
test_dpo
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cli.py:32
Method
test_dpo
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_trainers_args.py:140
Method
test_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
Method
test_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
Method
test_dpo_lora_bf16_autocast_llama
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:625
Method
test_dpo_lora_force_use_ref
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:842
Method
test_dpo_lora_save
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:570
Method
test_dpo_lora_tags
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:759
Method
test_dpo_loss_alpha_div_f
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:982
Method
test_dpo_loss_js_div_f
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:1025
Method
test_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
Method
test_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
Method
test_dpo_tags
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:806
Method
test_dpo_trainer_generate_during_eval_no_wandb
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:538
Method
test_dpo_trainer_padding_token_is_none
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:430
Method
test_dpo_trainer_torch_dtype
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:913
Method
test_dpo_trainer_use_logits_to_keep
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:1068
Method
test_dpo_trainer_w_dataset_num_proc
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:467
Method
test_dpo_trainer_with_ref_model_is_model
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:326
Method
test_dpo_trainer_with_tools
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:1150
Method
test_dpo_trainer_with_weighting
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:251
Method
test_dpo_trainer_without_providing_ref_model
(self, rpo_alpha, _)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:287
Method
test_dpo_trainer_without_providing_ref_model_with_lora
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dpo_trainer.py:380
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_e2b_router
(self)
trl-GDPO/open-r1/tests/slow/test_code_reward.py:38
Method
test_e2b_router_parallel
(self)
trl-GDPO/open-r1/tests/slow/test_code_reward.py:49
Method
test_e2b_router_run_code_success
(self)
trl-GDPO/open-r1/tests/slow/test_code_reward.py:87
Method
test_e2b_router_run_code_with_error
(self)
trl-GDPO/open-r1/tests/slow/test_code_reward.py:105
Method
test_empty_completion
(self)
trl-GDPO/open-r1/tests/test_rewards.py:326
Method
test_env
(self, mock_stdout)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cli.py:41
Method
test_eval_packing
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:830
Method
test_even_split
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:32
Method
test_every_checkpoint
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:343
Method
test_example_with_padding
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:172
Method
test_example_with_setup_model
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:140
Method
test_example_without_padding
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:177
Method
test_extract_prompt_conversational
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:345
Method
test_extract_prompt_standard
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_data_utils.py:372
Method
test_five_word_completion_with_repetition
(self)
trl-GDPO/open-r1/tests/test_rewards.py:386
Method
test_format_reward_correct
Test format_reward with correct format.
trl-GDPO/open-r1/tests/test_rewards.py:100
Method
test_format_reward_incorrect
Test format_reward with incorrect format.
trl-GDPO/open-r1/tests/test_rewards.py:106
Method
test_format_reward_specific_multiline
Test format_reward with a specific multiline input.
trl-GDPO/open-r1/tests/test_rewards.py:200
Method
test_forward
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_geometric_mixture_wrapper.py:34
Method
test_four_word_completion_with_repetition
(self)
trl-GDPO/open-r1/tests/test_rewards.py:378
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_full
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:184
Method
test_full_repetition
(self)
trl-GDPO/open-r1/tests/test_rewards.py:296
Method
test_full_repetition_with_language
(self)
trl-GDPO/open-r1/tests/test_rewards.py:450
Method
test_generalized_jsd_loss_edge_cases
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:142
Method
test_generate
r""" Test if `generate` works for every model
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:253
Method
test_generate
r""" Test if `generate` works for every model
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:372
Method
test_generate
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:78
Method
test_generate
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:157
Method
test_generate
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:238
Method
test_generate
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:300
Method
test_generate_during_eval_no_wandb
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_bco_trainer.py:354
Method
test_generate_on_policy_outputs
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:94
Method
test_generate_on_policy_outputs_deterministic
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:42
Method
test_generate_samples
(self, use_lora)
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:73
Method
test_generate_samples
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:75
Method
test_generate_with_params
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:92
Method
test_generate_with_params
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_vllm_client_server.py:171
Method
test_generation_config_init
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:246
Method
test_get_formatting_func_from_dataset_from_hub
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:101
Method
test_get_formatting_func_from_dataset_with_chatml_conversations
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:60
Method
test_get_formatting_func_from_dataset_with_chatml_messages
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:30
Method
test_get_formatting_func_from_dataset_with_instruction
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:89
Method
test_get_formatting_func_from_dataset_with_unknown_format
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:112
Method
test_get_reward_funcs
Test get_reward_funcs with various reward functions.
trl-GDPO/open-r1/tests/test_rewards.py:38
Method
test_gkd_trainer
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:216
Method
test_grpo
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cli.py:49
Method
test_hugging_face_judge
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_judges.py:42
Method
test_incorrect_formats
Test code format reward with various incorrect formats.
trl-GDPO/open-r1/tests/test_rewards.py:499
Method
test_independent_reference
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:436
Method
test_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
Method
test_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
Method
test_init_minimal
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:217
Method
test_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
Method
test_init_with_ref_model_is_model
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_bco_trainer.py:144
Method
test_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
Method
test_invalid_format
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_rewards.py:34
Method
test_ioi_code_reward
(self)
trl-GDPO/open-r1/tests/slow/test_code_reward.py:74
Method
test_iterative_step_from_tensor
(self, model_name, input_name)
trl-GDPO/trl-0.18.0-gdpo/tests/test_iterative_sft_trainer.py:80
Method
test_kto
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cli.py:57
Method
test_kto
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_trainers_args.py:208
Method
test_kto_lora_save
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:329
Method
test_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
Method
test_kto_trainer_generate_during_eval_no_wandb
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:297
Method
test_kto_trainer_with_liger
Test KTO trainer with Liger loss enabled.
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:383
Method
test_kto_trainer_with_ref_model_is_model
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:104
Method
test_kto_trainer_without_providing_ref_model
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_kto_trainer.py:209
← previous
next →
1,601–1,700 of 2,091, ranked by callers