MCPcopy Create free account

hub / github.com/InternLM/InternBootcamp / functions

Functions18,522 in github.com/InternLM/InternBootcamp

↓ 19 callersMethodinit_model
(self)
verl/verl/experimental/vla/fsdp_workers.py:195
↓ 19 callersMethodnew
Function to create a new training engine instance based on the provided config. Args: key: A configuration object contain
verl/verl/workers/engine/base.py:323
↓ 19 callersFunctionoffload_fsdp_model_to_cpu
(model: FSDP, empty_cache: bool = True)
verl/verl/utils/fsdp_utils.py:144
↓ 19 callersFunctionpad_input
Unified entry point for `pad_input` across CUDA and NPU backends. Dynamically dispatches to the appropriate device-specific implementation:
verl/verl/utils/attention_utils.py:53
↓ 18 callersMethodcompute_score
(self, data: DataProto)
verl/verl/experimental/reward_loop/reward_loop.py:111
↓ 18 callersMethodfrom_dict
(cls, data: dict[str, Numeric], aggregation: str | AggregationType)
verl/verl/utils/metric/utils.py:145
↓ 18 callersFunctionmodel_forward_gen
(vision_model: bool = False)
verl/verl/models/mcore/model_forward.py:34
↓ 18 callersMethodto_tensordict
Convert this DataProto to TensorDict. Note that this requires tensordict version at least 0.10 Returns:
verl/verl/protocol.py:1113
↓ 17 callersFunctioncheck_correctness
Check correctness of code generation with a global timeout. The global timeout is to catch some extreme/rare cases not handled by the timeouts
verl/verl/utils/reward_score/prime_code/utils.py:41
↓ 17 callersFunctioncompute_rollout_correction_and_rejection_mask
Unified interface for computing IS weights and rejection masks. This function combines IS weight calculation (truncated) and rejection sampling (
verl/verl/trainer/ppo/rollout_corr_helper.py:716
↓ 17 callersMethodfind
(self, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_tools.py:104
↓ 17 callersFunctionget_nccl_backend
Get the distributed communication backend based on device type. Returns the appropriate collective communication backend for the detected acc
verl/verl/utils/device.py:112
↓ 17 callersFunctionhf_processor
Create a huggingface processor to process multimodal data. Args: name_or_path (str): The name of the processor. Returns: tra
verl/verl/utils/tokenizer.py:67
↓ 17 callersMethodinit
( cls, project_name: str, experiment_name: str, backend: str, token2te
verl/verl/utils/rollout_trace.py:69
↓ 16 callersMethod_make_request
发起请求
internbootcamp/web_service/frontend/utils/api_client.py:14
↓ 16 callersFunctioncompute_position_id_with_mask
(mask)
verl/verl/utils/model.py:226
↓ 16 callersFunctionconvert_config
[Deprecated] convert config Args: hf_config (PretrainedConfig): _description_ megatron_config (_type_): _description_ Return
verl/verl/utils/megatron_utils.py:328
↓ 16 callersMethodextract_output
(output: str)
internbootcamp/bootcamps/bootcamps_v1/real_world_problem/bbehobjectcounting/bbehobjectcounting_reward_calculator.py:98
↓ 16 callersFunctionfused_forward_model_gen
(vision_model: bool = False)
verl/verl/models/mcore/model_forward_fused.py:68
↓ 16 callersFunctionget_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
verl/verl/utils/ulysses.py:46
↓ 16 callersFunctionindex_first_axis
Unified entry point for `index_first_axis` across CUDA and NPU backends. Dynamically dispatches to the appropriate device-specific implement
verl/verl/utils/attention_utils.py:37
↓ 16 callersFunctionload_fsdp_model_to_gpu
(model: FSDP)
verl/verl/utils/fsdp_utils.py:178
↓ 16 callersMethodmodel
(x, t_val)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/linearode/linearODE_instruction_generator.py:45
↓ 16 callersMethodremove
移除并销毁环境
internbootcamp/bootcamps/mole_bootcamp/mole_server.py:266
↓ 16 callersFunctionunion_numpy_dict
(tensor_dict1: dict[str, np.ndarray], tensor_dict2: dict[str, np.ndarray])
verl/verl/protocol.py:187
↓ 15 callersMethod_choice
(self, seq: Sequence[Any])
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_dyck_languages/instruction_generator.py:36
↓ 15 callersMethodbatch_decode
( self, sequences: list[int] | list[list[int]] | torch.Tensor | Any, # `Any` = np.ndarray | t
verl/verl/experimental/vla/models/openvla_oft/processing_prismatic.py:236
↓ 15 callersFunctionbuild_cli_args_from_config
Convert a config dictionary to CLI arguments for vLLM server. Handles different value types appropriately: - None: skipped - bool Tr
verl/verl/workers/rollout/vllm_rollout/utils.py:252
↓ 15 callersMethodget_data_parallel_group
(self)
verl/verl/workers/engine/base.py:166
↓ 15 callersMethodinit_class
Initialize class state shared across all instances.
verl/verl/experimental/reward_loop/reward_manager/base.py:45
↓ 15 callersFunctionis_valid_ipv6_address
(address: str)
verl/verl/utils/net_utils.py:65
↓ 15 callersFunctionload_extern_object
Load an object from a module path. Args: module_path (str): See :func:`load_module`. object_name (str): The name of t
verl/verl/utils/import_utils.py:184
↓ 15 callersFunctionlog_message
记录日志消息到文件和控制台,并过滤base64图片数据
internbootcamp/utils/tool_server/cli.py:310
↓ 15 callersMethodrun_single
(self, data: DataProto)
verl/verl/experimental/reward_loop/reward_manager/limited.py:398
↓ 15 callersFunctionsolve
(n, c_list)
internbootcamp/bootcamps/bootcamps_v1/algorithm/f1shortcolorfulstrip/F1shortcolorfulstrip_tools.py:24
↓ 15 callersMethodspawn
Spawn to a dictionary of worker groups, each with a subset of method with prefix. Args: prefix_set: Set of prefixes to create wor
verl/verl/single_controller/ray/base.py:689
↓ 14 callersMethod_make_request
Make a HTTP request with retry logic and consistent error handling. Args: endpoint (str): The API endpoint to call (without leadi
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:290
↓ 14 callersFunctionaggressive_empty_cache
More aggressive GPU memory cleanup function, tries to release PyTorch reserved but unallocated memory. Args: force_sync: Whether
verl/verl/utils/memory_utils.py:31
↓ 14 callersMethodall_gather
(self)
verl/tests/single_controller/test_worker_group_torch.py:40
↓ 14 callersFunctionappend_to_dict
Append values from new_data to lists in data. For each key in new_data, this function appends the corresponding value to a list stored under
verl/verl/utils/py_functional.py:185
↓ 14 callersMethodcompute_operator
计算a◎b对应的复数平方
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/koroperationunicode25ce/korOperationUnicode25ce_tools.py:105
↓ 14 callersMethodexecute_all_sync
Execute a method on all workers synchronously. Args: method_name: Name of the method to execute *args: Positional arg
verl/verl/single_controller/ray/base.py:824
↓ 14 callersFunctionpreprocess_packed_seqs
Preprocess packed sequences CP splits sequence into CP*2 chunks, and each GPU gets 2 chunks (GPU0 gets first and last chunks, GPU1 gets s
verl/verl/models/mcore/util.py:25
↓ 14 callersFunctionquery
(prompt: str)
verl/agentic_workflow/backend.py:1
↓ 14 callersFunctionreduce_metrics
Reduces a dictionary of metric lists by computing the mean, max, or min of each list. The reduce operation is determined by the key name:
verl/verl/utils/metric/utils.py:25
↓ 14 callersMethodremove
(cls, name: str)
verl/verl/utils/py_functional.py:289
↓ 13 callersFunctioncreate_rl_dataset
Create a dataset. Arguments: data_paths: List of paths to data files. data_config: The data config. tokenizer (Tokenizer)
verl/verl/trainer/main_ppo.py:370
↓ 13 callersFunctioncreate_test_data_proto
Helper to create DataProto for testing.
verl/tests/experimental/reward_loop/test_rate_limited_reward_manager_on_cpu.py:125
↓ 13 callersMethodgenerate_response
Generates a response for the current turn of interaction. Returns a tuple containing: - should_terminate_sequence (bool): Tru
verl/verl/interactions/base.py:39
↓ 13 callersFunctionmasked_mean
Compute the mean of `values` over elements selected by `mask`. Args: values (Tensor): Input tensor. mask (Tensor): Boolean o
verl/verl/utils/torch_functional.py:287
↓ 13 callersFunctionshould_save_ckpt_esi
Determine if checkpoint should be saved based on capacity esi expiration. Args: max_steps_duration: Max estimated time (seconds) req
verl/verl/utils/checkpoint/checkpoint_manager.py:305
↓ 13 callersMethodupdate_content
(self, search_keyword: Optional[str] = None)
verl/scripts/rollout_viewer.py:292
↓ 12 callersMethod_randint
(self, low: int, high: int)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_boolean_expressions/instruction_generator.py:59
↓ 12 callersMethodadd
(self, data: DataProto)
verl/tests/single_controller/test_auto_padding_on_cpu.py:35
↓ 12 callersMethodbackward
(ctx, g_logprobs: torch.Tensor, g_entropy: torch.Tensor)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:128
↓ 12 callersMethodcancel
(self)
verl/verl/experimental/fully_async_policy/agent_loop/agent_loop.py:331
↓ 12 callersFunctioncount
(arr, st, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/ebearandcompany/Ebearandcompany_tools.py:31
↓ 12 callersMethoddecode
( self, token_ids: int | list[int] | torch.Tensor | Any, # `Any` = np.ndarray | tf.Tensor
verl/verl/experimental/vla/models/openvla_oft/processing_prismatic.py:250
↓ 12 callersMethodfrom_single_dict
Create a DataProto from a dict of tensors and non_tensors
verl/verl/protocol.py:491
↓ 12 callersFunctionget
Get a value from a TensorDict with automatic unwrapping. Retrieves a value from the TensorDict and automatically converts it to a Python-nati
verl/verl/utils/tensordict_utils.py:599
↓ 12 callersFunctionget_event_loop
()
verl/verl/utils/ray_utils.py:87
↓ 12 callersMethodget_placement_groups
(self, strategy="STRICT_PACK", name=None, device_name="cuda")
verl/verl/single_controller/ray/base.py:116
↓ 12 callersFunctionget_ulysses_sequence_parallel_group
Get ulysses sequence parallel process group.
verl/verl/utils/ulysses.py:38
↓ 12 callersFunctionload_reward_manager
Load and initialize a reward manager based on the configuration. Args: config: PPO trainer configuration object containing reward_mo
verl/verl/trainer/ppo/reward.py:100
↓ 12 callersFunctionlocal_mkdir_safe
_summary_ Thread-safe directory creation function that ensures the directory is created even if multiple processes attempt to create it simult
verl/verl/utils/fs.py:277
↓ 12 callersFunctionlogprobs_from_logits
Compute per-token log-probabilities for the given labels. Uses a Flash-Attention–based cross-entropy (if available) for efficient backward,
verl/verl/utils/torch_functional.py:72
↓ 12 callersFunctionneed_reference_policy
Given the config, do we need ref policy.
verl/verl/trainer/ppo/utils.py:72
↓ 12 callersMethodregister
(cls, name: str)
verl/verl/utils/py_functional.py:278
↓ 12 callersFunctiontemp_env_var
Context manager for temporarily setting an environment variable. This context manager ensures that environment variables are properly set and res
verl/verl/utils/py_functional.py:301
↓ 12 callersFunctionto_tensor
Copied from ManiSkill! Maps any given sequence to a torch tensor on the CPU/GPU. If physx gpu is not enabled then we use CPU, otherwise G
verl/verl/experimental/vla/envs/action_utils.py:54
↓ 12 callersMethodupdate
(self, batch)
verl/tests/utils/dataset/test_create_rl_sampler_on_cpu.py:46
↓ 11 callersMethod_create_checkpoint_dir
Create a mock checkpoint directory.
verl/tests/utils/ckpt/test_checkpoint_cleanup_on_cpu.py:56
↓ 11 callersMethod_get_random_value
(self, range_tuple)
internbootcamp/bootcamps/finance_bootcamp/finance_instruction_generator.py:57
↓ 11 callersMethodcheck_this_rank
(self)
verl/verl/utils/profiler/profile.py:135
↓ 11 callersMethodcompute_ref_log_prob
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:1043
↓ 11 callersFunctioncreate_random_mask
Create a random mask given input_ids. Support left padding and right padding. Process: - Sample valid token length - Sample left_padding l
verl/verl/utils/model.py:183
↓ 11 callersFunctioncreate_rl_sampler
Create a sampler for the dataset. Arguments: data_config: The data config. dataset (Dataset): The dataset. Returns:
verl/verl/trainer/main_ppo.py:400
↓ 11 callersFunctiongather_outputs_and_unpad
Gather a tensor across a process group and optionally unpad its padded elements. Args: x (Tensor): Input tensor to gather. g
verl/verl/utils/ulysses.py:243
↓ 11 callersFunctionget_free_port
(address: str)
verl/verl/utils/net_utils.py:73
↓ 11 callersFunctionload_dataset
加载数据集,支持 JSON、JSONL 和 Parquet 文件格式,并始终返回 list。 参数: dataset_path (str): 数据集文件路径。 dataset (list, optional): 如果提供了 dataset,
internbootcamp/src/base_evaluator.py:35
↓ 11 callersFunctionoffload_megatron_optimizer
(optimizers)
verl/verl/utils/megatron_utils.py:556
↓ 11 callersFunctionrearrange_micro_batches
Split a batch into micro-batches by total token count, with optional DP sync and padding. Args: batch (TensorDict): must include "at
verl/verl/utils/seqlen_balancing.py:348
↓ 11 callersMethodrun
Execute the main PPO training workflow. This method sets up the distributed training environment, initializes workers, datasets, and
verl/verl/trainer/main_ppo.py:261
↓ 11 callersMethodsleep
Sleep all rollout replica instances.
verl/verl/experimental/reward_loop/reward_model.py:111
↓ 11 callersFunctionulysses_pad_and_slice_inputs
Pad and slice input_ids to be divisible by sp_size Pad position_ids to be divisible by sp_size. Note both input_ids_rmpad and position_i
verl/verl/utils/ulysses.py:298
↓ 10 callersMethod_choice
(self, seq: Sequence[Any])
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_hyperbaton/instruction_generator.py:219
↓ 10 callersMethod_choice
(self, seq)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_boolean_expressions/instruction_generator.py:62
↓ 10 callersMethod_get_worker_instance_count
获取指定worker映射的instance数量
internbootcamp/utils/tool_server/master_server.py:401
↓ 10 callersMethod_handle_apply_chat_template
( processing_class: PreTrainedTokenizer | PreTrainedTokenizerFast | ProcessorMixin, messages:
verl/verl/workers/rollout/schemas.py:225
↓ 10 callersMethod_is_worker_healthy
检查Worker是否健康(基于心跳时间)
internbootcamp/utils/tool_server/master_server.py:420
↓ 10 callersFunctionextract_markdown_content_NP
(md_file_path: str)
internbootcamp/bootcamps/NP/prompt_md.py:26
↓ 10 callersFunctionfind_available_port
查找可用端口(改进版) Args: host: 主机地址 start_port: 起始端口 max_port: 最大端口号,默认65535 randomize: 是否在端口范围内随机选择,默认True
internbootcamp/utils/tool_server/utils.py:65
↓ 10 callersMethodflush_cache
Flush the cache of the server. This method repeatedly attempts to flush the server cache until successful. The flush operation will n
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:502
↓ 10 callersFunctionget_prompt
(task_type, task_info, NP_question)
internbootcamp/bootcamps/NP/prompt_md.py:17
↓ 10 callersMethodget_task
获取任务信息
internbootcamp/web_service/backend/utils/task_manager.py:85
↓ 10 callersMethodis_mp_src_rank_with_outputs
Whether the current rank is the first rank in model parallel group that contains model outputs
verl/verl/workers/engine/base.py:216
↓ 10 callersMethodmerge
(self, other)
verl/verl/utils/seqlen_balancing.py:82
↓ 10 callersFunctionprint_grid_in_kor
(grid, stars=None)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/starbattle/lib/dfs_solver_en.py:20
↓ 10 callersFunctionrollout_trace_attr
A context manager to add attributes to a trace for the configured backend. Args: sample_index: Sample index for the trace. step:
verl/verl/utils/rollout_trace.py:124
↓ 10 callersMethodsleep
(self)
verl/verl/experimental/one_step_off_policy/agent_loop/agent_loop.py:60
← previousnext →101–200 of 18,522, ranked by callers