MCPcopy Create free account

hub / github.com/NVlabs/GDPO / functions

Functions2,091 in github.com/NVlabs/GDPO

Methodpp_group
(self)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:203
Methodpp_models
(self)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:207
Methodpp_rank
(self)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:199
Methodpp_size
(self)
verl-GDPO/verl/single_controller/base/megatron/worker_group.py:46
Methodpp_size
(self)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:195
Methodprediction_step
( self, model: Union[PreTrainedModel, nn.Module], inputs: dict[str, Union[torch.Tensor
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/kto_trainer.py:1518
Methodprediction_step
( self, model: Union[PreTrainedModel, nn.Module], inputs: dict[str, Union[torch.Tensor
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/orpo_trainer.py:871
Methodprediction_step
( self, model: Union[PreTrainedModel, nn.Module], inputs: dict[str, Union[torch.Tensor
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:1330
Methodprediction_step
( self, model: Union[PreTrainedModel, nn.Module], inputs: dict[str, Union[torch.Tensor
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/dpo_trainer.py:1422
Methodprediction_step
( self, model: Union[PreTrainedModel, nn.Module], inputs: dict[str, Union[torch.Tensor
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/cpo_trainer.py:896
Methodprediction_step
(self, model, inputs, prediction_loss_only, ignore_keys: Optional[list[str]] = None)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:1479
Functionprepare_decoder_attention_mask
(attention_mask, input_shape, inputs_embeds)
verl-GDPO/verl/utils/torch_functional.py:434
Functionprepare_deepspeed
Prepares the model for DeepSpeed inference or evaluation by initializing it with the appropriate configuration. Adapted from accelerate: https://
trl-GDPO/trl-0.18.0-gdpo/trl/models/utils.py:227
Methodpreprocess_data
(self, data: DataProto)
verl-GDPO/verl/workers/sharding_manager/fsdp_vllm.py:112
Methodpreprocess_data
AllGather data from sp region This is because the data is first sharded along the FSDP dimension as we utilize the DP_COMPUTE
verl-GDPO/verl/workers/sharding_manager/fsdp_ulysses.py:58
Methodpreprocess_data
(self, data: DataProto)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:378
Functionpreprocess_function
(examples)
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama/scripts/reward_modeling.py:188
Functionpreprocess_function
(examples)
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama/scripts/rl_training.py:139
Methodprint_size
(self, prefix="")
verl-GDPO/verl/protocol.py:225
Functionprint_trainable_parameters
Prints the number of trainable parameters in the model.
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama_2/scripts/sft_llama2.py:96
Functionprocess
(iter)
verl-GDPO/verl/utils/debug/trajectory_tracker.py:94
Functionprocess_batch
(examples)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/prm800k.py:90
Functionprocess_example
(example)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/math_shepherd.py:53
Methodprocess_row
Same as `tokenize_row` but for vision models. Please refer to `tokenize_row` for more information.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/dpo_trainer.py:633
Functionprofiling_decorator
Decorator to profile a function and log execution time using [`extras.profiling.profiling_context`]. Args: func (`callable`):
trl-GDPO/trl-0.18.0-gdpo/trl/extras/profiling.py:70
Functionprompt_fn
()
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/ddpo.py:184
Functionprompt_fn
()
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/alignprop.py:108
Functionprompt_function
()
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:36
Functionprompt_function
()
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:34
Methodpush_to_hub
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:380
Functionput_data
(index, data)
verl-GDPO/verl/utils/ray_utils.py:25
Functionqueries_to_scores
(list_of_strings)
trl-GDPO/trl-0.18.0-gdpo/tests/test_best_of_n_sampler.py:25
Functionqwen2_flash_attn_forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
verl-GDPO/verl/models/transformers/qwen2.py:28
Functionregister
(dispatch_mode=Dispatch.ALL_TO_ALL, execute_mode=Execute.ALL, blocking=True, materialize_futures=True)
verl-GDPO/verl/single_controller/base/decorator.py:394
Functionregister_empty_parameter
(module, name, param)
verl-GDPO/verl/utils/fsdp_utils.py:146
Functionremove_pad_token
Remove the pad token. Args: input_ids shape: [bs, seq_length] attention_mask shape: [bs, seq_length] Returns: no_pa
verl-GDPO/verl/utils/torch_functional.py:269
Methodrename
Note that this function only rename the key in the batch
verl-GDPO/verl/protocol.py:397
Methodrename_fields
(example: list[dict])
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:1091
Methodrepeat_generator
()
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/rloo_trainer.py:255
Methodrepeat_generator
()
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/ppo_trainer.py:357
Functionrepetition_penalty_reward
reward function the penalizes repetitions ref implementation: https://github.com/eddycmu/demystify-long-cot/blob/release/openrlhf/ope
trl-GDPO/open-r1/src/open_r1/rewards.py:321
Functionrequire_3_accelerators
Decorator marking a test that requires at least 3 accelerators. Skips the test if 3 accelerators are not available.
trl-GDPO/trl-0.18.0-gdpo/tests/testing_utils.py:98
Functionrequire_bitsandbytes
Decorator marking a test that requires bitsandbytes. Skips the test if bitsandbytes is not available.
trl-GDPO/trl-0.18.0-gdpo/tests/testing_utils.py:35
Functionrequire_comet
Decorator marking a test that requires Comet. Skips the test if Comet is not available.
trl-GDPO/trl-0.18.0-gdpo/tests/testing_utils.py:42
Functionrequire_diffusers
Decorator marking a test that requires diffusers. Skips the test if diffusers is not available.
trl-GDPO/trl-0.18.0-gdpo/tests/testing_utils.py:49
Functionrequire_llm_blender
Decorator marking a test that requires llm-blender. Skips the test if llm-blender is not available.
trl-GDPO/trl-0.18.0-gdpo/tests/testing_utils.py:56
Functionrequire_mergekit
Decorator marking a test that requires mergekit. Skips the test if mergekit is not available.
trl-GDPO/trl-0.18.0-gdpo/tests/testing_utils.py:63
Functionrequire_no_wandb
Decorator marking a test that requires no wandb. Skips the test if wandb is available.
trl-GDPO/trl-0.18.0-gdpo/tests/testing_utils.py:91
Functionrequire_rich
Decorator marking a test that requires rich. Skips the test if rich is not available.
trl-GDPO/trl-0.18.0-gdpo/tests/testing_utils.py:70
Functionrequire_sklearn
Decorator marking a test that requires sklearn. Skips the test if sklearn is not available.
trl-GDPO/trl-0.18.0-gdpo/tests/testing_utils.py:77
Functionrequire_vllm
Decorator marking a test that requires vllm. Skips the test if vllm is not available.
trl-GDPO/trl-0.18.0-gdpo/tests/testing_utils.py:84
Functionreset_prefix_cache
Resets the prefix cache for the model.
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/vllm_serve.py:548
Functionrestore_prompt
(example)
trl-GDPO/open-r1/scripts/pass_rate_filtering/compute_pass_rate.py:161
Functionreturn_prompt_and_responses
(samples)
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama_2/scripts/dpo_llama2.py:129
Methodreward_func
Reward function that rewards longer completions.
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:476
Methodreward_func1
Reward function that rewards longer completions.
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:547
Methodreward_func2
Reward function that rewards completions with more unique letters.
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:551
Methodreward_function
(texts)
trl-GDPO/trl-0.18.0-gdpo/tests/test_rloo_trainer.py:178
Methodrun_benchmark_callback
(_)
trl-GDPO/open-r1/src/open_r1/utils/callbacks.py:73
Functionsamples_not_all_same
(example)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/lm-human-preferences-descriptiveness.py:52
Methodsave_checkpoint
(self, checkpoint_path)
verl-GDPO/verl/workers/megatron_workers.py:403
Methodsave_checkpoint
(self, checkpoint_path)
verl-GDPO/verl/workers/megatron_workers.py:572
Methodsave_checkpoint
(self, local_path, hdfs_path=None)
verl-GDPO/verl/workers/fsdp_workers.py:478
Methodsave_checkpoint
(self, local_path, hdfs_path=None)
verl-GDPO/verl/workers/fsdp_workers.py:736
Methodsave_checkpoint
(self, models, weights, output_dir)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:885
Methodsave_pretrained
(self, output_dir)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:857
Methodsave_to_disk
(self, filepath)
verl-GDPO/verl/protocol.py:215
Functionsave_to_hdfs
(data: io.BytesIO, name, hdfs_dir, verbose)
verl-GDPO/verl/utils/debug/trajectory_tracker.py:33
Methodscheduler
Returns the scheduler associated with the pipeline used for the diffusion process
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:107
Methodscheduler
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:846
Methodscheduler_step
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:830
Functionscore_submission
( client: PistonClient, problem_data: dict, submission: str, test_batch_size: int = 1, sco
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/cf_scoring.py:94
Functionscore_subtasks
Scores multiple subtasks for a submission. Args: client: PistonClient instance for executing code subtasks: List of dictiona
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/ioi_scoring.py:246
Functionscorer_function
(images, prompts, metadata)
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:32
Functionscorer_function
(images, prompts, metadata)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:30
Methodseries_to_item
(ls)
verl-GDPO/verl/utils/dataset/sft_dataset.py:75
Methodsession
(self)
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/piston_client.py:82
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_peft_models.py:36
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:26
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:119
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_nash_md_trainer.py:34
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_collators.py:23
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_iterative_sft_trainer.py:28
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_orpo_trainer.py:29
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_xpo_trainer.py:34
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_rich_progress_callback.py:39
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:430
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_prm_trainer.py:34
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_prm_trainer.py:226
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:130
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:205
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_reward_trainer.py:33
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:47
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cpo_trainer.py:29
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:85
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ppo_trainer.py:33
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_geometric_mixture_wrapper.py:24
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_core.py:27
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_environments.py:97
MethodsetUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:169
← previousnext →1,401–1,500 of 2,091, ranked by callers