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 callers
Method
_query_dispatch_info
Query the dispatch info for a given mesh name. Args: mesh_name (str): Name of the mesh to query dispatch info for
verl/verl/single_controller/base/worker.py:103
↓ 4 callers
Method
_randint
(self, low: int, high: int)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_geometric_shapes/instruction_generator.py:28
↓ 4 callers
Method
_random_string
(self, length)
internbootcamp/bootcamps/bootcamps_v1/algorithm/ctryandcatch/Ctryandcatch_instruction_generator.py:96
↓ 4 callers
Method
_remove_redundant_subsets
(self, cover_set)
internbootcamp/bootcamps/NP/set_cover/instruction_generator.py:30
↓ 4 callers
Method
_run_all
(self, tasks: list[asyncio.Task])
verl/verl/experimental/reward_loop/reward_model.py:115
↓ 4 callers
Function
_timer
Inner function that handles the core timing logic. Args: name (str): The name/identifier for this timing measurement. timing_raw
verl/verl/utils/profiler/performance.py:140
↓ 4 callers
Function
_transform
(data: Dict[str, Any])
internbootcamp/utils/data_postprocess.py:830
↓ 4 callers
Method
_update_input_ids
Update the input_ids, attention_mask, position_ids, and loss_mask of the request in additive manner.
verl/verl/workers/rollout/schemas.py:299
↓ 4 callers
Method
_validate
(self, merged: bool = False)
verl/verl/trainer/ppo/ray_trainer.py:572
↓ 4 callers
Method
_verify_correction
(cls, solution, identity)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dstrip/Dstrip_reward_calculator.py:37
↓ 4 callers
Method
acquire
Acquire a token from the bucket.
verl/verl/tools/search_tool.py:58
↓ 4 callers
Method
add_filter
添加过滤函数 Args: filter_func: 过滤函数,接收一个字典,返回布尔值 返回 True 表示保留该数据,False 表示过滤掉 name
internbootcamp/utils/data_postprocess.py:54
↓ 4 callers
Function
apply_kl_penalty
Apply KL penalty to the token-level rewards. This function computes the KL divergence between the reference policy and current policy, then a
verl/verl/experimental/transfer_queue/ray_trainer.py:86
↓ 4 callers
Function
bootstrap_metric
Performs bootstrap resampling to estimate statistics of metrics. This function uses bootstrap resampling to estimate the mean and standard d
verl/verl/trainer/ppo/metric_utils.py:420
↓ 4 callers
Function
calculate_min_prefix_sums
(arr)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cmaximumsubrectangle/Cmaximumsubrectangle_instruction_generator.py:12
↓ 4 callers
Function
calculate_workload
Calculate approximate computational workload for transformer attention. Estimates FLOPs for dense transformer blocks based on sequence length usi
verl/verl/utils/seqlen_balancing.py:27
↓ 4 callers
Method
case_generator
生成一个迷宫谜题 参数: size: 迷宫大小,(行数, 列数) start_pos: 起点位置 end_pos: 终点位置,如果为None则默认为右下角 diffic
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/maze/maze_instruction_generator.py:58
↓ 4 callers
Method
case_generator
(self)
internbootcamp/bootcamps/bootcamps_v1/real_world_problem/bbehobjectcounting/bbehobjectcounting_instruction_generator.py:126
↓ 4 callers
Method
case_generator
(self)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dstrip/Dstrip_instruction_generator.py:53
↓ 4 callers
Method
chain
(cls, metric_lists: list["Metric"])
verl/verl/utils/metric/utils.py:135
↓ 4 callers
Method
check_case
(n, d_list)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cnezzarandsymmetricarray/Cnezzarandsymmetricarray_tools.py:153
↓ 4 callers
Method
check_storage
(self, method_name, run_forward)
verl/tests/utils/test_linear_cross_entropy.py:322
↓ 4 callers
Method
check_weights
(self)
verl/tests/checkpoint_engine/test_utils.py:74
↓ 4 callers
Method
cleanup
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:199
↓ 4 callers
Function
compute_advantage
Compute advantage estimates for policy optimization. This function computes advantage estimates using various estimators like GAE, GRPO, REINFORC
verl/verl/experimental/transfer_queue/ray_trainer.py:153
↓ 4 callers
Method
compute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl/verl/experimental/vla/dp_rob.py:175
↓ 4 callers
Function
compute_policy_loss_vanilla
Compute the clipped policy objective and related metrics for PPO. Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/
verl/verl/trainer/ppo/core_algos.py:1160
↓ 4 callers
Function
compute_response_mask
Compute the attention mask for the response part of the sequence. This function extracts the portion of the attention mask that corresponds to th
verl/verl/experimental/vla/rob_ray_trainer.py:51
↓ 4 callers
Function
compute_topk
(scores, topk, num_groups=None, group_topk=None)
verl/verl/utils/megatron/router_replay_patch.py:158
↓ 4 callers
Method
compute_view
(view)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/skyscrapers/skyscrapers_instruction_generator.py:91
↓ 4 callers
Method
compute_view
(view)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/skyscrapers/skyscrapers_tools.py:117
↓ 4 callers
Function
cost_analysis
(thickness, D, B1, bolt_count_edit, L, Density, price)
internbootcamp/bootcamps/flangeplane_bootcamp/utils/cost_cal.py:4
↓ 4 callers
Method
count_visible
(sequence)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/korpuzzleskyscrapers/korPuzzleSkyscrapers_instruction_generator.py:100
↓ 4 callers
Method
count_visible
(sequence)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/korpuzzleskyscrapers/korPuzzleSkyscrapers_tools.py:131
↓ 4 callers
Function
count_vowels_and_last_vowel
(word)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/cbeautifullyrics/Cbeautifullyrics_reward_calculator.py:13
↓ 4 callers
Function
create_sft_dataset
Create a dataset.
verl/verl/trainer/fsdp_sft_trainer.py:851
↓ 4 callers
Function
create_trainer_worker_group
( resource_pool: RayResourcePool, model_config: HFModelConfig, checkpoint_engine_config: CheckpointEngineC
verl/tests/checkpoint_engine/test_utils.py:119
↓ 4 callers
Function
create_transferqueue_client
( client_id: str, config, sync: bool = False, )
verl/verl/utils/transferqueue_utils.py:53
↓ 4 callers
Function
default_compute_score
Compute the score for a given solution based on the data source. Args: data_source (str): The source dataset identifier which determines
verl/verl/utils/reward_score/__init__.py:20
↓ 4 callers
Method
dfs1
(cls, a, b, c, fib_tuple)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cdoegraphs/Cdoegraphs_tools.py:152
↓ 4 callers
Method
dfs1
(cls, a, b, c, fib_tuple)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cdoegraphs/Cdoegraphs_interaction.py:133
↓ 4 callers
Method
dfs1
(cls, a, b, c, fib_tuple)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cdoegraphs/Cdoegraphs_instruction_generator.py:122
↓ 4 callers
Function
dynamic_get
(r1, r2, k)
internbootcamp/bootcamps/bootcamps_v1/algorithm/enumbertransformation/Enumbertransformation_instruction_generator.py:23
↓ 4 callers
Function
dynamic_get
(r1, r2, k)
internbootcamp/bootcamps/bootcamps_v1/algorithm/enumbertransformation/Enumbertransformation_tools.py:28
↓ 4 callers
Function
dynamic_get
(r1, r2, k)
internbootcamp/bootcamps/bootcamps_v1/algorithm/enumbertransformation/Enumbertransformation_reward_calculator.py:22
↓ 4 callers
Function
dynamic_get
(r1, r2, k)
internbootcamp/bootcamps/bootcamps_v1/algorithm/enumbertransformation/Enumbertransformation_interaction.py:22
↓ 4 callers
Function
enable_activation_offloading
Enable activation offloading for the model. It groups activations by TransformerLayer and offloads activation groups asynchronously. This mea
verl/verl/utils/activation_offload.py:500
↓ 4 callers
Function
extract_all_vowels
(word)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/cbeautifullyrics/Cbeautifullyrics_reward_calculator.py:23
↓ 4 callers
Method
find
(self, a)
internbootcamp/bootcamps/bootcamps_v1/algorithm/feuclidsnightmare/Feuclidsnightmare_tools.py:31
↓ 4 callers
Method
find
(self, a)
internbootcamp/bootcamps/bootcamps_v1/algorithm/feuclidsnightmare/Feuclidsnightmare_reward_calculator.py:25
↓ 4 callers
Method
find
(self, a)
internbootcamp/bootcamps/bootcamps_v1/algorithm/feuclidsnightmare/Feuclidsnightmare_interaction.py:25
↓ 4 callers
Method
forward
( self, hidden_states: torch.FloatTensor, vocab_weights: torch.FloatTensor, in
verl/verl/utils/experimental/torch_functional.py:202
↓ 4 callers
Method
from_dict
(stat)
internbootcamp/bootcamps/flangeplane_bootcamp/utils/cadlib/curves.py:181
↓ 4 callers
Function
fsdp2_clip_grad_norm_
torch.nn.utils.clip_grad_norm_ cann't run on cpu parameter DTensor
verl/verl/utils/fsdp_utils.py:553
↓ 4 callers
Method
generate_backward_inputs
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:256
↓ 4 callers
Function
generate_campsite
Generate an n×m Campsite puzzle with at least one valid solution. 1) Randomly place k tents in the grid with no two tents adjacent o
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/campsite/lib/campsite_generator.py:4
↓ 4 callers
Method
generate_forward_inputs
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:242
↓ 4 callers
Method
generate_hyper
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:207
↓ 4 callers
Method
generate_sequences
Split input batch and dispatch to agent loop workers. Args: prompts (BatchMeta): Input batch. Returns: Batch
verl/verl/experimental/transfer_queue/agent_loop.py:24
↓ 4 callers
Function
generate_star_battle_grid
生成星战谜题的测试用例网格。 参数: size -- 网格的大小 (假设是正方形网格,size 表示边长) num_regions -- 区域的数量(等于星星数量) 返回: grid -- 生成的网格,每个区域由不同的数字表示,0
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/starbattle/lib/get_grid.py:3
↓ 4 callers
Function
get_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
verl/verl/utils/torch_functional.py:702
↓ 4 callers
Function
get_dynamic_pipeline_shards
Calculate the pipeline sharding configuration for Megatron-LM. Args: layer_num: Total number of layers in the model. pp_size: Num
verl/verl/model_merger/megatron_model_merger.py:57
↓ 4 callers
Function
get_group_balanced_partitions
Partition samples into k groups while keeping samples with the same uid together. Args: seqlen_list: List of sequence lengths for ea
verl/verl/utils/seqlen_balancing.py:508
↓ 4 callers
Function
get_hf_model_path
(config)
verl/verl/utils/model.py:455
↓ 4 callers
Method
get_inference_model
Get models according to different types of inference_engine Args: rollout: rollout object Returns: mo
verl/verl/experimental/fully_async_policy/base_detach_sync.py:136
↓ 4 callers
Function
get_megatron_optimizer
( model, config: OptimizerConfig, )
verl/verl/utils/megatron/optimizer.py:65
↓ 4 callers
Function
get_model_config
(model)
verl/verl/utils/megatron_utils.py:45
↓ 4 callers
Function
get_num_layers_to_build
Determine the number of transformer layers to build for the current pipeline stage. Args: config (TransformerConfig): Configuration o
verl/verl/utils/megatron/router_replay_utils.py:45
↓ 4 callers
Function
get_predefined_dispatch_fn
(dispatch_mode)
verl/verl/single_controller/base/decorator.py:365
↓ 4 callers
Method
get_processor
(self)
verl/verl/workers/config/model.py:206
↓ 4 callers
Function
get_random_string
(length: int)
verl/verl/single_controller/ray/base.py:40
↓ 4 callers
Function
get_rollout_class
Get the rollout class by name. Args: rollout_name: The name of the rollout. mode: The mode of the rollout, async: server mode.
verl/verl/workers/rollout/base.py:88
↓ 4 callers
Function
group_mean_std
Compute per-group mean/std/count in pure PyTorch. mean_g = sum / count std_g = sqrt( max( (sum2 - sum^2/count) / max(count-1, 1), eps )
verl/verl/utils/groupwise.py:164
↓ 4 callers
Function
in_bounds
(r, c)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/arrowmaze/lib/maze_solver.py:75
↓ 4 callers
Function
init_megatron_optim_config
( optim_config: dict, use_distributed_optimizer: bool = True, fp16: bool = False )
verl/verl/utils/megatron/optimizer.py:24
↓ 4 callers
Method
initialize
(self, **kwargs)
verl/verl/models/mcore/model_initializer.py:141
↓ 4 callers
Function
initialize_tools_from_config
Initialize tools from config file. Supports both NATIVE and MCP tool types. For MCP tools, a temporary event loop is created only when needed
verl/verl/tools/utils/tool_registry.py:82
↓ 4 callers
Method
intersect
(self, other: "ProfilerConfig")
verl/verl/utils/profiler/config.py:141
↓ 4 callers
Function
is_digit
(s)
verl/verl/utils/reward_score/prime_math/grader.py:109
↓ 4 callers
Method
is_discrete_mode
(self)
verl/verl/utils/profiler/profile.py:141
↓ 4 callers
Function
is_nvtx_available
()
verl/verl/utils/import_utils.py:55
↓ 4 callers
Function
is_torch_npu_available
Check if Ascend NPU is available for PyTorch operations. Attempts to detect NPU availability by checking for the torch.npu module and its is_
verl/verl/utils/device.py:18
↓ 4 callers
Method
launch_servers
Launch http server in each node.
verl/verl/workers/rollout/replica.py:206
↓ 4 callers
Function
load_megatron_gptmodel_weights
Load weights for mcore GPT model.
verl/verl/utils/model.py:486
↓ 4 callers
Function
load_megatron_optimizer
(optimizers)
verl/verl/utils/megatron_utils.py:602
↓ 4 callers
Function
load_veomni_model_to_gpu
(model)
verl/verl/workers/engine/veomni/utils.py:58
↓ 4 callers
Method
merge
(self, x, y)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_reward_calculator.py:104
↓ 4 callers
Method
merge
(self, x, y)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_interaction.py:104
↓ 4 callers
Method
merge
(self, x, y)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_tools.py:110
↓ 4 callers
Method
merge
(self, x, y)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_instruction_generator.py:105
↓ 4 callers
Function
need_reward_model
Given a role worker mapping, do we need reward model.
verl/verl/trainer/ppo/utils.py:79
↓ 4 callers
Function
normalize
(answer, pi)
verl/verl/utils/reward_score/prime_math/grader.py:121
↓ 4 callers
Function
normalize_answer
(s)
verl/verl/utils/reward_score/search_r1_like_qa_em.py:23
↓ 4 callers
Function
offload_veomni_model_to_cpu
(model, empty_cache: bool = True)
verl/verl/workers/engine/veomni/utils.py:36
↓ 4 callers
Function
on_segment
(p, a, b)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_instruction_generator.py:99
↓ 4 callers
Function
on_segment
(p, a, b)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_interaction.py:98
↓ 4 callers
Function
on_segment
(p, a, b)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_reward_calculator.py:98
↓ 4 callers
Function
on_segment
(p, a, b)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_tools.py:104
↓ 4 callers
Function
parse_python_code
(text_with_code_block: str)
verl/agentic_workflow/utils.py:4
↓ 4 callers
Function
print_grid
(grid, stars=None)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/starbattle/lib/dfs_solver.py:4
← previous
next →
501–600 of 18,522, ranked by callers