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
Built Distribution
File details
Details for the file torchmojiartifact-0.0.4.tar.gz
.
File metadata
- Download URL: torchmojiartifact-0.0.4.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 901a98f4bbd8e4f8703ee980ec188443e8f2ea974d092d9029cc2b0becf1ee5f |
|
MD5 | 0756c7984a336eae82944d73ad993efd |
|
BLAKE2b-256 | 4f66831253206b9e9f8d7ca497478f91a83d860ecd071a50c98a1fba9f4edb4a |
File details
Details for the file torchmojiartifact-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: torchmojiartifact-0.0.4-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cb669bed66b14cb4c11be51b89b28e17147b7027bb70091355466a9d4642e7c |
|
MD5 | 69e2ad5f099ba0612e187adea1565683 |
|
BLAKE2b-256 | d8451d5e20e3aac598bf8d6b5db54ed021ec8479aaff5ad42596061e271570a6 |