Skip to main content

easy to use bert with nvidia triton server

Project description

It is easy to use bert in triton now. Algorithm Engineer only need to focus to write proprocess function to make his model work.

pls see examples

install dependency

poetry shell poetry install

run examples

run triton server

# for example
docker run -d  --name triton-server   --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864  --rm -p 8000:8000 -p 8001:8001 -p 8002:8002 -v /home/yanyongwen712/triton_models:/models  nvcr.io/nvidia/tritonserver::22.08-py3 tritonserver --model-repository=/models  --model-control-mode=poll  --exit-on-error=false --log-verbose 1
# configure triton model folder

prepare model for triton server

cd examples
python save_model_for_triton_server.py
# sftp put examples/model/cpu/xxx triton_server_model_folder
docker logs -f trition-server    
# check whether it is loaded successfully

prepare PG with pgvector extension

...

run example

# change triton server ip , triton model name and local transformer model folder
python retrieval_pgvector.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

triton_bert-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

triton_bert-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file triton_bert-0.1.0.tar.gz.

File metadata

  • Download URL: triton_bert-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/22.5.0

File hashes

Hashes for triton_bert-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6f127d9b42f51d4f5af34c2ba8a3b80f69464a35ce711f19159dba88483eaada
MD5 07ad04be3693fa3d64508260122d6a6a
BLAKE2b-256 e33ba75b5df5bf1d310b8e9c32719edf1e98c079015419d2c3fb7587e247c898

See more details on using hashes here.

File details

Details for the file triton_bert-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: triton_bert-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/22.5.0

File hashes

Hashes for triton_bert-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6bb9da5de9a6ac4aa082210cc690470be4317bafe606ca649f92c7c7356e454c
MD5 c0f0806a504f47ec285ea57fa13541da
BLAKE2b-256 1abce46a21d24fb0a97fb84349691a90d6bd8d654d3c1ba450af75472e27b3da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page