Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DataArcTech/DataArc-SynData-Toolkit
/ functions
Functions
2,774 in github.com/DataArcTech/DataArc-SynData-Toolkit
⨍
Functions
2,774
◇
Types & classes
564
↳
Endpoints
80
Method
checkpoint_handler
Determines whether to use the `te_checkpoint` or `tensor_parallel.checkpoint`
verl/models/mcore/qwen2_5_vl/vision_transformer_block.py:58
Method
chunk
(self, chunks: int)
verl/protocol.py:1208
Method
chunk_text
Split text into chunks. Args: text: Text content to chunk Returns: List of chunk dicts with 'conten
sdgsystem/documents/chunk.py:14
Method
cleanup
(self)
verl/model_merger/base_model_merger.py:361
Method
cleanup
Release model and free resources.
sdgsystem/translation/translator.py:29
Method
cleanup
Release model and free GPU memory.
sdgsystem/translation/translator.py:129
Method
cleanup
Release SentenceTransformer model and free GPU memory.
sdgsystem/models/postprocess/majority_voting.py:375
Method
cleanup
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
Method
clear_cache
Clear cached passages to free memory.
sdgsystem/documents/retrieve.py:135
Method
clear_kv_cache
reset kv cache in each rollout server.
verl/workers/rollout/replica.py:217
Method
clear_kv_cache
(self)
verl/workers/rollout/sglang_rollout/async_sglang_server.py:255
Method
clear_kv_cache
(self)
verl/workers/rollout/vllm_rollout/vllm_async_server.py:518
Method
clear_kv_cache
Clear all rollout kv cache, but don`t sleep.
verl/experimental/agent_loop/agent_loop.py:880
Function
clip_by_value
Tensor extenstion to torch.clamp https://github.com/pytorch/pytorch/issues/2793#issuecomment-428784713
verl/utils/torch_functional.py:136
Function
closeModal
()
sdgsystem/webui/src/contexts/generation-core-modal-context.tsx:17
Function
collate_fn
(x: list["DataProtoItem"])
verl/protocol.py:307
Function
collate_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
Function
collect_all_to_all
(worker_group, output)
verl/single_controller/base/decorator.py:138
Function
collect_dp_compute_data_proto
(worker_group, output)
verl/single_controller/base/decorator.py:208
Function
collect_lazy_compute_data_proto
(mesh_name, worker_group, *args, **kwargs)
verl/single_controller/base/decorator.py:302
Method
compare
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
Method
compare
Compare two answers using embedding-based semantic similarity. Algorithm: 1. Encode both answers using BGE embeddings
sdgsystem/evaluation/answer_comparison.py:150
Method
compare
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
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_grad_norm
(model: nn.Module)
verl/utils/torch_functional.py:249
Function
compute_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
Function
compute_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
Function
compute_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
Method
compute_log_prob
(self, data: TensorDict)
verl/workers/engine_workers.py:583
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/workers/actor/megatron_actor.py:181
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/workers/actor/dp_actor.py:336
Function
compute_logits
( self, *args, **kwargs, )
verl/workers/rollout/vllm_rollout/vllm_rollout.py:99
Method
compute_logprobs_fn
(output, data, use_dynamic_bsz=False, indices=None)
verl/workers/actor/megatron_actor.py:210
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
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/trainer/ppo/core_algos.py:907
Method
compute_ref_log_prob
(self, data: DataProto)
verl/workers/megatron_workers.py:821
Method
compute_ref_log_prob
(self, data: TensorDict)
verl/workers/engine_workers.py:578
Function
compute_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
Function
compute_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
Function
compute_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
Method
compute_reward
(self, data: DataProto)
verl/workers/reward_model/megatron/reward_model.py:132
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Method
compute_rm_score
(self, data: DataProto)
verl/workers/megatron_workers.py:1452
Method
compute_rm_score
(self, data: DataProto)
verl/experimental/reward/reward_manager.py:207
Function
compute_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
Function
compute_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
Function
compute_score
(model_output: str, ground_truth: str, timeout_score: float = 0)
verl/utils/reward_score/math_verify.py:23
Function
compute_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
Function
compute_score
(solution_str, ground_truth)
verl/utils/reward_score/math_reward.py:17
Function
compute_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
Function
compute_score
(completion, test_cases, continuous=False)
verl/utils/reward_score/prime_code/__init__.py:21
Function
compute_score
(model_output: str, ground_truth: str)
verl/utils/reward_score/prime_math/__init__.py:389
Method
compute_score_batch
(self, data: DataProto)
verl/experimental/reward/reward_manager.py:78
Function
compute_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
Function
compute_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
Function
compute_transformers_input_shapes
(batches, meta_info)
verl/utils/megatron/pipeline_parallel.py:22
Method
compute_values
(self, data: DataProto)
verl/workers/megatron_workers.py:1211
Method
compute_values
(self, data: DataProto)
verl/workers/engine_workers.py:355
Method
compute_values
Compute values
verl/workers/critic/base.py:33
Method
compute_values
(self, data: DataProto)
verl/workers/critic/megatron_critic.py:89
Method
compute_values
(self, data: DataProto)
verl/workers/critic/dp_critic.py:153
Method
concat
(data: list[ray.ObjectRef])
verl/protocol.py:1204
Method
constructor
(config: AxiosRequestConfig)
sdgsystem/webui/src/utils/request.ts:23
Method
convert_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
Function
convert_megatron_model_to_transformers_model
Convert megatron model to transformers model.
verl/utils/megatron_utils.py:612
Function
convert_nested_value_to_list_recursive
(data_item)
verl/utils/dataset/multiturn_sft_dataset.py:43
Method
convert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl/models/mcore/weight_converter.py:86
Method
convert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl/models/mcore/weight_converter.py:151
Method
convert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl/models/mcore/weight_converter.py:404
Method
convert_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
Method
count_documents
Count total PDF documents across all corpus paths. Returns: Total number of PDF documents
sdgsystem/documents/load.py:53
Method
create
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
Method
create
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/tools/geo3k_tool.py:67
Method
create
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
Method
create
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/tools/sandbox_fusion_tools.py:155
Method
create
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/tools/gsm8k_tool.py:67
Method
create
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
Function
create_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
Function
create_huggingface_critic
Args: model_name: override_config_kwargs: Returns:
verl/utils/model.py:128
Function
create_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
Method
create_job
Create a new training job.
sdgsystem/app/core/job_manager.py:87
Function
create_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
Function
create_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
Function
create_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
Method
create_transferqueue_client
(self, config)
verl/single_controller/base/worker.py:166
Method
create_transferqueue_client
Create a client for data system (TransferQueue).
verl/experimental/agent_loop/agent_loop.py:667
Method
curr_path_dump
(self)
verl/utils/rollout_skip.py:64
← previous
next →
1,901–2,000 of 2,774, ranked by callers