Arguments API Reference#
Training arguments use nested dataclasses defined in veomni.arguments.arguments_types.
The root config VeOmniArguments assembles three top-level groups — model, data, and train —
each of which contains further nested sub-configs.
Example YAML structure:
train:
wandb:
enable: true
project: VeOmni
accelerator:
fsdp_config:
fsdp_mode: fsdp2
init_device: meta
checkpoint:
manager: dcp
Configuration#
Top-level configuration that assembles all argument groups.
VeOmniArguments— Root config:model+data+trainVeOmniVLMArguments— VLM extension ofVeOmniArgumentsVeOmniDiTArguments— diffusion-transformer extension ofVeOmniArguments
Model#
Model architecture, paths, and multimodal encoder / decoder setup.
ModelArguments—model.*OpsImplementationConfig—model.ops_implementation.*
VLM Extensions#
VLMMModelArguments— extendsModelArgumentswith encoder data-balancing options
DiT Extensions#
DiTModelArguments— extendsModelArgumentswith condition-model settings
Data#
Dataset paths, tokenization, and batching configuration.
DataArguments—data.*DataloaderConfig—data.dataloader.*
VLM Extensions#
VLMMDataArguments— extendsDataArgumentswith multimodal configs (mm_configs)
DiT Extensions#
DiTDataArguments— extendsDataArgumentswith diffusion input and offline-embedding settings
Training#
Training loop, optimizer, parallelism, checkpointing, profiling, and logging.
TrainingArguments—train.*OptimizerConfig—train.optimizer.*WandbConfig—train.wandb.*ProfileConfig—train.profile.*ChannelLossConfig—train.channel_loss.*GradientCheckpointingConfig—train.gradient_checkpointing.*TorchCompileConfig—train.torch_compile.*ChunkMBSConfig—train.chunk_mbs_config.*AcceleratorConfig—train.accelerator.*FSDPConfig—train.accelerator.fsdp_config.*MixedPrecisionConfig—train.accelerator.fsdp_config.mixed_precision
OffloadConfig—train.accelerator.offload_config.*
CheckpointConfig—train.checkpoint.*
VLM Extensions#
VLMTrainingArguments— extendsTrainingArgumentswith ViT / audio freeze & learning-rate options
DiT Extensions#
DiTTrainingArguments— extendsTrainingArgumentswith the diffusion training workflow
DPO#
DPO-specific hyperparameters, accessed via dpo_config.*.
Root config: VeOmniDPOArguments (extends VeOmniArguments).
DPOConfig—dpo_config.*
Inference#
Standalone inference configuration.
InferArguments
Detailed Reference#
VeOmniArguments#
Root config — assembles model, data, and train.
Field |
Type |
Default |
Description |
|---|---|---|---|
model |
|
— |
Model configuration |
data |
|
— |
Data configuration |
train |
|
— |
Training configuration |
ModelArguments#
model.* — Model architecture, paths, and multimodal encoder / decoder setup.
Field |
Type |
Default |
Description |
|---|---|---|---|
config_path |
|
|
Path to the model HuggingFace config (e.g. |
model_path |
|
|
Path to the pre-trained model weights. If unset, random init is used. |
model_config |
|
|
Values used to override the loaded foundation-model config. |
tokenizer_path |
|
|
Path to the tokenizer. Defaults to |
safetensor_idx_path |
|
|
Path to |
foundation |
|
|
Foundation model extra config. |
encoders |
|
|
Multimodal encoder configs keyed by modality ( |
decoders |
|
|
Multimodal decoder configs keyed by modality ( |
input_encoder |
|
|
Whether to use the encoder or decoder to encode input images. |
output_encoder |
|
|
Whether to use the encoder or decoder to encode output images. |
encode_target |
|
|
Whether to encode training targets with decoder (diffusion only). |
basic_modules |
|
|
Additional modules beyond |
lora_config |
|
|
Native VeOmni LoRA configuration. See the LoRA feature guide. |
ops_implementation |
|
— |
Attention / MoE kernel configuration. |
OpsImplementationConfig#
model.ops_implementation.* — Attention, MoE, and fused kernel implementation.
Each *_implementation field selects the kernel backend for that operation.
The type is str (not Literal) so third-party backends can be registered
without modifying the config class.
Defaults are GPU-optimal (Liger / Triton / fused_triton). On Ascend NPU, values that are still equal to the dataclass defaults automatically resolve as follows:
GPU default field |
NPU fallback |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Explicit non-default overrides are not rewritten; unsupported NPU values raise
during validation. Qwen3.5’s model-specific GatedDeltaNet fields are not in
this global fallback table and must be set to npu explicitly on NPU.
NPU validation runs at two times:
Config-parse time (
OpsImplementationConfig.__post_init__) for the seven general-purpose ops (moe,cross_entropy_loss,rms_norm,swiglu_mlp,rotary_pos_emb,rotary_pos_emb_vision,load_balancing_loss). Errors fire immediately with a model-agnostic allow-list.OpSlot-bind time (
KERNEL_REGISTRY.resolvevia the kernel’sHardwareRequirement) for Qwen3.5-only ops (rms_norm_gated,causal_conv1d,chunk_gated_delta_rule). Validating these at config parse would force every NPU user to override them even when training non-Qwen3.5 models, so the check fires only when Qwen3.5’s patched modeling is actually loaded. Qwen3.5 on NPU should select the"npu"backend for these three operations.
Field |
Type |
Default |
Description |
|---|---|---|---|
attn_implementation |
|
|
Attention implementation. Supported public values include |
moe_implementation |
|
|
MoE experts forward implementation. |
cross_entropy_loss_implementation |
|
|
Cross-entropy loss. |
rms_norm_implementation |
|
|
RMSNorm. Known values: |
swiglu_mlp_implementation |
|
|
SwiGLU MLP. Known values: |
rotary_pos_emb_implementation |
|
|
Rotary pos emb. Known values: |
rotary_pos_emb_vision_implementation |
|
|
Vision rotary positional embedding. Known values: |
load_balancing_loss_implementation |
|
|
MoE load-balancing loss. |
rms_norm_gated_implementation |
|
|
Gated RMSNorm (Qwen3.5 GatedDeltaNet |
causal_conv1d_implementation |
|
|
Varlen depthwise causal conv1d (Qwen3.5 GatedDeltaNet pre-mixer). Known values: |
chunk_gated_delta_rule_implementation |
|
|
Chunk gated delta-rule kernel for Qwen3.5 linear attention. Known values: |
dsa_indexer_implementation |
|
|
DeepSeek sparse-attention top-k indexer implementation. |
dsa_attention_implementation |
|
|
DeepSeek sparse-attention implementation. |
mhc_implementation |
|
|
DeepSeek V4 manifold-constrained Hyper-Connection implementation. |
DataArguments#
data.* — Dataset paths, tokenization, and batching.
Field |
Type |
Default |
Description |
|---|---|---|---|
train_path |
|
Required |
Path of the training dataset. Use comma to separate multiple datasets. |
eval_path |
|
|
Path of the evaluation dataset. |
train_size |
|
|
Number of tokens for training (used to compute steps under dynamic batch). |
train_sample |
|
|
Number of samples for training (used to compute steps under non-dynamic batch). |
data_type |
|
|
Type of the training data. |
datasets_type |
|
|
|
multisource_datasets_type |
|
|
Dataset type for multisource training. |
source_name |
|
|
Dataset name. Loaded from multisource YAML if multisource is enabled. |
dyn_bsz_buffer_size |
|
|
Buffer size for dynamic batch size. |
text_keys |
|
|
Key to retrieve text from data. Auto-resolved: |
chat_template |
|
|
Chat template name. |
max_seq_len |
|
|
Maximum sequence length. |
silent_exception |
|
|
Whether to ignore exceptions when loading data. |
dataloader |
|
— |
DataLoader construction parameters. |
DataloaderConfig#
data.dataloader.* — DataLoader construction parameters.
Field |
Type |
Default |
Description |
|---|---|---|---|
type |
|
|
Type of the dataloader. |
num_workers |
|
|
Number of workers for data loading. |
prefetch_factor |
|
|
Number of batches loaded in advance per worker. |
drop_last |
|
|
Whether to drop the last incomplete batch. |
pin_memory |
|
|
Whether to pin memory for the dataloader. |
worker_num_threads |
|
|
Number of PyTorch threads used by each DataLoader worker. |
use_background_prefetcher |
|
|
Enable background prefetching around the DataLoader. |
TrainingArguments#
train.* — Top-level training configuration.
Field |
Type |
Default |
Description |
|---|
| dyn_bsz | bool | True | Enable dynamic batch size for padding-free training. |
| dyn_bsz_runtime | Literal["main", "worker"] | "main" | Where dynamic batching runs. "main" keeps the legacy main-process batching path; "worker" batches inside DataLoader workers to support exact StatefulDataLoader resume. |
| dyn_bsz_count_mode | Literal["total", "effective"] | "total" | How dynamic batching counts tokens. "total" uses attention_mask.sum() (legacy behavior); "effective" counts only labels != IGNORE_INDEX for balancing while still applying a physical-token cap. |
| dyn_bsz_physical_overflow_ratio | float | 1.5 | Physical-token cap multiplier used with dyn_bsz_count_mode="effective": ceil(micro_batch_size * max_seq_len * ratio). Values above 1.0 allow controlled physical overflow so effective-token batching does not degenerate into total-token batching. |
| micro_batch_size | int | 1 | Number of samples per iteration on each device. |
| global_batch_size | Optional[int] | None | Global batch size. If None, uses micro_batch_size × dp_size. |
| num_train_epochs | int | 1 | Number of training epochs. |
| pad_to_length | bool | False | Pad packed sequences to a fixed length (requires dyn_bsz). |
| bsz_warmup_ratio | float | 0 | Ratio of batch size warmup steps. |
| bsz_warmup_init_mbtoken | int | 200 | Initial number of tokens in a batch during warmup. |
| init_device | Literal["cpu", "cuda", "meta", "npu"] | "meta" | Device for model weight initialization. "meta" is required for FSDP2. |
| broadcast_model_weights_from_rank0 | bool | True | Only rank 0 reads weights from disk; other ranks receive via broadcast. |
| ep_sharded_stream_load | bool | False | Opt-in fast/low-memory MoE loader: each rank reads only its ExtraParallel dim-0 slice from the checkpoint. Requires broadcast_model_weights_from_rank0=False and a model with an ExtraParallel parallel_plan. |
| enable_full_determinism | bool | False | Enable full determinism (bitwise alignment). |
| enable_batch_invariant_mode | bool | False | Enable batch invariant mode. |
| empty_cache_steps | int | 500 | Steps between device-cache cleanup calls. A non-positive value disables scheduled cleanup. |
| gc_steps | int | 500 | When positive, disable automatic Python GC and run gc.collect() every N steps. A non-positive value leaves automatic GC enabled and disables scheduled collection. |
| eval_steps | int | 0 | Steps between evaluations. 0 to disable. |
| eval_epochs | int | 1 | Epochs between evaluations. 0 to disable. |
| seed | int | 42 | Random seed. |
| max_steps | Optional[int] | None | Max training steps per epoch (debug only). |
| moe_load_balance_monitor_interval | int | 0 | Log a globally reduced MoE expert-load heatmap every N steps. 0 disables monitoring. |
| optimizer | OptimizerConfig | — | Optimizer and learning-rate schedule. |
| wandb | WandbConfig | — | Weights & Biases logging. |
| profile | ProfileConfig | — | Torch profiler settings. |
| channel_loss | ChannelLossConfig | — | Detached per-channel causal-LM loss logging. |
| gradient_checkpointing | GradientCheckpointingConfig | — | Gradient checkpointing settings. |
| torch_compile | TorchCompileConfig | — | Per-block torch.compile settings. |
| chunk_mbs_config | ChunkMBSConfig | — | Packed-sequence layer micro-batching settings. |
| accelerator | AcceleratorConfig | — | Parallelism and distributed-training topology. |
| checkpoint | CheckpointConfig | — | Checkpoint saving and loading. |
TorchCompileConfig#
train.torch_compile.* — Per-block torch.compile options for text training. This path currently supports text trainers only and requires train.dyn_bsz=True plus train.pad_to_length=True, so packed inputs have stable shapes. The default mode=None follows TorchTitan’s main path by using the inductor backend without CUDA Graph replay. Setting mode="reduce-overhead" explicitly enables CUDA Graphs on the inductor backend and requires train.accelerator.fsdp_config.reshard_after_forward=False. When CUDA Graphs are enabled, each micro-batch calls torch.compiler.cudagraph_mark_step_begin() when available so CUDA Graph Trees can separate iterations.
Field |
Type |
Default |
Description |
|---|---|---|---|
enable |
|
|
Enable per-block |
backend |
|
|
Backend passed to |
mode |
|
|
Mode passed to |
fullgraph |
|
|
Whether to pass |
dynamic |
|
|
Whether to pass |
OptimizerConfig#
train.optimizer.* — Optimizer and learning-rate schedule.
Field |
Type |
Default |
Description |
|---|---|---|---|
type |
|
|
Optimizer type. |
lr |
|
|
Maximum / default learning rate. |
lr_min |
|
|
Minimum learning rate. |
lr_start |
|
|
Starting learning rate for warmup. |
lr_warmup_ratio |
|
|
Ratio of learning rate warmup steps. |
lr_decay_style |
|
|
Learning rate scheduler ( |
lr_decay_ratio |
|
|
Ratio of learning rate decay steps. |
weight_decay |
|
|
L2 regularization strength. |
no_decay_modules |
|
|
Modules excluded from weight decay (e.g. |
no_decay_params |
|
|
Parameters excluded from weight decay (e.g. |
max_grad_norm |
|
|
Gradient clipping norm. |
muon_lr |
|
|
Learning rate for Muon-managed 2-D/3-D weights. Unset: inherits |
muon_momentum |
|
|
Momentum factor for Muon. |
muon_nesterov |
|
|
Enable Nesterov momentum for Muon. |
muon_weight_decay |
|
|
Decoupled weight decay for Muon parameter groups. |
muon_ns_steps |
|
|
Number of Newton–Schulz iterations. |
muon_ns_coefficients |
|
|
Quintic Newton–Schulz polynomial coefficients. |
muon_eps |
|
|
Numerical-stability epsilon used in spectral-norm normalization. |
muon_adjust_lr_fn |
|
|
Per-matrix learning-rate adjustment strategy. |
muon_head_group_size |
|
|
Attention heads per Newton–Schulz block (“Muon Split”). |
muon_head_split_modules |
|
|
Leaf module names to head-split, e.g. |
muon_expert_zero_comm |
|
|
Use whole-expert |
muon_ns_implementation |
|
|
Newton–Schulz backend: standard, pure-PyTorch Gram-NS, or Gram-NS with quack kernels (default; falls back to |
muon_gram_ns_reset_iterations |
|
|
Restart indices for Gram Newton–Schulz (ignored by |
WandbConfig#
train.wandb.* — Weights & Biases logging.
Field |
Type |
Default |
Description |
|---|---|---|---|
enable |
|
|
Enable W&B logging. |
project |
|
|
W&B project name. |
name |
|
|
W&B experiment name. |
id |
|
|
W&B run ID for resuming a previous run. |
ProfileConfig#
train.profile.* — Torch profiler settings.
Field |
Type |
Default |
Description |
|---|---|---|---|
enable |
|
|
Enable profiling. |
start_step |
|
|
Start step for profiling. |
end_step |
|
|
End step for profiling. |
trace_dir |
|
|
Directory to save profiling traces. |
record_shapes |
|
|
Record input tensor shapes. |
profile_memory |
|
|
Record memory usage. |
with_stack |
|
|
Record stack traces. |
with_modules |
|
|
Record module hierarchy in profiler traces. |
rank0_only |
|
|
Profile rank 0 only. |
ChannelLossConfig#
train.channel_loss.* — Detached per-channel causal-LM loss logging.
This is an observability-only side channel. It computes detached per-token CE
from the model loss inputs, aggregates by packed-sequence source metadata, and
adds metrics such as channel_loss/<source-id>__<source> to the normal step metrics. It does
not change the returned training loss or gradients. Fused-loss backends may
recompute the LM-head projection on sampled steps, so the default interval is
10 steps; set interval=1 for per-step metrics. DiT trainers and
data.data_type="classification" are not supported because they do not optimize
a causal-LM objective. SeedOmni’s Qwen3MoeFoundationModel is also unsupported
because its legacy forward bypasses the observable loss dispatch. BaseRLTrainer
is unsupported because it packs source alignment metadata after the common step
lifecycle. In DPO training, only the policy-model forward is observed; the
reference-model forward is excluded, and the chosen/rejected segments both use
their preference pair’s source metadata. If distinct source names sanitize to
the same metric key, the stable source-ID prefix keeps their time series
distinct from the first emission.
Field |
Type |
Default |
Description |
|---|---|---|---|
enable |
|
|
Enable channel loss logging. |
interval |
|
|
Compute and log channel loss every N optimizer steps. |
source_id_keys |
|
|
Batch metadata keys to read as channel/source IDs. |
source_name_keys |
|
|
Batch metadata keys to read as display names. |
extra_strip_keys |
|
|
Extra metadata keys removed before model forward. |
loss_metric_prefix |
|
|
Prefix for average CE metrics. |
weighted_loss_metric_prefix |
|
|
Prefix for loss-sum divided by all logged step tokens. |
token_count_metric_prefix |
|
|
Prefix for supervised token-count metrics. |
log_weighted_loss |
|
|
Log weighted loss metrics. |
log_token_count |
|
|
Log token-count metrics. |
strict |
|
|
Raise when source metadata is missing or cannot be aligned with packed segments; otherwise skip invalid batches. |
GradientCheckpointingConfig#
train.gradient_checkpointing.* — Activation recomputation settings.
Field |
Type |
Default |
Description |
|---|---|---|---|
enable |
|
|
Enable gradient checkpointing. |
debug |
|
|
Enable checkpoint debugging. |
enable_reentrant |
|
|
Use reentrant gradient checkpointing. |
early_stop |
|
|
Stop non-reentrant checkpoint recomputation as soon as all needed tensors are computed. PyTorch ignores this option when |
ChunkMBSConfig#
train.chunk_mbs_config.* — Packed-sequence layer micro-batching settings.
chunk_mbs is the number of packed samples per layer chunk. With dynamic batching, the runtime sample
count is inferred from cu_seq_lens_q, so it is independent of train.micro_batch_size. Chunks are cut
only on packed sample boundaries. The current implementation supports trainer-based SFT with packed-sequence
FlashAttention kwargs using torch.int32 cumulative lengths, identical query/key metadata, exactly one
*DecoderLayer class and one matching decoder stack, decoder layers derived from Transformers’
GradientCheckpointingLayer, and decoder states with shape [1, sequence, hidden]. Gradient checkpointing may be
enabled or disabled; when enabled, it must use the non-reentrant implementation. CPU model-level numerical coverage
currently includes Qwen3-VL and dense Qwen3.5; accelerator-specific kernels require separate hardware validation. Sequence parallelism,
tensor parallelism, pipeline parallelism, ExtraParallel/MoE, DiT trainers, RL trainers, DPO, the custom Omni training loop,
pad_to_length, and torch.compile are not supported. Chunk boundaries must also align with linear-attention
cumulative sequence boundaries when that metadata is present. Models with ambiguous decoder classes or stacks fail
validation instead of applying ChunkMBS to multiple stacks.
Field |
Type |
Default |
Description |
|---|---|---|---|
enable |
|
|
Enable ChunkMBS for packed-sequence decoder layers listed in |
chunk_mbs |
|
|
Number of packed samples per layer chunk. |
AcceleratorConfig#
train.accelerator.* — Parallelism and distributed-training topology.
Field |
Type |
Default |
Description |
|---|---|---|---|
dp_replicate_size |
|
|
Data parallel replicate size for both dense and moe parameters. |
dp_shard_size |
|
|
Data parallel shard degree. |
tp_size |
|
|
Tensor parallel size. |
ep_size |
|
|
Expert parallel size, should be fit into dp_shard group if HSDP enabled |
ep_outside |
|
|
Expert parallelism outside in EP-FSDP. |
extra_parallel_sizes |
|
|
Sizes of additional parallel dimensions; EP is appended automatically. |
extra_parallel_placement_innermost |
|
|
Whether each additional parallel dimension is placed innermost relative to FSDP. |
extra_parallel_names |
|
|
Names of additional parallel dimensions; |
pp_size |
|
|
Pipeline parallel size. |
ulysses_size |
|
|
Ulysses sequence parallel size. |
enable_async |
|
|
Enable async Ulysses. |
cp_size |
|
|
Ring-attention context parallel size. |
fsdp_config |
|
— |
FSDP sharding configuration. |
offload_config |
|
— |
Activation offload settings. |
FSDPConfig#
train.accelerator.fsdp_config.* — FSDP sharding configuration.
Field |
Type |
Default |
Description |
|---|---|---|---|
fsdp_mode |
|
|
Data parallel mode. |
reshard_after_forward |
|
|
Reshard after forward (FSDP2). |
reshard_after_backward |
|
|
Reshard after backward (FSDP2). |
forward_prefetch |
|
|
Enable forward prefetch. |
offload |
|
|
Enable CPU offload. |
max_load_broadcast_size |
|
|
Maximum size (in GB) of parameters broadcasted from rank 0 during loading weights (FSDP2). Parameters exceeding this threshold will be chunked according to the parallel plan before broadcasting. |
mixed_precision |
|
— |
Mixed precision configuration. |
MixedPrecisionConfig#
train.accelerator.fsdp_config.mixed_precision.* — Mixed precision configuration.
Field |
Type |
Default |
Description |
|---|---|---|---|
enable |
|
|
Enable mixed precision training. |
param_dtype |
|
|
Dtype for the unsharded parameter. |
reduce_dtype |
|
|
Dtype for gradient reduction (i.e. reduce-scatter or all-reduce). |
output_dtype |
|
|
Dtype for casting floating-point forward outputs (FSDP2). |
cast_forward_inputs |
|
|
Enable mixed precision cast forward inputs (FSDP2). |
OffloadConfig#
train.accelerator.offload_config.* — Activation offload settings.
Field |
Type |
Default |
Description |
|---|---|---|---|
enable_activation |
|
|
Enable activation offload to CPU. |
activation_gpu_limit |
|
|
GB of activations allowed to remain on GPU. |
CheckpointConfig#
train.checkpoint.* — Checkpoint saving and loading.
Field |
Type |
Default |
Description |
|---|---|---|---|
output_dir |
|
|
Path to save model checkpoints. |
manager |
|
|
Checkpoint manager. |
save_async |
|
|
Save checkpoints asynchronously. |
dcp_save_to_lowest_rank |
|
|
Write each replicated DCP shard from the lowest global rank that holds it instead of load-balancing across replicas. On a non-shared filesystem this concentrates the deduplicated copy onto the lowest-ranked replica group rather than scattering it across replicas; in the standard HSDP layout (shard within a node, replicate across nodes) that group is one node, which then holds a complete checkpoint. Only affects replicated data — unique expert/tensor/pipeline-parallel shards stay distributed. Leave |
load_path |
|
|
Path to checkpoint for resuming training. Use |
save_steps |
|
|
Steps between checkpoint saves. |
save_epochs |
|
|
Epochs between checkpoint saves. |
hf_save_steps |
|
|
Steps between HuggingFace weight saves. |
hf_save_epochs |
|
|
Epochs between HuggingFace weight saves. |
save_hf_weights |
|
|
Save HuggingFace-format weights to the last checkpoint directory. |
InferArguments#
Standalone inference configuration.
Field |
Type |
Default |
Description |
|---|---|---|---|
model_path |
|
Required |
Path to the pre-trained model. |
tokenizer_path |
|
|
Path to the tokenizer. Defaults to |
seed |
|
|
Random seed. |
do_sample |
|
|
Enable sampling in decoding. |
temperature |
|
|
Sampling temperature. |
top_p |
|
|
Nucleus sampling top-p value. |
max_tokens |
|
|
Maximum tokens to generate. |
VLM Extensions#
Additional fields for Vision-Language Model training, defined in veomni.trainer.vlm_trainer.
VLMTrainingArguments#
Extends TrainingArguments with ViT / audio tower controls.
Field |
Type |
Default |
Description |
|---|---|---|---|
freeze_vit |
|
|
Freeze ViT parameters. |
freeze_audio_tower |
|
|
Freeze audio tower parameters. |
vit_lr |
|
|
Maximum learning rate for ViT parameters. |
VLMMModelArguments#
Extends ModelArguments with encoder data-balancing options.
Field |
Type |
Default |
Description |
|---|---|---|---|
encoder_data_balance |
|
|
Enable encoder data balancing (e.g. for Qwen3-VL). |
encoder_data_balance_sorting_algo |
|
|
Sorting algorithm for encoder data balancing. |
VLMMDataArguments#
Extends DataArguments with multimodal input configs.
Field |
Type |
Default |
Description |
|---|---|---|---|
mm_configs |
|
|
Multimodal input configuration. |
DiT Extensions#
Additional fields for diffusion-transformer training, defined in
veomni.trainer.dit_trainer. The root VeOmniDiTArguments combines the three
derived argument groups below.
DiTModelArguments#
Field |
Type |
Default |
Description |
|---|---|---|---|
condition_model_path |
|
|
Path to the condition model. |
condition_model_cfg |
|
|
Condition-model configuration. |
DiTDataArguments#
Field |
Type |
Default |
Description |
|---|---|---|---|
mm_configs |
|
|
Multimodal input configuration. |
offline_embedding_save_dir |
|
|
Directory used to save offline embeddings. |
shuffle |
|
|
Shuffle the training dataset. |
DiTTrainingArguments#
Field |
Type |
Default |
Description |
|---|---|---|---|
training_task |
|
|
Select offline training, online training, or offline embedding generation. |
DPO Reference#
DPOConfig#
dpo_config.* — Direct Preference Optimization hyperparameters.
Field |
Type |
Default |
Description |
|---|---|---|---|
beta |
|
|
KL penalty coefficient. Controls deviation from the reference model. |
label_smoothing |
|
|
Label smoothing for DPO loss. Non-zero values assume noisy preference labels. |
reference_free |
|
|
If |
loss_type |
|
|
DPO loss variant: |
average_log_prob |
|
|
If |
refer_model_precision |
|
|
dtype used to load the frozen reference model. |