MCPcopy Create free account

hub / github.com/JinjieNi/MegaDLMs / functions

Functions4,219 in github.com/JinjieNi/MegaDLMs

Method__getitem__
Abstract method implementation Args: idx (Optioal[int]): The index into the dataset Returns: Dict[str, torch
megatron/core/datasets/gpt_dataset.py:973
Method__getitem__
Return the pointer, length, and mode at the index Args: idx (int): The index into the dataset Returns: Tuple
megatron/core/datasets/indexed_dataset.py:328
Method__getitem__
Return from the dataset Args: idx (Union[int, numpy.integer, slice]): The index or index slice into the dataset Raises:
megatron/core/datasets/indexed_dataset.py:612
Method__getitem__
Return from the dataset Args: idx (int): The index into the dataset Returns: Dict[str, Union[torch.Tensor, n
megatron/core/datasets/megatron_dataset.py:130
Method__getitem__
Get dataset sample. Args: idx (int): Index of sample. Returns: A dict containing attribute 'text' of type st
megatron/core/datasets/retro/utils.py:98
Method__getitem__
Get block path from index. Args: idx (int): Index of sample. Returns: The path to the block file containing
megatron/core/datasets/retro/utils.py:338
Method__getitem__
Get dataset sample. Args: idx (int): The index into the dataset. Returns: Dict[str, numpy.ndarray]: The text
megatron/core/datasets/retro/query/multi_split_gpt_dataset.py:81
Method__getitem__
Get dataset sample. Args: sample_idx (int): Index of sample in dataset. Returns: A dict consisting of GPT sa
megatron/core/datasets/retro/query/retro_dataset.py:78
Method__getitem__
Get sample, including represented document IDs. Args: idx (int): Sample index. Returns: A sample, which cont
megatron/core/datasets/retro/query/gpt_chunk_dataset.py:51
Method__getitem__
DB dataset sample. Args: chunk_id (int): Index of chunk within dataset. Returns: A dict containing:
megatron/core/datasets/retro/db/dataset.py:60
Method__getitem__
(self, key: Tuple[int, str])
megatron/core/optimizer/optimizer.py:907
Method__getitem__
(self, idx: int)
tests/unit_tests/data/test_builder.py:92
Method__getitem__
(self, idx)
tasks/orqa/supervised/data.py:172
Method__getitem__
(self, idx)
tasks/orqa/unsupervised/nq.py:182
Method__getitem__
(self, idx)
tasks/zeroshot_gpt/datasets.py:51
Method__getitem__
(self, idx)
tasks/zeroshot_gpt/datasets.py:99
Method__getitem__
(self, idx)
tasks/race/data.py:49
Method__getitem__
(self, idx)
tasks/vision/segmentation/data.py:89
Method__getitem__
Args: index (int): Index Returns: tuple: (image, target) where target is a tuple of all target types if targe
tasks/vision/segmentation/cityscapes.py:178
Method__getitem__
(self, idx)
tasks/glue/data.py:41
Method__getstate_
Pickle method, used by torch.distributed.gather_object.
megatron/core/rerun_state_machine.py:955
Method__getstate__
Get the state during pickling Returns: Tuple[str, bool, bool, Optional[S3Config]]: The state tuple
megatron/core/datasets/indexed_dataset.py:582
Method__gt__
Check if value of self is larger than other's value Args: other (_ValueWithRank): The other object to compare with Retur
megatron/core/utils.py:676
Method__init__
(self, images, model, max_batch_size, max_sequence_length)
tools/run_vlm_text_generation.py:170
Method__init__
(self, args)
tools/preprocess_mmdata.py:45
Method__init__
(self, args)
tools/preprocess_data_nmt.py:19
Method__init__
(self, args)
tools/preprocess_data.py:49
Method__init__
(self, args, workers)
tools/preprocess_data.py:113
Method__init__
(self, config: DLMConfig, layer_idx: int)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:160
Method__init__
DLMRMSNorm is equivalent to T5LayerNorm
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:240
Method__init__
(self, config: DLMConfig, layer_idx: int)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:260
Method__init__
(self, config: DLMConfig, device=None)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:317
Method__init__
(self, config: DLMConfig)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:511
Method__init__
(self, config)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:747
Method__init__
( self, vocab_size=151936, hidden_size=4096, intermediate_size=22016,
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/configuration_dlm.py:27
Method__init__
( self, vocab_size=151936, hidden_size=4096, intermediate_size=22016,
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/configuration_ar.py:27
Method__init__
(self, config: ARConfig, layer_idx: int)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:154
Method__init__
ARRMSNorm is equivalent to T5LayerNorm
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:231
Method__init__
(self, config: ARConfig, layer_idx: int)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:251
Method__init__
(self, config: ARConfig, device=None)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:308
Method__init__
(self, config: ARConfig)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:502
Method__init__
(self, config)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:792
Method__init__
(self, config: DLMConfig, layer_idx: int)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:160
Method__init__
DLMRMSNorm is equivalent to T5LayerNorm
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:240
Method__init__
(self, config: DLMConfig, layer_idx: int)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:260
Method__init__
(self, config: DLMConfig, device=None)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:317
Method__init__
(self, config: DLMConfig)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:511
Method__init__
(self, config)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:747
Method__init__
( self, vocab_size=151936, hidden_size=4096, intermediate_size=22016,
tools/weights_conversion/hf_configs/gpt2_1b_dlm/configuration_dlm.py:27
Method__init__
(self, model_type)
tools/checkpoint/schema_core.py:62
Method__init__
(self, model_type)
tools/checkpoint/schema_core.py:86
Method__init__
(self, model_type, num_experts, expert_model_parallel_size, num_shared_experts)
tools/checkpoint/schema_core.py:118
Method__init__
(self, mapping)
tools/checkpoint/schema_base.py:10
Method__init__
(self, text_dataset, max_seq_length)
tools/bert_embedding/dataset.py:12
Method__init__
(self, texts)
tools/bert_embedding/embed.py:133
Method__init__
(self, batch_size, max_bert_seq_length, embedder_type, warmup=True)
tools/bert_embedding/embed.py:149
Method__init__
(self, embedder, block_size)
tools/bert_embedding/embed.py:222
Method__init__
(self, text_dataset)
tools/bert_embedding/huggingface.py:13
Method__init__
(self, batch_size, max_seq_length)
tools/bert_embedding/huggingface.py:63
Method__init__
(self, text)
tools/bert_embedding/huggingface.py:114
Method__init__
Initialize self. :param args: list of arguments. The exact content of this variable is dependent on the kind of docstring; it's u
tools/retro/config_utils.py:63
Method__init__
Initialize self.
tools/retro/config_utils.py:80
Method__init__
Initialize self.
tools/retro/config_utils.py:100
Method__init__
Initialize self.
tools/retro/config_utils.py:118
Method__init__
Initialize self.
tools/retro/config_utils.py:133
Method__init__
Initialize self.
tools/retro/config_utils.py:148
Method__init__
Setup sections. :param sections: Recognized sections or None to defaults. :param title_colon: require colon after section title.
tools/retro/config_utils.py:263
Method__init__
(self, dataset: Any, dataset_path: str, indices: ndarray, num_samples: Optional[int], index_split: Split, conf
tools/retro/sft/dataset_conv.py:65
Method__init__
(self)
megatron/legacy/indexer.py:23
Method__init__
(self, scale=1)
megatron/legacy/fp16_deprecated/loss_scaler.py:6
Method__init__
(self, init_scale=2**32, scale_factor=2., scale_window=1
megatron/legacy/fp16_deprecated/loss_scaler.py:10
Method__init__
(self, config, num_classes, num_tokentypes=2,
megatron/legacy/model/classification.py:19
Method__init__
(self, ict_head_size, num_tokentypes=2, parallel_output=True)
megatron/legacy/model/realm_model.py:150
Method__init__
(self, normalized_shape, eps=1e-5, no_persist_layer_norm=True, sequence_parallel
megatron/legacy/model/fused_layer_norm.py:33
Method__init__
( self, input_in_fp16, input_in_bf16, attn_mask_type, scaled_masked_so
megatron/legacy/model/fused_softmax.py:134
Method__init__
(self, mpu_vocab_size, parallel_output)
megatron/legacy/model/t5_model.py:47
Method__init__
RMS Normaliation module Args: dim (int): The width of input, i.e. hidden size eps (float): epsilon to use for the nor
megatron/legacy/model/rms_norm.py:8
Method__init__
(self, config, num_tokentypes=0, parallel_output=True,
megatron/legacy/model/gpt_model.py:46
Method__init__
( self, hidden_size, vocab_size, max_sequence_length, embedding_dropou
megatron/legacy/model/language_model.py:137
Method__init__
( self, config, encoder_attn_mask_type, num_tokentypes=0, add_encoder=
megatron/legacy/model/language_model.py:329
Method__init__
(self, num_tokentypes=2, parallel_output=True, pre_process=True, post_process=True)
megatron/legacy/model/biencoder_model.py:250
Method__init__
(self, config, is_expert=False)
megatron/legacy/model/transformer.py:105
Method__init__
(self, config)
megatron/legacy/model/transformer.py:207
Method__init__
(self, layer_number, config, attn_mask_type=AttnMaskType.padding)
megatron/legacy/model/transformer.py:318
Method__init__
(self, causal=False, softmax_scale=None, attention_dropout=0.0, device=None, dtype=None)
megatron/legacy/model/transformer.py:461
Method__init__
(self, config, layer_number, attention_type=AttnType.self_attn, attn_mask_ty
megatron/legacy/model/transformer.py:520
Method__init__
(self, config, layer_number, layer_type=LayerType.encoder, self_attn_mask_ty
megatron/legacy/model/transformer.py:875
Method__init__
(self, layer_number)
megatron/legacy/model/transformer.py:1315
Method__init__
(self, config, model_type, layer_type=LayerType.encoder, self_attn_mask_type
megatron/legacy/model/transformer.py:1373
Method__init__
(self, config=None, share_embeddings_and_output_weights=True)
megatron/legacy/model/module.py:28
Method__init__
(self, mpu_vocab_size, config, parallel_output)
megatron/legacy/model/bert_model.py:55
Method__init__
(self, config, num_tokentypes=2, pre_process=True,
megatron/legacy/model/multiple_choice.py:19
Method__init__
(self, num_classes, pre_process=True, post_process=True)
megatron/legacy/model/vision/classification.py:60
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.)
megatron/legacy/model/vision/esvit_swin_backbone.py:88
Method__init__
(self, dim, input_resolution, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=
megatron/legacy/model/vision/esvit_swin_backbone.py:197
Method__init__
(self, input_resolution, dim, norm_layer=nn.LayerNorm)
megatron/legacy/model/vision/esvit_swin_backbone.py:340
Method__init__
(self, dim, input_resolution, depth, num_heads, window_size, mlp_ratio=4., qkv_bias=True, qk_
megatron/legacy/model/vision/esvit_swin_backbone.py:405
Method__init__
(self, img_size=224, patch_size=16, in_chans=3, embed_dim=768, norm_layer=None)
megatron/legacy/model/vision/esvit_swin_backbone.py:471
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, num_classes=1000, embed_dim=96, depths=[2, 2,
megatron/legacy/model/vision/esvit_swin_backbone.py:530
Method__init__
(self, in_dim, out_dim, norm_last_layer=True, nlayers=3)
megatron/legacy/model/vision/dino.py:83
← previousnext →2,101–2,200 of 4,219, ranked by callers