问HN:Tensorflow.js 死了吗?
从提交活动来看,自2023年底以来似乎几乎处于停滞状态,新问题也大多被忽视。这是被遗弃了,还是说已经“成熟”了呢?文档中仍然有很多“未来工作”的参考,所以我认为它只是被遗弃了。
这很可惜,因为它仍然是唯一一个在浏览器中提供良好实现的库,包括:
* 数值N维张量
* 多种后端(CPU、WebGPU、WASM、WebGL)
* 自动求导
所有进行大语言模型(LLM)和其他机器学习应用的人都只在浏览器中进行推理,因此他们对来自其他框架的ONNX导出感到满意。但这并不涵盖在浏览器中进行优化并在JS/TS中创建自定义模型的用例。我甚至不需要所有的层和神经网络的内容。只需要一个干净的张量+自动求导库,并且支持TypeScript。
查看原文
Looking at the commit activity it seems pretty much dead since late 2023, and new issues are largely ignored. Is it abandoned or just "mature"? There's still a lot of "future work" references in the doc, so I think it's just abandoned.<p>It's a shame because it's still the only library out there that provides a good implementation of:<p>* numerical N-dimensional tensors in the browser<p>* multiple backends (cpu, webgpu, wasm, webgl)<p>* autograd<p>Everyone doing LLM and other ML applications is doing inference only in the browser, and so they are happy with ONNX exports from other frameworks. But this doesn't cover the use case where you want to do optimization in the browser and create custom models in JS/TS. I don't even need all the layer and NN stuff. Just a clean tensor+autograd library with typescript support.