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
test_load_state_dict
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:213
Method
test_load_state_dict
(self)
tests/unit_tests/models/test_t5_model.py:248
Method
test_load_te_state_dict_pre_hook
(self)
tests/unit_tests/inference/test_modelopt_gpt_model.py:35
Method
test_load_tensor_metadata
(self, tmp_path_dist_ckpt, src_tp_pp)
tests/unit_tests/dist_checkpointing/test_flattened_resharding.py:128
Method
test_load_tensors_metadata
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_serialization.py:292
Function
test_local_multi_tensor_apply
()
tests/unit_tests/test_local_multi_tensor_fns.py:76
Function
test_local_multi_tensor_l2_norm_and_scale
()
tests/unit_tests/test_local_multi_tensor_fns.py:13
Method
test_local_spec
(self)
tests/unit_tests/models/test_t5_model.py:269
Method
test_local_spec
(self, mocker)
tests/unit_tests/models/test_bert_model.py:121
Method
test_local_spec_exception
(self, mocker)
tests/unit_tests/models/test_bert_model.py:130
Function
test_make_viewless_tensor
()
tests/unit_tests/test_utils.py:29
Method
test_megatron_module
(self)
tests/unit_tests/transformer/test_module.py:40
Method
test_memory_usage
(self, state_dict_device, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_fully_parallel.py:286
Method
test_metadata_integrity_violation
(self)
tests/unit_tests/dist_checkpointing/test_mapping.py:62
Method
test_missing_keys_raises_error_during_validation
( self, caplog, tmp_path_dist_ckpt, validate_integrity, save_format )
tests/unit_tests/dist_checkpointing/test_serialization.py:703
Function
test_model_parallel_cuda_manual_seed
()
tests/unit_tests/tensor_parallel/test_random.py:35
Function
test_moe_tensor_model_parellel_rank
(order)
tests/unit_tests/test_parallel_state.py:107
Method
test_moe_tp_forward_backward
(self, tp_size, ep_size, moe_tp_size)
tests/unit_tests/transformer/moe/test_token_dispatcher.py:257
Method
test_moe_with_late_initialize
( self, moe_token_dispatcher_type, grouped_gemm, tp_size, ep_size )
tests/unit_tests/transformer/moe/test_moe_layer.py:86
Method
test_multi_process_save
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_serialization.py:97
Method
test_multi_process_save_log_difference
(self, tmp_path_dist_ckpt, caplog)
tests/unit_tests/dist_checkpointing/test_serialization.py:133
Function
test_multimodal_tokenizer
Test MultimodalTokenizer.
tests/unit_tests/test_tokenizer.py:235
Method
test_narrowing
(self)
tests/unit_tests/dist_checkpointing/test_mapping.py:89
Method
test_no_post_process_forward
(self)
tests/unit_tests/models/test_t5_model.py:239
Method
test_no_preprocess_forward
(self)
tests/unit_tests/models/test_t5_model.py:242
Function
test_null_tokenizer
()
tests/unit_tests/test_tokenizer.py:176
Method
test_only_necessary_exchanges_performed_during_load
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_fully_parallel.py:333
Method
test_optimizer_params
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_optimizer.py:120
Method
test_optimizer_resharding
( self, tmp_path_dist_ckpt, src_tp_pp, dest_tp_pp, use_dist_opt, bf16 )
tests/unit_tests/dist_checkpointing/test_optimizer.py:483
Method
test_output_shape
(self)
tests/unit_tests/fusions/test_torch_softmax.py:26
Method
test_output_shapes_match
(self)
tests/unit_tests/inference/test_flash_decode.py:15
Method
test_parallel_reconfiguration_e2e
Test model saving and loading with different TP/PP
tests/unit_tests/dist_checkpointing/models/test_t5_model.py:163
Method
test_parallel_reconfiguration_e2e
Test module saving and loading with different TP/PP
tests/unit_tests/dist_checkpointing/models/test_mlp_glu.py:60
Method
test_parallel_reconfiguration_e2e
Test model saving and loading with different TP/PP/EP/ETP(expert-tensor-parallel)
tests/unit_tests/dist_checkpointing/models/test_moe_experts.py:128
Method
test_parallel_reconfiguration_e2e
Test model saving and loading with different TP/PP/expert parallelism
tests/unit_tests/dist_checkpointing/models/test_mamba.py:77
Method
test_parallel_reconfiguration_e2e
Test model saving and loading with different TP/PP
tests/unit_tests/dist_checkpointing/models/test_bert_model.py:120
Method
test_parallel_reconfiguration_e2e
Test model saving and loading with different TP/PP
tests/unit_tests/dist_checkpointing/models/test_gpt_model.py:93
Method
test_partition_change_save_load
(self, tmp_path_dist_ckpt, strategy=None)
tests/unit_tests/dist_checkpointing/test_serialization.py:169
Method
test_partition_change_save_load
(self, tmp_path_dist_ckpt, src_tp_pp, dest_tp_pp)
tests/unit_tests/dist_checkpointing/test_flattened_resharding.py:41
Function
test_pipeline_model_parallel_rank
(order)
tests/unit_tests/test_parallel_state.py:116
Function
test_pipeline_model_parallel_world_size
(order)
tests/unit_tests/test_parallel_state.py:89
Function
test_pipeline_parallel_initializations
(order)
tests/unit_tests/test_parallel_state.py:50
Method
test_pipeline_parallel_setup
(self)
tests/unit_tests/dist_checkpointing/models/test_t5_model.py:201
Function
test_placeholder
This is here because otherwise there's no other test in this module (all disabled) and pytest would fail.
tests/unit_tests/transformer/moe/test_a2a_token_dispatcher.py:10
Method
test_post_process_forward
(self)
tests/unit_tests/models/test_t5_model.py:110
Method
test_post_process_forward
(self)
tests/unit_tests/models/test_bert_model.py:76
Method
test_post_process_forward
(self)
tests/unit_tests/models/test_gpt_model.py:61
Function
test_precision_aware_fused_adam
()
tests/unit_tests/test_optimizer.py:69
Method
test_preprocess_data
(self)
tests/unit_tests/models/test_llava_model.py:87
Method
test_process_embedding_token_parallel
(self, cp_size, tp_size, sequence_parallel)
tests/unit_tests/models/test_llava_model.py:568
Function
test_ramp_up
()
tests/unit_tests/test_num_microbatches_calculator.py:137
Function
test_rank_generator_for_tp_dp_pp
(nodes, num_gpu, tp, pp, cp, ep)
tests/unit_tests/test_parallel_state.py:326
Function
test_reconfigure_num_microbatches_calculator
()
tests/unit_tests/test_num_microbatches_calculator.py:30
Method
test_reformulate_nd_flattened_tensors
( self, tmp_path_dist_ckpt, src_tp_pp, dest_tp_pp, expected_ckpt_offsets_by_rank )
tests/unit_tests/dist_checkpointing/test_flattened_resharding.py:82
Method
test_remove_sharded_tensors
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_serialization.py:522
Method
test_rename_input_layer_names_to_trtllm_layer_names_exception
(self)
tests/unit_tests/export/trtllm/test_trtllm_layers.py:31
Method
test_rename_input_layer_names_to_trtllm_layer_names_with_layer_numbers
(self)
tests/unit_tests/export/trtllm/test_trtllm_layers.py:76
Method
test_rename_input_layer_names_to_trtllm_layer_names_without_layer_numbers
(self)
tests/unit_tests/export/trtllm/test_trtllm_layers.py:8
Method
test_router_forward
(self, moe_router_pre_softmax)
tests/unit_tests/transformer/moe/test_routers.py:52
Method
test_router_forward
(self, moe_router_pre_softmax)
tests/unit_tests/transformer/moe/test_routers.py:127
Method
test_row_init
(self)
tests/unit_tests/tensor_parallel/test_initialization.py:57
Function
test_safely_set_viewless_tensor_data
()
tests/unit_tests/test_utils.py:35
Method
test_sample_from_logits
(self)
tests/unit_tests/inference/text_generation_controllers/test_simple_text_generation_controller.py:77
Method
test_save_distribution
(self, parallelization_along_dp, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_fully_parallel.py:120
Method
test_save_load
(self, tmp_path)
tests/unit_tests/models/test_multimodal_projector.py:66
Method
test_save_load
(self, tmp_path)
tests/unit_tests/models/test_mamba_model.py:119
Method
test_save_load
(self, tmp_path)
tests/unit_tests/models/test_llava_model.py:395
Method
test_save_load
(self, tmp_path)
tests/unit_tests/models/test_clip_vit_model.py:52
Method
test_scheduler
(self)
tests/unit_tests/inference/test_scheduler.py:25
Method
test_sequential_grouped_mlp_extra_state
Test saving and loading _extra_state
tests/unit_tests/dist_checkpointing/models/test_moe_experts.py:292
Method
test_sequential_grouped_mlp_interchangeable
Test model saving and loading with different TP/PP/expert parallelism
tests/unit_tests/dist_checkpointing/models/test_moe_experts.py:228
Method
test_set_input_tensor
(self)
tests/unit_tests/models/test_t5_model.py:90
Method
test_set_input_tensor
(self)
tests/unit_tests/models/test_mamba_model.py:45
Method
test_set_input_tensor
(self)
tests/unit_tests/models/test_llava_model.py:80
Method
test_set_input_tensor
(self)
tests/unit_tests/models/test_llava_model.py:467
Method
test_set_input_tensor
(self)
tests/unit_tests/models/test_bert_model.py:61
Method
test_set_input_tensor
(self)
tests/unit_tests/models/test_clip_vit_model.py:35
Method
test_set_input_tensor
(self)
tests/unit_tests/models/test_gpt_model.py:46
Method
test_sharded_metadata
(self, tmp_path_dist_ckpt, save_format)
tests/unit_tests/dist_checkpointing/test_serialization.py:821
Method
test_sharded_object_serialization
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_serialization.py:409
Method
test_sharded_state_dict
(self, tp_pp, order)
tests/unit_tests/transformer/test_transformer_layer.py:61
Method
test_sharded_state_dict_save_load
( self, tmp_path_dist_ckpt, src_spec_type, dst_spec_type, model_type )
tests/unit_tests/dist_checkpointing/models/test_t5_model.py:106
Method
test_sharded_state_dict_save_load
( self, tmp_path_dist_ckpt, src_spec_type, dst_spec_type, model_type )
tests/unit_tests/dist_checkpointing/models/test_retro_model.py:71
Method
test_sharded_state_dict_save_load
(self, tmp_path_dist_ckpt, src_layer_spec, dst_layer_spec)
tests/unit_tests/dist_checkpointing/models/test_bert_model.py:70
Method
test_sharded_state_dict_save_load
( self, tmp_path_dist_ckpt, src_layer_spec_fn, dst_layer_spec_fn )
tests/unit_tests/dist_checkpointing/models/test_gpt_model.py:56
Method
test_sharded_tensors
(self, tp, pp, use_torch_fsdp2)
tests/unit_tests/dist_checkpointing/test_local.py:65
Method
test_simple_broadcast
(self, dtype, src_rank)
tests/unit_tests/dist_checkpointing/test_fp8.py:23
Method
test_single_process_save_load
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/test_serialization.py:45
Method
test_sliding_window_attention
(self)
tests/unit_tests/transformer/test_spec_customization.py:135
Function
test_split_tensor_along_last_dim
()
tests/unit_tests/tensor_parallel/test_tensor_parallel_utils.py:10
Function
test_split_tensor_into_1d_equal_chunks
()
tests/unit_tests/tensor_parallel/test_tensor_parallel_utils.py:16
Function
test_state_dict
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:185
Method
test_state_dict_comparison
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/models/test_bert_model.py:137
Method
test_state_dict_comparison
(self, tmp_path_dist_ckpt)
tests/unit_tests/dist_checkpointing/models/test_gpt_model.py:118
Method
test_state_dict_for_save_checkpoint
(self)
tests/unit_tests/models/test_t5_model.py:245
Function
test_step_function
(mock_optimizer)
tests/unit_tests/test_optimizer_param_scheduler.py:163
Function
test_straggler_detector
()
tests/unit_tests/test_utils.py:114
Method
test_te_col_init
(self)
tests/unit_tests/tensor_parallel/test_initialization.py:126
Method
test_te_grouped_linear_torch_native
Test saving and loading torch native checkpoints
tests/unit_tests/dist_checkpointing/models/test_moe_experts.py:367
Method
test_te_moe_layer
(self, num_moe_experts, moe_token_dispatcher_type, grouped_gemm)
tests/unit_tests/transformer/moe/test_moe_layer.py:32
← previous
next →
4,001–4,100 of 4,219, ranked by callers