-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathparams.yaml
56 lines (50 loc) · 1.38 KB
/
params.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
base:
use_cuda: True
data:
dataset_folder: dataset
images_folder: images
all_qa_pairs_file: all_qa_pairs.txt
train_dataset: data_train.csv
eval_dataset: data_eval.csv
question_col: question
image_col: image_id
answer_col: answer
answer_space: answer_space.txt
tokenizer:
padding: longest
max_length: 24
truncation: True
return_token_type_ids: True
return_attention_mask: True
model:
name: roberta-beit # Custom name for the multimodal model
text_encoder: roberta-base # Valid transformer model for text encoding from HuggingFace
image_encoder: microsoft/beit-base-patch16-224-pt22k-ft22k # Valid transformer model for image encoding from HuggingFace
intermediate_dims: 512
dropout: 0.5
train:
output_dir: checkpoint
seed: 12345
num_train_epochs: 5
learning_rate: 5.0e-5
weight_decay: 0.0
warmup_ratio: 0.0
warmup_steps: 0
evaluation_strategy: steps
eval_steps: 100
logging_strategy: steps
logging_steps: 100
save_strategy: steps
save_steps: 100
save_total_limit: 3 # Save only the last 3 checkpoints at any given time while training
metric_for_best_model: wups
per_device_train_batch_size: 32
per_device_eval_batch_size: 32
remove_unused_columns: False
dataloader_num_workers: 8
load_best_model_at_end: True
metrics:
metrics_folder: metrics
metrics_file: metrics.json
inference:
checkpoint: checkpoint-1500