MCPcopy Create free account

hub / github.com/allenai/molmoact2 / functions

Functions8,779 in github.com/allenai/molmoact2

↓ 9 callersMethodget_prefix_weights
(self, start, end, total)
experiments/lerobot/src/lerobot/policies/rtc/modeling_rtc.py:250
↓ 9 callersFunctionget_step_function
( transition_matrix: torch.Tensor, with_timestep: bool = False )
experiments/tests/beam_search_test.py:71
↓ 9 callersFunctionis_distributed
()
experiments/olmo/torch_util.py:62
↓ 9 callersFunctionmuir_bench_mc
( target: str, prediction: str, options: List[str], fallback_to_random: bool = True, )
experiments/olmo/eval/vqa.py:700
↓ 9 callersMethodnum_dofs
Get the number of joints of the robot. Returns: int: The number of joints of the robot.
examples/yam/gello_min/robot.py:14
↓ 9 callersFunctionpopulate_queues
( queues: dict[str, deque], batch: dict[str, torch.Tensor], exclude_keys: list[str] | None = None )
experiments/lerobot/src/lerobot/policies/utils.py:31
↓ 9 callersFunctionprepare_cli_environment
(log_filter_type: Optional[LogFilterType] = None)
experiments/olmo/util.py:303
↓ 9 callersFunctionremove_feature
Remove features from a LeRobotDataset. Args: dataset: The source LeRobotDataset. feature_names: Name(s) of features to remove. Ca
experiments/lerobot/src/lerobot/datasets/dataset_tools.py:419
↓ 9 callersFunctionseconds_to_timestamp
(seconds, second_decimal_places=2)
experiments/olmo/models/molmo/data_formatter.py:680
↓ 9 callersFunctionsend_bytes_in_chunks
(buffer: bytes, message_class: Any, log_prefix: str = "", silent: bool = True)
experiments/lerobot/src/lerobot/transport/utils.py:45
↓ 9 callersMethodsync_write
Write values to multiple motors.
experiments/lerobot/src/lerobot/motors/motors_bus.py:97
↓ 9 callersFunctionwrite_stats
Serialize and write dataset statistics to their standard file path. Args: stats (dict): The statistics dictionary (can contain tensors/nu
experiments/lerobot/src/lerobot/datasets/utils.py:293
↓ 8 callersMethod__init__
(self, config: VitConfig, device=None)
experiments/olmo/nn/image_vit.py:272
↓ 8 callersMethod_forward
Executes all processing steps and hooks in sequence. Args: transition: The initial `EnvTransition` object. Returns:
experiments/lerobot/src/lerobot/processor/pipeline.py:297
↓ 8 callersMethod_get_motor_id
Get CAN ID for a motor.
experiments/lerobot/src/lerobot/motors/damiao/damiao.py:827
↓ 8 callersMethod_load_config
Load configuration from local file or Hugging Face Hub. This method implements a super-simplified 3-way loading strategy: 1. **Local
experiments/lerobot/src/lerobot/processor/pipeline.py:589
↓ 8 callersFunction_make_tag_metadata
( *, action_key: str, state_keys: List[str], camera_keys: Optional[List[str]] = None, came
experiments/launch_scripts/data_mixtures.py:35
↓ 8 callersFunction_resolve_single_token_id
(tokenizer: Any, token: str)
experiments/olmo/hf_model/convert_molmoact2_to_hf.py:188
↓ 8 callersFunction_stats_payload
()
experiments/tests/test_hf_model_molmoact2.py:91
↓ 8 callersMethodaction
(self, action: PolicyAction)
experiments/lerobot/src/lerobot/processor/policy_robot_bridge.py:56
↓ 8 callersFunctionaggregate_datasets
Aggregates multiple LeRobot datasets into a single unified dataset. This is the main function that orchestrates the aggregation process by: 1
experiments/lerobot/src/lerobot/datasets/aggregate.py:233
↓ 8 callersFunctionaggregate_stats
Aggregate stats from multiple compute_stats outputs into a single set of stats. The final stats will have the union of all data keys from each of
experiments/lerobot/src/lerobot/datasets/compute_stats.py:605
↓ 8 callersMethodapply
Apply this rotation to a set of vectors. This is equivalent to applying the rotation matrix to the vectors: self.as_matrix()
experiments/lerobot/src/lerobot/utils/rotation.py:176
↓ 8 callersMethodapply_rotary_pos_emb
(self, pos_sin: torch.Tensor, pos_cos: torch.Tensor, t: torch.Tensor)
experiments/olmo/nn/llm.py:1361
↓ 8 callersFunctionauto_select_torch_device
Tries to select automatically a torch device.
experiments/lerobot/src/lerobot/utils/utils.py:40
↓ 8 callersFunctionbatch_pixels_to_patches
Reshape images of [n_images, h, w, 3] -> [n_images, n_patches, pixels_per_patch]
experiments/olmo/preprocessing/preprocessor_utils.py:107
↓ 8 callersFunctionbatch_to_transition
Convert a batch dictionary from a dataset/dataloader into an `EnvTransition`. This function maps recognized keys from a batch to the `EnvTra
experiments/lerobot/src/lerobot/processor/converters.py:328
↓ 8 callersMethodbuild
(cls, dxl_id: int, params: list[int], length: int, *args, **kwargs)
experiments/lerobot/tests/mocks/mock_dynamixel.py:67
↓ 8 callersMethodbuild_model
(self, device=None)
experiments/olmo/models/molmo/molmo.py:130
↓ 8 callersFunctionbytes_to_state_dict
(buffer: bytes)
experiments/lerobot/src/lerobot/transport/utils.py:122
↓ 8 callersFunctionclean_opt
(arg: str)
experiments/olmo/util.py:316
↓ 8 callersFunctioncompute_episode_stats
Compute comprehensive statistics for all features in an episode. Processes different data types appropriately: - Images/videos: Samples from
experiments/lerobot/src/lerobot/datasets/compute_stats.py:477
↓ 8 callersFunctioncompute_hash
Computes the hash of a string.
experiments/olmo/util.py:64
↓ 8 callersMethoddisconnect
(self)
experiments/lerobot/tests/mocks/mock_robot.py:132
↓ 8 callersMethodfrom_lerobot_dataset
Convert a LeRobotDataset into a ReplayBuffer. Args: lerobot_dataset (LeRobotDataset): The dataset to convert.
experiments/lerobot/src/lerobot/rl/buffer.py:415
↓ 8 callersFunctiongc_cuda
()
experiments/olmo/torch_util.py:212
↓ 8 callersMethodget_action_index
Get the current action consumption index. Returns: int: Index of the next action to be consumed.
experiments/lerobot/src/lerobot/policies/rtc/action_queue.py:105
↓ 8 callersFunctionget_dataset_by_name
(dataset_name, split)
experiments/olmo/data/get_dataset.py:70
↓ 8 callersFunctionget_hf_features_from_features
Convert a LeRobot features dictionary to a `datasets.Features` object. Args: features (dict): A LeRobot-style feature dictionary. Re
experiments/lerobot/src/lerobot/datasets/utils.py:563
↓ 8 callersMethodget_left_over
Get leftover original actions for RTC prev_chunk_left_over. These are the unconsumed actions from the current chunk, which will be us
experiments/lerobot/src/lerobot/policies/rtc/action_queue.py:113
↓ 8 callersFunctionget_policy_class
Retrieves a policy class by its registered name. This function uses dynamic imports to avoid loading all policy classes into memory at o
experiments/lerobot/src/lerobot/policies/factory.py:61
↓ 8 callersMethodget_statistics
Compute and return the statistics of the vectors processed so far. Args: quantiles: List of quantiles to compute (e.g., [0.01, 0.
experiments/lerobot/src/lerobot/datasets/compute_stats.py:94
↓ 8 callersMethodload
Load pre-processed formatted data from disk.
experiments/olmo/data/pixmo_datasets.py:1847
↓ 8 callersMethodload
(self)
experiments/olmo/data/spatial_datasets.py:1217
↓ 8 callersFunctionlog_extra_field
(field_name: str, field_value: Any)
experiments/olmo/util.py:87
↓ 8 callersMethodnormalize
(self, x)
experiments/olmo/data/robot_processing.py:252
↓ 8 callersMethodpredict_action_chunk
Predict a chunk of actions given environment observations.
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:1260
↓ 8 callersMethodrender
(self)
experiments/lerobot/src/lerobot/envs/libero.py:224
↓ 8 callersMethodreset
(self, seed=None, **kwargs)
experiments/lerobot/src/lerobot/envs/libero.py:296
↓ 8 callersFunctionresource_path
Returns an actual path for local or remote file, potentially downloading it if a copy doesn't exist locally yet.
experiments/olmo/io.py:64
↓ 8 callersMethodrun
(self, host: str, port: int, timeout_keep_alive: int = 0)
experiments/scripts/serve_policy.py:685
↓ 8 callersFunctionseeded_context
Set the seed when entering a context, and restore the prior random state at exit. Example usage: ``` a = random.random() # produces som
experiments/lerobot/src/lerobot/utils/random_utils.py:183
↓ 8 callersMethodset_half_turn_homings
Centre each motor range around its current position. The function computes and writes a homing offset such that the present position becomes
experiments/lerobot/src/lerobot/motors/motors_bus.py:762
↓ 8 callersMethodshutdown
(self)
examples/yam/camera_server.py:192
↓ 8 callersFunctiontimestamp_to_seconds
Convert MM:SS or SS timestamp to seconds
experiments/lerobot/src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:470
↓ 8 callersMethodunnormalize_action
(self, action, repo_id: Optional[str])
experiments/olmo/data/robot_processing.py:322
↓ 8 callersMethodupdate
Update the target model's parameters with an EMA step.
experiments/lerobot/src/lerobot/policies/tdmpc/modeling_tdmpc.py:511
↓ 7 callersMethod__init__
(self, config: DiffusionConfig)
experiments/lerobot/src/lerobot/policies/diffusion/modeling_diffusion.py:168
↓ 7 callersMethod__init__
( self, in_channels: int, hidden_channels: list[int], )
experiments/lerobot/src/lerobot/policies/vqbet/modeling_vqbet.py:890
↓ 7 callersMethod_apply_checkpoint
Helper method to apply gradient checkpointing if enabled.
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:615
↓ 7 callersFunction_get_gcs_client
()
experiments/olmo/io.py:583
↓ 7 callersMethod_id_to_model
(self, motor_id: int)
experiments/lerobot/src/lerobot/motors/motors_bus.py:396
↓ 7 callersMethod_id_to_name
(self, motor_id: int)
experiments/lerobot/src/lerobot/motors/motors_bus.py:399
↓ 7 callersMethod_is_error
(self, error: int)
experiments/lerobot/src/lerobot/motors/motors_bus.py:449
↓ 7 callersMethod_process_response
Decode a message and update the motor state cache.
experiments/lerobot/src/lerobot/motors/damiao/damiao.py:569
↓ 7 callersMethod_reshape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
experiments/lerobot/src/lerobot/policies/xvla/modeling_florence2.py:914
↓ 7 callersMethod_save_calibration
Helper to save calibration data to the specified file. Args: fpath (Path | None): Optional path to save the calibration
experiments/lerobot/src/lerobot/robots/robot.py:162
↓ 7 callersMethod_save_calibration
Helper to save calibration data to the specified file. Args: fpath (Path | None): Optional path to save the calibration
experiments/lerobot/src/lerobot/teleoperators/teleoperator.py:160
↓ 7 callersMethod_set_cached_annotated_tasks
( self, cache_key: Tuple[str, str], tasks_by_episode: Optional[Dict[int, Any]], )
experiments/olmo/data/lerobot_wrapper.py:1894
↓ 7 callersMethod_sync_read
( self, addr: int, length: int, motor_ids: list[int], *, num_r
experiments/lerobot/src/lerobot/motors/motors_bus.py:1157
↓ 7 callersFunction_tensor_shape
(tensor: Optional[torch.Tensor])
experiments/olmo/train/trainer.py:434
↓ 7 callersFunction_to_text
(value: Any)
experiments/lerobot/src/lerobot/policies/molmoact2/hf_backend.py:28
↓ 7 callersFunction_validate_clip
(clip, duration)
experiments/olmo/data/video_loader.py:385
↓ 7 callersMethodadd
Add a latency sample (seconds).
experiments/lerobot/src/lerobot/policies/rtc/latency_tracker.py:41
↓ 7 callersMethodattention
( self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, attention_b
experiments/olmo/nn/llm.py:1994
↓ 7 callersMethodbuild_for_format
(pointing_format: str="html-v1", format_output_timestamp=DefaultTimestampFormatter())
experiments/olmo/preprocessing/point_formatter.py:127
↓ 7 callersMethodbuild_preprocessor
Build a preprocessor that converts 'raw' image/text data from various tasks into tensors inputs/targets that can be passed to the mod
experiments/olmo/models/molmo/molmo.py:96
↓ 7 callersMethodbuild_tokenizer
Tokenizer this model uses
experiments/olmo/models/molmo/molmo.py:92
↓ 7 callersMethodcalculate_fps_metrics
Calculate average FPS vs target
experiments/lerobot/src/lerobot/async_inference/helpers.py:245
↓ 7 callersFunctioncdist
(x, y)
experiments/lerobot/src/lerobot/policies/vqbet/vqbet_utils.py:932
↓ 7 callersFunctionclose_learner_service_stub
(channel, server)
experiments/lerobot/tests/rl/test_learner_service.py:79
↓ 7 callersFunctioncompute_temporal_proportions
Compute dataset-level temporal proportions (priors) for each subtask. Implements SARM Paper Formula (1): ᾱ_k = (1/M) × Σ_i (L_{i,k} / T_i)
experiments/lerobot/src/lerobot/data_processing/sarm_annotations/subtask_annotation.py:103
↓ 7 callersFunctioncreate_default_config
( state_dim: int, continuous_action_dim: int, has_discrete_action: bool = False )
experiments/lerobot/tests/policies/test_sac_policy.py:176
↓ 7 callersFunctioncreate_empty_replay_buffer
( optimize_memory: bool = False, use_drq: bool = False, image_augmentation_function: Callable | No
experiments/lerobot/tests/utils/test_replay_buffer.py:42
↓ 7 callersFunctioncreate_learner_service_stub
( shutdown_event: Event, parameters_queue: Queue, transitions_queue: Queue, interactions_queue
experiments/lerobot/tests/rl/test_learner_service.py:43
↓ 7 callersFunctiondataset_to_policy_features
Convert dataset features to policy features. This function transforms the dataset's feature specification into a format that a policy can use
experiments/lerobot/src/lerobot/datasets/utils.py:696
↓ 7 callersFunctiondownload_pixmo_urls
Download urls from a PixMo dataset, return a map of urls->filename
experiments/olmo/data/download_urls.py:160
↓ 7 callersFunctionensure_safe_goal_position
Caps relative action target magnitude for safety.
experiments/lerobot/src/lerobot/robots/utils.py:83
↓ 7 callersMethodextract_points
(self, text, image_w, image_h)
experiments/olmo/preprocessing/point_formatter.py:53
↓ 7 callersMethodformat_video_points
Format video points for counting objects across frames.
experiments/olmo/models/molmo/data_formatter.py:1331
↓ 7 callersFunctionget_absolute_coordinates
Convert normalized coordinates to absolute pixel coordinates.
experiments/olmo/util.py:545
↓ 7 callersMethodget_action
(self)
experiments/lerobot/src/lerobot/async_inference/helpers.py:224
↓ 7 callersMethodget_action
( self, inputs: dict, )
experiments/lerobot/src/lerobot/policies/groot/groot_n1.py:309
↓ 7 callersFunctionget_answer_idx_from_letter
Extract answer index from answer string. Handles formats: 'A', 'A.', 'A. content', '(A)', '(A) content'
experiments/olmo/data/spatial_datasets.py:173
↓ 7 callersFunctionget_device_from_parameters
Get a module's device by checking one of its parameters. Note: assumes that all parameters have the same device
experiments/lerobot/src/lerobot/policies/utils.py:51
↓ 7 callersFunctionget_file_size_in_mb
Get file size on disk in megabytes. Args: file_path (Path): Path to the file.
experiments/lerobot/src/lerobot/datasets/utils.py:133
↓ 7 callersFunctionget_hf_access_token
()
experiments/olmo/util.py:50
↓ 7 callersMethodget_lr
(self, initial_lr: float, step: int, max_steps: int, group_name=None)
experiments/olmo/train/optim.py:385
↓ 7 callersMethodget_video_path
Get the appropriate video path, preferring extracted clips when available.
experiments/olmo/data/video_datasets.py:3204
↓ 7 callersFunctioninit_keyboard_listener
Initializes a non-blocking keyboard listener for real-time user interaction. This function sets up a listener for specific keys (right arrow
experiments/lerobot/src/lerobot/utils/control_utils.py:118
← previousnext →301–400 of 8,779, ranked by callers