MCPcopy Create free account

hub / github.com/JinjieNi/MegaDLMs / functions

Functions4,219 in github.com/JinjieNi/MegaDLMs

Functionscatter_to_sequence_parallel_region
Wrapper for autograd function: forward: split, backward: AG <last dim>
megatron/core/tensor_parallel/mappings.py:487
Functionsend_backward
Send tensor to previous rank in pipeline (backward send). See _communicate for argument details.
megatron/core/pipeline_parallel/p2p_communication.py:480
Functionsend_backward_recv_backward
Batched recv from next rank and send to previous rank in pipeline. See _communicate for argument details.
megatron/core/pipeline_parallel/p2p_communication.py:579
Functionsend_backward_recv_forward
Batched send and recv with previous rank in pipeline. See _communicate for argument details.
megatron/core/pipeline_parallel/p2p_communication.py:525
Functionsend_forward_backward_recv_forward_backward
Batched send and recv with previous and next ranks in pipeline. See _communicate for argument details.
megatron/core/pipeline_parallel/p2p_communication.py:608
Functionsend_forward_recv_backward
Batched send and recv with next rank in pipeline. See _communicate for argument details.
megatron/core/pipeline_parallel/p2p_communication.py:500
Functionsend_forward_recv_forward
Batched recv from previous rank and send to next rank in pipeline. See _communicate for argument details.
megatron/core/pipeline_parallel/p2p_communication.py:550
Methodsep
The SEP token id Raises: NotImplementedError: Non-abstract, optional attribute
megatron/core/datasets/megatron_tokenizer.py:103
Methodsep
(self)
megatron/training/tokenizer/tokenizer.py:265
Methodsep
(self)
megatron/training/tokenizer/tokenizer.py:492
Methodsep
(self)
megatron/training/tokenizer/tokenizer.py:544
Methodsep
(self)
megatron/training/tokenizer/tokenizer.py:594
Methodsep
(self)
megatron/training/tokenizer/tokenizer.py:811
Methodsequence_lengths
Get the sequence lengths Returns: numpy.ndarray: The sequence lengths
megatron/core/datasets/indexed_dataset.py:679
Functionsequence_load_balancing_loss_func
Calculate the auxiliary loss in sequence-level by computing the loss for each individual sample. Refer to the DeepSeek-V2 huggingface repo
megatron/core/transformer/moe/moe_utils.py:96
Methodsequence_modes
Get the sequence modes Returns: numpy.ndarray: The sequence modes
megatron/core/datasets/indexed_dataset.py:717
Methodset_barrier_group
Sets barrier group. Args: barrier_group (ProcessGroup): Torch ProcessGroup for barrier.
megatron/core/timers.py:91
Functionset_data_parallel_rank
Return world size for the data parallel group.
megatron/core/parallel_state.py:1527
Methodset_decoder
(self, decoder)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:767
Methodset_decoder
(self, decoder)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:813
Methodset_decoder
(self, decoder)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:767
Functionset_default_dist_ckpt_strategy
()
tests/unit_tests/dist_checkpointing/conftest.py:14
Functionset_defaults_if_not_set_tensor_model_parallel_attributes
Set default model parallel attributes if not set explicitly already.
megatron/core/tensor_parallel/layers.py:89
Functionset_env
()
tests/unit_tests/conftest.py:27
Functionset_env
()
tests/unit_tests/transformer/moe/conftest.py:28
Functionset_expert_model_parallel_rank
Set expert-model-parallel rank.
megatron/core/parallel_state.py:1617
Functionset_expert_model_parallel_world_size
Sets the expert-model-parallel world size.
megatron/core/parallel_state.py:1601
Functionset_expert_tensor_parallel_rank
Set expert tensor model parallel rank
megatron/core/parallel_state.py:1662
Functionset_expert_tensor_parallel_world_size
Set expert tensor model parallel size
megatron/core/parallel_state.py:1644
Methodset_extra_state
Extra state is ignored
megatron/core/tensor_parallel/layers.py:981
Methodset_extra_state
Extra state is ignored
megatron/core/tensor_parallel/layers.py:1203
Methodset_extra_state
(self, extra_state)
megatron/core/extensions/flex_attn.py:36
Methodset_extra_state
(self, extra_state)
megatron/core/extensions/torch_modules.py:14
Methodset_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:530
Methodset_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:758
Methodset_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:521
Methodset_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:804
Methodset_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:530
Methodset_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:758
Methodset_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/classification.py:48
Methodset_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/gpt_model.py:72
Methodset_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/language_model.py:441
Methodset_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/biencoder_model.py:107
Methodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
megatron/legacy/model/transformer.py:1669
Methodset_input_tensor
(self, input_tensor)
megatron/legacy/model/module.py:182
Methodset_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/bert_model.py:171
Methodset_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/multiple_choice.py:45
Methodset_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/vision/classification.py:44
Methodset_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/vision/classification.py:78
Methodset_input_tensor
(self, tensor)
megatron/legacy/model/vision/dino.py:266
Methodset_input_tensor
(self, input_tensor)
megatron/legacy/model/vision/inpainting.py:48
Methodset_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/vision/inpainting.py:115
Methodset_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/vision/vit_backbone.py:208
Methodset_input_tensor
Sets input tensor to the model. See megatron.model.transformer.set_input_tensor() Args: input_tensor (Tensor): Sets the
megatron/core/models/mamba/mamba_model.py:144
Methodset_input_tensor
Sets input tensor to the model. See megatron.model.transformer.set_input_tensor() Args: input_tensor (Tensor): Sets the
megatron/core/models/bert/bert_model.py:270
Methodset_input_tensor
Sets input tensor to the model. See megatron.model.transformer.set_input_tensor() Args: input_tensor (Tensor): Sets the
megatron/core/models/gpt/gpt_model.py:170
Methodset_input_tensor
Sets input tensor to the model. Args: input_tensor (Tensor): Sets the input tensor for the model.
megatron/core/models/vision/clip_vit_model.py:140
Methodset_input_tensor
Set model chunk input tensor.
megatron/core/models/multimodal/llava_model.py:238
Methodset_input_tensor
Sets input tensor to the model. See megatron.model.transformer.set_input_tensor() Args: input_tensor (Tensor): Sets the
megatron/core/models/difflm/gpt_model.py:147
Methodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
megatron/core/transformer/transformer_block.py:369
Methodset_input_tensor
(self, input_tensor)
megatron/core/transformer/module.py:172
Methodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
megatron/core/ssm/mamba_block.py:218
Methodset_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
tasks/vision/segmentation/seg_models.py:70
Methodset_layer_number
Set the layer number for the MoE layer.
megatron/core/transformer/moe/moe_layer.py:67
Methodset_output_embeddings
(self, new_embeddings)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:764
Methodset_output_embeddings
(self, new_embeddings)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:810
Methodset_output_embeddings
(self, new_embeddings)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:764
Methodset_params
(self)
tests/unit_tests/transformer/moe/test_token_dispatcher.py:215
Functionset_pipeline_model_parallel_rank
Set pipeline-model-parallel rank.
megatron/core/parallel_state.py:1230
Functionset_pipeline_model_parallel_split_rank
Set pipeline-model-parallel split rank. DEPRECATED.
megatron/core/parallel_state.py:1236
Functionset_pipeline_model_parallel_world_size
Set the pipeline-model-parallel size
megatron/core/parallel_state.py:1186
Methodset_states
Set the internal RNG state.
megatron/core/extensions/transformer_engine.py:1147
Functionset_tensor_model_parallel_rank
Set tensor-model-parallel rank.
megatron/core/parallel_state.py:1224
Functionset_tensor_model_parallel_world_size
Set the tensor-model-parallel size
megatron/core/parallel_state.py:1180
Functionset_virtual_pipeline_model_parallel_rank
Set the virtual pipeline-parallel rank.
megatron/core/parallel_state.py:1415
Functionset_virtual_pipeline_model_parallel_world_size
Set the pipeline-model-parallel size
megatron/core/parallel_state.py:1192
Methodsetup_method
(self, method)
tests/unit_tests/test_training.py:31
Methodsetup_method
(self, method)
tests/unit_tests/test_num_microbatches_calculator.py:97
Methodsetup_method
(self, method)
tests/unit_tests/test_num_microbatches_calculator.py:114
Methodsetup_method
(self, method)
tests/unit_tests/fusions/test_torch_softmax.py:10
Methodsetup_method
(self, method)
tests/unit_tests/inference/test_scheduler.py:12
Methodsetup_method
(self, method)
tests/unit_tests/inference/test_modelopt_gpt_model.py:15
Methodsetup_method
(self)
tests/unit_tests/inference/test_flash_decode.py:9
Methodsetup_method
(self, method)
tests/unit_tests/inference/text_generation_controllers/test_simple_text_generation_controller.py:33
Methodsetup_method
(self, method)
tests/unit_tests/inference/text_generation_controllers/test_encoder_decoder_text_generation_controller.py:37
Methodsetup_method
(self, method)
tests/unit_tests/inference/engines/test_mcore_engine.py:28
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_async_save.py:30
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_local.py:57
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_nonpersistent.py:25
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_serialization.py:39
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_serialization.py:606
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_cached_metadata.py:18
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:114
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:162
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:394
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:465
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_flattened_resharding.py:31
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_fully_parallel.py:76
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_t5_model.py:97
Methodsetup_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_mlp_glu.py:44
← previousnext →3,501–3,600 of 4,219, ranked by callers