Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the task string necessary? #2

Closed
nikogamulin opened this issue Jun 22, 2021 · 1 comment
Closed

Is the task string necessary? #2

nikogamulin opened this issue Jun 22, 2021 · 1 comment

Comments

@nikogamulin
Copy link

Hi,

I have fine-tuned the model to write a compliment for a person, given the person's profile and it works pretty well. In the training examples, I haven't prepended the string 'summarize :' to the source_string column entries. Is it necessary (does it lead to better results) to prepend the string indicating the task?

@Shivanandroy
Copy link
Owner

Shivanandroy commented Jun 23, 2021

For fine-tuning a T5 model, we add “prefix”, to assist multi-task training . In your case, as you are training on single task, so the prefix is not necessary.

Based on my experiments, I found that if you training for a task which T5 was earlier pre-trained on, for e.g. summarization or translation, adding a prefix, might make sense as it is going to converge slightly faster. That's it. But no impact on the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants