MCPcopy Create free account

hub / github.com/DataArcTech/DataArc-SynData-Toolkit / functions

Functions2,774 in github.com/DataArcTech/DataArc-SynData-Toolkit

Methodcheckpoint_handler
Determines whether to use the `te_checkpoint` or `tensor_parallel.checkpoint`
verl/models/mcore/qwen2_5_vl/vision_transformer_block.py:58
Methodchunk
(self, chunks: int)
verl/protocol.py:1208
Methodchunk_text
Split text into chunks. Args: text: Text content to chunk Returns: List of chunk dicts with 'conten
sdgsystem/documents/chunk.py:14
Methodcleanup
(self)
verl/model_merger/base_model_merger.py:361
Methodcleanup
Release model and free resources.
sdgsystem/translation/translator.py:29
Methodcleanup
Release model and free GPU memory.
sdgsystem/translation/translator.py:129
Methodcleanup
Release SentenceTransformer model and free GPU memory.
sdgsystem/models/postprocess/majority_voting.py:375
Methodcleanup
Release SentenceTransformer model and free GPU memory. Call this method when you're done with semantic comparison to release GPU res
sdgsystem/evaluation/answer_comparison.py:199
Methodclear_cache
Clear cached passages to free memory.
sdgsystem/documents/retrieve.py:135
Methodclear_kv_cache
reset kv cache in each rollout server.
verl/workers/rollout/replica.py:217
Methodclear_kv_cache
(self)
verl/workers/rollout/sglang_rollout/async_sglang_server.py:255
Methodclear_kv_cache
(self)
verl/workers/rollout/vllm_rollout/vllm_async_server.py:518
Methodclear_kv_cache
Clear all rollout kv cache, but don`t sleep.
verl/experimental/agent_loop/agent_loop.py:880
Functionclip_by_value
Tensor extenstion to torch.clamp https://github.com/pytorch/pytorch/issues/2793#issuecomment-428784713
verl/utils/torch_functional.py:136
FunctioncloseModal
()
sdgsystem/webui/src/contexts/generation-core-modal-context.tsx:17
Functioncollate_fn
(x: list["DataProtoItem"])
verl/protocol.py:307
Functioncollate_fn
Collate a batch of sample dicts into batched tensors and arrays. Args: data_list: List of dicts mapping feature names to torch.Tenso
verl/utils/dataset/rl_dataset.py:38
Functioncollect_all_to_all
(worker_group, output)
verl/single_controller/base/decorator.py:138
Functioncollect_dp_compute_data_proto
(worker_group, output)
verl/single_controller/base/decorator.py:208
Functioncollect_lazy_compute_data_proto
(mesh_name, worker_group, *args, **kwargs)
verl/single_controller/base/decorator.py:302
Methodcompare
Compare two answers using exact match or numeric tolerance. Algorithm: 1. Try to parse both as numbers 2. If both ar
sdgsystem/evaluation/answer_comparison.py:118
Methodcompare
Compare two answers using embedding-based semantic similarity. Algorithm: 1. Encode both answers using BGE embeddings
sdgsystem/evaluation/answer_comparison.py:150
Methodcompare
Compare two answers using LLM judge. Algorithm: 1. Present both answers to LLM judge with question context 2. Ask LL
sdgsystem/evaluation/answer_comparison.py:231
Functioncompute_entropy_loss
Compute categorical entropy loss (For backward compatibility) Args: logits (torch.Tensor): shape is (bs, response_length, vocab_size)
verl/trainer/ppo/core_algos.py:1383
Functioncompute_gae_advantage_return
Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py Args: token_level_rewards: `(torch.Tensor)`
verl/trainer/ppo/core_algos.py:213
Functioncompute_gpg_outcome_advantage
Compute advantage for GPG, operating only on Outcome reward (with only one scalar reward for each response). Args: token_level_re
verl/trainer/ppo/core_algos.py:656
Functioncompute_grad_norm
(model: nn.Module)
verl/utils/torch_functional.py:249
Functioncompute_grpo_outcome_advantage
Compute advantage for GRPO, operating only on Outcome reward (with only one scalar reward for each response). Args: token_level_
verl/trainer/ppo/core_algos.py:265
Functioncompute_grpo_passk_outcome_advantage
Compute advantage for Pass@k using a GRPO-style outcome reward formulation. Only the best response per group gets a non-zero advantage: r_max
verl/trainer/ppo/core_algos.py:359
Functioncompute_grpo_vectorized_outcome_advantage
Vectorized GRPO(outcome-only): For each group g: a_i = \\frac{r_i - \\mu_g}{\\sigma_g} (or without dividing by \\sigma_g), then
verl/trainer/ppo/core_algos.py:332
Methodcompute_log_prob
(self, data: TensorDict)
verl/workers/engine_workers.py:583
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl/workers/actor/megatron_actor.py:181
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl/workers/actor/dp_actor.py:336
Functioncompute_logits
( self, *args, **kwargs, )
verl/workers/rollout/vllm_rollout/vllm_rollout.py:99
Methodcompute_logprobs_fn
(output, data, use_dynamic_bsz=False, indices=None)
verl/workers/actor/megatron_actor.py:210
Functioncompute_opo_outcome_advantage
Compute advantage for OPO based on https://arxiv.org/pdf/2505.23585 Args: token_level_rewards: `(torch.Tensor)` shape: (
verl/trainer/ppo/core_algos.py:527
Functioncompute_pf_ppo_reweight_data
Reweight the data based on the token_level_scores. Args: data: DataProto object, containing batch, non_tensor_batch and meta_info
verl/trainer/ppo/core_algos.py:1506
Functioncompute_policy_loss
Compute the clipped policy objective and related metrics for PPO. Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/
verl/trainer/ppo/core_algos.py:831
Functioncompute_policy_loss_clip_cov
Compute the clipped policy objective and related metrics for Clip-Cov. Adapted from https://github.com/PRIME-RL/Entropy-Mechanism-of-RL/
verl/trainer/ppo/core_algos.py:1113
Functioncompute_policy_loss_geo_mean
Compute the clipped policy objective and related metrics for GMPO. Adapted from paper https://arxiv.org/abs/2507.20673 https://github.co
verl/trainer/ppo/core_algos.py:1298
Functioncompute_policy_loss_gpg
Adapted from https://github.com/AMAP-ML/GPG/blob/main/VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py#L495 Ar
verl/trainer/ppo/core_algos.py:1077
Functioncompute_policy_loss_gspo
Compute the clipped policy objective and related metrics for GSPO. See https://arxiv.org/pdf/2507.18071 for more details. Args:
verl/trainer/ppo/core_algos.py:1001
Functioncompute_policy_loss_kl_cov
Compute the clipped policy objective and related metrics for Clip-Cov. Adapted from https://github.com/PRIME-RL/Entropy-Mechanism-of-RL/
verl/trainer/ppo/core_algos.py:1218
Functioncompute_policy_loss_rollout_correction_wrapper
Wrapper for compute_policy_loss_with_rollout_correction to match PolicyLossFn interface. This function is used when algorithm.rollout_correction.
verl/trainer/ppo/core_algos.py:1727
Functioncompute_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/trainer/ppo/core_algos.py:907
Methodcompute_ref_log_prob
(self, data: DataProto)
verl/workers/megatron_workers.py:821
Methodcompute_ref_log_prob
(self, data: TensorDict)
verl/workers/engine_workers.py:578
Functioncompute_reinforce_plus_plus_baseline_outcome_advantage
Compute advantage for RF++-baseline (https://arxiv.org/abs/2501.03262), operating only on Outcome reward (with only one scalar reward for eac
verl/trainer/ppo/core_algos.py:423
Functioncompute_reinforce_plus_plus_outcome_advantage
Compute advantage for REINFORCE++. This implementation is based on the paper: https://arxiv.org/abs/2501.03262 Args: token_level
verl/trainer/ppo/core_algos.py:581
Functioncompute_remax_outcome_advantage
Compute advantage for ReMax, operating only on Outcome reward This implementation is based on the paper: https://arxiv.org/abs/2310.10505
verl/trainer/ppo/core_algos.py:620
Methodcompute_reward
(self, data: DataProto)
verl/workers/reward_model/megatron/reward_model.py:132
Functioncompute_reward_async
Load the reward manager and compute the reward for a batch of data. This is meant to be run in a separate Ray worker.
verl/trainer/ppo/reward.py:222
Functioncompute_rewards
Compute token-level rewards with KL penalty. Args: token_level_scores (torch.Tensor): Token-level reward scores. old_log_prob (to
verl/trainer/ppo/core_algos.py:756
Functioncompute_rloo_outcome_advantage
Compute advantage for RLOO based on https://arxiv.org/abs/2402.14740 Args: token_level_rewards: `(torch.Tensor)` shape:
verl/trainer/ppo/core_algos.py:475
Functioncompute_rloo_vectorized_outcome_advantage
Compute advantage for RLOO based on https://arxiv.org/abs/2402.14740 Args: token_level_rewards: `(torch.Tensor)` shape:
verl/trainer/ppo/core_algos.py:719
Methodcompute_rm_score
(self, data: DataProto)
verl/workers/megatron_workers.py:1452
Methodcompute_rm_score
(self, data: DataProto)
verl/experimental/reward/reward_manager.py:207
Functioncompute_score
The scoring function for GSM8k. Reference: Trung, Luong, et al. "Reft: Reasoning with reinforced fine-tuning." Proceedings of the 62nd Annual
verl/utils/reward_score/gsm8k.py:52
Functioncompute_score
The scoring function for exact match (EM). Args: solution_str: the solution text ground_truth: the ground truth method: t
verl/utils/reward_score/search_r1_like_qa_em.py:96
Functioncompute_score
(model_output: str, ground_truth: str, timeout_score: float = 0)
verl/utils/reward_score/math_verify.py:23
Functioncompute_score
Compute the reward score for a solution. Args: solution_str: The solution string ground_truth: The ground truth answer st
verl/utils/reward_score/math_dapo.py:242
Functioncompute_score
(solution_str, ground_truth)
verl/utils/reward_score/math_reward.py:17
Functioncompute_score
Computes the code score using the remote sandbox API. Args: sandbox_fusion_url: The URL of the sandbox_fusion service, eg: "https://
verl/utils/reward_score/sandbox_fusion/__init__.py:28
Functioncompute_score
(completion, test_cases, continuous=False)
verl/utils/reward_score/prime_code/__init__.py:21
Functioncompute_score
(model_output: str, ground_truth: str)
verl/utils/reward_score/prime_math/__init__.py:389
Methodcompute_score_batch
(self, data: DataProto)
verl/experimental/reward/reward_manager.py:78
Functioncompute_score_batched
This is a demonstration of how the batched reward function should look like. Typically, you want to use batched reward to speed up the proces
verl/utils/reward_score/math_batch.py:18
Functioncompute_score_subem
The scoring function for substring exact match (EM). Args: solution_str: the solution text ground_truth: the ground truth
verl/utils/reward_score/search_r1_like_qa_em.py:131
Functioncompute_transformers_input_shapes
(batches, meta_info)
verl/utils/megatron/pipeline_parallel.py:22
Methodcompute_values
(self, data: DataProto)
verl/workers/megatron_workers.py:1211
Methodcompute_values
(self, data: DataProto)
verl/workers/engine_workers.py:355
Methodcompute_values
Compute values
verl/workers/critic/base.py:33
Methodcompute_values
(self, data: DataProto)
verl/workers/critic/megatron_critic.py:89
Methodcompute_values
(self, data: DataProto)
verl/workers/critic/dp_critic.py:153
Methodconcat
(data: list[ray.ObjectRef])
verl/protocol.py:1204
Methodconstructor
(config: AxiosRequestConfig)
sdgsystem/webui/src/utils/request.ts:23
Methodconvert_ids_to_tokens
Converts a single index or a sequence of indices in a token or a sequence of tokens, using the vocabulary and added tokens.
verl/workers/rollout/tokenizer.py:119
Functionconvert_megatron_model_to_transformers_model
Convert megatron model to transformers model.
verl/utils/megatron_utils.py:612
Functionconvert_nested_value_to_list_recursive
(data_item)
verl/utils/dataset/multiturn_sft_dataset.py:43
Methodconvert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl/models/mcore/weight_converter.py:86
Methodconvert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl/models/mcore/weight_converter.py:151
Methodconvert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl/models/mcore/weight_converter.py:404
Methodconvert_tokens_to_string
Converts a sequence of tokens in a single string. The most simple way to do it is `" ".join(tokens)` but we often want to remove sub-
verl/workers/rollout/tokenizer.py:148
Methodcount_documents
Count total PDF documents across all corpus paths. Returns: Total number of PDF documents
sdgsystem/documents/load.py:53
Methodcreate
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of the tool
verl/tools/mcp_base_tool.py:46
Methodcreate
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/tools/geo3k_tool.py:67
Methodcreate
Creates a new instance for image zoom-in tool. This method initializes a new session for an image, which can then be used fo
verl/tools/image_zoom_in_tool.py:302
Methodcreate
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/tools/sandbox_fusion_tools.py:155
Methodcreate
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/tools/gsm8k_tool.py:67
Methodcreate
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of the tool
verl/tools/search_tool.py:188
Functioncreate_colocated_worker_cls_fused
This function returns a RayClassWithInitArgs instance of FusedWorker, which is an replacement of `create_colocated_worker_cls`. WorkerGroup c
verl/single_controller/ray/base.py:1007
Functioncreate_huggingface_critic
Args: model_name: override_config_kwargs: Returns:
verl/utils/model.py:128
Functioncreate_job
Create a new job with config and optional file uploads. Args: config: JSON string containing the job configuration documents: Opt
sdgsystem/app/api/sdg.py:83
Methodcreate_job
Create a new training job.
sdgsystem/app/core/job_manager.py:87
Functioncreate_nccl_communicator_in_ray
( rank: int, world_size: int, group_name: str, max_retries: int = 100, interval_s: int = 5 )
verl/utils/rendezvous/ray_backend.py:45
Functioncreate_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/utils/model.py:184
Functioncreate_train_job
Create a new training job with config and dataset uploads. Args: config: JSON string containing the training configuration train_
sdgsystem/app/api/train.py:103
Methodcreate_transferqueue_client
(self, config)
verl/single_controller/base/worker.py:166
Methodcreate_transferqueue_client
Create a client for data system (TransferQueue).
verl/experimental/agent_loop/agent_loop.py:667
Methodcurr_path_dump
(self)
verl/utils/rollout_skip.py:64
← previousnext →1,901–2,000 of 2,774, ranked by callers