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
| qyfan@gpu12:~/code/ChartQA-main$ source activate (base) qyfan@gpu12:~/code/ChartQA-main$ conda activate ChartQA (ChartQA) qyfan@gpu12:~/code/ChartQA-main$ ls ChartQA-Dataset Data-Extraction Figures-and-Examples LICENSE Models README.md (ChartQA) qyfan@gpu12:~/code/ChartQA-main$ cd Models/T5/ (ChartQA) qyfan@gpu12:~/code/ChartQA-main/Models/T5$ sh train_test.sh [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> 12/09/2023 23:24:52 - WARNING - __main__ - Process rank: 0, device: cuda:0, n_gpu: 1distributed training: True, 16-bits training: False Downloading data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 6693.04it/s] Extracting data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 23.16it/s] Generating train split: 29999 examples [00:00, 87931.53 examples/s] Generating validation split: 29999 examples [00:00, 114942.30 examples/s] Generating test split: 29999 examples [00:00, 162474.66 examples/s] /home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/models/t5/tokenization_t5_fast.py:160: FutureWarning: This tokenizer was incorrectly instantiated with a model max length of 512 which will be corrected in Transformers v5. For now, this behavior is kept to avoid breaking backwards compatibility when padding/encoding with `truncation is True`. - Be aware that you SHOULD NOT rely on t5-base automatically truncating your input to 512 when padding/encoding. - If you want to encode/pad to sequences longer than 512 you can either instantiate this tokenizer with `model_max_length` or pass `max_length` when encoding/padding. - To avoid this warning, please instantiate this tokenizer with `model_max_length` set to your preferred value. warnings.warn( Running tokenizer on train dataset: 0%| | 0/29999 [00:00<?, ? examples/s]/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/tokenization_utils_base.py:3856: UserWarning: `as_target_tokenizer` is deprecated and will be removed in v5 of Transformers. You can tokenize your labels by using the argument `text_target` of the regular `__call__` method (either in the same call as your input texts if you use the same keyword arguments, or in a separate call. warnings.warn( Running tokenizer on train dataset: 100%|███████████████████████████████████████████████████████████████████████████| 29999/29999 [00:10<00:00, 2997.48 examples/s] Running tokenizer on validation dataset: 100%|██████████████████████████████████████████████████████████████████████| 29999/29999 [00:09<00:00, 3049.45 examples/s] Running tokenizer on prediction dataset: 100%|██████████████████████████████████████████████████████████████████████| 29999/29999 [00:09<00:00, 3022.47 examples/s] 0%| | 0/112500 [00:00<?, ?it/s][WARNING|logging.py:314] 2023-12-09 23:25:31,991 >> You're using a T5TokenizerFast tokenizer. Please note that with a fast tokenizer, using the `__call__` method is faster than using a method to encode the text followed by a call to the `pad` method to get a padded encoding. [W reducer.cpp:1346] Warning: find_unused_parameters=True was specified in DDP constructor, but did not find any unused parameters in the forward pass. This flag results in an extra traversal of the autograd graph every iteration, which can adversely affect performance. If your model indeed never has any unused parameters in the forward pass, consider turning this flag off. Note that this warning may be a false positive if your model has flow control causing later iterations to have unused parameters. (function operator()) {'loss': 1.2697, 'learning_rate': 9.955555555555556e-05, 'epoch': 0.13} {'loss': 1.0826, 'learning_rate': 9.911111111111112e-05, 'epoch': 0.27} 1%|█▏ | 1076/112500 [03:08<5:3 1%|▉ | 1077/112500 [03:08<5:29:15, 5.64it/s]{'loss': 0.9864, 'learning_rate': 9.866666666666668e-05, 'epoch': 0.4} {'loss': 0.9707, 'learning_rate': 9.822222222222223e-05, 'epoch': 0.53} 2%|█▊ | 2000/112500 [05:50<5:31:17, 5.56it/s]/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/generation/utils.py:1273: UserWarning: Using the model-agnostic default `max_length` (=20) to control the generation length. We recommend setting `max_new_tokens` to control the maximum length of the generation. warnings.warn( Traceback (most recent call last):██████████████████████████████████████████████████████████████████████████████| 1875/1875 [09:56<00:00, 3.92it/s] File "/home/qyfan/code/ChartQA-main/Models/T5/run_T5.py", line 647, in <module> main() File "/home/qyfan/code/ChartQA-main/Models/T5/run_T5.py", line 569, in main train_result = trainer.train(resume_from_checkpoint=checkpoint) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/trainer.py", line 1555, in train return inner_training_loop( File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/trainer.py", line 1922, in _inner_training_loop self._maybe_log_save_evaluate(tr_loss, model, trial, epoch, ignore_keys_for_eval) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/trainer.py", line 2271, in _maybe_log_save_evaluate metrics = self.evaluate(ignore_keys=ignore_keys_for_eval) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/trainer_seq2seq.py", line 165, in evaluate return super().evaluate(eval_dataset, ignore_keys=ignore_keys, metric_key_prefix=metric_key_prefix) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/trainer.py", line 3011, in evaluate output = eval_loop( File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/trainer.py", line 3304, in evaluation_loop metrics = self.compute_metrics(EvalPrediction(predictions=all_preds, label_ids=all_labels)) File "/home/qyfan/code/ChartQA-main/Models/T5/run_T5.py", line 541, in compute_metrics decoded_preds, decoded_labels = postprocess_text(decoded_preds, decoded_labels) File "/home/qyfan/code/ChartQA-main/Models/T5/run_T5.py", line 525, in postprocess_text preds = ["\n".join(nltk.sent_tokenize(pred)) for pred in preds] File "/home/qyfan/code/ChartQA-main/Models/T5/run_T5.py", line 525, in <listcomp> preds = ["\n".join(nltk.sent_tokenize(pred)) for pred in preds] File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/nltk/tokenize/__init__.py", line 106, in sent_tokenize tokenizer = load(f"tokenizers/punkt/{language}.pickle") File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/nltk/data.py", line 750, in load opened_resource = _open(resource_url) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/nltk/data.py", line 876, in _open return find(path_, path + [""]).open() File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/nltk/data.py", line 583, in find raise LookupError(resource_not_found) LookupError: ********************************************************************** Resource punkt not found. Please use the NLTK Downloader to obtain the resource:
>>> import nltk >>> nltk.download('punkt') For more information see: https://www.nltk.org/data.html
Attempted to load tokenizers/punkt/PY3/english.pickle
Searched in: - '/home/qyfan/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/share/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/lib/nltk_data' - '/usr/share/nltk_data' - '/usr/local/share/nltk_data' - '/usr/lib/nltk_data' - '/usr/local/lib/nltk_data' - '' **********************************************************************
2%|█▊ | 2000/112500 [15:47<14:32:20, 2.11it/s] [2023-12-09 23:41:22,421] torch.distributed.elastic.multiprocessing.api: [ERROR] failed (exitcode: 1) local_rank: 0 (pid: 2406783) of binary: /home/qyfan/anaconda3/envs/ChartQA/bin/python Traceback (most recent call last): File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/run.py", line 810, in <module> main() File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 346, in wrapper return f(*args, **kwargs) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/run.py", line 806, in main run(args) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/run.py", line 797, in run elastic_launch( File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 134, in __call__ return launch_agent(self._config, self._entrypoint, list(args)) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 264, in launch_agent raise ChildFailedError( torch.distributed.elastic.multiprocessing.errors.ChildFailedError: ============================================================ run_T5.py FAILED ------------------------------------------------------------ Failures: <NO_OTHER_FAILURES> ------------------------------------------------------------ Root Cause (first observed failure): [0]: time : 2023-12-09_23:41:22 host : gpu12.cluster.com rank : 0 (local_rank: 0) exitcode : 1 (pid: 2406783) error_file: <N/A> traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html ============================================================ (ChartQA) qyfan@gpu12:~/code/ChartQA-main/Models/T5$ python Python 3.9.18 | packaged by conda-forge | (main, Aug 30 2023, 03:49:32) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import nltk >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> exit() (ChartQA) qyfan@gpu12:~/code/ChartQA-main/Models/T5$ python Python 3.9.18 | packaged by conda-forge | (main, Aug 30 2023, 03:49:32) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import nltk >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> srun: Job step aborted: Waiting up to 32 seconds for job step to finish. slurmstepd-gpu12: error: *** STEP 60242.0 ON gpu12 CANCELLED AT 2023-12-09T23:52:55 DUE TO TIME LIMIT *** srun: error: gpu12: task 0: Killed qyfan@hpc-login-01:~/code/ChartQA-main$ cd Models/ qyfan@hpc-login-01:~/code/ChartQA-main/Models$ cd T5/ qyfan@hpc-login-01:~/code/ChartQA-main/Models/T5$ ls predict_test.sh result run_T5.py t5-base train_test.sh qyfan@hpc-login-01:~/code/ChartQA-main/Models/T5$ wget https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/packages/tokenizers/punkt.zip --2023-12-09 23:53:58-- https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/packages/tokenizers/punkt.zip Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 0.0.0.0, :: Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|0.0.0.0|:443... failed: Connection refused. Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|::|:443... failed: Connection refused. qyfan@hpc-login-01:~/code/ChartQA-main/Models/T5$ pwd /home/qyfan/code/ChartQA-main/Models/T5 qyfan@hpc-login-01:~/code/ChartQA-main/Models/T5$ source activate (base) qyfan@hpc-login-01:~/code/ChartQA-main/Models/T5$ conda activate ChartQA (ChartQA) qyfan@hpc-login-01:~/code/ChartQA-main/Models/T5$ ls predict_test.sh punkt result run_T5.py t5-base train_test.sh (ChartQA) qyfan@hpc-login-01:~/code/ChartQA-main/Models/T5$ python Python 3.9.18 | packaged by conda-forge | (main, Aug 30 2023, 03:49:32) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import nltk >>> nltk.download("punkt") [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> False >>> nltk.data.find("tokenizers/punkt") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/nltk/data.py", line 583, in find raise LookupError(resource_not_found) LookupError: ********************************************************************** Resource punkt not found. Please use the NLTK Downloader to obtain the resource:
>>> import nltk >>> nltk.download('punkt') For more information see: https://www.nltk.org/data.html
Attempted to load tokenizers/punkt
Searched in: - '/home/qyfan/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/share/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/lib/nltk_data' - '/usr/share/nltk_data' - '/usr/local/share/nltk_data' - '/usr/lib/nltk_data' - '/usr/local/lib/nltk_data' **********************************************************************
>>> /home/qyfan/nltk_data File "<stdin>", line 1 /home/qyfan/nltk_data ^ SyntaxError: invalid syntax >>> nltk.data.find("tokenizers/punkt") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/nltk/data.py", line 583, in find raise LookupError(resource_not_found) LookupError: ********************************************************************** Resource punkt not found. Please use the NLTK Downloader to obtain the resource:
>>> import nltk >>> nltk.download('punkt') For more information see: https://www.nltk.org/data.html
Attempted to load tokenizers/punkt
Searched in: - '/home/qyfan/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/share/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/lib/nltk_data' - '/usr/share/nltk_data' - '/usr/local/share/nltk_data' - '/usr/lib/nltk_data' - '/usr/local/lib/nltk_data' **********************************************************************
>>> /home/qyfan/nltk_data KeyboardInterrupt >>> nltk.data.find("tokenizers/punkt") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/nltk/data.py", line 583, in find raise LookupError(resource_not_found) LookupError: ********************************************************************** Resource punkt not found. Please use the NLTK Downloader to obtain the resource:
>>> import nltk >>> nltk.download('punkt') For more information see: https://www.nltk.org/data.html
Attempted to load tokenizers/punkt
Searched in: - '/home/qyfan/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/share/nltk_data' - '/home/qyfan/anaconda3/envs/ChartQA/lib/nltk_data' - '/usr/share/nltk_data' - '/usr/local/share/nltk_data' - '/usr/lib/nltk_data' - '/usr/local/lib/nltk_data' **********************************************************************
>>> exit() (ChartQA) qyfan@hpc-login-01:~/code/ChartQA-main/Models/T5$ python Python 3.9.18 | packaged by conda-forge | (main, Aug 30 2023, 03:49:32) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import nltk >>> nltk.data.find("./punkt") FileSystemPathPointer('/home/qyfan/nltk_data/punkt') >>> exit() (ChartQA) qyfan@hpc-login-01:~/code/ChartQA-main/Models/T5$ srun --gres=gpu:tesla_v100s-pcie-32gb:1 --pty bash -i qyfan@gpu12:~/code/ChartQA-main/Models/T5$ source activate (base) qyfan@gpu12:~/code/ChartQA-main/Models/T5$ conda activate ChartQA (ChartQA) qyfan@gpu12:~/code/ChartQA-main/Models/T5$ sh predict_test.sh model_arg: ModelArguments(model_name_or_path='t5-base', config_name=None, tokenizer_name=None, cache_dir=None, use_fast_tokenizer=True, model_revision='main', use_auth_token=False, resize_position_embeddings=None) data_args: DataTrainingArguments(dataset_name=None, dataset_config_name=None, text_column='Input', summary_column='Output', train_file=None, validation_file=None, test_file='/home/qyfan/code/ChartQA-main/Figures-and-Examples/T5andVL-T5InputFileExamples.csv', overwrite_cache=False, preprocessing_num_workers=None, max_source_length=512, max_target_length=128, val_max_target_length=128, pad_to_max_length=False, max_train_samples=None, max_eval_samples=None, max_predict_samples=None, num_beams=None, ignore_pad_token_for_loss=True, source_prefix='') training_args Seq2SeqTrainingArguments( _n_gpu=1, adafactor=False, adam_beta1=0.9, adam_beta2=0.999, adam_epsilon=1e-08, auto_find_batch_size=False, bf16=False, bf16_full_eval=False, data_seed=None, dataloader_drop_last=False, dataloader_num_workers=0, dataloader_pin_memory=True, ddp_backend=None, ddp_broadcast_buffers=None, ddp_bucket_cap_mb=None, ddp_find_unused_parameters=None, ddp_timeout=1800, debug=[], deepspeed=None, disable_tqdm=False, dispatch_batches=None, do_eval=False, do_predict=True, do_train=False, eval_accumulation_steps=None, eval_delay=0, eval_steps=None, evaluation_strategy=no, fp16=False, fp16_backend=auto, fp16_full_eval=False, fp16_opt_level=O1, fsdp=[], fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_grad_ckpt': False}, fsdp_min_num_params=0, fsdp_transformer_layer_cls_to_wrap=None, full_determinism=False, generation_config=None, generation_max_length=None, generation_num_beams=None, gradient_accumulation_steps=1, gradient_checkpointing=False, gradient_checkpointing_kwargs=None, greater_is_better=None, group_by_length=False, half_precision_backend=auto, hub_always_push=False, hub_model_id=None, hub_private_repo=False, hub_strategy=every_save, hub_token=<HUB_TOKEN>, ignore_data_skip=False, include_inputs_for_metrics=False, include_tokens_per_second=False, jit_mode_eval=False, label_names=None, label_smoothing_factor=0.0, learning_rate=5e-05, length_column_name=length, load_best_model_at_end=False, local_rank=0, log_level=passive, log_level_replica=warning, log_on_each_node=True, logging_dir=result/runs/Dec10_00-28-05_gpu12, logging_first_step=False, logging_nan_inf_filter=True, logging_steps=500, logging_strategy=steps, lr_scheduler_type=linear, max_grad_norm=1.0, max_steps=-1, metric_for_best_model=None, mp_parameters=, neftune_noise_alpha=None, no_cuda=False, num_train_epochs=3.0, optim=adamw_torch, optim_args=None, output_dir=result, overwrite_output_dir=False, past_index=-1, per_device_eval_batch_size=192, per_device_train_batch_size=8, predict_with_generate=True, prediction_loss_only=False, push_to_hub=False, push_to_hub_model_id=None, push_to_hub_organization=None, push_to_hub_token=<PUSH_TO_HUB_TOKEN>, ray_scope=last, remove_unused_columns=True, report_to=[], resume_from_checkpoint=None, run_name=result, save_on_each_node=False, save_safetensors=True, save_steps=500, save_strategy=steps, save_total_limit=None, seed=42, skip_memory_metrics=True, sortish_sampler=False, split_batches=False, tf32=None, torch_compile=False, torch_compile_backend=None, torch_compile_mode=None, torchdynamo=None, tpu_metrics_debug=False, tpu_num_cores=None, use_cpu=False, use_ipex=False, use_legacy_prediction_loop=False, use_mps_device=False, warmup_ratio=0.0, warmup_steps=0, weight_decay=0.0, ) 12/10/2023 00:28:05 - WARNING - __main__ - Process rank: 0, device: cuda:0, n_gpu: 1distributed training: True, 16-bits training: False /home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/models/t5/tokenization_t5_fast.py:160: FutureWarning: This tokenizer was incorrectly instantiated with a model max length of 512 which will be corrected in Transformers v5. For now, this behavior is kept to avoid breaking backwards compatibility when padding/encoding with `truncation is True`. - Be aware that you SHOULD NOT rely on t5-base automatically truncating your input to 512 when padding/encoding. - If you want to encode/pad to sequences longer than 512 you can either instantiate this tokenizer with `model_max_length` or pass `max_length` when encoding/padding. - To avoid this warning, please instantiate this tokenizer with `model_max_length` set to your preferred value. warnings.warn( [WARNING|logging.py:314] 2023-12-10 00:28:10,765 >> You're using a T5TokenizerFast tokenizer. Please note that with a fast tokenizer, using the `__call__` method is faster than using a method to encode the text followed by a call to the `pad` method to get a padded encoding. 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████| 157/157 [10:07<00:00, 2.75s/it]Traceback (most recent call last): File "/home/qyfan/code/ChartQA-main/Models/T5/run_T5.py", line 650, in <module> main() File "/home/qyfan/code/ChartQA-main/Models/T5/run_T5.py", line 605, in main predict_results = trainer.predict( File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/trainer_seq2seq.py", line 228, in predict return super().predict(test_dataset, ignore_keys=ignore_keys, metric_key_prefix=metric_key_prefix) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/trainer.py", line 3087, in predict output = eval_loop( File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/trainer.py", line 3304, in evaluation_loop metrics = self.compute_metrics(EvalPrediction(predictions=all_preds, label_ids=all_labels)) File "/home/qyfan/code/ChartQA-main/Models/T5/run_T5.py", line 537, in compute_metrics decoded_preds = tokenizer.batch_decode(preds, skip_special_tokens=True) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/tokenization_utils_base.py", line 3706, in batch_decode return [ File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/tokenization_utils_base.py", line 3707, in <listcomp> self.decode( File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/tokenization_utils_base.py", line 3746, in decode return self._decode( File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/transformers/tokenization_utils_fast.py", line 625, in _decode text = self._tokenizer.decode(token_ids, skip_special_tokens=skip_special_tokens) OverflowError: out of range integral type conversion attempted 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████| 157/157 [10:08<00:00, 3.87s/it] [2023-12-10 00:38:28,013] torch.distributed.elastic.multiprocessing.api: [ERROR] failed (exitcode: 1) local_rank: 0 (pid: 2410039) of binary: /home/qyfan/anaconda3/envs/ChartQA/bin/python Traceback (most recent call last): File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/run.py", line 810, in <module> main() File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 346, in wrapper return f(*args, **kwargs) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/run.py", line 806, in main run(args) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/run.py", line 797, in run elastic_launch( File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 134, in __call__ return launch_agent(self._config, self._entrypoint, list(args)) File "/home/qyfan/anaconda3/envs/ChartQA/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 264, in launch_agent raise ChildFailedError( torch.distributed.elastic.multiprocessing.errors.ChildFailedError: ============================================================ run_T5.py FAILED ------------------------------------------------------------ Failures: <NO_OTHER_FAILURES> ------------------------------------------------------------ Root Cause (first observed failure): [0]: time : 2023-12-10_00:38:28 host : gpu12.cluster.com rank : 0 (local_rank: 0) exitcode : 1 (pid: 2410039) error_file: <N/A> traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html ============================================================ (ChartQA) qyfan@gpu12:~/code/ChartQA-main/Models/T5$
|