Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InternLM/InternBootcamp
/ functions
Functions
18,522 in github.com/InternLM/InternBootcamp
⨍
Functions
18,522
◇
Types & classes
3,617
↳
Endpoints
206
↓ 10 callers
Method
start_profile
Start profiling on all rollout replicas.
verl/verl/experimental/agent_loop/agent_loop.py:1049
↓ 10 callers
Method
to_dict
(self)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/bbehboardgameqa/bbehboardgameqa_tools.py:199
↓ 10 callers
Method
union
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 callers
Function
_broadcast_tensor
broadcast tensor from rank0 across mp_group
verl/verl/models/mcore/loader.py:104
↓ 9 callers
Method
_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 callers
Function
_megatron_calc_global_rank
Calculate global rank with support for CP/EP parallelism
verl/verl/models/mcore/saver.py:30
↓ 9 callers
Method
_randint
(self, low: int, high: int)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_hyperbaton/instruction_generator.py:222
↓ 9 callers
Method
_randint
(self, low: int, high: int)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_object_counting/instruction_generator.py:232
↓ 9 callers
Function
angle_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 callers
Method
annotate
( cls, message: Optional[str] = None, color: Optional[str] = None, domain: Opt
verl/verl/utils/profiler/profile.py:155
↓ 9 callers
Method
check_enable
(self)
verl/verl/utils/profiler/profile.py:132
↓ 9 callers
Function
compute_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 callers
Function
count
(arr, st, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/ebearandcompany/Ebearandcompany_instruction_generator.py:26
↓ 9 callers
Function
count
(arr, st, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/ebearandcompany/Ebearandcompany_interaction.py:25
↓ 9 callers
Function
count
(arr, st, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/ebearandcompany/Ebearandcompany_reward_calculator.py:25
↓ 9 callers
Method
create
( 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 callers
Method
cross
(self, o, a, b)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eoptimalpolygonperimeter/Eoptimalpolygonperimeter_tools.py:150
↓ 9 callers
Method
escapeHtml
* HTML转义
internbootcamp/utils/tool_server/static/js/dashboard.js:211
↓ 9 callers
Method
find
(parent, x)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/ccivilization/Ccivilization_tools.py:105
↓ 9 callers
Function
gather_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 callers
Method
generate_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 callers
Method
get_data
()
verl/verl/protocol.py:843
↓ 9 callers
Function
get_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 callers
Method
init_model
(self)
verl/verl/workers/fsdp_workers.py:1510
↓ 9 callers
Function
initialize_global_process_group
(timeout_second=36000)
verl/verl/utils/distributed.py:56
↓ 9 callers
Function
left_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 callers
Function
offload_fsdp_optimizer
(optimizer)
verl/verl/utils/fsdp_utils.py:204
↓ 9 callers
Function
repeat_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 callers
Method
reset
(self)
verl/tests/experimental/reward_loop/test_rate_limited_reward_manager_on_cpu.py:43
↓ 9 callers
Function
split_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 callers
Method
start_profile
Start profiling on the replica.
verl/verl/workers/rollout/replica.py:247
↓ 9 callers
Method
stop_profile
Stop profiling on the replica.
verl/verl/workers/rollout/replica.py:251
↓ 9 callers
Function
trans
(nxt, k, d)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_instruction_generator.py:26
↓ 9 callers
Function
trans
(nxt, k, d)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_reward_calculator.py:25
↓ 9 callers
Function
trans
(nxt, k, d)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_tools.py:31
↓ 9 callers
Function
trans
(nxt, k, d)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_interaction.py:25
↓ 8 callers
Method
_choice
(self, seq)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_object_counting/instruction_generator.py:229
↓ 8 callers
Function
_create_param_from_subclass_attributes
(custom_param)
verl/verl/utils/vllm/vllm_fp8_utils.py:243
↓ 8 callers
Method
_verify_correction
(cls, solution: int, identity: Dict)
internbootcamp/bootcamps/bootcamps_v1/real_world_problem/bbehobjectcounting/bbehobjectcounting_reward_calculator.py:113
↓ 8 callers
Function
apply_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 callers
Function
compute_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 callers
Method
compute_operator
计算a◎b对应的复数平方
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/koroperationunicode25ce/korOperationUnicode25ce_instruction_generator.py:84
↓ 8 callers
Method
create_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 callers
Method
ensure_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 callers
Method
find
(self, a)
internbootcamp/bootcamps/bootcamps_v1/algorithm/feuclidsnightmare/Feuclidsnightmare_instruction_generator.py:26
↓ 8 callers
Method
find
(self, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_reward_calculator.py:98
↓ 8 callers
Method
find
(self, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_interaction.py:98
↓ 8 callers
Method
find
(self, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_instruction_generator.py:99
↓ 8 callers
Method
flip
(self, axis)
internbootcamp/bootcamps/flangeplane_bootcamp/utils/cadlib/curves.py:281
↓ 8 callers
Function
fn
(batch, **kwargs)
verl/tests/utils/test_rollout_skip_on_cpu.py:48
↓ 8 callers
Function
initialize_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 callers
Function
is_transformers_version_in_range
(min_version: Optional[str] = None, max_version: Optional[str] = None)
verl/verl/utils/transformers_compat.py:40
↓ 8 callers
Function
make_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 callers
Method
make_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 callers
Method
my_method
(self, a, b="default")
verl/tests/utils/test_rollout_trace_on_cpu.py:50
↓ 8 callers
Method
rank
Get the rank of this worker in the distributed setup.
verl/verl/single_controller/base/worker.py:325
↓ 8 callers
Function
restore_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 callers
Method
run
运行服务器
internbootcamp/src/base_server_setup.py:31
↓ 8 callers
Function
safe_repr
先转字符串,再做日志脱敏,适合打印 dict / list / 任意对象。
internbootcamp/utils/tool_server/worker_server.py:40
↓ 8 callers
Function
set_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 callers
Method
set_loss_fn
(self, loss_fn)
verl/verl/workers/engine_workers.py:114
↓ 8 callers
Function
simple_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 callers
Method
sleep
(self)
verl/verl/experimental/fully_async_policy/agent_loop/agent_loop.py:344
↓ 8 callers
Method
sleep_replicas
Sleep all rollout replicas: free weight and kv_cache device memory.
verl/verl/checkpoint_engine/base.py:370
↓ 8 callers
Method
to
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 callers
Function
validate_ulysses_config
(num_heads, ulysses_sequence_size)
verl/verl/utils/ulysses.py:333
↓ 7 callers
Method
_clean_openspiel_action
(self, raw_action: str)
internbootcamp/bootcamps/holdem_bootcamp/holdem_server.py:697
↓ 7 callers
Function
_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 callers
Function
_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 callers
Method
_random_sign
(self)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_geometric_shapes/instruction_generator.py:34
↓ 7 callers
Method
_steps_key
(self, lbl: str)
internbootcamp/bootcamps/escape_bootcamp/escape_server.py:741
↓ 7 callers
Method
add
(self, data: DataProto)
verl/tests/single_controller/test_split_resource_pool.py:45
↓ 7 callers
Function
apply_fsdp2
model: AutoModelForCausalLM
verl/verl/utils/fsdp_utils.py:507
↓ 7 callers
Function
apply_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 callers
Method
backward
(ctx: Any, grad_output: Tensor)
verl/verl/utils/ulysses.py:224
↓ 7 callers
Function
compute_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 callers
Function
compute_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 callers
Method
compute_values
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:1542
↓ 7 callers
Function
create_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 callers
Function
dfs
(graph, p, h, start=0)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cunclebogdanandcountryhappiness/Cunclebogdanandcountryhappiness_tools.py:57
↓ 7 callers
Method
encode
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 callers
Method
estimate_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 callers
Function
extract_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 callers
Method
finalize_interaction
Finalizes the interaction session and releases any associated state or resources. Simulates: release state
verl/verl/interactions/base.py:66
↓ 7 callers
Method
find
(u)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cflawedflow/Cflawedflow_tools.py:116
↓ 7 callers
Method
finish
(self)
verl/verl/utils/tracking.py:254
↓ 7 callers
Method
from_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 callers
Method
generate_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 callers
Method
get
Get the checkpoint engine class. Args: backend: The backend of the checkpoint engine. Returns: The checkpoin
verl/verl/checkpoint_engine/base.py:56
↓ 7 callers
Method
get_input_embeddings
(self)
verl/verl/experimental/vla/models/openvla_oft/modeling_prismatic.py:379
↓ 7 callers
Method
get_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 callers
Method
get_possible_types
(i, j, row_dir, col_dir)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eplumber/Eplumber_instruction_generator.py:150
↓ 7 callers
Function
get_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 callers
Function
lcm
(a, b)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cmushroomstrife/Cmushroomstrife_interaction.py:14
↓ 7 callers
Function
lcm
(a, b)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cmushroomstrife/Cmushroomstrife_instruction_generator.py:15
↓ 7 callers
Function
lcm
(a, b)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cmushroomstrife/Cmushroomstrife_tools.py:20
↓ 7 callers
Method
log
(self, data, step)
verl/verl/utils/logger/aggregate_logger.py:49
↓ 7 callers
Method
ncut
(cls, c1, c2)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cacolourfulprospect/Cacolourfulprospect_instruction_generator.py:101
↓ 7 callers
Method
ncut
(cls, c1, c2)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cacolourfulprospect/Cacolourfulprospect_tools.py:139
↓ 7 callers
Method
ncut
(cls, c1, c2)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cacolourfulprospect/Cacolourfulprospect_interaction.py:120
← previous
next →
201–300 of 18,522, ranked by callers