-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Description
System Info
- `transformers` version: 4.31.0.dev0
- Platform: macOS-12.5.1-arm64-arm-64bit
- Python version: 3.8.16
- Huggingface_hub version: 0.14.1
- Safetensors version: 0.3.1
- PyTorch version (GPU?): 2.0.1 (False)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: No
- Using distributed or parallel set-up in script?: No
Who can help?
Information
- The official example scripts
- My own modified scripts
Tasks
- An officially supported task in the
examplesfolder (such as GLUE/SQuAD, ...) - My own task or dataset (give details below)
Reproduction
- use transformers examples code on summarization (or any other)
- Pass multiple evaluation dataset as follows when running the code. This should be supported as documented here.
python examples/pytorch/summarization/run_summarization.py \
--model_name_or_path t5-small \
--do_train \
--do_eval \
--train_file "a.txt" "b.txt" \
--validation_file "a_valid.txt" "b_valid.txt"
Expected behavior
The example code should not meet an error when trainer.evaluate is called, which is either 1) inte·mittently during training and 2) at the end of the training.
During the training, Trainer checks if the the passed eva_dataset consists of multiple or not. Since this line is missing in the 2) at the end of training evaluation case, this meets an error. I'd be happy to make a PR on this :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels