MCPcopy Create free account

hub / github.com/AMAP-ML/Thinking-with-Map / functions

Functions4,735 in github.com/AMAP-ML/Thinking-with-Map

Functiontest_assign_non_tensor_stack_with_complex_nested
Test assign_non_tensor_stack with lists of lists of dicts.
verl/tests/test_protocol_v2_on_cpu.py:735
Functiontest_assign_non_tensor_stack_with_nested_dicts
Test assign_non_tensor_stack with lists of dicts.
verl/tests/test_protocol_v2_on_cpu.py:720
Functiontest_assign_non_tensor_stack_with_nested_lists
Test assign_non_tensor_stack with lists of lists.
verl/tests/test_protocol_v2_on_cpu.py:705
Functiontest_assign_non_tensor_with_auto_detection
Test assign_non_tensor automatically detects and handles nested structures.
verl/tests/test_protocol_v2_on_cpu.py:777
Methodtest_async_generate
Test async generate method.
verl/tests/workers/rollout/rollout_sglang/test_http_server_engine.py:802
Methodtest_async_memory_management
Test async memory management methods.
verl/tests/workers/rollout/rollout_sglang/test_http_server_engine.py:819
Methodtest_attn_implementation_passed_to_autoconfig
Test that attn_implementation is correctly passed to AutoConfig.from_pretrained.
verl/tests/workers/test_fsdp_attn_implementation.py:71
Methodtest_attn_implementation_passed_to_model
Test that attn_implementation is correctly passed to model.from_pretrained.
verl/tests/workers/test_fsdp_attn_implementation.py:109
Methodtest_auto_name_generation_edge_cases
Test automatic name generation for various class name patterns.
verl/tests/interactions/test_interaction_registry.py:185
Methodtest_aws_expiration_not_reached
Test AWS expiration timestamp with sufficient remaining time
verl/tests/utils/ckpt/test_esi_save_ckpt_on_cpu.py:52
Methodtest_backward_compatibility_no_interaction_config
Test backward compatibility when no interaction config is provided.
verl/tests/workers/rollout/test_sglang_multi_interaction.py:366
Methodtest_basic_acquire
Test basic token acquisition.
verl/tests/experimental/reward/test_async_token_bucket_on_cpu.py:27
Methodtest_basic_multi_process_init
(self)
verl/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:534
Methodtest_basic_reward_computation
Test basic reward computation without rate limiting.
verl/tests/experimental/reward/test_rate_limited_reward_manager_on_cpu.py:164
Methodtest_batch_size_fields_modifiable
Test that batch size fields can be modified after creation.
verl/tests/workers/config/test_critic_config_on_cpu.py:161
Methodtest_bootstrap_metric_basic
Test bootstrap_metric with simple data and functions.
verl/tests/trainer/ppo/test_metric_utils_on_cpu.py:216
Methodtest_bootstrap_metric_empty
Test bootstrap_metric with empty data.
verl/tests/trainer/ppo/test_metric_utils_on_cpu.py:240
Methodtest_both_bounding_modes
Test both truncate and mask modes.
verl/tests/trainer/ppo/test_rollout_corr_integration.py:147
Methodtest_calc_maj_val_basic
Test calc_maj_val with simple data.
verl/tests/trainer/ppo/test_metric_utils_on_cpu.py:249
Methodtest_calc_maj_val_tie
Test calc_maj_val with tied votes.
verl/tests/trainer/ppo/test_metric_utils_on_cpu.py:262
Methodtest_calculate_debug_metrics
(self)
verl/tests/utils/debug/test_metrics.py:23
Methodtest_calculate_score_direct_call
Test calculate_score method directly.
verl/tests/interactions/test_gsm8k_interaction.py:183
Methodtest_calculate_score_with_kwargs
Test calculate_score method with additional kwargs.
verl/tests/interactions/test_gsm8k_interaction.py:201
Functiontest_case_sensitivity
Test that manager names are case-sensitive.
verl/tests/workers/reward_manager/test_registry_on_cpu.py:42
Functiontest_check_correctness
()
verl/tests/utils/reward_score/test_sandbox_on_cpu.py:176
Functiontest_chunk_concat
()
verl/tests/test_protocol_v2_on_cpu.py:293
Functiontest_chunk_concat
()
verl/tests/test_protocol_on_cpu.py:195
Methodtest_class_initialization_once
Test that class initialization only happens once.
verl/tests/experimental/reward/test_rate_limited_reward_manager_on_cpu.py:478
Functiontest_colocated_workers
()
verl/tests/single_controller/test_colocated_workers.py:51
Functiontest_colocated_workers_fused
()
verl/tests/single_controller/test_colocated_workers_fused.py:51
Methodtest_combined_rate_limits
Test all three rate limiting layers together.
verl/tests/experimental/reward/test_rate_limited_reward_manager_on_cpu.py:375
Methodtest_command_with_override
Test that the command runs without error when overriding config values.
verl/tests/utils/test_config_on_cpu.py:77
Methodtest_complex_data_structures
Test handling of complex data structures.
verl/tests/workers/rollout/rollout_sglang/test_http_server_engine.py:922
Methodtest_compute_data_metrics_with_critic
Test compute_data_metrics with critic enabled.
verl/tests/trainer/ppo/test_metric_utils_on_cpu.py:98
Methodtest_compute_data_metrics_without_critic
Test compute_data_metrics with critic disabled.
verl/tests/trainer/ppo/test_metric_utils_on_cpu.py:116
Methodtest_compute_log_prob
Test compute_log_prob method
verl/tests/workers/actor/test_special_dp_actor.py:164
Methodtest_compute_log_prob_without_entropy
Test compute_log_prob method without entropy calculation
verl/tests/workers/actor/test_special_dp_actor.py:182
Methodtest_compute_throughout_metrics
Test compute_throughout_metrics with various timing data.
verl/tests/trainer/ppo/test_metric_utils_on_cpu.py:192
Methodtest_compute_timing_metrics
Test compute_timing_metrics with various timing data.
verl/tests/trainer/ppo/test_metric_utils_on_cpu.py:155
Methodtest_compute_values
Test CriticWorker.compute_values() method
verl/tests/workers/critic/test_special_dp_critic.py:159
Functiontest_concat_conflicting_non_metric_keys
Test that concat() raises an assertion error when non-metric keys have conflicting values. This ensures data integrity by catching cases where wo
verl/tests/test_protocol_on_cpu.py:339
Functiontest_concat_first_worker_missing_metrics
Test that metrics from other workers are preserved even when first worker has no metrics. This is a critical edge case - the old buggy implementa
verl/tests/test_protocol_on_cpu.py:272
Functiontest_concat_merge_different_non_metric_keys
Test that concat() merges non-metric meta_info keys from all workers. When different workers have different non-metric keys, all keys should be p
verl/tests/test_protocol_on_cpu.py:315
Functiontest_concat_metrics_from_multiple_workers
Test that concat() properly merges metrics from all workers in distributed training.
verl/tests/test_protocol_on_cpu.py:219
Functiontest_concat_nested_tensor
()
verl/tests/test_protocol_v2_on_cpu.py:656
Functiontest_concat_non_list_metrics
Test that concat() handles non-list metrics (single dict) correctly. In some cases, metrics might be a single dict instead of a list. The imp
verl/tests/test_protocol_on_cpu.py:295
Functiontest_concat_tensordict
()
verl/tests/test_protocol_v2_on_cpu.py:674
Functiontest_concat_with_empty_and_non_list_meta_info
Test concat() handles edge cases: empty meta_info, non-list values, and None.
verl/tests/test_protocol_on_cpu.py:249
Methodtest_concurrency_limiting
Test concurrent request limiting.
verl/tests/experimental/reward/test_rate_limited_reward_manager_on_cpu.py:259
Methodtest_concurrent_acquires
Test multiple concurrent acquire operations.
verl/tests/experimental/reward/test_async_token_bucket_on_cpu.py:102
Methodtest_config_dict_interface
Test that configs provide dict-like interface from BaseConfig.
verl/tests/workers/config/test_critic_config_on_cpu.py:121
Methodtest_config_dict_like_access
Test dictionary-like access to config fields.
verl/tests/workers/config/test_actor_config_on_cpu.py:123
Methodtest_config_get_method
Test the get method for backward compatibility.
verl/tests/workers/config/test_actor_config_on_cpu.py:102
Methodtest_config_inheritance
Test that the inheritance hierarchy works correctly.
verl/tests/workers/config/test_actor_config_on_cpu.py:30
Methodtest_config_inheritance_hierarchy
Test that the inheritance hierarchy is correct.
verl/tests/workers/config/test_critic_config_on_cpu.py:106
Methodtest_config_init
(self)
verl/tests/utils/test_nvtx_profile.py:25
Methodtest_config_init_from_yaml
(self)
verl/tests/trainer/config/test_algo_config_on_cpu.py:127
Functiontest_configs
()
verl/tests/models/test_transformers_ulysses.py:50
Functiontest_context_manager_returns_none
Test that context manager yields None.
verl/tests/utils/test_temp_env_on_cpu.py:139
Functiontest_continuous_score_consistency
Verify that continuous score calculation is consistent between prime_code and sandbox_fusion. Uses a test case where the first 9 out of 11 su
verl/tests/utils/reward_score/test_sandbox_on_cpu.py:147
Functiontest_copy_from_hdfs_with_mocks
(tmp_path, monkeypatch)
verl/tests/utils/test_fs_on_cpu.py:43
Methodtest_correct_vs_incorrect_answers
Test scoring of correct vs incorrect answers.
verl/tests/experimental/reward/test_rate_limited_reward_manager_on_cpu.py:413
Functiontest_create_custom_curriculum_samper
()
verl/tests/utils/dataset/test_create_rl_sampler_on_cpu.py:77
Functiontest_create_custom_curriculum_samper_wrong_class
()
verl/tests/utils/dataset/test_create_rl_sampler_on_cpu.py:94
Methodtest_critic_and_actor_independent_configuration
Test that critic and actor can have independent attention implementation configurations
verl/tests/workers/critic/test_special_dp_critic.py:333
Methodtest_critic_attn_implementation_override_functionality
Test that CriticWorker correctly uses attn_implementation from override_config
verl/tests/workers/critic/test_special_dp_critic.py:202
Methodtest_critic_attn_implementation_passed_to_autoconfig
Test that attn_implementation is correctly passed to AutoConfig.from_pretrained in CriticWorker.
verl/tests/workers/test_fsdp_attn_implementation.py:238
Methodtest_critic_backward_compatibility
Test that CriticWorker maintains backward compatibility with existing configurations
verl/tests/workers/critic/test_special_dp_critic.py:310
Methodtest_critic_config_validation_logic
Test the __post_init__ validation logic for CriticConfig.
verl/tests/workers/config/test_critic_config_on_cpu.py:210
Functiontest_critic_engine
(strategy)
verl/tests/models/test_engine.py:175
Methodtest_critic_hydra_config_compatibility
Test that Hydra +prefix configurations work correctly for CriticWorker
verl/tests/workers/critic/test_special_dp_critic.py:290
Methodtest_critic_model_config_structure
Test that critic model config properly incorporates override settings
verl/tests/workers/critic/test_special_dp_critic.py:260
Functiontest_data_transfer
()
verl/tests/single_controller/test_data_transfer.py:46
Methodtest_dataclass_creation_from_dict
Test creating AlgoConfig from dictionary.
verl/tests/trainer/config/test_algo_config_on_cpu.py:56
Methodtest_dataclass_creation_from_omega_config
Test creating AlgoConfig from OmegaConf DictConfig.
verl/tests/trainer/config/test_algo_config_on_cpu.py:69
Methodtest_dataparallelppoactor_initialization
Test DataParallelPPOActor initialization
verl/tests/workers/actor/test_special_dp_actor.py:221
Methodtest_dataparallelppoactor_with_qwen3_model
Test DataParallelPPOActor with real Qwen3ForCausalLM model
verl/tests/workers/actor/test_special_dp_actor.py:231
Functiontest_dataproto_chunk_after_index
()
verl/tests/test_protocol_v2_on_cpu.py:613
Functiontest_dataproto_chunk_after_index
()
verl/tests/test_protocol_on_cpu.py:708
Functiontest_dataproto_fold_unfold
()
verl/tests/test_protocol_on_cpu.py:447
Functiontest_dataproto_index
()
verl/tests/test_protocol_v2_on_cpu.py:503
Functiontest_dataproto_index
()
verl/tests/test_protocol_on_cpu.py:506
Functiontest_dataproto_no_batch
()
verl/tests/test_protocol_v2_on_cpu.py:576
Functiontest_dataproto_no_batch
()
verl/tests/test_protocol_on_cpu.py:607
Functiontest_dataproto_pad_unpad
()
verl/tests/test_protocol_v2_on_cpu.py:417
Functiontest_dataproto_pad_unpad
()
verl/tests/test_protocol_on_cpu.py:395
Functiontest_dataproto_split_uneven
Test DataProto.split with uneven splits
verl/tests/utils/test_seqlen_balancing.py:127
Functiontest_dataproto_unfold_column_chunks
()
verl/tests/test_protocol_on_cpu.py:642
Functiontest_decorator_async_function
Tests the decorator with an `async def` method using DP_COMPUTE_PROTO. Verifies that the call returns a future and the result is correct afte
verl/tests/single_controller/test_decorator_on_cpu.py:101
Functiontest_decorator_dp_compute
Tests the default behavior of a synchronous decorated method with DP_COMPUTE_PROTO. Verifies the result correctness.
verl/tests/single_controller/test_decorator_on_cpu.py:65
Methodtest_decorator_preserves_function
Test that the decorator returns the original function
verl/tests/trainer/ppo/test_core_algos_on_cpu.py:96
Functiontest_decorator_returns_original_class
Test that the decorator returns the original class unchanged.
verl/tests/workers/reward_manager/test_registry_on_cpu.py:85
Methodtest_default_configuration
(self)
verl/tests/workers/config/test_optim_config_on_cpu.py:21
Methodtest_default_max_tokens
Test that max_tokens defaults to rate_limit.
verl/tests/experimental/reward/test_async_token_bucket_on_cpu.py:187
Methodtest_default_values
Test that default values are properly set.
verl/tests/trainer/config/test_algo_config_on_cpu.py:92
Methodtest_default_values
(self)
verl/tests/workers/config/test_engine_config_on_cpu.py:21
Methodtest_default_values
(self)
verl/tests/workers/config/test_engine_config_on_cpu.py:49
Methodtest_dict_result_format
Test handling of dict return format from reward function.
verl/tests/experimental/reward/test_rate_limited_reward_manager_on_cpu.py:339
Functiontest_distributed_masked_mean
(world_size, tmp_path)
verl/tests/utils/test_torch_functional.py:108
Functiontest_distributed_mean_max_min_std
(world_size, tmp_path)
verl/tests/utils/test_torch_functional.py:70
← previousnext →4,201–4,300 of 4,735, ranked by callers