MCPcopy Create free account

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

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

Method__init__
( self, block_count_total, max_kv_block_count, max_requests, block_size_tokens, max_seqlen )
Megatron-LM/megatron/core/inference/contexts/attention_context/mha_metadata.py:139
Method__init__
Initialize the metadata.
Megatron-LM/megatron/core/inference/contexts/attention_context/metadata_base.py:14
Method__init__
( self, controller: TextGenerationController, context: DynamicInferenceContext,
Megatron-LM/megatron/core/inference/engines/dynamic_engine.py:129
Method__init__
( self, text_generation_controller: TextGenerationController, max_batch_size: Optional
Megatron-LM/megatron/core/inference/engines/static_engine.py:51
Method__init__
(self, obj)
Megatron-LM/megatron/core/dist_checkpointing/mapping.py:530
Method__init__
( self, strategy: LoadShardedStrategy, parallelization_group: Optional[torch.distribut
Megatron-LM/megatron/core/dist_checkpointing/strategies/fully_parallel.py:167
Method__init__
( self, path: Union[str, os.PathLike], *args, separation_hint: Optional[str] =
Megatron-LM/megatron/core/dist_checkpointing/strategies/filesystem_async.py:80
Method__init__
(self, data_parallel_group, cpu_transfer=True)
Megatron-LM/megatron/core/dist_checkpointing/strategies/two_stage.py:98
Method__init__
(self)
Megatron-LM/megatron/core/dist_checkpointing/strategies/async_utils.py:182
Method__init__
(self)
Megatron-LM/megatron/core/dist_checkpointing/strategies/async_utils.py:289
Method__init__
(self, persistent: bool = False)
Megatron-LM/megatron/core/dist_checkpointing/strategies/async_utils.py:515
Method__init__
(self, backend: str, version: int)
Megatron-LM/megatron/core/dist_checkpointing/strategies/base.py:100
Method__init__
( self, *args, shapes_validation_sharded_tensors: Iterable[ShardedTensor] = (),
Megatron-LM/megatron/core/dist_checkpointing/strategies/torch.py:577
Method__init__
Adds parameters specific to PyT Distributed format Args: backend (str): format backend string version (int): format ve
Megatron-LM/megatron/core/dist_checkpointing/strategies/torch.py:699
Method__init__
(self)
Megatron-LM/megatron/core/dist_checkpointing/strategies/torch.py:910
Method__init__
(self, data: torch.Tensor, sh_ten: ShardedTensor)
Megatron-LM/megatron/core/dist_checkpointing/strategies/checkpointable.py:24
Method__init__
(self, local_shards: list[torch.Tensor])
Megatron-LM/megatron/core/dist_checkpointing/strategies/checkpointable.py:122
Method__init__
(self, load_directly_on_device: bool = False)
Megatron-LM/megatron/core/dist_checkpointing/strategies/tensorstore.py:43
Method__init__
(self, backend: str, version: int)
Megatron-LM/megatron/core/dist_checkpointing/strategies/zarr.py:200
Method__init__
Initialize with file system path. Args: path (Union[str, os.PathLike]): Path to the checkpoint directory or file.
Megatron-LM/megatron/core/dist_checkpointing/strategies/cached_metadata_filesystem_reader.py:19
Method__init__
(self, *tokenizer_paths: str, **tokenizer_options: Any)
Megatron-LM/megatron/core/datasets/megatron_tokenizer.py:25
Method__init__
( self, data_iterator, config, pg_collection: Optional[ProcessGroupCollection] = None )
Megatron-LM/megatron/core/datasets/data_schedule.py:28
Method__init__
( self, indexed_dataset: IndexedDataset, dataset_path: str, indexed_indices: n
Megatron-LM/megatron/core/datasets/t5_dataset.py:67
Method__init__
( self, datasets: List[MegatronDataset], weights: List[Union[int, float]], siz
Megatron-LM/megatron/core/datasets/blended_dataset.py:41
Method__init__
( self, indexed_dataset: IndexedDataset, dataset_path: str, indexed_indices: n
Megatron-LM/megatron/core/datasets/bert_dataset.py:44
Method__init__
( self, cls: Type[MidLevelDataset], sizes: List[int], is_built_on_rank: Callab
Megatron-LM/megatron/core/datasets/blended_megatron_dataset_builder.py:44
Method__init__
(self, tokenizer: MegatronTokenizerBase)
Megatron-LM/megatron/core/datasets/gpt_dataset.py:727
Method__init__
( self, dataset: MockGPTLowLevelDataset, dataset_path: Optional[str], indices:
Megatron-LM/megatron/core/datasets/gpt_dataset.py:780
Method__init__
(self, idx_path: str, multimodal: bool)
Megatron-LM/megatron/core/datasets/indexed_dataset.py:241
Method__init__
(self, bin_path: str)
Megatron-LM/megatron/core/datasets/indexed_dataset.py:380
Method__init__
(self, bin_path: str)
Megatron-LM/megatron/core/datasets/indexed_dataset.py:422
Method__init__
(self, bin_path: str, object_storage_config: ObjectStorageConfig)
Megatron-LM/megatron/core/datasets/indexed_dataset.py:465
Method__init__
(self, bin_path: str, object_storage_config: ObjectStorageConfig)
Megatron-LM/megatron/core/datasets/indexed_dataset.py:545
Method__init__
( self, path_prefix: str, multimodal: bool = False, mmap: bool = True,
Megatron-LM/megatron/core/datasets/indexed_dataset.py:578
Method__init__
( self, bin_path: str, dtype: Type[numpy.number] = numpy.int32, multimodal: bool = False )
Megatron-LM/megatron/core/datasets/indexed_dataset.py:840
Method__init__
( self, dataset: LowLevelDataset, dataset_path: Optional[str], indices: numpy.
Megatron-LM/megatron/core/datasets/megatron_dataset.py:41
Method__init__
( self, indexed_dataset: IndexedDataset, dataset_path: str, indexed_indices: n
Megatron-LM/megatron/core/datasets/masked_dataset.py:102
Method__init__
(self, gpt_dataset: MultiSplitGPTDataset, gpt_tokenizer: Any)
Megatron-LM/megatron/core/datasets/retro/utils.py:101
Method__init__
( self, indexed_dataset: IndexedDataset, dataset_path: str, indexed_indices: n
Megatron-LM/megatron/core/datasets/retro/query/multi_split_gpt_dataset.py:74
Method__init__
( self, num_queried_samples: int, num_neighbors: int, num_retrieved_chunks: in
Megatron-LM/megatron/core/datasets/retro/query/retro_dataset.py:58
Method__init__
(self, sample_dataset: GPTDataset, sample_length: int, chunk_length: int)
Megatron-LM/megatron/core/datasets/retro/query/gpt_chunk_dataset.py:33
Method__init__
( self, db_path: str, indexed_datasets: List[IndexedDataset], chunks: np.ndarr
Megatron-LM/megatron/core/datasets/retro/db/dataset.py:36
Method__init__
(self, fallback_to_eager_attn: bool = False)
Megatron-LM/megatron/core/extensions/transformer_engine_spec_provider.py:29
Method__init__
( self, input_size: int, output_size: int, *, config: ModelParallelCon
Megatron-LM/megatron/core/extensions/kitchen.py:380
Method__init__
( self, input_size: int, output_size: int, *, config: ModelParallelCon
Megatron-LM/megatron/core/extensions/kitchen.py:446
Method__init__
( self, num_gemms: int, input_size: int, output_size: int, *,
Megatron-LM/megatron/core/extensions/kitchen.py:512
Method__init__
( self, num_gemms: int, input_size: int, output_size: int, *,
Megatron-LM/megatron/core/extensions/kitchen.py:766
Method__init__
( self, num_gemms: int, input_size: int, output_size: int, *,
Megatron-LM/megatron/core/extensions/kitchen.py:819
Method__init__
( self, input_size: int, output_size: int, *, config: TransformerConfi
Megatron-LM/megatron/core/extensions/kitchen.py:870
Method__init__
(self, fallback: BackendSpecProvider)
Megatron-LM/megatron/core/extensions/kitchen.py:1027
Method__init__
( self, input_size: int, output_size: int, *, config: TransformerConfi
Megatron-LM/megatron/core/extensions/transformer_engine.py:469
Method__init__
( self, input_size: int, output_size: int, *, config: ModelParallelCon
Megatron-LM/megatron/core/extensions/transformer_engine.py:666
Method__init__
( self, input_size: int, output_size: int, *, config: ModelParallelCon
Megatron-LM/megatron/core/extensions/transformer_engine.py:765
Method__init__
( self, config: TransformerConfig, layer_number: int, attn_mask_type: AttnMask
Megatron-LM/megatron/core/extensions/transformer_engine.py:872
Method__init__
( self, num_gemms: int, input_size: int, output_size: int,
Megatron-LM/megatron/core/extensions/transformer_engine.py:1230
Method__init__
( self, num_gemms: int, input_size: int, output_size: int,
Megatron-LM/megatron/core/extensions/transformer_engine.py:1576
Method__init__
( self, num_gemms: int, input_size: int, output_size: int,
Megatron-LM/megatron/core/extensions/transformer_engine.py:1622
Method__init__
(self, *args, **kwargs)
Megatron-LM/megatron/core/extensions/transformer_engine.py:1671
Method__init__
( self, config: ModelParallelConfig, fp8_format: int, override_linear_precisio
Megatron-LM/megatron/core/extensions/transformer_engine.py:1957
Method__init__
(self, is_inference_rng_tracker=False)
Megatron-LM/megatron/core/extensions/transformer_engine.py:1992
Method__init__
Initialize the multimodal model. Example: ```python # Create a model with default configuration model = M
Megatron-LM/megatron/core/models/mimo/model/base.py:35
Method__init__
Initialize vision modality submodules. Args: encoders: Dictionary of encoder modules decoders: Dictionary of decoder
Megatron-LM/megatron/core/models/mimo/submodules/vision.py:21
Method__init__
Initialize the modality submodules.
Megatron-LM/megatron/core/models/mimo/submodules/base.py:39
Method__init__
Initialize audio modality submodules. Args: encoders: Dictionary of encoder modules decoders: Dictionary of decoder m
Megatron-LM/megatron/core/models/mimo/submodules/audio.py:18
Method__init__
( self, config: TransformerConfig, parallel_output: bool, vocab_size: int,
Megatron-LM/megatron/core/models/T5/t5_model.py:39
Method__init__
( self, config: TransformerConfig, mamba_stack_spec: ModuleSpec, vocab_size: i
Megatron-LM/megatron/core/models/mamba/mamba_model.py:56
Method__init__
( self, hidden_size: int, init_method: callable, config: TransformerConfig,
Megatron-LM/megatron/core/models/bert/pooler.py:24
Method__init__
( self, config: TransformerConfig, num_tokentypes: int, transformer_layer_spec
Megatron-LM/megatron/core/models/bert/bert_model.py:60
Method__init__
(self, hidden_size: int, config: TransformerConfig)
Megatron-LM/megatron/core/models/bert/bert_lm_head.py:27
Method__init__
Initializes a postprocessing node. Args: gpt_model: The GPT model instance. chunk_state (TransformerChunkState): Stat
Megatron-LM/megatron/core/models/gpt/fine_grained_callables.py:148
Method__init__
Initialize a transformer layer node. Args: stream (torch.cuda.Stream): CUDA stream for execution event (torch.cuda.Ev
Megatron-LM/megatron/core/models/gpt/fine_grained_callables.py:208
Method__init__
( self, config: TransformerConfig, transformer_layer_spec: ModuleSpec, vocab_s
Megatron-LM/megatron/core/models/gpt/gpt_model.py:84
Method__init__
( self, config: TransformerConfig, submodules: MLPSubmodules, projector_type:
Megatron-LM/megatron/core/models/vision/multimodal_projector.py:28
Method__init__
( self, transformer_config: TransformerConfig, transformer_layer_spec: ModuleSpec,
Megatron-LM/megatron/core/models/vision/clip_vit_model.py:42
Method__init__
( self, transformer_config: TransformerConfig, transformer_layer_spec: ModuleSpec,
Megatron-LM/megatron/core/models/vision/radio.py:50
Method__init__
Initializes a transformer layer schedule plan. Args: layer (TransformerLayer): split a transformer layer into mul
Megatron-LM/megatron/core/models/common/model_chunk_schedule_plan.py:62
Method__init__
Initialize the schedule plan of all Transformer layers' sub-modules. This function creates a schedule plan for a model chunk, including
Megatron-LM/megatron/core/models/common/model_chunk_schedule_plan.py:296
Method__init__
( self, config: TransformerConfig, vocab_size: int, max_sequence_length: int,
Megatron-LM/megatron/core/models/common/embeddings/language_model_embedding.py:29
Method__init__
( self, kv_channels: int, rotary_percent: float = 1.0, rotary_interleaved: boo
Megatron-LM/megatron/core/models/common/embeddings/yarn_rotary_pos_embedding.py:49
Method__init__
( self, kv_channels: int, rotary_percent: float, rotary_interleaved: bool = Fa
Megatron-LM/megatron/core/models/common/embeddings/rotary_pos_embedding.py:276
Method__init__
( self, bidirectional: bool, init_method: Callable, num_attention_heads: int,
Megatron-LM/megatron/core/models/common/embeddings/relative_pos_embedding.py:28
Method__init__
(self, config: TransformerConfig)
Megatron-LM/megatron/core/models/common/vision_module/vision_module.py:16
Method__init__
( self, config: TransformerConfig, pg_collection: Optional[ProcessGroupCollection] = None )
Megatron-LM/megatron/core/models/common/language_module/language_module.py:44
Method__init__
( self, language_transformer_config: TransformerConfig, language_transformer_layer_spe
Megatron-LM/megatron/core/models/multimodal/llava_model.py:89
Method__init__
(self, config)
Megatron-LM/megatron/core/models/huggingface/clip_model.py:27
Method__init__
(self, config)
Megatron-LM/megatron/core/models/huggingface/module.py:47
Method__init__
(self, config)
Megatron-LM/megatron/core/models/huggingface/qwen_model.py:29
Method__init__
(self, config: RetroConfig)
Megatron-LM/megatron/core/models/retro/encoder_attention.py:119
Method__init__
(self, config: RetroConfig)
Megatron-LM/megatron/core/models/retro/decoder_attention.py:235
Method__init__
( self, config: RetroConfig, submodules: CrossAttentionSubmodules, layer_numbe
Megatron-LM/megatron/core/models/retro/base_attention.py:27
Method__init__
(self, hidden_size: int, eps: float = 1e-6, **kwargs)
Megatron-LM/megatron/core/transformer/torch_norm.py:67
Method__init__
Initialize PipelineParallelLayerLayout from a list or a str. Format validation will be done here.
Megatron-LM/megatron/core/transformer/pipeline_parallel_layer_layout.py:24
Method__init__
Creates a _CudaGraphRunner, which holds a single pair of fwd and bwd cudagraphs, which are not created until this runner records its graph cre
Megatron-LM/megatron/core/transformer/cuda_graphs.py:546
Method__init__
( self, config: TransformerConfig, share_cudagraph_io_buffers: bool = True, vp
Megatron-LM/megatron/core/transformer/cuda_graphs.py:1057
Method__init__
(self, model, config, seq_length, micro_batch_size, optimizers=[])
Megatron-LM/megatron/core/transformer/cuda_graphs.py:1402
Method__init__
(self)
Megatron-LM/megatron/core/transformer/transformer_layer.py:253
Method__init__
( self, config: TransformerConfig, submodules: TransformerLayerSubmodules, lay
Megatron-LM/megatron/core/transformer/transformer_layer.py:264
Method__init__
(self, group=None)
Megatron-LM/megatron/core/transformer/dot_product_attention_context_parallel.py:111
Method__init__
(self, *args, **kwargs)
Megatron-LM/megatron/core/transformer/identity_op.py:24
Method__init__
( self, config: TransformerConfig, submodules: SelfAttentionSubmodules, layer_
Megatron-LM/megatron/core/transformer/attention.py:1057
← previousnext →5,801–5,900 of 10,561, ranked by callers