MCPcopy Create free account

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

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

↓ 7 callersMethodgraphs_created
Returns whether the CUDA Graphs have been created.
Megatron-LM/megatron/core/transformer/cuda_graphs.py:1507
↓ 7 callersFunctioninit_tracking
(args, primary: bool = True, **kwargs)
slime/slime/utils/logging_utils.py:27
↓ 7 callersMethodis_dynamic_batching
Return `True` if context uses dynamic batching.
Megatron-LM/megatron/core/inference/contexts/base_context.py:26
↓ 7 callersFunctionis_graph_capturing
Query if currently capturing.
Megatron-LM/megatron/core/transformer/cuda_graphs.py:77
↓ 7 callersMethodis_initialized
Checks if the internal RNG state has been set wirth set_states().
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:285
↓ 7 callersFunctionis_vp_first_stage
Return True if in the first virtual pipeline model-parallel stage, False otherwise.
Megatron-LM/megatron/core/pipeline_parallel/utils.py:23
↓ 7 callersMethodparse_action
Parse the action from the message. Returns the action.
swe-rl/mini-swe-agent/src/minisweagent/agents/default.py:107
↓ 7 callersMethodparse_config_dict
Parse config dictionary and return a schema instance. Expected config format: {"kitchen_config_type": "QLinearParams", "recipe_idx"
Megatron-LM/megatron/core/extensions/kitchen.py:62
↓ 7 callersFunctionqueue_put
(name, msg)
Megatron-LM/tools/checkpoint/loader_legacy.py:253
↓ 7 callersMethodrecv
(self, *a, **kw)
slime/slime/utils/reloadable_process_group.py:235
↓ 7 callersMethodrender_template
(self, template: str, **kwargs)
swe-rl/mini-swe-agent/src/minisweagent/agents/default.py:64
↓ 7 callersFunctionretro_makedir
Make a directory, conditional on not being in validation mode. Args: config (RetroPreprocessingConfig): Retro preprocessing config.
Megatron-LM/megatron/core/datasets/retro/utils.py:56
↓ 7 callersFunctionsave_checkpoint_and_time
( iteration, model, optimizer, opt_param_scheduler, num_floating_point_operations_so_far,
Megatron-LM/megatron/training/training.py:1870
↓ 7 callersFunctionshard_buffer
Shard buffer into data_parallel_world_size chunks of equal size.
Megatron-LM/megatron/core/distributed/param_and_grad_buffer.py:78
↓ 7 callersMethodshared_embedding_or_output_weight
(self)
Megatron-LM/megatron/legacy/model/module.py:36
↓ 7 callersMethodshared_embedding_or_output_weight
Function to share the input embeddings and output logit weights.
Megatron-LM/megatron/core/models/T5/t5_model.py:467
↓ 7 callersFunctionsimple_generate
A simple generate function without using KV-cache.
Megatron-LM/megatron/post_training/generate.py:15
↓ 7 callersMethodsymbolic
Symbolic function for tracing.
Megatron-LM/megatron/core/tensor_parallel/mappings.py:201
↓ 7 callersMethodtokenize_conversation
Convert a conversation to tokens. Args: conversation (List[Dict]): Sequence of system/user/assistant messages. Mu
Megatron-LM/megatron/training/tokenizer/sft_tokenizer.py:67
↓ 7 callersFunctiontrain_step
Single training step.
Megatron-LM/megatron/training/training.py:1378
↓ 7 callersFunctionwarn_rank_0
If distributed is initialized or rank is specified, warn only on rank 0.
Megatron-LM/megatron/training/utils.py:405
↓ 7 callersMethodzero_grad_buffer
Zeros out all grad buffers. Needs to be called at the beginning of each training iteration.
Megatron-LM/megatron/core/distributed/data_parallel_base.py:60
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
Megatron-LM/megatron/legacy/model/vision/esvit_swin_backbone.py:26
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
Megatron-LM/megatron/legacy/model/vision/swin_backbone.py:20
↓ 6 callersMethod_append_score_record
(self, record: dict)
openclaw-tinker/api_server.py:322
↓ 6 callersMethod_communicate_shapes
Communicate tensor shapes between sender and receiver ranks in the bridge. This is used to communicate tensor shapes before actual tensor com
Megatron-LM/megatron/core/pipeline_parallel/bridge_communicator.py:789
↓ 6 callersFunction_expand_key_value
Get value from src_dict according to the key, Copy and expand value to dist_dict with new key. The new key is generated by fo
Megatron-LM/megatron/core/transformer/moe/upcycling_utils.py:241
↓ 6 callersFunction_gather_along_last_dim
Gather tensors and concatinate along the last dimension.
Megatron-LM/megatron/core/tensor_parallel/mappings.py:80
↓ 6 callersMethod_get_backend
(self, *a, **kw)
slime/slime/utils/reloadable_process_group.py:250
↓ 6 callersFunction_get_cuda_rng_state
Return the random number generator state of the specified GPU. Arguments: device (int): The gpu to retrieve the rng state clone (
Megatron-LM/megatron/core/tensor_parallel/random.py:41
↓ 6 callersFunction_is_fsdp_wrapped_module
(instance)
Megatron-LM/tests/unit_tests/distributed/test_torch_fully_sharded_parallel.py:64
↓ 6 callersFunction_is_s3_path
Ascertain whether a path is in S3 Args: path (str): The path Returns: bool: True if the path is in S3, False otherwise
Megatron-LM/megatron/core/datasets/object_storage_utils.py:82
↓ 6 callersMethod_log_validation_error_to_file
( self, status: RerunValidationStatus, result: Any, message: str )
Megatron-LM/megatron/core/rerun_state_machine.py:946
↓ 6 callersFunction_match_value_to_rule
Args: value (V): value to match rule (Dict[str, Union[str, V]]): rule dict like { "method": str
gui-rl/desktop_env/evaluators/metrics/utils.py:712
↓ 6 callersMethod_order_dims
r"""Reorder dims based on the order of self.dim_names
Megatron-LM/megatron/core/hyper_comm_grid.py:225
↓ 6 callersMethod_post
(self, path: str, payload: dict[str, Any], max_retries: int, request_timeout: float | None
swe-rl/swe_env_client.py:31
↓ 6 callersMethod_sanity_check_attention_and_get_attn_mask_dimension
We do some checks and return attention mask dimensions for self attention Transformer engine library underwent a lot of change. So we need to
Megatron-LM/megatron/core/models/bert/bert_model.py:166
↓ 6 callersFunction_set_cuda_rng_state
Sets the random number generator state of the current GPU. Arguments: new_state (torch.ByteTensor): The desired state device (int
Megatron-LM/megatron/core/tensor_parallel/random.py:72
↓ 6 callersMethod_switch_model
(self, target_tag: str)
slime/slime/backends/megatron_utils/actor.py:510
↓ 6 callersFunction_vocab_size_with_padding
Pad vocab size so it is divisible by model parallel size and still having GPU friendly size.
Megatron-LM/megatron/training/tokenizer/tokenizer.py:110
↓ 6 callersMethodadd_event
Add event.
Megatron-LM/megatron/core/inference/inference_request.py:333
↓ 6 callersMethodagenerate
( self, request: InferenceRequest )
Megatron-LM/megatron/rl/inference/inference_interface.py:57
↓ 6 callersMethodapply_chat_template
Applies tokenizer's chat template.
Megatron-LM/megatron/core/tokenizers/base_tokenizer.py:46
↓ 6 callersMethodbackward_dw
Execute weight gradient computation
Megatron-LM/megatron/core/transformer/multi_latent_attention.py:981
↓ 6 callersFunctionbroadcast_from_last_pipeline_stage
Broadcast a tensor from last pipeline stage to all ranks. Args: size: Expected tensor size dtype: Expected tensor dtype t
Megatron-LM/megatron/core/inference/communication_utils.py:40
↓ 6 callersFunctionbroadcast_tensor
Given size and type of a tensor on all ranks and the tensor value only on a specific rank, broadcast from that rank to all other ranks. Args:
Megatron-LM/megatron/core/inference/communication_utils.py:145
↓ 6 callersFunctionbuild_data
Creates a random tensor for testing purposes. Returns: torch.Tensor: A random tensor of shape (1024, 1, 1024) with bfloat16 dtype
Megatron-LM/tests/unit_tests/a2a_overlap/utils.py:45
↓ 6 callersMethodclip_qk
QK Clipping is a technique to clip the query and key attention logits to prevent the attention logits from exploding. This function i
Megatron-LM/megatron/core/transformer/attention.py:1284
↓ 6 callersMethodclip_qk
QK Clipping is a technique to clip the query and key attention logits to prevent the attention logits from exploding. Per MuonClip us
Megatron-LM/megatron/core/transformer/multi_latent_attention.py:1012
↓ 6 callersFunctioncompare_docx_files
(file1, file2, **options)
gui-rl/desktop_env/evaluators/metrics/docs.py:159
↓ 6 callersFunctioncompute_rollout_step
(args, rollout_id)
slime/slime/utils/metric_utils.py:120
↓ 6 callersMethodconvert_tokens_to_ids
Convert tokens to IDs.
Megatron-LM/megatron/training/tokenizer/multimodal_tokenizer.py:305
↓ 6 callersFunctiondict_add_prefix
(d: dict[str, Any], prefix: str)
slime/slime/utils/metric_utils.py:10
↓ 6 callersFunctiondisable_forward_pre_hook
(model_chunks, param_sync=True)
Megatron-LM/megatron/training/training.py:1864
↓ 6 callersFunctionenable_grad_sync
Enable asynchronous grad reductions
Megatron-LM/megatron/core/pipeline_parallel/schedules.py:989
↓ 6 callersMethodencode
(self, text: str)
terminal-rl/agent/camel_agent.py:229
↓ 6 callersMethodencode
Encode data batch into a list of tensors. Args: data_batch (Dict): Dictionary containing input data Retu
Megatron-LM/megatron/core/models/mimo/submodules/base.py:137
↓ 6 callersMethodencode
(self, text)
Megatron-LM/megatron/training/tokenizer/gpt2_tokenization.py:283
↓ 6 callersFunctionencode_image_for_rollout_engine
Load an image from path, ensure RGB, encode as PNG base64 string.
slime/slime/utils/processing_utils.py:47
↓ 6 callersMethodencoder
(self)
Megatron-LM/megatron/training/tokenizer/tokenizer.py:810
↓ 6 callersFunctionensure_directory_exists
Build filename's path if it does not already exists.
Megatron-LM/megatron/training/checkpointing.py:131
↓ 6 callersFunctioneval_rollout
(args: Namespace, rollout_id: int)
slime/slime/rollout/sglang_rollout.py:427
↓ 6 callersMethodfetch_bucket
Fetch a communication buffer for data-parallel operations. The size of the bucket is defined by the `DataParallelBuffer` instance.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:904
↓ 6 callersMethodflush
Flush all staged chunks to the backward queue in reverse order.
Megatron-LM/megatron/core/pipeline_parallel/fine_grained_activation_offload.py:72
↓ 6 callersFunctionformat_mem_bytes
Convert a byte count to a human-readable string in tb, gb, mb, kb, or bytes.
Megatron-LM/megatron/core/inference/engines/dynamic_engine.py:89
↓ 6 callersMethodfree_bucket_storage
Release the storage of a temporary communication bucket. If the bucket is temporary, this method frees its storage.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:955
↓ 6 callersMethodfreeze
Freeze model modules. Make specific modules non-trainable by setting requires_grad to False. Args: freeze_language_model
Megatron-LM/megatron/core/models/multimodal/llava_model.py:406
↓ 6 callersMethodget_added_index_path
Get file path to index that has been populated with vectors. Args: config (RetroPreprocessingConfig): Retro preprocessing config.
Megatron-LM/megatron/core/datasets/retro/index/index.py:88
↓ 6 callersFunctionget_context_parallel_group
Get the context-parallel group the caller rank belongs to.
Megatron-LM/megatron/core/parallel_state.py:1419
↓ 6 callersFunctionget_default_pg_collection
Get the default process groups for MoE. Returns: ProcessGroupCollection: The default process groups for MoE.
Megatron-LM/megatron/core/transformer/moe/moe_utils.py:1037
↓ 6 callersFunctionget_expert_parallel_rng_tracker_name
Get the expert parallel rng tracker name
Megatron-LM/megatron/core/tensor_parallel/random.py:149
↓ 6 callersMethodget_grad_norm
(self)
Megatron-LM/megatron/core/optimizer/optimizer.py:1270
↓ 6 callersFunctionget_mamba_inference_state_config_from_model
Returns Mamba inference state config from the model if it is a hybrid model.
Megatron-LM/megatron/core/utils.py:2359
↓ 6 callersMethodget_metadata_labels
Provides human-readable labels for the tracked metadata fields.
Megatron-LM/megatron/core/inference/inference_request.py:319
↓ 6 callersFunctionget_mlp_module_spec
Helper function to get module spec for MLP/MoE
Megatron-LM/megatron/core/models/gpt/gpt_layer_specs.py:532
↓ 6 callersFunctionget_model_schema
( model_type: T.Literal["GPT", "BERT"], transformer_impl: T.Literal["transformer_engine", "local"],
Megatron-LM/tools/checkpoint/schema_core.py:129
↓ 6 callersMethodget_outer_fsdp_group
Get the outer-FSDP process group.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:609
↓ 6 callersMethodget_parameter_state_dp_zero
Get parameter state (i.e., parameter & optimizer tensors). This method performs two steps: - For each DP rank, copy param & optimizer
Megatron-LM/megatron/core/optimizer/distrib_optimizer.py:968
↓ 6 callersFunctionget_pipeline_model_parallel_rank
Return caller's rank for the pipeline-model-parallel group.
Megatron-LM/megatron/core/parallel_state.py:1573
↓ 6 callersFunctionget_pipeline_model_parallel_world_size
Return world size for the pipeline-model-parallel group.
Megatron-LM/megatron/core/parallel_state.py:1545
↓ 6 callersFunctionget_tensorboard_writer
Return tensorboard writer. It can be None so no need to check if it is initialized.
Megatron-LM/megatron/training/global_vars.py:39
↓ 6 callersFunctionget_vm_file
Config: path (str): absolute path on the VM to fetch dest (str): file name of the downloaded file multi (bool) : optional
gui-rl/desktop_env/evaluators/getters/file.py:87
↓ 6 callersFunctionget_vmrun_type
(return_list=False)
gui-rl/desktop_env/providers/vmware/provider.py:15
↓ 6 callersMethodhas_unfinished_requests
Test if context contains unfinished requests.
Megatron-LM/megatron/core/inference/engines/dynamic_engine.py:632
↓ 6 callersMethodinit_data
Initialize the tensor data of this ShardedTensor. Only called if `data` attribute is None. Args: device (Union[
Megatron-LM/megatron/core/dist_checkpointing/mapping.py:356
↓ 6 callersMethodis_memory_available
Check if memory blocks are available. Args: num_blocks (int): Number of blocks to check. Return: (bool) Is m
Megatron-LM/megatron/core/inference/contexts/dynamic_block_allocator.py:71
↓ 6 callersFunctionis_nd_flattened_tensor
Checks if ShardedTensor is flattened and more than 1-dimensional Args: sh_ten (Any): any object Returns: bool: whether the g
Megatron-LM/megatron/core/dist_checkpointing/strategies/resharding.py:79
↓ 6 callersFunctionis_pipeline_first_stage
Check if the current process is the first stage of the pipeline
Megatron-LM/megatron/core/inference/communication_utils.py:10
↓ 6 callersMethodlaunch
(cls)
Megatron-LM/megatron/rl/server/api.py:15
↓ 6 callersFunctionload_processor
(name_or_path: str, **kwargs)
slime/slime/utils/processing_utils.py:19
↓ 6 callersMethodload_state_dict
Load the state dicts of each of the models
Megatron-LM/megatron/legacy/model/biencoder_model.py:163
↓ 6 callersMethodload_state_dict
(self, state_dict)
slime/slime/backends/fsdp_utils/checkpoint.py:28
↓ 6 callersFunctionlog_on_each_pipeline_stage
Log on first rank in each pipeline stage Args: logger (logging.Logger): The logger to write the logs args (Tuple[Any]): All logg
Megatron-LM/megatron/core/utils.py:769
↓ 6 callersFunctionmain
( subset: str = typer.Option("lite", "--subset", help="SWEBench subset to use or path to a dataset", rich_
swe-rl/mini-swe-agent/src/minisweagent/run/extra/swebench.py:193
↓ 6 callersFunctionmake_fsdp_dtensor
Creates a distributed tensor (DTensor) from a local tensor with support for Megatron-FSDP and Tensor Parallel scenarios. This function i
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:3876
↓ 6 callersFunctionmasked_mean
(x: torch.Tensor, loss_mask: torch.Tensor, expand: bool = False)
slime/examples/train_infer_mismatch_helper/mis.py:17
↓ 6 callersFunctionmaybe_move_tensor_to_cpu
Move a tensor to CPU if it is on GPU. Args: tensor (torch.Tensor or None): The tensor to move to CPU. as_numpy (bool): Whether to
Megatron-LM/megatron/core/transformer/moe/moe_utils.py:897
↓ 6 callersFunctionparse_args
(add_custom_arguments=None)
slime/slime/utils/arguments.py:1692
↓ 6 callersMethodprep_model_for_inference
A utility function for preparing model for inference The function gets called once before the auto regressive inference loop. It puts
Megatron-LM/megatron/core/inference/model_inference_wrappers/multimodal/vlm_inference_wrapper.py:21
↓ 6 callersMethodquery
(self, messages: list[dict[str, str]], **kwargs)
swe-rl/mini-swe-agent/src/minisweagent/models/test_models.py:26
← previousnext →501–600 of 10,561, ranked by callers