tfjs-models/qna demo fails

Created on 28 Aug 2020  路  6Comments  路  Source: tensorflow/tfjs

Current version of https://github.com/tensorflow/tfjs-models/tree/master/qna "findAnswers" outputs empty array, and running demo does not yield any answer,
On the other hand, the same demo on google hosted demo page yields answers for the same question.

Difference between scripts in demo page source on google () and equivalent produced running demo from github repo is large.

As a matter of fact, I would appreciate, if someone can direct me how to download version that runs on google as a library that can be used, regardless of version.

TensorFlow.js version: both 2.3.0, & 1.5.2

Browser version: both Firefox 80 & Chrome 84

models bug

All 6 comments

Current version of https://github.com/tensorflow/tfjs-models/tree/master/qna "findAnswers" outputs empty array

See #3858 which seems similar, because it also outputs just empty array.

Version in https://github.com/tensorflow/tfjs-models/tree/244d4cdc6eee673ab1d03baccdb06db26bde86fa when extracted from built demo (whole set of steps on stackoverflow) works as expected, even with @tensorflow/tfjs v.2.3.0.

What caused, I the problem, I do not know. Nevertheless, I appreciate GitHub history, which resolved my problem.

It seems like pinning @tensorflow-models/qna to version 1.0.0-alpha1 makes it work. I'm not sure what changed between that version and 1.0.0, is anyone more knowledgeable than me able to take a look?

I'm using @tensorflow/tfjs v.2.3.0 too, in case it matters.

@sivi @guimcaballero There are some difference with the model itself between the version. the alpha is trained on squad 1.0 dataset while 1.0.0 is trained on squad 2.0.
I have tried the demo with the latest tfjs 2.3.0 build, it works for the question I asked.
Can you help with a codepen example with the question you asked that produce the empty answers? This would help us to reproduce the problem. thanks.

FYI the demo at: https://storage.googleapis.com/tfjs-models/demos/mobilebert-qna/index.html is broken now due to:

Error: 'multiply' not yet implemented or not found in the registry. This kernel may not be supported by the tfjs backend you have chosen

Full console trace:

Uncaught (in promise) Error: 'multiply' not yet implemented or not found in the registry. This kernel may not be supported by the tfjs backend you have chosen
    at av (tfjs:17)
    at t.multiply (tfjs:17)
    at Bt.runKernelFunc.a (demo.e31bb0bc.js:12672)
    at tfjs:17
    at tfjs:17
    at e.t.scopedRun (tfjs:17)
    at e.t.tidy (tfjs:17)
    at p (tfjs:17)
    at tfjs:17
    at e.t.scopedRun (tfjs:17)

@pyu10055 @jasonmayes can you please help fix the above issue.

Was this page helpful?
0 / 5 - 0 ratings