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

Support finetuning (with Transformers) #117

Closed
bagustris opened this issue Apr 27, 2024 · 2 comments
Closed

Support finetuning (with Transformers) #117

bagustris opened this issue Apr 27, 2024 · 2 comments

Comments

@bagustris
Copy link
Collaborator

bagustris commented Apr 27, 2024

Nowadays, fine-tuning is more prominent in speech processing by taking advantage of other already trained models.
Current Nkululeko only used pre-trained model as feature extractor. It would be very useful if Nkululeko could do finetuning just in one command with a given INI config file (ref [1]).

Possible Solution
Either make finetuning as new key in [model] category (inside INI file) or create new module, e.g., nkululeko.finetuning.
required arguments: base_model (or from_model), push_to_hub (later?)
optional arguments: learning_rate, epochs, batch_size, etc (maybe use default first)

The biggest challenge may be to connect Nkululeko's own (CSV) dataset with Transformers [2], since Transformers finetuning only accept audio in HF Dataset format (just the format, no need to upload the dataset to the Hub).

[1] https://huggingface.co/learn/audio-course/en/chapter4/fine-tuning
[2] https://discuss.huggingface.co/t/loading-custom-audio-dataset-and-fine-tuning-model/8836/5

@felixbur
Copy link
Owner

agreed

@felixbur
Copy link
Owner

first version implemented: 0.85.0
only classification so far

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