MCPcopy Create free account

hub / github.com/InternLM/InternBootcamp / functions

Functions18,522 in github.com/InternLM/InternBootcamp

↓ 4 callersMethod_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 callersMethod_randint
(self, low: int, high: int)
internbootcamp/bootcamps/bbeh_bootcamps/bbeh_geometric_shapes/instruction_generator.py:28
↓ 4 callersMethod_random_string
(self, length)
internbootcamp/bootcamps/bootcamps_v1/algorithm/ctryandcatch/Ctryandcatch_instruction_generator.py:96
↓ 4 callersMethod_remove_redundant_subsets
(self, cover_set)
internbootcamp/bootcamps/NP/set_cover/instruction_generator.py:30
↓ 4 callersMethod_run_all
(self, tasks: list[asyncio.Task])
verl/verl/experimental/reward_loop/reward_model.py:115
↓ 4 callersFunction_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 callersFunction_transform
(data: Dict[str, Any])
internbootcamp/utils/data_postprocess.py:830
↓ 4 callersMethod_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 callersMethod_validate
(self, merged: bool = False)
verl/verl/trainer/ppo/ray_trainer.py:572
↓ 4 callersMethod_verify_correction
(cls, solution, identity)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dstrip/Dstrip_reward_calculator.py:37
↓ 4 callersMethodacquire
Acquire a token from the bucket.
verl/verl/tools/search_tool.py:58
↓ 4 callersMethodadd_filter
添加过滤函数 Args: filter_func: 过滤函数,接收一个字典,返回布尔值 返回 True 表示保留该数据,False 表示过滤掉 name
internbootcamp/utils/data_postprocess.py:54
↓ 4 callersFunctionapply_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 callersFunctionbootstrap_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 callersFunctioncalculate_min_prefix_sums
(arr)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cmaximumsubrectangle/Cmaximumsubrectangle_instruction_generator.py:12
↓ 4 callersFunctioncalculate_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 callersMethodcase_generator
生成一个迷宫谜题 参数: size: 迷宫大小,(行数, 列数) start_pos: 起点位置 end_pos: 终点位置,如果为None则默认为右下角 diffic
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/maze/maze_instruction_generator.py:58
↓ 4 callersMethodcase_generator
(self)
internbootcamp/bootcamps/bootcamps_v1/real_world_problem/bbehobjectcounting/bbehobjectcounting_instruction_generator.py:126
↓ 4 callersMethodcase_generator
(self)
internbootcamp/bootcamps/bootcamps_v1/algorithm/dstrip/Dstrip_instruction_generator.py:53
↓ 4 callersMethodchain
(cls, metric_lists: list["Metric"])
verl/verl/utils/metric/utils.py:135
↓ 4 callersMethodcheck_case
(n, d_list)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cnezzarandsymmetricarray/Cnezzarandsymmetricarray_tools.py:153
↓ 4 callersMethodcheck_storage
(self, method_name, run_forward)
verl/tests/utils/test_linear_cross_entropy.py:322
↓ 4 callersMethodcheck_weights
(self)
verl/tests/checkpoint_engine/test_utils.py:74
↓ 4 callersMethodcleanup
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:199
↓ 4 callersFunctioncompute_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 callersMethodcompute_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 callersFunctioncompute_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 callersFunctioncompute_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 callersFunctioncompute_topk
(scores, topk, num_groups=None, group_topk=None)
verl/verl/utils/megatron/router_replay_patch.py:158
↓ 4 callersMethodcompute_view
(view)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/skyscrapers/skyscrapers_instruction_generator.py:91
↓ 4 callersMethodcompute_view
(view)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/skyscrapers/skyscrapers_tools.py:117
↓ 4 callersFunctioncost_analysis
(thickness, D, B1, bolt_count_edit, L, Density, price)
internbootcamp/bootcamps/flangeplane_bootcamp/utils/cost_cal.py:4
↓ 4 callersMethodcount_visible
(sequence)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/korpuzzleskyscrapers/korPuzzleSkyscrapers_instruction_generator.py:100
↓ 4 callersMethodcount_visible
(sequence)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/korpuzzleskyscrapers/korPuzzleSkyscrapers_tools.py:131
↓ 4 callersFunctioncount_vowels_and_last_vowel
(word)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/cbeautifullyrics/Cbeautifullyrics_reward_calculator.py:13
↓ 4 callersFunctioncreate_sft_dataset
Create a dataset.
verl/verl/trainer/fsdp_sft_trainer.py:851
↓ 4 callersFunctioncreate_trainer_worker_group
( resource_pool: RayResourcePool, model_config: HFModelConfig, checkpoint_engine_config: CheckpointEngineC
verl/tests/checkpoint_engine/test_utils.py:119
↓ 4 callersFunctioncreate_transferqueue_client
( client_id: str, config, sync: bool = False, )
verl/verl/utils/transferqueue_utils.py:53
↓ 4 callersFunctiondefault_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 callersMethoddfs1
(cls, a, b, c, fib_tuple)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cdoegraphs/Cdoegraphs_tools.py:152
↓ 4 callersMethoddfs1
(cls, a, b, c, fib_tuple)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cdoegraphs/Cdoegraphs_interaction.py:133
↓ 4 callersMethoddfs1
(cls, a, b, c, fib_tuple)
internbootcamp/bootcamps/bootcamps_v1/algorithm/cdoegraphs/Cdoegraphs_instruction_generator.py:122
↓ 4 callersFunctiondynamic_get
(r1, r2, k)
internbootcamp/bootcamps/bootcamps_v1/algorithm/enumbertransformation/Enumbertransformation_instruction_generator.py:23
↓ 4 callersFunctiondynamic_get
(r1, r2, k)
internbootcamp/bootcamps/bootcamps_v1/algorithm/enumbertransformation/Enumbertransformation_tools.py:28
↓ 4 callersFunctiondynamic_get
(r1, r2, k)
internbootcamp/bootcamps/bootcamps_v1/algorithm/enumbertransformation/Enumbertransformation_reward_calculator.py:22
↓ 4 callersFunctiondynamic_get
(r1, r2, k)
internbootcamp/bootcamps/bootcamps_v1/algorithm/enumbertransformation/Enumbertransformation_interaction.py:22
↓ 4 callersFunctionenable_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 callersFunctionextract_all_vowels
(word)
internbootcamp/bootcamps/bootcamps_v1/logical_reasoning/cbeautifullyrics/Cbeautifullyrics_reward_calculator.py:23
↓ 4 callersMethodfind
(self, a)
internbootcamp/bootcamps/bootcamps_v1/algorithm/feuclidsnightmare/Feuclidsnightmare_tools.py:31
↓ 4 callersMethodfind
(self, a)
internbootcamp/bootcamps/bootcamps_v1/algorithm/feuclidsnightmare/Feuclidsnightmare_reward_calculator.py:25
↓ 4 callersMethodfind
(self, a)
internbootcamp/bootcamps/bootcamps_v1/algorithm/feuclidsnightmare/Feuclidsnightmare_interaction.py:25
↓ 4 callersMethodforward
( self, hidden_states: torch.FloatTensor, vocab_weights: torch.FloatTensor, in
verl/verl/utils/experimental/torch_functional.py:202
↓ 4 callersMethodfrom_dict
(stat)
internbootcamp/bootcamps/flangeplane_bootcamp/utils/cadlib/curves.py:181
↓ 4 callersFunctionfsdp2_clip_grad_norm_
torch.nn.utils.clip_grad_norm_ cann't run on cpu parameter DTensor
verl/verl/utils/fsdp_utils.py:553
↓ 4 callersMethodgenerate_backward_inputs
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:256
↓ 4 callersFunctiongenerate_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 callersMethodgenerate_forward_inputs
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:242
↓ 4 callersMethodgenerate_hyper
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:207
↓ 4 callersMethodgenerate_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 callersFunctiongenerate_star_battle_grid
生成星战谜题的测试用例网格。 参数: size -- 网格的大小 (假设是正方形网格,size 表示边长) num_regions -- 区域的数量(等于星星数量) 返回: grid -- 生成的网格,每个区域由不同的数字表示,0
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/starbattle/lib/get_grid.py:3
↓ 4 callersFunctionget_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 callersFunctionget_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 callersFunctionget_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 callersFunctionget_hf_model_path
(config)
verl/verl/utils/model.py:455
↓ 4 callersMethodget_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 callersFunctionget_megatron_optimizer
( model, config: OptimizerConfig, )
verl/verl/utils/megatron/optimizer.py:65
↓ 4 callersFunctionget_model_config
(model)
verl/verl/utils/megatron_utils.py:45
↓ 4 callersFunctionget_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 callersFunctionget_predefined_dispatch_fn
(dispatch_mode)
verl/verl/single_controller/base/decorator.py:365
↓ 4 callersMethodget_processor
(self)
verl/verl/workers/config/model.py:206
↓ 4 callersFunctionget_random_string
(length: int)
verl/verl/single_controller/ray/base.py:40
↓ 4 callersFunctionget_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 callersFunctiongroup_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 callersFunctionin_bounds
(r, c)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/arrowmaze/lib/maze_solver.py:75
↓ 4 callersFunctioninit_megatron_optim_config
( optim_config: dict, use_distributed_optimizer: bool = True, fp16: bool = False )
verl/verl/utils/megatron/optimizer.py:24
↓ 4 callersMethodinitialize
(self, **kwargs)
verl/verl/models/mcore/model_initializer.py:141
↓ 4 callersFunctioninitialize_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 callersMethodintersect
(self, other: "ProfilerConfig")
verl/verl/utils/profiler/config.py:141
↓ 4 callersFunctionis_digit
(s)
verl/verl/utils/reward_score/prime_math/grader.py:109
↓ 4 callersMethodis_discrete_mode
(self)
verl/verl/utils/profiler/profile.py:141
↓ 4 callersFunctionis_nvtx_available
()
verl/verl/utils/import_utils.py:55
↓ 4 callersFunctionis_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 callersMethodlaunch_servers
Launch http server in each node.
verl/verl/workers/rollout/replica.py:206
↓ 4 callersFunctionload_megatron_gptmodel_weights
Load weights for mcore GPT model.
verl/verl/utils/model.py:486
↓ 4 callersFunctionload_megatron_optimizer
(optimizers)
verl/verl/utils/megatron_utils.py:602
↓ 4 callersFunctionload_veomni_model_to_gpu
(model)
verl/verl/workers/engine/veomni/utils.py:58
↓ 4 callersMethodmerge
(self, x, y)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_reward_calculator.py:104
↓ 4 callersMethodmerge
(self, x, y)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_interaction.py:104
↓ 4 callersMethodmerge
(self, x, y)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_tools.py:110
↓ 4 callersMethodmerge
(self, x, y)
internbootcamp/bootcamps/bootcamps_v1/algorithm/eteambuilding/Eteambuilding_instruction_generator.py:105
↓ 4 callersFunctionneed_reward_model
Given a role worker mapping, do we need reward model.
verl/verl/trainer/ppo/utils.py:79
↓ 4 callersFunctionnormalize
(answer, pi)
verl/verl/utils/reward_score/prime_math/grader.py:121
↓ 4 callersFunctionnormalize_answer
(s)
verl/verl/utils/reward_score/search_r1_like_qa_em.py:23
↓ 4 callersFunctionoffload_veomni_model_to_cpu
(model, empty_cache: bool = True)
verl/verl/workers/engine/veomni/utils.py:36
↓ 4 callersFunctionon_segment
(p, a, b)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_instruction_generator.py:99
↓ 4 callersFunctionon_segment
(p, a, b)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_interaction.py:98
↓ 4 callersFunctionon_segment
(p, a, b)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_reward_calculator.py:98
↓ 4 callersFunctionon_segment
(p, a, b)
internbootcamp/bootcamps/bootcamps_v1/unknown/epainttree/Epainttree_tools.py:104
↓ 4 callersFunctionparse_python_code
(text_with_code_block: str)
verl/agentic_workflow/utils.py:4
↓ 4 callersFunctionprint_grid
(grid, stars=None)
internbootcamp/bootcamps/bootcamps_v1/graphical_puzzles/starbattle/lib/dfs_solver.py:4
← previousnext →501–600 of 18,522, ranked by callers