MCPcopy Create free account

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

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

↓ 16 callersMethod_setup_model_parallel_group
(self, tensor_parallel_size, pipeline_parallel_size)
Megatron-LM/tests/unit_tests/inference/contexts/test_dynamic_context.py:32
↓ 16 callersMethodcheck_for_arg
(self, arg_name, default=None)
Megatron-LM/tools/checkpoint/loader_base.py:98
↓ 16 callersFunctionchunk_bias
(bias, parallel_mode, tp_size=1, ep_size=1)
Megatron-LM/tools/checkpoint/utils.py:6
↓ 16 callersFunctionclear_aux_losses_tracker
Clear the auxiliary losses.
Megatron-LM/megatron/core/transformer/moe/moe_utils.py:756
↓ 16 callersFunctionget_input_output_paths
Get all input files and an output path for a merged file.
Megatron-LM/examples/multimodal/evaluation/evaluate_mmmu.py:20
↓ 16 callersFunctionget_mla_self_attn_submodules
(linear_qkv_down_proj=None)
Megatron-LM/tests/unit_tests/transformer/test_multi_latent_attention.py:94
↓ 16 callersFunctionget_moe_layer_wise_logging_tracker
Return the moe layer wise tracker.
Megatron-LM/megatron/core/transformer/moe/moe_utils.py:915
↓ 16 callersFunctionget_te_version
Get TE version from __version__; if not available use pip's. Use caching.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:53
↓ 16 callersFunctionhas_config_logger_enabled
Check if config logger is enabled.
Megatron-LM/megatron/core/config_logger.py:30
↓ 16 callersFunctionpretrain
Main training program. This function will run the followings in the order provided: 1) initialize Megatron. 2) setup model, optim
Megatron-LM/megatron/training/training.py:627
↓ 15 callersMethod_gen_rank_enum
r"""Generate rank enumeration before calling new_subgroups_by_enumeration This function returns ranks grouped by the specified dimensions, bu
Megatron-LM/megatron/core/hyper_comm_grid.py:180
↓ 15 callersMethodbackward
(ctx, output_grads)
Megatron-LM/megatron/legacy/model/fused_softmax.py:106
↓ 15 callersFunctionchunk_weight
(weight, parallel_mode, tp_size=1, ep_size=1)
Megatron-LM/tools/checkpoint/utils.py:23
↓ 15 callersMethodcolumn_parallel_linear
Which column parallel linear module the backend uses
Megatron-LM/megatron/core/models/backends.py:88
↓ 15 callersFunctioncompile_helpers
Compile C++ helper functions at runtime. Make sure this is invoked on a single process.
Megatron-LM/megatron/core/datasets/utils.py:20
↓ 15 callersMethoddetokenize
Decoding function.
Megatron-LM/megatron/core/tokenizers/base_tokenizer.py:31
↓ 15 callersFunctiondict_list_map_inplace
Maps dicts and lists *in-place* with a given function.
Megatron-LM/megatron/core/dist_checkpointing/dict_utils.py:198
↓ 15 callersFunctiongather_from_sequence_parallel_region
Wrapper for autograd function: forward: AG, backward: RS <first dim>
Megatron-LM/megatron/core/tensor_parallel/mappings.py:499
↓ 15 callersFunctionget_default_strategy
Retrieves a default strategy for a given action, backend and version.
Megatron-LM/megatron/core/dist_checkpointing/strategies/base.py:29
↓ 15 callersMethodget_pg
r"""Get a process group based on a list of dimension names Args: dims: Name of leading dimensions to create process group
Megatron-LM/megatron/core/hyper_comm_grid.py:165
↓ 15 callersMethodlinear
Which linear module TE backend uses
Megatron-LM/megatron/core/models/backends.py:140
↓ 15 callersFunctionload_dataset
(path: str)
openclaw-test/TA_chat.py:131
↓ 15 callersMethodrank
(self)
Megatron-LM/tests/unit_tests/fusions/test_mla_yarn_rope_apply.py:36
↓ 15 callersFunctionset_tensor_model_parallel_attributes
Sets tp attributes to tensor
Megatron-LM/megatron/core/tensor_parallel/layers.py:101
↓ 14 callersFunction_compare
(arg_name, old_arg_name=None, default=None)
Megatron-LM/megatron/training/checkpointing.py:88
↓ 14 callersMethodactivation_func
Which module to use for activation function
Megatron-LM/megatron/core/models/backends.py:132
↓ 14 callersMethodadd
Track the rng state.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:315
↓ 14 callersFunctioncheck_for_arg
(arg_name, default=None)
Megatron-LM/tools/checkpoint/loader_legacy.py:94
↓ 14 callersMethodcreate
(source_getter, single_tag)
slime/slime/utils/tensor_backper.py:12
↓ 14 callersMethodembedding
Function to run process tokens with input embeddings
Megatron-LM/megatron/core/models/huggingface/qwen_model.py:57
↓ 14 callersMethodget_current_global_batch_size
Get current global batch size.
Megatron-LM/megatron/core/num_microbatches_calculator.py:279
↓ 14 callersFunctionget_fine_grained_offloading_context
Get the fine-grained offload context
Megatron-LM/megatron/core/pipeline_parallel/fine_grained_activation_offload.py:556
↓ 14 callersFunctionget_one_logger
Return one logger. It can be None so no need to check if it is initialized.
Megatron-LM/megatron/training/global_vars.py:51
↓ 14 callersFunctionget_tensor_model_parallel_rank
Return caller's rank for the tensor-model-parallel group.
Megatron-LM/megatron/core/parallel_state.py:1565
↓ 14 callersMethodis_initialized
Checks if the internal RNG state has been set with set_states().
Megatron-LM/megatron/core/extensions/transformer_engine.py:2003
↓ 14 callersFunctionlog_config_to_disk
Encodes the input dict (dict_data) using the JSONEncoderWithMcoreTypes and dumps to disk, as specified via path
Megatron-LM/megatron/core/config_logger.py:97
↓ 14 callersFunctionmake_viewless_tensor
Entry-point for creating viewless tensors. This method should be used, rather than calling 'MakeViewlessTensor' or '_kernel_make_viewles
Megatron-LM/megatron/core/utils.py:687
↓ 14 callersFunctionprint_memory
(msg, clear_before_print: bool = False)
slime/slime/utils/memory_utils.py:35
↓ 14 callersMethodrecv_forward
Receive forward activation tensor. Args: tensor_shape: Expected activation tensor shape Returns: A dictionar
Megatron-LM/megatron/core/pipeline_parallel/multimodule_communicator.py:239
↓ 14 callersFunctionrun
Run a coroutine in the background event loop.
slime/slime/utils/async_utils.py:34
↓ 14 callersFunctionset_global_variables
Set args, tokenizer, tensorboard-writer, adlr-autoresume, and timers.
Megatron-LM/megatron/training/global_vars.py:85
↓ 14 callersFunctionset_random_seed
Set random seed for reproducability.
Megatron-LM/megatron/legacy/mpu/tests/commons.py:21
↓ 14 callersFunctionvalidate_args
(args, defaults={})
Megatron-LM/megatron/training/arguments.py:374
↓ 13 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None
Megatron-LM/megatron/legacy/model/vision/mit_backbone.py:14
↓ 13 callersFunction_gui_log
(message: str, *args: Any)
gui-rl/generate_with_gui.py:34
↓ 13 callersMethodadd_request
Dummy add_request.
Megatron-LM/tests/unit_tests/inference/test_data_parallel_inference_coordinator.py:66
↓ 13 callersFunctioncheck_for_arg
(arg_name, default=None)
Megatron-LM/tools/checkpoint/loader_mixtral_hf.py:208
↓ 13 callersFunctioncheck_for_arg
(arg_name, default=None)
Megatron-LM/tools/checkpoint/loader_llama_mistral.py:484
↓ 13 callersFunctionclear_memory
(clear_host_memory: bool = False)
slime/slime/utils/memory_utils.py:10
↓ 13 callersMethodcore_attention
Which module to use for attention
Megatron-LM/megatron/core/models/backends.py:113
↓ 13 callersFunctiondebug_time
Simple context manager for timing functions/code blocks. Args: name (str): Label describing the code being measured. logger (logg
Megatron-LM/megatron/core/dist_checkpointing/utils.py:293
↓ 13 callersMethodencode
(self, query_list: list[str], is_query=True)
slime/examples/search-r1/local_dense_retriever/retrieval_server.py:77
↓ 13 callersMethodexecute
Execute a command in the bubblewrap environment and return the result as a dict.
swe-rl/mini-swe-agent/src/minisweagent/environments/extra/bubblewrap.py:80
↓ 13 callersFunctionextract_matching_values
Return matching and nonmatching values. Keeps hierarchy. Args: x (Union[dict, list]) : state dict to process. Top-level argument must be
Megatron-LM/megatron/core/dist_checkpointing/dict_utils.py:18
↓ 13 callersMethodforward
(self, x)
Megatron-LM/tests/unit_tests/transformer/test_module.py:23
↓ 13 callersFunctiongather_from_tensor_model_parallel_region
Wrapper for autograd function: forward: AG, backward: split <last dim>
Megatron-LM/megatron/core/tensor_parallel/mappings.py:487
↓ 13 callersMethodgenerate
( self, request: InferenceRequest )
Megatron-LM/megatron/rl/inference/inference_interface.py:78
↓ 13 callersFunctionget_asyncio_loop
Creates an asyncio loop if necessary and then returns the current asyncio loop.
Megatron-LM/megatron/core/utils.py:2270
↓ 13 callersMethodget_instance
Get the singleton instance of PipelineOffloadManager.
Megatron-LM/megatron/core/pipeline_parallel/fine_grained_activation_offload.py:36
↓ 13 callersFunctionget_model
Build the model.
Megatron-LM/examples/post_training/modelopt/convert_model.py:67
↓ 13 callersFunctionget_num_layers_to_build
Determine the number of transformer layers to build for the current pipeline stage. Args: config (TransformerConfig): Configuration o
Megatron-LM/megatron/core/transformer/transformer_block.py:78
↓ 13 callersFunctionget_rerun_state_machine
Helper function to return the singleton instance of the rerun machine.
Megatron-LM/megatron/core/rerun_state_machine.py:1296
↓ 13 callersMethodget_tensor
Returns (potentially) a sub-tensor from the self.buffer for the given shape.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:665
↓ 13 callersFunctionimport_module
Import a named object from a module in the context of this function. TODO: make this importer module more robust, at least make sure there ar
Megatron-LM/megatron/core/transformer/spec_utils.py:34
↓ 13 callersFunctioninit_checkpointing_mock_args
(args, ckpt_dir, fully_parallel=False)
Megatron-LM/tests/unit_tests/dist_checkpointing/utils.py:126
↓ 13 callersMethodmodel
(self)
swe-rl/mini-swe-agent/src/minisweagent/agents/interactive_textual.py:322
↓ 13 callersFunctionprint_separator
(message)
Megatron-LM/megatron/legacy/mpu/tests/commons.py:63
↓ 13 callersFunctionreset_model
Resets the model's gradients and optionally its parameters. Args: model: The model to reset. params: Optional dictionary of
Megatron-LM/tests/unit_tests/a2a_overlap/utils.py:102
↓ 13 callersMethodset
Set the tensors in the store from keyword arguments.
Megatron-LM/megatron/core/transformer/moe/moe_utils.py:1155
↓ 13 callersFunctiontimer
Can be used either as a decorator or a context manager: @timer def func(): ... or with timer("block_name"): ..
slime/slime/utils/timer.py:55
↓ 12 callersFunction_get_partition_bounds
( total_num_samples, num_samples_per_partition, num_partitions, partition_id )
Megatron-LM/examples/multimodal/evaluation/evaluation_datasets.py:17
↓ 12 callersMethod_run_test
(cls, **test_config_kwargs)
Megatron-LM/tests/unit_tests/inference/engines/test_dynamic_engine.py:467
↓ 12 callersMethodadd
Track the rng state.
Megatron-LM/megatron/core/tensor_parallel/random.py:217
↓ 12 callersFunctionbuild_tokenizer
Megatron-LM/megatron/core/tokenizers/text/utils/build_tokenizer.py:10
↓ 12 callersMethodcleanup
Stop and remove the Docker container.
swe-rl/mini-swe-agent/src/minisweagent/environments/docker.py:160
↓ 12 callersMethodconvert_checkpoint
Convert checkpoint
Megatron-LM/tests/functional_tests/test_cases/common/ckpt_converter/__main__.py:449
↓ 12 callersFunctiondestroy_num_microbatches_calculator
Destroy number of microbatches calculator.
Megatron-LM/megatron/core/num_microbatches_calculator.py:101
↓ 12 callersMethodexecute
Execute a command in a Singularity container and return the result as a dict.
swe-rl/mini-swe-agent/src/minisweagent/environments/singularity.py:63
↓ 12 callersMethodexecute
Execute a command in the Docker container and return the result as a dict.
swe-rl/mini-swe-agent/src/minisweagent/environments/docker.py:82
↓ 12 callersFunctionfilter_instances
Filter and slice a list of SWEBench instances.
swe-rl/mini-swe-agent/src/minisweagent/run/extra/swebench.py:171
↓ 12 callersMethodfrom_rank_offsets_flat
Allows to construct a *flattened* ShardedTensor given offset specified in process ranks. Args: key (str): data (torch
Megatron-LM/megatron/core/dist_checkpointing/mapping.py:312
↓ 12 callersMethodget_bucket_key
Get the key for the bucket.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:3307
↓ 12 callersFunctionget_checkpoint_tracker_filename
Tracker file rescords the latest chckpoint during training to restart from.
Megatron-LM/megatron/training/checkpointing.py:256
↓ 12 callersFunctionget_model
Get an initialized model object from any kind of user input or settings.
swe-rl/mini-swe-agent/src/minisweagent/models/__init__.py:45
↓ 12 callersFunctionget_tensor_model_parallel_group
Get the tensor-model-parallel group the caller rank belongs to.
Megatron-LM/megatron/core/parallel_state.py:1365
↓ 12 callersMethodis_current_rank_in_grid
Check if the current rank is in the grid.
Megatron-LM/megatron/core/pipeline_parallel/bridge_communicator.py:223
↓ 12 callersFunctionis_pipeline_last_stage
Check if the current process is the last stage of the pipeline
Megatron-LM/megatron/core/inference/communication_utils.py:19
↓ 12 callersFunctionmain
( visual: bool = typer.Option(False, "-v", "--visual", help="Toggle (pager-style) UI (Textual) depending o
swe-rl/mini-swe-agent/src/minisweagent/run/mini.py:48
↓ 12 callersMethodsave
(self, rollout_id)
gui-rl/gui_data_source.py:117
↓ 12 callersMethodsend
(self, *a, **kw)
slime/slime/utils/reloadable_process_group.py:232
↓ 12 callersMethodtokenize_prompt
Utility to tokenize the input prompts. Args: prompt (str): The input prompt. Returns: List[int]: Returns the
Megatron-LM/megatron/core/inference/text_generation_controllers/text_generation_controller.py:115
↓ 11 callersFunctionadd_chunck_tensor
(new_tensor, new_name, chunk_dim=None)
Megatron-LM/examples/multimodal/model_converter/siglip_converter.py:26
↓ 11 callersMethodasync_train
Do one rollout training
slime/slime/ray/actor_group.py:115
↓ 11 callersFunctioncheck_first_val_step
Check if it is the first validation step.
Megatron-LM/megatron/core/pipeline_parallel/schedules.py:504
↓ 11 callersMethodconnect
(self, critic_group)
slime/slime/ray/actor_group.py:136
↓ 11 callersFunctiondestroy_global_vars
()
Megatron-LM/megatron/training/global_vars.py:286
↓ 11 callersMethodend
(self, name)
slime/slime/utils/timer.py:26
↓ 11 callersMethodget_dp_group
Get the data parallel process group.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:595
↓ 11 callersFunctionget_gpt_mtp_block_spec
GPT Multi-Token Prediction (MTP) block spec.
Megatron-LM/megatron/core/models/gpt/gpt_layer_specs.py:782
↓ 11 callersFunctionget_wandb_writer
Return tensorboard writer. It can be None so no need to check if it is initialized.
Megatron-LM/megatron/training/global_vars.py:45
← previousnext →201–300 of 10,561, ranked by callers