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.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cad19d3a1d064e464cac0859279291fbb14b15586b649977f576ccce0223a9ab |
|
MD5 | 3d723d7f7c9feedad9ad3a602f9ccfb0 |
|
BLAKE2b-256 | c8c149ed930224fa11c8d9891130cc8423cec012962589f66e912c66480dc6d5 |