MCPcopy Create free account

hub / github.com/Gen-Verse/OpenClaw-RL / functions

Functions10,561 in github.com/Gen-Verse/OpenClaw-RL

Methodtest_initialize_from_spec
Test creating a submodule from a ModuleSpec with real modules.
Megatron-LM/tests/unit_tests/models/test_mimo_submodules.py:140
Methodtest_initialize_with_modules
Test constructor with pre-built modules.
Megatron-LM/tests/unit_tests/models/test_mimo_submodules.py:108
Functiontest_input_container_multiple_actions
Test input container handling multiple actions in sequence.
swe-rl/mini-swe-agent/tests/agents/test_interactive_textual.py:402
Methodtest_input_model_name_takes_precedence
Test that explicit input_model_name overrides all other sources.
swe-rl/mini-swe-agent/tests/models/test_init.py:14
Methodtest_input_params_forward
Test to ensure that MultiLatentAttention has all parameters required by the Attention class's forward method.
Megatron-LM/tests/unit_tests/transformer/test_multi_latent_attention.py:139
Functiontest_instance_lifecycle
(manager)
swe-rl/mini-swe-agent/tests/run/test_batch_progress.py:44
Methodtest_integer_no_rope_freq_pattern
Test that integer no_rope value is correctly converted to pattern.
Megatron-LM/tests/unit_tests/transformer/test_attention_no_rope.py:41
Methodtest_integer_skip_frequency
Test window attention with integer skip frequency.
Megatron-LM/tests/unit_tests/transformer/test_utils.py:156
Methodtest_integration_with_compatible_model
Test get_model works end-to-end with a model that handles extra kwargs.
swe-rl/mini-swe-agent/tests/models/test_init.py:86
Methodtest_interleave_transformer_block
(self, moe_layer_freq)
Megatron-LM/tests/unit_tests/transformer/moe/test_moe_layer.py:144
Functiontest_interruption_handling_empty_message
Test that interruption with empty input is handled properly.
swe-rl/mini-swe-agent/tests/agents/test_interactive.py:179
Functiontest_interruption_handling_with_message
Test that interruption with user message is handled properly.
swe-rl/mini-swe-agent/tests/agents/test_interactive.py:171
Methodtest_invalid_layer_types_cause_failure
(self)
Megatron-LM/tests/unit_tests/ssm/test_mamba_block.py:83
Methodtest_invalid_no_rope_freq_pattern
Test invalid no_rope patterns raise appropriate errors.
Megatron-LM/tests/unit_tests/transformer/test_attention_no_rope.py:118
Methodtest_invalid_skip_frequency_type
Test error handling for invalid window_attn_skip_freq types.
Megatron-LM/tests/unit_tests/transformer/test_utils.py:237
Functiontest_is_main_replica
()
Megatron-LM/tests/unit_tests/dist_checkpointing/test_mapping.py:170
Methodtest_is_memory_available
(self, is_hybrid_model)
Megatron-LM/tests/unit_tests/inference/contexts/test_dynamic_context.py:144
Functiontest_is_pipeline_first_stage
(order)
Megatron-LM/tests/unit_tests/test_parallel_state.py:144
Functiontest_is_pipeline_last_stage
(order)
Megatron-LM/tests/unit_tests/test_parallel_state.py:152
Methodtest_is_static_batching
(self)
Megatron-LM/tests/unit_tests/inference/contexts/test_dynamic_context.py:128
Methodtest_kernel_launch
Check if the compiled kernel can be launched with different problem sizes
Megatron-LM/tests/unit_tests/fusions/test_fused_linear_cross_entropy.py:302
Methodtest_kitchen_config_resolution_dense
(self)
Megatron-LM/tests/unit_tests/models/test_gpt_model_quantization.py:38
Methodtest_kitchen_config_resolution_moe
(self)
Megatron-LM/tests/unit_tests/models/test_gpt_model_quantization.py:141
Methodtest_kvcache_utilization_stats_types
Test that get_kvcache_utilization_stats() returns correct types.
Megatron-LM/tests/unit_tests/inference/test_wandb_logging.py:168
Methodtest_l2_qk_norm
Test L2 normalization for QK vectors using local spec.
Megatron-LM/tests/unit_tests/transformer/test_spec_customization.py:253
Methodtest_layer_builder
( self, num_layers, pipeline_model_parallel_size, virtual_pipeline_model_paral
Megatron-LM/tests/unit_tests/transformer/test_transformer_block.py:191
Methodtest_layer_builder
( self, num_layers, pp_size, vpp_size, pipeline_model_parallel_layout, should_assert_error )
Megatron-LM/tests/unit_tests/transformer/test_transformer_block.py:465
Methodtest_layer_number_edge_cases
Test with different layer number edge cases.
Megatron-LM/tests/unit_tests/transformer/test_utils.py:305
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
Megatron-LM/tests/unit_tests/models/test_mamba_model.py:130
Methodtest_layer_types
Make sure that the layer types specified with hybrid_override_pattern were honored.
Megatron-LM/tests/unit_tests/ssm/test_mamba_block.py:68
Methodtest_layer_wise_optimizer_count_zeros
Test that zero counting in gradients works correctly.
Megatron-LM/tests/unit_tests/dist_checkpointing/test_layer_wise_optimizer.py:285
Methodtest_layer_wise_optimizer_dp_sizes
Test LayerWiseDistributedOptimizer with different DP sizes.
Megatron-LM/tests/unit_tests/dist_checkpointing/test_layer_wise_optimizer.py:439
Methodtest_layer_wise_optimizer_grad_norm
Test that gradient norm calculation works correctly.
Megatron-LM/tests/unit_tests/dist_checkpointing/test_layer_wise_optimizer.py:255
Methodtest_layer_wise_optimizer_replica_id
Test that LayerWiseDistributedOptimizer sets replica_id correctly.
Megatron-LM/tests/unit_tests/dist_checkpointing/test_layer_wise_optimizer.py:410
Methodtest_layer_wise_optimizer_resharding
Test resharding of LayerWiseDistributedOptimizer across different TP/PP.
Megatron-LM/tests/unit_tests/dist_checkpointing/test_layer_wise_optimizer.py:319
Methodtest_layer_wise_optimizer_save_load
Test save/load of LayerWiseDistributedOptimizer checkpoints.
Megatron-LM/tests/unit_tests/dist_checkpointing/test_layer_wise_optimizer.py:190
Methodtest_layer_wise_optimizer_step
Test that step function works and returns expected values.
Megatron-LM/tests/unit_tests/dist_checkpointing/test_layer_wise_optimizer.py:477
Methodtest_layer_wise_optimizer_with_moe
Test LayerWiseDistributedOptimizer with MoE models.
Megatron-LM/tests/unit_tests/dist_checkpointing/test_layer_wise_optimizer.py:372
Methodtest_layout_layer_number
(self, pipeline_model_parallel_layout, layer_number_golden_answer)
Megatron-LM/tests/unit_tests/transformer/test_transformer_block.py:515
Methodtest_learnable_offset
(self)
Megatron-LM/tests/unit_tests/fusions/test_torch_softmax.py:83
Methodtest_legacy_moe_layer
(self, num_moe_experts, moe_token_dispatcher_type, grouped_gemm)
Megatron-LM/tests/unit_tests/transformer/moe/test_moe_layer.py:59
Functiontest_limits_exceeded_multiple_times_with_continuation
Test that limits can be exceeded and updated multiple times.
swe-rl/mini-swe-agent/tests/agents/test_interactive.py:631
Functiontest_limits_exceeded_with_user_continuation
Test that when limits are exceeded, user can provide new limits and execution continues.
swe-rl/mini-swe-agent/tests/agents/test_interactive.py:600
Functiontest_list_content_rendering
Test rendering of messages with list content vs string content.
swe-rl/mini-swe-agent/tests/agents/test_interactive_textual.py:278
Methodtest_list_fields_with_default_factory
Test that list fields use nargs='+'.
Megatron-LM/tests/unit_tests/test_argument_utils.py:264
Methodtest_list_skip_frequency
Test window attention with list-based skip frequency.
Megatron-LM/tests/unit_tests/transformer/test_utils.py:186
Methodtest_list_skip_frequency_boolean_conversion
Test that list values are properly converted to boolean.
Megatron-LM/tests/unit_tests/transformer/test_utils.py:213
Methodtest_litellm_model_fallback
Test that non-anthropic model names return LitellmModel.
swe-rl/mini-swe-agent/tests/models/test_init.py:56
Methodtest_literal_fields_have_choices
Test that Literal types create choice constraints.
Megatron-LM/tests/unit_tests/test_argument_utils.py:285
Methodtest_literal_fields_reject_invalid_choices
Test that invalid Literal choices are rejected.
Megatron-LM/tests/unit_tests/test_argument_utils.py:302
Functiontest_load_base_checkpoint
Test _load_base_checkpoint.
Megatron-LM/tests/unit_tests/test_checkpointing.py:163
Functiontest_load_checkpoint
Test load_checkpoint.
Megatron-LM/tests/unit_tests/test_checkpointing.py:253
Methodtest_load_distribution
(self, parallelize_within_dp, tmp_path_dist_ckpt)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_fully_parallel.py:237
Methodtest_load_error_msg
(self, tmp_path_dist_ckpt)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_serialization.py:410
Functiontest_load_state_dict
(mock_optimizer)
Megatron-LM/tests/unit_tests/test_optimizer_param_scheduler.py:213
Methodtest_load_state_dict
(self)
Megatron-LM/tests/unit_tests/models/test_t5_model.py:126
Methodtest_load_tensor_metadata
(self, tmp_path_dist_ckpt, src_tp_pp)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_flattened_resharding.py:134
Methodtest_load_tensors_metadata
(self, tmp_path_dist_ckpt)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_serialization.py:320
Functiontest_local_end_to_end
Test the complete flow from CLI to final result using real environment but deterministic model
swe-rl/mini-swe-agent/tests/run/test_local.py:8
Functiontest_local_environment_basic_execution
Test basic command execution in local environment.
swe-rl/mini-swe-agent/tests/environments/test_local.py:21
Functiontest_local_environment_command_failure
Test that command failures are properly captured.
swe-rl/mini-swe-agent/tests/environments/test_local.py:97
Functiontest_local_environment_config_defaults
Test that LocalEnvironmentConfig has correct default values.
swe-rl/mini-swe-agent/tests/environments/test_local.py:12
Functiontest_local_environment_custom_cwd
Test executing commands in a custom working directory.
swe-rl/mini-swe-agent/tests/environments/test_local.py:66
Functiontest_local_environment_custom_timeout
Test custom timeout configuration.
swe-rl/mini-swe-agent/tests/environments/test_local.py:132
Functiontest_local_environment_cwd_parameter_override
Test that the cwd parameter in execute() overrides the config cwd.
swe-rl/mini-swe-agent/tests/environments/test_local.py:76
Functiontest_local_environment_default_cwd
Test that commands use os.getcwd() when no cwd is specified.
swe-rl/mini-swe-agent/tests/environments/test_local.py:87
Functiontest_local_environment_env_variable_override
Test that config env variables override existing ones.
swe-rl/mini-swe-agent/tests/environments/test_local.py:56
Functiontest_local_environment_existing_env_variables
Test that existing environment variables are preserved and merged.
swe-rl/mini-swe-agent/tests/environments/test_local.py:45
Functiontest_local_environment_file_operations
Test file operations in the local environment.
swe-rl/mini-swe-agent/tests/environments/test_local.py:169
Functiontest_local_environment_multiline_output
Test handling of multiline command output.
swe-rl/mini-swe-agent/tests/environments/test_local.py:156
Functiontest_local_environment_nonexistent_command
Test execution of non-existent command.
swe-rl/mini-swe-agent/tests/environments/test_local.py:106
Functiontest_local_environment_return_codes
Test that various return codes are properly captured.
swe-rl/mini-swe-agent/tests/environments/test_local.py:148
Functiontest_local_environment_set_env_variables
Test setting environment variables in the local environment.
swe-rl/mini-swe-agent/tests/environments/test_local.py:30
Functiontest_local_environment_shell_features
Test that shell features like pipes and redirects work.
swe-rl/mini-swe-agent/tests/environments/test_local.py:189
Functiontest_local_environment_stderr_capture
Test that stderr is properly captured.
swe-rl/mini-swe-agent/tests/environments/test_local.py:115
Functiontest_local_environment_timeout
Test timeout functionality.
swe-rl/mini-swe-agent/tests/environments/test_local.py:124
Functiontest_local_multi_tensor_apply
()
Megatron-LM/tests/unit_tests/test_local_multi_tensor_fns.py:76
Functiontest_local_multi_tensor_l2_norm_and_scale
()
Megatron-LM/tests/unit_tests/test_local_multi_tensor_fns.py:13
Methodtest_local_spec
(self)
Megatron-LM/tests/unit_tests/models/test_t5_model.py:147
Methodtest_local_spec
(self, mocker)
Megatron-LM/tests/unit_tests/models/test_bert_model.py:121
Methodtest_local_spec_exception
(self, mocker)
Megatron-LM/tests/unit_tests/models/test_bert_model.py:130
Functiontest_log_handler_cleanup
Test that log handler is properly cleaned up.
swe-rl/mini-swe-agent/tests/agents/test_interactive_textual.py:434
Functiontest_log_message_filtering
Test that warning and error log messages trigger notifications.
swe-rl/mini-swe-agent/tests/agents/test_interactive_textual.py:252
Methodtest_logprobs_and_topn_consistency
1. Ensures that a batch request containing prompts of *different* lengths still returns the correct number of log‑probs for
Megatron-LM/tests/unit_tests/inference/text_generation_controllers/test_simple_text_generation_controller.py:447
Functiontest_main_with_current_directory_default
Test main function with default argument (current directory).
swe-rl/mini-swe-agent/tests/run/test_inspector.py:366
Functiontest_main_with_directory_containing_trajectories
Test main function with a directory containing trajectory files.
swe-rl/mini-swe-agent/tests/run/test_inspector.py:330
Functiontest_main_with_directory_no_trajectories
Test main function with a directory containing no trajectory files.
swe-rl/mini-swe-agent/tests/run/test_inspector.py:340
Functiontest_main_with_nonexistent_path
Test main function with a path that doesn't exist.
swe-rl/mini-swe-agent/tests/run/test_inspector.py:355
Functiontest_main_with_single_file
Test main function with a single trajectory file.
swe-rl/mini-swe-agent/tests/run/test_inspector.py:318
Functiontest_make_viewless_tensor
()
Megatron-LM/tests/unit_tests/test_utils.py:92
Methodtest_mamba_states_cache
(self, is_hybrid_model: bool)
Megatron-LM/tests/unit_tests/inference/contexts/test_dynamic_context.py:911
Functiontest_manager_initialization
(manager)
swe-rl/mini-swe-agent/tests/run/test_batch_progress.py:34
Functiontest_manager_with_yaml_path
(manager_with_yaml)
swe-rl/mini-swe-agent/tests/run/test_batch_progress.py:39
Methodtest_megatron_module
(self)
Megatron-LM/tests/unit_tests/transformer/test_module.py:40
Functiontest_megatron_tokenizer
()
Megatron-LM/tests/unit_tests/tokenizers/test_tokenizer.py:115
Methodtest_memory_usage
(self, state_dict_device, tmp_path_dist_ckpt)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_fully_parallel.py:335
Functiontest_message_history_tracking
Test that messages are properly added and tracked.
swe-rl/mini-swe-agent/tests/agents/test_default.py:162
Functiontest_messages_to_steps_edge_cases
Test the _messages_to_steps function with various edge cases.
swe-rl/mini-swe-agent/tests/agents/test_interactive_textual.py:198
Methodtest_metadata_integrity_violation
(self)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_mapping.py:62
Methodtest_metadata_takes_precedence_over_inference
Test that metadata has highest precedence over type inference.
Megatron-LM/tests/unit_tests/test_argument_utils.py:587
← previousnext →9,801–9,900 of 10,561, ranked by callers