Skip to main content

BentoML artifact framework for the Torchmoji Model

Project description

torchmojiartifact

BentoML artifact framework for the Torchmoji Model.

Installation:

pip install torchmojiartifact==0.0.1

Usage example (decorate service):

from torchmojiartifact.TorchmojiModelArtifact import TorchmojiModelArtifact

@artifacts([TorchmojiModelArtifact('emojify')])
class MyBentoService(BentoService):

Usage example (package model):

svc = MyBentoService()

svc.pack('emojify', model_path)

Alternatively, during training:

svc.pack('emojify', {'state_dict': my_state_dict, 'emoji_list': my_emoji_list, 'pax_list': my_pax_list, 'vocabulary': my_vocab})

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

torchmojiartifact-0.0.4.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

torchmojiartifact-0.0.4-py3-none-any.whl (2.7 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