MCPcopy Create free account

hub / github.com/PRIME-RL/SimpleVLA-RL / functions

Functions1,816 in github.com/PRIME-RL/SimpleVLA-RL

↓ 3 callersMethodget_num_unfinished_requests
Gets the number of unfinished requests.
verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:340
↓ 3 callersFunctionget_parallel_model_from_config
(config, megatron_config, pre_process=None, post_process=None, value=False)
verl/utils/model.py:234
↓ 3 callersFunctionget_place_pose
获取物体应当被放置到的位置 考虑因素: 1. 三维坐标与给定坐标一致 2. 物体的朝向合理 - 物体 z 轴与给定坐标 z 轴一致 - 满足在 xy 平面上的一定约束 -
modified_codes/robotwin2/envs/utils/transforms.py:454
↓ 3 callersFunctionget_tensor_model_parallel_world_size
Return world size for the tensor model parallel group.
verl/third_party/vllm/vllm_v_0_6_3/parallel_state.py:297
↓ 3 callersFunctionget_tensor_model_parallel_world_size
Return world size for the tensor model parallel group.
verl/third_party/vllm/vllm_v_0_5_4/parallel_state.py:288
↓ 3 callersFunctionget_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
verl/utils/ulysses.py:45
↓ 3 callersMethodhas_unfinished_requests
Returns True if there are unfinished requests.
verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:344
↓ 3 callersFunctioninit_model_parallel_config
(config: DictConfig)
verl/utils/megatron_utils.py:201
↓ 3 callersFunctioninitialize_model_parallel
NOTE: This method is a hack from the open-sourced version without asertion of world_size = tp * pp Initialize model parallel groups.
verl/third_party/vllm/vllm_v_0_6_3/parallel_state.py:199
↓ 3 callersFunctionload_dtensor_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_6_3/dtensor_weight_loaders.py:363
↓ 3 callersFunctionload_dtensor_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_5_4/dtensor_weight_loaders.py:323
↓ 3 callersFunctionload_dtensor_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_4_2/dtensor_weight_loaders.py:252
↓ 3 callersFunctionload_megatron_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_6_3/megatron_weight_loaders.py:291
↓ 3 callersFunctionload_megatron_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_5_4/megatron_weight_loaders.py:290
↓ 3 callersFunctionload_megatron_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_4_2/megatron_weight_loaders.py:290
↓ 3 callersMethodload_model
( self, actor_model: Union[PreTrainedModel, Dict], model_config: ModelConfig,
verl/third_party/vllm/vllm_v_0_6_3/model_loader.py:207
↓ 3 callersMethodload_model
(self, actor_model: Union[PreTrainedModel, Dict], model_config: ModelConfig, device_config:
verl/third_party/vllm/vllm_v_0_5_4/model_loader.py:189
↓ 3 callersMethodload_model
(self, actor_model: Union[PreTrainedModel, Dict], model_config: Mo
verl/third_party/vllm/vllm_v_0_4_2/model_loader.py:178
↓ 3 callersFunctionload_weights
(actor_weights: Dict, vllm_model: nn.Module)
verl/third_party/vllm/vllm_v_0_3_1/model_loader.py:181
↓ 3 callersFunctionmake_batch_generator
(batches, vpp_size)
verl/utils/megatron/pipeline_parallel.py:43
↓ 3 callersMethodoffload_model_weights
(self)
verl/third_party/vllm/vllm_v_0_3_1/llm.py:274
↓ 3 callersMethodpick_and_place_block
(self, block, target_pose=None)
modified_codes/robotwin2/envs/blocks_ranking_rgb.py:143
↓ 3 callersMethodpostprocess_data
(self, data: DataProto)
verl/workers/hybrid_engine/base.py:32
↓ 3 callersMethodpreprocess_data
(self, data: DataProto)
verl/workers/hybrid_engine/base.py:29
↓ 3 callersMethodreset
(self, scene, need_topp=False, **kwargs)
modified_codes/robotwin2/envs/robot/robot.py:124
↓ 3 callersMethodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
verl/models/llama/megatron/modeling_llama_megatron.py:458
↓ 3 callersMethodsetup_demo
(self, is_test=False, **kwags)
modified_codes/robotwin2/envs/lift_pot.py:9
↓ 3 callersFunctionsplit_dict_tensor_into_batches
(tensors: TensorDict, batch_size)
verl/utils/torch_functional.py:206
↓ 3 callersMethodtake_dense_action
control_seq: left_arm, right_arm, left_gripper, right_gripper
modified_codes/robotwin2/envs/_base_task.py:1409
↓ 3 callersFunctiontime_limit
(seconds: float)
verl/utils/reward_score/evaluation_utils/math_util/grader.py:350
↓ 3 callersMethodto_str
(precision)
verl/utils/torch_dtypes.py:74
↓ 3 callersFunctionupdate_megatron_weight_loader
()
verl/third_party/vllm/vllm_v_0_6_3/megatron_weight_loaders.py:306
↓ 3 callersFunctionupdate_megatron_weight_loader
()
verl/third_party/vllm/vllm_v_0_5_4/megatron_weight_loaders.py:305
↓ 3 callersFunctionupdate_megatron_weight_loader
()
verl/third_party/vllm/vllm_v_0_4_2/megatron_weight_loaders.py:305
↓ 3 callersMethodverify
(self, data)
verl/trainer/main_ppo.py:38
↓ 3 callersFunctionvocab_parallel_log_probs_from_logits
TODO(zhangchi.usc1992): We may change the implementation later
verl/utils/megatron/tensor_parallel.py:136
↓ 3 callersMethodword2base
将世界坐标系下的矩阵转换到 base 坐标系下
modified_codes/robotwin2/envs/utils/transforms.py:180
↓ 2 callersMethod__init__
(self, config)
verl/workers/megatron_workers.py:410
↓ 2 callersMethod_build_model_optimizer
(self, model_path, megatron_config: ModelParalle
verl/workers/megatron_workers.py:124
↓ 2 callersMethod_build_model_optimizer
(self, model_path, fsdp_config,
verl/workers/fsdp_workers.py:111
↓ 2 callersMethod_build_model_optimizer
(self, model_path, fsdp_config,
verl/workers/fsdp_workers.py:693
↓ 2 callersMethod_check_unnorm_key
Validate and resolve the unnormalization key for action statistics
verl/utils/vla_utils/openvla_oft/modeling_prismatic.py:2015
↓ 2 callersMethod_check_unnorm_key
(norm_stats: Dict[str, Dict[str, Any]], unnorm_key: Optional[str])
verl/utils/vla_utils/openvla/modeling_prismatic.py:539
↓ 2 callersMethod_compute_loss
(self, batch)
verl/trainer/fsdp_sft_trainer.py:214
↓ 2 callersMethod_create_featurizer
Create a TIMM-based featurizer model with appropriate configurations. Args: model_id: The TIMM model ID to load
verl/utils/vla_utils/openvla_oft/modeling_prismatic.py:137
↓ 2 callersMethod_forward_micro_batch
(self, micro_batch)
verl/workers/critic/dp_critic.py:45
↓ 2 callersMethod_forward_micro_batch
Returns: entropy: # (bs, response_len) log_probs: # (bs, response_len)
verl/workers/actor/dp_actor.py:58
↓ 2 callersMethod_generate_one_step
Generate one step of actions
verl/workers/rollout/rob_rollout.py:916
↓ 2 callersMethod_get_stats
Get Stats to be Logged to Prometheus.
verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:600
↓ 2 callersMethod_init_robot_
(self, scene, need_topp=False, **kwargs)
modified_codes/robotwin2/envs/robot/robot.py:26
↓ 2 callersMethod_init_robot_
(self, scene, need_topp=False, **kwargs)
modified_codes/robotwin2/envs/robot/robot_curobo.py:26
↓ 2 callersFunction_is_frac
(expr: str)
verl/utils/reward_score/evaluation_utils/math_util/__init__.py:99
↓ 2 callersFunction_is_non_local
(path)
verl/utils/fs.py:29
↓ 2 callersFunction_normalize
Normalize answer expressions.
verl/utils/reward_score/evaluation_utils/math_util/__init__.py:139
↓ 2 callersMethod_offload_params_to_cpu
(self, pp_rank, to_empty=False)
verl/workers/hybrid_engine/megatron_vllm.py:102
↓ 2 callersFunction_pad_tensor
(x: Tensor, dim: int, padding_size: int)
verl/utils/ulysses.py:103
↓ 2 callersMethod_pad_to_length
(self, input_ids, attention_mask)
verl/utils/dataset/rm_dataset.py:99
↓ 2 callersFunction_parse
(s)
verl/utils/reward_score/evaluation_utils/math_util/grader.py:317
↓ 2 callersMethod_prepare_input_for_action_prediction
Prepares input for action prediction by adding necessary tokens
verl/utils/vla_utils/openvla_oft/modeling_prismatic.py:1383
↓ 2 callersMethod_prepare_labels_for_action_prediction
Creates labels tensor for action prediction if not provided
verl/utils/vla_utils/openvla_oft/modeling_prismatic.py:1406
↓ 2 callersMethod_prepare_output_batch
Prepare the output batch from VLA history
verl/workers/rollout/rob_rollout.py:888
↓ 2 callersMethod_process_action_masks
Helper to get action masks from labels
verl/utils/vla_utils/openvla_oft/modeling_prismatic.py:460
↓ 2 callersMethod_process_vision_features
Process vision features with optional FiLM conditioning
verl/utils/vla_utils/openvla_oft/modeling_prismatic.py:467
↓ 2 callersMethod_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/models/llama/megatron/layers/parallel_attention.py:51
↓ 2 callersFunction_strip_properly_formatted_commas
(expr: str)
verl/utils/reward_score/evaluation_utils/math_util/__init__.py:128
↓ 2 callersMethod_trans_from_world_to_base
transform target pose from world frame to base frame base_pose: np.array([x, y, z, qw, qx, qy, qz]) t
modified_codes/robotwin2/envs/robot/planner_curobo.py:258
↓ 2 callersMethod_unnormalize_actions
Unnormalize actions using dataset statistics
verl/utils/vla_utils/openvla_oft/modeling_prismatic.py:1421
↓ 2 callersFunction_unpad_tensor
(x: Tensor, dim: int, padding_size: int)
verl/utils/ulysses.py:110
↓ 2 callersFunction_unwrap_ray_remote
(cls)
verl/single_controller/ray/base.py:412
↓ 2 callersMethodadd_request
Add a request to the engine's request pool. The request is added to the request pool and will be processed by the scheduler as `engin
verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:238
↓ 2 callersFunctionall_to_all_tensor
( local_input: Tensor, scatter_dim: int, gather_dim: int, group: Optional[dist.ProcessGroup] =
verl/utils/ulysses.py:132
↓ 2 callersMethodallgather_params
allgather params of all pp ranks. Return a list of handles
verl/workers/hybrid_engine/megatron_vllm.py:118
↓ 2 callersMethodcache_swap
( self, blocks_to_swap_in: Dict[int, int], blocks_to_swap_out: Dict[int, int],
verl/third_party/vllm/vllm_v_0_3_1/worker.py:188
↓ 2 callersFunctioncheck_model_logic_mismatch
Check and sync model logic files between current code and checkpoint. Handles the relationship between current and checkpoint versions of bo
verl/utils/openvla_utils.py:138
↓ 2 callersMethodcheck_success
(self)
modified_codes/robotwin2/envs/click_bell.py:75
↓ 2 callersMethodcompress_path
(self, path, tolerance=1e-5)
modified_codes/robotwin2/envs/_base_task.py:1645
↓ 2 callersMethodcompute_entropy
(self, data: DataProto)
verl/workers/fsdp_workers.py:952
↓ 2 callersMethodcompute_implicit_reward
(self, micro_batch, log_probs, ref_log_probs)
verl/workers/actor/dp_prime.py:137
↓ 2 callersMethoddelay
(self, delay_time, save_freq=None)
modified_codes/robotwin2/envs/_base_task.py:593
↓ 2 callersMethoddownsample_trajectory
(self, positions, velocities, max_points=500)
modified_codes/robotwin2/envs/_base_task.py:1656
↓ 2 callersMethodencode
Converts a string to a sequence of ids (integer), using the tokenizer and vocabulary. Args: text (`str`, `List[str]` or
verl/workers/rollout/tokenizer.py:70
↓ 2 callersMethodencode
(self, prompt: str, request_id: Optional[str] = None, lora_reques
verl/third_party/vllm/vllm_v_0_3_1/tokenizer.py:38
↓ 2 callersFunctionevaluate_code
(completion, test_cases)
verl/utils/reward_score/evaluation_utils/code_util/__init__.py:6
↓ 2 callersFunctionfilter_instructions
Filter instructions to only include those that have all placeholders matching the available episode parameters. No more, no less. Also ac
modified_codes/robotwin2/description/utils/generate_episode_instructions.py:20
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl/models/llama/megatron/modeling_llama_megatron.py:118
↓ 2 callersMethodforward_backward_batch
(self, data: DataProto, forward_only=False)
verl/workers/critic/megatron_critic.py:113
↓ 2 callersMethodforward_backward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
verl/workers/actor/megatron_actor.py:218
↓ 2 callersMethodfrom_single_dict
(cls, data: Dict[str, Union[torch.Tensor, np.ndarray]], meta_info=None)
verl/protocol.py:174
↓ 2 callersFunctiongenerate_episode_descriptions
Generate descriptions for episodes by replacing placeholders in instructions with parameter values. For each episode, filter instructions tha
modified_codes/robotwin2/description/utils/generate_episode_instructions.py:220
↓ 2 callersMethodget_action_stats
Get all the logged statistics for the given dataset.
verl/utils/vla_utils/openvla/modeling_prismatic.py:559
↓ 2 callersMethodget_all_params
Get all the parameters of the models in all pp ranks Returns: params: List[List[Dict[str, Tensor]]]: a list of parameters in all
verl/workers/hybrid_engine/megatron_vllm.py:163
↓ 2 callersMethodget_arm_pose
(self, arm_tag: ArmTag)
modified_codes/robotwin2/envs/_base_task.py:1399
↓ 2 callersFunctionget_common_default_kwargs_for_parallel_linear
()
verl/utils/megatron/tensor_parallel.py:47
↓ 2 callersFunctionget_embodiment_config
(robot_file)
verl/workers/rollout/rob_rollout.py:194
↓ 2 callersFunctionget_embodiment_config
(robot_file)
verl/workers/rollout/pre_collect_twin2_seed.py:69
↓ 2 callersMethodget_gripper_actor_contact_position
(self, actor_name)
modified_codes/robotwin2/envs/_base_task.py:972
↓ 2 callersMethodget_info
(self)
modified_codes/robotwin2/envs/lift_pot.py:50
↓ 2 callersMethodget_left_arm_jointState
(self)
modified_codes/robotwin2/envs/robot/robot.py:517
↓ 2 callersMethodget_left_gripper_val
(self)
modified_codes/robotwin2/envs/robot/robot_curobo.py:526
↓ 2 callersFunctionget_libero_image
Extracts image from observations and preprocesses it.
verl/utils/libero_utils.py:57
← previousnext →201–300 of 1,816, ranked by callers