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

finetune with fixed context_length and pred_length #75

Open
NaNYeYuan opened this issue Jun 19, 2024 · 2 comments
Open

finetune with fixed context_length and pred_length #75

NaNYeYuan opened this issue Jun 19, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@NaNYeYuan
Copy link

I am trying to finetune with fixed context_length and pred_length via loading train data with SimpleEvalDatasetBuilder.
However, the eval prediction result is extraordinarily large.
What's right way to finetune with fixed context_length and pred_length?

@NaNYeYuan
Copy link
Author

By the way, how to get prediction result from a raw sequence list?

@chenghaoliu89
Copy link
Contributor

Hi @NaNYeYuan sorry for the late response.

The default_train_transfrom define the data processing pipeline. If you want fixed context_length and pred_length, I would suggest you to modify MaskedPrediction Class, which originally randomly sample the prediction length and context length.

It seems to be a common feature for model fine-tuning, we will implement the FixedMaskedPrediction in the future.

@chenghaoliu89 chenghaoliu89 added the enhancement New feature or request label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants