Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gen-Verse/OpenClaw-RL
/ functions
Functions
10,561 in github.com/Gen-Verse/OpenClaw-RL
⨍
Functions
10,561
◇
Types & classes
1,405
↳
Endpoints
144
↓ 16 callers
Method
_setup_model_parallel_group
(self, tensor_parallel_size, pipeline_parallel_size)
Megatron-LM/tests/unit_tests/inference/contexts/test_dynamic_context.py:32
↓ 16 callers
Method
check_for_arg
(self, arg_name, default=None)
Megatron-LM/tools/checkpoint/loader_base.py:98
↓ 16 callers
Function
chunk_bias
(bias, parallel_mode, tp_size=1, ep_size=1)
Megatron-LM/tools/checkpoint/utils.py:6
↓ 16 callers
Function
clear_aux_losses_tracker
Clear the auxiliary losses.
Megatron-LM/megatron/core/transformer/moe/moe_utils.py:756
↓ 16 callers
Function
get_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 callers
Function
get_mla_self_attn_submodules
(linear_qkv_down_proj=None)
Megatron-LM/tests/unit_tests/transformer/test_multi_latent_attention.py:94
↓ 16 callers
Function
get_moe_layer_wise_logging_tracker
Return the moe layer wise tracker.
Megatron-LM/megatron/core/transformer/moe/moe_utils.py:915
↓ 16 callers
Function
get_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 callers
Function
has_config_logger_enabled
Check if config logger is enabled.
Megatron-LM/megatron/core/config_logger.py:30
↓ 16 callers
Function
pretrain
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 callers
Method
_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 callers
Method
backward
(ctx, output_grads)
Megatron-LM/megatron/legacy/model/fused_softmax.py:106
↓ 15 callers
Function
chunk_weight
(weight, parallel_mode, tp_size=1, ep_size=1)
Megatron-LM/tools/checkpoint/utils.py:23
↓ 15 callers
Method
column_parallel_linear
Which column parallel linear module the backend uses
Megatron-LM/megatron/core/models/backends.py:88
↓ 15 callers
Function
compile_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 callers
Method
detokenize
Decoding function.
Megatron-LM/megatron/core/tokenizers/base_tokenizer.py:31
↓ 15 callers
Function
dict_list_map_inplace
Maps dicts and lists *in-place* with a given function.
Megatron-LM/megatron/core/dist_checkpointing/dict_utils.py:198
↓ 15 callers
Function
gather_from_sequence_parallel_region
Wrapper for autograd function: forward: AG, backward: RS <first dim>
Megatron-LM/megatron/core/tensor_parallel/mappings.py:499
↓ 15 callers
Function
get_default_strategy
Retrieves a default strategy for a given action, backend and version.
Megatron-LM/megatron/core/dist_checkpointing/strategies/base.py:29
↓ 15 callers
Method
get_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 callers
Method
linear
Which linear module TE backend uses
Megatron-LM/megatron/core/models/backends.py:140
↓ 15 callers
Function
load_dataset
(path: str)
openclaw-test/TA_chat.py:131
↓ 15 callers
Method
rank
(self)
Megatron-LM/tests/unit_tests/fusions/test_mla_yarn_rope_apply.py:36
↓ 15 callers
Function
set_tensor_model_parallel_attributes
Sets tp attributes to tensor
Megatron-LM/megatron/core/tensor_parallel/layers.py:101
↓ 14 callers
Function
_compare
(arg_name, old_arg_name=None, default=None)
Megatron-LM/megatron/training/checkpointing.py:88
↓ 14 callers
Method
activation_func
Which module to use for activation function
Megatron-LM/megatron/core/models/backends.py:132
↓ 14 callers
Method
add
Track the rng state.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:315
↓ 14 callers
Function
check_for_arg
(arg_name, default=None)
Megatron-LM/tools/checkpoint/loader_legacy.py:94
↓ 14 callers
Method
create
(source_getter, single_tag)
slime/slime/utils/tensor_backper.py:12
↓ 14 callers
Method
embedding
Function to run process tokens with input embeddings
Megatron-LM/megatron/core/models/huggingface/qwen_model.py:57
↓ 14 callers
Method
get_current_global_batch_size
Get current global batch size.
Megatron-LM/megatron/core/num_microbatches_calculator.py:279
↓ 14 callers
Function
get_fine_grained_offloading_context
Get the fine-grained offload context
Megatron-LM/megatron/core/pipeline_parallel/fine_grained_activation_offload.py:556
↓ 14 callers
Function
get_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 callers
Function
get_tensor_model_parallel_rank
Return caller's rank for the tensor-model-parallel group.
Megatron-LM/megatron/core/parallel_state.py:1565
↓ 14 callers
Method
is_initialized
Checks if the internal RNG state has been set with set_states().
Megatron-LM/megatron/core/extensions/transformer_engine.py:2003
↓ 14 callers
Function
log_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 callers
Function
make_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 callers
Function
print_memory
(msg, clear_before_print: bool = False)
slime/slime/utils/memory_utils.py:35
↓ 14 callers
Method
recv_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 callers
Function
run
Run a coroutine in the background event loop.
slime/slime/utils/async_utils.py:34
↓ 14 callers
Function
set_global_variables
Set args, tokenizer, tensorboard-writer, adlr-autoresume, and timers.
Megatron-LM/megatron/training/global_vars.py:85
↓ 14 callers
Function
set_random_seed
Set random seed for reproducability.
Megatron-LM/megatron/legacy/mpu/tests/commons.py:21
↓ 14 callers
Function
validate_args
(args, defaults={})
Megatron-LM/megatron/training/arguments.py:374
↓ 13 callers
Method
__init__
(self, in_features, hidden_features=None, out_features=None
Megatron-LM/megatron/legacy/model/vision/mit_backbone.py:14
↓ 13 callers
Function
_gui_log
(message: str, *args: Any)
gui-rl/generate_with_gui.py:34
↓ 13 callers
Method
add_request
Dummy add_request.
Megatron-LM/tests/unit_tests/inference/test_data_parallel_inference_coordinator.py:66
↓ 13 callers
Function
check_for_arg
(arg_name, default=None)
Megatron-LM/tools/checkpoint/loader_mixtral_hf.py:208
↓ 13 callers
Function
check_for_arg
(arg_name, default=None)
Megatron-LM/tools/checkpoint/loader_llama_mistral.py:484
↓ 13 callers
Function
clear_memory
(clear_host_memory: bool = False)
slime/slime/utils/memory_utils.py:10
↓ 13 callers
Method
core_attention
Which module to use for attention
Megatron-LM/megatron/core/models/backends.py:113
↓ 13 callers
Function
debug_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 callers
Method
encode
(self, query_list: list[str], is_query=True)
slime/examples/search-r1/local_dense_retriever/retrieval_server.py:77
↓ 13 callers
Method
execute
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 callers
Function
extract_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 callers
Method
forward
(self, x)
Megatron-LM/tests/unit_tests/transformer/test_module.py:23
↓ 13 callers
Function
gather_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 callers
Method
generate
( self, request: InferenceRequest )
Megatron-LM/megatron/rl/inference/inference_interface.py:78
↓ 13 callers
Function
get_asyncio_loop
Creates an asyncio loop if necessary and then returns the current asyncio loop.
Megatron-LM/megatron/core/utils.py:2270
↓ 13 callers
Method
get_instance
Get the singleton instance of PipelineOffloadManager.
Megatron-LM/megatron/core/pipeline_parallel/fine_grained_activation_offload.py:36
↓ 13 callers
Function
get_model
Build the model.
Megatron-LM/examples/post_training/modelopt/convert_model.py:67
↓ 13 callers
Function
get_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 callers
Function
get_rerun_state_machine
Helper function to return the singleton instance of the rerun machine.
Megatron-LM/megatron/core/rerun_state_machine.py:1296
↓ 13 callers
Method
get_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 callers
Function
import_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 callers
Function
init_checkpointing_mock_args
(args, ckpt_dir, fully_parallel=False)
Megatron-LM/tests/unit_tests/dist_checkpointing/utils.py:126
↓ 13 callers
Method
model
(self)
swe-rl/mini-swe-agent/src/minisweagent/agents/interactive_textual.py:322
↓ 13 callers
Function
print_separator
(message)
Megatron-LM/megatron/legacy/mpu/tests/commons.py:63
↓ 13 callers
Function
reset_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 callers
Method
set
Set the tensors in the store from keyword arguments.
Megatron-LM/megatron/core/transformer/moe/moe_utils.py:1155
↓ 13 callers
Function
timer
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 callers
Function
_get_partition_bounds
( total_num_samples, num_samples_per_partition, num_partitions, partition_id )
Megatron-LM/examples/multimodal/evaluation/evaluation_datasets.py:17
↓ 12 callers
Method
_run_test
(cls, **test_config_kwargs)
Megatron-LM/tests/unit_tests/inference/engines/test_dynamic_engine.py:467
↓ 12 callers
Method
add
Track the rng state.
Megatron-LM/megatron/core/tensor_parallel/random.py:217
↓ 12 callers
Function
build_tokenizer
Megatron-LM/megatron/core/tokenizers/text/utils/build_tokenizer.py:10
↓ 12 callers
Method
cleanup
Stop and remove the Docker container.
swe-rl/mini-swe-agent/src/minisweagent/environments/docker.py:160
↓ 12 callers
Method
convert_checkpoint
Convert checkpoint
Megatron-LM/tests/functional_tests/test_cases/common/ckpt_converter/__main__.py:449
↓ 12 callers
Function
destroy_num_microbatches_calculator
Destroy number of microbatches calculator.
Megatron-LM/megatron/core/num_microbatches_calculator.py:101
↓ 12 callers
Method
execute
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 callers
Method
execute
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 callers
Function
filter_instances
Filter and slice a list of SWEBench instances.
swe-rl/mini-swe-agent/src/minisweagent/run/extra/swebench.py:171
↓ 12 callers
Method
from_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 callers
Method
get_bucket_key
Get the key for the bucket.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:3307
↓ 12 callers
Function
get_checkpoint_tracker_filename
Tracker file rescords the latest chckpoint during training to restart from.
Megatron-LM/megatron/training/checkpointing.py:256
↓ 12 callers
Function
get_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 callers
Function
get_tensor_model_parallel_group
Get the tensor-model-parallel group the caller rank belongs to.
Megatron-LM/megatron/core/parallel_state.py:1365
↓ 12 callers
Method
is_current_rank_in_grid
Check if the current rank is in the grid.
Megatron-LM/megatron/core/pipeline_parallel/bridge_communicator.py:223
↓ 12 callers
Function
is_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 callers
Function
main
( 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 callers
Method
save
(self, rollout_id)
gui-rl/gui_data_source.py:117
↓ 12 callers
Method
send
(self, *a, **kw)
slime/slime/utils/reloadable_process_group.py:232
↓ 12 callers
Method
tokenize_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 callers
Function
add_chunck_tensor
(new_tensor, new_name, chunk_dim=None)
Megatron-LM/examples/multimodal/model_converter/siglip_converter.py:26
↓ 11 callers
Method
async_train
Do one rollout training
slime/slime/ray/actor_group.py:115
↓ 11 callers
Function
check_first_val_step
Check if it is the first validation step.
Megatron-LM/megatron/core/pipeline_parallel/schedules.py:504
↓ 11 callers
Method
connect
(self, critic_group)
slime/slime/ray/actor_group.py:136
↓ 11 callers
Function
destroy_global_vars
()
Megatron-LM/megatron/training/global_vars.py:286
↓ 11 callers
Method
end
(self, name)
slime/slime/utils/timer.py:26
↓ 11 callers
Method
get_dp_group
Get the data parallel process group.
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:595
↓ 11 callers
Function
get_gpt_mtp_block_spec
GPT Multi-Token Prediction (MTP) block spec.
Megatron-LM/megatron/core/models/gpt/gpt_layer_specs.py:782
↓ 11 callers
Function
get_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
← previous
next →
201–300 of 10,561, ranked by callers