MCPcopy Create free account

hub / github.com/JinjieNi/MegaDLMs / functions

Functions4,219 in github.com/JinjieNi/MegaDLMs

Methodstate_dict
(self)
megatron/core/optimizer/optimizer.py:987
Methodstate_dict
(self)
megatron/core/optimizer/grad_scaler.py:30
Methodstate_dict
(self)
megatron/core/optimizer/grad_scaler.py:46
Methodstate_dict
(self)
megatron/core/optimizer/grad_scaler.py:132
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/legacy/model/classification.py:76
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/legacy/model/realm_model.py:185
Methodstate_dict_for_save_checkpoint
(self, prefix='', keep_vars=False)
megatron/legacy/model/gpt_model.py:100
Methodstate_dict_for_save_checkpoint
For easy load.
megatron/legacy/model/language_model.py:564
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/legacy/model/biencoder_model.py:304
Methodstate_dict_for_save_checkpoint
Use this function to override the state dict for saving checkpoints.
megatron/legacy/model/module.py:33
Methodstate_dict_for_save_checkpoint
(self, prefix='', keep_vars=False)
megatron/legacy/model/module.py:199
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/legacy/model/bert_model.py:222
Methodstate_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/legacy/model/multiple_choice.py:87
Methodstate_dict_for_save_checkpoint
Returns wrapped module's state_dict for checkpoint saving.
megatron/core/distributed/data_parallel_base.py:84
Methodstate_dict_for_save_checkpoint
Override state dict for saving checkpoints Use this function to override the state dict for saving checkpoints. Args: pre
megatron/core/transformer/module.py:42
Methodstate_dict_for_save_checkpoint
Retrieve state_dict from the module being wrapped.
megatron/core/transformer/module.py:186
Functionstate_restore_func
(state_dict)
megatron/training/initialize.py:85
Functionstate_save_func
()
megatron/training/initialize.py:80
Methodstep
Step the optimizer.
megatron/core/optimizer/optimizer.py:282
Methodstep
(self)
megatron/core/optimizer/optimizer.py:469
Methodstep
ChainedOptimizer will step all optimizers one by one.
megatron/core/optimizer/optimizer.py:1036
Methodstep_with_ready_grads
Step the optimizer with ready gradients, return successful.
megatron/core/optimizer/optimizer.py:182
Methodstep_with_ready_grads
Step the optimizer with ready gradients, return successful. Under the hood, either launch synchronous param all-gathers or get ready to launch
megatron/core/optimizer/distrib_optimizer.py:1890
Methodstop
Stop the timer.
megatron/core/timers.py:31
Methodstop
(self, barrier=False)
megatron/core/timers.py:55
Methodstop_method
This method adds the stop timers. Both cuda event and perf_counter are added. If bdata is set to true from __call__, this method skip
megatron/core/utils.py:967
Methodsummarize_load_times
(self)
megatron/core/dist_checkpointing/strategies/two_stage.py:111
Functionsut_act_forward
Perform the forward pass through the universal transformer block (SUT halting: https://arxiv.org/abs/2310.07096).
megatron/core/transformer/custom_layers/ut_modules.py:982
Methodswiglu
(x)
megatron/legacy/model/transformer.py:136
Functionswitch_load_balancing_loss_func
Calculate the auxiliary loss for load balancing. Refer to the Switch Transformer paper (https://arxiv.org/abs/2101.03961) for details. Args:
megatron/core/transformer/moe/moe_utils.py:11
Methodsymbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:224
Methodsymbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:243
Methodsymbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:262
Methodsymbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:281
Methodsymbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:300
Methodsymbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:355
Methodsymbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:384
Methodsymbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:403
Functiont5_extended_attention_mask
Creates the extended attention mask Converts the attention mask of dimension [batch size, seq_len, seq_len] to [batch size, 1, seq_len, seq_l
megatron/core/models/T5/t5_model.py:414
Functiontask_collate_fn
(batch_data)
tasks/orqa/supervised/eval_utils.py:17
Methodteardown_method
(self, method)
tests/unit_tests/test_training.py:69
Methodteardown_method
(self)
tests/unit_tests/fusions/test_torch_softmax.py:23
Methodteardown_method
(self, method)
tests/unit_tests/tensor_parallel/test_initialization.py:24
Methodteardown_method
(self, method)
tests/unit_tests/inference/test_modelopt_gpt_model.py:42
Methodteardown_method
(self, method)
tests/unit_tests/inference/model_inference_wrappers/gpt/test_gpt_inference_wrapper.py:60
Methodteardown_method
(self, method)
tests/unit_tests/inference/model_inference_wrappers/t5/test_t5_inference_wrapper.py:89
Methodteardown_method
(self, method)
tests/unit_tests/inference/text_generation_controllers/test_simple_text_generation_controller.py:74
Methodteardown_method
(self, method)
tests/unit_tests/inference/text_generation_controllers/test_encoder_decoder_text_generation_controller.py:103
Methodteardown_method
(self, method)
tests/unit_tests/inference/engines/test_mcore_engine.py:71
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_async_save.py:33
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_local.py:60
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_nonpersistent.py:28
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_serialization.py:42
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_serialization.py:609
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_cached_metadata.py:21
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:117
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:165
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:397
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:468
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_flattened_resharding.py:34
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_fully_parallel.py:79
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_t5_model.py:100
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_mlp_glu.py:47
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_moe_experts.py:92
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_retro_model.py:65
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_bert_model.py:80
Methodteardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_gpt_model.py:68
Methodteardown_method
(self, method)
tests/unit_tests/models/test_t5_model.py:71
Methodteardown_method
(self, method)
tests/unit_tests/models/test_t5_model.py:254
Methodteardown_method
(self, method)
tests/unit_tests/models/test_multimodal_projector.py:39
Methodteardown_method
(self, method)
tests/unit_tests/models/test_mamba_model.py:34
Methodteardown_method
(self, method)
tests/unit_tests/models/test_llava_model.py:69
Methodteardown_method
(self, method)
tests/unit_tests/models/test_llava_model.py:456
Methodteardown_method
(self, method)
tests/unit_tests/models/test_llava_model.py:561
Methodteardown_method
(self, method)
tests/unit_tests/models/test_bert_model.py:48
Methodteardown_method
(self, method)
tests/unit_tests/models/test_bert_model.py:97
Methodteardown_method
(self, method)
tests/unit_tests/models/test_clip_vit_model.py:26
Methodteardown_method
(self, method)
tests/unit_tests/models/test_base_embedding.py:25
Methodteardown_method
(self, method)
tests/unit_tests/models/test_gpt_model.py:33
Methodteardown_method
(self, method)
tests/unit_tests/transformer/test_transformer_layer.py:28
Methodteardown_method
(self, method)
tests/unit_tests/transformer/test_module.py:37
Methodteardown_method
(self, method)
tests/unit_tests/transformer/test_module.py:66
Methodteardown_method
(self, method)
tests/unit_tests/transformer/test_rope.py:24
Methodteardown_method
(self, method)
tests/unit_tests/transformer/test_multi_latent_attention.py:46
Methodteardown_method
(self, method)
tests/unit_tests/transformer/test_spec_customization.py:65
Methodteardown_method
(self, method)
tests/unit_tests/transformer/test_mlp.py:23
Methodteardown_method
(self, method)
tests/unit_tests/transformer/test_retro_attention.py:85
Methodteardown_method
(self, method)
tests/unit_tests/transformer/test_attention.py:27
Methodteardown_method
(self, method)
tests/unit_tests/transformer/test_transformer_block.py:30
Methodteardown_method
(self, method)
tests/unit_tests/transformer/moe/test_upcycling.py:125
Methodteardown_method
(self, method)
tests/unit_tests/transformer/moe/test_a2a_token_dispatcher.py:20
Methodteardown_method
(self, method)
tests/unit_tests/transformer/moe/test_routers.py:38
Methodteardown_method
(self, method)
tests/unit_tests/transformer/moe/test_routers.py:116
Methodteardown_method
(self, method)
tests/unit_tests/transformer/moe/test_token_dispatcher.py:227
Methodteardown_method
(self, method)
tests/unit_tests/transformer/moe/test_moe_layer.py:133
Methodteardown_method
(self, method)
tests/unit_tests/transformer/moe/test_moe_layer.py:188
Methodteardown_method
(self, method)
tests/unit_tests/transformer/moe/test_grouped_mlp.py:93
Methodteardown_method
(self, method)
tests/unit_tests/transformer/moe/test_shared_experts.py:18
Methodteardown_method
(self, method)
tests/unit_tests/transformer/moe/test_shared_experts.py:75
Methodteardown_method
(self, method)
tests/unit_tests/transformer/moe/test_aux_loss.py:57
← previousnext →3,701–3,800 of 4,219, ranked by callers