Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplexfmrartifact-0.0.6.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

simplexfmrartifact-0.0.6-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for simplexfmrartifact-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a3175b5bc07cba92dd8d3a6e41196b4240de0b145c7d117c92e6d42cd6891510
MD5 74fa89456f99b34f82b7f60e56596e4f
BLAKE2b-256 282e9bef8c74b7db984487388e7523a259c956404b292f2ee078e6e33d65e16b

See more details on using hashes here.

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

Hashes for simplexfmrartifact-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2d1d365bfe3822c53ad07c7572c6a051279f961b6de6d65123db26ef8be6b8be
MD5 b3526538e4ff257590894ec36667b2ea
BLAKE2b-256 a96f9093f75c49f297476eac330e2fa8ee31032da2184e3330e14d4e98985ba2

See more details on using hashes here.

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