MCPcopy Create free account

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

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

Methodids_to_tokens
Convert a list of IDs to a list of tokens.
Megatron-LM/megatron/core/tokenizers/text/libraries/bytelevel_tokenizer.py:98
Methodids_to_tokens
Converts list of tokens ids to it's token values.
Megatron-LM/megatron/core/tokenizers/text/libraries/sentencepiece_tokenizer.py:253
Methodids_to_tokens
Converts ids to tokens. Args: ids (List[int]): ids to be converted. Returns: List[str]: list of tok
Megatron-LM/megatron/core/tokenizers/text/libraries/abstract_tokenizer.py:52
Functionif_quant
(name, patterns)
slime/slime/backends/megatron_utils/megatron_to_hf/processors/quantizer_compressed_tensors.py:226
Methodimport_model_provider
Return the correct model_provider function depending on GPT vs. BERT.
Megatron-LM/tools/checkpoint/loader_core.py:55
Methodimport_model_provider
(self)
Megatron-LM/tools/checkpoint/saver_core.py:34
Methodimport_model_provider
(self)
Megatron-LM/tools/checkpoint/loader_llava.py:96
Methodimport_model_provider
(self)
Megatron-LM/tools/checkpoint/saver_llava.py:164
Functionincrease_saturation
(image1_path: str, image2_path: str)
gui-rl/desktop_env/evaluators/metrics/gimp.py:62
Methodincrement_batch_size_offset
Update batch size offset. No-op for dynamic batching.
Megatron-LM/megatron/core/inference/contexts/base_context.py:35
Functioninfeasible
()
gui-rl/desktop_env/evaluators/metrics/__init__.py:159
Methodinference_params
Getter for deprecated `inference_params`.
Megatron-LM/megatron/core/inference/model_inference_wrappers/abstract_model_inference_wrapper.py:89
Functioninit
Initialize the NCCL allocator. PyTorch tracks memory registration at the pool level, not per allocation. If a pool already contains allo
Megatron-LM/megatron/core/nccl_allocator.py:141
Methodinit
(self, dist_init_addr, port, nccl_port, host=None, disaggregation_bootstrap_port=None)
slime/slime/backends/sglang_utils/sglang_engine.py:133
Methodinit
( self, args: Namespace, role: str, with_ref: bool = False, )
slime/slime/backends/megatron_utils/actor.py:159
Methodinit
(self, args: Namespace, role: str, with_ref: bool = False)
slime/slime/backends/fsdp_utils/actor.py:48
Functioninit_
(tensor)
Megatron-LM/megatron/legacy/model/utils.py:15
Methodinit_args_and_model
Initialize Megatron and build model.
Megatron-LM/tests/functional_tests/test_cases/common/ckpt_converter/__main__.py:761
Functioninit_model_parallel
Init torch distributed.
Megatron-LM/tests/unit_tests/test_checkpointing.py:152
Functioninit_model_parallel
Init torch distributed.
Megatron-LM/tests/unit_tests/distributed/test_torch_fully_sharded_parallel.py:39
Methodinit_state_dict_from_bert
Initialize the state from a pretrained BERT model on iteration zero of ICT pretraining
Megatron-LM/megatron/legacy/model/biencoder_model.py:180
Functioninit_state_fn
(opt, config=None)
Megatron-LM/megatron/core/optimizer/__init__.py:363
Methodinit_tensors
Initializes empty tensors with the same properties as the original tensors. This function should only be called after the original t
Megatron-LM/megatron/core/dist_checkpointing/tensor_aware_state_dict.py:230
Functioninit_wandb_primary
(args)
slime/slime/utils/wandb_utils.py:22
Functioninit_wandb_secondary
(args, router_addr=None)
slime/slime/utils/wandb_utils.py:95
Methodinit_weights
(self, pretrained='', pretrained_layers=[], verbose=True)
Megatron-LM/megatron/legacy/model/vision/esvit_swin_backbone.py:716
Methodinit_weights_update_group
(self, master_address, master_port, rank_offset, world_size, group_name, backend)
slime/slime/backends/sglang_utils/sglang_engine.py:374
Functioninitialize_1d_flatten_tensor_model
( pre_process=True, post_process=True, seed=0, **config_kwargs )
Megatron-LM/tests/unit_tests/dist_checkpointing/test_optimizer.py:258
Functioninitialize_bert_model
( seed, layer_spec_fn=bert_layer_with_transformer_engine_spec, vocab_size=128, **config_kwargs )
Megatron-LM/tests/unit_tests/dist_checkpointing/models/test_bert_model.py:26
Functioninitialize_gpt_model
(seed, layer_spec_fn=gpt_te_spec, vocab_size=128, **config_kwargs)
Megatron-LM/tests/unit_tests/dist_checkpointing/models/test_gpt_model.py:37
Functioninitialize_gpt_model
(config, pre_process=True, post_process=True, vp_stage=None)
Megatron-LM/tests/unit_tests/transformer/test_multi_latent_attention.py:1313
Functioninitialize_gpt_model
(config, pre_process=True, post_process=True, vp_stage=None)
Megatron-LM/tests/unit_tests/transformer/test_attention.py:528
Functioninitialize_gpt_model
(config, pre_process=True, post_process=True, vp_stage=None)
Megatron-LM/tests/unit_tests/ssm/test_gated_delta_net.py:158
Functioninitialize_model_parallel
Initialize model data parallel groups. Args: tensor_model_parallel_size (int, default = 1): The number of GPUs to split indiv
Megatron-LM/megatron/core/parallel_state.py:543
Functioninitialize_moe_model
( pre_process=True, post_process=True, seed=0, use_glu=True, use_sp=False, use_te=Fals
Megatron-LM/tests/unit_tests/dist_checkpointing/utils.py:57
Functioninitialize_pp_agnostic_gpt_model
(pre_process=True, post_process=True, seed=0, **config_kwargs)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_optimizer.py:247
Functioninitialize_pp_agnostic_model
(pre_process=True, post_process=True, seed=0, **config_kwargs)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_optimizer.py:240
Functioninitialize_real_model
( seed, pre_process, post_process, vp_stage=None, is_moe=False, is_mla=False, virt
Megatron-LM/tests/unit_tests/dist_checkpointing/test_layer_wise_optimizer.py:55
Functioninitialize_real_model
( seed, pre_process, post_process, vp_stage=None, is_moe=False, is_mla=False, virt
Megatron-LM/tests/unit_tests/dist_checkpointing/test_optimizer.py:269
Methodinitialize_registry
Initialize registry.
gui-rl/desktop_env/providers/base.py:51
Methodinitialize_registry
(self)
gui-rl/desktop_env/providers/docker/manager.py:106
Functioninitialize_small_model
(pre_process=True, post_process=True, seed=0, **config_kwargs)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_optimizer.py:251
Methodinitializer
(self)
Megatron-LM/tools/preprocess_mmdata.py:48
Methodinitializer
(self)
Megatron-LM/tools/preprocess_data_nmt.py:22
Functioninner
(func)
Megatron-LM/megatron/core/utils.py:92
Methodinner
(self)
slime/slime/utils/misc.py:102
Functioninspect
Inspect a Megatron Core Distributed Checkpoint
Megatron-LM/tools/checkpoint/checkpoint_inspector.py:73
Functioninspect_types
Helper to print types of (nested) dict values.
Megatron-LM/megatron/core/dist_checkpointing/dict_utils.py:138
Functioninternal_api
Mark a function or class as internal API (not for external use). Use this decorator for: - Internal APIs not intended for public consump
Megatron-LM/megatron/core/utils.py:2448
Methodinv_scale
(self)
Megatron-LM/megatron/core/optimizer/grad_scaler.py:22
Methodinv_vocab
Returns tokenizer vocab with reversed keys and values.
Megatron-LM/megatron/core/tokenizers/text/text_tokenizer.py:256
Methodinv_vocab
Megatron-LM/megatron/core/tokenizers/text/libraries/null_tokenizer.py:60
Methodinv_vocab
Returns tokenizer vocab with reversed keys and values.
Megatron-LM/megatron/core/tokenizers/text/libraries/huggingface_tokenizer.py:267
Methodinv_vocab
Returns tokenizer vocab with reversed keys and values.
Megatron-LM/megatron/core/tokenizers/text/libraries/sentencepiece_tokenizer.py:409
Methodinv_vocab
Returns tokenizer vocab with reversed keys and values.
Megatron-LM/megatron/core/tokenizers/text/libraries/tiktoken_tokenizer.py:301
Methodinv_vocab
Dictionary from vocab id token to text token
Megatron-LM/megatron/core/datasets/megatron_tokenizer.py:91
Methodinv_vocab
Dictionary from vocab id token to text token.
Megatron-LM/megatron/training/tokenizer/tokenizer.py:155
Methodinv_vocab
(self)
Megatron-LM/megatron/training/tokenizer/tokenizer.py:245
Methodinv_vocab
(self)
Megatron-LM/megatron/training/tokenizer/tokenizer.py:350
Methodinv_vocab
(self)
Megatron-LM/megatron/training/tokenizer/tokenizer.py:450
Methodinv_vocab
(self)
Megatron-LM/megatron/training/tokenizer/tokenizer.py:773
Methodinv_vocab
(self)
Megatron-LM/megatron/training/tokenizer/tokenizer.py:847
Methodinv_vocab
(self)
Megatron-LM/megatron/training/tokenizer/tokenizer.py:920
Methodinv_vocab
Inverse vocab.
Megatron-LM/megatron/training/tokenizer/multimodal_tokenizer.py:333
Methodinv_vocab
Inverse vocab.
Megatron-LM/megatron/training/tokenizer/sft_tokenizer.py:189
Functionis_added_to_steam_cart
Check if the item is added to the Steam cart.
gui-rl/desktop_env/evaluators/metrics/chrome.py:491
Methodis_checking_enabled
Return whether health checking is currently enabled (not paused).
slime/slime/utils/health_monitor.py:102
Functionis_cookie_deleted
Check if the cookie is deleted.
gui-rl/desktop_env/evaluators/metrics/chrome.py:410
Methodis_current_async_call_done
Check if async save is finished on all ranks. For semantic correctness, requires rank synchronization in each check. This method must
Megatron-LM/megatron/core/dist_checkpointing/strategies/async_utils.py:223
Methodis_current_async_call_done
Check if async save is finished on all ranks. For semantic correctness, requires rank synchronization in each check. This method must
Megatron-LM/megatron/core/dist_checkpointing/strategies/async_utils.py:361
Functionis_dataset_built_on_rank
(vp_stage=None)
Megatron-LM/pretrain_gpt.py:183
Functionis_dataset_built_on_rank
(vp_stage=None)
Megatron-LM/pretrain_mamba.py:147
Methodis_evictable
Check if this node can be evicted.
slime/slime/router/middleware_hub/radix_tree.py:82
Functionis_expected_active_tab
Checks if the expected active tab is open in Chrome.
gui-rl/desktop_env/evaluators/metrics/chrome.py:18
Functionis_expected_active_tab_approximate
Checks if the expected active tab is open in Chrome, ignoring query parameters in the URL.
gui-rl/desktop_env/evaluators/metrics/chrome.py:41
Functionis_expected_bookmarks
Checks if the expected bookmarks are in Chrome.
gui-rl/desktop_env/evaluators/metrics/chrome.py:143
Functionis_expected_installed_extensions
(installed_extensions, expected)
gui-rl/desktop_env/evaluators/metrics/chrome.py:102
Functionis_expected_search_query
(active_tab_info: Dict[str, str], rules: Dict[str, Any])
gui-rl/desktop_env/evaluators/metrics/chrome.py:186
Functionis_expected_tabs
Checks if the expected tabs are open in Chrome.
gui-rl/desktop_env/evaluators/metrics/chrome.py:120
Functionis_expected_url_pattern_match
This function is used to search the expected pattern in the url using regex. result is the return value of function "activte_tab_info" or ret
gui-rl/desktop_env/evaluators/metrics/chrome.py:70
Functionis_extension_installed
(actual: str, rules: Dict, **options)
gui-rl/desktop_env/evaluators/metrics/vscode.py:197
Functionis_first_line_centered
(docx_file)
gui-rl/desktop_env/evaluators/metrics/docs.py:615
Functionis_gold_text_included_in_pdf
(pdf_file_path, gold_text_path)
gui-rl/desktop_env/evaluators/metrics/general.py:527
Methodis_hollow
True iff tensors had been extracted and have not been inserted back yet.
Megatron-LM/megatron/core/dist_checkpointing/tensor_aware_state_dict.py:155
Functionis_image_file
Checks if a file is an allowed image extension. Args: filename (string): path to a file Returns: bool: True if the filename en
Megatron-LM/megatron/legacy/data/image_folder.py:54
Functionis_in_list
(result, rules)
gui-rl/desktop_env/evaluators/metrics/general.py:76
Functionis_in_vm_clickboard
(config, terminal_output)
gui-rl/desktop_env/evaluators/metrics/basic_os.py:58
Functionis_included_all_json_objects
(gold_file_path, result_file_path)
gui-rl/desktop_env/evaluators/metrics/general.py:508
Methodis_initialized
Checks if the internal RNG state has been set with set_states().
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:240
Methodis_leaf
Check if this node is a leaf node.
slime/slime/router/middleware_hub/radix_tree.py:57
Functionis_nvfp4tensor
Check if a tensor is a Transformer Engine NVFP4Tensor.
Megatron-LM/megatron/core/fp4_utils.py:46
Methodis_pp_first_stage
Return True if the current rank has the absolute first stage in the overall model. The absolute first stage is defined as: 1. The cur
Megatron-LM/megatron/core/pipeline_parallel/multimodule_communicator.py:107
Methodis_pp_last_stage
Return True if the current rank has the absolute last stage in the overall model. The absolute last stage is defined as: 1. The curre
Megatron-LM/megatron/core/pipeline_parallel/multimodule_communicator.py:123
Functionis_rank_in_embedding_group
Return true if current rank is in embedding group, False otherwise.
Megatron-LM/megatron/core/parallel_state.py:1601
Functionis_rank_in_position_embedding_group
Return true if current rank is in position embedding group, False otherwise.
Megatron-LM/megatron/core/parallel_state.py:1619
Functionis_shortcut_on_desktop
Check if the shortcut is on the desktop.
gui-rl/desktop_env/evaluators/metrics/chrome.py:426
Functionis_singularity_available
Check if Singularity is available.
swe-rl/mini-swe-agent/tests/environments/test_singularity.py:10
Methodis_static_batching
Is static batching? False.
Megatron-LM/megatron/core/inference/contexts/dynamic_context.py:728
Methodis_static_batching
(self)
Megatron-LM/megatron/core/inference/contexts/static_context.py:129
Functionis_submodule
Check if a module is a submodule of another module.
Megatron-LM/megatron/core/utils.py:1940
← previousnext →8,001–8,100 of 10,561, ranked by callers