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
pp_group
(self)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:203
Method
pp_models
(self)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:207
Method
pp_rank
(self)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:199
Method
pp_size
(self)
verl-GDPO/verl/single_controller/base/megatron/worker_group.py:46
Method
pp_size
(self)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:195
Method
prediction_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
Method
prediction_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
Method
prediction_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
Method
prediction_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
Method
prediction_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
Method
prediction_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
Function
prepare_decoder_attention_mask
(attention_mask, input_shape, inputs_embeds)
verl-GDPO/verl/utils/torch_functional.py:434
Function
prepare_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
Method
preprocess_data
(self, data: DataProto)
verl-GDPO/verl/workers/sharding_manager/fsdp_vllm.py:112
Method
preprocess_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
Method
preprocess_data
(self, data: DataProto)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:378
Function
preprocess_function
(examples)
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama/scripts/reward_modeling.py:188
Function
preprocess_function
(examples)
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama/scripts/rl_training.py:139
Method
print_size
(self, prefix="")
verl-GDPO/verl/protocol.py:225
Function
print_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
Function
process
(iter)
verl-GDPO/verl/utils/debug/trajectory_tracker.py:94
Function
process_batch
(examples)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/prm800k.py:90
Function
process_example
(example)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/math_shepherd.py:53
Method
process_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
Function
profiling_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
Function
prompt_fn
()
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/ddpo.py:184
Function
prompt_fn
()
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/alignprop.py:108
Function
prompt_function
()
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:36
Function
prompt_function
()
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:34
Method
push_to_hub
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:380
Function
put_data
(index, data)
verl-GDPO/verl/utils/ray_utils.py:25
Function
queries_to_scores
(list_of_strings)
trl-GDPO/trl-0.18.0-gdpo/tests/test_best_of_n_sampler.py:25
Function
qwen2_flash_attn_forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
verl-GDPO/verl/models/transformers/qwen2.py:28
Function
register
(dispatch_mode=Dispatch.ALL_TO_ALL, execute_mode=Execute.ALL, blocking=True, materialize_futures=True)
verl-GDPO/verl/single_controller/base/decorator.py:394
Function
register_empty_parameter
(module, name, param)
verl-GDPO/verl/utils/fsdp_utils.py:146
Function
remove_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
Method
rename
Note that this function only rename the key in the batch
verl-GDPO/verl/protocol.py:397
Method
rename_fields
(example: list[dict])
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:1091
Method
repeat_generator
()
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/rloo_trainer.py:255
Method
repeat_generator
()
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/ppo_trainer.py:357
Function
repetition_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
Function
require_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
Function
require_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
Function
require_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
Function
require_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
Function
require_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
Function
require_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
Function
require_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
Function
require_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
Function
require_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
Function
require_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
Function
reset_prefix_cache
Resets the prefix cache for the model.
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/vllm_serve.py:548
Function
restore_prompt
(example)
trl-GDPO/open-r1/scripts/pass_rate_filtering/compute_pass_rate.py:161
Function
return_prompt_and_responses
(samples)
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/stack_llama_2/scripts/dpo_llama2.py:129
Method
reward_func
Reward function that rewards longer completions.
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:476
Method
reward_func1
Reward function that rewards longer completions.
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:547
Method
reward_func2
Reward function that rewards completions with more unique letters.
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:551
Method
reward_function
(texts)
trl-GDPO/trl-0.18.0-gdpo/tests/test_rloo_trainer.py:178
Method
run_benchmark_callback
(_)
trl-GDPO/open-r1/src/open_r1/utils/callbacks.py:73
Function
samples_not_all_same
(example)
trl-GDPO/trl-0.18.0-gdpo/examples/datasets/lm-human-preferences-descriptiveness.py:52
Method
save_checkpoint
(self, checkpoint_path)
verl-GDPO/verl/workers/megatron_workers.py:403
Method
save_checkpoint
(self, checkpoint_path)
verl-GDPO/verl/workers/megatron_workers.py:572
Method
save_checkpoint
(self, local_path, hdfs_path=None)
verl-GDPO/verl/workers/fsdp_workers.py:478
Method
save_checkpoint
(self, local_path, hdfs_path=None)
verl-GDPO/verl/workers/fsdp_workers.py:736
Method
save_checkpoint
(self, models, weights, output_dir)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:885
Method
save_pretrained
(self, output_dir)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:857
Method
save_to_disk
(self, filepath)
verl-GDPO/verl/protocol.py:215
Function
save_to_hdfs
(data: io.BytesIO, name, hdfs_dir, verbose)
verl-GDPO/verl/utils/debug/trajectory_tracker.py:33
Method
scheduler
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
Method
scheduler
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:846
Method
scheduler_step
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:830
Function
score_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
Function
score_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
Function
scorer_function
(images, prompts, metadata)
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:32
Function
scorer_function
(images, prompts, metadata)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ddpo_trainer.py:30
Method
series_to_item
(ls)
verl-GDPO/verl/utils/dataset/sft_dataset.py:75
Method
session
(self)
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/piston_client.py:82
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_peft_models.py:36
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:26
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_dataset_formatting.py:119
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_nash_md_trainer.py:34
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_collators.py:23
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_iterative_sft_trainer.py:28
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_orpo_trainer.py:29
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_xpo_trainer.py:34
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_rich_progress_callback.py:39
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_value_head.py:430
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_prm_trainer.py:34
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_prm_trainer.py:226
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:130
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_gkd_trainer.py:205
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_reward_trainer.py:33
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_alignprop_trainer.py:47
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_cpo_trainer.py:29
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:85
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_ppo_trainer.py:33
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_modeling_geometric_mixture_wrapper.py:24
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_core.py:27
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_environments.py:97
Method
setUp
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_utils.py:169
← previous
next →
1,401–1,500 of 2,091, ranked by callers