# T5 trained with seq2seq method

**URL:** <https://discuss.huggingface.co/t/t5-trained-with-seq2seq-method/44598>\
**Category:** 🤗Transformers\
**Created:** [June 26, 2023, 11:40am UTC](https://discuss.huggingface.co/t/t5-trained-with-seq2seq-method/44598 "2023-06-26T11:40:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venom321](https://avatars.discourse-cdn.com/v4/letter/v/97f17d/32.png) [@Venom321](https://discuss.huggingface.co/u/Venom321)\
**Post date:** [June 26, 2023, 11:40am UTC](https://discuss.huggingface.co/t/t5-trained-with-seq2seq-method/44598/1 "2023-06-26T11:40:39Z")

</div>

spiece.model file is not present upon saving the model after training .

I used this

python run\_seq2seq\_qa.py --model\_name\_or\_path t5-small --dataset\_name squad\_v2 --context\_column context --question\_column question --answer\_column answers --do\_train --do\_eval --per\_device\_train\_batch\_size 12 --learning\_rate 3e-5 --num\_train\_epochs 1 --max\_seq\_length 384 --doc\_stride 128 --output\_dir /trained\_model/debug\_seq2seq\_squad/ --max\_train\_samples 50 --max\_eval\_samples 50

to run the run\_seq2seq\_qa.py from transformers git examples but cannot be used for inferencing.
