Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xenova
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
xenova
4y ago
Here is the full list of available models: https://huggingface.co/Xenova/transformers.js/tree/main/quan... As I mentioned in another comment, the library just allows the models to be run in the browser.
32.
▲
by
xenova
4y ago
Yes, there are some workarounds you can do to get it working in non-browser environments. I do aim to get a permanent solution, which will ideally work out-of-the-box for both browser and node/deno environments. Some other users also r
33.
▲
by
xenova
4y ago
Currently the library only runs on the CPU (it's only a few weeks old). WebGPU support is planned though (which releases soon [1]) [1] https://groups.google.com/a/chromium.org/g/blink-dev/c/Vomz
34.
▲
by
xenova
4y ago
As shown in the demo video (on GitHub [1], or Twitter [2]), you do get that result sometimes (with randomness) Using greedy sampling (sample=false and top_k=0) you get "Bonjour, comment êtes-vous?", which appears to be a very dire
35.
▲
by
xenova
4y ago
Right - currently, everything runs using WASM (32-bit, with 64-bit coming soon [1,2]), and I plan to add support for WebGPU soon! (WebGPU is the successor to WebGL, which is coming out in April 2023 [3]) [1] https://github.com&#x
36.
▲
by
xenova
4y ago
Hi! Creator of the library here. If you change the generation parameters to be greedy (i.e., sample=no and top_k=0), you will get "Bonjour, comment êtes-vous?" The top_k and sample generation parameters are just there to show that
37.
▲
by
xenova
4y ago
Hi everyone! Creator of Transformers.js here :) ... Thanks so much to everyone for sharing! It's awesome to see the positive feedback from the community. As you'll see from the demo, everything runs inside the browser! As of 2023&
38.
▲
by
xenova
4y ago
Hi there! Creator of Transformers.js here :) I think it's worth pointing out that the library just gets the models working in the browser. The correctness of the translation is dependent on the model itself. If you run the model using