I agree. This advice should not be ignored; and if the OP is complaining about performance, the answer is lying here in plain sight.
Re:Deep Learning in JavaScript
by eduardoleao052 on Friday March 29, 2024 @02:13AM
(#39861166)
I had read about this as a possibility, but will definitely look more into it now, thank you for the tip!
See: https://github.com/xenova/transformers.js/blob/8804c36591d11...
This is really old, but added as part of the shape of the vector as well: https://github.com/nicolaspanel/numjs/blob/master/src/dtypes...