You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hydra composes the training configuration from training/config/. The values
below are the shipped defaults; model defaults specify the released architecture.
Inference reads the config.json exported by scripts/convert_to_safetensors.py,
which specifies the model architecture and inference settings.
Top level (training/config/default.yaml)
Key
Default
Description
log_dir
./logs
Run directory: checkpoints, Hydra output (<log_dir>/hydra). Relative paths resolve against the launch directory.
init_ckpt
null
Weights-only initialization from .ckpt or .safetensors; the latter requires an adjacent config.json matching the model settings.
wandb.project / entity / name
rubatocodec / null / null
Weights & Biases logging; name defaults to the log_dir basename.
Dataset (dataset/default.yaml)
Key
Default
Description
num_workers
28
DataLoader workers.
persistent_workers
true
Keep workers alive between epochs.
audio.sr
16000
Encoder-side sample rate.
audio.output_sr
44100
Decoder-side (reconstruction) sample rate.
min_audio_length
96000
Training crop length in samples at sr; shorter samples are zero-padded to it. Crops are random and aligned to integer positions at both sample rates.
The train / val sections take the same keys:
Key
Default
Description
batch_size
64 (train), 8 (val)
Per-device batch size.
shuffle
true (train), false (val)
Shuffle samples each epoch.
hf_datasets
—
Required for both train and val. List of Hugging Face datasets: path, split, optional name, audio_column (default "audio"), data_files, revision, token (prefer HF_TOKEN; see training.md).
hf_num_proc
null
num_proc for load_dataset.
hf_cache_dir
null
HF datasets cache directory.
hf_min_sample_rate
null
Minimum source sample rate; null disables this check.
hf_skip_failed / hf_max_retries
true / 10
Retry behavior for failed samples.
Model (model/default.yaml)
codec_encoder
Key
Default
Description
ngf
48
Base channel width.
hidden_dim
1024
Encoder output dimension.
up_ratios
[2, 2, 4, 4, 5]
Downsampling ratios; product = hop size 320 → 50 Hz latent grid at 16 kHz.
rvq = RubatoResidualQuantizer (cb1, the semantically distilled first layer, plus residual layers). fsq = the single FSQ stage of the original X-Codec-2.0 (configured by fsq_levels / fsq_num_quantizers).
num_quantizers
16
Total layers (cb1 + residual).
codebook_size
4096
Entries per layer.
fsq_levels
[8, 8, 8, 8]
FSQ levels for FSQ-type layers; product must equal codebook_size.
cb1_type
fsq
Type of the semantically distilled first layer (fsq or vq).
residual_type
vq
Type of the residual layers.
quantize_dropout
1.0
Fraction of each batch that draws a random depth ~ U{1..Q}.
Average firing ratio relative to the latent grid rate (e.g. 0.25 on the 50 Hz grid gives ≈12.5 events/s).
decision
clock
clock = bounded cumulative allocation; level = thresholded signal level.
head_in_budget
true
Count the forced first firing inside the clock budget: round(target_ratio · T) − 1 firings are allocated over t ≥ 1, so the event count is max(1, min(T, round(target_ratio · T))). false allocates the full budget over all frames, giving ≈ 1 extra event per utterance from the forced first firing.
signals
[hnet_ms, flux]
Firing-signal components, per-sequence mean-normalized and summed. hnet: cosine dissimilarity of adjacent latent frames. hnet_ms: multi-scale variant of hnet over wider frame offsets. flux: log-mel spectral flux of the input waveform. distill: per-frame reconstruction difficulty distilled from the training loss.
max_gap
64
Saturation index of the offset / duration embeddings (durations themselves are not capped).
aggregate
mean
Pre-quantization interval aggregation: mean or none (point selection).
Keys used only by specific signal / decision / aggregation choices:
Key
Default
Used by
Description
hnet_ms_offsets
[[1,0],[1,1],[2,1]]
hnet_ms
(past, future) frame offsets of the multi-scale dissimilarity.
temp
1.0
decision: level
Sigmoid temperature of the straight-through firing mask (training only).