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
↓ 19 callers
Method
init_model
(self)
verl/verl/experimental/vla/fsdp_workers.py:195
↓ 19 callers
Method
new
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 callers
Function
offload_fsdp_model_to_cpu
(model: FSDP, empty_cache: bool = True)
verl/verl/utils/fsdp_utils.py:144
↓ 19 callers
Function
pad_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 callers
Method
compute_score
(self, data: DataProto)
verl/verl/experimental/reward_loop/reward_loop.py:111
↓ 18 callers
Method
from_dict
(cls, data: dict[str, Numeric], aggregation: str | AggregationType)
verl/verl/utils/metric/utils.py:145
↓ 18 callers
Function
model_forward_gen
(vision_model: bool = False)
verl/verl/models/mcore/model_forward.py:34
↓ 18 callers
Method
to_tensordict
Convert this DataProto to TensorDict. Note that this requires tensordict version at least 0.10 Returns:
verl/verl/protocol.py:1113
↓ 17 callers
Function
check_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 callers
Function
compute_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 callers
Method
find
(self, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_tools.py:104
↓ 17 callers
Function
get_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 callers
Function
hf_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 callers
Method
init
( cls, project_name: str, experiment_name: str, backend: str, token2te
verl/verl/utils/rollout_trace.py:69
↓ 16 callers
Method
_make_request
发起请求
internbootcamp/web_service/frontend/utils/api_client.py:14
↓ 16 callers
Function
compute_position_id_with_mask
(mask)
verl/verl/utils/model.py:226
↓ 16 callers
Function
convert_config
[Deprecated] convert config Args: hf_config (PretrainedConfig): _description_ megatron_config (_type_): _description_ Return
verl/verl/utils/megatron_utils.py:328
↓ 16 callers
Method
extract_output
(output: str)
internbootcamp/bootcamps/bootcamps_v1/real_world_problem/bbehobjectcounting/bbehobjectcounting_reward_calculator.py:98
↓ 16 callers
Function
fused_forward_model_gen
(vision_model: bool = False)
verl/verl/models/mcore/model_forward_fused.py:68
↓ 16 callers
Function
get_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
verl/verl/utils/ulysses.py:46
↓ 16 callers
Function
index_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 callers
Function
load_fsdp_model_to_gpu
(model: FSDP)
verl/verl/utils/fsdp_utils.py:178
↓ 16 callers
Method
model
(x, t_val)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/linearode/linearODE_instruction_generator.py:45
↓ 16 callers
Method
remove
移除并销毁环境
internbootcamp/bootcamps/mole_bootcamp/mole_server.py:266
↓ 16 callers
Function
union_numpy_dict
(tensor_dict1: dict[str, np.ndarray], tensor_dict2: dict[str, np.ndarray])
verl/verl/protocol.py:187
↓ 15 callers
Method
_choice
(self, seq: Sequence[Any])
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_dyck_languages/instruction_generator.py:36
↓ 15 callers
Method
batch_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 callers
Function
build_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 callers
Method
get_data_parallel_group
(self)
verl/verl/workers/engine/base.py:166
↓ 15 callers
Method
init_class
Initialize class state shared across all instances.
verl/verl/experimental/reward_loop/reward_manager/base.py:45
↓ 15 callers
Function
is_valid_ipv6_address
(address: str)
verl/verl/utils/net_utils.py:65
↓ 15 callers
Function
load_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 callers
Function
log_message
记录日志消息到文件和控制台,并过滤base64图片数据
internbootcamp/utils/tool_server/cli.py:310
↓ 15 callers
Method
run_single
(self, data: DataProto)
verl/verl/experimental/reward_loop/reward_manager/limited.py:398
↓ 15 callers
Function
solve
(n, c_list)
internbootcamp/bootcamps/bootcamps_v1/algorithm/f1shortcolorfulstrip/F1shortcolorfulstrip_tools.py:24
↓ 15 callers
Method
spawn
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 callers
Method
_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 callers
Function
aggressive_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 callers
Method
all_gather
(self)
verl/tests/single_controller/test_worker_group_torch.py:40
↓ 14 callers
Function
append_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 callers
Method
compute_operator
计算a◎b对应的复数平方
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/koroperationunicode25ce/korOperationUnicode25ce_tools.py:105
↓ 14 callers
Method
execute_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 callers
Function
preprocess_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 callers
Function
query
(prompt: str)
verl/agentic_workflow/backend.py:1
↓ 14 callers
Function
reduce_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 callers
Method
remove
(cls, name: str)
verl/verl/utils/py_functional.py:289
↓ 13 callers
Function
create_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 callers
Function
create_test_data_proto
Helper to create DataProto for testing.
verl/tests/experimental/reward_loop/test_rate_limited_reward_manager_on_cpu.py:125
↓ 13 callers
Method
generate_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 callers
Function
masked_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 callers
Function
should_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 callers
Method
update_content
(self, search_keyword: Optional[str] = None)
verl/scripts/rollout_viewer.py:292
↓ 12 callers
Method
_randint
(self, low: int, high: int)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_boolean_expressions/instruction_generator.py:59
↓ 12 callers
Method
add
(self, data: DataProto)
verl/tests/single_controller/test_auto_padding_on_cpu.py:35
↓ 12 callers
Method
backward
(ctx, g_logprobs: torch.Tensor, g_entropy: torch.Tensor)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:128
↓ 12 callers
Method
cancel
(self)
verl/verl/experimental/fully_async_policy/agent_loop/agent_loop.py:331
↓ 12 callers
Function
count
(arr, st, x)
internbootcamp/bootcamps/bootcamps_v1/algorithm/ebearandcompany/Ebearandcompany_tools.py:31
↓ 12 callers
Method
decode
( 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 callers
Method
from_single_dict
Create a DataProto from a dict of tensors and non_tensors
verl/verl/protocol.py:491
↓ 12 callers
Function
get
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 callers
Function
get_event_loop
()
verl/verl/utils/ray_utils.py:87
↓ 12 callers
Method
get_placement_groups
(self, strategy="STRICT_PACK", name=None, device_name="cuda")
verl/verl/single_controller/ray/base.py:116
↓ 12 callers
Function
get_ulysses_sequence_parallel_group
Get ulysses sequence parallel process group.
verl/verl/utils/ulysses.py:38
↓ 12 callers
Function
load_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 callers
Function
local_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 callers
Function
logprobs_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 callers
Function
need_reference_policy
Given the config, do we need ref policy.
verl/verl/trainer/ppo/utils.py:72
↓ 12 callers
Method
register
(cls, name: str)
verl/verl/utils/py_functional.py:278
↓ 12 callers
Function
temp_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 callers
Function
to_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 callers
Method
update
(self, batch)
verl/tests/utils/dataset/test_create_rl_sampler_on_cpu.py:46
↓ 11 callers
Method
_create_checkpoint_dir
Create a mock checkpoint directory.
verl/tests/utils/ckpt/test_checkpoint_cleanup_on_cpu.py:56
↓ 11 callers
Method
_get_random_value
(self, range_tuple)
internbootcamp/bootcamps/finance_bootcamp/finance_instruction_generator.py:57
↓ 11 callers
Method
check_this_rank
(self)
verl/verl/utils/profiler/profile.py:135
↓ 11 callers
Method
compute_ref_log_prob
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:1043
↓ 11 callers
Function
create_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 callers
Function
create_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 callers
Function
gather_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 callers
Function
get_free_port
(address: str)
verl/verl/utils/net_utils.py:73
↓ 11 callers
Function
load_dataset
加载数据集,支持 JSON、JSONL 和 Parquet 文件格式,并始终返回 list。 参数: dataset_path (str): 数据集文件路径。 dataset (list, optional): 如果提供了 dataset,
internbootcamp/src/base_evaluator.py:35
↓ 11 callers
Function
offload_megatron_optimizer
(optimizers)
verl/verl/utils/megatron_utils.py:556
↓ 11 callers
Function
rearrange_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 callers
Method
run
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 callers
Method
sleep
Sleep all rollout replica instances.
verl/verl/experimental/reward_loop/reward_model.py:111
↓ 11 callers
Function
ulysses_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 callers
Method
_choice
(self, seq: Sequence[Any])
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_hyperbaton/instruction_generator.py:219
↓ 10 callers
Method
_choice
(self, seq)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_boolean_expressions/instruction_generator.py:62
↓ 10 callers
Method
_get_worker_instance_count
获取指定worker映射的instance数量
internbootcamp/utils/tool_server/master_server.py:401
↓ 10 callers
Method
_handle_apply_chat_template
( processing_class: PreTrainedTokenizer | PreTrainedTokenizerFast | ProcessorMixin, messages:
verl/verl/workers/rollout/schemas.py:225
↓ 10 callers
Method
_is_worker_healthy
检查Worker是否健康(基于心跳时间)
internbootcamp/utils/tool_server/master_server.py:420
↓ 10 callers
Function
extract_markdown_content_NP
(md_file_path: str)
internbootcamp/bootcamps/NP/prompt_md.py:26
↓ 10 callers
Function
find_available_port
查找可用端口(改进版) Args: host: 主机地址 start_port: 起始端口 max_port: 最大端口号,默认65535 randomize: 是否在端口范围内随机选择,默认True
internbootcamp/utils/tool_server/utils.py:65
↓ 10 callers
Method
flush_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 callers
Function
get_prompt
(task_type, task_info, NP_question)
internbootcamp/bootcamps/NP/prompt_md.py:17
↓ 10 callers
Method
get_task
获取任务信息
internbootcamp/web_service/backend/utils/task_manager.py:85
↓ 10 callers
Method
is_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 callers
Method
merge
(self, other)
verl/verl/utils/seqlen_balancing.py:82
↓ 10 callers
Function
print_grid_in_kor
(grid, stars=None)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/starbattle/lib/dfs_solver_en.py:20
↓ 10 callers
Function
rollout_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 callers
Method
sleep
(self)
verl/verl/experimental/one_step_off_policy/agent_loop/agent_loop.py:60
← previous
next →
101–200 of 18,522, ranked by callers