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
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
Close
Hashes for qandaxfmrartifact-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a239dc9f90aaff2a1fd9ee8ebe3ed6cf102bd14bbd462c9a90a78e1b69dc419 |
|
MD5 | 3d9939619515d89e534d3a288f71df21 |
|
BLAKE2b-256 | d4844a8b80337f2b0277b1477ce3b074a54224b1c3bae286a526fcda953893ea |