BentoML artifact framework for simpletransformers
Project description
simplexfmrartifact
BentoML artifact framework for simpletransformers.
Installation:
pip install simplexfmrartifact==0.0.4
Usage example (decorate service):
from simplexfmrartifact.simpletransformers import SimpleTransformersModelArtifact
@artifacts([SimpleTransformersModelArtifact('tm_train3_roberta_l_weigh')])
class MyBentoService(BentoService):
Usage example (package model):
svc = MyBentoService()
opts = {
'classpackage': 'simpletransformers.classification',
'classname': 'MultiLabelClassificationModel',
'num_labels': 33,
'args': {
'use_multiprocessing': False,
'silent': True
}
}
svc.pack('tm_train3_roberta_l_weigh', model_path, opts)
Alternatively, during training:
svc.pack('tm_train3_roberta_l_weigh', {'model': my_trained_model})
Project details
Release history Release notifications | RSS feed
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 simplexfmrartifact-0.0.6.tar.gz
.
File metadata
- Download URL: simplexfmrartifact-0.0.6.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3175b5bc07cba92dd8d3a6e41196b4240de0b145c7d117c92e6d42cd6891510 |
|
MD5 | 74fa89456f99b34f82b7f60e56596e4f |
|
BLAKE2b-256 | 282e9bef8c74b7db984487388e7523a259c956404b292f2ee078e6e33d65e16b |
File details
Details for the file simplexfmrartifact-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: simplexfmrartifact-0.0.6-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d1d365bfe3822c53ad07c7572c6a051279f961b6de6d65123db26ef8be6b8be |
|
MD5 | b3526538e4ff257590894ec36667b2ea |
|
BLAKE2b-256 | a96f9093f75c49f297476eac330e2fa8ee31032da2184e3330e14d4e98985ba2 |