transformers-js icon indicating copy to clipboard operation
transformers-js copied to clipboard

What would it take to allow further training of pretrained models in the browser?

Open ai-nonbeliever opened this issue 2 years ago • 2 comments

First of all, let me start by complimenting your amazing work.

I am trying to learn AI/ML for the job market. Transformer models seem to be the state-of-the-art AI models, and your work just made it more accessible to everyone.

This is not a bug report, rather it is a question.

I think that it will be great if these pretrained models could be further trained using the browser interface as well. I am wondering whether an additional few series of training data, perhaps a series of questions and answers (may be like initially some text around 10kb in size) can be used to further train a model with some reasonable amount of time and compute power, in the browser itself.

Do you think it is possible, and if yes then do you have a plan to make this feature and user interface, a part of this project?

ai-nonbeliever avatar Sep 16 '22 13:09 ai-nonbeliever

It's possible, yes. The ONNX runtime (which I use) does not have good training support, but tensorflow-js does. I haven't tried training a language model in the browser. I can guarantee it will be slow. :-) Would be interesting to see how long it takes to get accuracy gains from that fine-tuning training.

praeclarum avatar Oct 13 '22 01:10 praeclarum

Hi, can we run training in nodejs?

bitdom8 avatar Jan 14 '23 09:01 bitdom8