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.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeb5f6c252f9d7424a5e48c08c641864c8cd57cd107c05419000d0ad6d7b521c |
|
MD5 | 97beee2a3992dd40e88364c412c923e5 |
|
BLAKE2b-256 | 333a1f6f0367748dddbcc613df7e3c5734812a56993ea19becae53d52b0eaf5e |