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

How to add new words during fine-tuning? #2467

Open
srdfjy opened this issue Apr 10, 2024 · 2 comments
Open

How to add new words during fine-tuning? #2467

srdfjy opened this issue Apr 10, 2024 · 2 comments

Comments

@srdfjy
Copy link
Contributor

srdfjy commented Apr 10, 2024

Hi,a pre-trained model's unit.txt contains 1000 words. When fine-tuning based on this pre-trained model, there are 10 new words not in the unit.txt. At this point, adding these 10 new words to the end of unit.txt and assigning them new numbers, is this approach feasible?

@fclearner
Copy link
Contributor

freeze other modules except the outputlayer(ctc output && attention decoder output), add new words to your unit.txt ,modify the output size and then tune the model

@srdfjy
Copy link
Contributor Author

srdfjy commented May 6, 2024

THX @fclearner,I will try out what you suggested later.

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