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
↓ 4,958 callers
Method
append
(self, value: Union[Numeric, "Metric"])
verl/verl/utils/metric/utils.py:103
↓ 2,883 callers
Method
get
(x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cserejaandsubsequences/Cserejaandsubsequences_tools.py:116
↓ 1,400 callers
Method
verify_score
Verifies model output for currents, potentials, and equations, calculating a comprehensive score. 新的分数计算逻辑: 0.5 * (正确的KCL方程数/
internbootcamp/bootcamps/bootcamps_v1/natural_science/circuit/circuit_tools.py:327
↓ 807 callers
Method
getenv
(self, key)
verl/tests/single_controller/test_ray_local_envs_on_cpu.py:31
↓ 634 callers
Method
split
(self, stone, k)
internbootcamp/bootcamps/bootcamps_v1/algorithm/einterestinggame/Einterestinggame_tools.py:106
↓ 622 callers
Method
get
获取环境实例
internbootcamp/bootcamps/mole_bootcamp/mole_server.py:236
↓ 606 callers
Method
get
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
verl/verl/utils/memory_buffer.py:45
↓ 532 callers
Method
pop
Pop a subset of the DataProto via `batch_keys` and `meta_info_keys` Args: batch_keys (list, optional): a list of strings indicati
verl/verl/protocol.py:732
↓ 507 callers
Method
add
(x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/ekalilaanddimnaintheloggingindustry/Ekalilaanddimnaintheloggingindustry_tools.py:121
↓ 393 callers
Method
get
Get a rollout replica class by name.
verl/verl/workers/rollout/replica.py:267
↓ 331 callers
Method
to
Move model parameters, optimizer states, or both to the specified device. Args: device: Target device identifier.
verl/verl/workers/engine/base.py:169
↓ 230 callers
Method
extend
(self, values: Union["Metric", list[Numeric]])
verl/verl/utils/metric/utils.py:115
↓ 186 callers
Method
get
(self, lbl: str)
internbootcamp/bootcamps/bot_bootcamp/bot_server.py:400
↓ 157 callers
Method
values
(cls)
verl/verl/utils/py_functional.py:253
↓ 156 callers
Method
get
(self)
verl/tests/single_controller/test_nested_worker.py:31
↓ 149 callers
Method
split
split the dataset into num_splits sub-datasets Args: num_splits: specified number of splits Returns:
verl/verl/utils/dataset/rl_dataset.py:398
↓ 139 callers
Method
count
(d_val)
internbootcamp/bootcamps/bootcamps_v1/algorithm/canniversary/Canniversary_tools.py:107
↓ 137 callers
Function
get_device_name
Get the device type string based on available accelerators. Detects the available accelerator and returns the corresponding PyTorch device ty
verl/verl/utils/device.py:67
↓ 132 callers
Function
get_torch_device
Get the PyTorch device module for the current accelerator. Returns the torch device namespace (e.g., torch.cuda, torch.npu) based on the dete
verl/verl/utils/device.py:85
↓ 131 callers
Method
exists
(self, lbl: str)
internbootcamp/bootcamps/escape_bootcamp/escape_server.py:786
↓ 129 callers
Method
load
(self)
internbootcamp/bootcamps/bot_bootcamp/bot_server.py:534
↓ 121 callers
Function
get_device_id
Get the index of the current accelerator device. Returns: int: The current device index (e.g., 0 for 'cuda:0').
verl/verl/utils/device.py:103
↓ 109 callers
Method
sub
(self, data: DataProto)
verl/tests/single_controller/test_colocated_workers.py:47
↓ 104 callers
Method
update
Update method for fixed KL controller (no-op). Args: current_kl (float): Current KL divergence value (unused). n_step
verl/verl/trainer/ppo/core_algos.py:182
↓ 96 callers
Function
marked_timer
Context manager for timing with platform markers. This utility function measures the execution time of code within its context, accumulates t
verl/verl/utils/profiler/performance.py:172
↓ 86 callers
Function
print_rank_0
If distributed is initialized, print only on rank 0.
verl/verl/utils/logger/aggregate_logger.py:89
↓ 80 callers
Method
remove
(self, lbl: str)
internbootcamp/bootcamps/bot_bootcamp/bot_server.py:421
↓ 79 callers
Method
from_pretrained
(cls, save_directory: str | os.PathLike, **kwargs)
verl/tests/special_e2e/envs/digit_completion/tokenizer.py:151
↓ 79 callers
Function
log_gpu_memory_usage
Log GPU memory usage information. Args: head (str): A descriptive header for the memory usage log message. logger (logging.Logger
verl/verl/utils/profiler/performance.py:63
↓ 79 callers
Function
omega_conf_to_dataclass
Convert an OmegaConf DictConfig to a dataclass. Args: config: The OmegaConf DictConfig or dict to convert. dataclass_type: T
verl/verl/utils/config.py:23
↓ 77 callers
Method
from_dict
Create a DataProto from a dict of tensors. This assumes that 1. All the tensor in tensors have the same dim0 2. Only dim0 is the batch
verl/verl/protocol.py:507
↓ 77 callers
Method
update
(self, batch: DataProto)
verl/verl/experimental/dataset/sampler.py:39
↓ 72 callers
Method
get
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
verl/verl/utils/megatron/memory.py:31
↓ 72 callers
Method
search
(self, query: str, num: int = None, return_score: bool = False)
verl/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:139
↓ 69 callers
Method
gcd
(a, b)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cnekodoesmaths/Cnekodoesmaths_tools.py:105
↓ 67 callers
Method
create
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of the tool
verl/verl/tools/base_tool.py:46
↓ 67 callers
Function
safe_copy
( src_tensor: torch.Tensor, dst_tensor: torch.Tensor, skip_dtype_assert: bool = False, )
verl/scripts/converter_hf_to_mcore.py:209
↓ 66 callers
Function
dfs
(cur, current_sum)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cxortree/Cxortree_tools.py:46
↓ 61 callers
Method
chunk
Split the batch among dim=0 into chunks. The meta_info is passed to each DataProto after split. Args: chunks (int): the number of
verl/verl/protocol.py:875
↓ 56 callers
Method
decode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokeniz
verl/verl/workers/rollout/tokenizer.py:89
↓ 53 callers
Method
select
Select a subset of the DataProto via batch_keys and meta_info_keys Args: batch_keys (list, optional): a list of strings indicatin
verl/verl/protocol.py:611
↓ 53 callers
Method
update
(self, index, value)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/ftokitsukazeandstrangerectangle/Ftokitsukazeandstrangerectangle_tools.py:69
↓ 51 callers
Method
init
(self)
verl/tests/single_controller/test_rvdz.py:26
↓ 50 callers
Method
sleep
Sleep each rollout server.
verl/verl/workers/rollout/replica.py:227
↓ 49 callers
Method
to
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
verl/verl/protocol.py:597
↓ 49 callers
Method
write
(self, data)
internbootcamp/utils/tool_server/cli.py:124
↓ 47 callers
Method
_uniform
(self, low: float, high: float)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_geometric_shapes/instruction_generator.py:25
↓ 47 callers
Method
log
(self, data, step, backend=None)
verl/verl/utils/tracking.py:162
↓ 47 callers
Function
log_with_rank
_summary_ Log a message with rank information using a logger. This function logs the message only if `log_only_rank_0` is False or if the rank
verl/verl/utils/logger/aggregate_logger.py:128
↓ 46 callers
Method
concat
Concat a list of DataProto. The batch is concatenated among dim=0. The meta_info is merged, with special handling for metrics from different w
verl/verl/protocol.py:928
↓ 46 callers
Method
shutdown
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:196
↓ 43 callers
Function
hf_tokenizer
Create a huggingface pretrained tokenizer which correctness handles eos and pad tokens. Args: name (str): The name of the tokenizer.
verl/verl/utils/tokenizer.py:37
↓ 42 callers
Method
get
(self, lbl: str)
internbootcamp/bootcamps/escape_bootcamp/escape_server.py:780
↓ 41 callers
Function
copy_to_local
Copy files/directories from HDFS to local cache with validation. Args: src (str): Source path - HDFS path (hdfs://...), local filesystem
verl/verl/utils/fs.py:195
↓ 41 callers
Method
update
(x, v)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cserejaandsubsequences/Cserejaandsubsequences_tools.py:123
↓ 39 callers
Method
union
(self, other: "ProfilerConfig")
verl/verl/utils/profiler/config.py:129
↓ 38 callers
Method
repeat
Repeat the batch data a specified number of times. Args: repeat_times (int): Number of times to repeat the data.
verl/verl/protocol.py:982
↓ 37 callers
Function
func
(self, *args, **kwargs)
verl/verl/single_controller/ray/base.py:908
↓ 36 callers
Method
close
(self)
verl/verl/experimental/vla/envs/isaac_env/isaac_env.py:294
↓ 35 callers
Method
_log
统一的日志记录方法
internbootcamp/utils/tool_server/master_server.py:76
↓ 35 callers
Method
split
Split the batch among dim=0 into chunks. The meta_info is passed to each DataProto after split. Args: split_size (int): the size
verl/verl/protocol.py:916
↓ 34 callers
Method
_log
统一的日志记录方法
internbootcamp/utils/tool_server/worker_server.py:72
↓ 34 callers
Method
start
(self, **kwargs)
verl/verl/utils/profiler/profile.py:144
↓ 32 callers
Method
step
(self)
verl/verl/utils/profiler/torch_profile.py:119
↓ 30 callers
Function
unwrap_model
(model, module_instances=ALL_MODULE_WRAPPER_CLASSNAMES)
verl/verl/utils/megatron_utils.py:313
↓ 29 callers
Function
fsdp_version
(model)
verl/verl/utils/fsdp_utils.py:399
↓ 29 callers
Method
get
Get the value associated with the given key. If the key does not exist, return the default value. Args: key (str): The attribute
verl/verl/base_config.py:40
↓ 29 callers
Method
save
将修改后的游戏状态保存回 Redis,保留剩余 TTL
internbootcamp/bootcamps/holdem_bootcamp/holdem_server.py:963
↓ 28 callers
Function
gather_seq_scatter_heads
A func to sync embedding input with alltoall in sequence parallel gather sequence dimension and scatter head dim: e.g. seq_dim: 1, head_d
verl/verl/utils/ulysses.py:62
↓ 28 callers
Method
get_resource_pool
Get the resource pool of the worker_cls
verl/verl/single_controller/ray/base.py:197
↓ 28 callers
Method
reverse
(self)
internbootcamp/bootcamps/flangeplane_bootcamp/utils/cadlib/curves.py:296
↓ 27 callers
Method
apply_chat_template
Apply chat template to messages with optional tools, images, and videos. Args: messages (list[dict]): Input messages.
verl/verl/experimental/agent_loop/agent_loop.py:249
↓ 27 callers
Method
dump
(self, outputs: DataProto)
verl/verl/utils/rollout_skip.py:105
↓ 26 callers
Method
init_process_group
Init process group for checkpoint engine. Args: **kwargs: Keyword arguments from `build_topology`.
verl/verl/checkpoint_engine/base.py:143
↓ 26 callers
Method
save_pretrained
(self, save_directory: str | os.PathLike, **kwargs)
verl/tests/special_e2e/envs/digit_completion/tokenizer.py:144
↓ 26 callers
Method
to_dtype
(precision)
verl/verl/utils/torch_dtypes.py:61
↓ 25 callers
Method
acquire
Acquire tokens from the bucket, waiting if necessary. This method will block (using asyncio.sleep) until sufficient tokens are availa
verl/verl/experimental/reward_loop/reward_manager/limited.py:90
↓ 24 callers
Method
create_task
创建新任务
internbootcamp/web_service/backend/utils/task_manager.py:19
↓ 24 callers
Method
record
(x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dmahmoudandehabandanotherarrayconstructiontask/Dmahmoudandehabandanotherarrayconstructiontask_tools.py:118
↓ 23 callers
Method
add
(self, idx: int, val: int)
verl/verl/utils/seqlen_balancing.py:78
↓ 23 callers
Function
copy
r"""Works like shutil.copy() for file, and shutil.copytree for dir, and supports hdfs. Copy data and mode bits ("cp src dst"). Return the file's
verl/verl/utils/hdfs_io.py:84
↓ 23 callers
Function
dfs
(x, parent_adj, tin, tout, dep, current_time, current_g)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eonchangingtree/Eonchangingtree_tools.py:31
↓ 23 callers
Method
named_parameters
(self)
verl/verl/utils/memory_buffer.py:209
↓ 22 callers
Function
agg_loss
Aggregate the loss across global batch to ensure the loss is invariant to fsdp/megatron parallelism. NOTE: The returned loss has different b
verl/verl/trainer/ppo/core_algos.py:1025
↓ 22 callers
Function
gcd
(a, b)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/asavethenature/Asavethenature_tools.py:25
↓ 22 callers
Method
get
从 Redis 反序列化获取游戏实例
internbootcamp/bootcamps/holdem_bootcamp/holdem_server.py:955
↓ 22 callers
Method
get_data_parallel_rank
(self)
verl/verl/workers/engine/base.py:163
↓ 21 callers
Method
_register_dispatch_collect_info
Register the dp_rank for a given mesh name. This function is meant to be called by the worker Args: mesh_name (str):
verl/verl/single_controller/base/worker.py:86
↓ 21 callers
Method
from_single_dict
(cls, data, meta_info=None, auto_padding=False)
verl/tests/test_protocol_on_cpu.py:580
↓ 21 callers
Method
get
(self)
verl/verl/utils/rendezvous/ray_backend.py:28
↓ 21 callers
Function
unpad_input
Unified entry point for `unpad_input` across CUDA and NPU backends. Dynamically dispatches to the appropriate device-specific implementation
verl/verl/utils/attention_utils.py:84
↓ 20 callers
Function
load_megatron_model_to_gpu
(models, load_grad=True)
verl/verl/utils/megatron_utils.py:447
↓ 20 callers
Function
makedirs
r"""Works like os.makedirs() but supports hdfs. Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except tha
verl/verl/utils/hdfs_io.py:50
↓ 20 callers
Function
offload_megatron_model_to_cpu
In megatron, the model and optimizer storage are: - bf16 parameter data chunked in model parallel group - fp32 grad chunked in model para
verl/verl/utils/megatron_utils.py:411
↓ 20 callers
Function
rearrange
Unified entry point for `rearrange` across CUDA and NPU backends. Dynamically dispatches to the appropriate device-specific implementation:
verl/verl/utils/attention_utils.py:69
↓ 20 callers
Method
start_interaction
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of the tool
verl/verl/interactions/base.py:25
↓ 20 callers
Method
store
(self)
verl/verl/single_controller/base/worker_group.py:60
↓ 19 callers
Method
close
(self)
internbootcamp/bootcamps/bot_bootcamp/bot_server.py:329
↓ 19 callers
Method
from_config
(cls, config: dict)
verl/tests/special_e2e/envs/digit_completion/tokenizer.py:137
↓ 19 callers
Method
generate_sequences
Batch generate sequences in sync mode. Args: prompts: The input prompts. Returns: The output sequences.
verl/verl/workers/rollout/base.py:69
next →
1–100 of 18,522, ranked by callers