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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplexfmrartifact-0.0.4.tar.gz
  • Upload date:
  • Size: 2.6 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.3

File hashes

Hashes for simplexfmrartifact-0.0.4.tar.gz
Algorithm Hash digest
SHA256 18c120e679ed289551d3ff138064700548d753793b2672790849458f22827f69
MD5 a60c51e79abfafed1876fc541a2f22bb
BLAKE2b-256 7003b7c5512816fddc85d1e3cc4f7956f37d1eaa3779e1b96c05a4e9b9e4ab16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simplexfmrartifact-0.0.4-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.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.3

File hashes

Hashes for simplexfmrartifact-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4b2e3c0ddf77bd579aacd3fcdca352050956c51ab69ce6bafe80b82dc32539b5
MD5 f3dd560ba0097a5ea0904c065f5cc3f6
BLAKE2b-256 04670bad4e2330863a400ec24a68e00ea1d67f3f28d756f2cc8933f459142f15

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