Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gen-Verse/OpenClaw-RL
/ functions
Functions
10,561 in github.com/Gen-Verse/OpenClaw-RL
⨍
Functions
10,561
◇
Types & classes
1,405
↳
Endpoints
144
Function
test_docker_environment_forward_nonexistent_env_variables
Test forwarding non-existent environment variables (should be empty).
swe-rl/mini-swe-agent/tests/environments/test_docker.py:117
Function
test_docker_environment_set_env_variables
Test setting environment variables in the container.
swe-rl/mini-swe-agent/tests/environments/test_docker.py:72
Function
test_double_fork_cuda_rng_states_tracker
(use_cudagraphable_rng)
Megatron-LM/tests/unit_tests/tensor_parallel/test_random.py:40
Method
test_dsa_backward
Test sparse attention backward pass with indexer loss.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:529
Method
test_dsa_constructor
Test sparse attention initialization.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:472
Method
test_dsa_forward
Test sparse attention forward pass.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:479
Method
test_dsa_forward_consistency
Test that sparse attention gives consistent results across different TP, SP, and sparse loss settings.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:970
Method
test_dsa_gradient_sync
Test that indexer gradients are properly synchronized within TP group.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:1169
Method
test_dsa_indexer_constructor
Test indexer initialization.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:323
Method
test_dsa_indexer_forward
Test indexer forward pass.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:332
Method
test_dsa_indexer_forward_consistency
Test that indexer gives consistent results across different TP sizes and SP settings.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:719
Method
test_dsa_indexer_forward_with_scores
Test indexer forward pass with scores.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:356
Method
test_dsa_indexer_gradient_sync
Test that gradients are properly synchronized within TP group.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:814
Method
test_dsa_indexer_loss_shape
Test that indexer loss returns a scalar.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:101
Method
test_dsa_indexer_loss_sparse
Test sparse indexer loss computation.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:146
Method
test_dsa_indexer_weight_consistency
Test that indexer weights are identical across ALL GPUs.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:688
Method
test_dsa_indexer_with_mask
Test indexer with attention mask.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:382
Method
test_dsa_topk_selection
Test that sparse attention correctly selects top-k indices.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:590
Method
test_dsa_weight_consistency
Test that sparse attention indexer weights are identical across ALL GPUs.
Megatron-LM/tests/unit_tests/transformer/test_attention_variant_dsa.py:937
Method
test_dynamic_top_n_logprobs_calculation
Test the _dynamic_step_calculate_top_n_logprobs function directly. Verifies: 1. top_n_logprobs are computed for all requests
Megatron-LM/tests/unit_tests/inference/text_generation_controllers/test_simple_text_generation_controller.py:737
Function
test_eager_attention_function_correctness
Test the correctness of the context parallel eager attention function
Megatron-LM/tests/unit_tests/transformer/test_attention.py:797
Method
test_edge_case_single_rank_dims
Test edge case with dimensions of size 1.
Megatron-LM/tests/unit_tests/test_hyper_comm_grid.py:279
Method
test_edge_cases
Test edge cases for is_layer_window_attention.
Megatron-LM/tests/unit_tests/transformer/test_utils.py:254
Method
test_edit_with_custom_editor
Test edit function with custom editor.
swe-rl/mini-swe-agent/tests/run/test_extra_config.py:385
Method
test_edit_with_default_editor
Test edit function with default editor (nano).
swe-rl/mini-swe-agent/tests/run/test_extra_config.py:371
Method
test_embedding_init
(self)
Megatron-LM/tests/unit_tests/tensor_parallel/test_initialization.py:28
Method
test_embedding_init
Test that we can initialize the embedding weights to something else. This test could be added to any model.
Megatron-LM/tests/unit_tests/models/test_gpt_model.py:75
Function
test_empty_agent_content
Test app behavior with no messages.
swe-rl/mini-swe-agent/tests/agents/test_interactive_textual.py:236
Method
test_empty_data_batch
Test forward pass with empty data batch.
Megatron-LM/tests/unit_tests/models/test_mimo_submodules.py:298
Method
test_empty_load
(self, tmp_path_dist_ckpt)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_serialization.py:601
Method
test_encode_with_random_data
Test encoding with random image data.
Megatron-LM/tests/unit_tests/models/test_mimo_submodules.py:236
Method
test_end_to_end_workflow
Test complete workflow: init -> create -> get.
Megatron-LM/tests/unit_tests/test_hyper_comm_grid.py:254
Method
test_engine_logging_step_interval_zero
Test that no logging occurs when inference_logging_step_interval is 0.
Megatron-LM/tests/unit_tests/inference/test_wandb_logging.py:201
Function
test_entropy_calculation
()
Megatron-LM/tests/unit_tests/test_rl_utils.py:241
Method
test_enum_handling
Test that enum types are handled correctly.
Megatron-LM/tests/unit_tests/test_argument_utils.py:187
Method
test_env_var_fallback
Test that environment variable is used when no config provided.
swe-rl/mini-swe-agent/tests/models/test_init.py:24
Method
test_env_var_overrides_config_api_key
Test that MSWEA_MODEL_API_KEY overrides config api_key.
swe-rl/mini-swe-agent/tests/models/test_init.py:103
Method
test_env_var_sets_api_key_when_no_config_key
Test that MSWEA_MODEL_API_KEY is used when config has no api_key.
swe-rl/mini-swe-agent/tests/models/test_init.py:121
Method
test_error
(error_msg)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_serialization.py:879
Method
test_error_check
(self, nheads_tp, ngroups_tp, cp_size, expected_error_message)
Megatron-LM/tests/unit_tests/ssm/test_mamba_context_parallel.py:136
Method
test_error_check
(self, hidden_size, ngroups, tp_size, expected_error_message)
Megatron-LM/tests/unit_tests/ssm/test_mamba_mixer.py:113
Function
test_error_from_malformed
()
Megatron-LM/tests/unit_tests/transformer/test_quantization_config.py:66
Method
test_errors_are_reported
(self, tmp_path_dist_ckpt, async_save, worker_fn)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_async_save.py:79
Method
test_events
Test events.
Megatron-LM/tests/unit_tests/inference/engines/test_dynamic_engine.py:932
Function
test_everything_integration_test
()
swe-rl/mini-swe-agent/tests/agents/test_interactive_textual.py:55
Method
test_everything_ok
(self, caplog, algo, validate_integrity, strict)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_strict.py:202
Method
test_exact_load_handling
(self, caplog, tmp_path_dist_ckpt, validate_integrity, save_format)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_serialization.py:998
Function
test_exception_handling_in_agent_run
Test that exceptions during agent.run() are properly handled and recorded
swe-rl/mini-swe-agent/tests/run/test_swebench.py:398
Function
test_exception_handling_with_progress_manager
Test that progress manager receives exception notifications in multithreaded mode
swe-rl/mini-swe-agent/tests/run/test_swebench.py:470
Method
test_exceptions
(self, mocker)
Megatron-LM/tests/unit_tests/export/trtllm/test_trtllm_helper.py:10
Method
test_exclude_multiple_fields
Test excluding multiple fields.
Megatron-LM/tests/unit_tests/test_argument_utils.py:222
Method
test_exclude_single_field
Test excluding a single field.
Megatron-LM/tests/unit_tests/test_argument_utils.py:209
Function
test_exit_immediately_flag_sets_confirm_exit_false
Test that --exit-immediately flag sets confirm_exit to False in agent config.
swe-rl/mini-swe-agent/tests/run/test_cli_integration.py:535
Function
test_exit_immediately_flag_with_typer_runner
Test --exit-immediately flag using typer's test runner.
swe-rl/mini-swe-agent/tests/run/test_cli_integration.py:618
Function
test_experimental_cls_exception_init
()
Megatron-LM/tests/unit_tests/test_utils.py:65
Function
test_experimental_cls_exception_static
()
Megatron-LM/tests/unit_tests/test_utils.py:75
Function
test_experimental_cls_init
()
Megatron-LM/tests/unit_tests/test_utils.py:48
Function
test_experimental_cls_logs_once
Ensure the experimental_cls decorator writes the enable message only once for classes.
Megatron-LM/tests/unit_tests/utils/test_experimental_log_once.py:58
Function
test_experimental_cls_static
()
Megatron-LM/tests/unit_tests/test_utils.py:57
Function
test_experimental_fn_logs_once
Ensure the experimental_fn decorator writes the enable message only once.
Megatron-LM/tests/unit_tests/utils/test_experimental_log_once.py:17
Function
test_expert_model_parallel_rank
()
Megatron-LM/tests/unit_tests/test_parallel_state.py:135
Function
test_expert_tensor_parellel_world_size
(order)
Megatron-LM/tests/unit_tests/test_parallel_state.py:85
Method
test_extract_type_list
Test type extraction for list types.
Megatron-LM/tests/unit_tests/test_argument_utils.py:354
Method
test_extract_type_literal
Test type extraction for Literal types.
Megatron-LM/tests/unit_tests/test_argument_utils.py:364
Method
test_extract_type_optional
Test type extraction for Optional types.
Megatron-LM/tests/unit_tests/test_argument_utils.py:344
Method
test_extract_type_primitive
Test type extraction for primitive types.
Megatron-LM/tests/unit_tests/test_argument_utils.py:336
Method
test_failed_save
(self, caplog, tmp_path_dist_ckpt, tp, pp, use_ramdisk, async_save, algo)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_local.py:266
Method
test_field_docstrings_as_help
Test that field docstrings are extracted and used as help text.
Megatron-LM/tests/unit_tests/test_argument_utils.py:176
Method
test_filename_to_id
(self)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_local.py:51
Function
test_filter_instances_empty_list
Test filter_instances with empty input list
swe-rl/mini-swe-agent/tests/run/test_swebench.py:161
Function
test_filter_instances_filter_and_slice
Test filter_instances with both filtering and slicing
swe-rl/mini-swe-agent/tests/run/test_swebench.py:135
Function
test_filter_instances_no_filters
Test filter_instances with no filtering applied
swe-rl/mini-swe-agent/tests/run/test_swebench.py:91
Function
test_filter_instances_no_matches
Test filter_instances when regex matches nothing
swe-rl/mini-swe-agent/tests/run/test_swebench.py:167
Function
test_filter_instances_regex_filter
Test filter_instances with regex filtering
swe-rl/mini-swe-agent/tests/run/test_swebench.py:98
Function
test_filter_instances_shuffle
Test filter_instances with shuffle enabled produces deterministic results
swe-rl/mini-swe-agent/tests/run/test_swebench.py:149
Function
test_filter_instances_slice_end_only
Test filter_instances with slice end only
swe-rl/mini-swe-agent/tests/run/test_swebench.py:127
Function
test_filter_instances_slice_only
Test filter_instances with slice specification
swe-rl/mini-swe-agent/tests/run/test_swebench.py:111
Function
test_filter_instances_slice_start_only
Test filter_instances with slice start only
swe-rl/mini-swe-agent/tests/run/test_swebench.py:119
Function
test_fine_grained_activation_offload_memory_reduction
()
Megatron-LM/tests/unit_tests/pipeline_parallel/test_fine_grained_activation_offloading.py:84
Function
test_fine_grained_activation_offload_output_and_grad_consistency
()
Megatron-LM/tests/unit_tests/pipeline_parallel/test_fine_grained_activation_offloading.py:145
Method
test_finetune_doesnt_load_optimizer
Test finetuning doesn't try to load the optimizer.
Megatron-LM/tests/unit_tests/dist_checkpointing/test_optimizer.py:459
Method
test_finished_requests_with_multiple_blocks
Test that all memory blocks are correctly released for finished requests that use multiple blocks.
Megatron-LM/tests/unit_tests/inference/contexts/test_dynamic_context.py:844
Method
test_fixed_offset
(self)
Megatron-LM/tests/unit_tests/fusions/test_torch_softmax.py:68
Method
test_fixed_output_lengths
Test generating a fixed number of output tokens.
Megatron-LM/tests/unit_tests/inference/engines/test_dynamic_engine.py:666
Method
test_flash_decode_with_no_rope_freq
Test that flash_decode cannot be used with no_rope.
Megatron-LM/tests/unit_tests/transformer/test_attention_no_rope.py:211
Method
test_flat_narrow
(self)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_mapping.py:103
Method
test_flattened_tensors_are_properly_validated
(self, tmp_path_dist_ckpt)
Megatron-LM/tests/unit_tests/dist_checkpointing/test_flattened_resharding.py:213
Method
test_force_balanced_aux_loss
Test if aux loss is 1.0 when using uniform routing
Megatron-LM/tests/unit_tests/transformer/moe/test_aux_loss.py:529
Method
test_force_load_balancing
(self)
Megatron-LM/tests/unit_tests/transformer/moe/test_routers.py:166
Method
test_format_arg_name_basic
Test basic argument name formatting.
Megatron-LM/tests/unit_tests/test_argument_utils.py:320
Method
test_format_arg_name_with_prefix
Test argument name formatting with prefix.
Megatron-LM/tests/unit_tests/test_argument_utils.py:328
Function
test_format_error_handling
Test agent handles malformed action formats properly.
swe-rl/mini-swe-agent/tests/agents/test_default.py:56
Function
test_forward
(*input)
Megatron-LM/tests/unit_tests/tensor_parallel/test_random.py:190
Method
test_forward
(self)
Megatron-LM/tests/unit_tests/models/test_multimodal_projector.py:52
Method
test_forward
(self)
Megatron-LM/tests/unit_tests/models/test_mamba_model.py:64
Method
test_forward
(self)
Megatron-LM/tests/unit_tests/models/test_llava_model.py:278
Method
test_forward
(self)
Megatron-LM/tests/unit_tests/models/test_clip_vit_model.py:44
Method
test_forward
(self)
Megatron-LM/tests/unit_tests/models/test_radio_model.py:49
Method
test_forward
(self)
Megatron-LM/tests/unit_tests/models/test_gpt_model.py:175
Method
test_forward
(self)
Megatron-LM/tests/unit_tests/transformer/test_relative_attention.py:32
← previous
next →
9,501–9,600 of 10,561, ranked by callers