rindow / rindow-neuralnetworks

Neural networks library for machine learning on PHP
https://rindow.github.io/neuralnetworks
BSD 3-Clause "New" or "Revised" License
78 stars 10 forks source link

How to implement this type of "Transformer" machine learning model with the "rindow-neuralnetworks" Package ??? #3

Open chegmarco1989 opened 1 year ago

chegmarco1989 commented 1 year ago

Hi.

Please, we don't see in the documentation of rindow/rindow-neuralnetworks, the implementation of the Transformer machine learning model ( https://en.wikipedia.org/wiki/Transformer_(machine_learning_model) ).

So how to implement this type of Transformer machine learning model in PHP with the rindow/rindow-neuralnetworks Package ???

Thank you for directing us or giving us the link of the documentation that explains it. Awaiting your reply.

yuichiis commented 1 year ago

Hi

I have never implemented a transformer.

Here's how to create a custom model.

An example implementation of transformer by tensorflow is below

Please let me know if you can implement it.

However, there are still few functions that can be used for automatic differentiation, so “rindow” may not have enough functions.