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.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fd5f4130d910a749ab421c8512a5da968c6888d79d969bad8f1a629a5aa6230 |
|
MD5 | b1045a96dac58e8df665e102bbd82b00 |
|
BLAKE2b-256 | 6b1b4bf1c178b860395128b696ffb89466d545f7b381d4caa850a5a680b792d2 |