MCPcopy Create free account

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

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

Method__init__
(self, default: bool = False)
Megatron-LM/megatron/core/msc_utils.py:20
Method__init__
(self, name)
Megatron-LM/megatron/core/timers.py:38
Method__init__
(self)
Megatron-LM/megatron/core/timers.py:81
Method__init__
Initialize group of timers. Args: log_level (int): Log level to control what timers are enabled. log_option (str): Se
Megatron-LM/megatron/core/timers.py:209
Method__init__
(self, pool, enabled=True, device=None, group=None, symmetric=True)
Megatron-LM/megatron/core/nccl_allocator.py:165
Method__init__
( self, pool, groups, symmetric=True )
Megatron-LM/megatron/core/nccl_allocator.py:260
Method__init__
(self, *args, **kwargs)
Megatron-LM/megatron/core/utils.py:247
Method__init__
(self)
Megatron-LM/megatron/core/utils.py:608
Method__init__
(self, tensor: torch.Tensor)
Megatron-LM/megatron/core/utils.py:653
Method__init__
Initializer Args: _value (float): the initial value with which it is inited _rank (int): the rank number
Megatron-LM/megatron/core/utils.py:1191
Method__init__
Initializer The inital state of the StragglerDetector instance is disabled. The enabled state is indicated using self._off member var
Megatron-LM/megatron/core/utils.py:1342
Method__init__
( self, tp: int, ep: int, dp: int, pp: int, cp: int, order: str, rank_offset: int = 0 )
Megatron-LM/megatron/core/parallel_state.py:445
Method__init__
(self)
Megatron-LM/megatron/core/full_cuda_graph.py:62
Method__init__
(self, forward_backward_func, cuda_graph_warmup_steps=1)
Megatron-LM/megatron/core/full_cuda_graph.py:101
Method__init__
( self, optimizer: MegatronOptimizer, init_lr: float, max_lr: float, m
Megatron-LM/megatron/core/optimizer_param_scheduler.py:39
Method__init__
( self, shape: list[int], dim_names: list[str], rank_offset: int = 0,
Megatron-LM/megatron/core/hyper_comm_grid.py:82
Method__init__
( self, state_save_func: Optional[Callable[[], SerializableStateType]] = None, state_r
Megatron-LM/megatron/core/rerun_state_machine.py:183
Method__init__
(self, iterable: Iterable[Any])
Megatron-LM/megatron/core/rerun_state_machine.py:1046
Method__init__
(self, max_size: int = 100000)
Megatron-LM/megatron/core/rerun_state_machine.py:1103
Method__init__
( self, error_injection_rate: int = 0, error_injection_type: RerunDiagnostic = RerunDi
Megatron-LM/megatron/core/rerun_state_machine.py:1190
Method__init__
(self)
Megatron-LM/megatron/core/num_microbatches_calculator.py:269
Method__init__
( self, global_batch_size: int, micro_batch_size: int, data_parallel_size: int
Megatron-LM/megatron/core/num_microbatches_calculator.py:315
Method__init__
( self, global_batch_size: int, micro_batch_size: int, data_parallel_size: int
Megatron-LM/megatron/core/num_microbatches_calculator.py:387
Method__init__
Initialize EnergyMonitor.
Megatron-LM/megatron/core/energy_monitor.py:30
Method__init__
(self)
Megatron-LM/megatron/core/tokenizers/megatron_tokenizer.py:30
Method__init__
Args: path (str): path to the tokenizer model. config (dict): tokenizer parameters. library (str): to
Megatron-LM/megatron/core/tokenizers/base_tokenizer.py:9
Method__init__
Args: path (str): path to the tokenizer model. config (dict): tokenizer parameters. library (str): to
Megatron-LM/megatron/core/tokenizers/text/text_tokenizer.py:24
Method__init__
Megatron-LM/megatron/core/tokenizers/text/libraries/null_tokenizer.py:14
Method__init__
( self, tokenizer_path: str, vocab_file: Optional[str] = None, merges_file: Op
Megatron-LM/megatron/core/tokenizers/text/libraries/megatron_hf_tokenizer.py:82
Method__init__
A byte-level tokenizer that encodes text as UTF-8 bytes. This tokenizer treats each byte as a token, with a default vocabulary size of 512
Megatron-LM/megatron/core/tokenizers/text/libraries/bytelevel_tokenizer.py:15
Method__init__
Args: tokenizer_path: corresponds to HuggingFace-AutoTokenizer's 'pretrained_model_name_or_path' input argument.
Megatron-LM/megatron/core/tokenizers/text/libraries/huggingface_tokenizer.py:24
Method__init__
Args: tokenizer_path (str): path to sentence piece tokenizer model. special_tokens (Optional[Union[Dict[str, str], Li
Megatron-LM/megatron/core/tokenizers/text/libraries/sentencepiece_tokenizer.py:25
Method__init__
Args: tokenizer_path (str): path to tokenizer vocabulary. special_tokens (Optional[List[str]]): template for user-def
Megatron-LM/megatron/core/tokenizers/text/libraries/tiktoken_tokenizer.py:71
Method__init__
(self, path: str = None, config: dict = None, **kwargs)
Megatron-LM/megatron/core/tokenizers/text/models/bert_tokenizer.py:9
Method__init__
(self, path: str = None, config: dict = None, **kwargs)
Megatron-LM/megatron/core/tokenizers/text/models/t5_tokenizer.py:9
Method__init__
(self, path: str = None, config: dict = None, **kwargs)
Megatron-LM/megatron/core/tokenizers/text/models/retro_tokenizer.py:9
Method__init__
(self, path: str = None, config: dict = None, **kwargs)
Megatron-LM/megatron/core/tokenizers/text/models/mamba_tokenizer.py:9
Method__init__
(self, path: str = None, config: dict = None, **kwargs)
Megatron-LM/megatron/core/tokenizers/text/models/default_tokenizer.py:9
Method__init__
(self, path: str = None, config: dict = None, **kwargs)
Megatron-LM/megatron/core/tokenizers/text/models/gpt_tokenizer.py:9
Method__init__
( self, config: TransformerConfig, hidden_size: int, eps: float = 1e-5,
Megatron-LM/megatron/core/fusions/fused_layer_norm.py:52
Method__init__
( self, input_in_fp16, input_in_bf16, attn_mask_type, scaled_masked_so
Megatron-LM/megatron/core/fusions/fused_softmax.py:193
Method__init__
(self)
Megatron-LM/megatron/core/fusions/fused_linear_cross_entropy.py:26
Method__init__
Configuration including: - MMA instruction settings - Cluster Shape
Megatron-LM/megatron/core/fusions/linear_cross_entropy/blackwell/fwd_mainloop.py:36
Method__init__
( self, reduction: int, acc_dtype: Type[cutlass.Numeric] = cutlass.Float32
Megatron-LM/megatron/core/fusions/linear_cross_entropy/blackwell/bwd_partial_dlogits.py:30
Method__init__
Initialize the quantization config. The configuration dictionary is copied to defend against modules that mutate the configu
Megatron-LM/megatron/core/quantization/quant_config.py:74
Method__init__
(self, pattern: str, config_key: str)
Megatron-LM/megatron/core/quantization/quant_config.py:115
Method__init__
(self, matchers: List[Matcher], config_dict: Dict[str, Dict])
Megatron-LM/megatron/core/quantization/quant_config.py:132
Method__init__
(self, *args, **kwargs)
Megatron-LM/megatron/core/post_training/modelopt/layers.py:192
Method__init__
( self, num_embeddings: int, embedding_dim: int, *, init_method: Calla
Megatron-LM/megatron/core/tensor_parallel/layers.py:210
Method__init__
( self, input_size, output_size, *, config: ModelParallelConfig,
Megatron-LM/megatron/core/tensor_parallel/layers.py:808
Method__init__
(self, use_cudagraphable_rng=False, is_inference_rng_tracker=False)
Megatron-LM/megatron/core/tensor_parallel/random.py:170
Method__init__
(self, fp8=False)
Megatron-LM/megatron/core/tensor_parallel/random.py:607
Method__init__
( self, input_size: int, output_size: int, *, config: TransformerConfi
Megatron-LM/megatron/core/tensor_parallel/inference_layers.py:45
Method__init__
Initialize WorkHandle object.
Megatron-LM/megatron/core/distributed/reduce_scatter_with_fp32_accumulation.py:13
Method__init__
(self, config: TransformerConfig, module: torch.nn.Module)
Megatron-LM/megatron/core/distributed/data_parallel_base.py:14
Method__init__
( self, config: TransformerConfig, ddp_config: DistributedDataParallelConfig,
Megatron-LM/megatron/core/distributed/torch_fully_sharded_data_parallel.py:55
Method__init__
( self, params: List[torch.nn.Parameter], param_data: Optional[torch.Tensor],
Megatron-LM/megatron/core/distributed/param_and_grad_buffer.py:106
Method__init__
( self, buckets: List[_ParamAndGradBucket], ddp_config: DistributedDataParallelConfig,
Megatron-LM/megatron/core/distributed/param_and_grad_buffer.py:150
Method__init__
( self, ddp_config: DistributedDataParallelConfig, param_dtype: torch.dtype, g
Megatron-LM/megatron/core/distributed/param_and_grad_buffer.py:565
Method__init__
( self, config: TransformerConfig, ddp_config: DistributedDataParallelConfig,
Megatron-LM/megatron/core/distributed/distributed_data_parallel.py:41
Method__init__
( self, config: TransformerConfig, ddp_config: DistributedDataParallelConfig,
Megatron-LM/megatron/core/distributed/fsdp/mcore_fsdp_adapter.py:63
Method__init__
( self, module: torch.nn.Module, dist_index: FSDPDistributedIndex, ddp_config:
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/megatron_fsdp.py:159
Method__init__
(self, is_inference_rng_tracker=False)
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:235
Method__init__
(self, use_cudagraphable_rng=False, is_inference_rng_tracker=False)
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:272
Method__init__
Args: device_mesh (DeviceMesh): The DeviceMesh to use for the DistributedIndex. dp_shard_dim (Optional[str]): The dim
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/utils.py:417
Method__init__
(self, pool, groups)
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:197
Method__init__
(self)
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:493
Method__init__
(self)
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:526
Method__init__
(self, name: str)
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:585
Method__init__
(self, name: str, fsdp_param_groups: List["ParameterGroup"], size: int = 2)
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:648
Method__init__
( self, ddp_config: DistributedDataParallelConfig, params: List[torch.nn.Parameter],
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:808
Method__init__
( self, ddp_config: DistributedDataParallelConfig, module: torch.nn.Module, bu
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:1535
Method__init__
( self, param_and_grad_buffer: ParamAndGradBuffer, rs_stream: Optional[torch.cuda.Stre
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:2895
Method__init__
(self, init_param_with_fp8=False, with_cuda_rng_tracker=False)
Megatron-LM/megatron/core/distributed/fsdp/src/megatron_fsdp/param_and_grad_buffer.py:3684
Method__init__
(self, pp_group: dist.ProcessGroup, config: ModelParallelConfig)
Megatron-LM/megatron/core/pipeline_parallel/p2p_communication.py:146
Method__init__
Initialize a schedule node. Args: forward_func (callable): Function to execute during the forward pass. stream (torch
Megatron-LM/megatron/core/pipeline_parallel/utils.py:151
Method__init__
Initialize the bridge communicator between source and destination grids. CP is not supported yet. Will be added in follow up PR. Arg
Megatron-LM/megatron/core/pipeline_parallel/bridge_communicator.py:49
Method__init__
Initialize the manager with queues and dedicated CUDA streams.
Megatron-LM/megatron/core/pipeline_parallel/fine_grained_activation_offload.py:42
Method__init__
(self, is_first_last_vpp_chunk, min_offloaded_tensor_size)
Megatron-LM/megatron/core/pipeline_parallel/fine_grained_activation_offload.py:244
Method__init__
Initialize the MultiModulePipelineCommunicator. Args: module_to_grid_map (dict): A dictionary mapping module names to Hy
Megatron-LM/megatron/core/pipeline_parallel/multimodule_communicator.py:43
Method__init__
(self, max_seq_len_per_rank: int, dp_cp_group: torch.distributed.ProcessGroup)
Megatron-LM/megatron/core/pipeline_parallel/hybrid_cp_schedule.py:20
Method__init__
Initializes the inference coordinator. This sets up the ZMQ context and a ROUTER socket, binding it to the given port. It th
Megatron-LM/megatron/core/inference/data_parallel_inference_coordinator.py:68
Method__init__
Initializes the InferenceClient. Args: inference_coordinator_port (int): The port number on which the in
Megatron-LM/megatron/core/inference/inference_client.py:57
Method__init__
(self, max_batch_size)
Megatron-LM/megatron/core/inference/scheduler.py:28
Method__init__
(self, maxsize: int = 0)
Megatron-LM/megatron/core/inference/utils.py:181
Method__init__
( self, request_id: int, cancel: Callable[[str], None], loop: Optional[asyncio
Megatron-LM/megatron/core/inference/async_stream.py:24
Method__init__
( self, model: Union['LegacyGPTModel', GPTModel], # type: ignore[name-defined] infere
Megatron-LM/megatron/core/inference/model_inference_wrappers/abstract_model_inference_wrapper.py:45
Method__init__
( self, model: GPTModel, inference_wrapper_config: InferenceWrapperConfig, inf
Megatron-LM/megatron/core/inference/model_inference_wrappers/gpt/gpt_inference_wrapper.py:33
Method__init__
( self, model: T5Model, inference_wrapper_config: InferenceWrapperConfig, infe
Megatron-LM/megatron/core/inference/model_inference_wrappers/t5/t5_inference_wrapper.py:37
Method__init__
(self, engine, args)
Megatron-LM/megatron/core/inference/text_generation_server/text_generation_server.py:30
Method__init__
(self, model, args=None)
Megatron-LM/megatron/core/inference/text_generation_server/text_generation_server.py:200
Method__init__
(self, engine, args)
Megatron-LM/megatron/core/inference/text_generation_server/endpoints/completions.py:49
Method__init__
( self, inference_wrapped_model: AbstractModelInferenceWrapper, tokenizer, pp_
Megatron-LM/megatron/core/inference/text_generation_controllers/text_generation_controller.py:62
Method__init__
(self, request_id, message: Optional[str] = None)
Megatron-LM/megatron/core/inference/contexts/dynamic_context.py:106
Method__init__
(self, max_request_count, active_request_count)
Megatron-LM/megatron/core/inference/contexts/dynamic_context.py:120
Method__init__
( self, *, params_dtype: torch.dtype, num_layers: int, kv_channels: in
Megatron-LM/megatron/core/inference/contexts/dynamic_context.py:248
Method__init__
Args: materialize_only_last_token_logits (bool): If True, only the last-token logits will be extracted during dec
Megatron-LM/megatron/core/inference/contexts/base_context.py:13
Method__init__
(self, context: "DynamicInferenceContext", total_count: int)
Megatron-LM/megatron/core/inference/contexts/dynamic_block_allocator.py:24
Method__init__
( self, max_batch_size: int, max_sequence_length: int, use_flashinfer_fused_rope: bool = None )
Megatron-LM/megatron/core/inference/contexts/static_context.py:19
Method__init__
Initializes the Mamba slot allocator. Args: max_requests (int): The maximum number of concurrent requests.
Megatron-LM/megatron/core/inference/contexts/attention_context/mamba_metadata.py:29
← previousnext →5,701–5,800 of 10,561, ranked by callers