|
config: |
|
(): colpali_engine.trainer.colmodel_training.ColModelTrainingConfig |
|
output_dir: !path ../../../models/colqwen2-hardneg-128-5e |
|
processor: |
|
(): colpali_engine.utils.transformers_wrappers.AllPurposeWrapper |
|
class_to_instanciate: !ext colpali_engine.models.ColQwen2Processor |
|
pretrained_model_name_or_path: "./models/colqwen2_base" |
|
|
|
|
|
model: |
|
(): colpali_engine.utils.transformers_wrappers.AllPurposeWrapper |
|
class_to_instanciate: !ext colpali_engine.models.ColQwen2 |
|
pretrained_model_name_or_path: "./models/colqwen2_base" |
|
torch_dtype: !ext torch.bfloat16 |
|
use_cache: false |
|
attn_implementation: "flash_attention_2" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_loading_func: !ext colpali_engine.utils.dataset_transformation.load_train_set_ir_negs |
|
eval_dataset_loader: !import ../data/test_data.yaml |
|
|
|
|
|
run_eval: true |
|
|
|
loss_func: |
|
(): colpali_engine.loss.late_interaction_losses.ColbertPairwiseNegativeCELoss |
|
in_batch_term: true |
|
tr_args: |
|
(): transformers.training_args.TrainingArguments |
|
output_dir: null |
|
overwrite_output_dir: true |
|
num_train_epochs: 5 |
|
per_device_train_batch_size: 32 |
|
gradient_checkpointing: true |
|
gradient_checkpointing_kwargs: {"use_reentrant": false} |
|
|
|
|
|
per_device_eval_batch_size: 32 |
|
eval_strategy: "steps" |
|
dataloader_num_workers: 8 |
|
|
|
save_steps: 500 |
|
logging_steps: 10 |
|
eval_steps: 100 |
|
warmup_steps: 100 |
|
learning_rate: 5e-4 |
|
save_total_limit: 1 |
|
|
|
|
|
peft_config: |
|
(): peft.LoraConfig |
|
r: 32 |
|
lora_alpha: 32 |
|
lora_dropout: 0.1 |
|
init_lora_weights: "gaussian" |
|
bias: "none" |
|
task_type: "FEATURE_EXTRACTION" |
|
target_modules: '(.*(model).*(down_proj|gate_proj|up_proj|k_proj|q_proj|v_proj|o_proj).*$|.*(custom_text_proj).*$)' |
|
|
|
|
|
|