MCPcopy Create free account

hub / github.com/Gen-Verse/OpenClaw-RL / functions

Functions10,561 in github.com/Gen-Verse/OpenClaw-RL

↓ 6 callersFunctionread_cell_value
(xlsx_file: str, sheet_name: str, coordinate: str)
gui-rl/desktop_env/evaluators/metrics/utils.py:286
↓ 6 callersFunctionrecv_tensor_from_previous_stage
Determine if peers are sending, and where in data structure to put received tensors. Return a boolean if the pipeline stage expects to
Megatron-LM/megatron/core/pipeline_parallel/schedules.py:1140
↓ 6 callersFunctionregister_default_strategy
Adds a given strategy to the registry of default strategies. Args: action (StrategyAction): specifies save/load and sharded/common
Megatron-LM/megatron/core/dist_checkpointing/strategies/base.py:59
↓ 6 callersMethodreset
Reset internal offset to the start and return self.
slime/slime/backends/megatron_utils/data.py:312
↓ 6 callersMethodresume
(self)
Megatron-LM/megatron/rl/server/api.py:21
↓ 6 callersMethodrow_parallel_linear
Which row parallel linear module the backend uses
Megatron-LM/megatron/core/models/backends.py:92
↓ 6 callersFunctionrun_evaluation
Run personalization evaluation for a scenario. Returns dict with scores, average, weight_version.
openclaw-rl/oel/eval/gsm8k_personal_agent.py:266
↓ 6 callersMethodrun_one_forward_step
The forward pass of the model for inference Args: inference_input (Dict[str, Any]): A dict containing the inputs for the VLM mode
Megatron-LM/megatron/core/inference/model_inference_wrappers/multimodal/vlm_inference_wrapper.py:155
↓ 6 callersMethodsave_model
(self, rollout_id, force_sync=False)
slime/slime/ray/train_actor.py:116
↓ 6 callersFunctionsave_traj
Save the trajectory of the agent to a file. Args: agent: The agent to save the trajectory of. path: The path to save the trajecto
swe-rl/mini-swe-agent/src/minisweagent/run/utils/save.py:22
↓ 6 callersMethodsend_backward_recv_backward
Batched recv from next rank and send to previous rank in pipeline.
Megatron-LM/megatron/core/pipeline_parallel/p2p_communication.py:598
↓ 6 callersFunctionset_ckpt_path
(ckpt_path)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_pipeline_parallel_layout.py:303
↓ 6 callersMethodset_loss_scale
set the scale of the aux loss. Args: scale (torch.Tensor): The scale value to set. Please ensure that the scale passed in
Megatron-LM/megatron/core/transformer/moe/moe_utils.py:214
↓ 6 callersMethodset_states
Set the rng states. For efficiency purposes, we do not check the size of seed for compatibility.
Megatron-LM/megatron/core/tensor_parallel/random.py:211
↓ 6 callersFunctionsetup
Setup the global config file.
swe-rl/mini-swe-agent/src/minisweagent/run/extra/config.py:57
↓ 6 callersMethodsharded_state_dict
(self, prefix='', sharded_offsets=(), metadata={})
Megatron-LM/examples/multimodal/nvlm/internvit.py:144
↓ 6 callersFunctionsharded_state_dict_default
Provides implementation for sharded_state_dict method for non-MegatronModules. Tries to call `module.sharded_state_dict` when possible, other
Megatron-LM/megatron/core/transformer/utils.py:209
↓ 6 callersFunctionshould_run_periodic_action
Return True when a periodic action (eval/save/checkpoint) should run. Args: rollout_id: The current rollout index (0-based).
slime/slime/utils/misc.py:73
↓ 6 callersMethodstate_dict
(self)
Megatron-LM/megatron/core/optimizer/optimizer.py:998
↓ 6 callersMethodstop_communication
Stop communication for the module.
Megatron-LM/megatron/core/distributed/fsdp/mcore_fsdp_adapter.py:289
↓ 6 callersFunctionstrip_ansi_codes
Remove ANSI escape sequences from text.
swe-rl/mini-swe-agent/tests/run/test_cli_integration.py:11
↓ 6 callersMethodto_dict
(self)
slime/slime/utils/types.py:118
↓ 6 callersFunctiontoken_permutation
(token_dispatcher, hidden_states, probs, indices)
Megatron-LM/tests/unit_tests/transformer/moe/test_token_dispatcher.py:19
↓ 6 callersFunctiontoken_unpermutation
(token_dispatcher, hidden_states)
Megatron-LM/tests/unit_tests/transformer/moe/test_token_dispatcher.py:28
↓ 6 callersMethodtokens_to_ids
Converts list of tokens to it's ids.
Megatron-LM/megatron/core/tokenizers/text/libraries/sentencepiece_tokenizer.py:263
↓ 6 callersMethodupdate_weights
(self)
slime/slime/ray/train_actor.py:120
↓ 6 callersFunctionvalidate_sharding_integrity
Validate if the ShardedTensors and ShardedObjects from multiple processes define correct sharding. Local ShardedTensors and ShardedObject metadat
Megatron-LM/megatron/core/dist_checkpointing/validation.py:409
↓ 6 callersMethodwait_bucket_ready
Wait for the bucket to be ready.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:3530
↓ 5 callersMethod__init__
Initialize self.
Megatron-LM/tools/retro/config_utils.py:163
↓ 5 callersFunction_all_to_all_cp2hp
Perform AlltoAll communication on a context parallel group, transform the input tensor from shape [global-sequence/context-parallel-size,
Megatron-LM/megatron/core/ssm/mamba_context_parallel.py:285
↓ 5 callersFunction_build_compose_up_error_message
( *, cmd: list[str], return_code: int | None = None, timeout: float | None = None, stdout:
terminal-rl/remote/docker_compose_utils.py:62
↓ 5 callersMethod_build_final_result
Build the final interaction result with all collected data. Args: res: InteractionResult instance to populate
slime/examples/tau-bench/trainable_agents.py:369
↓ 5 callersFunction_build_sharded_state_dict_metadata
Builds metadata used for sharded_state_dict versioning. The whole content metadata is passed to ``shared_state_dict`` model and optimizer methods
Megatron-LM/megatron/training/checkpointing.py:361
↓ 5 callersFunction_byte_to_gb
(n: int)
slime/slime/utils/memory_utils.py:31
↓ 5 callersFunction_check_mesh_ranks_and_group_ranks_are_consistent
(mesh_ranks, group_ranks)
Megatron-LM/megatron/core/distributed/fsdp/mcore_fsdp_adapter.py:405
↓ 5 callersFunction_create_transformer_block
( dtype=torch.bfloat16, hidden_size=4096, pg_collection=None )
Megatron-LM/tests/unit_tests/pipeline_parallel/test_bridge_communicator.py:28
↓ 5 callersFunction_ensure_var_is_initialized
Make sure the input variable is not None.
Megatron-LM/megatron/training/global_vars.py:277
↓ 5 callersMethod_execute_command
(command: list, return_output=False)
gui-rl/desktop_env/providers/vmware/provider.py:32
↓ 5 callersFunction_flatten_content
(content)
openclaw-tinker/api_server.py:50
↓ 5 callersFunction_format_error
(exc: BaseException)
terminal-rl/router_server.py:21
↓ 5 callersFunction_get_bwd_config
Helper function to lazy initialize the backward configuration.
Megatron-LM/megatron/core/fusions/linear_cross_entropy/blackwell/entry.py:61
↓ 5 callersMethod_get_model_param_range_map
Given a model param, get the index sub-range of the param that this data-parallel rank owns.
Megatron-LM/megatron/core/optimizer/distrib_optimizer.py:607
↓ 5 callersMethod_get_vm_uuid
(path_to_vm: str)
gui-rl/desktop_env/providers/virtualbox/provider.py:26
↓ 5 callersFunction_initialize_affine_weight_gpu
Initialize affine weight for model parallel on GPU.
Megatron-LM/megatron/core/tensor_parallel/layers.py:134
↓ 5 callersFunction_lease_proxy
(path: str, request: Request)
terminal-rl/router_server.py:300
↓ 5 callersFunction_log_stage_exception
( log_tag: str, stage: str, exc: Exception, exc_info: bool = True, )
terminal-rl/generate.py:57
↓ 5 callersMethod_maybe_submit_ready_samples
(self, session_id: str, force_drop_without_next_state: bool = False)
openclaw-rl/oel/openclaw_oel_api_server.py:1393
↓ 5 callersFunction_post_exec
(url: str, payload: dict, timeout: int = 300)
swe-rl/server/swe_env_pool_server.py:34
↓ 5 callersMethod_replace_param_with_distributed_if_needed
(self)
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/megatron_fsdp.py:1125
↓ 5 callersMethod_run_test_helper
Test fp8_param with gpt_model.
Megatron-LM/tests/unit_tests/test_fp8_param.py:174
↓ 5 callersMethod_safe_create_task
(self, coro)
openclaw-rl/oel/openclaw_oel_api_server.py:1591
↓ 5 callersMethod_tasd_to_state_dict
(self, *, algo, strict, validate_access_integrity, missing, unexpected)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_strict.py:101
↓ 5 callersFunction_tinker_generate
Send generation prompt to Tinker teacher model and return decoded text.
openclaw-tinker/scorers.py:189
↓ 5 callersMethod_truncate_for_packing
Truncate tokens and labels if they exceed packing sequence length.
Megatron-LM/examples/multimodal/dataset_helpers.py:202
↓ 5 callersFunction_zero_grad_group_helper
Zero out the gradient for a group of parameters. Note: copied from torch.optim.optimizer.
Megatron-LM/megatron/core/optimizer/optimizer.py:57
↓ 5 callersFunctionabort
(args: Namespace, rollout_id: int)
slime/slime/rollout/sglang_rollout.py:290
↓ 5 callersMethodadd_attributes
Utility to add more attributes to sampling params Use this method to pass in a custom dictionary to add more sampling parameter attributes.
Megatron-LM/megatron/core/inference/sampling_params.py:33
↓ 5 callersMethodadd_dummy_requests_parallel
Fast path to add dummy requests without allocating real KV blocks.
Megatron-LM/megatron/core/inference/contexts/dynamic_context.py:981
↓ 5 callersMethodadd_request
Add request to inference context. Args: request_id (int): Unique ID of request. prompt (Union[str, Tensor]): Prompt a
Megatron-LM/megatron/core/inference/engines/dynamic_engine.py:714
↓ 5 callersFunctionallocate_layers
Allocates layers according to the requested distribution of layer types.
Megatron-LM/megatron/core/ssm/mamba_hybrid_layer_allocation.py:95
↓ 5 callersFunctionappend_to_progress_log
Append given string to progress log.
Megatron-LM/megatron/training/utils.py:452
↓ 5 callersMethodasync_step
Wrapper for controller.generate_output_tokens_dynamic_batch(), to match vLLM API. Uses `asyncio` for continuous generation which allo
Megatron-LM/megatron/core/inference/engines/dynamic_engine.py:1214
↓ 5 callersFunctionbert_position_ids
(token_ids)
Megatron-LM/megatron/legacy/model/bert_model.py:36
↓ 5 callersFunctionbias_dropout_add
(x, bias, residual, prob, training)
Megatron-LM/megatron/legacy/model/transformer.py:844
↓ 5 callersMethodbuild_schedule_plan
Builds a computation schedule plan for the model. This function creates a schedule plan for a model chunk, including preprocessing, t
Megatron-LM/megatron/core/models/gpt/gpt_model.py:723
↓ 5 callersFunctioncalculate_brightness
(image)
gui-rl/desktop_env/evaluators/metrics/gimp.py:86
↓ 5 callersFunctioncheck
(group, world_size, rank)
Megatron-LM/megatron/legacy/mpu/tests/test_initialize.py:23
↓ 5 callersFunctioncheckpoint
Checkpoint a model or part of the model. This has been directly copied from torch.utils.checkpoint.
Megatron-LM/megatron/core/tensor_parallel/random.py:545
↓ 5 callersMethodclean_loss_in_tracker
Clear the mtp losses.
Megatron-LM/megatron/core/transformer/multi_token_prediction.py:345
↓ 5 callersMethodcolumn_parallel_layer_norm_linear
Which module for sequential layernorm and linear
Megatron-LM/megatron/core/models/backends.py:100
↓ 5 callersFunctioncommon_test_parallel_reconfiguration_e2e
Test model saving and loading with different TP/PP
Megatron-LM/tests/unit_tests/dist_checkpointing/models/common.py:52
↓ 5 callersMethodcompute_log_prob
( self, data_iterator: list[DataIterator], num_microbatches: list[int], store_
slime/slime/backends/megatron_utils/actor.py:594
↓ 5 callersMethodcompute_score
Take a response and a golden answer and return a score. Supports tagged or boxed answers. Uses the final answer in the response string to com
Megatron-LM/examples/rl/environments/math/math_agent.py:34
↓ 5 callersMethodconv1d
Performs a conv1d on one context parallel rank, using slices of the weight and bias from the convolution that would be run when cp_si
Megatron-LM/megatron/core/ssm/mamba_context_parallel.py:187
↓ 5 callersMethodconvert
Convert model weights to trtllm model weights This method goes through each layer in the model state dict and converts to equivalent trtllm m
Megatron-LM/megatron/core/export/trtllm/trtllm_weights_converter/single_device_trtllm_model_weights_converter.py:332
↓ 5 callersMethodcreate_test_args
( self, tp, cp, sequence_length, micro_batch_size, fp8=None, full_recompute=False )
Megatron-LM/tests/unit_tests/transformer/test_multi_token_prediction.py:178
↓ 5 callersMethoddecode
(self, tokens)
Megatron-LM/megatron/training/tokenizer/gpt2_tokenization.py:286
↓ 5 callersMethoddecoder
Megatron-LM/megatron/core/tokenizers/text/libraries/tiktoken_tokenizer.py:286
↓ 5 callersMethoddelete_cuda_graphs
Delete all CUDA graphs.
Megatron-LM/megatron/core/transformer/cuda_graphs.py:1944
↓ 5 callersFunctiondelete_instance_with_retry
Cross-process throttle + exponential backoff on 429 for DeleteInstance. Also treat NotFound as success (idempotent cleanup).
gui-rl/desktop_env/providers/volcengine/manager.py:135
↓ 5 callersMethoddetach
Detaches a tensor and stores it for backward computation.
Megatron-LM/megatron/core/models/gpt/fine_grained_callables.py:265
↓ 5 callersMethoddetokenize
(self, ids)
Megatron-LM/megatron/training/tokenizer/tokenizer.py:827
↓ 5 callersMethodelapsed
Calculates the elapsed time and restarts timer. Args: reset (bool, optional): Resets timer before restarting. Defaults to True.
Megatron-LM/megatron/core/timers.py:177
↓ 5 callersFunctionenable_forward_pre_hook
(model_chunks)
Megatron-LM/megatron/training/training.py:1858
↓ 5 callersFunctionfind_matching_values
Return matching values in a single list Args: x (Union[dict, list]) : state dict to process. Top-level argument must be a dict or list
Megatron-LM/tests/unit_tests/dist_checkpointing/utils.py:228
↓ 5 callersMethodflops
(self)
Megatron-LM/megatron/legacy/model/vision/esvit_swin_backbone.py:458
↓ 5 callersFunctionforward_only
Run forward passes only and collect non-loss outputs (e.g., logprobs). The model is put into evaluation mode, a forward-only pipeline pass is
slime/slime/backends/megatron_utils/model.py:153
↓ 5 callersMethodfrom_sh_ten
Constructor which turns a ShardedTensor into CheckpointableShardedTensor Args: sh_ten (ShardedTensor): a sharded tensor to wrap
Megatron-LM/megatron/core/dist_checkpointing/strategies/checkpointable.py:83
↓ 5 callersFunctiongather_uneven_dtensor_to_full_tensor
Gather an unevenly sharded DTensor distributed across multiple ranks, reconstructing the full (unsharded) tensor on each rank. This func
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/uneven_dtensor.py:250
↓ 5 callersFunctiongenerate_state_dict
Generate a state dict from given model, optimizer, scheduler, rng state and others.
Megatron-LM/megatron/training/checkpointing.py:812
↓ 5 callersMethodget_D
Returns a slice of D relevant to the current context parallel rank
Megatron-LM/megatron/core/ssm/mamba_context_parallel.py:230
↓ 5 callersFunctionget_active_url_from_accessTree
Playwright cannot get the url of active tab directly, so we need to use accessibility tree to get the active tab info. This
gui-rl/desktop_env/evaluators/getters/chrome.py:710
↓ 5 callersMethodget_batch_for_context_window
Returns the inference data given context window This function gets called iteratively in a loop . Given the start and end context pos
Megatron-LM/megatron/core/inference/model_inference_wrappers/t5/t5_inference_wrapper.py:149
↓ 5 callersFunctionget_bin_path
Get the path to the data file from the prefix Args: path_prefix (str): The prefix Returns: str: The path to the data file
Megatron-LM/megatron/core/datasets/indexed_dataset.py:944
↓ 5 callersFunctionget_capacity
Calculate the capacity of each expert. Args: num_tokens (int): num of the input tokens. num_experts (int): num of the expert
Megatron-LM/megatron/core/transformer/moe/moe_utils.py:155
↓ 5 callersFunctionget_current_review_stage
Get the current review stage of the MR.
Megatron-LM/tests/test_utils/python_scripts/auto_reminder.py:99
↓ 5 callersFunctionget_environment_class
(spec: str)
swe-rl/mini-swe-agent/src/minisweagent/environments/__init__.py:17
↓ 5 callersMethodget_fsdp_buffer
Get the FSDP buffer for the given bucket ID.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:3076
↓ 5 callersFunctionget_gitlab_handle
()
Megatron-LM/tests/test_utils/python_scripts/dashboard.py:19
↓ 5 callersMethodget_grad_stats_parallel_group
(self)
Megatron-LM/megatron/core/optimizer/optimizer.py:1262
← previousnext →601–700 of 10,561, ranked by callers