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
↓ 5 callers
Method
_ensure_capacity
( self, base_pool: List[str], target_size: int, candidates: List[str], )
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_shuff_object/instruction_generator.py:1165
↓ 5 callers
Method
_format_attribute_counts
(self, objects: List[Dict[str, str]], attr: str)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_object_properties/instruction_generator.py:294
↓ 5 callers
Method
_get_gen_batch
(self, batch: DataProto)
verl/verl/experimental/vla/rob_ray_trainer.py:195
↓ 5 callers
Function
_hdfs_cmd
(cmd: str)
verl/verl/utils/hdfs_io.py:144
↓ 5 callers
Method
_random
(self)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_dyck_languages/instruction_generator.py:33
↓ 5 callers
Method
_run_async_safely
(self, coro)
verl/verl/experimental/fully_async_policy/base_detach_sync.py:109
↓ 5 callers
Function
_run_cmd
(cmd: str, timeout=None)
verl/verl/utils/hdfs_io.py:140
↓ 5 callers
Method
add_transformer
添加转换函数 Args: transform_func: 转换函数,接收一个字典,返回一个字典或字典列表 - 返回字典表示一对一转换
internbootcamp/utils/data_postprocess.py:72
↓ 5 callers
Function
as_torch_index
Convert arbitrary group labels to a contiguous 1-D torch.long tensor (0..G-1). Args: index: Any iterable of labels or tensor/ndarray
verl/verl/utils/groupwise.py:91
↓ 5 callers
Function
build_optimizer
Build an optimizer based on the configuration. Dynamically imports and instantiates an optimizer class from the specified module. Args:
verl/verl/workers/config/optimizer.py:146
↓ 5 callers
Function
ccw
(A, B, C)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_instruction_generator.py:89
↓ 5 callers
Function
ccw
(A, B, C)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_interaction.py:88
↓ 5 callers
Function
ccw
(A, B, C)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_reward_calculator.py:88
↓ 5 callers
Function
ccw
(A, B, C)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_tools.py:94
↓ 5 callers
Function
check_and_construct_configs
Check and disable incompatible configurations for older Megatron version. Args: original_config (dict): The original model configura
verl/verl/models/mcore/config_converter.py:137
↓ 5 callers
Function
clean_traceback
(error_traceback)
verl/verl/utils/reward_score/prime_code/testing_util.py:81
↓ 5 callers
Method
comb
(n, k)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cgeraldandgiantchess/Cgeraldandgiantchess_reward_calculator.py:46
↓ 5 callers
Function
compute_offpolicy_metrics
Compute off-policy diagnostic metrics (helper function). This helper function operates on raw tensors and is used internally by: - compute_ro
verl/verl/trainer/ppo/rollout_corr_helper.py:834
↓ 5 callers
Function
deserialize_tensordict
(arr: Any)
verl/verl/protocol.py:286
↓ 5 callers
Function
draw_action
round: 0 - 初始状态 1 - 发玩家1的私牌 2 - 发玩家2的私牌 3 - 小盲 / 大盲 4 - 小盲出牌 5 - 大盲出牌 ......
internbootcamp/bootcamps/holdem_bootcamp/holdem_server.py:36
↓ 5 callers
Method
exists
(self, lbl: str)
internbootcamp/bootcamps/holdem_bootcamp/holdem_server.py:977
↓ 5 callers
Function
expand_as_nested
Args: tensor: a tensor with shape (bsz,) nested_tensor: a nested tensor with shape (bsz, xxx) Returns: a tensor wit
verl/verl/utils/torch_functional.py:973
↓ 5 callers
Method
find
(parent, x)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/ccivilization/Ccivilization_instruction_generator.py:144
↓ 5 callers
Function
flash_attn_supports_top_left_mask
Fallback implementation for older transformers versions. Returns False to disable features that require this function.
verl/verl/utils/transformers_compat.py:32
↓ 5 callers
Function
format_time_now
(format_str: str = "%Y%m%d%H%M%S")
internbootcamp/utils/format_time_now.py:3
↓ 5 callers
Method
from_vector
(vec, start_point, is_numerical=True)
internbootcamp/bootcamps/flangeplane_bootcamp/utils/cadlib/curves.py:200
↓ 5 callers
Function
fsdp2_load_full_state_dict
Loads the full state dict (could be only on rank 0) into the sharded model. This is done by broadcasting the parameters from rank 0 to all ot
verl/verl/utils/fsdp_utils.py:451
↓ 5 callers
Function
get_adv_estimator_fn
Get the advantage estimator function with a given name. Args: name_or_enum: `(str)` or `(AdvantageEstimator)` The name or enu
verl/verl/trainer/ppo/core_algos.py:136
↓ 5 callers
Method
get_backend
(cls)
verl/verl/utils/rollout_trace.py:107
↓ 5 callers
Method
get_dispatch_collect
Get all registered dispatch and collect dp_ranks. Returns: dict[str, int]: A dictionary mapping mesh names to the
verl/verl/single_controller/base/worker.py:136
↓ 5 callers
Function
get_external_ip
获取外网可访问的IP地址
internbootcamp/utils/tool_server/utils.py:36
↓ 5 callers
Method
get_info
(self)
internbootcamp/bootcamps/holdem_bootcamp/holdem_server.py:910
↓ 5 callers
Function
get_init_weight_context_manager
(use_meta_tensor=True, mesh: DeviceMesh = None)
verl/verl/utils/fsdp_utils.py:57
↓ 5 callers
Function
get_model
Build the model.
verl/verl/utils/megatron_utils.py:49
↓ 5 callers
Method
get_n_gpus
Get the number of gpus in this cluster.
verl/verl/single_controller/ray/base.py:201
↓ 5 callers
Method
get_node_id
(self)
verl/tests/single_controller/test_high_level_scheduling_api.py:30
↓ 5 callers
Method
get_per_tensor_param
Get a generator that yields per-tensor parameters and optional peft config. Returns: Generator[tuple[str, torch.Tensor]]
verl/verl/workers/engine/base.py:150
↓ 5 callers
Method
get_rng_state
()
verl/verl/utils/checkpoint/checkpoint_manager.py:176
↓ 5 callers
Function
hf_to_mcore_config
Convert huggingface PretrainedConfig to mcore TransformerConfig. Args: hf_config: The huggingface PretrainedConfig. dtype: The dt
verl/verl/models/mcore/registry.py:238
↓ 5 callers
Method
infer_batch
Perform inference on a batch of data. Args: data: The input data for inference, typically containing tensors and metadat
verl/verl/workers/engine/base.py:133
↓ 5 callers
Function
launch_server_process
Launch an SGLang HTTP server process and wait for it to be ready. This function starts a new process running an SGLang HTTP server, then waits
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:106
↓ 5 callers
Function
lcm
(a, b)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/cmushroomstrife/Cmushroomstrife_reward_calculator.py:14
↓ 5 callers
Method
load_checkpoint
(self)
verl/verl/trainer/fsdp_sft_trainer.py:614
↓ 5 callers
Function
load_class_from_string
从字符串路径动态加载类 Args: class_path: 类的完整路径,如 'internbootcamp.bootcamps.example_bootcamp.example_evaluator.ExampleEvaluator'
internbootcamp/utils/load_class_from_str.py:3
↓ 5 callers
Function
load_mcore_dist_weights
(parallel_model, dist_weight_path, is_value_model=False, prefix="")
verl/verl/utils/model.py:536
↓ 5 callers
Function
make_megatron_module
( wrap_config: McoreModuleWrapperConfig, tf_config: TransformerConfig, hf_config: PretrainedConfig
verl/verl/utils/megatron_utils.py:173
↓ 5 callers
Function
need_critic
Given a config, do we need critic
verl/verl/experimental/one_step_off_policy/utils.py:22
↓ 5 callers
Method
parse_sample_result
解析单个样本结果 - 支持多种格式
internbootcamp/web_service/backend/utils/result_parser.py:13
↓ 5 callers
Function
process_validation_metrics
Process validation metrics into a structured format with statistical analysis. This function organizes validation metrics by data source and
verl/verl/trainer/ppo/metric_utils.py:511
↓ 5 callers
Method
read_jsonl
读取JSONL文件(支持增量读取)
internbootcamp/web_service/backend/utils/file_manager.py:41
↓ 5 callers
Method
reset
Reset the model engine to the initial state. If the engine is not initialized, we initialize it. Otherwise, reload ckpt and reset sta
verl/verl/workers/engine_workers.py:118
↓ 5 callers
Method
reset
( self, env_idx: Optional[int | list[int] | np.ndarray] = None, reset_state_ids=None,
verl/verl/experimental/vla/envs/libero_env/libero_env.py:276
↓ 5 callers
Method
sample_object
(self, n: int = 1)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/bbehboardgameqa/bbehboardgameqa_instruction_generator.py:237
↓ 5 callers
Method
sample_object
(self, n: int = 1)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_boardgame_qa/instruction_generator.py:252
↓ 5 callers
Method
sample_predicate
(self, n: int = 1)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/bbehboardgameqa/bbehboardgameqa_reward_calculator.py:223
↓ 5 callers
Method
sample_predicate
(self, n: int = 1)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/bbehboardgameqa/bbehboardgameqa_interaction.py:223
↓ 5 callers
Method
sample_predicate
(self, n: int = 1)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/bbehboardgameqa/bbehboardgameqa_tools.py:229
↓ 5 callers
Method
save_checkpoint
Save checkpoint using FSDPCheckpointManager with improved tracking
verl/verl/trainer/fsdp_sft_trainer.py:544
↓ 5 callers
Function
serialize_tensordict
(batch: TensorDict)
verl/verl/protocol.py:258
↓ 5 callers
Method
set_dispatch_collect
Set the dispatch and collect dp_ranks for all registered meshes. Args: mesh_name (str): Mesh name to set dispatch and collect dp_
verl/verl/single_controller/base/worker.py:147
↓ 5 callers
Function
slice_input_tensor
(x: Tensor, dim: int, padding: bool = True, group: ProcessGroup = None)
verl/verl/utils/ulysses.py:117
↓ 5 callers
Method
solve
(n, p)
internbootcamp/bootcamps/bootcamps_v1/algorithm/apbinary/Apbinary_tools.py:119
↓ 5 callers
Function
solve_maze
(n, m, original_grid)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/dsolvethemaze/Dsolvethemaze_tools.py:22
↓ 5 callers
Method
stop_profile
Stop profiling on all rollout replicas.
verl/verl/experimental/agent_loop/agent_loop.py:1053
↓ 5 callers
Method
tokenizer
Load a simple tokenizer for testing.
verl/tests/experimental/reward_loop/test_rate_limited_reward_manager_on_cpu.py:161
↓ 5 callers
Method
train_batch
Perform a training step on a batch of data. Args: data: The input data for training, typically containing tensors and me
verl/verl/workers/engine/base.py:112
↓ 5 callers
Function
update_model_config
Update the module config with the override_config_kwargs. Args: module_config: The module config from Huggingface Transformers. ov
verl/verl/utils/model.py:61
↓ 5 callers
Method
update_result_options
(self, offset: int = 0, sort_desc: Optional[bool] = None)
verl/scripts/rollout_viewer.py:268
↓ 5 callers
Method
wait_for_complete
Wait for the broadcast operation to complete. Returns: dict[str, TensorMeta]: The bucket meta after broadcast.
verl/verl/checkpoint_engine/nccl_checkpoint_engine.py:86
↓ 5 callers
Method
wait_for_complete
Block until remote agent read complete.
verl/verl/checkpoint_engine/nixl_checkpoint_engine.py:164
↓ 5 callers
Method
wait_for_complete
Wait for the broadcast operation to complete. Returns: dict[str, TensorMeta]: The bucket meta after broadcast.
verl/verl/checkpoint_engine/hccl_checkpoint_engine.py:85
↓ 4 callers
Method
__init__
(self, config: McoreCriticConfig)
verl/verl/workers/megatron_workers.py:991
↓ 4 callers
Method
__init__
(self, config: FSDPCriticConfig)
verl/verl/workers/fsdp_workers.py:1179
↓ 4 callers
Method
__init__
(self, dim, max_position_embeddings=2048, base=10000, device=None)
verl/verl/models/llama/megatron/layers/parallel_attention.py:39
↓ 4 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:168
↓ 4 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl/verl/models/mcore/saver.py:180
↓ 4 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:168
↓ 4 callers
Method
_build_multimodal_attention
Build multimodal embeddings and attention mask
verl/verl/experimental/vla/models/openvla_oft/modeling_prismatic.py:477
↓ 4 callers
Function
_check_dispatch_mode
(dispatch_mode)
verl/verl/single_controller/base/decorator.py:400
↓ 4 callers
Method
_compute_loss_and_backward
Compute loss with optional sequence parallelism and remove padding features
verl/verl/trainer/fsdp_sft_trainer.py:372
↓ 4 callers
Method
_dump_generations
Dump rollout/validation samples as JSONL.
verl/verl/experimental/transfer_queue/ray_trainer.py:480
↓ 4 callers
Method
_extract_reward_from_rm_scores
Extract reward from already-computed rm_scores if available. This is used when use_reward_loop=True and rewards are already computed
verl/verl/workers/reward_manager/abstract.py:47
↓ 4 callers
Method
_generate_value
(self, exclude=None, exclude_zero=False, sign=None)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/koroperationunicode25cf/korOperationUnicode25cf_instruction_generator.py:166
↓ 4 callers
Method
_generate_value
(self, exclude=None, exclude_zero=False, sign=None)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/koroperationunicode25cf/korOperationUnicode25cf_interaction.py:190
↓ 4 callers
Method
_generate_value
(self, exclude=None, exclude_zero=False, sign=None)
internbootcamp/bootcamps/bootcamps_v1/mathematical_modeling/koroperationunicode25cf/korOperationUnicode25cf_tools.py:209
↓ 4 callers
Function
_get_attention_functions
Dynamically import attention functions based on available hardware.
verl/verl/utils/attention_utils.py:20
↓ 4 callers
Function
_get_cpu_tensor
(tensor: torch.Tensor)
verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:122
↓ 4 callers
Function
_get_cpu_tensor
(tensor: torch.Tensor)
verl/verl/models/mcore/saver.py:134
↓ 4 callers
Function
_get_cpu_tensor
(tensor: torch.Tensor)
verl/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:122
↓ 4 callers
Method
_get_font
(self, size)
internbootcamp/bootcamps/holdem_bootcamp/visual.py:51
↓ 4 callers
Function
_get_gpt_model
(model)
verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:67
↓ 4 callers
Function
_get_gpt_model
(model)
verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:67
↓ 4 callers
Function
_get_gpt_model
(model)
verl/verl/models/mcore/loader.py:68
↓ 4 callers
Function
_get_gpt_model
(model)
verl/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:69
↓ 4 callers
Function
_get_gpt_model
(model)
verl/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:69
↓ 4 callers
Function
_get_patching_model
(model: torch.nn.Module)
verl/verl/models/mcore/mtp_patch.py:35
↓ 4 callers
Function
_is_non_local
(path: str)
verl/verl/utils/hdfs_io.py:148
↓ 4 callers
Function
_iter_opts
(opt)
verl/verl/utils/megatron_utils.py:483
↓ 4 callers
Method
_load_checkpoint
(self)
verl/verl/experimental/transfer_queue/ray_trainer.py:928
↓ 4 callers
Method
_log_validation_data
Log validation data
verl/verl/experimental/fully_async_policy/fully_async_trainer.py:569
← previous
next →
401–500 of 18,522, ranked by callers