MCPcopy Create free account

hub / github.com/allenai/molmoact2 / functions

Functions8,779 in github.com/allenai/molmoact2

↓ 2 callersMethod_predict_action_chunk
Predict an action chunk based on an observation. Pipeline: 1. Convert raw observation to LeRobot format 2. Apply preprocessor
experiments/lerobot/src/lerobot/async_inference/policy_server.py:341
↓ 2 callersFunction_prepare_array
(value: Any, flatten: bool = False)
experiments/olmo/data/lerobot_wrapper.py:1150
↓ 2 callersMethod_prepare_batch
(self, batch: dict[str, Tensor])
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:303
↓ 2 callersMethod_prepare_global_conditioning
Encode image features and concatenate them all together along with the state vector.
experiments/lerobot/src/lerobot/policies/diffusion/modeling_diffusion.py:246
↓ 2 callersMethod_preprocess
( self, images: list[torch.Tensor], do_resize: bool, size: SizeDict, m
experiments/lerobot/src/lerobot/policies/groot/eagle2_hg_model/image_processing_eagle2_5_vl_fast.py:327
↓ 2 callersMethod_preprocess_images
Preprocess images for the model. Images from LeRobot are typically in [B, C, H, W] format and normalized to [0, 1]. PaliGemma expects
experiments/lerobot/src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:1037
↓ 2 callersMethod_preprocess_images
Preprocess images for the model. Images from LeRobot are typically in [B, C, H, W] format and normalized to [0, 1]. PaliGemma expects
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:1142
↓ 2 callersMethod_preprocess_peft_cli_overrides
Preprocess CLI overrides: rename keys and handle method-specific init_type. Args: cli_overrides: Dict of CLI options (wi
experiments/lerobot/src/lerobot/policies/pretrained.py:347
↓ 2 callersMethod_process_tensor
Moves a single tensor to the target device and casts its dtype. Handles multi-GPU scenarios by not moving a tensor if it's already o
experiments/lerobot/src/lerobot/processor/device_processor.py:84
↓ 2 callersMethod_project_depth_logits
(self, last_hidden: torch.Tensor)
experiments/olmo/hf_model/modeling_molmoact2.py:4151
↓ 2 callersMethod_project_kv_tensor
(self, x: torch.Tensor, proj: nn.Linear)
experiments/olmo/hf_model/modeling_molmoact2.py:651
↓ 2 callersMethod_project_kv_tensor
(self, x: torch.Tensor, proj: nn.Module)
experiments/olmo/nn/action_expert.py:745
↓ 2 callersMethod_query_status_via_clear_fault
(self, motor: NameOrID)
experiments/lerobot/src/lerobot/motors/robstride/robstride.py:217
↓ 2 callersMethod_read_current_pose
Reads the instantaneous 6-DoF pose from the connected iOS device via the HEBI SDK. This method fetches the latest feedback packet fr
experiments/lerobot/src/lerobot/teleoperators/phone/teleop_phone.py:136
↓ 2 callersMethod_read_current_pose
Reads the latest 6-DoF pose received from the Android device's WebXR session. This method accesses the most recent pose data stored
experiments/lerobot/src/lerobot/teleoperators/phone/teleop_phone.py:274
↓ 2 callersMethod_read_from_hardware
Reads a single frame directly from the ZMQ socket.
experiments/lerobot/src/lerobot/cameras/zmq/camera_zmq.py:174
↓ 2 callersMethod_reapply_position_calibration
(self, pos: np.ndarray)
experiments/lerobot/src/lerobot/teleoperators/phone/teleop_phone.py:42
↓ 2 callersMethod_record_loader_worker_states
(self, batch: Dict[str, Any], *, use_vlm_loader: bool)
experiments/olmo/train/trainer.py:1070
↓ 2 callersMethod_recv_all_responses
Efficiently receive responses from multiple motors at once. Uses the OpenArms pattern: collect all available messages within timeout.
experiments/lerobot/src/lerobot/motors/robstride/robstride.py:477
↓ 2 callersMethod_refresh_inv_freq_if_needed
(self, device: torch.device)
experiments/olmo/hf_model/modeling_molmoact2.py:2034
↓ 2 callersFunction_repeat_kv
(hidden_states: torch.Tensor, n_rep: int)
experiments/olmo/hf_model/inference.py:741
↓ 2 callersMethod_request
(self, cmd: str)
examples/yam/camera_client.py:58
↓ 2 callersMethod_require_eos_token_id
(self)
experiments/olmo/hf_model/modeling_molmoact2.py:3962
↓ 2 callersFunction_require_non_empty_int_sequence
(values: Sequence[int], *, label: str)
experiments/olmo/data/lerobot_wrapper.py:697
↓ 2 callersFunction_requires_discrete_action_tokenizer
( inference_action_mode: str, discrete_action_tokenizer: Optional[str], )
experiments/scripts/run_open_loop_inference_lerobot.py:144
↓ 2 callersMethod_reset_server
Flushes server state when new client connects.
experiments/lerobot/src/lerobot/async_inference/policy_server.py:101
↓ 2 callersMethod_reshape_hidden_to_heads
(self, x: torch.Tensor)
experiments/olmo/nn/action_expert.py:613
↓ 2 callersFunction_resize_2d_tensor
( tensor: torch.Tensor, target_shape: Tuple[int, int], *, copy_rows: bool, )
experiments/olmo/train/checkpoint_loading.py:565
↓ 2 callersFunction_resize_depth_reasoning_image
(image: np.ndarray, target_size: int)
experiments/olmo/hf_model/modeling_molmoact2.py:1170
↓ 2 callersFunction_resize_image_array
(array: np.ndarray, size: Tuple[int, int])
experiments/olmo/data/lerobot_wrapper.py:1124
↓ 2 callersMethod_resolve_annotated_task_for_episode_index
( self, episode_index: int, *, missing_row_warning_kind: str, missing_
experiments/olmo/data/lerobot_wrapper.py:2137
↓ 2 callersMethod_resolve_depth_reasoning
(self)
experiments/lerobot/src/lerobot/policies/molmoact2/hf_backend.py:344
↓ 2 callersFunction_resolve_inference_action_mode
(args: argparse.Namespace)
experiments/scripts/run_open_loop_inference_lerobot.py:140
↓ 2 callersMethod_resolve_n_action_steps_for_tag
( handles: _MolmoHandles, norm_tag: Optional[str], requested_n_action_steps: Optional[
experiments/lerobot/src/lerobot/policies/molmoact2/modeling_molmoact2.py:1192
↓ 2 callersMethod_restore_loader_state
( self, loader: DataLoader, loader_cfg: DataLoaderConfig, checkpoint: Optional
experiments/olmo/train/trainer.py:1018
↓ 2 callersMethod_restore_policy_state
(self, session_id: str)
experiments/scripts/serve_policy.py:502
↓ 2 callersMethod_rope_cache_ready
(self, device: torch.device, seq_len: int)
experiments/olmo/hf_model/modeling_molmoact2.py:2025
↓ 2 callersFunction_rotate_half
(x: torch.Tensor)
experiments/olmo/hf_model/inference.py:721
↓ 2 callersMethod_rtc_enabled
(self)
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:1164
↓ 2 callersMethod_rtc_enabled
(self)
experiments/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py:352
↓ 2 callersMethod_rtc_enabled
(self)
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:1139
↓ 2 callersMethod_run_ar_decode_step
( self, token_ids: torch.Tensor, *, past_key_values: Cache, attention_
experiments/olmo/hf_model/modeling_molmoact2.py:4094
↓ 2 callersFunction_s3_file_size
(scheme: str, bucket_name: str, key: str)
experiments/olmo/io.py:843
↓ 2 callersFunction_s3_get_bytes_range
( scheme: str, bucket_name: str, key: str, bytes_start: int, num_bytes: Optional[int] )
experiments/olmo/io.py:856
↓ 2 callersMethod_sample_at_fps
Sample frames at specified fps interval. Trick: generate timestamp grids based on sampling_fps, then use _filter_frames_to_video to a
experiments/olmo/models/molmo/data_formatter.py:1452
↓ 2 callersMethod_sample_initial_point
Sample a single initial point from the first visible frame for the given point_id. Used for finding initial query point to track for
experiments/olmo/models/molmo/data_formatter.py:1391
↓ 2 callersFunction_sample_rng_index
(rng: np.random.Generator, high: int)
experiments/olmo/data/lerobot_wrapper.py:366
↓ 2 callersMethod_save_episode_metadata
Buffer episode metadata and write to parquet in batches for efficiency. This function accumulates episode metadata in a buffer and flushes it
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:328
↓ 2 callersFunction_save_norm_stats
(model_config: BaseModelConfig, output_dir: str)
experiments/olmo/hf_model/convert_molmoact2_to_hf.py:226
↓ 2 callersFunction_save_single_optimizer_state
Save a single optimizer's state to disk.
experiments/lerobot/src/lerobot/optim/optimizers.py:303
↓ 2 callersFunction_scale_mixture
(mixture, scale)
experiments/launch_scripts/sft.py:250
↓ 2 callersMethod_scale_point
(self, point, scale)
experiments/olmo/preprocessing/point_formatter.py:399
↓ 2 callersMethod_search
( self, start_predictions: torch.Tensor, start_state: StateType, step: StepFun
experiments/olmo/nn/beam_search.py:1068
↓ 2 callersMethod_select_depth_decode_rope
( self, cos: torch.Tensor, sin: torch.Tensor, *, past_length: int )
experiments/olmo/hf_model/inference.py:328
↓ 2 callersMethod_send_command_to_sdk
Send control command to SDK. Args: linear: Linear velocity command (-1 to 1) angular: Angular velocity command (-1 to
experiments/lerobot/src/lerobot/robots/earthrover_mini_plus/robot_earthrover_mini_plus.py:437
↓ 2 callersFunction_slice_action_chunk
(actions: torch.Tensor, n_obs_steps: int, n_action_steps: Optional[int])
experiments/lerobot/src/lerobot/policies/molmoact2/modeling_molmoact2.py:261
↓ 2 callersMethod_slice_observation_batch
(self, batch: Dict[str, Any], idx: int, batch_size: int)
experiments/lerobot/src/lerobot/policies/molmoact2/modeling_molmoact2.py:1507
↓ 2 callersMethod_slice_observation_batch
(self, batch: Dict[str, Any], idx: int, batch_size: int)
experiments/lerobot/src/lerobot/policies/molmoact2/hf_backend.py:298
↓ 2 callersFunction_slice_state_dict
(full_state: Dict[str, torch.Tensor], prefix: str)
experiments/olmo/train/checkpointer.py:87
↓ 2 callersMethod_slice_state_dict
(full_state: Dict[str, torch.Tensor], prefix: str)
experiments/olmo/train/trainer.py:1371
↓ 2 callersMethod_snapshot
Snapshot the latest color frame from every camera (RGB uint8).
examples/yam/camera_server.py:90
↓ 2 callersFunction_split_by_size_and_type
(bins: int, items: List[WriteItem])
experiments/olmo/train/remote_filesystem.py:114
↓ 2 callersMethod_start_pipeline
(self)
examples/yam/gello_min/realsense_camera.py:101
↓ 2 callersFunction_state_stats_key
(state_keys: Sequence[str])
experiments/launch_scripts/lerobot_utils/stats.py:281
↓ 2 callersMethod_stop_read_thread
Signals the background read thread to stop and waits for it to join.
experiments/lerobot/src/lerobot/cameras/opencv/camera_opencv.py:474
↓ 2 callersMethod_stop_read_thread
Signals the background read thread to stop and waits for it to join.
experiments/lerobot/src/lerobot/cameras/realsense/camera_realsense.py:514
↓ 2 callersMethod_switch_operation_mode
Switch the operation mode of a motor.
experiments/lerobot/src/lerobot/motors/robstride/robstride.py:310
↓ 2 callersMethod_sync_remote_action
(self)
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/unitree_g1.py:101
↓ 2 callersMethod_time_action_chunk
Turn a chunk of actions into a list of TimedAction instances, with the first action corresponding to t_0 and the rest corresponding to
experiments/lerobot/src/lerobot/async_inference/policy_server.py:323
↓ 2 callersMethod_time_conditioning
(self, timesteps: torch.Tensor)
experiments/olmo/hf_model/modeling_molmoact2.py:642
↓ 2 callersFunction_to_2tuple
Minimal replacement for timm.layers.to_2tuple.
experiments/lerobot/src/lerobot/policies/xvla/soft_transformer.py:31
↓ 2 callersFunction_to_numpy
(value: Any)
experiments/lerobot/src/lerobot/policies/molmoact2/hf_backend.py:20
↓ 2 callersFunction_to_pil
(arr: Any)
examples/droid/host_server_droid.py:223
↓ 2 callersMethod_tokenize_action
Tokenizes the action tensor and creates a mask. Args: action: The input action tensor to tokenize. Shape: (B, H, action_
experiments/lerobot/src/lerobot/processor/tokenizer_processor.py:433
↓ 2 callersMethod_tokenize_text
A wrapper around the tokenizer call. Args: text: A string or list of strings to tokenize. Returns:
experiments/lerobot/src/lerobot/processor/tokenizer_processor.py:253
↓ 2 callersMethod_train_step
Single training step for one annotation scheme. Implements 75%/25% GT/predicted stage conditioning. Args: img_e
experiments/lerobot/src/lerobot/policies/sarm/modeling_sarm.py:644
↓ 2 callersFunction_try_get_base_tokenizer_rows
( tokenizer_identifier: str | None, tokenizer_dir: str | None, )
experiments/olmo/token_layout.py:52
↓ 2 callersMethod_try_get_fps
(self, video_fps)
experiments/olmo/data/video_object_tracking_datasets.py:240
↓ 2 callersMethod_unnormalize
(self, ids_values: dict[int, float])
experiments/lerobot/src/lerobot/motors/motors_bus.py:867
↓ 2 callersMethod_update_obs_history
(self, idx: int, obs_slice: Dict[str, Any], n_obs_steps: int)
experiments/lerobot/src/lerobot/policies/molmoact2/modeling_molmoact2.py:1513
↓ 2 callersFunction_uses_bounded_normalized_range
(mode: str)
experiments/olmo/data/robot_processing.py:129
↓ 2 callersFunction_validate_available_camera_keys
( available_cameras: Sequence[str], camera_keys: Sequence[str], *, repo_id: str, label: st
experiments/olmo/data/lerobot_wrapper.py:649
↓ 2 callersFunction_validate_depth_side_channel_length
( values: Any, *, expected: int, label: str, )
experiments/olmo/data/lerobot_wrapper.py:1310
↓ 2 callersFunction_validate_feature_names
Validate that feature names do not contain invalid characters. Args: features (dict): The LeRobot features dictionary. Raises:
experiments/lerobot/src/lerobot/datasets/utils.py:601
↓ 2 callersMethod_validate_norm_tag
(self, tag: str)
experiments/scripts/serve_policy.py:367
↓ 2 callersFunction_wait_for_marker
(marker_path: Path, timeout_s: int)
experiments/olmo/data/lerobot_wrapper.py:808
↓ 2 callersMethod_wait_image_writer
Wait for asynchronous image writer to finish.
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:1626
↓ 2 callersMethod_window_stats
(self)
experiments/olmo/train/trainer.py:368
↓ 2 callersFunction_with_lerobot_prefix
(value: str)
experiments/launch_scripts/data_mixtures.py:97
↓ 2 callersFunction_wrap_with_lora
( base_module: torch.nn.Module, *, target_modules: list[str],
experiments/olmo/train/run_trainer.py:399
↓ 2 callersFunctionaccumulate
(mixture: Optional[List[KwargsMixture]], loader_weight: float)
experiments/olmo/train/trainer.py:198
↓ 2 callersMethodaction
(self, port, id)
experiments/lerobot/src/lerobot/motors/motors_bus.py:220
↓ 2 callersMethodaddParam
(self, id)
experiments/lerobot/src/lerobot/motors/motors_bus.py:262
↓ 2 callersFunctionadd_cached_path_clients
Add additional cached-path clients, the enables files with the `weka://` prefix
experiments/olmo/io.py:988
↓ 2 callersMethodadd_pos_emb
(self, x: torch.Tensor, patch_num: int)
experiments/olmo/nn/image_vit.py:639
↓ 2 callersFunctionann_to_mask
Decodes RLE masks to binary mask
experiments/olmo/eval/object_tracking_utils.py:488
↓ 2 callersFunctionannotation_to_box
(points, point_dist=4)
experiments/olmo/eval/evaluators.py:92
↓ 2 callersFunctionappend_discrete_state_to_prompt
(prompt: str, discrete_state_string: str)
experiments/olmo/extra_tokens.py:298
↓ 2 callersFunctionappend_or_create_parquet_file
Appends data to an existing parquet file or creates a new one based on size constraints. Manages file rotation when size limits are exceeded to p
experiments/lerobot/src/lerobot/datasets/aggregate.py:557
↓ 2 callersMethodapply_activation_checkpointing
(self)
experiments/olmo/nn/llm.py:834
← previousnext →1,301–1,400 of 8,779, ranked by callers