File size: 18,695 Bytes
df85382 |
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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 |
wandb_version: 1
_wandb:
desc: null
value:
python_version: 3.9.17
cli_version: 0.15.9
framework: huggingface
huggingface_version: 4.36.0
is_jupyter_run: false
is_kaggle_kernel: false
start_time: 1709313942.075548
t:
1:
- 1
- 9
- 11
- 49
- 50
- 51
- 55
- 71
- 103
2:
- 1
- 9
- 11
- 49
- 50
- 51
- 55
- 71
- 103
3:
- 2
- 7
- 15
- 23
4: 3.9.17
5: 0.15.9
6: 4.36.0
8:
- 5
m:
- 1: trainer/global_step
6:
- 3
- 1: loss/train_step
5: 1
6:
- 1
- 1: epoch
5: 1
6:
- 1
- 1: loss/val
5: 1
6:
- 1
- 1: metric/exact_encoding_matches/val
5: 1
6:
- 1
- 1: metric/decoding_errors/all/val
5: 1
6:
- 1
- 1: metric/labeled_spans/micro/f1/val
5: 1
6:
- 1
- 1: metric/labeled_spans/micro/recall/val
5: 1
6:
- 1
- 1: metric/labeled_spans/micro/precision/val
5: 1
6:
- 1
- 1: metric/labeled_spans/background_claim/f1/val
5: 1
6:
- 1
- 1: metric/labeled_spans/background_claim/recall/val
5: 1
6:
- 1
- 1: metric/labeled_spans/background_claim/precision/val
5: 1
6:
- 1
- 1: metric/labeled_spans/data/f1/val
5: 1
6:
- 1
- 1: metric/labeled_spans/data/recall/val
5: 1
6:
- 1
- 1: metric/labeled_spans/data/precision/val
5: 1
6:
- 1
- 1: metric/labeled_spans/own_claim/f1/val
5: 1
6:
- 1
- 1: metric/labeled_spans/own_claim/recall/val
5: 1
6:
- 1
- 1: metric/labeled_spans/own_claim/precision/val
5: 1
6:
- 1
- 1: metric/labeled_spans/macro/f1/val
5: 1
6:
- 1
- 1: metric/labeled_spans/macro/recall/val
5: 1
6:
- 1
- 1: metric/labeled_spans/macro/precision/val
5: 1
6:
- 1
- 1: metric/binary_relations/micro/f1/val
5: 1
6:
- 1
- 1: metric/binary_relations/micro/recall/val
5: 1
6:
- 1
- 1: metric/binary_relations/micro/precision/val
5: 1
6:
- 1
- 1: metric/binary_relations/parts_of_same/f1/val
5: 1
6:
- 1
- 1: metric/binary_relations/parts_of_same/recall/val
5: 1
6:
- 1
- 1: metric/binary_relations/parts_of_same/precision/val
5: 1
6:
- 1
- 1: metric/binary_relations/supports/f1/val
5: 1
6:
- 1
- 1: metric/binary_relations/supports/recall/val
5: 1
6:
- 1
- 1: metric/binary_relations/supports/precision/val
5: 1
6:
- 1
- 1: metric/binary_relations/contradicts/f1/val
5: 1
6:
- 1
- 1: metric/binary_relations/contradicts/recall/val
5: 1
6:
- 1
- 1: metric/binary_relations/contradicts/precision/val
5: 1
6:
- 1
- 1: metric/binary_relations/macro/f1/val
5: 1
6:
- 1
- 1: metric/binary_relations/macro/recall/val
5: 1
6:
- 1
- 1: metric/binary_relations/macro/precision/val
5: 1
6:
- 1
- 1: metric/binary_relations/semantically_same/f1/val
5: 1
6:
- 1
- 1: metric/binary_relations/semantically_same/recall/val
5: 1
6:
- 1
- 1: metric/binary_relations/semantically_same/precision/val
5: 1
6:
- 1
- 1: loss/train_epoch
5: 1
6:
- 1
- 1: metric/exact_encoding_matches/train
5: 1
6:
- 1
- 1: metric/decoding_errors/label/train
5: 1
6:
- 1
- 1: metric/decoding_errors/index/train
5: 1
6:
- 1
- 1: metric/decoding_errors/len/train
5: 1
6:
- 1
- 1: metric/decoding_errors/order/train
5: 1
6:
- 1
- 1: metric/decoding_errors/correct/train
5: 1
6:
- 1
- 1: metric/decoding_errors/all/train
5: 1
6:
- 1
- 1: metric/labeled_spans/background_claim/f1/train
5: 1
6:
- 1
- 1: metric/labeled_spans/background_claim/recall/train
5: 1
6:
- 1
- 1: metric/labeled_spans/background_claim/precision/train
5: 1
6:
- 1
- 1: metric/labeled_spans/data/f1/train
5: 1
6:
- 1
- 1: metric/labeled_spans/data/recall/train
5: 1
6:
- 1
- 1: metric/labeled_spans/data/precision/train
5: 1
6:
- 1
- 1: metric/labeled_spans/own_claim/f1/train
5: 1
6:
- 1
- 1: metric/labeled_spans/own_claim/recall/train
5: 1
6:
- 1
- 1: metric/labeled_spans/own_claim/precision/train
5: 1
6:
- 1
- 1: metric/labeled_spans/micro/f1/train
5: 1
6:
- 1
- 1: metric/labeled_spans/micro/recall/train
5: 1
6:
- 1
- 1: metric/labeled_spans/micro/precision/train
5: 1
6:
- 1
- 1: metric/labeled_spans/macro/f1/train
5: 1
6:
- 1
- 1: metric/labeled_spans/macro/recall/train
5: 1
6:
- 1
- 1: metric/labeled_spans/macro/precision/train
5: 1
6:
- 1
- 1: metric/binary_relations/supports/f1/train
5: 1
6:
- 1
- 1: metric/binary_relations/supports/recall/train
5: 1
6:
- 1
- 1: metric/binary_relations/supports/precision/train
5: 1
6:
- 1
- 1: metric/binary_relations/micro/f1/train
5: 1
6:
- 1
- 1: metric/binary_relations/micro/recall/train
5: 1
6:
- 1
- 1: metric/binary_relations/micro/precision/train
5: 1
6:
- 1
- 1: metric/binary_relations/parts_of_same/f1/train
5: 1
6:
- 1
- 1: metric/binary_relations/parts_of_same/recall/train
5: 1
6:
- 1
- 1: metric/binary_relations/parts_of_same/precision/train
5: 1
6:
- 1
- 1: metric/binary_relations/contradicts/f1/train
5: 1
6:
- 1
- 1: metric/binary_relations/contradicts/recall/train
5: 1
6:
- 1
- 1: metric/binary_relations/contradicts/precision/train
5: 1
6:
- 1
- 1: metric/binary_relations/semantically_same/f1/train
5: 1
6:
- 1
- 1: metric/binary_relations/semantically_same/recall/train
5: 1
6:
- 1
- 1: metric/binary_relations/semantically_same/precision/train
5: 1
6:
- 1
- 1: metric/binary_relations/macro/f1/train
5: 1
6:
- 1
- 1: metric/binary_relations/macro/recall/train
5: 1
6:
- 1
- 1: metric/binary_relations/macro/precision/train
5: 1
6:
- 1
- 1: metric/decoding_errors/correct/val
5: 1
6:
- 1
- 1: metric/decoding_errors/index/val
5: 1
6:
- 1
- 1: metric/decoding_errors/len/val
5: 1
6:
- 1
- 1: loss/test
5: 1
6:
- 1
- 1: metric/exact_encoding_matches/test
5: 1
6:
- 1
- 1: metric/decoding_errors/correct/test
5: 1
6:
- 1
- 1: metric/decoding_errors/all/test
5: 1
6:
- 1
- 1: metric/labeled_spans/micro/f1/test
5: 1
6:
- 1
- 1: metric/labeled_spans/micro/recall/test
5: 1
6:
- 1
- 1: metric/labeled_spans/micro/precision/test
5: 1
6:
- 1
- 1: metric/labeled_spans/own_claim/f1/test
5: 1
6:
- 1
- 1: metric/labeled_spans/own_claim/recall/test
5: 1
6:
- 1
- 1: metric/labeled_spans/own_claim/precision/test
5: 1
6:
- 1
- 1: metric/labeled_spans/background_claim/f1/test
5: 1
6:
- 1
- 1: metric/labeled_spans/background_claim/recall/test
5: 1
6:
- 1
- 1: metric/labeled_spans/background_claim/precision/test
5: 1
6:
- 1
- 1: metric/labeled_spans/data/f1/test
5: 1
6:
- 1
- 1: metric/labeled_spans/data/recall/test
5: 1
6:
- 1
- 1: metric/labeled_spans/data/precision/test
5: 1
6:
- 1
- 1: metric/labeled_spans/macro/f1/test
5: 1
6:
- 1
- 1: metric/labeled_spans/macro/recall/test
5: 1
6:
- 1
- 1: metric/labeled_spans/macro/precision/test
5: 1
6:
- 1
- 1: metric/binary_relations/micro/f1/test
5: 1
6:
- 1
- 1: metric/binary_relations/micro/recall/test
5: 1
6:
- 1
- 1: metric/binary_relations/micro/precision/test
5: 1
6:
- 1
- 1: metric/binary_relations/parts_of_same/f1/test
5: 1
6:
- 1
- 1: metric/binary_relations/parts_of_same/recall/test
5: 1
6:
- 1
- 1: metric/binary_relations/parts_of_same/precision/test
5: 1
6:
- 1
- 1: metric/binary_relations/supports/f1/test
5: 1
6:
- 1
- 1: metric/binary_relations/supports/recall/test
5: 1
6:
- 1
- 1: metric/binary_relations/supports/precision/test
5: 1
6:
- 1
- 1: metric/binary_relations/contradicts/f1/test
5: 1
6:
- 1
- 1: metric/binary_relations/contradicts/recall/test
5: 1
6:
- 1
- 1: metric/binary_relations/contradicts/precision/test
5: 1
6:
- 1
- 1: metric/binary_relations/semantically_same/f1/test
5: 1
6:
- 1
- 1: metric/binary_relations/semantically_same/recall/test
5: 1
6:
- 1
- 1: metric/binary_relations/semantically_same/precision/test
5: 1
6:
- 1
- 1: metric/binary_relations/macro/f1/test
5: 1
6:
- 1
- 1: metric/binary_relations/macro/recall/test
5: 1
6:
- 1
- 1: metric/binary_relations/macro/precision/test
5: 1
6:
- 1
_num_params/total:
desc: null
value: 141788928
_num_params/trainable:
desc: null
value: 141788928
_num_params/non_trainable:
desc: null
value: 0
_config:
desc: null
value:
pipeline_type: training
name: dataset-sciarg/task-ner_re/v0.3
tags:
- task=ner_re
- model=pointer_network
train: true
validate: true
test: true
monitor_metric: metric/binary_relations/micro/f1/val
monitor_mode: max
seed: 1
ckpt_path: null
push_to_hub: false
model_save_dir: /home/arne/projects/pie-document-level/models/dataset-sciarg/task-ner_re/v0.3/2024-03-01_18-25-32
dataset:
_target_: src.utils.execute_pipeline
input:
_target_: pie_datasets.DatasetDict.load_dataset
path: pie/sciarg
revision: 982d5682ba414ee13cf92cb93ec18fc8e78e2b81
select_n:
_processor_: pie_datasets.DatasetDict.select
split: train
stop: null
select_n_test:
_processor_: pie_datasets.DatasetDict.select
split: test
stop: null
select_n_validation:
_processor_: pie_datasets.DatasetDict.select
split: validation
stop: null
create_test_split:
_processor_: pie_datasets.DatasetDict.move_to_new_split
source_split: train
target_split: test
ids:
- A32
- A33
- A34
- A35
- A36
- A37
- A38
- A39
- A40
create_validation_split:
_processor_: pie_datasets.DatasetDict.add_test_split
test_size: 0.1
seed: 1
source_split: train
target_split: validation
datamodule:
_target_: src.datamodules.PieDataModule
batch_size: 2
num_workers: 0
pin_memory: false
show_progress_for_encode: true
train_split: train
val_split: validation
test_split: test
taskmodule:
_target_: pie_modules.taskmodules.PointerNetworkTaskModuleForEnd2EndRE
tokenizer_init_kwargs:
add_prefix_space: true
tokenizer_name_or_path: facebook/bart-base
tokenizer_kwargs:
truncation: true
return_overflowing_tokens: true
stride: 128
strict_span_conversion: false
create_constraints: true
constrained_generation: true
partition_layer_name: labeled_partitions
model:
_target_: pie_modules.models.SimpleGenerativeModel
base_model_type: pie_modules.models.base_models.BartAsPointerNetwork
base_model_config:
pretrained_model_name_or_path: facebook/bart-base
use_encoder_mlp: true
use_constraints_encoder_mlp: true
decoder_position_id_pattern:
- 0
- 0
- 1
- 0
- 0
- 1
- 1
encoder_layer_norm_decay: 0.005
lr: 6.0e-05
num_beams: 4
max_length: 768
decoder_layer_norm_decay: 0.05
metric_stages:
- val
- test
- train
metric_call_predict:
- val
- test
warmup_proportion: 0.01
callbacks:
model_checkpoint:
_target_: pytorch_lightning.callbacks.ModelCheckpoint
dirpath: /home/arne/projects/pie-document-level/logs/training/multiruns/dataset-sciarg/task-ner_re/v0.3/2024-03-01_18-25-31/0/checkpoints
filename: epoch_{epoch:03d}
monitor: metric/binary_relations/micro/f1/val
verbose: false
save_last: true
save_top_k: 1
mode: max
auto_insert_metric_name: false
save_weights_only: false
every_n_train_steps: null
train_time_interval: null
every_n_epochs: null
save_on_train_epoch_end: null
early_stopping:
_target_: pytorch_lightning.callbacks.EarlyStopping
monitor: metric/binary_relations/micro/f1/val
min_delta: 0.0
patience: 100
verbose: false
mode: max
strict: true
check_finite: true
stopping_threshold: null
divergence_threshold: null
check_on_train_epoch_end: null
model_summary:
_target_: pytorch_lightning.callbacks.RichModelSummary
max_depth: -1
rich_progress_bar:
_target_: pytorch_lightning.callbacks.RichProgressBar
logger:
wandb:
_target_: pytorch_lightning.loggers.wandb.WandbLogger
save_dir: /home/arne/projects/pie-document-level/logs/training/multiruns/dataset-sciarg/task-ner_re/v0.3/2024-03-01_18-25-31/0
offline: false
id: null
anonymous: null
project: dataset-sciarg-task-ner_re-v0.3-training
log_model: false
prefix: ''
group: ''
tags:
- task=ner_re
- model=pointer_network
job_type: ''
trainer:
_target_: pytorch_lightning.Trainer
default_root_dir: /home/arne/projects/pie-document-level/logs/training/multiruns/dataset-sciarg/task-ner_re/v0.3/2024-03-01_18-25-31/0
min_epochs: 150
max_epochs: 150
accelerator: gpu
devices: 1
check_val_every_n_epoch: 1
deterministic: false
gradient_clip_val: 5
gradient_clip_algorithm: value
paths:
root_dir: /home/arne/projects/pie-document-level
data_dir: /home/arne/projects/pie-document-level/data/
log_dir: /home/arne/projects/pie-document-level/logs/
output_dir: /home/arne/projects/pie-document-level/logs/training/multiruns/dataset-sciarg/task-ner_re/v0.3/2024-03-01_18-25-31/0
save_dir: /home/arne/projects/pie-document-level
work_dir: /home/arne/projects/pie-document-level
extras:
ignore_warnings: false
enforce_tags: true
print_config: true
base_model: facebook/bart-base
base_model_type:
desc: null
value: pie_modules.models.base_models.BartAsPointerNetwork
base_model_config:
desc: null
value:
pretrained_model_name_or_path: facebook/bart-base
use_encoder_mlp: true
use_constraints_encoder_mlp: true
decoder_position_id_pattern:
- 0
- 0
- 1
- 0
- 0
- 1
- 1
encoder_layer_norm_decay: 0.005
lr: 6.0e-05
num_beams: 4
max_length: 768
decoder_layer_norm_decay: 0.05
bos_token_id: 0
eos_token_id: 1
pad_token_id: 1
target_token_ids:
- 0
- 2
- 50267
- 50265
- 50268
- 50270
- 50271
- 50269
- 50272
- 50266
embedding_weight_mapping:
'50267':
- 4146
'50265':
- 3618
- 1215
- 31628
'50268':
- 414
'50270':
- 308
- 1215
- 31628
'50271':
- 37820
'50269':
- 1667
- 1215
- 1116
- 1215
- 41690
'50272':
- 9031
- 38600
- 1215
- 41690
'50266':
- 4548
override_generation_kwargs:
desc: null
value: null
warmup_proportion:
desc: null
value: 0.01
learning_rate:
desc: null
value: null
optimizer_type:
desc: null
value: null
metric_stages:
desc: null
value:
- val
- test
- train
metric_call_predict:
desc: null
value:
- val
- test
taskmodule_config:
desc: null
value:
taskmodule_type: PointerNetworkTaskModuleForEnd2EndRE
tokenizer_name_or_path: facebook/bart-base
document_type: pytorch_ie.documents.TextDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions
tokenized_document_type: pie_modules.documents.TokenDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions
span_layer_name: labeled_spans
relation_layer_name: binary_relations
none_label: none
loop_dummy_relation_name: loop
constrained_generation: true
label_tokens: null
label_representations: null
labels_per_layer:
labeled_spans:
- background_claim
- data
- own_claim
binary_relations:
- contradicts
- parts_of_same
- semantically_same
- supports
exclude_labels_per_layer: null
create_constraints: true
tokenizer_init_kwargs:
add_prefix_space: true
tokenizer_kwargs:
truncation: true
return_overflowing_tokens: true
stride: 128
strict_span_conversion: false
partition_layer_name: labeled_partitions
annotation_field_mapping: null
log_first_n_examples: null
_best_checkpoint:
desc: null
value: epoch_145.ckpt
_checkpoint_dir:
desc: null
value: /mnt/data/experiments/pie-document-level/logs/training/multiruns/dataset-sciarg/task-ner_re/v0.3/2024-03-01_18-25-31/0/checkpoints
|