This model was distilled using the TinyBERT approach described in
this paper
and implemented in
haystack
.
We have performed intermediate layer distillation with roberta-base as the teacher which resulted in
deepset/tinyroberta-6l-768d
.
This model has not been distilled for any specific task. If you are interested in using distillation to improve its performance on a downstream task, you can take advantage of haystack's new
distillation functionality
. You can also check out
deepset/tinyroberta-squad2
for a model that is already distilled on an extractive QA downstream task.
Usage
In Transformers
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
model_name = "deepset/tinyroberta-squad2"
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
In FARM
from farm.modeling.adaptive_model import AdaptiveModel
from farm.modeling.tokenization import Tokenizer
from farm.infer import Inferencer
model_name = "deepset/tinyroberta-squad2"
model = AdaptiveModel.convert_from_transformers(model_name, device="cpu", task_type="question_answering")
tokenizer = Tokenizer.load(model_name)
In haystack
For doing QA at scale (i.e. many docs instead of single paragraph), you can load the model also in
haystack
:
reader = FARMReader(model_name_or_path="deepset/roberta-base-squad2")
# or
reader = TransformersReader(model_name_or_path="deepset/roberta-base-squad2",tokenizer="deepset/roberta-base-squad2")
Authors
Branden Chan:
branden.chan [at] deepset.ai
Timo Möller:
timo.moeller [at] deepset.ai
Malte Pietsch:
malte.pietsch [at] deepset.ai
Tanay Soni:
tanay.soni [at] deepset.ai
Michel Bartels:
michel.bartels [at] deepset.ai
About us
We bring NLP to the industry via open source!
Our focus: Industry specific language models & large scale QA systems.
tinyroberta-6l-768d huggingface.co is an AI model on huggingface.co that provides tinyroberta-6l-768d's model effect (), which can be used instantly with this deepset tinyroberta-6l-768d model. huggingface.co supports a free trial of the tinyroberta-6l-768d model, and also provides paid use of the tinyroberta-6l-768d. Support call tinyroberta-6l-768d model through api, including Node.js, Python, http.
tinyroberta-6l-768d huggingface.co is an online trial and call api platform, which integrates tinyroberta-6l-768d's modeling effects, including api services, and provides a free online trial of tinyroberta-6l-768d, you can try tinyroberta-6l-768d online for free by clicking the link below.
deepset tinyroberta-6l-768d online free url in huggingface.co:
tinyroberta-6l-768d is an open source model from GitHub that offers a free installation service, and any user can find tinyroberta-6l-768d on GitHub to install. At the same time, huggingface.co provides the effect of tinyroberta-6l-768d install, users can directly use tinyroberta-6l-768d installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
tinyroberta-6l-768d install url in huggingface.co: