MCPcopy Create free account

hub / github.com/allenai/molmoact2 / functions

Functions8,779 in github.com/allenai/molmoact2

↓ 7 callersFunctionlearner_service_client
Returns a client for the learner service. GRPC uses HTTP/2, which is a binary protocol and multiplexes requests over a single connection.
experiments/lerobot/src/lerobot/rl/actor.py:438
↓ 7 callersMethodload
(self)
experiments/olmo/data/vixmo_datasets.py:1512
↓ 7 callersMethodload_state_dict
Loads normalization statistics from a flat state dictionary. This enables loading stats from safetensors files during from_pretraine
experiments/lerobot/src/lerobot/policies/groot/processor_groot.py:416
↓ 7 callersFunctionmake_dataset
Handles the logic of setting up delta timestamps and image transforms before creating a dataset. Args: cfg (TrainPipelineConfig): A Train
experiments/lerobot/src/lerobot/datasets/factory.py:71
↓ 7 callersFunctionmake_default_teleop_action_processor
()
experiments/lerobot/src/lerobot/processor/factory.py:27
↓ 7 callersFunctionmake_pi0_pre_post_processors
Constructs pre-processor and post-processor pipelines for the PI0 policy. The pre-processing pipeline prepares input data for the model by:
experiments/lerobot/src/lerobot/policies/pi0/processor_pi0.py:97
↓ 7 callersFunctionmake_smolvla_pre_post_processors
Constructs pre-processor and post-processor pipelines for the SmolVLA policy. The pre-processing pipeline prepares input data for the model
experiments/lerobot/src/lerobot/policies/smolvla/processor_smolvla.py:39
↓ 7 callersFunctionmerge_datasets
Merge multiple LeRobotDatasets into a single dataset. This is a wrapper around the aggregate_datasets functionality with a cleaner API. Args
experiments/lerobot/src/lerobot/datasets/dataset_tools.py:235
↓ 7 callersFunctionmodify_features
Modify a LeRobotDataset by adding and/or removing features in a single pass. This is the most efficient way to modify features, as it only copies
experiments/lerobot/src/lerobot/datasets/dataset_tools.py:275
↓ 7 callersFunctionmove_cursor_up
Move the cursor up by a specified number of lines.
experiments/lerobot/src/lerobot/utils/utils.py:272
↓ 7 callersFunctionparse_raw16
(line: bytes)
experiments/lerobot/src/lerobot/teleoperators/unitree_g1/exo_serial.py:29
↓ 7 callersMethodpredict_action_chunk
Predict a chunk of actions given environment observations.
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:1231
↓ 7 callersFunctionprepare_torchrun_environment
()
experiments/olmo/util.py:274
↓ 7 callersFunctionpreprocess_observation
Convert environment observation to LeRobot format observation. Args: observation: Dictionary of observation batches from a Gym vector envi
experiments/lerobot/src/lerobot/envs/utils.py:49
↓ 7 callersFunctionraw_observation_to_observation
( raw_observation: RawObservation, lerobot_features: dict[str, dict], policy_image_features: dict[
experiments/lerobot/src/lerobot/async_inference/helpers.py:88
↓ 7 callersMethodrecord_ranges_of_motion
Interactively record the min/max encoder values of each motor. Move the joints by hand (with torque disabled) while the method streams live p
experiments/lerobot/src/lerobot/motors/motors_bus.py:790
↓ 7 callersFunctionregister_third_party_plugins
Discover and import third-party LeRobot plugins so they can register themselves. This function uses `importlib.metadata` to find packages in
experiments/lerobot/src/lerobot/utils/import_utils.py:146
↓ 7 callersMethodreset_parameters
(self)
experiments/olmo/nn/vision_backbone.py:192
↓ 7 callersFunctionresolve_hf_checkpoint_ref
(path: PathOrStr)
experiments/olmo/util.py:623
↓ 7 callersMethodresolve_new_tokens_for_both_input_and_output
(self)
experiments/olmo/tokenizer.py:305
↓ 7 callersFunctionselect_mc_option
Selects a multiple-choice option based on the model output The output is should exactly match one of the option, but contains some heuri
experiments/olmo/eval/vqa.py:118
↓ 7 callersFunctionset_seed_all
Set random seed for all RNG sources to ensure reproducibility.
experiments/lerobot/tests/policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py:69
↓ 7 callersMethodstart
Start the controller and initialize resources.
experiments/lerobot/src/lerobot/teleoperators/gamepad/gamepad_utils.py:43
↓ 7 callersMethodstate_dict
Returns the state of the step (e.g., learned parameters, running means). Returns: A dictionary mapping state names to tensors.
experiments/lerobot/src/lerobot/processor/pipeline.py:192
↓ 7 callersMethodstub
(self, *, name=None, **kwargs)
experiments/lerobot/tests/mocks/mock_dynamixel.py:450
↓ 7 callersMethodstub
(self, *, name=None, **kwargs)
experiments/lerobot/tests/mocks/mock_feetech.py:303
↓ 7 callersMethodsync_read
Read the same value from multiple motors simultaneously.
experiments/lerobot/src/lerobot/motors/damiao/damiao.py:638
↓ 7 callersFunctiontemporal_proportions_to_breakpoints
Convert temporal proportions to cumulative breakpoints for normalization.
experiments/lerobot/src/lerobot/policies/sarm/sarm_utils.py:214
↓ 7 callersFunctiontmp_json_file
Writes `data` to a temporary JSON file and returns the file's path.
experiments/lerobot/tests/utils/test_io_utils.py:27
↓ 7 callersMethodto_dict
(self)
experiments/lerobot/src/lerobot/configs/train.py:159
↓ 7 callersMethodtokenize_and_interleave
Build a batch by interleaving the text tokens from tokenizing `message_list` and the multi-modal tokens from `multi_model_tokens`
experiments/olmo/preprocessing/text_preprocessor.py:196
↓ 7 callersMethodtorque_disabled
Context-manager that guarantees torque is re-enabled. This helper is useful to temporarily disable torque when configuring motors. E
experiments/lerobot/src/lerobot/motors/motors_bus.py:664
↓ 7 callersMethodtrain
Set training mode for augmentation decisions.
experiments/lerobot/src/lerobot/policies/sarm/processor_sarm.py:389
↓ 7 callersMethodtransform_features
( self, features: dict[PipelineFeatureType, dict[str, PolicyFeature]] )
experiments/lerobot/src/lerobot/processor/normalize_processor.py:468
↓ 7 callersMethodvalidate
(self)
experiments/lerobot/src/lerobot/configs/train.py:84
↓ 7 callersMethodwait_called
(self, timeout: float = 1.0)
experiments/lerobot/tests/mocks/mock_serial_patch.py:42
↓ 7 callersFunctionwrite_tasks
(tasks: pandas.DataFrame, local_dir: Path)
experiments/lerobot/src/lerobot/datasets/utils.py:334
↓ 6 callersMethod__init__
(self, split, multi_question=False, sample=None)
experiments/olmo/data/academic_datasets_manual.py:56
↓ 6 callersMethod__init__
(self, config: ACTConfig)
experiments/lerobot/src/lerobot/policies/act/modeling_act.py:291
↓ 6 callersMethod__init__
(self)
experiments/lerobot/src/lerobot/policies/xvla/action_hub.py:71
↓ 6 callersFunction_agg_from_list
(xs)
experiments/lerobot/src/lerobot/scripts/lerobot_eval.py:771
↓ 6 callersMethod_apply_checkpoint
Helper method to apply gradient checkpointing if enabled.
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:611
↓ 6 callersFunction_as_array
(value, dtype=None)
experiments/olmo/data/dynamic_packer.py:67
↓ 6 callersFunction_assert_type_and_shape
Validate that all statistics have correct types and shapes. Args: stats_list: List of statistics dictionaries to validate Raises:
experiments/lerobot/src/lerobot/datasets/compute_stats.py:550
↓ 6 callersMethod_build_model_inputs
(self, batch: dict[str, Tensor])
experiments/lerobot/src/lerobot/policies/xvla/modeling_xvla.py:372
↓ 6 callersMethod_build_send_fn
(packet: bytes, num_invalid_try: int = 0)
experiments/lerobot/tests/mocks/mock_dynamixel.py:583
↓ 6 callersMethod_build_send_fn
(packet: bytes, num_invalid_try: int = 0)
experiments/lerobot/tests/mocks/mock_feetech.py:431
↓ 6 callersFunction_cache_seq_len_int
(past_key_values: Optional[Cache])
experiments/olmo/hf_model/inference.py:64
↓ 6 callersFunction_clone_state_value
(value: Any)
experiments/scripts/serve_policy.py:250
↓ 6 callersMethod_close_writer
Close and cleanup the parquet writer if it exists.
experiments/lerobot/src/lerobot/datasets/lerobot_dataset.py:783
↓ 6 callersFunction_find_nested_value
(value: Any, key: str)
experiments/lerobot/src/lerobot/policies/molmoact2/modeling_molmoact2.py:105
↓ 6 callersFunction_gated_residual
Gated residual: x + y when gate is None, else x + y * gate.
experiments/lerobot/src/lerobot/policies/pi_gemma.py:54
↓ 6 callersMethod_get_motors_list
Convert motor specification to list of motor names.
experiments/lerobot/src/lerobot/motors/robstride/robstride.py:949
↓ 6 callersMethod_get_scale
Get scale factor from example.
experiments/olmo/models/molmo/data_formatter.py:832
↓ 6 callersFunction_image_to_uint8
(array: np.ndarray)
experiments/olmo/data/lerobot_wrapper.py:1104
↓ 6 callersFunction_parse_hub_url
(hub_uri: str)
experiments/lerobot/src/lerobot/envs/utils.py:241
↓ 6 callersMethod_pos_from_val
(self, v)
experiments/lerobot/src/lerobot/motors/calibration_gui.py:86
↓ 6 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/modeling_pi0.py:1167
↓ 6 callersMethod_recv_motor_response
Receive a response from a motor. Args: expected_recv_id: If provided, only return messages from this CAN ID
experiments/lerobot/src/lerobot/motors/robstride/robstride.py:434
↓ 6 callersMethod_set_cached_task_to_episode_pool
( self, cache_key: Tuple[str, str], pool_by_task_index: Optional[Dict[int, np.ndarray]
experiments/olmo/data/lerobot_wrapper.py:1903
↓ 6 callersMethod_set_description
(self, description)
experiments/olmo/train/trainer.py:241
↓ 6 callersFunction_slice_action_dim
(actions: torch.Tensor, action_dim: int)
experiments/lerobot/src/lerobot/policies/molmoact2/modeling_molmoact2.py:271
↓ 6 callersMethod_validate_norm_tag_for_processor
( robot_processor: Any, norm_tag: Optional[str], *, context: str, )
experiments/lerobot/src/lerobot/policies/molmoact2/modeling_molmoact2.py:550
↓ 6 callersMethodbuild
(self, params: OptimizerParams)
experiments/lerobot/src/lerobot/optim/optimizers.py:124
↓ 6 callersFunctionbuild_embedded_image
Turns an image into a string that can be used as a src in html images
experiments/olmo/html_utils.py:461
↓ 6 callersFunctionbytes_to_python_object
(buffer: bytes)
experiments/lerobot/src/lerobot/transport/utils.py:132
↓ 6 callersFunctionbytes_to_transitions
(buffer: bytes)
experiments/lerobot/src/lerobot/transport/utils.py:140
↓ 6 callersFunctioncheck_delta_timestamps
Check if delta timestamps are multiples of 1/fps +/- tolerance. This ensures that adding these delta timestamps to any existing timestamp in
experiments/lerobot/src/lerobot/datasets/utils.py:833
↓ 6 callersFunctioncreate_config_with_visual_input
( state_dim: int, continuous_action_dim: int, has_discrete_action: bool = False )
experiments/lerobot/tests/policies/test_sac_policy.py:201
↓ 6 callersFunctioncreate_default_config
Create a default SmolVLA configuration for testing.
experiments/lerobot/tests/processor/test_smolvla_processor.py:59
↓ 6 callersFunctioncreate_dummy_data
Create dummy data for testing both implementations.
experiments/lerobot/tests/policies/pi0_fast/test_pi0_fast_original_vs_lerobot.py:131
↓ 6 callersMethoddecode
(self, token_bins, *, time_horizon, action_dim)
experiments/tests/test_hf_model_molmoact2.py:316
↓ 6 callersMethoddenoise_step
Apply one denoising step of the noise `x_t` at a given timestep.
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:893
↓ 6 callersMethoddevice
(self)
experiments/olmo/hf_model/modeling_molmoact2.py:2827
↓ 6 callersFunctiondict_properties
()
experiments/lerobot/tests/utils/test_replay_buffer.py:156
↓ 6 callersFunctionencode_sign_magnitude
https://en.wikipedia.org/wiki/Signed_number_representations#Sign%E2%80%93magnitude
experiments/lerobot/src/lerobot/motors/encoding_utils.py:16
↓ 6 callersFunctionencode_twos_complement
https://en.wikipedia.org/wiki/Signed_number_representations#Two%27s_complement
experiments/lerobot/src/lerobot/motors/encoding_utils.py:39
↓ 6 callersFunctionestablish_learner_connection
Establish a connection with the learner. Args: stub (services_pb2_grpc.LearnerServiceStub): The stub to use for the connection. s
experiments/lerobot/src/lerobot/rl/actor.py:407
↓ 6 callersFunctionextract_points
(text, image_w, image_h)
experiments/olmo/preprocessing/point_formatter.py:69
↓ 6 callersFunctionflatten_lists
(xss)
experiments/olmo/util.py:242
↓ 6 callersMethodforward
Run the batch through the model and compute the loss for training. Args: batch: Training batch containing observations and action
experiments/lerobot/src/lerobot/policies/pi0/modeling_pi0.py:1278
↓ 6 callersMethodforward
Run the batch through the model and compute the loss for training. Args: batch: Training batch containing observations and action
experiments/lerobot/src/lerobot/policies/pi05/modeling_pi05.py:1248
↓ 6 callersMethodgenerate
(self, input_ids, inputs_embeds=None, pixel_values=None, **kwargs)
experiments/lerobot/src/lerobot/policies/xvla/modeling_florence2.py:2703
↓ 6 callersMethodgenerate_actions
( self, input_ids: torch.LongTensor, image_input: torch.FloatTensor, image_mas
experiments/lerobot/src/lerobot/policies/xvla/modeling_xvla.py:232
↓ 6 callersFunctionget_bytes_range
Get a range of bytes from a local or remote file. :param source: Path/URL to the file. :param bytes_start: Byte offset to start at.
experiments/olmo/io.py:131
↓ 6 callersMethodget_candidate_sampling_fps
Get candidate sampling fps values for current video fps and dataset sampling fps.
experiments/olmo/data/video_object_tracking_datasets.py:395
↓ 6 callersMethodget_difficulty
(self, example_id)
experiments/olmo/data/video_datasets.py:212
↓ 6 callersFunctionget_dp_process_group
Get the data parallel process group associated with a ``DeviceMesh`` created from :func:`build_world_mesh()`. Like :func:`get_dp_mesh()`
experiments/olmo/dist_util.py:409
↓ 6 callersFunctionget_lerobot_training_data_plan
( name: str, *, style_robot_action: float = 1.0, style_robot_depth: float = 0.0, style_rob
experiments/launch_scripts/lerobot_utils/train_plan.py:305
↓ 6 callersFunctionget_local_world_size
()
experiments/olmo/torch_util.py:83
↓ 6 callersFunctionget_safe_torch_device
Given a string, return a torch.device with checks on whether the device is available.
experiments/lerobot/src/lerobot/utils/utils.py:57
↓ 6 callersFunctioninfo_factory
(features_factory)
experiments/lerobot/tests/fixtures/dataset_factories.py:151
↓ 6 callersFunctioninit_normal
( module: Union[nn.Linear, nn.Embedding], std: float, init_cutoff_factor: Optional[float] = None,
experiments/olmo/nn/llm.py:260
↓ 6 callersFunctioninterpolate_progress
Linearly interpolate values to fill in gaps (robust to NaNs / edge cases).
experiments/lerobot/src/lerobot/policies/sarm/compute_rabc_weights.py:443
↓ 6 callersFunctionlayernorm_forward
call layernorm and return hidden states and gate if cond is not None, use conditional norm otherwise, use normal gemma norm
experiments/lerobot/src/lerobot/policies/pi_gemma.py:69
↓ 6 callersMethodload
(self)
experiments/olmo/data/academic_datasets_manual.py:85
↓ 6 callersFunctionload_and_compare
(i)
experiments/lerobot/tests/datasets/test_datasets.py:555
↓ 6 callersMethodload_state_dict
Loads the step's state from a state dictionary. Args: state: A dictionary of state tensors.
experiments/lerobot/src/lerobot/processor/pipeline.py:200
↓ 6 callersFunctionload_video_av_noseek
Load a video frames by decoding all frames with pyav More robust than `load_video_decord` but can by much slower for long videos
experiments/olmo/data/video_loader.py:533
↓ 6 callersFunctionmake_optimizers
Create optimizers for the SAC policy.
experiments/lerobot/tests/policies/test_sac_policy.py:141
← previousnext →401–500 of 8,779, ranked by callers