MCPcopy Create free account

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

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

↓ 4 callersMethodstep_modern
Synchronous wrapper for `self.async_step`.
Megatron-LM/megatron/core/inference/engines/dynamic_engine.py:1236
↓ 4 callersMethodstop_engines
Sends a signal to gracefully stop all inference engines. The signal first propagates thru the coordinator to all engines. All engines
Megatron-LM/megatron/core/inference/inference_client.py:225
↓ 4 callersFunctionstrip_ansi_codes
Remove ANSI escape codes (terminal formatting) from text. Griffe includes ANSI codes for terminal formatting in some strings, which break
Megatron-LM/scripts/check_api_backwards_compatibility.py:139
↓ 4 callersFunctionswiglu
Performs SwiGLU (Swish-Gated Linear Unit) activation function. Args: y (torch.Tensor): Input tensor to be split into two halves along the
Megatron-LM/megatron/core/fusions/fused_bias_swiglu.py:16
↓ 4 callersMethodtext_to_tokens
Converts text to tokens.
Megatron-LM/megatron/core/tokenizers/text/libraries/huggingface_tokenizer.py:212
↓ 4 callersFunctionto_local_if_dtensor
Returns the local shard of the given tensor if it is a DTensor.
Megatron-LM/megatron/core/utils.py:1027
↓ 4 callersMethodtokenize
Encoding function.
Megatron-LM/megatron/core/tokenizers/base_tokenizer.py:26
↓ 4 callersMethodtokenize
(self, text)
Megatron-LM/megatron/training/tokenizer/tokenizer.py:824
↓ 4 callersMethodunk_id
Returns id of unknown tokens.
Megatron-LM/megatron/core/tokenizers/text/libraries/sentencepiece_tokenizer.py:374
↓ 4 callersMethodupdate_instance_status
(self, instance_id: str, message: str)
swe-rl/mini-swe-agent/src/minisweagent/run/extra/utils/batch_progress.py:125
↓ 4 callersFunctionupdate_preds_file
Update the output JSON file with results from a single instance.
swe-rl/mini-swe-agent/src/minisweagent/run/extra/swebench.py:97
↓ 4 callersFunctionupdate_uneven_dtensor_chunk_metadata
Update the DTensor's chunk metadata to handle uneven sharding. This function modifies the DTensor in-place to include chunk metadata and
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/uneven_dtensor.py:97
↓ 4 callersMethodvocab_range_from_global_vocab_size
Vocab range from global vocab size.
Megatron-LM/megatron/core/tensor_parallel/utils.py:114
↓ 4 callersMethodwait_current_stream
Waits for the event to complete on the current CUDA stream.
Megatron-LM/megatron/core/models/common/model_chunk_schedule_plan.py:401
↓ 4 callersMethodwait_for_previous_grad_reduce
Wait for the previous reduce-scatter/all-reduce to finish. Args: suggested_queue_size (int, optional): The recommended qu
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:2993
↓ 4 callersFunctionweak_method
Creates a weak reference to a method to prevent circular references. This function creates a weak reference to a method and returns a wrapper fun
Megatron-LM/megatron/core/models/gpt/fine_grained_callables.py:27
↓ 4 callersMethodwrite
(self, data)
slime/slime_plugins/rollout_buffer/buffer.py:238
↓ 4 callersMethodwrite_metadata
Creates metadata file for tokenizer. Args: tokenizer_path (str): path to tokenizer model. tokenizer_library
Megatron-LM/megatron/core/tokenizers/megatron_tokenizer.py:91
↓ 3 callersMethod__enter__
(self)
Megatron-LM/megatron/training/dist_signal_handler.py:60
↓ 3 callersMethod__enter__
(self)
Megatron-LM/tests/unit_tests/dist_checkpointing/__init__.py:59
↓ 3 callersMethod__init__
(self, model, env, **kwargs)
swe-rl/mini-swe-agent/src/minisweagent/agents/interactive_textual.py:262
↓ 3 callersMethod__init__
( self, config: TinkerConfig, output_queue: queue.Queue, submission_enabled: t
openclaw-tinker/api_server.py:143
↓ 3 callersMethod__init__
(self, model_type, layer_schema, prefix)
Megatron-LM/tools/checkpoint/schema_core.py:19
↓ 3 callersMethod__init__
(self, out_dim, ncrops, warmup_teacher_temp, teacher_temp, warmup_teacher_temp_epochs, nepoch
Megatron-LM/megatron/legacy/model/vision/dino.py:24
↓ 3 callersMethod__init__
( self, request_id: Optional[int], message: Optional[str] = None, *, is_transient: bool = True )
Megatron-LM/megatron/core/inference/contexts/dynamic_context.py:80
↓ 3 callersMethod__init__
( self, *args, dedup_replicated_tensors: Optional[bool] = None, nd_flattened_g
Megatron-LM/megatron/core/dist_checkpointing/strategies/torch.py:488
↓ 3 callersMethod__init__
Initialize the DeepEP dispatcher. Args: group (torch.distributed.ProcessGroup): The process group to use for communicati
Megatron-LM/megatron/core/transformer/moe/token_dispatcher.py:1116
↓ 3 callersMethod__init__
( self, num_local_experts: int, config: TransformerConfig, pg_collection: Opti
Megatron-LM/megatron/core/transformer/moe/experts.py:75
↓ 3 callersMethod__init__
(self, inner_dicts: List[dict])
Megatron-LM/megatron/core/optimizer/optimizer.py:1050
↓ 3 callersMethod__init__
(self)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_optimizer.py:45
↓ 3 callersMethod__init__
(self)
slime/examples/multi_agent/agent_system.py:81
↓ 3 callersMethod__init__
( self, language_transformer_config, language_transformer_layer_spec: ModuleSpec,
slime/slime_plugins/megatron_bridge/qwen35_vl.py:627
↓ 3 callersMethod_add_vm
(self, vm_path, region=None)
gui-rl/desktop_env/providers/virtualbox/manager.py:325
↓ 3 callersMethod_add_vm
(self, vm_path, region=None)
gui-rl/desktop_env/providers/vmware/manager.py:313
↓ 3 callersMethod_allocate_recv_buffer
Receive happens between the layers with size [seq_len, batch_size, hidden_size].
Megatron-LM/megatron/core/inference/model_inference_wrappers/abstract_model_inference_wrapper.py:187
↓ 3 callersMethod_append_prm_record
(self, session_id: str, turn_num: int, score: float, votes: list, representative: s
openclaw-rl/openclaw_api_server.py:351
↓ 3 callersFunction_apply_container_memory_limit
Best-effort ``docker update --memory`` on a running container.
terminal-rl/remote/docker_compose_utils.py:220
↓ 3 callersFunction_asdict
Convert config objects to dicts.
swe-rl/mini-swe-agent/src/minisweagent/run/utils/save.py:15
↓ 3 callersFunction_avg_params
(module: torch.nn.Module, group: dist.ProcessGroup = None)
Megatron-LM/tests/unit_tests/pipeline_parallel/test_bridge_communicator.py:142
↓ 3 callersFunction_bias_dropout_add_func
(x_with_bias, residual, prob, training)
Megatron-LM/megatron/core/fusions/fused_bias_dropout.py:11
↓ 3 callersMethod_buffer_record
(self, session_id: str, turn_num: int, messages: list, prompt_text: str, response_text:
openclaw-tinker/api_server.py:301
↓ 3 callersFunction_build_tokenizer
Initialize tokenizer.
Megatron-LM/megatron/training/global_vars.py:156
↓ 3 callersMethod_call_deployment_chat
Forward a chat completions request to the Fireworks deployment. On HTTP 425 (model hot-loading), automatically extends the retry budget
openclaw-fireworks/fireworks_server.py:375
↓ 3 callersMethod_cast_value
Casts weights to the expected datatype. When appropriate scaling factor is found inside self.scales, the weight gets scaled before the cas
Megatron-LM/megatron/core/export/trtllm/trtllm_weights_converter/single_device_trtllm_model_weights_converter.py:95
↓ 3 callersMethod_check_and_clean
(self, vms_dir)
gui-rl/desktop_env/providers/virtualbox/manager.py:373
↓ 3 callersMethod_check_and_clean
(self, vms_dir)
gui-rl/desktop_env/providers/vmware/manager.py:361
↓ 3 callersMethod_check_log_message
(self, text, should_contain_missing, should_contain_unexpected)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_strict.py:137
↓ 3 callersFunction_compute_hash_dict
(tensors: dict[str, torch.Tensor])
slime/slime/utils/tensor_backper.py:105
↓ 3 callersFunction_convert_key_value
Get value from src_dict according to the key, and copy value to dist_dict with new key. The new key is generated by formatting old ke
Megatron-LM/megatron/core/transformer/moe/upcycling_utils.py:205
↓ 3 callersMethod_copy_main_params_to_param_buffer
This function is only used for MXFP8 params. Copy FP32 main params directly to param buffer for param all-gather since param
Megatron-LM/megatron/core/optimizer/distrib_optimizer.py:2465
↓ 3 callersMethod_decode_extra_state
(self, state)
Megatron-LM/megatron/core/extensions/transformer_engine.py:1446
↓ 3 callersFunction_decode_obs
(obs: dict[str, Any])
gui-rl/env_client.py:10
↓ 3 callersMethod_describe_instance
Get instance details
gui-rl/desktop_env/providers/aliyun/provider.py:217
↓ 3 callersMethod_detokenize
Detokenize a sequence of token IDs, handling skip_special_tokens for different tokenizer APIs. On the first call, inspects `
Megatron-LM/megatron/core/inference/text_generation_controllers/text_generation_controller.py:138
↓ 3 callersFunction_does_param_require_new_bucket
Split shared embedding parameters into separate bucket if using distributed optimizer that makes use of reduce-scatters instead of al
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:1301
↓ 3 callersMethod_dynamic_step_calculate_top_n_logprobs
Calculate top-n log probs from logits for dynamic batching. Args: logits (Tensor): The logits to compute top-n log probs from.
Megatron-LM/megatron/core/inference/text_generation_controllers/text_generation_controller.py:752
↓ 3 callersMethod_dynamic_step_sample_bookkeeping
Perform bookkeeping necessary to sample logits for dynamic batching. The ability to override the context's data is solely intended for
Megatron-LM/megatron/core/inference/text_generation_controllers/text_generation_controller.py:577
↓ 3 callersFunction_encode_obs
(obs: dict[str, Any])
gui-rl/env_pool_server.py:22
↓ 3 callersFunction_ensure_lock_files
(path_pattern: str, total_gpus: int)
slime/tests/ci/gpu_lock_exec.py:174
↓ 3 callersFunction_eval_pattern
Validate and evaluate a string containing a Python list expression
Megatron-LM/megatron/training/arguments.py:279
↓ 3 callersMethod_execute_setup
( self, command: List[str], stdout: str = "", stderr: str = ""
gui-rl/desktop_env/controllers/setup.py:340
↓ 3 callersMethod_fim_split_and_permute_sequence
If self.fim_split_sample is not None, split the sequence. Then apply FIM on the fragments, or the whole sequence if self.fim_split_sa
Megatron-LM/megatron/training/datasets/fim_dataset.py:198
↓ 3 callersFunction_find_submodule
Find sub-module in model
Megatron-LM/megatron/core/transformer/moe/upcycling_utils.py:22
↓ 3 callersFunction_flatten_message_content
Extract plain text from multimodal content lists.
openclaw-rl/openclaw_api_server.py:33
↓ 3 callersFunction_flatten_message_content
(content)
openclaw-fireworks/fireworks_server.py:66
↓ 3 callersFunction_format_exception
(exc: Exception)
terminal-rl/generate.py:53
↓ 3 callersMethod_format_proxy_url
Format proxy URL
gui-rl/desktop_env/providers/aws/proxy_pool.py:135
↓ 3 callersMethod_forward
Runs a forward pass of the model. Args: inference_input(Dict[str, Any]): The input data. Returns: The model
Megatron-LM/megatron/core/inference/model_inference_wrappers/abstract_model_inference_wrapper.py:149
↓ 3 callersMethod_forward_to_tinker
Forward inference request to Tinker SamplingClient.
openclaw-tinker/api_server.py:232
↓ 3 callersFunction_get_all_rng_states
Get all the rng states.
Megatron-LM/megatron/core/tensor_parallel/random.py:444
↓ 3 callersMethod_get_base_state_dict
(self)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_strict.py:37
↓ 3 callersMethod_get_batch_size_and_seq_len
Returns the batch size and sequence length based on the tokens tensor and recv_buffer_seq_len. Args: tokens (torch.Tenso
Megatron-LM/megatron/core/inference/model_inference_wrappers/abstract_model_inference_wrapper.py:169
↓ 3 callersFunction_get_class_name_with_module
Get the full class name with module path.
swe-rl/mini-swe-agent/src/minisweagent/run/utils/save.py:10
↓ 3 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/distributed/fsdp/src/megatron_fsdp/utils.py:133
↓ 3 callersFunction_get_dp_buffer_shard_bucket_index
Build the data parallel buffer shard bucket index from the bucket index. Args: bucket_index (BucketIndex): The bucket index containi
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:380
↓ 3 callersMethod_get_energy
Get current energy consumption from NVML.
Megatron-LM/megatron/core/energy_monitor.py:59
↓ 3 callersFunction_get_extra_kitchen_kwargs
(config: TransformerConfig)
Megatron-LM/megatron/core/extensions/kitchen.py:164
↓ 3 callersMethod_get_layers
(self, model)
Megatron-LM/tools/checkpoint/schema_base.py:52
↓ 3 callersMethod_get_main_param_and_optimizer_states
Return a dict containing the main param and optimizer states corresponding to the input model_param. The structure of the returned di
Megatron-LM/megatron/core/optimizer/distrib_optimizer.py:874
↓ 3 callersFunction_get_megatron_optimizer_based_on_param_groups
Get Megatron optimizer based on parameter groups. Args: config (OptimizerConfig): optimizer configuration object. model_chunks (l
Megatron-LM/megatron/core/optimizer/__init__.py:239
↓ 3 callersFunction_get_new_data_iterator
(sample_id_in_group, group_id)
Megatron-LM/megatron/core/pipeline_parallel/hybrid_cp_schedule.py:539
↓ 3 callersMethod_get_obs
(self)
gui-rl/desktop_env/desktop_env.py:306
↓ 3 callersFunction_get_param_groups_and_buffers
Returns parameter groups and buffer for optimizer. Args: model_chunks (List[MegatronModule]): model chunks to create parameter
Megatron-LM/megatron/core/optimizer/__init__.py:204
↓ 3 callersMethod_get_rollout_data
(self, rollout_data_ref: Box)
slime/slime/backends/megatron_utils/actor.py:397
↓ 3 callersMethod_list_free_vms
(self)
gui-rl/desktop_env/providers/virtualbox/manager.py:426
↓ 3 callersMethod_list_free_vms
(self)
gui-rl/desktop_env/providers/vmware/manager.py:414
↓ 3 callersMethod_load_current_trajectory
Load the currently selected trajectory file.
swe-rl/mini-swe-agent/src/minisweagent/run/inspector.py:94
↓ 3 callersMethod_maintain_float32_expert_bias
Maintain the expert bias in float32. When using bf16/fp16, the expert bias gets converted to lower precision in Float16Module.
Megatron-LM/megatron/core/transformer/moe/router.py:207
↓ 3 callersMethod_maybe_submit_ready_samples
Submit turns whose PRM is done (or PRM not needed). force_no_prm: also submit turns that have no PRM task yet (used at session end fo
openclaw-rl/openclaw_api_server.py:592
↓ 3 callersMethod_maybe_submit_ready_samples
(self, session_id: str, force_drop_without_next_state: bool = False)
openclaw-opd/openclaw_opd_api_server.py:824
↓ 3 callersMethod_maybe_submit_ready_samples
( self, session_id: str, force_drop_without_next_state: bool = False, )
openclaw-fireworks/fireworks_server.py:660
↓ 3 callersMethod_maybe_submit_ready_samples
(self, session_id, force_no_prm=False)
openclaw-tinker/api_server.py:589
↓ 3 callersMethod_maybe_submit_ready_samples
(self, session_id, force_drop=False)
openclaw-tinker/api_server.py:753
↓ 3 callersMethod_maybe_submit_ready_samples
(self, session_id, force_drop=False)
openclaw-tinker/api_server.py:960
↓ 3 callersMethod_new_slot
(self)
gui-rl/env_pool_server.py:73
↓ 3 callersFunction_normalize_messages
Normalize messages for the chat template (developer -> system, flatten content).
openclaw-tinker/api_server.py:63
↓ 3 callersFunction_normalize_messages_for_template
(messages: list[dict])
openclaw-rl/oel/openclaw_oel_api_server.py:138
↓ 3 callersFunction_normalize_messages_for_template
(messages: list[dict])
openclaw-fireworks/fireworks_server.py:78
↓ 3 callersFunction_opd_one_sample
verl-aligned top-K OPD surrogate for one sample. Pipeline (notation matches the file docstring): 1. Build ``S_t = student_indices ∩ teach
openclaw-combine/hint_opd_loss.py:309
↓ 3 callersFunction_pad
(number_to_be_padded: int, divisor: int)
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:248
← previousnext →1,001–1,100 of 10,561, ranked by callers