allenai / allennlp-demo

Code for the AllenNLP demo.
https://demo.allennlp.org
Apache License 2.0
195 stars 79 forks source link

NAQANET results are non-deterministic #485

Open aimichal opened 4 years ago

aimichal commented 4 years ago

There are two pods running the NAQANet model, and they each consistently return different results. For example, pod allennlp-demo-api-naqanet-prod-597f89dc7f-7bwhw returns with answer.value = game, players direct a nasce..., while pod allennlp-demo-api-naqanet-prod-597f89dc7f-hq96x returns answer.value = real-life orbital maneuvers.

As a result, querying the load-balanced endpoint https://demo.allennlp.org/api/naqanet/predict results in either of these two results being returned.

root@allennlp-demo-api-naqanet-prod-597f89dc7f-7bwhw:/app# curl -s http://localhost:8000/predict -H 'Content-Type: application/json' --data-raw '{"model":"naqanet","passage":"Kerbal Space Program (KSP) is a space flight simulation video game developed and published by Squad for Microsoft Windows, OS X, Linux, PlayStation 4, Xbox One, with a Wii U version that was supposed to be released at a later date. The developers have stated that the gaming landscape has changed since that announcement and more details will be released soon. In the game, players direct a nascent space program, staffed and crewed by humanoid aliens known as \"Kerbals\". The game features a realistic orbital physics engine, allowing for various real-life orbital maneuvers such as Hohmann transfer orbits and bi-elliptic transfer orbits.","question":"What does the physics engine allow for?"}' | grep -o 'value...............................'
value":"game, players direct a nasce

root@allennlp-demo-api-naqanet-prod-597f89dc7f-hq96x:/app# curl -s http://localhost:8000/predict -H 'Content-Type: application/json' --data-raw '{"model":"naqanet","passage":"Kerbal Space Program (KSP) is a space flight simulation video game developed and published by Squad for Microsoft Windows, OS X, Linux, PlayStation 4, Xbox One, with a Wii U version that was supposed to be released at a later date. The developers have stated that the gaming landscape has changed since that announcement and more details will be released soon. In the game, players direct a nascent space program, staffed and crewed by humanoid aliens known as \"Kerbals\". The game features a realistic orbital physics engine, allowing for various real-life orbital maneuvers such as Hohmann transfer orbits and bi-elliptic transfer orbits.","question":"What does the physics engine allow for?"}' | grep -o 'value...............................'
value":"real-life orbital maneuvers"
aimichal commented 4 years ago

Some thoughts: