Skip to content

Instantly share code, notes, and snippets.

@vuiseng9
Created February 25, 2022 23:57
Show Gist options
  • Save vuiseng9/bbcda6ce9bac2274a3beccbf996d2d54 to your computer and use it in GitHub Desktop.
Save vuiseng9/bbcda6ce9bac2274a3beccbf996d2d54 to your computer and use it in GitHub Desktop.

OpenVINO BERT/QA Demo

The following docker image is canned after following the demo guide here. https://docs.openvino.ai/latest/omz_demos_bert_question_answering_demo_python.html

launch docker runtime (detach mode)

container=vuiseng9/ov-ubt18_data_dev:2021.4.2-bert-pydemo

docker run -it \
    -d \
    --init \
    --privileged \
    -v ${HOME}:/hosthome \
    --shm-size 8G \
    ${container} bash

goto a terminal of the runtime above, run the following

cd /opt/intel/openvino_2021.4.752/deployment_tools/open_model_zoo/demos/bert_question_answering_demo/python/
./run_demo.sh

# ask some questions
who is bert?
@vuiseng9
Copy link
Author

vuiseng9 commented Mar 9, 2022

pip install openvino-dev==2022.1.0.dev20220302
or
https://test.pypi.org/project/openvino-dev/2022.1.0.dev20220224/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment