You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with the same as the training arguments
but it isn't providing any datasets to the fake trainer
but because my script defines eval_strategy to anything other than no, and because WanDB reporting is defined
it throws the following error at the end of the training
105 File "/home/mazuze/NLP/Hebrew-LLM-Eval/sentence_ordering/train_model.py", line 278, in main
106 trainer.train()
107 File "/home/mazuze/.conda/envs/coherence/lib/python3.11/site-packages/transformers/trainer.py", line 2123, in train
108 return inner_training_loop(
109 ^^^^^^^^^^^^^^^^^^^^
110 File "/home/mazuze/.conda/envs/coherence/lib/python3.11/site-packages/transformers/trainer.py", line 2635, in _inner_training_loop
111 self.control = self.callback_handler.on_train_end(args, self.state, self.control)
112 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113 File "/home/mazuze/.conda/envs/coherence/lib/python3.11/site-packages/transformers/trainer_callback.py", line 471, in on_train_end
114 return self.call_event("on_train_end", args, state, control)
115 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116 File "/home/mazuze/.conda/envs/coherence/lib/python3.11/site-packages/transformers/trainer_callback.py", line 518, in call_event
117 result = getattr(callback, event)(
118 ^^^^^^^^^^^^^^^^^^^^^^^^^
119 File "/home/mazuze/.conda/envs/coherence/lib/python3.11/site-packages/transformers/integrations/integration_utils.py", line 919, in on_train_end
120 fake_trainer = Trainer(args=args, model=model, processing_class=tokenizer)
121 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122 File "/home/mazuze/.conda/envs/coherence/lib/python3.11/site-packages/transformers/utils/deprecation.py", line 165, in wrapped_func
123 return func(*args, **kwargs)
124 ^^^^^^^^^^^^^^^^^^^^^
125 File "/home/mazuze/.conda/envs/coherence/lib/python3.11/site-packages/transformers/trainer.py", line 418, in __init__
126 raise ValueError(
127 ValueError: You have set `args.eval_strategy` to IntervalStrategy.EPOCH but you didn't pass an `eval_dataset` to `Trainer`. Either set `args.eval_strategy` to `no` or pass an `eval_dataset`.
Expected behavior
To not throw an exception and run the "on training end" successfully
The text was updated successfully, but these errors were encountered:
System Info
transformers
version: 4.46.2Who can help?
@muellerzr @SunMarc
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
(I reduced the code to the relevant parts)
The issue is when reporting to WanDB, the callback at the following line of code
transformers/src/transformers/integrations/integration_utils.py
Line 919 in ccbd57a
creates a fake trainer
with the same as the training arguments
but it isn't providing any datasets to the fake trainer
but because my script defines
eval_strategy
to anything other thanno
, and because WanDB reporting is definedit throws the following error at the end of the training
Expected behavior
To not throw an exception and run the "on training end" successfully
The text was updated successfully, but these errors were encountered: