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.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for tfhubartifact-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64c2724b8fe1201ab2c9b4774d1f6386c9ffbc5df65bca01fbd6c731eebe307b |
|
MD5 | 0cc948b8d8fc3b494539027b84e62e75 |
|
BLAKE2b-256 | 07aac4fb3cef43c8f82b3099b66b13e14f4a65229f01e527efbc0b42093bdfba |