MCPcopy Create free account

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

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

↓ 5 callersMethodget_index
Construct an index from an index type string. Args: index_type (str): One of 'faiss-base' (naive Faiss index wrapper) or 'faiss-p
Megatron-LM/megatron/core/datasets/retro/index/factory.py:29
↓ 5 callersFunctionget_indexed_dataset_
(data_prefix, dataset_type)
Megatron-LM/megatron/legacy/data/dataset_utils.py:594
↓ 5 callersMethodget_item_from_bucket
Get Tensor item data from the given bucket specified by the item ID.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:1172
↓ 5 callersMethodget_kvcache_utilization_stats
Compute KV cache buffer utilization stats for the current step. Returns a dictionary with counts and percentages for both allocated block
Megatron-LM/megatron/core/inference/contexts/dynamic_context.py:1976
↓ 5 callersFunctionget_logits_and_tokens_offset_with_cp
All offsets start from the begining of the prompt.
slime/slime/backends/megatron_utils/cp_utils.py:9
↓ 5 callersMethodget_lr
Learning rate decay functions from: https://openreview.net/pdf?id=BJYwwY9ll pg. 4 Args: param_group (dict): parameter gro
Megatron-LM/megatron/core/optimizer_param_scheduler.py:132
↓ 5 callersFunctionget_model_type
Returns model_type attribute
Megatron-LM/megatron/core/utils.py:585
↓ 5 callersFunctionget_mtp_layer_offset
Get the offset of the MTP layer.
Megatron-LM/megatron/core/transformer/multi_token_prediction.py:510
↓ 5 callersFunctionget_norm
(config)
Megatron-LM/megatron/legacy/model/utils.py:62
↓ 5 callersFunctionget_swebench_docker_image_name
Get the image name for a SWEBench instance.
swe-rl/mini-swe-agent/src/minisweagent/run/extra/swebench.py:69
↓ 5 callersMethodget_tool_spec
( self, processed_width: Optional[int] = None, processed_height: Optional[int] = None,
gui-rl/agents/qwen35_agent.py:130
↓ 5 callersMethodget_tool_spec
( self, processed_width: Optional[int] = None, processed_height: Optional[int] = None,
gui-rl/agents/qwen3vl_agent.py:101
↓ 5 callersFunctionget_weight_version
Extract weight_version from response metadata.
openclaw-rl/oel/eval/gsm8k_personal_agent.py:183
↓ 5 callersMethodgpt_to_text
GPT tokens to text.
Megatron-LM/tools/retro/cli/cli.py:80
↓ 5 callersMethodgpus_needed
Calculates the number of GPUs needed for a given sequence length and max sequence length per CP rank. This is used to determi
Megatron-LM/megatron/core/pipeline_parallel/hybrid_cp_schedule.py:44
↓ 5 callersMethodinitialize_attention_state
Initialize attention state so that every layer can use it. Args: construct_graph_dimensions (Optional[InferenceBatchDimensions]):
Megatron-LM/megatron/core/inference/contexts/dynamic_context.py:1180
↓ 5 callersFunctioninitialize_distributed
Initialize torch.distributed.
Megatron-LM/megatron/legacy/mpu/tests/commons.py:29
↓ 5 callersFunctionis_linear_attention_variant
Check if the experimental attention variant is a linear attention variant.
Megatron-LM/megatron/core/models/gpt/experimental_attention_variant_module_specs.py:22
↓ 5 callersMethodload
Distributes the load and calls underlying strategy only for parts of the state dict. Steps: 1. Load metadata is exchanged between the
Megatron-LM/megatron/core/dist_checkpointing/strategies/fully_parallel.py:188
↓ 5 callersMethodload_state_dict
Load the state dicts of each of the models
Megatron-LM/megatron/legacy/model/realm_model.py:106
↓ 5 callersMethodload_state_dict
Customized load.
Megatron-LM/megatron/legacy/model/language_model.py:273
↓ 5 callersFunctionlog_single_rank
Logs a message to the given rank.
Megatron-LM/megatron/core/ssm/mamba_hybrid_layer_allocation.py:13
↓ 5 callersFunctionmain
( path: str = typer.Argument(".", help="Directory to search for trajectory files or specific trajectory fi
swe-rl/mini-swe-agent/src/minisweagent/run/inspector.py:193
↓ 5 callersFunctionmake_test_packed_seq_params
(sequence_length=None, cu_seqlens=None)
Megatron-LM/tests/unit_tests/transformer/test_multi_latent_attention.py:40
↓ 5 callersFunctionmake_tp_sharded_tensor_for_checkpoint
Helper for instantiating a ShardedTensor where the `tp_axis` dimension is sharded across TP group. Optionally, can provide offsets which prep
Megatron-LM/megatron/core/utils.py:879
↓ 5 callersMethodnew_moe_layer
(self, **kargs)
Megatron-LM/tests/unit_tests/transformer/moe/test_token_dispatcher.py:100
↓ 5 callersMethodnum_layers
Gets the number of transformer layers.
Megatron-LM/megatron/core/models/common/model_chunk_schedule_plan.py:415
↓ 5 callersMethodon_key
Handle key events.
swe-rl/mini-swe-agent/src/minisweagent/agents/interactive_textual.py:223
↓ 5 callersMethodprepare_grads
Pre-processing gradients before the optimizer step, returns whether inf/nan is found.
Megatron-LM/megatron/core/optimizer/optimizer.py:922
↓ 5 callersFunctionprint_header
(text, color="white")
Megatron-LM/tools/checkpoint/checkpoint_inspector.py:56
↓ 5 callersMethodpush
Add a chunk handler to the backward queue.
Megatron-LM/megatron/core/pipeline_parallel/fine_grained_activation_offload.py:87
↓ 5 callersMethodquery
(self, *args, **kwargs)
swe-rl/mini-swe-agent/tests/run/test_swebench.py:388
↓ 5 callersFunctionread_metadata
(tracker_filename)
Megatron-LM/megatron/training/checkpointing.py:270
↓ 5 callersMethodreduce
(self, *a, **kw)
slime/slime/utils/reloadable_process_group.py:196
↓ 5 callersFunctionreport_current_memory_info
Report current memory usage.
Megatron-LM/megatron/post_training/utils.py:21
↓ 5 callersMethodreset
Set to the initial state (no tracker).
Megatron-LM/megatron/core/tensor_parallel/random.py:187
↓ 5 callersMethodreset
Set to the initial state (no tracker).
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:289
↓ 5 callersMethodrun
Runs the agent by sending a prompt to the LLM.
slime/examples/multi_agent/agent_system.py:84
↓ 5 callersFunctionsample_N
(dataset, N, randomize)
Megatron-LM/tests/unit_tests/data/test_gpt_dataset.py:22
↓ 5 callersMethodsend_forward_recv_forward
Batched recv from previous rank and send to next rank in pipeline.
Megatron-LM/megatron/core/pipeline_parallel/p2p_communication.py:572
↓ 5 callersMethodset_is_first_microbatch
Sets the is_first_microbatch flag if it exists and config.fp8==True. When this flag is set, TE modules will update their fp8 parameter cache.
Megatron-LM/megatron/core/transformer/module.py:104
↓ 5 callersMethodset_model_auto_sync
Activate or deactivate flag that controls Megatron-FSDP model synchronization. When activated, the model parameters and gradients wil
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/megatron_fsdp.py:982
↓ 5 callersMethodsetup_engine
( self, engine_max_batch_size=None, vocab_size=100, tensor_model_parallel_size
Megatron-LM/tests/unit_tests/inference/engines/test_static_engine.py:39
↓ 5 callersMethodsharded_state_dict
Return the sharded state dictionary of the module.
Megatron-LM/megatron/core/transformer/mlp.py:237
↓ 5 callersMethodshared_embedding_or_output_weight
Gets the emedding weight or output logit weights when share embedding and output weights set to True. Returns: Tensor: During pre
Megatron-LM/megatron/core/models/common/language_module/language_module.py:328
↓ 5 callersFunctionsleep
(args, rollout_id, data_source, evaluation=False)
slime/slime/rollout/sleep_rollout.py:7
↓ 5 callersMethodstart_param_sync
Initiates all necessary param all-gathers for this bucket. When ddp_config.overlap_param_gather is set to True, dispatches an asynch
Megatron-LM/megatron/core/distributed/param_and_grad_buffer.py:249
↓ 5 callersMethodstate_dict
(self, is_loading=False)
Megatron-LM/tests/unit_tests/test_checkpointing.py:60
↓ 5 callersMethodstop
(self)
openclaw-tinker/rollout.py:73
↓ 5 callersFunctionte_checkpoint
Checkpointing with Transformer-Engine.
Megatron-LM/megatron/core/extensions/transformer_engine.py:2023
↓ 5 callersMethodtensor_copy_and_pad
Copy the unpadded tensor to the tensor_buf, pad the tensor_buf with zero or the last value of the tensor, depending on whethe
Megatron-LM/megatron/core/inference/contexts/attention_context/metadata_base.py:32
↓ 5 callersMethodtext_to_ids
Converts text to ids.
Megatron-LM/megatron/core/tokenizers/text/libraries/null_tokenizer.py:19
↓ 5 callersMethodtrain
Train index on a representative set of vectors. Args: config (RetroPreprocessingConfig): Retro preprocessing config.
Megatron-LM/megatron/core/datasets/retro/index/index.py:118
↓ 5 callersFunctiontype_text
Type text character by character using pilot.press() to simulate real user input. This properly tests focus behavior and input handling, unlike s
swe-rl/mini-swe-agent/tests/agents/test_interactive_textual.py:36
↓ 5 callersFunctionunset_global_variables
Unset global vars. Useful for multiple runs. See `tests/unit_tests/ckpt_converter/test_ckpt_converter.py` for an example.
Megatron-LM/megatron/training/global_vars.py:120
↓ 5 callersFunctionunset_num_microbatches_calculator
Unset microbatches calculator. Useful for multiple runs. See `tests/unit_tests/ckpt_converter/test_ckpt_converter.py` for an example.
Megatron-LM/megatron/core/num_microbatches_calculator.py:54
↓ 5 callersMethodunwrap
Returns the original object.
Megatron-LM/megatron/core/dist_checkpointing/mapping.py:533
↓ 5 callersMethodunwrap
Turn instance of base class into registered subclass.
Megatron-LM/megatron/rl/__init__.py:42
↓ 5 callersMethodupdate
Args: request_query_lengths: (>real_batch_size,) request_kv_length_offsets: (>real_batch_size,) request_t
Megatron-LM/megatron/core/inference/contexts/attention_context/mha_metadata.py:37
↓ 5 callersMethodupdate_content
(self)
swe-rl/mini-swe-agent/src/minisweagent/agents/interactive_textual.py:357
↓ 5 callersFunctionupdate_num_microbatches
Update number of microbatches. Args: consumed_samples (int): Number of samples consumed. consistency_check (bool, opt
Megatron-LM/megatron/core/num_microbatches_calculator.py:38
↓ 4 callersMethod__init__
(self, schema, layer_schema, prefix, layer_prefix)
Megatron-LM/tools/checkpoint/schema_hf.py:9
↓ 4 callersMethod_apply_image_tag
Surround <image> with image tags such as <img> and </img>.
Megatron-LM/megatron/training/tokenizer/multimodal_tokenizer.py:192
↓ 4 callersFunction_apply_rotary_pos_emb_bshd
Apply rotary positional embedding to input tensor T. check https://kexue.fm/archives/8265 for detailed formulas Args: t (Tensor): In
Megatron-LM/megatron/core/models/common/embeddings/rope_utils.py:92
↓ 4 callersFunction_broadcast_cu_seqlens
(cu_seqlens)
Megatron-LM/megatron/training/utils.py:561
↓ 4 callersFunction_build_env_side_msg
(role: str, content: str)
swe-rl/generate_with_swe_trajectory.py:605
↓ 4 callersMethod_build_megatron_dataset_splits
Build each MidLevelDataset split from a single LowLevelDataset Args: dataset_path (Optional[str]): The path on disk which defines
Megatron-LM/megatron/core/datasets/blended_megatron_dataset_builder.py:400
↓ 4 callersFunction_check_supported_type
Check if arg meta is a supported type for cudagraph input/outputs.
Megatron-LM/megatron/core/transformer/cuda_graphs.py:108
↓ 4 callersMethod_create_config
Helper to create MLA config.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:644
↓ 4 callersMethod_create_config
Helper to create MLA config.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:882
↓ 4 callersMethod_create_indexer
Helper to create indexer.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:673
↓ 4 callersMethod_create_sparse_attention
Helper to create sparse attention.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:913
↓ 4 callersFunction_deinit_distributed
()
Megatron-LM/tests/unit_tests/test_utils.py:126
↓ 4 callersMethod_distribute_counts
Helper method to distribute counts according to weights. This implementation ensures the most balanced distribution possible while ma
Megatron-LM/megatron/rl/agent/weighted_multi_task.py:99
↓ 4 callersFunction_download_github_folder
General function to download a specific folder from a GitHub repository. Args: repo_url: GitHub repository URL (.git) sparse
terminal-rl/data_utils/download.py:11
↓ 4 callersMethod_fim_permute_sequence
(self, sequence, rate)
Megatron-LM/megatron/training/datasets/fim_dataset.py:184
↓ 4 callersFunction_flatten_message_content
(content)
openclaw-rl/oel/openclaw_oel_api_server.py:126
↓ 4 callersFunction_flatten_message_content
(content)
openclaw-opd/openclaw_opd_api_server.py:36
↓ 4 callersMethod_flush_pending_record
(self, session_id: str, next_state)
openclaw-tinker/api_server.py:310
↓ 4 callersMethod_forward_attention
Perform a forward pass through the attention layer and the layernorms before and after the attention operations. Args:
Megatron-LM/megatron/core/transformer/transformer_layer.py:479
↓ 4 callersMethod_forward_mlp
Perform a forward pass through the feed-forward layer. Args: hidden_states (Tensor): Transformed hidden states before th
Megatron-LM/megatron/core/transformer/transformer_layer.py:614
↓ 4 callersFunction_gather_along_K
Slice ``cand_tensor[k*(t), t, ...]`` per token. Returns ``[R, *]``.
openclaw-combine/hint_opd_select_loss.py:166
↓ 4 callersFunction_gather_along_first_dim
Gather tensors and concatenate along the first dimension. Args: input_tensor (torch.Tensor): A tensor to be gathered.
Megatron-LM/megatron/core/tensor_parallel/mappings.py:114
↓ 4 callersMethod_get
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
Megatron-LM/megatron/core/distributed/param_and_grad_buffer.py:867
↓ 4 callersMethod_get_available_port
Find next available port starting from start_port.
gui-rl/desktop_env/providers/docker/provider.py:55
↓ 4 callersMethod_get_deep_attr
(cls, obj, path)
Megatron-LM/tools/checkpoint/schema_base.py:30
↓ 4 callersMethod_get_dynamic_context
Helper to create a DynamicInferenceContext.
Megatron-LM/tests/unit_tests/inference/test_wandb_logging.py:44
↓ 4 callersFunction_get_filesystem_reader
( checkpoint_dir: Union[str, Path], cache_metadata: bool = False )
Megatron-LM/megatron/core/dist_checkpointing/strategies/torch.py:852
↓ 4 callersMethod_get_item_slice_in_shard
Return the coordinates of the slice of the item that is contained in this buffer shard. In other words, this returns the coordinates
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:973
↓ 4 callersFunction_get_iterator
Return dataset iterator.
Megatron-LM/megatron/training/training.py:3066
↓ 4 callersMethod_get_layer
(self, layer_number)
Megatron-LM/megatron/legacy/model/transformer.py:1593
↓ 4 callersMethod_get_lease
(self, lease_id: str)
swe-rl/server/swe_env_pool_server.py:133
↓ 4 callersFunction_get_main_grad_attr
(param: torch.nn.Parameter)
Megatron-LM/megatron/core/distributed/finalize_model_grads.py:34
↓ 4 callersFunction_get_pg_collection_from_grid
(grid)
Megatron-LM/tests/unit_tests/pipeline_parallel/test_bridge_communicator.py:134
↓ 4 callersMethod_get_run_slot
(self, run_lease_id: str)
terminal-rl/remote/pool_server.py:169
↓ 4 callersFunction_get_size_per_split_per_dataset
Determine the contribution of the MegatronDataset splits to the BlendedDataset splits Args: normalized_weights (List[float]): e.g. [0.3,
Megatron-LM/megatron/core/datasets/blended_megatron_dataset_builder.py:526
↓ 4 callersFunction_get_thd_token_idx
(cu_seqlens, pid_m, seq_num, cp_rank, cp_size)
Megatron-LM/megatron/core/fusions/fused_mla_yarn_rope_apply.py:31
↓ 4 callersFunction_is_msc_path
Checks whether a path is in MSC path (msc://profile/path/to/file) Args: path (str): The path Returns: bool: True if the path
Megatron-LM/megatron/core/datasets/object_storage_utils.py:107
↓ 4 callersFunction_match_record
(pattern: Dict[str, Any], item: Dict[str, Any])
gui-rl/desktop_env/evaluators/metrics/utils.py:704
↓ 4 callersMethod_maybe_dtoh_and_synchronize
Move all possible GPU tensors to CPU and make a synchronization at the expected point.
Megatron-LM/megatron/core/transformer/moe/token_dispatcher.py:865
← previousnext →701–800 of 10,561, ranked by callers