MCPcopy Create free account

hub / github.com/NVlabs/GDPO / functions

Functions2,091 in github.com/NVlabs/GDPO

Method__post_init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/xpo_config.py:41
Method__post_init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/gkd_config.py:99
Method__post_init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/iterative_sft_config.py:75
Method__post_init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/alignprop_config.py:187
Method__post_init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:259
Method__post_init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/ddpo_config.py:294
Method__post_init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_config.py:528
Method__post_init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/online_dpo_config.py:164
Method__post_init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/sft_config.py:190
Method__post_init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/nash_md_config.py:43
Method__post_init__
(self)
trl-GDPO/open-r1/src/open_r1/configs.py:78
Method__reduce__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/import_utils.py:151
Method__repr__
(self)
verl-GDPO/verl/utils/seqlen_balancing.py:89
Method__setstate__
(self, data)
verl-GDPO/verl/protocol.py:204
Method_download_files
()
verl-GDPO/verl/utils/dataset/rm_dataset.py:72
Method_estimate_qwen2_flops
(self, tokens_sum, batch_seqlens, delta_time)
verl-GDPO/verl/utils/flops_counter.py:72
Method_estimate_unknown_flops
(self, tokens_sum, batch_seqlens, delta_time)
verl-GDPO/verl/utils/flops_counter.py:69
Function_fn
(images, prompts, metadata)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/ddpo.py:144
Function_fn
(images, prompts, metadata)
trl-GDPO/trl-0.18.0-gdpo/trl/models/auxiliary_modules.py:91
Method_forward_head
(self, hidden_states)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:377
Method_forward_head
(self, hidden_states)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:637
Method_func
(example)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/sft_trainer.py:546
Function_get_kl_dataset
Creates mismatched pairs of prompts and completions for the KL dataset by adding a +1 offset to the order of completions. For best results, t
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/kto_trainer.py:86
Method_get_pid
(self)
verl-GDPO/verl/single_controller/base/worker.py:66
Method_get_train_sampler
(self, dataset: Optional[Dataset] = None)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:1278
Method_init_head
(self)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:368
Method_init_head
(self)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:628
Method_is_worker_alive
(self, worker: ray.actor.ActorHandle)
verl-GDPO/verl/single_controller/ray/base.py:205
Method_load_model_hook
(self, models, input_dir)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/ddpo_trainer.py:428
Method_load_model_hook
(self, models, input_dir)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/alignprop_trainer.py:317
Method_load_optimizer_and_scheduler
(self, checkpoint)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:856
Method_maybe_log_save_evaluate
( self, tr_loss, grad_norm, model, trial, epoch, ignore_keys_for_eval, start_time=None, learning_rate=
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/online_dpo_trainer.py:699
Method_prepare_dataset
(self, dataset, *args)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/gkd_trainer.py:148
Method_prepare_instance
Prepare and start a MorphCloud instance. Args: snapshot_id: Optional snapshot ID to use. If None, will get or create base
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/morph_client.py:49
Function_process_tokens
Process tokens of a KTO specific dataset. At this stage, we don't convert to PyTorch tensors yet; we just handle the truncation in case the p
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/kto_trainer.py:155
Function_process_tokens
Process tokens of a BCO specific dataset. At this stage, we don't convert to PyTorch tensors yet; we just handle the truncation in case the p
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:163
Method_rebind_actor_methods
bind the method with actor_prefix to its original name
verl-GDPO/verl/single_controller/ray/base.py:298
Method_save_model_hook
(self, models, weights, output_dir)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/ddpo_trainer.py:424
Method_save_model_hook
(self, models, weights, output_dir)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/alignprop_trainer.py:313
Method_save_optimizer_and_scheduler
(self, output_dir)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:845
Method_save_pretrained
(self, save_directory)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/ddpo_trainer.py:592
Method_save_pretrained
(self, save_directory)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/alignprop_trainer.py:391
Method_send_to_one
(self, endpoint, route, data=None, method="post")
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/piston_client.py:112
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
verl-GDPO/verl/models/llama/megatron/layers/parallel_attention.py:79
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
verl-GDPO/verl/models/llama/megatron/layers/parallel_attention.py:98
Method_set_signature_columns_if_needed
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/dpo_trainer.py:675
Method_set_signature_columns_if_needed
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/sft_trainer.py:674
Method_set_signature_columns_if_needed
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:734
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
verl-GDPO/verl/models/llama/megatron/layers/parallel_attention.py:231
Function_tokenize
Tokenize a batch from a KTO specific dataset.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/kto_trainer.py:97
Function_tokenize
Tokenize a batch from a BCO specific dataset.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:94
Function_tokenize
Tokenize a batch from a reward modelling dataset.
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/reward_trainer.py:64
Function_unpair_row
(examples: list[dict[str, list[dict[str, str]]]])
trl-GDPO/trl-0.18.0-gdpo/trl/data_utils.py:230
Method_validate_model_class
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_base.py:727
Method_validate_model_kwargs
(self, model_kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_base.py:730
Methodadd_eos
(example, eos_token)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/sft_trainer.py:595
Methodadd_node
(self, process_count)
verl-GDPO/verl/single_controller/base/worker_group.py:35
Methodall_special_ids
`List[int]`: List the ids of the special tokens(`'<unk>'`, `'<cls>'`, etc.) mapped to class attributes.
verl-GDPO/verl/workers/rollout/tokenizer.py:53
Methodall_special_tokens
`List[str]`: A list of the unique special tokens (`'<unk>'`, `'<cls>'`, ..., etc.). Convert tokens of `tokenizers.AddedToken` type t
verl-GDPO/verl/workers/rollout/tokenizer.py:61
Methodalpha
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/xpo_trainer.py:174
Methodapplicable_reward_func
A reward function that rewards longer completions.
trl-GDPO/trl-0.18.0-gdpo/tests/test_grpo_trainer.py:586
Methodapply_defaults
(parser, kw)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/utils.py:227
Functionapply_monkey_patch_to_llama
()
verl-GDPO/verl/models/transformers/monkey_patch.py:22
Functionapply_monkey_patch_to_qwen2
()
verl-GDPO/verl/models/transformers/monkey_patch.py:28
Functionapply_rotary_pos_emb_rmpad
(q, k, cos, sin, position_ids, indices, sequence_length)
verl-GDPO/verl/models/llama/megatron/layers/parallel_attention.py:299
Methodassistant
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/utils.py:58
Methodautocast
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:854
Methodbackward
(ctx: Any, *grad_output: Tensor)
verl-GDPO/verl/utils/ulysses.py:182
Methodbackward
(ctx, grad_output: torch.Tensor)
verl-GDPO/verl/utils/megatron/tensor_parallel.py:118
Methodbatch_code_reward
(examples)
trl-GDPO/open-r1/tests/slow/test_code_reward.py:56
Functionbatch_score
(examples)
trl-GDPO/open-r1/scripts/pass_rate_filtering/compute_pass_rate.py:115
Functionbenchmark_code_reward
(example)
trl-GDPO/open-r1/scripts/benchmark_e2b.py:33
Methodbeta
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/online_dpo_trainer.py:334
Functionbinary_code_reward
( completions, num_parallel: int = 2, provider_type: str = "e2b", enforce_same_language: bool
trl-GDPO/open-r1/src/open_r1/rewards.py:485
Methodbuild_memory_reference
(self)
verl-GDPO/verl/utils/memory_buffer.py:199
Functioncf_code_reward
Reward function that evaluates Codeforces problems using Piston+our CF package. Assumes the dataset has the same format as hf.co/datasets/open-r1
trl-GDPO/open-r1/src/open_r1/rewards.py:420
Methodchat_template
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/models/utils.py:62
Functioncheck_hub_revision_exists
Checks if a given Hub revision exists.
trl-GDPO/open-r1/src/open_r1/utils/hub.py:70
Functioncheck_workers_alive
(workers: List, is_alive: Callable, gap_time: float = 1)
verl-GDPO/verl/single_controller/base/worker_group.py:81
Methodchunk
(self, chunks: int)
verl-GDPO/verl/protocol.py:617
Functionclip_by_value
Tensor extenstion to torch.clamp https://github.com/pytorch/pytorch/issues/2793#issuecomment-428784713
verl-GDPO/verl/utils/torch_functional.py:86
Functionclose_communicator
Closes the weight update group and cleans up associated resources.
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/vllm_serve.py:560
Methodclose_communicator
Closes the communicator when weight synchronization is no longer needed. This method deletes the NCCL communicator to release associ
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/vllm_serve.py:138
Functioncode_format_reward
(completions, **kwargs)
trl-GDPO/open-r1/src/open_r1/rewards.py:602
Functioncollate_fn
(x: list['DataProtoItem'])
verl-GDPO/verl/protocol.py:143
Functioncollate_fn
(data_list: list[dict])
verl-GDPO/verl/utils/dataset/rl_dataset.py:31
Functioncollate_fn
(examples)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/sft_vlm_smol_vlm.py:93
Functioncollate_fn
(examples)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/sft_vlm.py:86
Functioncollate_fn
Collate batch of examples for training.
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/sft_video_llm.py:113
Functioncollate_fn
(examples)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/sft_vlm_gemma3.py:163
Methodcollate_fn
(examples)
trl-GDPO/trl-0.18.0-gdpo/tests/test_sft_trainer.py:920
Functioncollator
(data)
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/toxicity/scripts/gpt-j-6b-toxicity.py:149
Functioncollect_all_to_all
(worker_group, output)
verl-GDPO/verl/single_controller/base/decorator.py:70
Functioncollect_dp_compute_data_proto
(worker_group, output)
verl-GDPO/verl/single_controller/base/decorator.py:289
Functioncollect_megatron_compute_data_proto
Each output must be a DataProto. We concat the dim=0 of output
verl-GDPO/verl/single_controller/base/decorator.py:147
Functioncollect_megatron_pp_as_dp_data_proto
(worker_group, output)
verl-GDPO/verl/single_controller/base/decorator.py:246
Functioncollect_megatron_pp_only
Only collect output of megatron pp. This is useful when examine weight names as they are identical in tp/dp
verl-GDPO/verl/single_controller/base/decorator.py:223
Functioncompute_entropy_loss
Compute Categorical entropy loss Args: logits: `(torch.Tensor)` shape: (bs, response_length, vocab_size) eos_mask: `(
verl-GDPO/verl/trainer/ppo/core_algos.py:340
Functioncompute_gae_advantage_return
Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py Args: token_level_rewards: `(torch.Tensor)`
verl-GDPO/verl/trainer/ppo/core_algos.py:70
Functioncompute_grad_norm
(model: nn.Module)
verl-GDPO/verl/utils/torch_functional.py:151
← previousnext →1,001–1,100 of 2,091, ranked by callers