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
Method
state_dict
(self)
megatron/core/optimizer/optimizer.py:987
Method
state_dict
(self)
megatron/core/optimizer/grad_scaler.py:30
Method
state_dict
(self)
megatron/core/optimizer/grad_scaler.py:46
Method
state_dict
(self)
megatron/core/optimizer/grad_scaler.py:132
Method
state_dict_for_save_checkpoint
For easy load when model is combined with other heads, add an extra key.
megatron/legacy/model/classification.py:76
Method
state_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
Method
state_dict_for_save_checkpoint
(self, prefix='', keep_vars=False)
megatron/legacy/model/gpt_model.py:100
Method
state_dict_for_save_checkpoint
For easy load.
megatron/legacy/model/language_model.py:564
Method
state_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
Method
state_dict_for_save_checkpoint
Use this function to override the state dict for saving checkpoints.
megatron/legacy/model/module.py:33
Method
state_dict_for_save_checkpoint
(self, prefix='', keep_vars=False)
megatron/legacy/model/module.py:199
Method
state_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
Method
state_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
Method
state_dict_for_save_checkpoint
Returns wrapped module's state_dict for checkpoint saving.
megatron/core/distributed/data_parallel_base.py:84
Method
state_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
Method
state_dict_for_save_checkpoint
Retrieve state_dict from the module being wrapped.
megatron/core/transformer/module.py:186
Function
state_restore_func
(state_dict)
megatron/training/initialize.py:85
Function
state_save_func
()
megatron/training/initialize.py:80
Method
step
Step the optimizer.
megatron/core/optimizer/optimizer.py:282
Method
step
(self)
megatron/core/optimizer/optimizer.py:469
Method
step
ChainedOptimizer will step all optimizers one by one.
megatron/core/optimizer/optimizer.py:1036
Method
step_with_ready_grads
Step the optimizer with ready gradients, return successful.
megatron/core/optimizer/optimizer.py:182
Method
step_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
Method
stop
Stop the timer.
megatron/core/timers.py:31
Method
stop
(self, barrier=False)
megatron/core/timers.py:55
Method
stop_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
Method
summarize_load_times
(self)
megatron/core/dist_checkpointing/strategies/two_stage.py:111
Function
sut_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
Method
swiglu
(x)
megatron/legacy/model/transformer.py:136
Function
switch_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
Method
symbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:224
Method
symbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:243
Method
symbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:262
Method
symbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:281
Method
symbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:300
Method
symbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:355
Method
symbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:384
Method
symbolic
Symbolic function for tracing.
megatron/core/tensor_parallel/mappings.py:403
Function
t5_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
Function
task_collate_fn
(batch_data)
tasks/orqa/supervised/eval_utils.py:17
Method
teardown_method
(self, method)
tests/unit_tests/test_training.py:69
Method
teardown_method
(self)
tests/unit_tests/fusions/test_torch_softmax.py:23
Method
teardown_method
(self, method)
tests/unit_tests/tensor_parallel/test_initialization.py:24
Method
teardown_method
(self, method)
tests/unit_tests/inference/test_modelopt_gpt_model.py:42
Method
teardown_method
(self, method)
tests/unit_tests/inference/model_inference_wrappers/gpt/test_gpt_inference_wrapper.py:60
Method
teardown_method
(self, method)
tests/unit_tests/inference/model_inference_wrappers/t5/test_t5_inference_wrapper.py:89
Method
teardown_method
(self, method)
tests/unit_tests/inference/text_generation_controllers/test_simple_text_generation_controller.py:74
Method
teardown_method
(self, method)
tests/unit_tests/inference/text_generation_controllers/test_encoder_decoder_text_generation_controller.py:103
Method
teardown_method
(self, method)
tests/unit_tests/inference/engines/test_mcore_engine.py:71
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_async_save.py:33
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_local.py:60
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_nonpersistent.py:28
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_serialization.py:42
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_serialization.py:609
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_cached_metadata.py:21
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:117
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:165
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:397
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_optimizer.py:468
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_flattened_resharding.py:34
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/test_fully_parallel.py:79
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_t5_model.py:100
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_mlp_glu.py:47
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_moe_experts.py:92
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_retro_model.py:65
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_bert_model.py:80
Method
teardown_method
(self, method)
tests/unit_tests/dist_checkpointing/models/test_gpt_model.py:68
Method
teardown_method
(self, method)
tests/unit_tests/models/test_t5_model.py:71
Method
teardown_method
(self, method)
tests/unit_tests/models/test_t5_model.py:254
Method
teardown_method
(self, method)
tests/unit_tests/models/test_multimodal_projector.py:39
Method
teardown_method
(self, method)
tests/unit_tests/models/test_mamba_model.py:34
Method
teardown_method
(self, method)
tests/unit_tests/models/test_llava_model.py:69
Method
teardown_method
(self, method)
tests/unit_tests/models/test_llava_model.py:456
Method
teardown_method
(self, method)
tests/unit_tests/models/test_llava_model.py:561
Method
teardown_method
(self, method)
tests/unit_tests/models/test_bert_model.py:48
Method
teardown_method
(self, method)
tests/unit_tests/models/test_bert_model.py:97
Method
teardown_method
(self, method)
tests/unit_tests/models/test_clip_vit_model.py:26
Method
teardown_method
(self, method)
tests/unit_tests/models/test_base_embedding.py:25
Method
teardown_method
(self, method)
tests/unit_tests/models/test_gpt_model.py:33
Method
teardown_method
(self, method)
tests/unit_tests/transformer/test_transformer_layer.py:28
Method
teardown_method
(self, method)
tests/unit_tests/transformer/test_module.py:37
Method
teardown_method
(self, method)
tests/unit_tests/transformer/test_module.py:66
Method
teardown_method
(self, method)
tests/unit_tests/transformer/test_rope.py:24
Method
teardown_method
(self, method)
tests/unit_tests/transformer/test_multi_latent_attention.py:46
Method
teardown_method
(self, method)
tests/unit_tests/transformer/test_spec_customization.py:65
Method
teardown_method
(self, method)
tests/unit_tests/transformer/test_mlp.py:23
Method
teardown_method
(self, method)
tests/unit_tests/transformer/test_retro_attention.py:85
Method
teardown_method
(self, method)
tests/unit_tests/transformer/test_attention.py:27
Method
teardown_method
(self, method)
tests/unit_tests/transformer/test_transformer_block.py:30
Method
teardown_method
(self, method)
tests/unit_tests/transformer/moe/test_upcycling.py:125
Method
teardown_method
(self, method)
tests/unit_tests/transformer/moe/test_a2a_token_dispatcher.py:20
Method
teardown_method
(self, method)
tests/unit_tests/transformer/moe/test_routers.py:38
Method
teardown_method
(self, method)
tests/unit_tests/transformer/moe/test_routers.py:116
Method
teardown_method
(self, method)
tests/unit_tests/transformer/moe/test_token_dispatcher.py:227
Method
teardown_method
(self, method)
tests/unit_tests/transformer/moe/test_moe_layer.py:133
Method
teardown_method
(self, method)
tests/unit_tests/transformer/moe/test_moe_layer.py:188
Method
teardown_method
(self, method)
tests/unit_tests/transformer/moe/test_grouped_mlp.py:93
Method
teardown_method
(self, method)
tests/unit_tests/transformer/moe/test_shared_experts.py:18
Method
teardown_method
(self, method)
tests/unit_tests/transformer/moe/test_shared_experts.py:75
Method
teardown_method
(self, method)
tests/unit_tests/transformer/moe/test_aux_loss.py:57
← previous
next →
3,701–3,800 of 4,219, ranked by callers