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.5.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

simplexfmrartifact-0.0.5-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file simplexfmrartifact-0.0.5.tar.gz.

File metadata

  • Download URL: simplexfmrartifact-0.0.5.tar.gz
  • Upload date:
  • Size: 2.7 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.5.tar.gz
Algorithm Hash digest
SHA256 834b72e8ee743e27b126cda29da20c3e82b29a1bae6fd3c7411522d0bf7a271e
MD5 4fddb2b6fd0e2d016645c5bbc676f35a
BLAKE2b-256 008eb69e5404b93623324a5a24f7d56c16abab2a8f25202b604f34f86803cd38

See more details on using hashes here.

File details

Details for the file simplexfmrartifact-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: simplexfmrartifact-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dcb4306f3d6fb91832e686930647f8ab968d2c83197059218d708b7ca51937b3
MD5 662d92279509ecef3130eb26b1686ce6
BLAKE2b-256 fd749cfadcc6cc7a271bacb2ad763a919bbe2b655c9a6cd4d9a3c3c737d96e0d

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