MCPcopy Create free account

hub / github.com/NVlabs/GDPO / functions

Functions2,091 in github.com/NVlabs/GDPO

Method__init__
(self, config)
verl-GDPO/verl/workers/fsdp_workers.py:770
Method__init__
(self, module: FSDP, inference_engine: LLM, model_config,
verl-GDPO/verl/workers/sharding_manager/fsdp_vllm.py:36
Method__init__
(self, device_mesh: DeviceMesh)
verl-GDPO/verl/workers/sharding_manager/fsdp_ulysses.py:38
Method__init__
(self, model_provider)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:37
Method__init__
(self, module: AllGatherPPModel, inference_engine: LLM, model_config, layer_name_mapping)
verl-GDPO/verl/workers/sharding_manager/megatron_vllm.py:240
Method__init__
(self, config)
verl-GDPO/verl/workers/critic/base.py:28
Method__init__
(self, config, model_config, megatron_config, critic_module: nn.ModuleList, critic_optimizer:
verl-GDPO/verl/workers/critic/megatron_critic.py:43
Method__init__
(self, config, critic_module: nn.Module, critic_optimizer: optim.Optimizer)
verl-GDPO/verl/workers/critic/dp_critic.py:41
Method__init__
Args: dataloader: an Iterable of TensorDict that consistently generates prompts. Note that the dataloader should han
verl-GDPO/verl/workers/rollout/base.py:25
Method__init__
(self, module: nn.Module, config)
verl-GDPO/verl/workers/rollout/hf_rollout.py:37
Method__init__
A naive rollout. It requires the module to be compatible with huggingface APIs. That is: The module should define __call__ to receive input_id
verl-GDPO/verl/workers/rollout/naive/naive_rollout.py:38
Method__init__
A vLLM rollout. It requires the module is supported by the vllm. Args: module: module here follows huggingface APIs c
verl-GDPO/verl/workers/rollout/vllm_rollout/vllm_rollout.py:59
Method__init__
MeagtronPPOActor class. This class implements the simple PPO logics when the model is built with Megatron. Args: config (OmegaCon
verl-GDPO/verl/workers/actor/megatron_actor.py:50
Method__init__
The base class for PPO actor Args: config (DictConfig): a config passed to the PPOActor. We expect the type to be
verl-GDPO/verl/workers/actor/base.py:28
Method__init__
When optimizer is None, it is Reference Policy
verl-GDPO/verl/workers/actor/dp_actor.py:41
Method__init__
(self, config)
verl-GDPO/verl/workers/reward_model/base.py:25
Method__init__
(self, config, model_config, reward_model_module: torch.nn.
verl-GDPO/verl/workers/reward_model/megatron/reward_model.py:39
Method__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:157
Method__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:223
Method__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:281
Method__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig, pre_process, post_process)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:410
Method__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig, pre_process, post_process)
verl-GDPO/verl/models/llama/megatron/modeling_llama_megatron.py:516
Method__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
verl-GDPO/verl/models/llama/megatron/layers/parallel_decoder.py:101
Method__init__
(self, config, megatron_config: ModelParallelConfig = None)
verl-GDPO/verl/models/llama/megatron/layers/parallel_mlp.py:33
Method__init__
(self, dim, max_position_embeddings=2048, base=10000, device=None, scaling_factor=1.0)
verl-GDPO/verl/models/llama/megatron/layers/parallel_attention.py:75
Method__init__
(self, dim, max_position_embeddings=2048, base=10000, device=None, scaling_factor=1.0)
verl-GDPO/verl/models/llama/megatron/layers/parallel_attention.py:94
Method__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
verl-GDPO/verl/models/llama/megatron/layers/parallel_attention.py:146
Method__init__
(self, input_size, gate_ouput_size, up_output_size,
verl-GDPO/verl/models/llama/megatron/layers/parallel_linear.py:54
Method__init__
LlamaRMSNorm is equivalent to T5LayerNorm
verl-GDPO/verl/models/llama/megatron/layers/parallel_rmsnorm.py:27
Method__init__
(self)
trl-GDPO/trl-0.18.0-gdpo/tests/test_rich_progress_callback.py:29
Method__init__
(self, model, ref_model, args, train_dataset, eval_dataset, processing_class)
trl-GDPO/trl-0.18.0-gdpo/tests/test_callbacks.py:49
Method__init__
(self, *, dtype, model_id, model_filename)
trl-GDPO/trl-0.18.0-gdpo/examples/scripts/ddpo.py:106
Method__init__
(self, *args, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/examples/research_projects/layer_skip/scripts/custom_trainer.py:19
Method__init__
(self, name, module_file, import_structure, module_spec=None, extra_objects=None)
trl-GDPO/trl-0.18.0-gdpo/trl/import_utils.py:102
Method__init__
(self, method: str = "linear")
trl-GDPO/trl-0.18.0-gdpo/trl/mergekit_utils.py:73
Method__init__
(self, min_value: int, max_value: int)
trl-GDPO/trl-0.18.0-gdpo/trl/core.py:84
Method__init__
(self, stop_strings, tokenizer)
trl-GDPO/trl-0.18.0-gdpo/trl/environment/base_environment.py:33
Method__init__
Initialize TextHistory. Args: text (`str`): The text of the first segment. tokens (`torch.LongTensor`): The
trl-GDPO/trl-0.18.0-gdpo/trl/environment/base_environment.py:62
Method__init__
Initialize TextEnvironment. Args: model (`PreTrainedModelWrapper`): The model to use for generation. tokeniz
trl-GDPO/trl-0.18.0-gdpo/trl/environment/base_environment.py:218
Method__init__
( self, dataclass_types: Optional[Union[DataClassType, Iterable[DataClassType]]] = None,
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/utils.py:153
Method__init__
(self, model_name=None, user_name=None)
trl-GDPO/trl-0.18.0-gdpo/trl/scripts/chat.py:200
Method__init__
( self, model: Union[PreTrainedModel, nn.Module], ref_model: Union[PreTrainedModel, nn
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/online_dpo_trainer.py:135
Method__init__
( self, model: Union[str, PreTrainedModel], args: Optional[Union[IterativeSFTConfig, T
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/iterative_sft_trainer.py:95
Method__init__
( self, config: DDPOConfig, reward_function: Callable[[torch.Tensor, tuple[str], tuple
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/ddpo_trainer.py:58
Method__init__
( self, config: RLOOConfig, processing_class: Optional[ Union[PreTrainedTo
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/rloo_trainer.py:75
Method__init__
( self, config: AlignPropConfig, reward_function: Callable[[torch.Tensor, tuple[str],
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/alignprop_trainer.py:60
Method__init__
( self, model: Optional[Union[PreTrainedModel, nn.Module]] = None, args: Optional[PRMC
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/prm_trainer.py:88
Method__init__
( self, response_template: Union[str, list[int]], instruction_template: Optional[Union
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:89
Method__init__
( self, tokenizer, dataset, dataset_text_field=None, formatting_func=N
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:601
Method__init__
( self, model: Union[PreTrainedModel, nn.Module, str] = None, ref_model: Optional[Unio
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/kto_trainer.py:322
Method__init__
( self, model: Optional[Union[PreTrainedModel, nn.Module, str]] = None, args: Optional
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/orpo_trainer.py:116
Method__init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/judges.py:214
Method__init__
( self, model="meta-llama/Meta-Llama-3-70B-Instruct", token: Optional[str] = None,
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/judges.py:305
Method__init__
( self, model="gpt-4-turbo-preview", system_prompt: Optional[str] = None, max_requests: Union[int, Non
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/judges.py:361
Method__init__
(self, judges: list[BaseBinaryJudge])
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/judges.py:429
Method__init__
( self, ref_model: Union[PreTrainedModel, torch.nn.Module], accelerator: Optional[Acce
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/callbacks.py:98
Method__init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/callbacks.py:139
Method__init__
( self, judge: BasePairwiseJudge, trainer: Trainer, generation_config: Optiona
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/callbacks.py:262
Method__init__
( self, trainer: Trainer, generation_config: Optional[GenerationConfig] = None,
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/callbacks.py:443
Method__init__
( self, merge_config: Optional["MergeConfig"] = None, merge_at_every_checkpoint: bool
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/callbacks.py:537
Method__init__
( self, model: Union[PreTrainedModel, nn.Module] = None, ref_model: Union[PreTrainedMo
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/xpo_trainer.py:108
Method__init__
( self, model: Union[PreTrainedModel, nn.Module, str] = None, ref_model: Optional[Unio
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/bco_trainer.py:330
Method__init__
( self, model: Optional[Union[PreTrainedModel, nn.Module, str]] = None, ref_model: Opt
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/dpo_trainer.py:201
Method__init__
( self, model: Optional[Union[PreTrainedModel, nn.Module, str]] = None, teacher_model:
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/gkd_trainer.py:62
Method__init__
(self, policy, value_model)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/ppo_trainer.py:86
Method__init__
( self, model: Union[PreTrainedModel, nn.Module] = None, ref_model: Union[PreTrainedMo
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/nash_md_trainer.py:108
Method__init__
( self, model: Optional[Union[PreTrainedModel, nn.Module, str]] = None, args: Optional
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/cpo_trainer.py:112
Method__init__
( self, model: Union[str, nn.Module, PreTrainedModel], args: Optional[Union[SFTConfig,
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/sft_trainer.py:235
Method__init__
Initialize RewardTrainer. Args: model (`transformers.PreTrainedModel`): The model to train, preferably a
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/reward_trainer.py:86
Method__init__
( self, data_source: Sized, mini_repeat_count: int, batch_size: int = 1,
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:149
Method__init__
( self, model: Union[str, PreTrainedModel], reward_funcs: Union[RewardFunc, list[Rewar
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:391
Method__init__
(self, *, dtype, model_id, model_filename)
trl-GDPO/trl-0.18.0-gdpo/trl/models/auxiliary_modules.py:50
Method__init__
(self, model, ref_model, generation_config, mixture_coef=0.5, device=None)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_base.py:694
Method__init__
(self, pretrained_model_name: str, *, pretrained_model_revision: str = "main", use_lora: bool = True)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_sd_base.py:792
Method__init__
( self, use_pin_memory: bool = True, use_streams: bool = True, min_offload_siz
trl-GDPO/trl-0.18.0-gdpo/trl/models/activation_offloading.py:68
Method__init__
r""" Initializes the model. Args: pretrained_model (`transformers.PreTrainedModel`): The model to wrap. I
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:93
Method__init__
(self, pretrained_model, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/models/modeling_value_head.py:291
Method__init__
( self, base_url: Optional[str] = None, host: str = "0.0.0.0", server_port: in
trl-GDPO/trl-0.18.0-gdpo/trl/extras/vllm_client.py:100
Method__init__
r""" Initialize the sampler for best-of-n generation Args: model (`PreTrainedModelWrapper`): The pretrain
trl-GDPO/trl-0.18.0-gdpo/trl/extras/best_of_n_sampler.py:24
Method__init__
Initializes the RoutedSandbox with the specified router URL. Args: router_url (str): The URL of the E2B Router.
trl-GDPO/open-r1/src/open_r1/utils/routed_sandbox.py:32
Method__init__
Initialize the routed MorphCloud sandbox client. Args: router_url: The URL of the MorphCloud router, including host and
trl-GDPO/open-r1/src/open_r1/utils/routed_morph.py:35
Method__init__
Initialize the E2B provider. Args: num_parallel: Number of parallel sandboxes to use e2b_router_url: URL for the E2B
trl-GDPO/open-r1/src/open_r1/utils/code_providers.py:66
Method__init__
Initialize the Morph provider. Args: num_parallel: Number of parallel executions to use morph_router_url: URL for the
trl-GDPO/open-r1/src/open_r1/utils/code_providers.py:172
Method__init__
(self, **kwargs)
trl-GDPO/open-r1/src/open_r1/utils/callbacks.py:38
Method__init__
(self, model_config)
trl-GDPO/open-r1/src/open_r1/utils/callbacks.py:44
Method__init__
Initialize the MorphCloud execution client. Args: api_key: Optional API key for MorphCloud. If not provided, will use MO
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/morph_client.py:31
Method__init__
( self, base_endpoint: str | list[str] = "http://ip-10-53-80-65:3223/api/v2", session=
trl-GDPO/open-r1/src/open_r1/utils/competitive_programming/piston_client.py:59
Method__iter__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:658
Method__iter__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:171
Method__len__
(self)
verl-GDPO/verl/protocol.py:180
Method__len__
(self)
verl-GDPO/verl/utils/dataset/rm_dataset.py:96
Method__len__
(self)
verl-GDPO/verl/utils/dataset/sft_dataset.py:107
Method__len__
(self)
verl-GDPO/verl/utils/dataset/rl_dataset.py:120
Method__len__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/utils.py:655
Method__len__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/grpo_trainer.py:192
Method__lt__
(self, other)
verl-GDPO/verl/utils/seqlen_balancing.py:42
Method__lt__
(self, other)
verl-GDPO/verl/utils/seqlen_balancing.py:81
Method__new__
(cls, *args, **kwargs)
verl-GDPO/verl/single_controller/base/worker.py:85
Method__post_init__
(self)
verl-GDPO/verl/protocol.py:176
Method__post_init__
(self)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/model_config.py:174
← previousnext →901–1,000 of 2,091, ranked by callers