zl310's picture
Add files using upload-large-folder tool
650f2f5 verified
Raw History Blame Contribute Delete
2.31 kB
# GSM8K: ELF-L baseline
# Run commands from the repository root.
# Dataset and sequence lengths
data_path: data/gsm-math-qwen3-embedding-0.6b-v1/train
eval_data_path:
- name: validation_1024
path: data/gsm-math-qwen3-embedding-0.6b-v1/validation_1024
num_samples: 1024
- name: gsm8k_test
path: data/gsm-math-qwen3-embedding-0.6b-v1/gsm8k_test
num_samples: 1319
max_length: 1024
max_input_length: 256
pad_token: eos
use_model_attention_mask: false
# Tokenizer and frozen encoder
tokenizer_name: Qwen/Qwen3-Embedding-0.6B
encoder_model_name: Qwen/Qwen3-0.6B-Base
encoder_dim: 1024
encoder_layer: 20
latent_mean: 0.0
latent_std: 1.0
# ELF architecture
model: ELF-L
bottleneck_dim: 128
num_time_tokens: 4
num_self_cond_cfg_tokens: 4
num_model_mode_tokens: 4
attn_dropout: 0.0
proj_dropout: 0.0
# REPA auxiliary alignment
repa_enabled: false
# REG semantic token
reg_enabled: false
# Denoiser objective
denoiser_p_mean: -1.5
denoiser_p_std: 0.8
denoiser_noise_scale: 2.0
t_eps: 0.05
time_schedule: logit_normal
# Decoder objective
decoder_prob: 0.2
decoder_noise_scale: 1.0
decoder_p_mean: 0.8
decoder_p_std: 0.8
# Conditioning
label_drop_prob: 0.0
self_cond_prob: 0.5
self_cond_cfg_min: 0.5
self_cond_cfg_max: 5.0
# Optimizer and training endpoint
epochs: 15
global_batch_size: 512
batch_size: 16
blr: 0.001
lr: 0.002
lr_schedule: constant
min_lr: 0.0
weight_decay: 0.0
warmup_steps: -1
warmup_epochs: 0.5
optimizer: muon
group_by_length: false
# EMA weights
ema_decay1:
- 0.9999
- 0.999
ema_warmup_updates: 1000
# Precision and memory
use_bf16: true
use_compile: false
gradient_checkpointing: false
# Training-time evaluation (headline evaluation uses the separate scripts)
sampling_configs_path: configs/sampling/training.yml
generation_batch_size: 20
num_samples: 1024
conditional_eval_metric: gsm8k_accuracy
training_generation_ema: null
truncate_generation: true
online_eval: true
# Logging and checkpoint frequency (epochs)
log_freq: 100
save_freq: 0.5
eval_freq: 0.5
# Output and initialization
output_dir: outputs/gsm8k_elf_l_baseline
resume: null
resume_only_weights: null
resume_only_weights_ema: null
# Optional experiment tracking
use_wandb: false
wandb_project: elf-reg
wandb_entity: null
wandb_run_name: gsm8k_elf_l_baseline
# Random seed and data loading
seed: 42
num_workers: 8