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.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for tfhubartifact-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e1595849f834d2fc6e418b11b9a70eae6d3934a7402393af75c4c5172959568 |
|
MD5 | 8532d2692a4248b18b332d4683e33909 |
|
BLAKE2b-256 | bbe271dccdf1c42fa2772ce333898e9fb21bd6ca967da9b0068f54ae0f2de712 |