Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JinjieNi/MegaDLMs
/ functions
Functions
4,219 in github.com/JinjieNi/MegaDLMs
⨍
Functions
4,219
◇
Types & classes
650
↳
Endpoints
8
Function
scatter_to_sequence_parallel_region
Wrapper for autograd function: forward: split, backward: AG <last dim>
megatron/core/tensor_parallel/mappings.py:487
Function
send_backward
Send tensor to previous rank in pipeline (backward send). See _communicate for argument details.
megatron/core/pipeline_parallel/p2p_communication.py:480
Function
send_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
Function
send_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
Function
send_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
Function
send_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
Function
send_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
Method
sep
The SEP token id Raises: NotImplementedError: Non-abstract, optional attribute
megatron/core/datasets/megatron_tokenizer.py:103
Method
sep
(self)
megatron/training/tokenizer/tokenizer.py:265
Method
sep
(self)
megatron/training/tokenizer/tokenizer.py:492
Method
sep
(self)
megatron/training/tokenizer/tokenizer.py:544
Method
sep
(self)
megatron/training/tokenizer/tokenizer.py:594
Method
sep
(self)
megatron/training/tokenizer/tokenizer.py:811
Method
sequence_lengths
Get the sequence lengths Returns: numpy.ndarray: The sequence lengths
megatron/core/datasets/indexed_dataset.py:679
Function
sequence_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
Method
sequence_modes
Get the sequence modes Returns: numpy.ndarray: The sequence modes
megatron/core/datasets/indexed_dataset.py:717
Method
set_barrier_group
Sets barrier group. Args: barrier_group (ProcessGroup): Torch ProcessGroup for barrier.
megatron/core/timers.py:91
Function
set_data_parallel_rank
Return world size for the data parallel group.
megatron/core/parallel_state.py:1527
Method
set_decoder
(self, decoder)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:767
Method
set_decoder
(self, decoder)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:813
Method
set_decoder
(self, decoder)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:767
Function
set_default_dist_ckpt_strategy
()
tests/unit_tests/dist_checkpointing/conftest.py:14
Function
set_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
Function
set_env
()
tests/unit_tests/conftest.py:27
Function
set_env
()
tests/unit_tests/transformer/moe/conftest.py:28
Function
set_expert_model_parallel_rank
Set expert-model-parallel rank.
megatron/core/parallel_state.py:1617
Function
set_expert_model_parallel_world_size
Sets the expert-model-parallel world size.
megatron/core/parallel_state.py:1601
Function
set_expert_tensor_parallel_rank
Set expert tensor model parallel rank
megatron/core/parallel_state.py:1662
Function
set_expert_tensor_parallel_world_size
Set expert tensor model parallel size
megatron/core/parallel_state.py:1644
Method
set_extra_state
Extra state is ignored
megatron/core/tensor_parallel/layers.py:981
Method
set_extra_state
Extra state is ignored
megatron/core/tensor_parallel/layers.py:1203
Method
set_extra_state
(self, extra_state)
megatron/core/extensions/flex_attn.py:36
Method
set_extra_state
(self, extra_state)
megatron/core/extensions/torch_modules.py:14
Method
set_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:530
Method
set_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:758
Method
set_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:521
Method
set_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:804
Method
set_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:530
Method
set_input_embeddings
(self, value)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:758
Method
set_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/classification.py:48
Method
set_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/gpt_model.py:72
Method
set_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/language_model.py:441
Method
set_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/biencoder_model.py:107
Method
set_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
Method
set_input_tensor
(self, input_tensor)
megatron/legacy/model/module.py:182
Method
set_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/bert_model.py:171
Method
set_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/multiple_choice.py:45
Method
set_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/vision/classification.py:44
Method
set_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/vision/classification.py:78
Method
set_input_tensor
(self, tensor)
megatron/legacy/model/vision/dino.py:266
Method
set_input_tensor
(self, input_tensor)
megatron/legacy/model/vision/inpainting.py:48
Method
set_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/vision/inpainting.py:115
Method
set_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
megatron/legacy/model/vision/vit_backbone.py:208
Method
set_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
Method
set_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
Method
set_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
Method
set_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
Method
set_input_tensor
Set model chunk input tensor.
megatron/core/models/multimodal/llava_model.py:238
Method
set_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
Method
set_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
Method
set_input_tensor
(self, input_tensor)
megatron/core/transformer/module.py:172
Method
set_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
Method
set_input_tensor
See megatron.legacy.model.transformer.set_input_tensor()
tasks/vision/segmentation/seg_models.py:70
Method
set_layer_number
Set the layer number for the MoE layer.
megatron/core/transformer/moe/moe_layer.py:67
Method
set_output_embeddings
(self, new_embeddings)
tools/weights_conversion/hf_configs/gptneox_1.7b_dlm/modeling_dlm.py:764
Method
set_output_embeddings
(self, new_embeddings)
tools/weights_conversion/hf_configs/gptneox_1.7b_ar/modeling_ar.py:810
Method
set_output_embeddings
(self, new_embeddings)
tools/weights_conversion/hf_configs/gpt2_1b_dlm/modeling_dlm.py:764
Method
set_params
(self)
tests/unit_tests/transformer/moe/test_token_dispatcher.py:215
Function
set_pipeline_model_parallel_rank
Set pipeline-model-parallel rank.
megatron/core/parallel_state.py:1230
Function
set_pipeline_model_parallel_split_rank
Set pipeline-model-parallel split rank. DEPRECATED.
megatron/core/parallel_state.py:1236
Function
set_pipeline_model_parallel_world_size
Set the pipeline-model-parallel size
megatron/core/parallel_state.py:1186
Method
set_states
Set the internal RNG state.
megatron/core/extensions/transformer_engine.py:1147
Function
set_tensor_model_parallel_rank
Set tensor-model-parallel rank.
megatron/core/parallel_state.py:1224
Function
set_tensor_model_parallel_world_size
Set the tensor-model-parallel size
megatron/core/parallel_state.py:1180
Function
set_virtual_pipeline_model_parallel_rank
Set the virtual pipeline-parallel rank.
megatron/core/parallel_state.py:1415
Function
set_virtual_pipeline_model_parallel_world_size
Set the pipeline-model-parallel size
megatron/core/parallel_state.py:1192
Method
setup_method
(self, method)
tests/unit_tests/test_training.py:31
Method
setup_method
(self, method)
tests/unit_tests/test_num_microbatches_calculator.py:97
Method
setup_method
(self, method)
tests/unit_tests/test_num_microbatches_calculator.py:114
Method
setup_method
(self, method)
tests/unit_tests/fusions/test_torch_softmax.py:10
Method
setup_method
(self, method)
tests/unit_tests/inference/test_scheduler.py:12
Method
setup_method
(self, method)
tests/unit_tests/inference/test_modelopt_gpt_model.py:15
Method
setup_method
(self)
tests/unit_tests/inference/test_flash_decode.py:9
Method
setup_method
(self, method)
tests/unit_tests/inference/text_generation_controllers/test_simple_text_generation_controller.py:33
Method
setup_method
(self, method)
tests/unit_tests/inference/text_generation_controllers/test_encoder_decoder_text_generation_controller.py:37
Method
setup_method
(self, method)
tests/unit_tests/inference/engines/test_mcore_engine.py:28
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_async_save.py:30
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_local.py:57
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_nonpersistent.py:25
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_serialization.py:39
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_serialization.py:606
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_cached_metadata.py:18
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:114
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:162
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:394
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:465
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_flattened_resharding.py:31
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/test_fully_parallel.py:76
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_t5_model.py:97
Method
setup_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_mlp_glu.py:44
← previous
next →
3,501–3,600 of 4,219, ranked by callers