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
test_flat_narrow
(self)
tests/unit_tests/dist_checkpointing/test_mapping.py:103
Method
test_flattened_tensors_are_properly_validated
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_flattened_resharding.py:207
Function
test_forward
(*input)
tests/unit_tests/tensor_parallel/test_random.py:44
Method
test_forward
Forward pass for the latent next word prediction. The LM decoder will perform teacher-forcing next word prediction in multiple depths
megatron/core/models/difflm/gpt_model.py:240
Method
test_forward
(self)
tests/unit_tests/models/test_multimodal_projector.py:52
Method
test_forward
(self)
tests/unit_tests/models/test_mamba_model.py:59
Method
test_forward
(self)
tests/unit_tests/models/test_llava_model.py:277
Method
test_forward
(self)
tests/unit_tests/models/test_clip_vit_model.py:44
Method
test_forward_backward
(self, tp_size, ep_size)
tests/unit_tests/transformer/moe/test_a2a_token_dispatcher.py:29
Method
test_forward_backward
(self, tp_size, ep_size)
tests/unit_tests/transformer/moe/test_token_dispatcher.py:236
Function
test_forward_backward_func_with_interleaving
(mocker)
tests/unit_tests/pipeline_parallel/test_schedules.py:165
Function
test_forward_backward_func_with_pipeline_parallel
(mocker)
tests/unit_tests/pipeline_parallel/test_schedules.py:104
Function
test_forward_backward_func_without_pipeline_parallel
(mocker)
tests/unit_tests/pipeline_parallel/test_schedules.py:50
Method
test_forward_output_encoder_hidden_only
(self)
tests/unit_tests/models/test_t5_model.py:159
Method
test_forward_with_encoder_hidden_states
(self)
tests/unit_tests/models/test_t5_model.py:194
Method
test_fp16_module
(self)
tests/unit_tests/transformer/test_module.py:69
Method
test_fp32_optimizer_resharding
(self, tmp_path_dist_ckpt, src_tp_pp, dest_tp_pp)
tests/unit_tests/dist_checkpointing/test_optimizer.py:403
Method
test_fp8_save_load
( self, tmp_path_dist_ckpt, use_fpsl, src_tp_pp, dest_tp_pp, load_exchange_algo )
tests/unit_tests/dist_checkpointing/test_fp8.py:54
Method
test_freeze
(self)
tests/unit_tests/models/test_llava_model.py:402
Method
test_from_rank_offsets_constructor
(self, dtype=torch.float, device='cuda')
tests/unit_tests/dist_checkpointing/test_mapping.py:29
Method
test_from_rank_offsets_flat_constructor
(self, dtype=torch.float, device='cuda')
tests/unit_tests/dist_checkpointing/test_mapping.py:42
Method
test_fused_rope_gpu_forward
(self)
tests/unit_tests/transformer/test_attention.py:65
Function
test_gather_split_1d_tensor
()
tests/unit_tests/tensor_parallel/test_tensor_parallel_utils.py:31
Method
test_generate
(self)
tests/unit_tests/inference/engines/test_mcore_engine.py:74
Method
test_generate_all_output_tokens_static_batch
(self)
tests/unit_tests/inference/text_generation_controllers/test_simple_text_generation_controller.py:141
Method
test_generate_all_output_tokens_static_batch
(self)
tests/unit_tests/inference/text_generation_controllers/test_encoder_decoder_text_generation_controller.py:106
Method
test_generate_empty_prompt
(self)
tests/unit_tests/inference/engines/test_mcore_engine.py:98
Method
test_get
(self)
tests/unit_tests/test_num_microbatches_calculator.py:106
Method
test_get
(self)
tests/unit_tests/test_num_microbatches_calculator.py:130
Function
test_get_current_global_batch_size
()
tests/unit_tests/test_num_microbatches_calculator.py:53
Method
test_get_current_global_batch_size
(self)
tests/unit_tests/test_num_microbatches_calculator.py:109
Method
test_get_current_global_batch_size
(self)
tests/unit_tests/test_num_microbatches_calculator.py:133
Function
test_get_forward_backward_func
()
tests/unit_tests/pipeline_parallel/test_schedules.py:12
Method
test_get_layer_name_without_prefix
(self)
tests/unit_tests/export/trtllm/test_trtllm_layers.py:105
Function
test_get_lr_cosine
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:139
Function
test_get_lr_linear
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:106
Function
test_get_micro_batch_size
()
tests/unit_tests/test_num_microbatches_calculator.py:62
Method
test_get_model_weights_converter
(self, mocker)
tests/unit_tests/export/trtllm/test_trtllm_single_device_converter.py:14
Method
test_get_model_weights_converter
test model weights onverter
tests/unit_tests/export/trtllm/test_trtllm_distributed_gpu_converter.py:57
Method
test_get_model_weights_converter
(self, mocker)
tests/unit_tests/export/trtllm/test_single_device_fp8.py:216
Method
test_get_model_weights_converter
(self, mocker)
tests/unit_tests/export/trtllm/test_distributed_fp8.py:219
Function
test_get_num_microbatches
()
tests/unit_tests/test_num_microbatches_calculator.py:45
Function
test_get_tensor_model_parallel_src_rank
(order)
tests/unit_tests/test_parallel_state.py:163
Function
test_get_wd_constant
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:45
Function
test_get_wd_cosine
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:85
Function
test_get_wd_linear
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:65
Function
test_global_memory_buffer
()
tests/unit_tests/test_utils.py:22
Function
test_gpt2_tiktok_tokenizer
(gpt2_tiktok_vocab)
tests/unit_tests/test_tokenizer.py:133
Method
test_gpu_forward
(self)
tests/unit_tests/models/test_base_embedding.py:49
Method
test_gpu_forward
(self)
tests/unit_tests/transformer/test_transformer_layer.py:39
Method
test_gpu_forward
(self)
tests/unit_tests/transformer/test_rope.py:37
Method
test_gpu_forward
(self)
tests/unit_tests/transformer/test_multi_latent_attention.py:60
Method
test_gpu_forward
(self)
tests/unit_tests/transformer/test_mlp.py:45
Method
test_gpu_forward
(self)
tests/unit_tests/transformer/test_retro_attention.py:199
Method
test_gpu_forward
(self)
tests/unit_tests/transformer/test_attention.py:41
Method
test_gpu_forward
(self)
tests/unit_tests/transformer/test_transformer_block.py:45
Method
test_gpu_forward
(self)
tests/unit_tests/transformer/moe/test_shared_experts.py:23
Method
test_gpu_forward
(self)
tests/unit_tests/transformer/moe/test_shared_experts.py:80
Method
test_gpu_forward
(self)
tests/unit_tests/transformer/moe/test_sequential_mlp.py:137
Method
test_gpu_forward
(self)
tests/unit_tests/ssm/test_mamba_layer.py:32
Method
test_gpu_forward
(self)
tests/unit_tests/ssm/test_mamba_block.py:41
Method
test_gpu_forward
(self, use_mem_eff_path)
tests/unit_tests/ssm/test_mamba_mixer.py:36
Method
test_gpu_forward_backward
(self)
tests/unit_tests/transformer/moe/test_grouped_mlp.py:318
Method
test_gpu_forward_backward_with_no_tokens_allocated
Test the case when no token is allocated for groupedGEMM kernels.
tests/unit_tests/transformer/moe/test_grouped_mlp.py:362
Method
test_gpu_forward_full_checkpoint
(self)
tests/unit_tests/transformer/test_transformer_block.py:66
Method
test_gpu_forward_full_checkpoint_fp8
(self)
tests/unit_tests/transformer/test_transformer_block.py:69
Method
test_gpu_forward_selective_checkpoint
(self)
tests/unit_tests/transformer/test_transformer_block.py:72
Method
test_gpu_forward_selective_checkpoint_fp8
(self)
tests/unit_tests/transformer/test_transformer_block.py:75
Function
test_grad_sync
(use_distributed_optimizer: bool, overlap_grad_reduce: bool)
tests/unit_tests/distributed/test_param_and_grad_buffer.py:160
Method
test_gradient_with_no_tokens_allocated
Test that when no token is passed in, the parameters of the grouped MLP will also have gradients.
tests/unit_tests/transformer/moe/test_grouped_mlp.py:206
Function
test_helpers
()
tests/unit_tests/pipeline_parallel/test_helpers.py:120
Method
test_hybrid_layer_allocation
(self)
tests/unit_tests/ssm/test_mamba_hybrid_layer_allocation.py:14
Function
test_import
()
tests/unit_tests/test_basic.py:1
Method
test_import_module
(self)
tests/unit_tests/transformer/test_spec_customization.py:68
Method
test_inference
(self)
tests/unit_tests/models/test_mamba_model.py:81
Method
test_inference_only_tensor_parallel
(self)
tests/unit_tests/inference/model_inference_wrappers/gpt/test_gpt_inference_wrapper.py:107
Method
test_inference_only_tensor_parallel
(self)
tests/unit_tests/inference/model_inference_wrappers/t5/test_t5_inference_wrapper.py:92
Method
test_inference_params
(self)
tests/unit_tests/inference/test_common_inference_params.py:6
Method
test_inference_params
(self)
tests/unit_tests/inference/model_inference_wrappers/test_model_inference_wrapper_config.py:10
Method
test_inference_pipeline_parallel_large__size
(self)
tests/unit_tests/inference/model_inference_wrappers/gpt/test_gpt_inference_wrapper.py:86
Method
test_inference_pipeline_parallel_small_size
(self)
tests/unit_tests/inference/model_inference_wrappers/gpt/test_gpt_inference_wrapper.py:64
Function
test_init_num_microbatches_calculator
()
tests/unit_tests/test_num_microbatches_calculator.py:8
Function
test_initialization
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:18
Function
test_initialize_and_destroy_model_parallel
(order)
tests/unit_tests/test_parallel_state.py:14
Method
test_interleave_transformer_block
(self, moe_layer_freq)
tests/unit_tests/transformer/moe/test_moe_layer.py:140
Method
test_invalid_layer_types_cause_failure
(self)
tests/unit_tests/ssm/test_mamba_block.py:74
Function
test_is_main_replica
()
tests/unit_tests/dist_checkpointing/test_mapping.py:170
Function
test_is_pipeline_first_stage
(order)
tests/unit_tests/test_parallel_state.py:139
Function
test_is_pipeline_last_stage
(order)
tests/unit_tests/test_parallel_state.py:147
Method
test_layer_numbers
The layer numbers should start at one (for the embedding # layer) and go up incrementally from there. This is required for PEFT to wo
tests/unit_tests/models/test_mamba_model.py:125
Method
test_layer_types
Make sure that the layer types specified with hybrid_override_pattern were honored.
tests/unit_tests/ssm/test_mamba_block.py:59
Method
test_legacy_moe_layer
(self, num_moe_experts, moe_token_dispatcher_type, grouped_gemm)
tests/unit_tests/transformer/moe/test_moe_layer.py:58
Function
test_llava_model_parallelism
The purpose of this test is to check that vit, vision projection and lm layer counts across tensor and pipeline parallel ranks match the coun
tests/unit_tests/models/test_llava_model.py:673
Method
test_lm_loss_auc
(self)
tests/functional_tests/python_test_utils/test_fp8_ci_pipeline.py:96
Method
test_lm_loss_correlation
(self)
tests/functional_tests/python_test_utils/test_fp8_ci_pipeline.py:101
Method
test_lm_loss_deterministic
(self)
tests/functional_tests/python_test_utils/test_resume_checkpoint_pipeline.py:58
Method
test_lm_loss_margin
(self)
tests/functional_tests/python_test_utils/test_fp8_ci_pipeline.py:92
Method
test_lm_loss_nondeterministic
(self)
tests/functional_tests/python_test_utils/test_resume_checkpoint_pipeline.py:62
Method
test_load_distribution
(self, parallelization_along_dp, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_fully_parallel.py:213
Method
test_load_error_msg
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_serialization.py:382
← previous
next →
3,901–4,000 of 4,219, ranked by callers