MCPcopy Create free account

hub / github.com/InternLM/InternBootcamp / functions

Functions18,522 in github.com/InternLM/InternBootcamp

↓ 10 callersMethodstart_profile
Start profiling on all rollout replicas.
verl/verl/experimental/agent_loop/agent_loop.py:1049
↓ 10 callersMethodto_dict
(self)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/bbehboardgameqa/bbehboardgameqa_tools.py:199
↓ 10 callersMethodunion
Union with another DataProto. Union batch and meta_info separately. Throw an error if - there are conflict keys in batch and they are
verl/verl/protocol.py:792
↓ 9 callersFunction_broadcast_tensor
broadcast tensor from rank0 across mp_group
verl/verl/models/mcore/loader.py:104
↓ 9 callersMethod_make_async_request
Make an async HTTP request with retry logic and consistent error handling. Args: endpoint (str): The API endpoint to call (withou
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:658
↓ 9 callersFunction_megatron_calc_global_rank
Calculate global rank with support for CP/EP parallelism
verl/verl/models/mcore/saver.py:30
↓ 9 callersMethod_randint
(self, low: int, high: int)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_hyperbaton/instruction_generator.py:222
↓ 9 callersMethod_randint
(self, low: int, high: int)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_object_counting/instruction_generator.py:232
↓ 9 callersFunctionangle_from_vector_to_x
computer the angle (0~2pi) between a unit vector and positive x axis
internbootcamp/bootcamps/flangeplane_bootcamp/utils/cadlib/math_utils.py:10
↓ 9 callersMethodannotate
( cls, message: Optional[str] = None, color: Optional[str] = None, domain: Opt
verl/verl/utils/profiler/profile.py:155
↓ 9 callersMethodcheck_enable
(self)
verl/verl/utils/profiler/profile.py:132
↓ 9 callersFunctioncompute_reward
Compute reward for a batch of data. Args: data: DataProto object containing the input data. reward_fn: Reward function to com
verl/verl/trainer/ppo/reward.py:192
↓ 9 callersFunctioncount
(arr, st, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/ebearandcompany/Ebearandcompany_instruction_generator.py:26
↓ 9 callersFunctioncount
(arr, st, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/ebearandcompany/Ebearandcompany_interaction.py:25
↓ 9 callersFunctioncount
(arr, st, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/ebearandcompany/Ebearandcompany_reward_calculator.py:25
↓ 9 callersMethodcreate
( cls, config: DictConfig, worker_group: RayWorkerGroup = None, rm_resource_pool: RayResourcePool = No
verl/verl/experimental/fully_async_policy/agent_loop/agent_loop.py:244
↓ 9 callersMethodcross
(self, o, a, b)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eoptimalpolygonperimeter/Eoptimalpolygonperimeter_tools.py:150
↓ 9 callersMethodescapeHtml
* HTML转义
internbootcamp/utils/tool_server/static/js/dashboard.js:211
↓ 9 callersMethodfind
(parent, x)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/ccivilization/Ccivilization_tools.py:105
↓ 9 callersFunctiongather_heads_scatter_seq
A func to sync attention result with alltoall in sequence parallel gather head dimension and scatter seq dim: e.g. seq_dim: 1, head_dim:
verl/verl/utils/ulysses.py:86
↓ 9 callersMethodgenerate_sequences
Split input batch and dispatch to env loop workers. Args: prompts (DataProto): Input batch. Returns: DataPro
verl/verl/experimental/vla/env_loop.py:61
↓ 9 callersMethodget_data
()
verl/verl/protocol.py:843
↓ 9 callersFunctionget_reverse_idx
Build the inverse of an index mapping. Args: idx_map (Sequence[int]): Sequence where idx_map[i] = j. Returns: List[int]
verl/verl/utils/seqlen_balancing.py:425
↓ 9 callersMethodinit_model
(self)
verl/verl/workers/fsdp_workers.py:1510
↓ 9 callersFunctioninitialize_global_process_group
(timeout_second=36000)
verl/verl/utils/distributed.py:56
↓ 9 callersFunctionleft_right_2_no_padding
Convert TensorDict from left-right padding to no-padding format. Args: data: TensorDict with "input_ids", "attention_mask", "respons
verl/verl/workers/utils/padding.py:22
↓ 9 callersFunctionoffload_fsdp_optimizer
(optimizer)
verl/verl/utils/fsdp_utils.py:204
↓ 9 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
verl/verl/models/transformers/kimi_vl.py:79
↓ 9 callersMethodreset
(self)
verl/tests/experimental/reward_loop/test_rate_limited_reward_manager_on_cpu.py:43
↓ 9 callersFunctionsplit_resource_pool
Split a RayResourcePool into multiple SubRayResourcePool. resouce_pool can also be a SubRayResourcePool (have been splited) for multiple-time
verl/verl/single_controller/ray/base.py:251
↓ 9 callersMethodstart_profile
Start profiling on the replica.
verl/verl/workers/rollout/replica.py:247
↓ 9 callersMethodstop_profile
Stop profiling on the replica.
verl/verl/workers/rollout/replica.py:251
↓ 9 callersFunctiontrans
(nxt, k, d)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_instruction_generator.py:26
↓ 9 callersFunctiontrans
(nxt, k, d)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_reward_calculator.py:25
↓ 9 callersFunctiontrans
(nxt, k, d)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_tools.py:31
↓ 9 callersFunctiontrans
(nxt, k, d)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_interaction.py:25
↓ 8 callersMethod_choice
(self, seq)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_object_counting/instruction_generator.py:229
↓ 8 callersFunction_create_param_from_subclass_attributes
(custom_param)
verl/verl/utils/vllm/vllm_fp8_utils.py:243
↓ 8 callersMethod_verify_correction
(cls, solution: int, identity: Dict)
internbootcamp/bootcamps/bootcamps_v1/real_world_problem/bbehobjectcounting/bbehobjectcounting_reward_calculator.py:113
↓ 8 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
verl/verl/models/transformers/kimi_vl.py:43
↓ 8 callersFunctioncompute_data_metrics
Computes various metrics from a batch of data for PPO training. This function calculates metrics related to scores, rewards, advantages, ret
verl/verl/trainer/ppo/metric_utils.py:81
↓ 8 callersMethodcompute_operator
计算a◎b对应的复数平方
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/koroperationunicode25ce/korOperationUnicode25ce_instruction_generator.py:84
↓ 8 callersMethodcreate_resource_pool
Create Ray resource pools for distributed training. Initializes resource pools based on the resource pool specification, with each po
verl/verl/single_controller/ray/base.py:177
↓ 8 callersMethodensure_checkpoint_capacity
Remove old checkpoints to make room for a new one, keeping a safety buffer. With max_ckpt_to_keep=1, this does nothing - we keep the
verl/verl/utils/checkpoint/checkpoint_manager.py:145
↓ 8 callersMethodfind
(self, a)
internbootcamp/bootcamps/bootcamps_v1/algorithm/feuclidsnightmare/Feuclidsnightmare_instruction_generator.py:26
↓ 8 callersMethodfind
(self, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_reward_calculator.py:98
↓ 8 callersMethodfind
(self, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_interaction.py:98
↓ 8 callersMethodfind
(self, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_instruction_generator.py:99
↓ 8 callersMethodflip
(self, axis)
internbootcamp/bootcamps/flangeplane_bootcamp/utils/cadlib/curves.py:281
↓ 8 callersFunctionfn
(batch, **kwargs)
verl/tests/utils/test_rollout_skip_on_cpu.py:48
↓ 8 callersFunctioninitialize_interactions_from_config
Initialize interactions from configuration file. Args: interaction_config_file: Path to the interaction configuration file. Returns:
verl/verl/interactions/utils/interaction_registry.py:42
↓ 8 callersFunctionis_transformers_version_in_range
(min_version: Optional[str] = None, max_version: Optional[str] = None)
verl/verl/utils/transformers_compat.py:40
↓ 8 callersFunctionmake_batch_generator
Creates a batch generator suitable for Megatron pipeline parallelism, handling virtual pipeline parallelism (VPP). If VPP is used (vpp_s
verl/verl/utils/megatron/pipeline_parallel.py:49
↓ 8 callersMethodmake_iterator
r"""Make an iterator from the DataProto. This is built upon that TensorDict can be used as a normal Pytorch dataset. See https://pytorch.org/t
verl/verl/protocol.py:811
↓ 8 callersMethodmy_method
(self, a, b="default")
verl/tests/utils/test_rollout_trace_on_cpu.py:50
↓ 8 callersMethodrank
Get the rank of this worker in the distributed setup.
verl/verl/single_controller/base/worker.py:325
↓ 8 callersFunctionrestore_dynamic_batch
Restore a batch from dynamic batching. Args: data (torch.Tensor): The input data. batch_idx_list (List[List[int]]): The list
verl/verl/utils/seqlen_balancing.py:482
↓ 8 callersMethodrun
运行服务器
internbootcamp/src/base_server_setup.py:31
↓ 8 callersFunctionsafe_repr
先转字符串,再做日志脱敏,适合打印 dict / list / 任意对象。
internbootcamp/utils/tool_server/worker_server.py:40
↓ 8 callersFunctionset_expandable_segments
Configure CUDA memory allocator expandable segments setting. Expandable segments can help avoid out-of-memory (OOM) errors by allowing the me
verl/verl/utils/device.py:128
↓ 8 callersMethodset_loss_fn
(self, loss_fn)
verl/verl/workers/engine_workers.py:114
↓ 8 callersFunctionsimple_timer
Context manager for basic timing without NVTX markers. This utility function measures the execution time of code within its context and accum
verl/verl/utils/profiler/performance.py:155
↓ 8 callersMethodsleep
(self)
verl/verl/experimental/fully_async_policy/agent_loop/agent_loop.py:344
↓ 8 callersMethodsleep_replicas
Sleep all rollout replicas: free weight and kv_cache device memory.
verl/verl/checkpoint_engine/base.py:370
↓ 8 callersMethodto
Move FSDP model and/or optimizer to CPU or GPU with offload support. Note that this function executes irrespective of offload config.
verl/verl/workers/engine/fsdp/transformer_impl.py:562
↓ 8 callersFunctionvalidate_ulysses_config
(num_heads, ulysses_sequence_size)
verl/verl/utils/ulysses.py:333
↓ 7 callersMethod_clean_openspiel_action
(self, raw_action: str)
internbootcamp/bootcamps/holdem_bootcamp/holdem_server.py:697
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:29
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
verl/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:29
↓ 7 callersMethod_random_sign
(self)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_geometric_shapes/instruction_generator.py:34
↓ 7 callersMethod_steps_key
(self, lbl: str)
internbootcamp/bootcamps/escape_bootcamp/escape_server.py:741
↓ 7 callersMethodadd
(self, data: DataProto)
verl/tests/single_controller/test_split_resource_pool.py:45
↓ 7 callersFunctionapply_fsdp2
model: AutoModelForCausalLM
verl/verl/utils/fsdp_utils.py:507
↓ 7 callersFunctionapply_monkey_patch
Apply monkey patch to the models for ulysses sequence parallel, fused kernel, tiled MLP and prefix grouper. In the end of this function forw
verl/verl/models/transformers/monkey_patch.py:286
↓ 7 callersMethodbackward
(ctx: Any, grad_output: Tensor)
verl/verl/utils/ulysses.py:224
↓ 7 callersFunctioncompute_throughout_metrics
Computes throughput metrics for PPO training. This function calculates performance metrics related to token processing speed, including
verl/verl/trainer/ppo/metric_utils.py:270
↓ 7 callersFunctioncompute_timing_metrics
Computes timing metrics for different processing stages in PPO training. This function calculates both raw timing metrics (in seconds) and p
verl/verl/trainer/ppo/metric_utils.py:228
↓ 7 callersMethodcompute_values
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:1542
↓ 7 callersFunctioncreate_colocated_worker_cls
This function should return a class instance that delegates the calls to every cls in cls_dict
verl/verl/single_controller/ray/base.py:959
↓ 7 callersFunctiondfs
(graph, p, h, start=0)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cunclebogdanandcountryhappiness/Cunclebogdanandcountryhappiness_tools.py:57
↓ 7 callersMethodencode
Converts a string to a sequence of ids (integer), using the tokenizer and vocabulary. Args: text (`str`, `List[str]` or
verl/verl/workers/rollout/tokenizer.py:73
↓ 7 callersMethodestimate_flops
Estimate the FLOPS based on the number of valid tokens in the current batch and the time taken. Args: batch_seqlens (Lis
verl/verl/utils/flops_counter.py:582
↓ 7 callersFunctionextract_multi_modal_inputs
Extract and process multi-modal inputs from a batch. Args: batch_data (list[dict[str, torch.Tensor]]): The batch containing potentia
verl/verl/utils/model.py:696
↓ 7 callersMethodfinalize_interaction
Finalizes the interaction session and releases any associated state or resources. Simulates: release state
verl/verl/interactions/base.py:66
↓ 7 callersMethodfind
(u)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cflawedflow/Cflawedflow_tools.py:116
↓ 7 callersMethodfinish
(self)
verl/verl/utils/tracking.py:254
↓ 7 callersMethodfrom_tensordict
Create a DataProto from a TensorDict. This assumes that 1. All the tensor in tensor_dict have the same dim0 2. Only dim0 is the batch
verl/verl/protocol.py:557
↓ 7 callersMethodgenerate_sequences
Split input batch and dispatch to agent loop workers. Args: prompts (DataProto): Input batch. Returns: DataP
verl/verl/experimental/agent_loop/agent_loop.py:984
↓ 7 callersMethodget
Get the checkpoint engine class. Args: backend: The backend of the checkpoint engine. Returns: The checkpoin
verl/verl/checkpoint_engine/base.py:56
↓ 7 callersMethodget_input_embeddings
(self)
verl/verl/experimental/vla/models/openvla_oft/modeling_prismatic.py:379
↓ 7 callersMethodget_micro_batch_router_list
Return the list of RouterReplay instances corresponding to the current micro-batch and local (pp_rank, vp_stage) layer range.
verl/verl/utils/megatron/router_replay_utils.py:379
↓ 7 callersMethodget_possible_types
(i, j, row_dir, col_dir)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eplumber/Eplumber_instruction_generator.py:150
↓ 7 callersFunctionget_reward_manager_cls
Get the reward manager class with a given name. Args: name: `(str)` The name of the reward manager. Returns: `(t
verl/verl/workers/reward_manager/registry.py:43
↓ 7 callersFunctionlcm
(a, b)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cmushroomstrife/Cmushroomstrife_interaction.py:14
↓ 7 callersFunctionlcm
(a, b)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cmushroomstrife/Cmushroomstrife_instruction_generator.py:15
↓ 7 callersFunctionlcm
(a, b)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cmushroomstrife/Cmushroomstrife_tools.py:20
↓ 7 callersMethodlog
(self, data, step)
verl/verl/utils/logger/aggregate_logger.py:49
↓ 7 callersMethodncut
(cls, c1, c2)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cacolourfulprospect/Cacolourfulprospect_instruction_generator.py:101
↓ 7 callersMethodncut
(cls, c1, c2)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cacolourfulprospect/Cacolourfulprospect_tools.py:139
↓ 7 callersMethodncut
(cls, c1, c2)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cacolourfulprospect/Cacolourfulprospect_interaction.py:120
← previousnext →201–300 of 18,522, ranked by callers