MCPcopy Create free account

hub / github.com/JinjieNi/MegaDLMs / functions

Functions4,219 in github.com/JinjieNi/MegaDLMs

Methodtest_flat_narrow
(self)
tests/unit_tests/dist_checkpointing/test_mapping.py:103
Methodtest_flattened_tensors_are_properly_validated
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_flattened_resharding.py:207
Functiontest_forward
(*input)
tests/unit_tests/tensor_parallel/test_random.py:44
Methodtest_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
Methodtest_forward
(self)
tests/unit_tests/models/test_multimodal_projector.py:52
Methodtest_forward
(self)
tests/unit_tests/models/test_mamba_model.py:59
Methodtest_forward
(self)
tests/unit_tests/models/test_llava_model.py:277
Methodtest_forward
(self)
tests/unit_tests/models/test_clip_vit_model.py:44
Methodtest_forward_backward
(self, tp_size, ep_size)
tests/unit_tests/transformer/moe/test_a2a_token_dispatcher.py:29
Methodtest_forward_backward
(self, tp_size, ep_size)
tests/unit_tests/transformer/moe/test_token_dispatcher.py:236
Functiontest_forward_backward_func_with_interleaving
(mocker)
tests/unit_tests/pipeline_parallel/test_schedules.py:165
Functiontest_forward_backward_func_with_pipeline_parallel
(mocker)
tests/unit_tests/pipeline_parallel/test_schedules.py:104
Functiontest_forward_backward_func_without_pipeline_parallel
(mocker)
tests/unit_tests/pipeline_parallel/test_schedules.py:50
Methodtest_forward_output_encoder_hidden_only
(self)
tests/unit_tests/models/test_t5_model.py:159
Methodtest_forward_with_encoder_hidden_states
(self)
tests/unit_tests/models/test_t5_model.py:194
Methodtest_fp16_module
(self)
tests/unit_tests/transformer/test_module.py:69
Methodtest_fp32_optimizer_resharding
(self, tmp_path_dist_ckpt, src_tp_pp, dest_tp_pp)
tests/unit_tests/dist_checkpointing/test_optimizer.py:403
Methodtest_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
Methodtest_freeze
(self)
tests/unit_tests/models/test_llava_model.py:402
Methodtest_from_rank_offsets_constructor
(self, dtype=torch.float, device='cuda')
tests/unit_tests/dist_checkpointing/test_mapping.py:29
Methodtest_from_rank_offsets_flat_constructor
(self, dtype=torch.float, device='cuda')
tests/unit_tests/dist_checkpointing/test_mapping.py:42
Methodtest_fused_rope_gpu_forward
(self)
tests/unit_tests/transformer/test_attention.py:65
Functiontest_gather_split_1d_tensor
()
tests/unit_tests/tensor_parallel/test_tensor_parallel_utils.py:31
Methodtest_generate
(self)
tests/unit_tests/inference/engines/test_mcore_engine.py:74
Methodtest_generate_all_output_tokens_static_batch
(self)
tests/unit_tests/inference/text_generation_controllers/test_simple_text_generation_controller.py:141
Methodtest_generate_all_output_tokens_static_batch
(self)
tests/unit_tests/inference/text_generation_controllers/test_encoder_decoder_text_generation_controller.py:106
Methodtest_generate_empty_prompt
(self)
tests/unit_tests/inference/engines/test_mcore_engine.py:98
Methodtest_get
(self)
tests/unit_tests/test_num_microbatches_calculator.py:106
Methodtest_get
(self)
tests/unit_tests/test_num_microbatches_calculator.py:130
Functiontest_get_current_global_batch_size
()
tests/unit_tests/test_num_microbatches_calculator.py:53
Methodtest_get_current_global_batch_size
(self)
tests/unit_tests/test_num_microbatches_calculator.py:109
Methodtest_get_current_global_batch_size
(self)
tests/unit_tests/test_num_microbatches_calculator.py:133
Functiontest_get_forward_backward_func
()
tests/unit_tests/pipeline_parallel/test_schedules.py:12
Methodtest_get_layer_name_without_prefix
(self)
tests/unit_tests/export/trtllm/test_trtllm_layers.py:105
Functiontest_get_lr_cosine
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:139
Functiontest_get_lr_linear
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:106
Functiontest_get_micro_batch_size
()
tests/unit_tests/test_num_microbatches_calculator.py:62
Methodtest_get_model_weights_converter
(self, mocker)
tests/unit_tests/export/trtllm/test_trtllm_single_device_converter.py:14
Methodtest_get_model_weights_converter
test model weights onverter
tests/unit_tests/export/trtllm/test_trtllm_distributed_gpu_converter.py:57
Methodtest_get_model_weights_converter
(self, mocker)
tests/unit_tests/export/trtllm/test_single_device_fp8.py:216
Methodtest_get_model_weights_converter
(self, mocker)
tests/unit_tests/export/trtllm/test_distributed_fp8.py:219
Functiontest_get_num_microbatches
()
tests/unit_tests/test_num_microbatches_calculator.py:45
Functiontest_get_tensor_model_parallel_src_rank
(order)
tests/unit_tests/test_parallel_state.py:163
Functiontest_get_wd_constant
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:45
Functiontest_get_wd_cosine
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:85
Functiontest_get_wd_linear
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:65
Functiontest_global_memory_buffer
()
tests/unit_tests/test_utils.py:22
Functiontest_gpt2_tiktok_tokenizer
(gpt2_tiktok_vocab)
tests/unit_tests/test_tokenizer.py:133
Methodtest_gpu_forward
(self)
tests/unit_tests/models/test_base_embedding.py:49
Methodtest_gpu_forward
(self)
tests/unit_tests/transformer/test_transformer_layer.py:39
Methodtest_gpu_forward
(self)
tests/unit_tests/transformer/test_rope.py:37
Methodtest_gpu_forward
(self)
tests/unit_tests/transformer/test_multi_latent_attention.py:60
Methodtest_gpu_forward
(self)
tests/unit_tests/transformer/test_mlp.py:45
Methodtest_gpu_forward
(self)
tests/unit_tests/transformer/test_retro_attention.py:199
Methodtest_gpu_forward
(self)
tests/unit_tests/transformer/test_attention.py:41
Methodtest_gpu_forward
(self)
tests/unit_tests/transformer/test_transformer_block.py:45
Methodtest_gpu_forward
(self)
tests/unit_tests/transformer/moe/test_shared_experts.py:23
Methodtest_gpu_forward
(self)
tests/unit_tests/transformer/moe/test_shared_experts.py:80
Methodtest_gpu_forward
(self)
tests/unit_tests/transformer/moe/test_sequential_mlp.py:137
Methodtest_gpu_forward
(self)
tests/unit_tests/ssm/test_mamba_layer.py:32
Methodtest_gpu_forward
(self)
tests/unit_tests/ssm/test_mamba_block.py:41
Methodtest_gpu_forward
(self, use_mem_eff_path)
tests/unit_tests/ssm/test_mamba_mixer.py:36
Methodtest_gpu_forward_backward
(self)
tests/unit_tests/transformer/moe/test_grouped_mlp.py:318
Methodtest_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
Methodtest_gpu_forward_full_checkpoint
(self)
tests/unit_tests/transformer/test_transformer_block.py:66
Methodtest_gpu_forward_full_checkpoint_fp8
(self)
tests/unit_tests/transformer/test_transformer_block.py:69
Methodtest_gpu_forward_selective_checkpoint
(self)
tests/unit_tests/transformer/test_transformer_block.py:72
Methodtest_gpu_forward_selective_checkpoint_fp8
(self)
tests/unit_tests/transformer/test_transformer_block.py:75
Functiontest_grad_sync
(use_distributed_optimizer: bool, overlap_grad_reduce: bool)
tests/unit_tests/distributed/test_param_and_grad_buffer.py:160
Methodtest_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
Functiontest_helpers
()
tests/unit_tests/pipeline_parallel/test_helpers.py:120
Methodtest_hybrid_layer_allocation
(self)
tests/unit_tests/ssm/test_mamba_hybrid_layer_allocation.py:14
Functiontest_import
()
tests/unit_tests/test_basic.py:1
Methodtest_import_module
(self)
tests/unit_tests/transformer/test_spec_customization.py:68
Methodtest_inference
(self)
tests/unit_tests/models/test_mamba_model.py:81
Methodtest_inference_only_tensor_parallel
(self)
tests/unit_tests/inference/model_inference_wrappers/gpt/test_gpt_inference_wrapper.py:107
Methodtest_inference_only_tensor_parallel
(self)
tests/unit_tests/inference/model_inference_wrappers/t5/test_t5_inference_wrapper.py:92
Methodtest_inference_params
(self)
tests/unit_tests/inference/test_common_inference_params.py:6
Methodtest_inference_params
(self)
tests/unit_tests/inference/model_inference_wrappers/test_model_inference_wrapper_config.py:10
Methodtest_inference_pipeline_parallel_large__size
(self)
tests/unit_tests/inference/model_inference_wrappers/gpt/test_gpt_inference_wrapper.py:86
Methodtest_inference_pipeline_parallel_small_size
(self)
tests/unit_tests/inference/model_inference_wrappers/gpt/test_gpt_inference_wrapper.py:64
Functiontest_init_num_microbatches_calculator
()
tests/unit_tests/test_num_microbatches_calculator.py:8
Functiontest_initialization
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:18
Functiontest_initialize_and_destroy_model_parallel
(order)
tests/unit_tests/test_parallel_state.py:14
Methodtest_interleave_transformer_block
(self, moe_layer_freq)
tests/unit_tests/transformer/moe/test_moe_layer.py:140
Methodtest_invalid_layer_types_cause_failure
(self)
tests/unit_tests/ssm/test_mamba_block.py:74
Functiontest_is_main_replica
()
tests/unit_tests/dist_checkpointing/test_mapping.py:170
Functiontest_is_pipeline_first_stage
(order)
tests/unit_tests/test_parallel_state.py:139
Functiontest_is_pipeline_last_stage
(order)
tests/unit_tests/test_parallel_state.py:147
Methodtest_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
Methodtest_layer_types
Make sure that the layer types specified with hybrid_override_pattern were honored.
tests/unit_tests/ssm/test_mamba_block.py:59
Methodtest_legacy_moe_layer
(self, num_moe_experts, moe_token_dispatcher_type, grouped_gemm)
tests/unit_tests/transformer/moe/test_moe_layer.py:58
Functiontest_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
Methodtest_lm_loss_auc
(self)
tests/functional_tests/python_test_utils/test_fp8_ci_pipeline.py:96
Methodtest_lm_loss_correlation
(self)
tests/functional_tests/python_test_utils/test_fp8_ci_pipeline.py:101
Methodtest_lm_loss_deterministic
(self)
tests/functional_tests/python_test_utils/test_resume_checkpoint_pipeline.py:58
Methodtest_lm_loss_margin
(self)
tests/functional_tests/python_test_utils/test_fp8_ci_pipeline.py:92
Methodtest_lm_loss_nondeterministic
(self)
tests/functional_tests/python_test_utils/test_resume_checkpoint_pipeline.py:62
Methodtest_load_distribution
(self, parallelization_along_dp, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_fully_parallel.py:213
Methodtest_load_error_msg
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_serialization.py:382
← previousnext →3,901–4,000 of 4,219, ranked by callers