Skip to main content

BentoML artifact framework for TensorFlow Hub models

Project description

tfhubartifact

BentoML artifact framework for TensorFlow Hub models.

Installation:

pip install tfhubartifact==0.0.1

Usage example (decorate service):

from tfhubartifact.TensorFlowHubModelArtifact import TensorFlowHubModelArtifact

@artifacts([TensorFlowHubModelArtifact('embedder')])
class MyBentoService(BentoService):

Usage example (package model):

svc = MyBentoService()

svc.pack('embedder', my_embedding_model_path)

Alternatively, during training:

svc.pack('embedder', {'embedder': my_embedder})

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

tfhubartifact-0.0.6.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

tfhubartifact-0.0.6-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

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