Skip to main content

BentoML artifact framework for Q&A Transformers

Project description

qandaxfmrartifact

BentoML artifact framework for Q&A Transformers.

Installation:

pip install qandaxfmrartifact==0.0.1

Usage example (decorate service):

from qandaxfmrartifact.QandaTransformersModelArtifact import QandaTransformersModelArtifact

@artifacts([QandaTransformersModelArtifact('albert')])
class MyBentoService(BentoService):

Usage example (package model):

svc = MyBentoService()

opts = {
    'embedder_model_path': my_embedder_model_path,
}

svc.pack('albert', my_transformer_model_path, opts)

Alternatively, during training:

svc.pack('albert', {'model': my_trained_model, 'tokenizer': my_tokenizer, 'embedder': my_embedder})

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

qandaxfmrartifact-0.0.10.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

qandaxfmrartifact-0.0.10-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

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