A general purpose framework (written in Go) to serve TensorFlow models. It provides reach and flexible set of APIs to efficiently access your favorite TF models via HTTP interface. The TFaaS supports JSON and ProtoBuffer data-formats.
The following set of APIs is provided:
/upload to push your favorite TF model to TFaaS server/delete to delete your TF model from TFaaS server/models to view existing TF models on TFaaS server/json to serve TF model predictions in JSON data-format/proto to serve TF model predictions in ProtoBuffer data-formatdocker run --rm -h `hostname -f` -p 8083:8083 -i -t veknet/tfaas
curl -X POST http://localhost:8083/upload
-F 'name=ImageModel' -F 'params=@/path/params.json'
-F 'model=@/path/tf_model.pb' -F 'labels=@/path/labels.txt'
curl https://localhost:8083/image -F 'image=@/path/file.png' -F 'model=ImageModel'
Fore more information please visit curl client page.
Clients communicate with TFaaS via HTTP protocol. See examples for Curl, Python and C++ clients.
Benchmark results on CentOS, 24 cores, 32GB of RAM serving DL NN with 42x128x128x128x64x64x1x1 architecture (JSON and ProtoBuffer formats show similar performance):
For more information please visit bencmarks page.
Content type
Image
Digest
Size
1.8 GB
Last updated
over 7 years ago
docker pull veknet/tfaas-public