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
↓ 7 callers
Function
parallel_put
Puts a list of data into the Ray object store in parallel using a thread pool. Args: data_list (List[Any]): A list of Python objects
verl/verl/utils/ray_utils.py:51
↓ 7 callers
Function
parse_spent_from_str
(state_str: str)
internbootcamp/bootcamps/holdem_bootcamp/holdem_server.py:492
↓ 7 callers
Function
patch_vllm_moe_model_weight_loader
(model)
verl/verl/utils/vllm/patch.py:70
↓ 7 callers
Function
prepare_dynamic_batch
Prepare a batch for dynamic batching. Args: data (DataProto): The input data. max_token_len (int): The maximum token length
verl/verl/utils/seqlen_balancing.py:443
↓ 7 callers
Method
register_checkpoint
Register a successfully saved checkpoint and enforce retention limit. Adds the new checkpoint path to tracking and removes excess ol
verl/verl/utils/checkpoint/checkpoint_manager.py:160
↓ 7 callers
Method
stop
(self)
verl/verl/utils/profiler/profile.py:149
↓ 7 callers
Method
to
Move model parameters, optimizer states, or both to the specified device. Note that this function executes irrespective of offload co
verl/verl/workers/engine/megatron/transformer_impl.py:374
↓ 7 callers
Method
union
(self, a, b)
internbootcamp/bootcamps/bootcamps_v1/algorithm/feuclidsnightmare/Feuclidsnightmare_tools.py:39
↓ 7 callers
Method
update_actor
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:895
↓ 7 callers
Method
update_critic
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:1562
↓ 6 callers
Function
_align_size
Calculate the aligned size of a torch tensor If the tensor's size (in bytes) cannot be evenly divided by _ALIGN_SIZE, it will be rounded
verl/verl/experimental/fully_async_policy/checkpoint_engine.py:139
↓ 6 callers
Function
_broadcast_tensor
broadcast tensor from rank0 across mp_group
verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:104
↓ 6 callers
Function
_broadcast_tensor
broadcast tensor across mp_group
verl/verl/models/mcore/saver.py:141
↓ 6 callers
Function
_broadcast_tensor
broadcast tensor from rank0 across mp_group
verl/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:106
↓ 6 callers
Function
_fetch_tensor
fetch tensor
verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:104
↓ 6 callers
Function
_fetch_tensor
fetch tensor
verl/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:106
↓ 6 callers
Method
_forward_request
转发请求到指定的worker
internbootcamp/utils/tool_server/master_server.py:406
↓ 6 callers
Method
_generate_word_with_vowel_count_and_last
(self, count, last_vowel)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/cbeautifullyrics/Cbeautifullyrics_interaction.py:136
↓ 6 callers
Method
_generate_word_with_vowel_count_and_last
(self, count, last_vowel)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/cbeautifullyrics/Cbeautifullyrics_instruction_generator.py:126
↓ 6 callers
Method
_generate_word_with_vowel_count_and_last
(self, count, last_vowel)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/cbeautifullyrics/Cbeautifullyrics_tools.py:155
↓ 6 callers
Function
_get_base_transformer_config
Create a base TransformerConfig with common parameters across different model architectures. TODO: (ycl) use dataclass or converter config?
verl/verl/models/mcore/config_converter.py:32
↓ 6 callers
Method
_init_server_adapter
(self)
verl/verl/workers/rollout/trtllm_rollout/trtllm_rollout.py:316
↓ 6 callers
Method
_randint
(self, low: int, high: int)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_dyck_languages/instruction_generator.py:39
↓ 6 callers
Method
_rkey
返回某个会话在 Redis 中的 Hash key
internbootcamp/bootcamps/bot_bootcamp/bot_server.py:362
↓ 6 callers
Method
_run_all
(self, tasks: list[asyncio.Task])
verl/verl/experimental/agent_loop/agent_loop.py:1057
↓ 6 callers
Method
_session_key
(self, lbl: str)
internbootcamp/bootcamps/mole_bootcamp/mole_server.py:188
↓ 6 callers
Method
_state_key
(self, lbl: str)
internbootcamp/bootcamps/escape_bootcamp/escape_server.py:738
↓ 6 callers
Method
_validate
(self)
verl/verl/experimental/vla/rob_ray_trainer.py:561
↓ 6 callers
Method
aggregate
(self)
verl/verl/utils/metric/utils.py:123
↓ 6 callers
Function
auto_set_device
Automatically configure device name for different accelerators. For example, on Ascend NPU, this function defaults the trainer device to "npu"
verl/verl/utils/device.py:145
↓ 6 callers
Function
better
(a, b)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_instruction_generator.py:29
↓ 6 callers
Function
better
(a, b)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_reward_calculator.py:28
↓ 6 callers
Function
better
(a, b)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_tools.py:34
↓ 6 callers
Function
better
(a, b)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dthreereligions/Dthreereligions_interaction.py:28
↓ 6 callers
Function
calculate_debug_metrics
calculate rollout vs actor logprobs diff, for debugging purpose Args: data: DataProto the data batch to calculate
verl/verl/utils/debug/metrics.py:63
↓ 6 callers
Method
check_this_step
(self)
verl/verl/utils/profiler/profile.py:138
↓ 6 callers
Function
combined_int_check
(val)
verl/verl/utils/reward_score/prime_code/testing_util.py:77
↓ 6 callers
Method
compute_log_prob
Compute logits given a batch of data. Args: data (DataProto): a batch of data represented by DataProto. It must contain key ```in
verl/verl/workers/actor/base.py:39
↓ 6 callers
Method
compute_operator
计算a◎b对应的复数平方
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/koroperationunicode25ce/korOperationUnicode25ce_interaction.py:86
↓ 6 callers
Method
compute_rm_score
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:1930
↓ 6 callers
Method
compute_rm_score
(self, data: DataProto)
verl/verl/experimental/reward_loop/reward_loop.py:281
↓ 6 callers
Method
compute_score
(self, **kwargs)
verl/verl/experimental/reward_loop/reward_manager/remote.py:36
↓ 6 callers
Function
convert_to_regular_types
Convert Hydra configs and other special types to regular Python types.
verl/verl/utils/py_functional.py:331
↓ 6 callers
Function
convert_weight_keys
(state_dict: dict[str, torch.Tensor], model: PreTrainedModel)
verl/verl/utils/model.py:230
↓ 6 callers
Method
count_lines
统计文件行数
internbootcamp/web_service/backend/utils/file_manager.py:60
↓ 6 callers
Method
dump_memory_snapshot
Generates a memory snapshot and saves it as a pickle file in a specified directory. The files are organized by timestamp in subdirect
verl/verl/utils/memory_utils.py:256
↓ 6 callers
Method
execute_checkpoint_engine
(self, method: str, *args, **kwargs)
verl/verl/checkpoint_engine/base.py:278
↓ 6 callers
Function
f
(s)
internbootcamp/bootcamps/bootcamps_v1/algorithm/chackit/Chackit_tools.py:18
↓ 6 callers
Function
find_latest_ckpt_path
Return the most recent checkpoint directory based on a tracker file. Args: path (str): Base directory containing the checkpoint trac
verl/verl/utils/checkpoint/checkpoint_manager.py:198
↓ 6 callers
Method
flush
(self)
internbootcamp/utils/tool_server/cli.py:131
↓ 6 callers
Method
generate
(self, hero_data, villain_data, board_cards, pot_size, game_info="")
internbootcamp/bootcamps/holdem_bootcamp/visual.py:374
↓ 6 callers
Method
generate
Generate text using the SGLang server. Args: prompt (Optional[str], optional): Text prompt for generation. Defaults to None.
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:424
↓ 6 callers
Method
generate
Generate tokens from prompt ids. Args: request_id (str): request id for sticky session. prompt_ids (List[int]): List
verl/verl/experimental/agent_loop/agent_loop.py:96
↓ 6 callers
Method
get_data_parallel_size
(self)
verl/verl/workers/engine/base.py:160
↓ 6 callers
Function
get_fsdp_wrap_policy
Get FSDP wrap policy for the module. Args: module: The module to get wrap policy for config: Configuration for wrap policy
verl/verl/utils/fsdp_utils.py:73
↓ 6 callers
Function
get_hf_model_checkpoint_path
(checkpoint_path)
verl/verl/utils/megatron_utils.py:632
↓ 6 callers
Method
get_instance
(cls)
verl/verl/utils/rollout_trace.py:63
↓ 6 callers
Function
get_rollout_replica_class
(rollout: str)
verl/verl/workers/rollout/replica.py:338
↓ 6 callers
Function
get_seqlen_balanced_partitions
Calculates partitions of indices from seqlen_list such that the sum of sequence lengths in each partition is balanced. Uses the Karmarkar-Kar
verl/verl/utils/seqlen_balancing.py:213
↓ 6 callers
Function
get_simple_path
custom_graph: {"room1": {"exits": {"room2": "direction2", ...}}, ...}
internbootcamp/bootcamps/escape_bootcamp/escape_server.py:212
↓ 6 callers
Function
get_visible_devices_keyword
Get the environment variable name for visible device selection. Returns the appropriate environment variable name based on the available acce
verl/verl/utils/device.py:54
↓ 6 callers
Function
import_external_libs
(external_libs=None)
verl/verl/utils/import_utils.py:72
↓ 6 callers
Method
init_standalone
Init standalone rollout server, create new resource pool for this rollout.
verl/verl/workers/rollout/replica.py:170
↓ 6 callers
Method
is_done
(self, a)
internbootcamp/bootcamps/bootcamps_v1/algorithm/feuclidsnightmare/Feuclidsnightmare_instruction_generator.py:44
↓ 6 callers
Function
is_non_local
Check if a path is a non-local (HDFS) path. Args: path (str): The path to check. Returns: bool: True if the path is an HDFS
verl/verl/utils/fs.py:34
↓ 6 callers
Function
list_to_tuple
递归地将列表转换为元组
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/arc/arc_reward_calculator.py:60
↓ 6 callers
Function
no_padding_2_padding
Convert NestedTensor from no-padding to right padding format. Args: nested_tensor: NestedTensor with no-padding format data:
verl/verl/workers/utils/padding.py:75
↓ 6 callers
Method
on_batch_end
Generate data using the provided data generation strategy. Note: This method is intended to change the dataset after each training ba
verl/verl/experimental/dynamic_dataset/dynamicgen_dataset.py:106
↓ 6 callers
Function
pad_dataproto_to_divisor
Pad a DataProto to size divisible by size_divisor Args: size_divisor (int): size divisor Returns: data: (DataProto): the pad
verl/verl/protocol.py:73
↓ 6 callers
Function
pad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
verl/verl/utils/torch_functional.py:494
↓ 6 callers
Function
patch_vlm_for_ulysses_input_slicing
Applies a monkey patch to the forward method of a given model class to enable Ulysses sequence parallelism input slicing.
verl/verl/models/transformers/monkey_patch.py:158
↓ 6 callers
Function
point_local2global
convert point in sketch plane local coordinates to global coordinates
internbootcamp/bootcamps/flangeplane_bootcamp/utils/cadlib/visualize.py:116
↓ 6 callers
Function
postprocess_packed_seqs
Postprocess packed sequences
verl/verl/models/mcore/util.py:118
↓ 6 callers
Function
print_model_size
(model: nn.Module, name: str = None)
verl/verl/utils/model.py:176
↓ 6 callers
Method
release_memory_occupation
Release GPU memory occupation temporarily. Args: tags (Optional[List[str]], optional): List of tags to specify which memory to re
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:535
↓ 6 callers
Function
render_markdown_box
在可滚动容器中渲染 Markdown,使用户可自定义滚动
internbootcamp/web_service/frontend/streamlit_app.py:92
↓ 6 callers
Method
reorder
Note that this operation is in-place
verl/verl/protocol.py:974
↓ 6 callers
Method
reset_joint_states
(self, angles, capture=False)
internbootcamp/bootcamps/bot_bootcamp/bot_server.py:313
↓ 6 callers
Method
resume
Resume rollout weights or kv cache in GPU memory. Args: tags: weights or kv_cache.
verl/verl/workers/rollout/base.py:43
↓ 6 callers
Method
sample_predicate
(self, n: int = 1)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/bbehboardgameqa/bbehboardgameqa_instruction_generator.py:224
↓ 6 callers
Method
sample_predicate
(self, n: int = 1)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_boardgame_qa/instruction_generator.py:239
↓ 6 callers
Method
shutdown
Shutdown the HTTP server and clean up resources. This method performs the following cleanup operations: 1. Unregisters the worker fro
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:392
↓ 6 callers
Method
sleep
(self)
verl/verl/workers/rollout/sglang_rollout/async_sglang_server.py:303
↓ 6 callers
Function
solve
完整实现的解题算法
internbootcamp/bootcamps/bootcamps_v1/algorithm/ccointroubles/Ccointroubles_tools.py:25
↓ 6 callers
Method
to
Move model parameters, optimizer states, or both to the specified device. Note that this function executes irrespective of offload co
verl/verl/workers/engine/veomni/transformer_impl.py:321
↓ 6 callers
Function
truncatefn
(s, length=300)
verl/verl/utils/reward_score/prime_code/testing_util.py:39
↓ 6 callers
Function
unpad_dataproto
Unpad the data proto with pad_size. i.e. `data[:-pad_size]`
verl/verl/protocol.py:101
↓ 6 callers
Method
update_weights
Update weights from trainer to rollout replicas.
verl/verl/checkpoint_engine/base.py:378
↓ 6 callers
Method
update_weights_from_tensor
Update model weights from tensor data. The HTTP server will only post meta data, and the real weights will be copied directly from GP
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:350
↓ 6 callers
Method
validate
Validate actor configuration with runtime parameters.
verl/verl/workers/config/actor.py:200
↓ 6 callers
Method
wrap_generate_sequences
(self)
verl/verl/utils/rollout_skip.py:67
↓ 5 callers
Method
__init__
(self)
verl/verl/single_controller/ray/base.py:980
↓ 5 callers
Method
__init__
(self, config: Qwen2Config, megatron_config: ModelParallelConfig)
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:83
↓ 5 callers
Method
__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
verl/verl/models/llama/megatron/modeling_llama_megatron.py:82
↓ 5 callers
Function
_broadcast_tensor
broadcast tensor across mp_group
verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:129
↓ 5 callers
Function
_broadcast_tensor
broadcast tensor across mp_group
verl/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:129
↓ 5 callers
Method
_cleanup_expired_envs
内部方法:检查并删除过期的环境
internbootcamp/bootcamps/mole_bootcamp/mole_server.py:191
↓ 5 callers
Method
_cleanup_expired_sims
内部方法:必须在已持有锁的上下文中调用
internbootcamp/bootcamps/bot_bootcamp/bot_server.py:373
↓ 5 callers
Method
_clear_search
(self)
verl/scripts/rollout_viewer.py:474
↓ 5 callers
Function
_compute_topk
(scores, topk, num_groups=None, group_topk=None)
verl/verl/utils/megatron/router_replay_patch.py:145
← previous
next →
301–400 of 18,522, ranked by callers