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
↓ 4 callers
Method
__init__
(self, config: McoreCriticConfig)
verl/workers/megatron_workers.py:985
↓ 4 callers
Method
__init__
(self, config: FSDPCriticConfig)
verl/workers/fsdp_workers.py:1140
↓ 4 callers
Method
__init__
(self, dim, max_position_embeddings=2048, base=10000, device=None)
verl/models/llama/megatron/layers/parallel_attention.py:39
↓ 4 callers
Method
__init__
(self, config: BaseVotingConfig)
sdgsystem/models/postprocess/majority_voting.py:213
↓ 4 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
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/models/mcore/saver.py:180
↓ 4 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:168
↓ 4 callers
Method
_exact_match_comparison
(self, predicted: str, ground_truth: str, numeric_tolerance: float = 1e-3,
sdgsystem/evaluation/answer_comparison.py:87
↓ 4 callers
Method
_generate
Get processed responses from LLM. Args: prompts: the prompts n: repeated num for each prompt answ
sdgsystem/models/postprocess/base.py:26
↓ 4 callers
Method
_generate_with_images
Get processed responses from VLM with image inputs. Args: prompts: the prompts images: image paths (one per p
sdgsystem/models/postprocess/base.py:49
↓ 4 callers
Function
_get_attention_functions
Dynamically import attention functions based on available hardware.
verl/utils/attention_utils.py:20
↓ 4 callers
Function
_get_cpu_tensor
(tensor: torch.Tensor)
verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:122
↓ 4 callers
Function
_get_cpu_tensor
(tensor: torch.Tensor)
verl/models/mcore/saver.py:134
↓ 4 callers
Function
_get_cpu_tensor
(tensor: torch.Tensor)
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:122
↓ 4 callers
Function
_get_gpt_model
(model)
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:67
↓ 4 callers
Function
_get_gpt_model
(model)
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:67
↓ 4 callers
Function
_get_gpt_model
(model)
verl/models/mcore/loader.py:68
↓ 4 callers
Function
_get_gpt_model
(model)
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:69
↓ 4 callers
Function
_get_gpt_model
(model)
verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:69
↓ 4 callers
Function
_is_non_local
(path: str)
verl/utils/hdfs_io.py:148
↓ 4 callers
Function
_iter_opts
(opt)
verl/utils/megatron_utils.py:477
↓ 4 callers
Method
_run_all
(self, tasks: list[asyncio.Task])
verl/experimental/reward/reward_model.py:112
↓ 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/utils/profiler/performance.py:140
↓ 4 callers
Method
_update_input_ids
Update the input_ids, attention_mask, position_ids, and loss_mask of the request in additive manner.
verl/workers/rollout/schemas.py:299
↓ 4 callers
Function
build_optimizer
Build an optimizer based on the configuration. Dynamically imports and instantiates an optimizer class from the specified module. Args:
verl/workers/config/optimizer.py:123
↓ 4 callers
Function
compute_topk
(scores, topk, num_groups=None, group_topk=None)
verl/utils/megatron/router_replay_patch.py:158
↓ 4 callers
Function
create_rl_dataset
Create a dataset. Arguments: data_paths: List of paths to data files. data_config: The data config. tokenizer (Tokenizer)
verl/trainer/main_ppo.py:371
↓ 4 callers
Method
evaluate
Evaluate, filter, and split samples from dataset. Args: dataset: Dataset, samples with 'input' and 'output' keys (and 'i
sdgsystem/evaluation/evaluator.py:52
↓ 4 callers
Function
extract_multi_modal_inputs
Extract and process multi-modal inputs from a batch. Args: batch_data (list[dict[str, torch.Tensor]]): The batch containing potentia
verl/utils/model.py:697
↓ 4 callers
Function
format_sse
Format data as SSE event string.
sdgsystem/app/core/sse.py:85
↓ 4 callers
Method
forward
( self, hidden_states: torch.FloatTensor, vocab_weights: torch.FloatTensor, in
verl/utils/experimental/torch_functional.py:202
↓ 4 callers
Function
fsdp2_clip_grad_norm_
torch.nn.utils.clip_grad_norm_ cann't run on cpu parameter DTensor
verl/utils/fsdp_utils.py:553
↓ 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/utils/torch_functional.py:535
↓ 4 callers
Function
get_event_loop
()
verl/utils/ray_utils.py:85
↓ 4 callers
Function
get_hf_model_path
(config)
verl/utils/model.py:456
↓ 4 callers
Function
get_model_config
(model)
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/utils/megatron/router_replay_utils.py:45
↓ 4 callers
Function
hf_to_mcore_config
Convert huggingface PretrainedConfig to mcore TransformerConfig. Args: hf_config: The huggingface PretrainedConfig. dtype: The dt
verl/models/mcore/registry.py:183
↓ 4 callers
Method
initialize
(self, **kwargs)
verl/models/mcore/model_initializer.py:141
↓ 4 callers
Function
is_digit
(s)
verl/utils/reward_score/prime_math/grader.py:109
↓ 4 callers
Function
make_batch_generator
Creates a batch generator suitable for Megatron pipeline parallelism, handling virtual pipeline parallelism (VPP). If VPP is used (vpp_s
verl/utils/megatron/pipeline_parallel.py:49
↓ 4 callers
Method
make_iterator
r"""Make an iterator from the DataProto. This is built upon that TensorDict can be used as a normal Pytorch dataset. See https://pytorch.org/t
verl/protocol.py:811
↓ 4 callers
Function
mapping_string_to_attn_backend
(args: dict)
verl/models/mcore/config_converter.py:394
↓ 4 callers
Function
no_padding_2_padding
Convert NestedTensor from no-padding to right padding format. Args: nested_tensor: NestedTensor with no-padding format data:
verl/workers/utils/padding.py:72
↓ 4 callers
Function
normalize_answer
(s)
verl/utils/reward_score/search_r1_like_qa_em.py:23
↓ 4 callers
Function
pad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
verl/utils/torch_functional.py:344
↓ 4 callers
Method
parse_and_validate_samples
Parse raw LLM response strings and validate with majority voting. This is equivalent to Data_Synthesis_RL's precise_check function w
sdgsystem/generation/base.py:27
↓ 4 callers
Function
prepare_dynamic_batch
Prepare a batch for dynamic batching. Args: data (DataProto): The input data. max_token_len (int): The maximum token length
verl/utils/seqlen_balancing.py:356
↓ 4 callers
Function
renderSectionContainer
(title: string, children: React.ReactNode)
sdgsystem/webui/src/pages/training-page/components/training-config.tsx:662
↓ 4 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/workers/engine_workers.py:119
↓ 4 callers
Function
restore_dynamic_batch
Restore a batch from dynamic batching. Args: data (torch.Tensor): The input data. batch_idx_list (List[List[int]]): The list
verl/utils/seqlen_balancing.py:395
↓ 4 callers
Function
rotate_half
Rotates half the hidden dims of the input.
verl/models/qwen2/megatron/layers/parallel_attention.py:124
↓ 4 callers
Function
rotate_half
Rotates half the hidden dims of the input.
verl/models/llama/megatron/layers/parallel_attention.py:152
↓ 4 callers
Method
set_loss_fn
(self, loss_fn)
verl/workers/engine_workers.py:350
↓ 4 callers
Function
set_numa_affinity
()
verl/utils/distributed.py:26
↓ 4 callers
Method
shared_embedding_or_output_weight
(self)
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:622
↓ 4 callers
Method
start_profile
Start profiling for the current rank in the current training step.
verl/workers/fsdp_workers.py:1114
↓ 4 callers
Method
stop_profile
Stop profiling for the current rank in the current training step.
verl/workers/fsdp_workers.py:1119
↓ 4 callers
Method
to
Manual control of load/offload
verl/workers/engine_workers.py:105
↓ 4 callers
Method
update
(self, batch: DataProto)
verl/experimental/dataset/sampler.py:39
↓ 4 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/utils/model.py:62
↓ 4 callers
Method
update_weights
Update the weights of the rollout model. Args: weights: A generator that yields the name of the weight tensor and the tensor itse
verl/workers/rollout/base.py:52
↓ 4 callers
Method
validate
Validate actor configuration with runtime parameters.
verl/workers/config/actor.py:194
↓ 4 callers
Method
validate_config
Validate SFT configuration. Args: config: SFT configuration to validate Returns: Tuple of (is_valid
sdgsystem/trainer/methods/sft.py:13
↓ 4 callers
Method
voting
(self, answers: List[str], usage_counter: ModelUsageCounter = None, **kwargs )
sdgsystem/models/postprocess/majority_voting.py:230
↓ 3 callers
Method
__init__
(self, dim, max_position_embeddings=2048, base=10000, device=None)
verl/models/qwen2/megatron/layers/parallel_attention.py:44
↓ 3 callers
Method
__init__
(self, config: BaseComparisonConfig, llm: Optional[BaseLanguageModel] = None )
sdgsystem/evaluation/answer_comparison.py:21
↓ 3 callers
Method
_bind_worker_method
Binds worker methods to the WorkerGroup based on registered attributes. Args: user_defined_cls (type): The class containing metho
verl/single_controller/base/worker_group.py:185
↓ 3 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:186
↓ 3 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl/models/mcore/loader.py:186
↓ 3 callers
Function
_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:188
↓ 3 callers
Function
_check_dispatch_mode
(dispatch_mode)
verl/single_controller/base/decorator.py:389
↓ 3 callers
Method
_execute_remote_single_worker
Execute a method on a single worker remotely. Args: worker: The worker actor handle method_name: Name of the method t
verl/single_controller/ray/base.py:682
↓ 3 callers
Function
_fetch_tp_shard_tensor
fetch tensor in tp shards
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:126
↓ 3 callers
Function
_fetch_tp_shard_tensor
fetch tensor in tp shards
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:128
↓ 3 callers
Function
_get_attr
(attr_name, default_value=None)
verl/utils/fsdp_utils.py:86
↓ 3 callers
Function
_get_current_mem_info
Get current memory usage. Note that CPU device memory info is always 0. Args: unit (str, optional): The unit of memory measurement.
verl/utils/profiler/performance.py:29
↓ 3 callers
Function
_get_gpt_model
(model)
verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:89
↓ 3 callers
Function
_get_gpt_model
(model)
verl/models/mcore/saver.py:100
↓ 3 callers
Function
_get_gpt_model
(model)
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:89
↓ 3 callers
Method
_init_hf_config_and_tf_config
( self, model_path, tokenizer_or_path, dtype, override_model_config,
verl/workers/megatron_workers.py:106
↓ 3 callers
Method
_init_server_adapter
(self)
verl/workers/rollout/sglang_rollout/sglang_rollout.py:123
↓ 3 callers
Method
_load_model
Load vLLM model on first use (lazy loading). This method is called automatically when the model is first needed. Uses the GP
sdgsystem/models/models.py:422
↓ 3 callers
Method
_parse_batch_response
Parse LLM response to extract list of {'input': ..., 'output': ...}. Args: response: Raw LLM response string Re
sdgsystem/distillation/base.py:58
↓ 3 callers
Function
_read_async_response
(resp: aiohttp.ClientResponse)
verl/workers/rollout/sglang_rollout/http_server_engine.py:89
↓ 3 callers
Function
_read_jsonl
Read samples from a JSONL file. Args: jsonl_path: Path to JSONL file Returns: List of sample dictionaries
sdgsystem/trainer/data_preprocessing.py:11
↓ 3 callers
Function
_save_file
Save a single uploaded file to the target path.
sdgsystem/app/api/sdg.py:32
↓ 3 callers
Function
_save_parquet
Save samples to Parquet file. Args: samples: List of sample dictionaries output_path: Output Parquet file path Returns:
sdgsystem/trainer/data_preprocessing.py:44
↓ 3 callers
Method
_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/models/llama/megatron/layers/parallel_attention.py:53
↓ 3 callers
Function
_slice_response_from_unpad_output
Slice response from unpad model output. Args: tensor: model output tensor of shape [bsz, 1] data: TensorDict with "prompt_ids", "
verl/workers/utils/losses.py:56
↓ 3 callers
Function
_str_is_int
(x: str)
verl/utils/reward_score/prime_math/__init__.py:90
↓ 3 callers
Function
_unwrap_ray_remote
(cls)
verl/single_controller/ray/base.py:868
↓ 3 callers
Function
broadcast_dict_tensor
TODO: optimize this. Technically, we only need one broadcast
verl/utils/torch_functional.py:257
↓ 3 callers
Function
calc_padded_numel
for cuda memory alignment, make sure alignment by 128-bits
verl/utils/memory_buffer.py:55
↓ 3 callers
Method
cancel
Mark job as cancelled.
sdgsystem/app/core/progress.py:58
↓ 3 callers
Function
check_mutually_exclusive
Validate mutually exclusive micro batch size configuration options. Ensures that users don't set both deprecated micro_batch_size and
verl/utils/config.py:117
↓ 3 callers
Function
collect_lora_params
collect lora params or full params if base model is not ready in vllm work with if isinstance(self.module._fsdp_wrapped_module, PeftModel)
verl/utils/fsdp_utils.py:611
↓ 3 callers
Function
compute_reward
Compute reward for a batch of data. Args: data: DataProto object containing the input data. reward_fn: Reward function to com
verl/trainer/ppo/reward.py:200
↓ 3 callers
Function
convert_weight_keys
(state_dict: dict[str, torch.Tensor], model: PreTrainedModel)
verl/utils/model.py:231
↓ 3 callers
Function
create_device_mesh
(world_size, fsdp_size)
verl/workers/fsdp_workers.py:99
← previous
next →
201–300 of 2,774, ranked by callers