Skip to content

https://arxiv.org/abs/2606.28344. The end of web parsing. The beginning of scalable pixel-native search. link: https://pixelrag.ai/

1.6 KB
Raw Blame
### Top-6 retrieval SFT @ 3x compression, v5 (mixed + 2x top3 oversample)
### v3 (mixed 1:1, r=256) = 0.884/0.878/0.892/0.862 — current 3x best.
### v1 (top3 only, k=3 specialist) = 0.900 at k=3 — the v3 k=3 ceiling.
### v4 (mixed + r=512) FAILED: eval loss spiked +0.047 at step 3200 — capacity not bottleneck.
### Hypothesis: 2x top3 oversample biases toward k=3 to recover v1's 0.900 at k=3
### while keeping multi-k generalization from vark. Total per epoch:
###   2 * 104k top3 + 1 * 104k vark = 312k samples (1.5x v3) → ~10h training.
model_name_or_path: Qwen/Qwen3-VL-4B-Instruct
template: qwen3_vl
enable_thinking: false

dataset_dir: /scratch/users/zwcolin/cxr_embeds/sft_data/compressed_top6_3x
dataset: multimage_top3_train,multimage_top3_train_dup,multimage_vark_train
eval_dataset: multimage_vark_eval

stage: sft
do_train: true
finetuning_type: lora
freeze_vision_tower: false
lora_rank: 256
lora_alpha: 256
lora_target: all

per_device_train_batch_size: 1
gradient_accumulation_steps: 4
learning_rate: 1.0e-5
num_train_epochs: 2
lr_scheduler_type: cosine
warmup_ratio: 0.03
max_grad_norm: 1.0
bf16: true

per_device_eval_batch_size: 1
eval_strategy: steps
eval_steps: 1600
eval_on_start: false
batch_eval_metrics: true
compute_accuracy: true

logging_steps: 30
save_steps: 1600
save_total_limit: 8
output_dir: /scratch/users/zwcolin/cxr_embeds/sft_output/qwen3vl_top6_3x_v5

preprocessing_num_workers: 8
dataloader_num_workers: 4
cutoff_len: 8192
report_to: wandb
run_name: sft_qwen3vl_top6_3x_v5_mixed2x_top3_r256_2ep

deepspeed: examples/deepspeed/ds_z2_config.json
ddp_timeout: 180000000