MCPcopy Create free account

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

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

↓ 1 callersFunctionset_random_seed
(seed)
verl/verl/workers/engine/megatron/utils.py:19
↓ 1 callersFunctionsetup
Setup test cases with a mock registry.
verl/tests/workers/reward_manager/test_registry_on_cpu.py:22
↓ 1 callersMethodsetup_embeddings_and_output_layer
Sets up embedding layer in first stage and output layer in last stage. This function initalizes word embeddings in the final stage when we ar
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:583
↓ 1 callersFunctionsetup_logger
(level=None)
demo/qwen_agent/log.py:19
↓ 1 callersMethodshared_embedding_or_output_weight
This is a convenience method to surface the language model's word embeddings, which is necessary for `finalize_model_grads._allreduce_word_emb
verl/verl/models/mcore/qwen2_5_vl/model.py:154
↓ 1 callersFunctionshould_allow_eval
(expr: str)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:863
↓ 1 callersFunctionshould_allow_eval
(expr: str)
verl/verl/utils/reward_score/prime_math/__init__.py:200
↓ 1 callersFunctionsimulate_response_completion_with_chat
(messages: List[Message])
demo/qwen_agent/llm/function_calling.py:148
↓ 1 callersFunctionsingle_compute_score
(evaluation_func, completion, reference, task, task_extra_info, executor, timeout=300.0)
verl/verl/workers/reward_manager/prime.py:30
↓ 1 callersMethodsleep
(self)
verl/verl/workers/sharding_manager/megatron_sglang.py:196
↓ 1 callersMethodslice
Slice the DataProto and return a new DataProto object. This is an improved version of direct slicing which returns a DataProtoItem.
verl/verl/protocol.py:682
↓ 1 callersFunctionslice_image
(image, max_slice_nums=9, scale_resolution=448, patch_size=14, never_split=False)
verl/recipe/minicpmo/rl_dataset.py:204
↓ 1 callersFunctionslow_task
A task that takes longer than the timeout.
verl/tests/utils/test_timeout_decorator_cpu.py:37
↓ 1 callersMethodsmart_resize
Smart resize image dimensions based on factor and pixel constraints
demo/qwen_agent/tools/image_zoom_in_qwen3vl.py:76
↓ 1 callersFunctionsoftmean
Compute SoftMean_β(x) = (1/β) * log( (1/n) * Σ exp(β * x_i) ) Falls back to arithmetic mean when β=0.
verl/recipe/sppo/sppo_ray_trainer.py:50
↓ 1 callersFunctionsolve_one
( sem: asyncio.Semaphore, session: aiohttp.ClientSession, base_url: str, api_key: str, mod
parallel_tts/verifier_test_multi.py:253
↓ 1 callersFunctionsolve_one_sdk
( sem: asyncio.Semaphore, client: OpenAI, model: str, sample: EnsembleSample, )
parallel_tts/verifier_test_multi_api.py:306
↓ 1 callersMethodsort_by_scores
The function of compute the correlation score Args: query: The query docs: The doc list Returns:
demo/qwen_agent/tools/search_tools/base_search.py:94
↓ 1 callersMethodsort_by_scores
(self, query: str, docs: List[Record], **kwargs)
demo/qwen_agent/tools/search_tools/keyword_search.py:44
↓ 1 callersMethodspawn_fused
Create a dictionary of worker groups for fused workers. Args: prefix_set: Set of prefixes to create worker groups for Re
verl/verl/single_controller/ray/base.py:639
↓ 1 callersFunctionsplit_to_patches
(image, grid)
verl/recipe/minicpmo/rl_dataset.py:292
↓ 1 callersMethodstart
(self, **kwargs)
verl/verl/utils/profiler/nvtx_profile.py:140
↓ 1 callersFunctionstart_server
(config)
verl/verl/trainer/main_generation_server.py:40
↓ 1 callersMethodstart_worker_aliveness_check
Starts a background thread to monitor worker aliveness. Args: every_n_seconds (int): Interval between aliveness checks
verl/verl/single_controller/base/worker_group.py:166
↓ 1 callersFunctionstatistics_by_data_source
(jsonl_file)
api_evaluation/api_test.py:115
↓ 1 callersMethodstop
(self)
verl/verl/utils/profiler/nvtx_profile.py:146
↓ 1 callersMethodstop_and_save
(self)
verl/verl/utils/profiler/profile.py:115
↓ 1 callersMethodstop_and_sync
(self)
verl/tool_server/api_server_redis.py:257
↓ 1 callersFunctionstop_loop
()
verl/verl/tools/utils/tool_registry.py:99
↓ 1 callersFunctionstop_loop
()
verl/verl/utils/transferqueue_utils.py:77
↓ 1 callersMethodstop_trace
(self)
verl/verl/utils/profiler/profile.py:120
↓ 1 callersFunctionstring_int_check
(val)
verl/verl/utils/reward_score/prime_code/testing_util.py:73
↓ 1 callersFunctionstring_tokenizer
(text: str)
demo/qwen_agent/tools/search_tools/keyword_search.py:132
↓ 1 callersFunctionstrip_system_prompt
Args: messages: List[dict] List of dictionaries with keys 'role' and 'content' Example: messages = [{'role': 'use
verl/recipe/collabllm/utils.py:42
↓ 1 callersFunctionsubem_check
(prediction, golden_answers)
verl/verl/utils/reward_score/search_r1_like_qa_em.py:53
↓ 1 callersFunctionsubmit_request
(server_address, **chat_complete_request)
verl/verl/trainer/main_generation_server.py:66
↓ 1 callersFunctionsuffixArray
(s)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:482
↓ 1 callersMethodsupplement_name_special_token
(message: Message)
demo/qwen_agent/agents/router.py:93
↓ 1 callersMethodswitch_to_rollout
(self)
verl/recipe/vla/fsdp_workers.py:97
↓ 1 callersMethodswitch_to_train
(self)
verl/recipe/vla/fsdp_workers.py:103
↓ 1 callersFunctionsymbolic_equal
(a, b, tolerance, timeout=10.0)
verl/recipe/entropy/reward_score/entropy_math/grader.py:324
↓ 1 callersFunctionsymbolic_equal
(a, b, tolerance, timeout=10.0)
verl/verl/utils/reward_score/prime_math/grader.py:324
↓ 1 callersMethodsynchronize_on_group_commit_forward
Synchronize on group commit forward.
verl/verl/utils/activation_offload.py:319
↓ 1 callersFunctiontable_converter
(table)
demo/qwen_agent/tools/simple_doc_parser.py:355
↓ 1 callersFunctiontensor_generator
()
verl/verl/utils/megatron_utils.py:913
↓ 1 callersMethodtensor_pop
Tensor pop.
verl/verl/utils/activation_offload.py:103
↓ 1 callersMethodtensor_push
Tensor push.
verl/verl/utils/activation_offload.py:96
↓ 1 callersFunctiontest_all_gather_data_proto
()
verl/tests/special_distributed/test_tensor_dict.py:27
↓ 1 callersFunctiontest_async_sglang_rollout_w_interaction
()
verl/tests/workers/rollout/test_sglang_async_rollout_w_interaction.py:40
↓ 1 callersFunctiontest_async_sglang_rollout_w_tool
()
verl/tests/workers/rollout/test_sglang_async_rollout_w_tools_token_out.py:40
↓ 1 callersFunctiontest_async_sglang_rollout_w_tool
()
verl/tests/workers/rollout/test_sglang_async_rollout_w_tools.py:40
↓ 1 callersMethodtest_attn_implementation_extraction_logic
Test the core logic for extracting attn_implementation from override config.
verl/tests/workers/test_fsdp_attn_implementation.py:46
↓ 1 callersFunctiontest_attn_implementation_fix_integration
Integration test to verify the entire fix works as expected.
verl/tests/workers/test_fsdp_attn_implementation.py:379
↓ 1 callersFunctiontest_attn_implementation_override
Test that attn_implementation override config is properly respected.
verl/tests/models/test_transformer.py:166
↓ 1 callersFunctiontest_auto_padding
()
verl/tests/single_controller/test_auto_padding_on_cpu.py:40
↓ 1 callersMethodtest_backward_compatibility
Test that the fix maintains backward compatibility.
verl/tests/workers/test_fsdp_attn_implementation.py:194
↓ 1 callersFunctiontest_basic_rollout_correction
Test basic rollout correction functionality.
verl/tests/trainer/ppo/test_rollout_corr.py:40
↓ 1 callersFunctiontest_basics
()
verl/tests/single_controller/test_ray_local_envs_on_cpu.py:36
↓ 1 callersFunctiontest_basics
()
verl/tests/single_controller/test_worker_group_basics.py:92
↓ 1 callersMethodtest_both_actor_and_critic_configuration
Test that both actor and critic can have different attn_implementation overrides simultaneously.
verl/tests/workers/test_fsdp_attn_implementation.py:331
↓ 1 callersFunctiontest_complete_training_configuration
Integration test for a complete training configuration with both actor and critic overrides.
verl/tests/workers/test_fsdp_attn_implementation.py:438
↓ 1 callersFunctiontest_connection
Simple connection test
verl/scripts/diagnose.py:50
↓ 1 callersFunctiontest_conversion
(megatron_model_provider, tfconfig, output_path, model)
verl/scripts/converter_hf_to_mcore.py:73
↓ 1 callersMethodtest_critic_attn_implementation_extraction_logic
Test the core logic for extracting attn_implementation from override config for CriticWorker.
verl/tests/workers/test_fsdp_attn_implementation.py:214
↓ 1 callersFunctiontest_critic_attn_implementation_fix_integration
Integration test to verify the entire fix works as expected for CriticWorker.
verl/tests/workers/test_fsdp_attn_implementation.py:411
↓ 1 callersMethodtest_critic_backward_compatibility
Test that the CriticWorker fix maintains backward compatibility.
verl/tests/workers/test_fsdp_attn_implementation.py:358
↓ 1 callersMethodtest_critic_hydra_plus_prefix_config
Test that Hydra +prefix configurations work correctly for CriticWorker.
verl/tests/workers/test_fsdp_attn_implementation.py:302
↓ 1 callersMethodtest_critic_override_config_integration
Test that override_config from Hydra configuration works correctly for CriticWorker.
verl/tests/workers/test_fsdp_attn_implementation.py:277
↓ 1 callersFunctiontest_customized_worker_env
()
verl/tests/single_controller/test_ray_local_envs_on_cpu.py:53
↓ 1 callersFunctiontest_dist_global_info_wg
()
verl/tests/single_controller/test_device_mesh_register.py:99
↓ 1 callersFunctiontest_fsdp_ckpt
(strategy="fsdp")
verl/tests/special_distributed/test_fsdp_ckpt.py:47
↓ 1 callersFunctiontest_fsdp_worker_attn_implementation_integration
Test integration of attn_implementation with FSDP worker logic.
verl/tests/models/test_transformer.py:201
↓ 1 callersFunctiontest_function
()
verl/tests/utils/_test_module.py:30
↓ 1 callersFunctiontest_fused_workers
()
verl/tests/single_controller/test_fused_workers_on_cpu.py:63
↓ 1 callersFunctiontest_hf_casual_models
()
verl/tests/models/test_transformer.py:41
↓ 1 callersFunctiontest_hf_rollout
(n: int = 1, do_sample: bool = True, validate: bool = False)
verl/tests/workers/rollout/test_hf_rollout.py:100
↓ 1 callersFunctiontest_hf_value_models
()
verl/tests/models/test_transformer.py:111
↓ 1 callersMethodtest_hydra_plus_prefix_config
Test that Hydra +prefix configurations work correctly.
verl/tests/workers/test_fsdp_attn_implementation.py:165
↓ 1 callersFunctiontest_mask_mode
Test mask mode applies rejection via response_mask, keeps true IS weights.
verl/tests/trainer/ppo/test_rollout_corr.py:281
↓ 1 callersFunctiontest_mcore_config_converter
Test the conversion of Hugging Face model configurations to MCore configurations.
verl/tests/special_distributed/test_mcore_config_converter.py:74
↓ 1 callersFunctiontest_memory_buffers
()
verl/tests/special_standalone/test_memory_buffers.py:26
↓ 1 callersFunctiontest_metrics_completeness
Test that all expected metrics are returned.
verl/tests/trainer/ppo/test_rollout_corr.py:162
↓ 1 callersFunctiontest_offpolicy_metrics
Test off-policy metrics computation.
verl/tests/trainer/ppo/test_rollout_corr.py:224
↓ 1 callersMethodtest_override_config_integration
Test that override_config from Hydra configuration works correctly.
verl/tests/workers/test_fsdp_attn_implementation.py:144
↓ 1 callersFunctiontest_ray_collective_group
()
verl/tests/single_controller/test_ray_collectives.py:71
↓ 1 callersFunctiontest_sloo_minus_one_matches_numpy
()
verl/verl/trainer/ppo/unit_test.py:83
↓ 1 callersFunctiontest_trainer_forward_consistency
Test consistency between original forward pass and SP+rmpad forward passes. Args: trainer: The FSDPSFTTrainer instance to test to
verl/tests/special_e2e/sft/test_sp_loss_match.py:24
↓ 1 callersFunctiontest_vllm_rollout_with_yarn_position_embeddings
Test the vLLM rollout with yarn position embeddings.
verl/tests/workers/rollout/rollout_vllm/test_vllm_model_rope_scaling.py:32
↓ 1 callersFunctiontest_vllm_spmd
()
verl/tests/workers/rollout/rollout_vllm/test_vllm_spmd.py:72
↓ 1 callersFunctiontest_vocab_parallel_entropy
()
verl/tests/special_distributed/test_tensor_dict.py:58
↓ 1 callersMethodtie_weights
(self)
verl/recipe/vla/models/openvla_oft/modeling_prismatic.py:397
↓ 1 callersFunctionto_py
(x)
verl/verl/utils/torch_dtypes.py:83
↓ 1 callersFunctiontokenize_and_filter
(input_text: str)
demo/qwen_agent/tools/search_tools/keyword_search.py:111
↓ 1 callersFunctiontorch_sloo_minus_one
(g: torch.Tensor, K: int)
verl/verl/trainer/ppo/unit_test.py:77
↓ 1 callersFunctiontqbridge
Creates a decorator for bridging BatchMeta and DataProto. This decorator automatically handles conversions between `BatchMeta` and `DataProto
verl/verl/utils/transferqueue_utils.py:131
↓ 1 callersMethodtrain_data_proto
(self, data: DataProto)
verl/tests/single_controller/test_device_mesh_register.py:69
↓ 1 callersMethodtrain_model
(self, data: DataProto)
verl/tests/single_controller/detached_worker/server.py:117
↓ 1 callersMethodtrain_tensordict
(self, data: TensorDict)
verl/tests/single_controller/test_device_mesh_register.py:79
↓ 1 callersMethodtrainer_mode
Context switch hybridengine to trainer mode.
verl/recipe/vla/fsdp_workers.py:136
↓ 1 callersMethodtraining_step
(self, batch: TensorDict)
verl/verl/trainer/fsdp_sft_trainer.py:466
← previousnext →2,301–2,400 of 4,735, ranked by callers