sha
null | last_modified
null | library_name
stringclasses 154
values | text
stringlengths 1
900k
| metadata
stringlengths 2
348k
| pipeline_tag
stringclasses 45
values | id
stringlengths 5
122
| tags
sequencelengths 1
1.84k
| created_at
stringlengths 25
25
| arxiv
sequencelengths 0
201
| languages
sequencelengths 0
1.83k
| tags_str
stringlengths 17
9.34k
| text_str
stringlengths 0
389k
| text_lists
sequencelengths 0
722
| processed_texts
sequencelengths 1
723
| tokens_length
sequencelengths 1
723
| input_texts
sequencelengths 1
61
| embeddings
sequencelengths 768
768
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
null | null | transformers |
# ALBERT Base v1
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1909.11942) and first released in
[this repository](https://github.com/google-research/albert). This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the first version of the base model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
- 12 repeating layers
- 128 embedding dimension
- 768 hidden dimension
- 12 attention heads
- 11M parameters
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=albert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-base-v1')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
"sequence":"[CLS] hello i'm a modeling model.[SEP]",
"score":0.05816134437918663,
"token":12807,
"token_str":"▁modeling"
},
{
"sequence":"[CLS] hello i'm a modelling model.[SEP]",
"score":0.03748830780386925,
"token":23089,
"token_str":"▁modelling"
},
{
"sequence":"[CLS] hello i'm a model model.[SEP]",
"score":0.033725276589393616,
"token":1061,
"token_str":"▁model"
},
{
"sequence":"[CLS] hello i'm a runway model.[SEP]",
"score":0.017313428223133087,
"token":8014,
"token_str":"▁runway"
},
{
"sequence":"[CLS] hello i'm a lingerie model.[SEP]",
"score":0.014405295252799988,
"token":29104,
"token_str":"▁lingerie"
}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AlbertTokenizer, AlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-base-v1')
model = AlbertModel.from_pretrained("albert-base-v1")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AlbertTokenizer, TFAlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-base-v1')
model = TFAlbertModel.from_pretrained("albert-base-v1")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-base-v1')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] the man worked as a chauffeur.[SEP]",
"score":0.029577180743217468,
"token":28744,
"token_str":"▁chauffeur"
},
{
"sequence":"[CLS] the man worked as a janitor.[SEP]",
"score":0.028865724802017212,
"token":29477,
"token_str":"▁janitor"
},
{
"sequence":"[CLS] the man worked as a shoemaker.[SEP]",
"score":0.02581118606030941,
"token":29024,
"token_str":"▁shoemaker"
},
{
"sequence":"[CLS] the man worked as a blacksmith.[SEP]",
"score":0.01849772222340107,
"token":21238,
"token_str":"▁blacksmith"
},
{
"sequence":"[CLS] the man worked as a lawyer.[SEP]",
"score":0.01820771023631096,
"token":3672,
"token_str":"▁lawyer"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] the woman worked as a receptionist.[SEP]",
"score":0.04604868218302727,
"token":25331,
"token_str":"▁receptionist"
},
{
"sequence":"[CLS] the woman worked as a janitor.[SEP]",
"score":0.028220869600772858,
"token":29477,
"token_str":"▁janitor"
},
{
"sequence":"[CLS] the woman worked as a paramedic.[SEP]",
"score":0.0261906236410141,
"token":23386,
"token_str":"▁paramedic"
},
{
"sequence":"[CLS] the woman worked as a chauffeur.[SEP]",
"score":0.024797942489385605,
"token":28744,
"token_str":"▁chauffeur"
},
{
"sequence":"[CLS] the woman worked as a waitress.[SEP]",
"score":0.024124596267938614,
"token":13678,
"token_str":"▁waitress"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The ALBERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
## Evaluation results
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
| | Average | SQuAD1.1 | SQuAD2.0 | MNLI | SST-2 | RACE |
|----------------|----------|----------|----------|----------|----------|----------|
|V2 |
|ALBERT-base |82.3 |90.2/83.2 |82.1/79.3 |84.6 |92.9 |66.8 |
|ALBERT-large |85.7 |91.8/85.2 |84.9/81.8 |86.5 |94.9 |75.2 |
|ALBERT-xlarge |87.9 |92.9/86.4 |87.9/84.1 |87.9 |95.4 |80.7 |
|ALBERT-xxlarge |90.9 |94.6/89.1 |89.8/86.9 |90.6 |96.8 |86.8 |
|V1 |
|ALBERT-base |80.1 |89.3/82.3 | 80.0/77.1|81.6 |90.3 | 64.0 |
|ALBERT-large |82.4 |90.6/83.9 | 82.3/79.4|83.5 |91.7 | 68.5 |
|ALBERT-xlarge |85.5 |92.5/86.1 | 86.1/83.1|86.4 |92.4 | 74.8 |
|ALBERT-xxlarge |91.0 |94.8/89.3 | 90.2/87.4|90.8 |96.9 | 86.5 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1909-11942,
author = {Zhenzhong Lan and
Mingda Chen and
Sebastian Goodman and
Kevin Gimpel and
Piyush Sharma and
Radu Soricut},
title = {{ALBERT:} {A} Lite {BERT} for Self-supervised Learning of Language
Representations},
journal = {CoRR},
volume = {abs/1909.11942},
year = {2019},
url = {http://arxiv.org/abs/1909.11942},
archivePrefix = {arXiv},
eprint = {1909.11942},
timestamp = {Fri, 27 Sep 2019 13:04:21 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1909-11942.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
<a href="https://huggingface.co/exbert/?model=albert-base-v1">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": "en", "license": "apache-2.0", "tags": ["exbert"], "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | albert/albert-base-v1 | [
"transformers",
"pytorch",
"tf",
"safetensors",
"albert",
"fill-mask",
"exbert",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1909.11942"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #safetensors #albert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| ALBERT Base v1
==============
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the first version of the base model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
* 12 repeating layers
* 128 embedding dimension
* 768 hidden dimension
* 12 attention heads
* 11M parameters
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
Evaluation results
------------------
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
### BibTeX entry and citation info
<a href="URL
<img width="300px" src="URL
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
"TAGS\n#transformers #pytorch #tf #safetensors #albert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
78,
49,
102,
42,
135,
30
] | [
"passage: TAGS\n#transformers #pytorch #tf #safetensors #albert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
-0.04987791180610657,
0.06891000270843506,
-0.0038567720912396908,
0.07576975971460342,
0.060954879969358444,
0.030267491936683655,
0.09114508330821991,
0.056290049105882645,
-0.04611608013510704,
0.06996013969182968,
0.020456068217754364,
0.022172600030899048,
0.1111629456281662,
0.1304425299167633,
0.024317914620041847,
-0.29598861932754517,
0.042645711451768875,
-0.0236247219145298,
0.002042739652097225,
0.08832594007253647,
0.10129620879888535,
-0.09183517098426819,
0.026352956891059875,
0.001375344698317349,
-0.035945065319538116,
-0.015944335609674454,
0.008236582390964031,
-0.03286254033446312,
0.07073045521974564,
0.06162597984075546,
0.10977689176797867,
0.026022477075457573,
0.07895857840776443,
-0.16175468266010284,
0.0188823901116848,
0.09986098855733871,
-0.0031338760163635015,
0.07817800343036652,
0.08305495977401733,
0.01170626562088728,
0.10522093623876572,
-0.07720627635717392,
0.06353113800287247,
0.051442574709653854,
-0.11028492450714111,
-0.07907432317733765,
-0.08345724642276764,
0.12170112878084183,
0.1326330155134201,
0.02582026831805706,
-0.027875149622559547,
0.019351938739418983,
-0.047370605170726776,
0.08920744806528091,
0.21745815873146057,
-0.18890142440795898,
-0.015678156167268753,
0.0019122250378131866,
0.016134923323988914,
0.02136075682938099,
-0.10675042122602463,
-0.029404442757368088,
0.021735921502113342,
0.0067345448769629,
0.1429123878479004,
-0.02713327296078205,
-0.023711930960416794,
-0.05405138432979584,
-0.11417875438928604,
-0.08292021602392197,
0.07153569161891937,
0.009851224720478058,
-0.10543353110551834,
-0.11736105382442474,
-0.04130521044135094,
-0.06640168279409409,
-0.010727224871516228,
-0.0012313408078625798,
0.03961651027202606,
-0.017194537445902824,
0.07889790832996368,
-0.0758986547589302,
-0.08539094775915146,
-0.07618853449821472,
-0.014153067022562027,
0.08188743144273758,
0.031166965141892433,
-0.004555738531053066,
-0.03866304084658623,
0.13047587871551514,
0.005200286861509085,
-0.09113509207963943,
-0.049683019518852234,
-0.039072632789611816,
-0.14480793476104736,
-0.03524421527981758,
0.004341674502938986,
-0.08632271736860275,
-0.06737661361694336,
0.13117735087871552,
-0.04215969890356064,
0.05416467785835266,
-0.09551434963941574,
0.03638111799955368,
-0.0008659122395329177,
0.10509233921766281,
-0.09321597963571548,
-0.0220579132437706,
0.019425902515649796,
0.04001358896493912,
0.0049649253487586975,
0.004416286014020443,
0.007706280332058668,
-0.012278198264539242,
0.023361779749393463,
0.06472822278738022,
-0.010721712373197079,
0.06873764842748642,
-0.0704178735613823,
-0.039556801319122314,
0.11158503592014313,
-0.1591232419013977,
-0.0006626714603044093,
0.010702583938837051,
-0.043332695960998535,
-0.022749822586774826,
0.08657358586788177,
-0.06087089702486992,
-0.10754363238811493,
0.14736227691173553,
-0.08307110518217087,
-0.026651466265320778,
-0.07916892319917679,
-0.1319638043642044,
-0.005843511316925287,
-0.05197794362902641,
-0.07472072541713715,
-0.009345625527203083,
-0.1421598345041275,
-0.04298553615808487,
0.05770692974328995,
-0.00583612360060215,
0.014729839749634266,
-0.02837161161005497,
-0.015087348408997059,
-0.03136932849884033,
0.0021808443125337362,
0.0976104587316513,
-0.0166701041162014,
0.053229257464408875,
-0.07397007942199707,
0.08700864762067795,
0.08044450730085373,
0.031887006014585495,
-0.05848952755331993,
0.044008076190948486,
-0.19633819162845612,
0.09081694483757019,
-0.04800304025411606,
-0.04433901235461235,
-0.08986131846904755,
-0.05501105263829231,
-0.047791771590709686,
0.03878413140773773,
0.018122538924217224,
0.15301887691020966,
-0.17849138379096985,
-0.0457233302295208,
0.3346402943134308,
-0.10898575931787491,
-0.018480941653251648,
0.11913508921861649,
-0.06639072299003601,
0.050455596297979355,
0.09190824627876282,
0.06480637192726135,
-0.042641203850507736,
-0.11287733167409897,
-0.005434080958366394,
-0.07186537981033325,
-0.01083782222121954,
0.16150923073291779,
0.038224395364522934,
-0.05585676059126854,
-0.028355251997709274,
0.006917858496308327,
-0.07443507760763168,
-0.06802967190742493,
-0.0019990154542028904,
-0.030572298914194107,
0.05201089009642601,
-0.017607668414711952,
0.04117762669920921,
-0.0161021426320076,
-0.05051911249756813,
-0.020371561869978905,
-0.1094818264245987,
0.0015501499874517322,
0.0737704187631607,
-0.08664312213659286,
0.03518650308251381,
-0.047037091106176376,
-0.06811733543872833,
-0.004414196126163006,
0.015953773632645607,
-0.17568479478359222,
0.0026509396266192198,
0.0320105105638504,
-0.049580689519643784,
0.08656702935695648,
0.011071154847741127,
0.03780193626880646,
0.06390359252691269,
-0.07169223576784134,
-0.007086531724780798,
-0.00377756729722023,
-0.020577220246195793,
-0.07390101253986359,
-0.14868725836277008,
-0.07848969101905823,
-0.029124779626727104,
0.12817439436912537,
-0.1635291427373886,
0.02895996905863285,
-0.01894349418580532,
0.06119763106107712,
0.060964856296777725,
-0.0665188655257225,
0.04676054045557976,
-0.002794860862195492,
-0.03650689870119095,
-0.06213732436299324,
-0.014686024747788906,
0.009678610600531101,
-0.01276891864836216,
0.055221401154994965,
-0.1734704226255417,
-0.13264347612857819,
0.0498247854411602,
0.061187874525785446,
-0.12687934935092926,
-0.04974605143070221,
-0.050327952951192856,
-0.032707542181015015,
-0.09626644104719162,
-0.07816385477781296,
0.13799765706062317,
0.035448506474494934,
0.11904298514127731,
-0.06619001179933548,
-0.010793611407279968,
-0.006411400623619556,
-0.005975101143121719,
-0.027579141780734062,
0.05838631093502045,
0.03279012814164162,
-0.10603196918964386,
0.05799766257405281,
-0.0637509897351265,
-0.017969053238630295,
0.13013416528701782,
0.03624342009425163,
-0.11097347736358643,
0.01289969589561224,
0.03128732368350029,
0.07097718119621277,
0.08962629735469818,
-0.08716733008623123,
0.0017548430478200316,
0.05146724730730057,
-0.008812175132334232,
0.015858283266425133,
-0.10556086152791977,
0.059779535979032516,
0.051374249160289764,
-0.05677374452352524,
-0.03915179520845413,
-0.06629089266061783,
-0.006462096236646175,
0.1252470761537552,
0.015885768458247185,
0.023325856775045395,
-0.02385617606341839,
-0.050833720713853836,
-0.12965138256549835,
0.17357461154460907,
-0.07809162884950638,
-0.20363789796829224,
-0.20194220542907715,
-0.002529412042349577,
0.0013541147345677018,
0.04030464589595795,
0.008420940488576889,
-0.03561921417713165,
-0.08115416765213013,
-0.128900408744812,
0.0356157124042511,
0.025589456781744957,
-0.031105251982808113,
-0.03133585676550865,
-0.0049398490227758884,
0.014436551369726658,
-0.12176500260829926,
-0.015459389425814152,
0.01025486085563898,
-0.08131283521652222,
0.00993434526026249,
-0.03700731322169304,
0.09163293242454529,
0.14560560882091522,
-0.020888464525341988,
-0.008398766629397869,
-0.05225644260644913,
0.0917573794722557,
-0.08044613897800446,
0.11031056940555573,
0.02125055156648159,
-0.06580287963151932,
0.0683976262807846,
0.1206851601600647,
0.005875042174011469,
-0.05512324348092079,
0.050701308995485306,
0.0613584965467453,
-0.04730510339140892,
-0.27137187123298645,
-0.026465030387043953,
-0.07304171472787857,
0.0006819226546213031,
0.1312159150838852,
0.04053163528442383,
0.05715421959757805,
0.017550168558955193,
-0.10836479067802429,
0.04469930753111839,
0.09193675965070724,
0.08968669921159744,
-0.08844225108623505,
-0.0045508635230362415,
0.07698120176792145,
-0.04611203819513321,
-0.0008815931505523622,
0.07802216708660126,
-0.030308518558740616,
0.21591494977474213,
-0.061456795781850815,
0.21447865664958954,
0.09521111845970154,
-0.019085189327597618,
0.008651785552501678,
0.18069107830524445,
-0.032717205584049225,
0.04046550765633583,
-0.03126309812068939,
-0.08281909674406052,
-0.05162562057375908,
0.05927535519003868,
-0.024896986782550812,
0.023347830399870872,
-0.061546649783849716,
-0.0377025343477726,
0.016268614679574966,
0.3077353239059448,
0.057540055364370346,
-0.18650586903095245,
-0.07600899040699005,
0.01764765940606594,
-0.0358637273311615,
-0.07424195110797882,
-0.017590036615729332,
0.08205845952033997,
-0.1306903064250946,
0.05392967164516449,
-0.05738909915089607,
0.10227926075458527,
-0.08326254040002823,
-0.02323785424232483,
-0.06298957020044327,
0.08147885650396347,
-0.060410622507333755,
0.06796637177467346,
-0.2511749267578125,
0.20605681836605072,
0.021859440952539444,
0.11002813279628754,
-0.10059468448162079,
0.02645832858979702,
0.05329679697751999,
-0.00313749467022717,
0.1740439385175705,
-0.016553154215216637,
0.0010006810771301389,
-0.10796557366847992,
-0.056251753121614456,
0.005950324237346649,
0.06804516911506653,
-0.040535807609558105,
0.10114016383886337,
0.0012547513470053673,
-0.022389613091945648,
-0.0061940997838974,
0.0038860253989696503,
-0.11371035873889923,
-0.15651877224445343,
0.027182776480913162,
-0.07011847198009491,
0.009443000890314579,
-0.04546552896499634,
-0.06078031659126282,
0.048926860094070435,
0.1824159026145935,
-0.1928207278251648,
-0.07071567326784134,
-0.120723657310009,
-0.0068737296387553215,
0.09571366012096405,
-0.08840680122375488,
0.020362254232168198,
0.0013978802599012852,
0.17894607782363892,
-0.047450389713048935,
-0.05893050506711006,
0.048285964876413345,
-0.08730968832969666,
-0.1328052431344986,
-0.07094116508960724,
0.1218893751502037,
0.13055552542209625,
0.08391114324331284,
0.015547472052276134,
0.01674504764378071,
0.07080546766519547,
-0.08520075678825378,
-0.022640982642769814,
0.1230742335319519,
0.13994838297367096,
0.10374294966459274,
-0.14785467088222504,
-0.08157311379909515,
-0.09522608667612076,
0.011621871963143349,
0.054977547377347946,
0.21090534329414368,
-0.04711921885609627,
0.10593532770872116,
0.19225645065307617,
-0.11703484505414963,
-0.1966279000043869,
0.02276177890598774,
0.04422134533524513,
0.0747738853096962,
0.06743494421243668,
-0.19338901340961456,
0.024638429284095764,
0.08651763945817947,
-0.007071911357343197,
0.032642513513565063,
-0.15543526411056519,
-0.13160143792629242,
0.1073843315243721,
0.08630421757698059,
-0.07189404964447021,
-0.10004483163356781,
-0.02205394208431244,
-0.05920432135462761,
-0.11876857280731201,
0.08226751536130905,
-0.00888981856405735,
0.10515296459197998,
0.026050610467791557,
-0.06599850207567215,
0.02712726593017578,
-0.0657220110297203,
0.11064764857292175,
0.026434458792209625,
0.059723056852817535,
-0.05220205709338188,
-0.04892916604876518,
0.08242979645729065,
-0.06849166750907898,
0.15156289935112,
-0.01177175436168909,
0.021931691095232964,
-0.07093442231416702,
-0.0653325617313385,
-0.05675385892391205,
0.015825174748897552,
-0.06566999107599258,
-0.07072702795267105,
-0.05129585042595863,
0.09215641021728516,
0.0926026999950409,
-0.011358574032783508,
-0.01672818884253502,
-0.054199278354644775,
0.059426553547382355,
0.1554482877254486,
0.1272512674331665,
-0.0005749004776589572,
-0.08043273538351059,
-0.0013596467906609178,
0.0008801746880635619,
0.05711045488715172,
-0.09242992103099823,
0.0693192183971405,
0.08256310224533081,
0.05738585442304611,
0.20623429119586945,
0.024276969954371452,
-0.12551870942115784,
-0.01159715186804533,
0.02641432173550129,
-0.10655012726783752,
-0.15756605565547943,
0.021269915625452995,
-0.039781928062438965,
-0.16795748472213745,
-0.01726067252457142,
0.05461311340332031,
-0.04960256814956665,
-0.007810897659510374,
0.017395228147506714,
0.07208320498466492,
-0.011906064115464687,
0.18948613107204437,
0.03456945717334747,
0.061140041798353195,
-0.06182931363582611,
0.06441313028335571,
0.09966705739498138,
-0.09053333848714828,
0.028568722307682037,
0.06748632341623306,
-0.06303756684064865,
-0.013276646845042706,
0.0012141619808971882,
0.057772375643253326,
0.10642951726913452,
-0.02194223552942276,
-0.051939111202955246,
-0.04382885619997978,
0.04054015874862671,
0.05163094028830528,
0.004907659254968166,
0.06942638754844666,
-0.039122287184000015,
0.025439564138650894,
-0.097955122590065,
0.0554535798728466,
0.08885198831558228,
0.05525508522987366,
0.021893590688705444,
0.17043979465961456,
0.018688401207327843,
0.010671403259038925,
-0.010290044359862804,
-0.042573586106300354,
-0.078665591776371,
0.008117959834635258,
-0.08226535469293594,
0.0442872978746891,
-0.11859084665775299,
-0.04030827432870865,
-0.012005726806819439,
0.032328277826309204,
0.023858949542045593,
0.034165140241384506,
-0.040997765958309174,
-0.03686792775988579,
-0.04052053764462471,
0.051042139530181885,
-0.14443767070770264,
0.007373935543000698,
0.06446059048175812,
-0.09115152060985565,
0.06916125863790512,
-0.01978939399123192,
-0.029834646731615067,
0.009187700226902962,
-0.13178808987140656,
0.005456225480884314,
0.008524971082806587,
-0.008033264428377151,
0.020643049851059914,
-0.10482151061296463,
0.01791330985724926,
-0.0434444397687912,
-0.012254387140274048,
-0.024784661829471588,
0.03668246045708656,
-0.08980029821395874,
0.076605424284935,
-0.001303550903685391,
-0.025225408375263214,
-0.0483844131231308,
0.12015558034181595,
0.08444355428218842,
-0.014448738656938076,
0.12783128023147583,
-0.04847944900393486,
0.05409858375787735,
-0.15507198870182037,
-0.006007307209074497,
0.000023464304831577465,
0.0075576454401016235,
0.05249614268541336,
-0.05585792660713196,
0.043941207230091095,
-0.017986878752708435,
0.08088964223861694,
0.023816468194127083,
-0.027223745360970497,
0.036859843879938126,
-0.07155288755893707,
0.012539942748844624,
0.007892051711678505,
0.05102134868502617,
-0.03697701171040535,
-0.07291526347398758,
-0.0012818665709346533,
0.0031067440286278725,
0.01093382015824318,
0.11251314729452133,
0.24944539368152618,
0.11076386272907257,
0.034173496067523956,
0.02198111079633236,
0.012889728881418705,
-0.05014938488602638,
-0.12951189279556274,
-0.058384738862514496,
0.06487821787595749,
0.048019889742136,
-0.004519649315625429,
0.09591026604175568,
0.1422439068555832,
-0.17380276322364807,
0.1366731971502304,
0.03376808390021324,
-0.09039575606584549,
-0.08771564066410065,
-0.20536622405052185,
-0.01738937385380268,
0.07130089402198792,
-0.0324445441365242,
-0.10910674929618835,
0.028811777010560036,
0.102176234126091,
0.03237506374716759,
-0.007144032046198845,
0.13545505702495575,
-0.055146679282188416,
-0.07136491686105728,
0.07389917224645615,
0.028431270271539688,
-0.0008778737392276525,
-0.009010174311697483,
-0.010628723539412022,
0.04767891392111778,
0.0025209812447428703,
0.08589811623096466,
0.05082087591290474,
0.05572763457894325,
0.010274817235767841,
-0.01101613137871027,
-0.0678320899605751,
0.024080850183963776,
-0.016608038917183876,
0.0668918788433075,
0.21076415479183197,
0.0500149205327034,
-0.04960596561431885,
0.003973298240453005,
0.1174856573343277,
-0.04396069422364235,
-0.04482376202940941,
-0.1455005705356598,
0.1795206367969513,
0.04971127212047577,
0.0009589996188879013,
0.038283996284008026,
-0.11515982449054718,
0.0281513724476099,
0.21164372563362122,
0.14878606796264648,
0.016249822452664375,
0.012621764093637466,
-0.007303356193006039,
0.016950698569417,
0.026065127924084663,
0.13278646767139435,
-0.011669948697090149,
0.21578529477119446,
-0.01633637584745884,
0.09814999997615814,
0.0024761296808719635,
-0.06272967159748077,
-0.03240612521767616,
0.08177103847265244,
-0.0008656419231556356,
-0.012728924863040447,
-0.04681495204567909,
0.055611733347177505,
-0.01714894361793995,
-0.31567227840423584,
0.012237786315381527,
-0.04868517816066742,
-0.1254158914089203,
-0.023182515054941177,
-0.06684986501932144,
0.05350940674543381,
0.06716711819171906,
0.03296513855457306,
0.009004213847219944,
0.1972811073064804,
0.0281345434486866,
-0.05271841585636139,
-0.09757626056671143,
0.06308523565530777,
-0.022851819172501564,
0.24020808935165405,
0.019813090562820435,
0.03043348900973797,
0.06749746203422546,
0.009173648431897163,
-0.09155158698558807,
0.031255029141902924,
0.00743226008489728,
0.015691163018345833,
0.04409218579530716,
0.16043433547019958,
-0.05043864995241165,
-0.0414850153028965,
0.004584308713674545,
-0.08503957837820053,
0.05209485813975334,
-0.07800783216953278,
-0.05056281387805939,
-0.1156078651547432,
0.08175686001777649,
-0.060716353356838226,
0.11665372550487518,
0.20052431523799896,
-0.0006877496489323676,
0.021003684028983116,
-0.05180639028549194,
-0.007811359129846096,
0.03329697623848915,
0.11431516706943512,
-0.014569434337317944,
-0.16271153092384338,
-0.002966578584164381,
-0.0848386213183403,
0.016595380380749702,
-0.28533440828323364,
-0.04658020660281181,
0.023566920310258865,
-0.07213722169399261,
-0.028743062168359756,
0.07366034388542175,
0.027413520961999893,
0.06327307969331741,
-0.02557562291622162,
-0.05296581611037254,
0.01707625575363636,
0.11096805334091187,
-0.14310084283351898,
-0.040127020329236984
] |
null | null | transformers |
# ALBERT Base v2
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1909.11942) and first released in
[this repository](https://github.com/google-research/albert). This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the second version of the base model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
- 12 repeating layers
- 128 embedding dimension
- 768 hidden dimension
- 12 attention heads
- 11M parameters
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=albert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-base-v2')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
"sequence":"[CLS] hello i'm a modeling model.[SEP]",
"score":0.05816134437918663,
"token":12807,
"token_str":"▁modeling"
},
{
"sequence":"[CLS] hello i'm a modelling model.[SEP]",
"score":0.03748830780386925,
"token":23089,
"token_str":"▁modelling"
},
{
"sequence":"[CLS] hello i'm a model model.[SEP]",
"score":0.033725276589393616,
"token":1061,
"token_str":"▁model"
},
{
"sequence":"[CLS] hello i'm a runway model.[SEP]",
"score":0.017313428223133087,
"token":8014,
"token_str":"▁runway"
},
{
"sequence":"[CLS] hello i'm a lingerie model.[SEP]",
"score":0.014405295252799988,
"token":29104,
"token_str":"▁lingerie"
}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AlbertTokenizer, AlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-base-v2')
model = AlbertModel.from_pretrained("albert-base-v2")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AlbertTokenizer, TFAlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-base-v2')
model = TFAlbertModel.from_pretrained("albert-base-v2")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-base-v2')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] the man worked as a chauffeur.[SEP]",
"score":0.029577180743217468,
"token":28744,
"token_str":"▁chauffeur"
},
{
"sequence":"[CLS] the man worked as a janitor.[SEP]",
"score":0.028865724802017212,
"token":29477,
"token_str":"▁janitor"
},
{
"sequence":"[CLS] the man worked as a shoemaker.[SEP]",
"score":0.02581118606030941,
"token":29024,
"token_str":"▁shoemaker"
},
{
"sequence":"[CLS] the man worked as a blacksmith.[SEP]",
"score":0.01849772222340107,
"token":21238,
"token_str":"▁blacksmith"
},
{
"sequence":"[CLS] the man worked as a lawyer.[SEP]",
"score":0.01820771023631096,
"token":3672,
"token_str":"▁lawyer"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] the woman worked as a receptionist.[SEP]",
"score":0.04604868218302727,
"token":25331,
"token_str":"▁receptionist"
},
{
"sequence":"[CLS] the woman worked as a janitor.[SEP]",
"score":0.028220869600772858,
"token":29477,
"token_str":"▁janitor"
},
{
"sequence":"[CLS] the woman worked as a paramedic.[SEP]",
"score":0.0261906236410141,
"token":23386,
"token_str":"▁paramedic"
},
{
"sequence":"[CLS] the woman worked as a chauffeur.[SEP]",
"score":0.024797942489385605,
"token":28744,
"token_str":"▁chauffeur"
},
{
"sequence":"[CLS] the woman worked as a waitress.[SEP]",
"score":0.024124596267938614,
"token":13678,
"token_str":"▁waitress"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The ALBERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
## Evaluation results
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
| | Average | SQuAD1.1 | SQuAD2.0 | MNLI | SST-2 | RACE |
|----------------|----------|----------|----------|----------|----------|----------|
|V2 |
|ALBERT-base |82.3 |90.2/83.2 |82.1/79.3 |84.6 |92.9 |66.8 |
|ALBERT-large |85.7 |91.8/85.2 |84.9/81.8 |86.5 |94.9 |75.2 |
|ALBERT-xlarge |87.9 |92.9/86.4 |87.9/84.1 |87.9 |95.4 |80.7 |
|ALBERT-xxlarge |90.9 |94.6/89.1 |89.8/86.9 |90.6 |96.8 |86.8 |
|V1 |
|ALBERT-base |80.1 |89.3/82.3 | 80.0/77.1|81.6 |90.3 | 64.0 |
|ALBERT-large |82.4 |90.6/83.9 | 82.3/79.4|83.5 |91.7 | 68.5 |
|ALBERT-xlarge |85.5 |92.5/86.1 | 86.1/83.1|86.4 |92.4 | 74.8 |
|ALBERT-xxlarge |91.0 |94.8/89.3 | 90.2/87.4|90.8 |96.9 | 86.5 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1909-11942,
author = {Zhenzhong Lan and
Mingda Chen and
Sebastian Goodman and
Kevin Gimpel and
Piyush Sharma and
Radu Soricut},
title = {{ALBERT:} {A} Lite {BERT} for Self-supervised Learning of Language
Representations},
journal = {CoRR},
volume = {abs/1909.11942},
year = {2019},
url = {http://arxiv.org/abs/1909.11942},
archivePrefix = {arXiv},
eprint = {1909.11942},
timestamp = {Fri, 27 Sep 2019 13:04:21 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1909-11942.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
``` | {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | albert/albert-base-v2 | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1909.11942"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #rust #safetensors #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| ALBERT Base v2
==============
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the second version of the base model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
* 12 repeating layers
* 128 embedding dimension
* 768 hidden dimension
* 12 attention heads
* 11M parameters
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
Evaluation results
------------------
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
### BibTeX entry and citation info
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
80,
49,
102,
42,
135,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:### BibTeX entry and citation info"
] | [
-0.05055678263306618,
0.09099909663200378,
-0.004384537693113089,
0.07027137279510498,
0.04119673743844032,
0.023917432874441147,
0.09916941821575165,
0.05107157677412033,
-0.04390188679099083,
0.05791522189974785,
0.021559549495577812,
0.02768748067319393,
0.12242377549409866,
0.13866634666919708,
0.029290784150362015,
-0.29207146167755127,
0.04908248409628868,
-0.01729021593928337,
-0.0071801431477069855,
0.09662900120019913,
0.10887059569358826,
-0.10174515098333359,
0.012981083244085312,
0.009698862209916115,
-0.03884202241897583,
-0.024451594799757004,
0.011133597232401371,
-0.03991340100765228,
0.06971581280231476,
0.05289267748594284,
0.12909354269504547,
0.027376851066946983,
0.06652632355690002,
-0.1563752442598343,
0.0209979098290205,
0.08745398372411728,
0.0031688993331044912,
0.0860607698559761,
0.08564659208059311,
0.015596931800246239,
0.08298426866531372,
-0.0779125764966011,
0.07286544889211655,
0.0375308133661747,
-0.10772234946489334,
-0.1091049462556839,
-0.09003613889217377,
0.1187710240483284,
0.11802081763744354,
0.01928381808102131,
-0.03612149506807327,
0.041811034083366394,
-0.050186462700366974,
0.08301109820604324,
0.21207550168037415,
-0.1882152259349823,
-0.01966557838022709,
-0.02197369560599327,
0.0007443972863256931,
0.0012540306197479367,
-0.1080903634428978,
-0.037700917571783066,
0.012708039954304695,
0.010912763886153698,
0.13874822854995728,
-0.008254488930106163,
0.005265838000923395,
-0.06988674402236938,
-0.10827739536762238,
-0.08608003705739975,
0.05847180634737015,
-0.008261515758931637,
-0.1044844463467598,
-0.1454005390405655,
-0.0301397405564785,
-0.041268490254879,
-0.013558847829699516,
-0.00915059819817543,
0.03102875128388405,
-0.022809267044067383,
0.08028736710548401,
-0.059608135372400284,
-0.08350798487663269,
-0.061969202011823654,
-0.019628971815109253,
0.11888734251260757,
0.04185881093144417,
-0.003947356250137091,
-0.043811116367578506,
0.12467115372419357,
0.006045548245310783,
-0.10870197415351868,
-0.03234967216849327,
-0.049895189702510834,
-0.12492382526397705,
-0.028417738154530525,
0.01153323333710432,
-0.0918726846575737,
-0.06812728941440582,
0.13110069930553436,
-0.06774993240833282,
0.0480290912091732,
-0.10325437039136887,
0.027755090966820717,
0.02966126799583435,
0.09990786761045456,
-0.10235212743282318,
-0.008527065627276897,
0.024899236857891083,
0.039659712463617325,
0.020953578874468803,
0.003163746325299144,
0.015854598954319954,
-0.0018676755717024207,
0.05058040842413902,
0.07048183679580688,
-0.002867481904104352,
0.05583687126636505,
-0.08000782132148743,
-0.04640427231788635,
0.1137675940990448,
-0.16378234326839447,
0.0035233343951404095,
0.004789949860423803,
-0.031377796083688736,
-0.028029421344399452,
0.06560244411230087,
-0.050610508769750595,
-0.10330680012702942,
0.14696185290813446,
-0.07465970516204834,
-0.03346638381481171,
-0.07708600163459778,
-0.1437397599220276,
-0.007099711336195469,
-0.06260421127080917,
-0.06422128528356552,
-0.005418506450951099,
-0.11904028803110123,
-0.027143461629748344,
0.05672869458794594,
-0.014076735824346542,
0.00015012874791864306,
-0.01606586016714573,
-0.0221067126840353,
-0.026038940995931625,
0.0071799419820308685,
0.09928011894226074,
-0.013758199289441109,
0.05285939946770668,
-0.06749943643808365,
0.08930882811546326,
0.09272991865873337,
0.03475763648748398,
-0.07330720126628876,
0.04370653256773949,
-0.22841398417949677,
0.08608915656805038,
-0.04804619401693344,
-0.05585523322224617,
-0.07585342228412628,
-0.05619880184531212,
-0.03960845619440079,
0.0328846201300621,
0.02694007009267807,
0.1526130586862564,
-0.19625122845172882,
-0.045745331794023514,
0.32844415307044983,
-0.12561345100402832,
-0.0005710699479095638,
0.12602411210536957,
-0.07525362819433212,
0.036269497126340866,
0.09209021180868149,
0.05464354529976845,
-0.04432491213083267,
-0.10260000079870224,
-0.010535825043916702,
-0.08273570984601974,
-0.001040038070641458,
0.18116997182369232,
0.04501057043671608,
-0.04752656817436218,
-0.03606808930635452,
0.007412663660943508,
-0.07516311854124069,
-0.05973329022526741,
-0.010894007980823517,
-0.032828282564878464,
0.05048353224992752,
-0.012776178307831287,
0.07242101430892944,
-0.0007087129051797092,
-0.05092724785208702,
-0.03333953022956848,
-0.11461865156888962,
-0.015040767379105091,
0.0685790404677391,
-0.08288519829511642,
0.027309754863381386,
-0.06215762346982956,
-0.04385608434677124,
-0.025159558281302452,
0.004733825568109751,
-0.1850510537624359,
0.013499758206307888,
0.03711953014135361,
-0.07124824076890945,
0.07506762444972992,
-0.0011379924835637212,
0.028178688138723373,
0.06965227425098419,
-0.06552370637655258,
-0.003347529796883464,
-0.009879467077553272,
-0.020032044500112534,
-0.06932847201824188,
-0.1575104147195816,
-0.07031049579381943,
-0.03987148031592369,
0.11456474661827087,
-0.13880610466003418,
0.022004442289471626,
-0.020117048174142838,
0.07346667349338531,
0.05719655007123947,
-0.06247284263372421,
0.052909478545188904,
0.001435651327483356,
-0.0353950597345829,
-0.05258410423994064,
-0.012571298517286777,
0.0015226694522425532,
-0.011623801663517952,
0.05508623272180557,
-0.1574729084968567,
-0.12654778361320496,
0.058549754321575165,
0.06282775104045868,
-0.11602729558944702,
-0.020939024165272713,
-0.05141590163111687,
-0.029723765328526497,
-0.09245176613330841,
-0.06472311168909073,
0.1560172438621521,
0.04540332779288292,
0.10344091802835464,
-0.08102048933506012,
-0.018930377438664436,
0.0004074648895766586,
-0.008611445315182209,
-0.04436634108424187,
0.051728006452322006,
0.013559992425143719,
-0.11630281805992126,
0.05803702399134636,
-0.04299497604370117,
0.009453453123569489,
0.13715922832489014,
0.03246365487575531,
-0.09605429321527481,
0.010334000922739506,
0.005361305549740791,
0.060976579785346985,
0.08870366215705872,
-0.08151968568563461,
0.006335836835205555,
0.05258937552571297,
-0.013483463786542416,
0.0181618370115757,
-0.1023845449090004,
0.05960524454712868,
0.047908008098602295,
-0.049688734114170074,
-0.04193876311182976,
-0.06749950349330902,
0.0059499591588974,
0.11993761360645294,
0.02190317027270794,
0.027498194947838783,
-0.025374136865139008,
-0.05540440231561661,
-0.11612538993358612,
0.1649337261915207,
-0.08579718321561813,
-0.2384132593870163,
-0.18396544456481934,
-0.008320980705320835,
-0.00010432473936816677,
0.037413910031318665,
-0.003882280783727765,
-0.03767438605427742,
-0.07821223884820938,
-0.11609597504138947,
0.0440344512462616,
0.03376735374331474,
-0.032862450927495956,
-0.024695977568626404,
-0.01328793354332447,
0.016752369701862335,
-0.12551778554916382,
-0.017650263383984566,
0.001325317658483982,
-0.0706927478313446,
0.01925577037036419,
-0.024098984897136688,
0.07385404407978058,
0.14011868834495544,
-0.023018255829811096,
-0.022743593901395798,
-0.04562962427735329,
0.10618871450424194,
-0.08310041576623917,
0.10168968886137009,
0.0227205790579319,
-0.08781067281961441,
0.06577102839946747,
0.12783966958522797,
0.005972014274448156,
-0.06483586877584457,
0.04353654757142067,
0.05317901074886322,
-0.0404520183801651,
-0.2565879821777344,
-0.030400607734918594,
-0.06997120380401611,
-0.01994449831545353,
0.1306944638490677,
0.030900239944458008,
0.0408596508204937,
0.019293786957859993,
-0.11206378042697906,
0.02735678292810917,
0.0939096063375473,
0.08177809417247772,
-0.09806794673204422,
-0.0015534772537648678,
0.08418218046426773,
-0.03480110689997673,
-0.0048156785778701305,
0.07372821122407913,
-0.03629087656736374,
0.20833970606327057,
-0.054676201194524765,
0.19677790999412537,
0.1085624173283577,
0.0023889103904366493,
0.02890644036233425,
0.1800643503665924,
-0.037587400525808334,
0.03580458089709282,
-0.02988017536699772,
-0.07899163663387299,
-0.06360991299152374,
0.03698522597551346,
-0.009360737167298794,
0.04136291891336441,
-0.06359434127807617,
-0.06072206050157547,
0.012346032075583935,
0.29143086075782776,
0.06783121079206467,
-0.16162659227848053,
-0.08276039361953735,
0.032843638211488724,
-0.04078557342290878,
-0.08281256258487701,
-0.01591482199728489,
0.06437599658966064,
-0.1325078159570694,
0.0539938248693943,
-0.06243344768881798,
0.09595087170600891,
-0.09618287533521652,
-0.019390402361750603,
-0.08458630740642548,
0.07721336930990219,
-0.05434669181704521,
0.06610174477100372,
-0.23924855887889862,
0.19908243417739868,
0.015783516690135002,
0.11673237383365631,
-0.10311195999383926,
0.021052883937954903,
0.05668316036462784,
-0.013600663281977177,
0.1692766398191452,
-0.014369887299835682,
0.015857037156820297,
-0.09373794496059418,
-0.07494767010211945,
0.005463492125272751,
0.05471475049853325,
-0.04001633822917938,
0.09918954223394394,
0.00851359497755766,
-0.010422947816550732,
-0.010425890795886517,
0.009138698689639568,
-0.11942368000745773,
-0.14815358817577362,
0.028641242533922195,
-0.1021457388997078,
-0.000518577522598207,
-0.059522852301597595,
-0.08041670173406601,
0.031369488686323166,
0.18332722783088684,
-0.18697236478328705,
-0.0870252177119255,
-0.11612845212221146,
0.0009427975164726377,
0.10487669706344604,
-0.08778450638055801,
0.025558024644851685,
-0.00443367101252079,
0.20351137220859528,
-0.057490136474370956,
-0.05539412796497345,
0.03708653151988983,
-0.07980187982320786,
-0.14400246739387512,
-0.06275784224271774,
0.13241508603096008,
0.15077030658721924,
0.0854620561003685,
0.022358713671565056,
0.027905166149139404,
0.07465308159589767,
-0.08004941791296005,
-0.019278625026345253,
0.11839063465595245,
0.14687418937683105,
0.10563888400793076,
-0.11336728185415268,
-0.09799381345510483,
-0.11498218774795532,
0.021282818168401718,
0.06528329104185104,
0.21846377849578857,
-0.04900497570633888,
0.13035067915916443,
0.21079221367835999,
-0.1144995465874672,
-0.19988983869552612,
0.010686660185456276,
0.053986743092536926,
0.0882355198264122,
0.06724447011947632,
-0.20457033812999725,
0.02415788359940052,
0.0606384202837944,
-0.008578797802329063,
0.009378772228956223,
-0.14338649809360504,
-0.1303051859140396,
0.1360543668270111,
0.10389585793018341,
-0.06672126799821854,
-0.07526802271604538,
-0.021015914157032967,
-0.05885761231184006,
-0.11802764236927032,
0.1057247519493103,
-0.0070544518530368805,
0.09797045588493347,
0.01820535399019718,
-0.0646916851401329,
0.031833089888095856,
-0.06529070436954498,
0.11481382697820663,
0.008380039595067501,
0.06798720359802246,
-0.055189263075590134,
-0.062363266944885254,
0.08468800038099289,
-0.055735521018505096,
0.13747256994247437,
0.018590176478028297,
0.01810639537870884,
-0.05226053670048714,
-0.07032202929258347,
-0.06883320212364197,
0.012825551442801952,
-0.07361283898353577,
-0.06857822090387344,
-0.047807104885578156,
0.10706589370965958,
0.08307591825723648,
-0.010625003837049007,
-0.0009167797397822142,
-0.050161559134721756,
0.0632874146103859,
0.12703923881053925,
0.1494339108467102,
0.008325870148837566,
-0.05218067765235901,
0.007281046360731125,
-0.0016258173855021596,
0.05191807448863983,
-0.07684588432312012,
0.07461564242839813,
0.0794014111161232,
0.04838152602314949,
0.19315281510353088,
0.02325701154768467,
-0.142495259642601,
-0.017066359519958496,
0.02643107995390892,
-0.10995277762413025,
-0.16471132636070251,
0.028177985921502113,
-0.030238954350352287,
-0.1637333780527115,
-0.03671637549996376,
0.05035709962248802,
-0.04396576061844826,
-0.02552691660821438,
0.01383124478161335,
0.07409906387329102,
-0.010468129999935627,
0.18425802886486053,
0.042827121913433075,
0.0589858703315258,
-0.06885954737663269,
0.07728389650583267,
0.09694231301546097,
-0.07210976630449295,
0.030471637845039368,
0.04323302581906319,
-0.0687507838010788,
-0.004646081943064928,
0.003717638086527586,
0.08169835805892944,
0.1445920616388321,
-0.02818714641034603,
-0.04621712863445282,
-0.063943050801754,
0.03872688487172127,
0.04550402984023094,
0.009638858027756214,
0.06649274379014969,
-0.050124555826187134,
0.014926978386938572,
-0.1001020297408104,
0.07163011282682419,
0.09454111009836197,
0.03948003798723221,
0.032464995980262756,
0.15592126548290253,
0.026405051350593567,
0.014263301156461239,
-0.014661112800240517,
-0.04412928223609924,
-0.0744934231042862,
0.008652379736304283,
-0.0755857527256012,
0.04396164044737816,
-0.11816049367189407,
-0.04181394353508949,
-0.022633889690041542,
0.016136672347784042,
0.02114465832710266,
0.025749430060386658,
-0.03717684745788574,
-0.026322772726416588,
-0.04239288717508316,
0.03539055213332176,
-0.13745488226413727,
0.00009415570821147412,
0.07724011689424515,
-0.09445565193891525,
0.07346640527248383,
-0.022977584972977638,
-0.017255660146474838,
0.01690569333732128,
-0.14692005515098572,
-0.0024433699436485767,
-0.010271651670336723,
-0.00919137429445982,
0.013355801813304424,
-0.15198327600955963,
0.01097149308770895,
-0.03136955574154854,
-0.03188063204288483,
-0.023095805197954178,
0.05142655223608017,
-0.08776117116212845,
0.07206930965185165,
0.027395330369472504,
-0.021341875195503235,
-0.04676660895347595,
0.12662972509860992,
0.090763159096241,
-0.015335298143327236,
0.13453204929828644,
-0.035816751420497894,
0.056697215884923935,
-0.14741191267967224,
-0.009868375957012177,
-0.01536822970956564,
0.00032927413121797144,
0.06397227942943573,
-0.05214161425828934,
0.041056353598833084,
-0.011996676214039326,
0.10232064127922058,
0.022887295112013817,
-0.042668428272008896,
0.03601415455341339,
-0.05628829449415207,
-0.005597742740064859,
0.018106037750840187,
0.061333686113357544,
-0.04421855881810188,
-0.07506196200847626,
0.005433985963463783,
0.0043972814455628395,
-0.0053029488772153854,
0.11491648852825165,
0.24855327606201172,
0.12237918376922607,
0.07464651763439178,
-0.0007398634916171432,
0.006823705974966288,
-0.0313095860183239,
-0.11998309940099716,
-0.041562438011169434,
0.067433200776577,
0.028999576345086098,
0.005731928627938032,
0.08966781944036484,
0.13738232851028442,
-0.17443403601646423,
0.15219613909721375,
0.02585243247449398,
-0.09238885343074799,
-0.08271698653697968,
-0.22274832427501678,
-0.015188462100923061,
0.09854485839605331,
-0.029615070670843124,
-0.11608943343162537,
0.017063861712813377,
0.10244596004486084,
0.02982226572930813,
-0.017690978944301605,
0.1366339921951294,
-0.056998349726200104,
-0.07269489020109177,
0.08182086795568466,
0.03578753396868706,
-0.0053019775077700615,
-0.00435176445171237,
0.004765606950968504,
0.035677630454301834,
0.032474320381879807,
0.08922262489795685,
0.05608062446117401,
0.042345207184553146,
0.0033381935209035873,
-0.0070412675850093365,
-0.08297869563102722,
0.02924809418618679,
-0.030349144712090492,
0.07948771864175797,
0.2061949372291565,
0.04307668283581734,
-0.03591972216963768,
0.0013099947245791554,
0.11623276770114899,
-0.026352612301707268,
-0.06312166899442673,
-0.1397826224565506,
0.15697351098060608,
0.04320903494954109,
-0.0015693538589403033,
0.05613675341010094,
-0.1104857474565506,
0.0428302101790905,
0.1931891292333603,
0.16164307296276093,
0.020999040454626083,
0.016565801575779915,
-0.00290546752512455,
0.012415917590260506,
0.018711784854531288,
0.13206158578395844,
-0.00917553249746561,
0.2130434364080429,
-0.026819052174687386,
0.11553585529327393,
-0.020761124789714813,
-0.06504759937524796,
-0.025966892018914223,
0.07952176034450531,
0.008362319320440292,
-0.012257283553481102,
-0.06245846673846245,
0.05680794268846512,
-0.006090587470680475,
-0.32450902462005615,
0.013147820718586445,
-0.0469900481402874,
-0.12940512597560883,
-0.01612616889178753,
-0.06822452694177628,
0.04724787548184395,
0.0597088523209095,
0.04066575691103935,
0.014506194740533829,
0.1989477276802063,
0.03292596712708473,
-0.025944065302610397,
-0.07659246772527695,
0.07512518763542175,
-0.02567293494939804,
0.23261000216007233,
0.022044239565730095,
0.039931681007146835,
0.06825452297925949,
0.006806537043303251,
-0.08778049796819687,
0.02106558158993721,
0.002947683446109295,
0.0444868803024292,
0.03330504521727562,
0.1754404753446579,
-0.027475234121084213,
-0.06518494337797165,
0.013502541929483414,
-0.0766221284866333,
0.05746171250939369,
-0.11209157109260559,
-0.06499194353818893,
-0.09794683754444122,
0.10461920499801636,
-0.06547245383262634,
0.11880125105381012,
0.19397591054439545,
-0.006027694325894117,
0.014478112570941448,
-0.05847742408514023,
0.000721202464774251,
0.018852369859814644,
0.1283992975950241,
-0.015089712105691433,
-0.17722629010677338,
-0.004518432542681694,
-0.04975723475217819,
0.021315859630703926,
-0.28892797231674194,
-0.046813417226076126,
0.02410595491528511,
-0.0807751789689064,
-0.03406420722603798,
0.06370332837104797,
0.013084083795547485,
0.07087649405002594,
-0.03351610153913498,
-0.0419497974216938,
0.0009544159402139485,
0.10139472037553787,
-0.1352558583021164,
-0.028292352333664894
] |
null | null | transformers |
# ALBERT Large v1
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1909.11942) and first released in
[this repository](https://github.com/google-research/albert). This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the first version of the large model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
- 24 repeating layers
- 128 embedding dimension
- 1024 hidden dimension
- 16 attention heads
- 17M parameters
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=albert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-large-v1')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
"sequence":"[CLS] hello i'm a modeling model.[SEP]",
"score":0.05816134437918663,
"token":12807,
"token_str":"â–modeling"
},
{
"sequence":"[CLS] hello i'm a modelling model.[SEP]",
"score":0.03748830780386925,
"token":23089,
"token_str":"â–modelling"
},
{
"sequence":"[CLS] hello i'm a model model.[SEP]",
"score":0.033725276589393616,
"token":1061,
"token_str":"â–model"
},
{
"sequence":"[CLS] hello i'm a runway model.[SEP]",
"score":0.017313428223133087,
"token":8014,
"token_str":"â–runway"
},
{
"sequence":"[CLS] hello i'm a lingerie model.[SEP]",
"score":0.014405295252799988,
"token":29104,
"token_str":"â–lingerie"
}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AlbertTokenizer, AlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-large-v1')
model = AlbertModel.from_pretrained("albert-large-v1")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AlbertTokenizer, TFAlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-large-v1')
model = TFAlbertModel.from_pretrained("albert-large-v1")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-large-v1')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] the man worked as a chauffeur.[SEP]",
"score":0.029577180743217468,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the man worked as a janitor.[SEP]",
"score":0.028865724802017212,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the man worked as a shoemaker.[SEP]",
"score":0.02581118606030941,
"token":29024,
"token_str":"â–shoemaker"
},
{
"sequence":"[CLS] the man worked as a blacksmith.[SEP]",
"score":0.01849772222340107,
"token":21238,
"token_str":"â–blacksmith"
},
{
"sequence":"[CLS] the man worked as a lawyer.[SEP]",
"score":0.01820771023631096,
"token":3672,
"token_str":"â–lawyer"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] the woman worked as a receptionist.[SEP]",
"score":0.04604868218302727,
"token":25331,
"token_str":"â–receptionist"
},
{
"sequence":"[CLS] the woman worked as a janitor.[SEP]",
"score":0.028220869600772858,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the woman worked as a paramedic.[SEP]",
"score":0.0261906236410141,
"token":23386,
"token_str":"â–paramedic"
},
{
"sequence":"[CLS] the woman worked as a chauffeur.[SEP]",
"score":0.024797942489385605,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the woman worked as a waitress.[SEP]",
"score":0.024124596267938614,
"token":13678,
"token_str":"â–waitress"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The ALBERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
## Evaluation results
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
| | Average | SQuAD1.1 | SQuAD2.0 | MNLI | SST-2 | RACE |
|----------------|----------|----------|----------|----------|----------|----------|
|V2 |
|ALBERT-base |82.3 |90.2/83.2 |82.1/79.3 |84.6 |92.9 |66.8 |
|ALBERT-large |85.7 |91.8/85.2 |84.9/81.8 |86.5 |94.9 |75.2 |
|ALBERT-xlarge |87.9 |92.9/86.4 |87.9/84.1 |87.9 |95.4 |80.7 |
|ALBERT-xxlarge |90.9 |94.6/89.1 |89.8/86.9 |90.6 |96.8 |86.8 |
|V1 |
|ALBERT-base |80.1 |89.3/82.3 | 80.0/77.1|81.6 |90.3 | 64.0 |
|ALBERT-large |82.4 |90.6/83.9 | 82.3/79.4|83.5 |91.7 | 68.5 |
|ALBERT-xlarge |85.5 |92.5/86.1 | 86.1/83.1|86.4 |92.4 | 74.8 |
|ALBERT-xxlarge |91.0 |94.8/89.3 | 90.2/87.4|90.8 |96.9 | 86.5 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1909-11942,
author = {Zhenzhong Lan and
Mingda Chen and
Sebastian Goodman and
Kevin Gimpel and
Piyush Sharma and
Radu Soricut},
title = {{ALBERT:} {A} Lite {BERT} for Self-supervised Learning of Language
Representations},
journal = {CoRR},
volume = {abs/1909.11942},
year = {2019},
url = {http://arxiv.org/abs/1909.11942},
archivePrefix = {arXiv},
eprint = {1909.11942},
timestamp = {Fri, 27 Sep 2019 13:04:21 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1909-11942.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
``` | {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | albert/albert-large-v1 | [
"transformers",
"pytorch",
"tf",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1909.11942"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| ALBERT Large v1
===============
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the first version of the large model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
* 24 repeating layers
* 128 embedding dimension
* 1024 hidden dimension
* 16 attention heads
* 17M parameters
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
Evaluation results
------------------
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
### BibTeX entry and citation info
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
70,
49,
102,
42,
135,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:### BibTeX entry and citation info"
] | [
-0.05667823925614357,
0.08347521722316742,
-0.003313080407679081,
0.07908394187688828,
0.05151635780930519,
0.008104290813207626,
0.08640990406274796,
0.05556471273303032,
-0.08198466897010803,
0.06249178946018219,
0.04316376522183418,
0.04599187523126602,
0.11425124853849411,
0.14828482270240784,
0.05441417172551155,
-0.31177178025245667,
0.04608045145869255,
-0.020020676776766777,
0.03857671841979027,
0.10612472891807556,
0.10209345072507858,
-0.10734426230192184,
0.021067384630441666,
0.013857576064765453,
-0.048613615334033966,
-0.028752971440553665,
0.005298438016325235,
-0.04515842720866203,
0.07352491468191147,
0.04612286388874054,
0.0922040119767189,
0.03058130480349064,
0.053169362246990204,
-0.14963218569755554,
0.023935038596391678,
0.07624046504497528,
0.013490135781466961,
0.08375383168458939,
0.07991432398557663,
0.03118901699781418,
0.10077029466629028,
-0.07753490656614304,
0.06471040099859238,
0.050635404884815216,
-0.10193444788455963,
-0.0981023982167244,
-0.06296634674072266,
0.0944828987121582,
0.09361127018928528,
0.05350752919912338,
-0.03670292720198631,
0.09505821019411087,
-0.06486940383911133,
0.08291499316692352,
0.21466390788555145,
-0.2051638513803482,
-0.013802370056509972,
-0.01321291271597147,
-0.03628116101026535,
-0.0007366263889707625,
-0.10266046226024628,
-0.059840600937604904,
0.025059090927243233,
0.0355818085372448,
0.10717219114303589,
-0.004180503077805042,
0.029566893354058266,
-0.08144653588533401,
-0.1283537745475769,
-0.09349779784679413,
0.05898304656147957,
-0.0003399956913199276,
-0.11279486864805222,
-0.15138360857963562,
-0.02986915037035942,
-0.06170433387160301,
-0.008535300381481647,
0.007245121989399195,
0.018330972641706467,
-0.013427041471004486,
0.04931262880563736,
-0.02224128320813179,
-0.093492291867733,
-0.04333905130624771,
-0.043764155358076096,
0.13635140657424927,
0.04767867177724838,
-0.007216016296297312,
-0.045385513454675674,
0.12406949698925018,
-0.000851496821269393,
-0.13038374483585358,
-0.0327020138502121,
-0.07112676650285721,
-0.11813805997371674,
-0.02963237464427948,
-0.006708831992000341,
-0.10501854866743088,
-0.06797342002391815,
0.12423653155565262,
-0.07798149436712265,
0.05437630042433739,
-0.0784304291009903,
0.022871922701597214,
0.05841879919171333,
0.08743103593587875,
-0.14053331315517426,
0.02959899604320526,
0.015001756139099598,
0.01136468630284071,
0.04161394387483597,
-0.018219731748104095,
-0.00242281099781394,
-0.004762989468872547,
0.0568198598921299,
0.05835847929120064,
-0.001974194310605526,
0.08009760826826096,
-0.06254192441701889,
-0.07601025700569153,
0.10993676632642746,
-0.14706876873970032,
-0.03892352432012558,
-0.008053434081375599,
-0.046007756143808365,
-0.02635137178003788,
0.040004801005125046,
-0.057096224278211594,
-0.12311587482690811,
0.13907891511917114,
-0.08447765558958054,
-0.04885484278202057,
-0.07160034775733948,
-0.16134117543697357,
-0.0016862069023773074,
-0.04117263853549957,
-0.06486032158136368,
-0.04122001305222511,
-0.08696572482585907,
-0.016246184706687927,
0.043748077005147934,
-0.011056154035031796,
-0.01930731162428856,
-0.009410565719008446,
-0.04979243129491806,
-0.013574386946856976,
-0.005766225978732109,
0.09534800052642822,
-0.01692173257470131,
0.05832089111208916,
-0.06143723800778389,
0.07835053652524948,
0.08465936034917831,
0.031857237219810486,
-0.09501247107982635,
0.026698008179664612,
-0.2501128017902374,
0.08174491673707962,
-0.034621451050043106,
-0.03844170644879341,
-0.06883572041988373,
-0.09281810373067856,
-0.07061607390642166,
0.015432560816407204,
0.0387507863342762,
0.15244798362255096,
-0.2080317884683609,
-0.04226703569293022,
0.2904368042945862,
-0.1350552886724472,
0.01451521459966898,
0.13072185218334198,
-0.0713314339518547,
0.01751595363020897,
0.08790460228919983,
0.09417057037353516,
-0.014229902997612953,
-0.09511514008045197,
-0.028310652822256088,
-0.04999973624944687,
-0.028375893831253052,
0.1582123041152954,
0.04853496327996254,
-0.043219465762376785,
-0.06141131743788719,
0.008504019118845463,
-0.07097221165895462,
-0.024667538702487946,
-0.019781677052378654,
-0.0260261632502079,
0.038894202560186386,
-0.009833280928432941,
0.07844606786966324,
0.02107003703713417,
-0.048781998455524445,
-0.038394223898649216,
-0.12271296977996826,
-0.0346834734082222,
0.06951428949832916,
-0.08361560851335526,
0.029555145651102066,
-0.07604137063026428,
-0.022762438282370567,
-0.02005051262676716,
-0.006830669939517975,
-0.2090151607990265,
0.01866772770881653,
0.06276828795671463,
-0.09720693528652191,
0.07355233281850815,
0.02601015567779541,
0.03857722505927086,
0.06961709260940552,
-0.05167261138558388,
0.003973667975515127,
-0.013989304192364216,
-0.0239170603454113,
-0.0650244802236557,
-0.1560194045305252,
-0.05928272753953934,
-0.03453580662608147,
0.1000426635146141,
-0.07893800735473633,
0.0003954787098336965,
-0.009810146875679493,
0.055691394954919815,
0.0360041968524456,
-0.06607580929994583,
0.0716370940208435,
-0.003652713494375348,
-0.03977478668093681,
-0.05532069131731987,
0.0014715513680130243,
0.01717536151409149,
-0.009011531248688698,
0.045689478516578674,
-0.1977272629737854,
-0.13962651789188385,
0.07614663988351822,
0.037217702716588974,
-0.11761642247438431,
-0.019519798457622528,
-0.0673246681690216,
-0.011560874991118908,
-0.07344415783882141,
-0.050853319466114044,
0.20474660396575928,
0.04369620233774185,
0.10310535132884979,
-0.08568781614303589,
-0.022730233147740364,
0.01906990259885788,
0.015076739713549614,
-0.04695496708154678,
0.063705675303936,
0.011925446800887585,
-0.10095276683568954,
0.03809276595711708,
-0.058593690395355225,
0.03935368359088898,
0.1297035664319992,
0.03513204678893089,
-0.09990403801202774,
0.012732245028018951,
0.012076220475137234,
0.04599462449550629,
0.06994232535362244,
-0.10076364874839783,
0.0162173081189394,
0.06462064385414124,
0.002921542152762413,
0.015229906886816025,
-0.08446197956800461,
0.04047343507409096,
0.05036171153187752,
-0.041738905012607574,
-0.05374935641884804,
-0.058302946388721466,
0.0038186111487448215,
0.11634024232625961,
0.047963038086891174,
0.033262453973293304,
-0.019520509988069534,
-0.05178806930780411,
-0.11070885509252548,
0.18263134360313416,
-0.0822695791721344,
-0.26426514983177185,
-0.15253695845603943,
0.007433051709085703,
0.0012859946582466364,
0.02871333807706833,
0.00429975101724267,
-0.06206784024834633,
-0.0929885059595108,
-0.11483374983072281,
0.049619223922491074,
0.00912874098867178,
-0.017897751182317734,
-0.012415913864970207,
-0.03527582064270973,
0.019651276990771294,
-0.1340654045343399,
-0.014365095645189285,
-0.0037047553341835737,
-0.048376645892858505,
0.01831492781639099,
-0.022763196378946304,
0.08083142340183258,
0.1572645753622055,
-0.005248923320323229,
-0.006286324467509985,
-0.044124893844127655,
0.1688375324010849,
-0.07765830308198929,
0.0828627422451973,
0.061023078858852386,
-0.0812448188662529,
0.05813733860850334,
0.13448728621006012,
0.0022408589720726013,
-0.06498376280069351,
0.07227900624275208,
0.05173575133085251,
-0.049122538417577744,
-0.23325076699256897,
-0.042947884649038315,
-0.05951610580086708,
-0.008816288784146309,
0.13352344930171967,
0.03941218554973602,
0.02987593226134777,
0.02038085088133812,
-0.10872034728527069,
-0.010978702455759048,
0.05702363699674606,
0.0914691686630249,
-0.07334193587303162,
-0.003366179997101426,
0.07902194559574127,
-0.040312472730875015,
-0.03470559045672417,
0.0900016576051712,
-0.08550307154655457,
0.16805888712406158,
-0.07445131987333298,
0.20787298679351807,
0.10984235256910324,
0.037040457129478455,
0.027606183663010597,
0.16469165682792664,
-0.03948482125997543,
0.017898844555020332,
-0.03469155728816986,
-0.0857800841331482,
-0.062400780618190765,
0.018050827085971832,
0.0013524411479011178,
0.045462656766176224,
-0.08660019189119339,
-0.05919463559985161,
0.0024352793116122484,
0.2976292371749878,
0.06353507190942764,
-0.14988069236278534,
-0.0939420610666275,
0.011053246445953846,
-0.041541650891304016,
-0.07711537182331085,
-0.0004088141140528023,
0.09243154525756836,
-0.12606796622276306,
0.07271063327789307,
-0.04745033383369446,
0.08509478718042374,
-0.0954873189330101,
0.007785628084093332,
-0.06523606926202774,
0.0842304453253746,
-0.046361926943063736,
0.0830635279417038,
-0.253038227558136,
0.19317828118801117,
0.01563459075987339,
0.09170185029506683,
-0.1309133619070053,
-0.002452813321724534,
0.04427962377667427,
-0.03750985860824585,
0.18015088140964508,
-0.003877912648022175,
0.04300474748015404,
-0.10345496237277985,
-0.08364515751600266,
0.0020102127455174923,
0.06945031136274338,
-0.009492085315287113,
0.08629167079925537,
0.01328736450523138,
0.0005944445147179067,
0.001187210320495069,
0.0430290587246418,
-0.1263040453195572,
-0.13884414732456207,
0.05146166682243347,
-0.10618241876363754,
-0.04570511728525162,
-0.05237279087305069,
-0.1014813780784607,
0.027868907898664474,
0.1934639811515808,
-0.16538095474243164,
-0.0818253755569458,
-0.11812935024499893,
0.01248067058622837,
0.1019139364361763,
-0.09206543117761612,
0.008371394127607346,
-0.01678580604493618,
0.21589694917201996,
-0.05467608571052551,
-0.07363250851631165,
0.05694317817687988,
-0.059534478932619095,
-0.1377968192100525,
-0.03661947697401047,
0.11678425222635269,
0.14798744022846222,
0.09414704889059067,
0.004088176414370537,
0.00991487130522728,
0.07618521898984909,
-0.1012568473815918,
-0.02106337994337082,
0.09210420399904251,
0.1326119601726532,
0.06389341503381729,
-0.08340202271938324,
-0.04792361333966255,
-0.12415732443332672,
0.041273605078458786,
0.10557615756988525,
0.21995483338832855,
-0.06595073640346527,
0.1163625717163086,
0.20739160478115082,
-0.08256522566080093,
-0.22083495557308197,
0.01736624166369438,
0.06286340951919556,
0.07047859579324722,
0.0741053894162178,
-0.20067650079727173,
0.030995609238743782,
0.02701081708073616,
0.0032025829423218966,
-0.026369761675596237,
-0.19320009648799896,
-0.12796363234519958,
0.13820211589336395,
0.11001389473676682,
-0.05147525295615196,
-0.062129825353622437,
-0.011600933037698269,
-0.04999583214521408,
-0.07451195269823074,
0.11870250105857849,
0.005457337014377117,
0.1159818097949028,
0.020777344703674316,
-0.06447480618953705,
0.04536519572138786,
-0.08057725429534912,
0.09950577467679977,
0.01979009434580803,
0.08036086708307266,
-0.09021344780921936,
-0.058731526136398315,
0.050767119973897934,
-0.04760504886507988,
0.15523336827754974,
0.06263952702283859,
0.033392395824193954,
-0.03588981553912163,
-0.07827439904212952,
-0.08530477434396744,
0.0182789359241724,
-0.06373731046915054,
-0.08728771656751633,
-0.0578780435025692,
0.11682438850402832,
0.09273747354745865,
-0.016404714435338974,
-0.011271093972027302,
-0.050596628338098526,
0.049494609236717224,
0.13740551471710205,
0.17039746046066284,
0.012894685380160809,
-0.042476531118154526,
0.008607233874499798,
0.00912337563931942,
0.03622472658753395,
-0.06210195645689964,
0.04750311002135277,
0.09159965813159943,
0.04897494986653328,
0.15597683191299438,
0.02473508007824421,
-0.15715241432189941,
-0.037176936864852905,
0.022917727008461952,
-0.12391979992389679,
-0.1596481055021286,
0.012010429054498672,
-0.006027578841894865,
-0.16119419038295746,
-0.07623802870512009,
0.038525909185409546,
-0.04137267544865608,
-0.010594915598630905,
0.01635538972914219,
0.05054296553134918,
0.0000877302372828126,
0.17991863191127777,
0.058053694665431976,
0.05322244018316269,
-0.07936372607946396,
0.08017883449792862,
0.08898180723190308,
-0.07273633778095245,
0.04750584438443184,
0.04731735214591026,
-0.08907943218946457,
-0.0012046991614624858,
0.01849278435111046,
0.06896716356277466,
0.127924382686615,
-0.011055530048906803,
-0.04717289283871651,
-0.06441999226808548,
0.04929376021027565,
0.075383260846138,
0.018193135038018227,
0.06095937639474869,
-0.062098413705825806,
0.008932748809456825,
-0.09922350198030472,
0.0611039474606514,
0.061913542449474335,
0.0321260429918766,
0.021719258278608322,
0.19934354722499847,
0.03150826320052147,
0.052169397473335266,
-0.0240510031580925,
-0.06187664717435837,
-0.07155779004096985,
0.0007776763522997499,
-0.0611659437417984,
0.0328160859644413,
-0.11966895312070847,
-0.030834127217531204,
-0.03962133824825287,
0.014205262996256351,
0.011415091343224049,
0.01491532102227211,
-0.042359430342912674,
-0.023794785141944885,
-0.026975665241479874,
0.012238048948347569,
-0.11259134858846664,
0.00390667375177145,
0.060415346175432205,
-0.07673684507608414,
0.0876753032207489,
-0.030737632885575294,
-0.040002260357141495,
0.01808977499604225,
-0.15080921351909637,
-0.01838136464357376,
-0.011896475218236446,
0.00764623424038291,
0.008522829040884972,
-0.13765951991081238,
0.007381847128272057,
-0.03561735153198242,
-0.0452297106385231,
-0.01561965886503458,
0.0775267630815506,
-0.10113540291786194,
0.0658981129527092,
0.047999173402786255,
-0.03114907070994377,
-0.059003572911024094,
0.11916480213403702,
0.08193787187337875,
-0.033657923340797424,
0.13029588758945465,
-0.037023965269327164,
0.05084704980254173,
-0.14494699239730835,
-0.02446024678647518,
-0.011465989984571934,
0.003847826039418578,
0.05493234843015671,
-0.05752883851528168,
0.05423945561051369,
-0.006737331859767437,
0.10478915274143219,
0.007828611880540848,
-0.056549347937107086,
0.03820616751909256,
-0.031194277107715607,
0.01837231032550335,
-0.006177471950650215,
0.0734746977686882,
-0.05039985850453377,
-0.07159332185983658,
0.0367039293050766,
0.02604474499821663,
-0.006753252353519201,
0.13809646666049957,
0.26738592982292175,
0.1145094782114029,
0.07677400857210159,
-0.02144543081521988,
0.0020775371231138706,
-0.03380352631211281,
-0.08960619568824768,
-0.02220507338643074,
0.06603047996759415,
0.04673304408788681,
0.00007899408228695393,
0.08134745806455612,
0.11444655060768127,
-0.1449069231748581,
0.14770668745040894,
0.019405340775847435,
-0.09224553406238556,
-0.09642909467220306,
-0.2504918575286865,
-0.0008002162794582546,
0.08370407670736313,
-0.029821857810020447,
-0.12721925973892212,
0.013510218821465969,
0.11181192845106125,
0.047729164361953735,
-0.03452780097723007,
0.1611899733543396,
-0.08229434490203857,
-0.0861179381608963,
0.0835375040769577,
0.017852840945124626,
-0.002544101094827056,
-0.007696071173995733,
0.008471843786537647,
0.047405682504177094,
0.039373598992824554,
0.0877314880490303,
0.0447838231921196,
0.04830709844827652,
-0.0016436115838587284,
-0.013657051138579845,
-0.08863828331232071,
0.029517358168959618,
-0.02684410847723484,
0.10059095174074173,
0.24101650714874268,
0.04012444242835045,
-0.036335866898298264,
-0.00960989948362112,
0.12304265052080154,
-0.021471437066793442,
-0.0690193623304367,
-0.12830086052417755,
0.16738809645175934,
0.04167437553405762,
-0.005485293921083212,
0.0556318573653698,
-0.10764802992343903,
0.032646432518959045,
0.23761866986751556,
0.14182783663272858,
0.0011957709211856127,
0.012096733786165714,
0.008423762395977974,
0.014524565078318119,
0.027076750993728638,
0.1612141728401184,
-0.005447881296277046,
0.2128559798002243,
-0.03626790642738342,
0.1060524731874466,
-0.037359680980443954,
-0.04406345635652542,
-0.035172171890735626,
0.09453263878822327,
0.028232000768184662,
-0.009198799729347229,
-0.07897105067968369,
0.06607218086719513,
-0.021750882267951965,
-0.260026752948761,
-0.028478579595685005,
-0.056979112327098846,
-0.12965057790279388,
-0.011414061300456524,
-0.07500343769788742,
0.0667838305234909,
0.07483363151550293,
0.02779369242489338,
0.03505672886967659,
0.16206762194633484,
0.043138593435287476,
-0.03953241556882858,
-0.0860275849699974,
0.08366993814706802,
-0.03308018669486046,
0.20990166068077087,
0.023141775280237198,
0.03969908878207207,
0.09320905804634094,
0.0155209144577384,
-0.09686201065778732,
0.033003516495227814,
0.004970548674464226,
0.03956272453069687,
0.02509421668946743,
0.18521223962306976,
-0.02411201037466526,
-0.05288241431117058,
0.01025550626218319,
-0.1039607897400856,
0.057859405875205994,
-0.10493405908346176,
-0.03247814252972603,
-0.1193951740860939,
0.11030786484479904,
-0.0604960173368454,
0.1304416060447693,
0.19824650883674622,
-0.006808329839259386,
-0.005078800022602081,
-0.08136770129203796,
-0.020754951983690262,
-0.009727342054247856,
0.10144088417291641,
-0.022731496021151543,
-0.18574245274066925,
0.006502075120806694,
-0.05712493881583214,
0.025840619578957558,
-0.2963947355747223,
-0.042784433811903,
0.03296564891934395,
-0.08048302680253983,
-0.021068980917334557,
0.06506511569023132,
-0.03673930838704109,
0.0753861516714096,
-0.03602520003914833,
0.0423402301967144,
-0.004416536074131727,
0.10059640556573868,
-0.14944693446159363,
-0.04231806471943855
] |
null | null | transformers |
# ALBERT Large v2
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1909.11942) and first released in
[this repository](https://github.com/google-research/albert). This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the second version of the large model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
- 24 repeating layers
- 128 embedding dimension
- 1024 hidden dimension
- 16 attention heads
- 17M parameters
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=albert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-large-v2')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
"sequence":"[CLS] hello i'm a modeling model.[SEP]",
"score":0.05816134437918663,
"token":12807,
"token_str":"â–modeling"
},
{
"sequence":"[CLS] hello i'm a modelling model.[SEP]",
"score":0.03748830780386925,
"token":23089,
"token_str":"â–modelling"
},
{
"sequence":"[CLS] hello i'm a model model.[SEP]",
"score":0.033725276589393616,
"token":1061,
"token_str":"â–model"
},
{
"sequence":"[CLS] hello i'm a runway model.[SEP]",
"score":0.017313428223133087,
"token":8014,
"token_str":"â–runway"
},
{
"sequence":"[CLS] hello i'm a lingerie model.[SEP]",
"score":0.014405295252799988,
"token":29104,
"token_str":"â–lingerie"
}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AlbertTokenizer, AlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-large-v2')
model = AlbertModel.from_pretrained("albert-large-v2")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AlbertTokenizer, TFAlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-large-v2')
model = TFAlbertModel.from_pretrained("albert-large-v2")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-large-v2')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] the man worked as a chauffeur.[SEP]",
"score":0.029577180743217468,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the man worked as a janitor.[SEP]",
"score":0.028865724802017212,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the man worked as a shoemaker.[SEP]",
"score":0.02581118606030941,
"token":29024,
"token_str":"â–shoemaker"
},
{
"sequence":"[CLS] the man worked as a blacksmith.[SEP]",
"score":0.01849772222340107,
"token":21238,
"token_str":"â–blacksmith"
},
{
"sequence":"[CLS] the man worked as a lawyer.[SEP]",
"score":0.01820771023631096,
"token":3672,
"token_str":"â–lawyer"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] the woman worked as a receptionist.[SEP]",
"score":0.04604868218302727,
"token":25331,
"token_str":"â–receptionist"
},
{
"sequence":"[CLS] the woman worked as a janitor.[SEP]",
"score":0.028220869600772858,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the woman worked as a paramedic.[SEP]",
"score":0.0261906236410141,
"token":23386,
"token_str":"â–paramedic"
},
{
"sequence":"[CLS] the woman worked as a chauffeur.[SEP]",
"score":0.024797942489385605,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the woman worked as a waitress.[SEP]",
"score":0.024124596267938614,
"token":13678,
"token_str":"â–waitress"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The ALBERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
## Evaluation results
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
| | Average | SQuAD1.1 | SQuAD2.0 | MNLI | SST-2 | RACE |
|----------------|----------|----------|----------|----------|----------|----------|
|V2 |
|ALBERT-base |82.3 |90.2/83.2 |82.1/79.3 |84.6 |92.9 |66.8 |
|ALBERT-large |85.7 |91.8/85.2 |84.9/81.8 |86.5 |94.9 |75.2 |
|ALBERT-xlarge |87.9 |92.9/86.4 |87.9/84.1 |87.9 |95.4 |80.7 |
|ALBERT-xxlarge |90.9 |94.6/89.1 |89.8/86.9 |90.6 |96.8 |86.8 |
|V1 |
|ALBERT-base |80.1 |89.3/82.3 | 80.0/77.1|81.6 |90.3 | 64.0 |
|ALBERT-large |82.4 |90.6/83.9 | 82.3/79.4|83.5 |91.7 | 68.5 |
|ALBERT-xlarge |85.5 |92.5/86.1 | 86.1/83.1|86.4 |92.4 | 74.8 |
|ALBERT-xxlarge |91.0 |94.8/89.3 | 90.2/87.4|90.8 |96.9 | 86.5 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1909-11942,
author = {Zhenzhong Lan and
Mingda Chen and
Sebastian Goodman and
Kevin Gimpel and
Piyush Sharma and
Radu Soricut},
title = {{ALBERT:} {A} Lite {BERT} for Self-supervised Learning of Language
Representations},
journal = {CoRR},
volume = {abs/1909.11942},
year = {2019},
url = {http://arxiv.org/abs/1909.11942},
archivePrefix = {arXiv},
eprint = {1909.11942},
timestamp = {Fri, 27 Sep 2019 13:04:21 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1909-11942.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
``` | {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | albert/albert-large-v2 | [
"transformers",
"pytorch",
"tf",
"safetensors",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1909.11942"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #safetensors #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| ALBERT Large v2
===============
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the second version of the large model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
* 24 repeating layers
* 128 embedding dimension
* 1024 hidden dimension
* 16 attention heads
* 17M parameters
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
Evaluation results
------------------
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
### BibTeX entry and citation info
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #safetensors #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
75,
49,
102,
42,
135,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #safetensors #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:### BibTeX entry and citation info"
] | [
-0.04551113396883011,
0.0802619680762291,
-0.004052036441862583,
0.07860441505908966,
0.04896535351872444,
0.009174984879791737,
0.08155245333909988,
0.04193923622369766,
-0.08074910938739777,
0.07420488446950912,
0.03317805007100105,
0.04168064892292023,
0.1137911006808281,
0.12865380942821503,
0.03562881052494049,
-0.3194960355758667,
0.04676777496933937,
-0.015500158071517944,
0.035448186099529266,
0.09928426146507263,
0.10145502537488937,
-0.10330747812986374,
0.013665885664522648,
-0.0071895238943398,
-0.03393346071243286,
-0.034216634929180145,
-0.0018901361618191004,
-0.042468078434467316,
0.07356763631105423,
0.05284520238637924,
0.1046295166015625,
0.0404527373611927,
0.05444014444947243,
-0.17392070591449738,
0.02301005832850933,
0.08772853016853333,
0.006956661585718393,
0.08186767250299454,
0.09368777275085449,
0.02413523942232132,
0.11847671866416931,
-0.0612131766974926,
0.06962253898382187,
0.04527520388364792,
-0.11396395415067673,
-0.09088940918445587,
-0.05937955155968666,
0.10509873926639557,
0.11327197402715683,
0.026418432593345642,
-0.0334581583738327,
0.06045398488640785,
-0.05818641185760498,
0.09398715943098068,
0.22296026349067688,
-0.19845816493034363,
-0.01989910751581192,
-0.012354457750916481,
-0.0070524439215660095,
0.016607169061899185,
-0.09925274550914764,
-0.05664094164967537,
0.023971661925315857,
0.030421694740653038,
0.13375677168369293,
-0.012973122298717499,
-0.003083419054746628,
-0.07122260332107544,
-0.1373298168182373,
-0.08675924688577652,
0.0611911304295063,
-0.0010342838941141963,
-0.1053277924656868,
-0.1360902041196823,
-0.03571191430091858,
-0.0576082207262516,
-0.01811579056084156,
0.007686743978410959,
0.021222004666924477,
-0.01571779139339924,
0.0731607973575592,
-0.030072787776589394,
-0.09501220285892487,
-0.054114360362291336,
-0.029698846861720085,
0.09900537878274918,
0.04432804882526398,
-0.004976477473974228,
-0.03827338665723801,
0.12907736003398895,
0.000012067925126757473,
-0.1198144406080246,
-0.03641133010387421,
-0.05129370838403702,
-0.12604333460330963,
-0.04294734448194504,
0.006550996098667383,
-0.08121354132890701,
-0.05359722301363945,
0.12144969403743744,
-0.07646219432353973,
0.052818041294813156,
-0.11000118404626846,
0.03786785528063774,
0.03273627907037735,
0.08413033932447433,
-0.09982180595397949,
0.023096779361367226,
0.012542684562504292,
0.04627145454287529,
0.030143965035676956,
0.00010260176350129768,
0.007899032905697823,
0.015061267651617527,
0.05133241042494774,
0.07356788218021393,
-0.006212256383150816,
0.07572850584983826,
-0.0733005627989769,
-0.04566649720072746,
0.117124542593956,
-0.1493610441684723,
-0.026935739442706108,
0.009401454590260983,
-0.04137833043932915,
-0.05018153786659241,
0.05190020799636841,
-0.05363049730658531,
-0.11976885795593262,
0.152625173330307,
-0.08122817426919937,
-0.03451291099190712,
-0.07300899922847748,
-0.1447543054819107,
-0.0026474616024643183,
-0.025739552453160286,
-0.07170360535383224,
-0.03028891794383526,
-0.11033158749341965,
-0.029098354279994965,
0.047077327966690063,
-0.019686510786414146,
-0.02027660608291626,
-0.03105141408741474,
-0.03543657064437866,
-0.026764025911688805,
-0.004180578049272299,
0.1106206402182579,
-0.024547459557652473,
0.06970713287591934,
-0.06840337067842484,
0.08289238810539246,
0.09605103731155396,
0.03087173029780388,
-0.09323615580797195,
0.03921728953719139,
-0.2114611268043518,
0.08727454394102097,
-0.049125902354717255,
-0.042977042496204376,
-0.08089441806077957,
-0.07186415046453476,
-0.06054092198610306,
0.03029811754822731,
0.020987944677472115,
0.16369278728961945,
-0.2119584083557129,
-0.041542358696460724,
0.32052451372146606,
-0.1367534101009369,
-0.002294054953381419,
0.12919074296951294,
-0.066414475440979,
0.03440329432487488,
0.0808856263756752,
0.08894262462854385,
-0.04917604476213455,
-0.09136492013931274,
-0.0030137980356812477,
-0.05897599831223488,
-0.0008087589521892369,
0.17744973301887512,
0.03839888423681259,
-0.052005935460329056,
-0.04630080237984657,
0.004275207407772541,
-0.05512862652540207,
-0.05079255625605583,
-0.018915673717856407,
-0.02526763267815113,
0.048335254192352295,
-0.017202435061335564,
0.03870829567313194,
0.013349601067602634,
-0.05048910155892372,
-0.03435882553458214,
-0.11198391765356064,
-0.02944340743124485,
0.06985864788293839,
-0.07916663587093353,
0.03236980736255646,
-0.051062460988759995,
-0.02647782489657402,
0.0013752580853179097,
0.0032333179842680693,
-0.19330114126205444,
0.0023915974888950586,
0.0667717233300209,
-0.06412503123283386,
0.07577772438526154,
0.018598997965455055,
0.026461223140358925,
0.08619476109743118,
-0.0623263344168663,
-0.012272304855287075,
0.008379009552299976,
-0.015970533713698387,
-0.07066856324672699,
-0.1653992235660553,
-0.057337600737810135,
-0.036461371928453445,
0.09765934944152832,
-0.1362580806016922,
0.010994399897754192,
0.007720418740063906,
0.06752710044384003,
0.05236116051673889,
-0.06864910572767258,
0.06248823180794716,
0.009777098894119263,
-0.04145250469446182,
-0.056500568985939026,
0.008342307060956955,
0.013000303879380226,
0.000765531265642494,
0.06627954542636871,
-0.20021773874759674,
-0.1504518985748291,
0.06118915230035782,
0.05632588639855385,
-0.13750065863132477,
-0.052416473627090454,
-0.06842749565839767,
-0.023510001599788666,
-0.08883948624134064,
-0.05367489159107208,
0.15213648974895477,
0.036988403648138046,
0.11421379446983337,
-0.08264148235321045,
-0.0222010500729084,
0.005905165337026119,
-0.00013674053479917347,
-0.04593511298298836,
0.0817798599600792,
0.030059203505516052,
-0.10633993148803711,
0.05813867971301079,
-0.07175382971763611,
0.012249952182173729,
0.12792889773845673,
0.01868418976664543,
-0.10436969250440598,
0.021510083228349686,
0.036857228726148605,
0.06437184661626816,
0.08481411635875702,
-0.0866444781422615,
0.009299608878791332,
0.05689283832907677,
-0.010078764520585537,
0.012822967022657394,
-0.1007397472858429,
0.05021527409553528,
0.04364950582385063,
-0.04251604527235031,
-0.02986682392656803,
-0.05711539834737778,
-0.004364591091871262,
0.1370524764060974,
0.020508522167801857,
0.010627740062773228,
-0.023448161780834198,
-0.052213042974472046,
-0.12249186635017395,
0.18323172628879547,
-0.07688234746456146,
-0.22708256542682648,
-0.1624678671360016,
0.00595437828451395,
0.018974656239151955,
0.03463640436530113,
0.01500330027192831,
-0.04002918303012848,
-0.0799270048737526,
-0.14147889614105225,
0.029127033427357674,
0.02808815985918045,
-0.020980792120099068,
-0.03103758953511715,
-0.01857895217835903,
0.014451546594500542,
-0.11679108440876007,
-0.01751423440873623,
-0.0029288313817232847,
-0.06392254680395126,
0.026546722277998924,
-0.03831832483410835,
0.08612576872110367,
0.1615145206451416,
0.0030666945967823267,
-0.0058347308076918125,
-0.056852810084819794,
0.1485251635313034,
-0.07510945200920105,
0.10289401561021805,
0.02833210676908493,
-0.07297860831022263,
0.06745003908872604,
0.14825105667114258,
0.008620106615126133,
-0.06054901331663132,
0.06958574801683426,
0.05279053747653961,
-0.04934817552566528,
-0.24355751276016235,
-0.04037445783615112,
-0.060672078281641006,
0.006786515936255455,
0.13164295256137848,
0.04232345521450043,
0.022176086902618408,
0.015615268610417843,
-0.11686506867408752,
-0.005577221978455782,
0.08297377824783325,
0.0904945507645607,
-0.09143506735563278,
-0.0037065630313009024,
0.08000586926937103,
-0.03611430898308754,
-0.023492878302931786,
0.0827535092830658,
-0.07355844229459763,
0.18493932485580444,
-0.078372061252594,
0.19803214073181152,
0.1025734692811966,
0.013377929106354713,
0.022710440680384636,
0.1603737771511078,
-0.04621545225381851,
0.029926994815468788,
-0.03562483191490173,
-0.0894179493188858,
-0.046838585287332535,
0.044352609664201736,
-0.0169331356883049,
0.0328717976808548,
-0.07372020184993744,
-0.04962136968970299,
0.014357089065015316,
0.3048410713672638,
0.06515476852655411,
-0.16994163393974304,
-0.08097605407238007,
0.021282728761434555,
-0.043450355529785156,
-0.07235035300254822,
0.0015843840083107352,
0.08782266080379486,
-0.12353434413671494,
0.0641273707151413,
-0.04253777489066124,
0.08867298811674118,
-0.09390021115541458,
-0.007145026233047247,
-0.06577666103839874,
0.06981758028268814,
-0.0638180673122406,
0.07844943553209305,
-0.28124916553497314,
0.20240053534507751,
0.016252167522907257,
0.0931069403886795,
-0.11013350635766983,
0.004730249755084515,
0.03365541622042656,
-0.016005834564566612,
0.18269823491573334,
-0.014175819233059883,
0.009036421775817871,
-0.11136315762996674,
-0.07097841054201126,
0.0013405801728367805,
0.06395642459392548,
-0.034074172377586365,
0.09197209030389786,
0.017331670969724655,
-0.008519270457327366,
-0.008067474700510502,
0.015916163101792336,
-0.10407818853855133,
-0.14817914366722107,
0.03272484242916107,
-0.08574634045362473,
-0.022277770563960075,
-0.05994517728686333,
-0.0889473482966423,
0.050602301955223083,
0.17419710755348206,
-0.18633034825325012,
-0.08467065542936325,
-0.10808050632476807,
0.0011428407160565257,
0.09167513996362686,
-0.08860062807798386,
0.00850608479231596,
-0.019898271188139915,
0.1927952617406845,
-0.05684422329068184,
-0.059605639427900314,
0.053057555109262466,
-0.08382179588079453,
-0.15265759825706482,
-0.06650450080633163,
0.1388421207666397,
0.1436096876859665,
0.09300093352794647,
0.0009567360393702984,
0.02544274553656578,
0.08190728724002838,
-0.08493033051490784,
-0.02715878374874592,
0.08520854264497757,
0.14782747626304626,
0.07276459783315659,
-0.12102331966161728,
-0.08128603547811508,
-0.12396391481161118,
0.0011492915218695998,
0.07215133309364319,
0.22852690517902374,
-0.0567997470498085,
0.11775059998035431,
0.20179185271263123,
-0.10196883231401443,
-0.20333892107009888,
-0.002496772911399603,
0.06797656416893005,
0.05589804798364639,
0.06793927401304245,
-0.1947418600320816,
0.021474214270710945,
0.04896228760480881,
-0.006246006581932306,
0.001730871619656682,
-0.1846364289522171,
-0.13385507464408875,
0.1354587823152542,
0.1011636033654213,
-0.052046798169612885,
-0.09381841868162155,
-0.02409476973116398,
-0.03622635081410408,
-0.06715133786201477,
0.12795832753181458,
0.010278494097292423,
0.09993913769721985,
0.025183096528053284,
-0.07423185557126999,
0.03980276733636856,
-0.07442827522754669,
0.10264360904693604,
0.024624386802315712,
0.06385105103254318,
-0.075246661901474,
-0.05981644615530968,
0.023790322244167328,
-0.05108841881155968,
0.1316027194261551,
0.03301509469747543,
0.032546915113925934,
-0.03758623078465462,
-0.06733056157827377,
-0.08242039382457733,
0.02365288697183132,
-0.07107418030500412,
-0.0781676173210144,
-0.050578679889440536,
0.11003245413303375,
0.0919700637459755,
-0.01257054228335619,
-0.010734300129115582,
-0.06212538480758667,
0.07343713939189911,
0.1750413477420807,
0.1353147327899933,
0.0037028761580586433,
-0.0554620735347271,
0.004320521838963032,
0.002219650661572814,
0.04902629554271698,
-0.05281633511185646,
0.048523858189582825,
0.09053952991962433,
0.04956485331058502,
0.18464642763137817,
0.023346450179815292,
-0.14983369410037994,
-0.03249488025903702,
0.02302735112607479,
-0.1360074132680893,
-0.15855303406715393,
0.015355031006038189,
0.006269182078540325,
-0.14924386143684387,
-0.05710592493414879,
0.035547249019145966,
-0.04566509649157524,
-0.01046594325453043,
0.019313227385282516,
0.07044415175914764,
0.007301634177565575,
0.1914786398410797,
0.04179583117365837,
0.06743974983692169,
-0.06301353871822357,
0.06693664193153381,
0.10514621436595917,
-0.0881747305393219,
0.03057245723903179,
0.07537911832332611,
-0.08424431830644608,
-0.008858607150614262,
0.014752889052033424,
0.046715207397937775,
0.12174578756093979,
-0.02732527069747448,
-0.0533108226954937,
-0.054432887583971024,
0.05014793947339058,
0.09338617324829102,
0.018099572509527206,
0.07213922590017319,
-0.04217717424035072,
0.014004318974912167,
-0.08820011466741562,
0.0720832347869873,
0.07386557012796402,
0.04818039759993553,
0.037619609385728836,
0.17464371025562286,
0.03043859452009201,
0.030228421092033386,
-0.0207800455391407,
-0.049832019954919815,
-0.08802708983421326,
0.010456868447363377,
-0.0534634031355381,
0.05118215084075928,
-0.13045485317707062,
-0.034635450690984726,
-0.025420278310775757,
0.01506165973842144,
0.027372775599360466,
0.019263070076704025,
-0.03671112284064293,
-0.011346404440701008,
-0.0413554385304451,
0.043389443308115005,
-0.13172979652881622,
-0.00032270903466269374,
0.06430304795503616,
-0.08744421601295471,
0.0832020565867424,
-0.038658685982227325,
-0.03783983364701271,
0.008641819469630718,
-0.13428178429603577,
0.007338365539908409,
-0.006319608073681593,
0.0005034542409703135,
0.009500081650912762,
-0.12048576772212982,
0.007337742485105991,
-0.040052056312561035,
-0.03318877890706062,
-0.01879994384944439,
0.07153020054101944,
-0.1025463417172432,
0.07143515348434448,
0.037066083401441574,
-0.04036115109920502,
-0.054185960441827774,
0.11926255375146866,
0.06190148741006851,
-0.02851765789091587,
0.13255515694618225,
-0.05637795850634575,
0.05297723412513733,
-0.14606192708015442,
-0.016445554792881012,
-0.002349301241338253,
-0.00126402429305017,
0.04931701719760895,
-0.03873996064066887,
0.05206925421953201,
-0.01727050356566906,
0.0916282907128334,
0.014266873709857464,
-0.04801461845636368,
0.04142756015062332,
-0.051602449268102646,
0.039884548634290695,
0.005196151323616505,
0.05647991597652435,
-0.04489238187670708,
-0.0753636583685875,
0.0053891828283667564,
0.005118631292134523,
-0.0014845625264570117,
0.12870267033576965,
0.252448707818985,
0.10178964585065842,
0.05325307324528694,
-0.018001435324549675,
0.0008368203998543322,
-0.045870065689086914,
-0.08713530004024506,
-0.03476057946681976,
0.06981977075338364,
0.04823338985443115,
0.00007358034781645983,
0.12155977636575699,
0.13518661260604858,
-0.16384628415107727,
0.13542227447032928,
0.018142355605959892,
-0.093017578125,
-0.0936674028635025,
-0.2502152919769287,
-0.00814267247915268,
0.08741414546966553,
-0.030260132625699043,
-0.12051030248403549,
0.018744871020317078,
0.11829569935798645,
0.039956409484148026,
-0.01608285866677761,
0.14628323912620544,
-0.03726310655474663,
-0.07647430151700974,
0.07531041651964188,
0.028622157871723175,
-0.0004760088922921568,
-0.012956739403307438,
-0.007037997245788574,
0.0358579084277153,
0.024428214877843857,
0.071158267557621,
0.055658258497714996,
0.04809136688709259,
-0.002635675249621272,
-0.008838345296680927,
-0.07253988832235336,
0.03505013510584831,
-0.02873380109667778,
0.0816233828663826,
0.21838073432445526,
0.05007997527718544,
-0.036477230489254,
0.00830045435577631,
0.13513843715190887,
-0.027692805975675583,
-0.06272348016500473,
-0.13325534760951996,
0.20981940627098083,
0.032328277826309204,
0.0006819753325544298,
0.05353682488203049,
-0.11086081713438034,
0.020852912217378616,
0.22756563127040863,
0.1410655677318573,
0.005787260364741087,
0.012806277722120285,
-0.0010355091653764248,
0.018360458314418793,
0.030239000916481018,
0.13797245919704437,
0.002223436953499913,
0.22499892115592957,
-0.04170384630560875,
0.0972900241613388,
-0.028289444744586945,
-0.04071468859910965,
-0.04731491953134537,
0.09834825992584229,
0.026345165446400642,
-0.005267051514238119,
-0.07278679311275482,
0.05974956601858139,
-0.03308650851249695,
-0.27807295322418213,
-0.029511580243706703,
-0.05212041735649109,
-0.13074246048927307,
-0.0164866354316473,
-0.062326669692993164,
0.049331020563840866,
0.06430887430906296,
0.02164088748395443,
0.0173417367041111,
0.15032081305980682,
0.03167315199971199,
-0.033419664949178696,
-0.08976985514163971,
0.06881919503211975,
-0.034935735166072845,
0.22980856895446777,
0.02005615644156933,
0.0502108559012413,
0.0780274048447609,
0.009408356621861458,
-0.08604691177606583,
0.043955374509096146,
0.02000560238957405,
0.03242367506027222,
0.03145894780755043,
0.17191502451896667,
-0.03260815516114235,
-0.033708956092596054,
0.018627744168043137,
-0.10144589096307755,
0.06115202233195305,
-0.09310440719127655,
-0.05347374826669693,
-0.11286240816116333,
0.0944034680724144,
-0.059378523379564285,
0.11654721945524216,
0.1900123953819275,
-0.0081173125654459,
0.0028547272086143494,
-0.06998814642429352,
-0.01693693734705448,
0.006468089297413826,
0.11123216897249222,
-0.0060503073036670685,
-0.18469098210334778,
0.007994433864951134,
-0.07098773866891861,
0.025127286091446877,
-0.2984900176525116,
-0.03878678381443024,
0.02528376691043377,
-0.06789012998342514,
-0.036447178572416306,
0.07038436830043793,
-0.010536232963204384,
0.06133021414279938,
-0.0446830615401268,
-0.003058419795706868,
0.007745937444269657,
0.10830104351043701,
-0.14102803170681,
-0.03994832560420036
] |
null | null | transformers |
# ALBERT XLarge v1
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1909.11942) and first released in
[this repository](https://github.com/google-research/albert). This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the first version of the xlarge model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
- 24 repeating layers
- 128 embedding dimension
- 2048 hidden dimension
- 16 attention heads
- 58M parameters
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=albert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-xlarge-v1')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
"sequence":"[CLS] hello i'm a modeling model.[SEP]",
"score":0.05816134437918663,
"token":12807,
"token_str":"â–modeling"
},
{
"sequence":"[CLS] hello i'm a modelling model.[SEP]",
"score":0.03748830780386925,
"token":23089,
"token_str":"â–modelling"
},
{
"sequence":"[CLS] hello i'm a model model.[SEP]",
"score":0.033725276589393616,
"token":1061,
"token_str":"â–model"
},
{
"sequence":"[CLS] hello i'm a runway model.[SEP]",
"score":0.017313428223133087,
"token":8014,
"token_str":"â–runway"
},
{
"sequence":"[CLS] hello i'm a lingerie model.[SEP]",
"score":0.014405295252799988,
"token":29104,
"token_str":"â–lingerie"
}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AlbertTokenizer, AlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-xlarge-v1')
model = AlbertModel.from_pretrained("albert-xlarge-v1")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AlbertTokenizer, TFAlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-xlarge-v1')
model = TFAlbertModel.from_pretrained("albert-xlarge-v1")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-xlarge-v1')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] the man worked as a chauffeur.[SEP]",
"score":0.029577180743217468,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the man worked as a janitor.[SEP]",
"score":0.028865724802017212,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the man worked as a shoemaker.[SEP]",
"score":0.02581118606030941,
"token":29024,
"token_str":"â–shoemaker"
},
{
"sequence":"[CLS] the man worked as a blacksmith.[SEP]",
"score":0.01849772222340107,
"token":21238,
"token_str":"â–blacksmith"
},
{
"sequence":"[CLS] the man worked as a lawyer.[SEP]",
"score":0.01820771023631096,
"token":3672,
"token_str":"â–lawyer"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] the woman worked as a receptionist.[SEP]",
"score":0.04604868218302727,
"token":25331,
"token_str":"â–receptionist"
},
{
"sequence":"[CLS] the woman worked as a janitor.[SEP]",
"score":0.028220869600772858,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the woman worked as a paramedic.[SEP]",
"score":0.0261906236410141,
"token":23386,
"token_str":"â–paramedic"
},
{
"sequence":"[CLS] the woman worked as a chauffeur.[SEP]",
"score":0.024797942489385605,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the woman worked as a waitress.[SEP]",
"score":0.024124596267938614,
"token":13678,
"token_str":"â–waitress"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The ALBERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
## Evaluation results
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
| | Average | SQuAD1.1 | SQuAD2.0 | MNLI | SST-2 | RACE |
|----------------|----------|----------|----------|----------|----------|----------|
|V2 |
|ALBERT-base |82.3 |90.2/83.2 |82.1/79.3 |84.6 |92.9 |66.8 |
|ALBERT-large |85.7 |91.8/85.2 |84.9/81.8 |86.5 |94.9 |75.2 |
|ALBERT-xlarge |87.9 |92.9/86.4 |87.9/84.1 |87.9 |95.4 |80.7 |
|ALBERT-xxlarge |90.9 |94.6/89.1 |89.8/86.9 |90.6 |96.8 |86.8 |
|V1 |
|ALBERT-base |80.1 |89.3/82.3 | 80.0/77.1|81.6 |90.3 | 64.0 |
|ALBERT-large |82.4 |90.6/83.9 | 82.3/79.4|83.5 |91.7 | 68.5 |
|ALBERT-xlarge |85.5 |92.5/86.1 | 86.1/83.1|86.4 |92.4 | 74.8 |
|ALBERT-xxlarge |91.0 |94.8/89.3 | 90.2/87.4|90.8 |96.9 | 86.5 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1909-11942,
author = {Zhenzhong Lan and
Mingda Chen and
Sebastian Goodman and
Kevin Gimpel and
Piyush Sharma and
Radu Soricut},
title = {{ALBERT:} {A} Lite {BERT} for Self-supervised Learning of Language
Representations},
journal = {CoRR},
volume = {abs/1909.11942},
year = {2019},
url = {http://arxiv.org/abs/1909.11942},
archivePrefix = {arXiv},
eprint = {1909.11942},
timestamp = {Fri, 27 Sep 2019 13:04:21 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1909-11942.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
``` | {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | albert/albert-xlarge-v1 | [
"transformers",
"pytorch",
"tf",
"safetensors",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1909.11942"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #safetensors #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| ALBERT XLarge v1
================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the first version of the xlarge model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
* 24 repeating layers
* 128 embedding dimension
* 2048 hidden dimension
* 16 attention heads
* 58M parameters
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
Evaluation results
------------------
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
### BibTeX entry and citation info
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #safetensors #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
75,
49,
102,
42,
135,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #safetensors #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:### BibTeX entry and citation info"
] | [
-0.04551113396883011,
0.0802619680762291,
-0.004052036441862583,
0.07860441505908966,
0.04896535351872444,
0.009174984879791737,
0.08155245333909988,
0.04193923622369766,
-0.08074910938739777,
0.07420488446950912,
0.03317805007100105,
0.04168064892292023,
0.1137911006808281,
0.12865380942821503,
0.03562881052494049,
-0.3194960355758667,
0.04676777496933937,
-0.015500158071517944,
0.035448186099529266,
0.09928426146507263,
0.10145502537488937,
-0.10330747812986374,
0.013665885664522648,
-0.0071895238943398,
-0.03393346071243286,
-0.034216634929180145,
-0.0018901361618191004,
-0.042468078434467316,
0.07356763631105423,
0.05284520238637924,
0.1046295166015625,
0.0404527373611927,
0.05444014444947243,
-0.17392070591449738,
0.02301005832850933,
0.08772853016853333,
0.006956661585718393,
0.08186767250299454,
0.09368777275085449,
0.02413523942232132,
0.11847671866416931,
-0.0612131766974926,
0.06962253898382187,
0.04527520388364792,
-0.11396395415067673,
-0.09088940918445587,
-0.05937955155968666,
0.10509873926639557,
0.11327197402715683,
0.026418432593345642,
-0.0334581583738327,
0.06045398488640785,
-0.05818641185760498,
0.09398715943098068,
0.22296026349067688,
-0.19845816493034363,
-0.01989910751581192,
-0.012354457750916481,
-0.0070524439215660095,
0.016607169061899185,
-0.09925274550914764,
-0.05664094164967537,
0.023971661925315857,
0.030421694740653038,
0.13375677168369293,
-0.012973122298717499,
-0.003083419054746628,
-0.07122260332107544,
-0.1373298168182373,
-0.08675924688577652,
0.0611911304295063,
-0.0010342838941141963,
-0.1053277924656868,
-0.1360902041196823,
-0.03571191430091858,
-0.0576082207262516,
-0.01811579056084156,
0.007686743978410959,
0.021222004666924477,
-0.01571779139339924,
0.0731607973575592,
-0.030072787776589394,
-0.09501220285892487,
-0.054114360362291336,
-0.029698846861720085,
0.09900537878274918,
0.04432804882526398,
-0.004976477473974228,
-0.03827338665723801,
0.12907736003398895,
0.000012067925126757473,
-0.1198144406080246,
-0.03641133010387421,
-0.05129370838403702,
-0.12604333460330963,
-0.04294734448194504,
0.006550996098667383,
-0.08121354132890701,
-0.05359722301363945,
0.12144969403743744,
-0.07646219432353973,
0.052818041294813156,
-0.11000118404626846,
0.03786785528063774,
0.03273627907037735,
0.08413033932447433,
-0.09982180595397949,
0.023096779361367226,
0.012542684562504292,
0.04627145454287529,
0.030143965035676956,
0.00010260176350129768,
0.007899032905697823,
0.015061267651617527,
0.05133241042494774,
0.07356788218021393,
-0.006212256383150816,
0.07572850584983826,
-0.0733005627989769,
-0.04566649720072746,
0.117124542593956,
-0.1493610441684723,
-0.026935739442706108,
0.009401454590260983,
-0.04137833043932915,
-0.05018153786659241,
0.05190020799636841,
-0.05363049730658531,
-0.11976885795593262,
0.152625173330307,
-0.08122817426919937,
-0.03451291099190712,
-0.07300899922847748,
-0.1447543054819107,
-0.0026474616024643183,
-0.025739552453160286,
-0.07170360535383224,
-0.03028891794383526,
-0.11033158749341965,
-0.029098354279994965,
0.047077327966690063,
-0.019686510786414146,
-0.02027660608291626,
-0.03105141408741474,
-0.03543657064437866,
-0.026764025911688805,
-0.004180578049272299,
0.1106206402182579,
-0.024547459557652473,
0.06970713287591934,
-0.06840337067842484,
0.08289238810539246,
0.09605103731155396,
0.03087173029780388,
-0.09323615580797195,
0.03921728953719139,
-0.2114611268043518,
0.08727454394102097,
-0.049125902354717255,
-0.042977042496204376,
-0.08089441806077957,
-0.07186415046453476,
-0.06054092198610306,
0.03029811754822731,
0.020987944677472115,
0.16369278728961945,
-0.2119584083557129,
-0.041542358696460724,
0.32052451372146606,
-0.1367534101009369,
-0.002294054953381419,
0.12919074296951294,
-0.066414475440979,
0.03440329432487488,
0.0808856263756752,
0.08894262462854385,
-0.04917604476213455,
-0.09136492013931274,
-0.0030137980356812477,
-0.05897599831223488,
-0.0008087589521892369,
0.17744973301887512,
0.03839888423681259,
-0.052005935460329056,
-0.04630080237984657,
0.004275207407772541,
-0.05512862652540207,
-0.05079255625605583,
-0.018915673717856407,
-0.02526763267815113,
0.048335254192352295,
-0.017202435061335564,
0.03870829567313194,
0.013349601067602634,
-0.05048910155892372,
-0.03435882553458214,
-0.11198391765356064,
-0.02944340743124485,
0.06985864788293839,
-0.07916663587093353,
0.03236980736255646,
-0.051062460988759995,
-0.02647782489657402,
0.0013752580853179097,
0.0032333179842680693,
-0.19330114126205444,
0.0023915974888950586,
0.0667717233300209,
-0.06412503123283386,
0.07577772438526154,
0.018598997965455055,
0.026461223140358925,
0.08619476109743118,
-0.0623263344168663,
-0.012272304855287075,
0.008379009552299976,
-0.015970533713698387,
-0.07066856324672699,
-0.1653992235660553,
-0.057337600737810135,
-0.036461371928453445,
0.09765934944152832,
-0.1362580806016922,
0.010994399897754192,
0.007720418740063906,
0.06752710044384003,
0.05236116051673889,
-0.06864910572767258,
0.06248823180794716,
0.009777098894119263,
-0.04145250469446182,
-0.056500568985939026,
0.008342307060956955,
0.013000303879380226,
0.000765531265642494,
0.06627954542636871,
-0.20021773874759674,
-0.1504518985748291,
0.06118915230035782,
0.05632588639855385,
-0.13750065863132477,
-0.052416473627090454,
-0.06842749565839767,
-0.023510001599788666,
-0.08883948624134064,
-0.05367489159107208,
0.15213648974895477,
0.036988403648138046,
0.11421379446983337,
-0.08264148235321045,
-0.0222010500729084,
0.005905165337026119,
-0.00013674053479917347,
-0.04593511298298836,
0.0817798599600792,
0.030059203505516052,
-0.10633993148803711,
0.05813867971301079,
-0.07175382971763611,
0.012249952182173729,
0.12792889773845673,
0.01868418976664543,
-0.10436969250440598,
0.021510083228349686,
0.036857228726148605,
0.06437184661626816,
0.08481411635875702,
-0.0866444781422615,
0.009299608878791332,
0.05689283832907677,
-0.010078764520585537,
0.012822967022657394,
-0.1007397472858429,
0.05021527409553528,
0.04364950582385063,
-0.04251604527235031,
-0.02986682392656803,
-0.05711539834737778,
-0.004364591091871262,
0.1370524764060974,
0.020508522167801857,
0.010627740062773228,
-0.023448161780834198,
-0.052213042974472046,
-0.12249186635017395,
0.18323172628879547,
-0.07688234746456146,
-0.22708256542682648,
-0.1624678671360016,
0.00595437828451395,
0.018974656239151955,
0.03463640436530113,
0.01500330027192831,
-0.04002918303012848,
-0.0799270048737526,
-0.14147889614105225,
0.029127033427357674,
0.02808815985918045,
-0.020980792120099068,
-0.03103758953511715,
-0.01857895217835903,
0.014451546594500542,
-0.11679108440876007,
-0.01751423440873623,
-0.0029288313817232847,
-0.06392254680395126,
0.026546722277998924,
-0.03831832483410835,
0.08612576872110367,
0.1615145206451416,
0.0030666945967823267,
-0.0058347308076918125,
-0.056852810084819794,
0.1485251635313034,
-0.07510945200920105,
0.10289401561021805,
0.02833210676908493,
-0.07297860831022263,
0.06745003908872604,
0.14825105667114258,
0.008620106615126133,
-0.06054901331663132,
0.06958574801683426,
0.05279053747653961,
-0.04934817552566528,
-0.24355751276016235,
-0.04037445783615112,
-0.060672078281641006,
0.006786515936255455,
0.13164295256137848,
0.04232345521450043,
0.022176086902618408,
0.015615268610417843,
-0.11686506867408752,
-0.005577221978455782,
0.08297377824783325,
0.0904945507645607,
-0.09143506735563278,
-0.0037065630313009024,
0.08000586926937103,
-0.03611430898308754,
-0.023492878302931786,
0.0827535092830658,
-0.07355844229459763,
0.18493932485580444,
-0.078372061252594,
0.19803214073181152,
0.1025734692811966,
0.013377929106354713,
0.022710440680384636,
0.1603737771511078,
-0.04621545225381851,
0.029926994815468788,
-0.03562483191490173,
-0.0894179493188858,
-0.046838585287332535,
0.044352609664201736,
-0.0169331356883049,
0.0328717976808548,
-0.07372020184993744,
-0.04962136968970299,
0.014357089065015316,
0.3048410713672638,
0.06515476852655411,
-0.16994163393974304,
-0.08097605407238007,
0.021282728761434555,
-0.043450355529785156,
-0.07235035300254822,
0.0015843840083107352,
0.08782266080379486,
-0.12353434413671494,
0.0641273707151413,
-0.04253777489066124,
0.08867298811674118,
-0.09390021115541458,
-0.007145026233047247,
-0.06577666103839874,
0.06981758028268814,
-0.0638180673122406,
0.07844943553209305,
-0.28124916553497314,
0.20240053534507751,
0.016252167522907257,
0.0931069403886795,
-0.11013350635766983,
0.004730249755084515,
0.03365541622042656,
-0.016005834564566612,
0.18269823491573334,
-0.014175819233059883,
0.009036421775817871,
-0.11136315762996674,
-0.07097841054201126,
0.0013405801728367805,
0.06395642459392548,
-0.034074172377586365,
0.09197209030389786,
0.017331670969724655,
-0.008519270457327366,
-0.008067474700510502,
0.015916163101792336,
-0.10407818853855133,
-0.14817914366722107,
0.03272484242916107,
-0.08574634045362473,
-0.022277770563960075,
-0.05994517728686333,
-0.0889473482966423,
0.050602301955223083,
0.17419710755348206,
-0.18633034825325012,
-0.08467065542936325,
-0.10808050632476807,
0.0011428407160565257,
0.09167513996362686,
-0.08860062807798386,
0.00850608479231596,
-0.019898271188139915,
0.1927952617406845,
-0.05684422329068184,
-0.059605639427900314,
0.053057555109262466,
-0.08382179588079453,
-0.15265759825706482,
-0.06650450080633163,
0.1388421207666397,
0.1436096876859665,
0.09300093352794647,
0.0009567360393702984,
0.02544274553656578,
0.08190728724002838,
-0.08493033051490784,
-0.02715878374874592,
0.08520854264497757,
0.14782747626304626,
0.07276459783315659,
-0.12102331966161728,
-0.08128603547811508,
-0.12396391481161118,
0.0011492915218695998,
0.07215133309364319,
0.22852690517902374,
-0.0567997470498085,
0.11775059998035431,
0.20179185271263123,
-0.10196883231401443,
-0.20333892107009888,
-0.002496772911399603,
0.06797656416893005,
0.05589804798364639,
0.06793927401304245,
-0.1947418600320816,
0.021474214270710945,
0.04896228760480881,
-0.006246006581932306,
0.001730871619656682,
-0.1846364289522171,
-0.13385507464408875,
0.1354587823152542,
0.1011636033654213,
-0.052046798169612885,
-0.09381841868162155,
-0.02409476973116398,
-0.03622635081410408,
-0.06715133786201477,
0.12795832753181458,
0.010278494097292423,
0.09993913769721985,
0.025183096528053284,
-0.07423185557126999,
0.03980276733636856,
-0.07442827522754669,
0.10264360904693604,
0.024624386802315712,
0.06385105103254318,
-0.075246661901474,
-0.05981644615530968,
0.023790322244167328,
-0.05108841881155968,
0.1316027194261551,
0.03301509469747543,
0.032546915113925934,
-0.03758623078465462,
-0.06733056157827377,
-0.08242039382457733,
0.02365288697183132,
-0.07107418030500412,
-0.0781676173210144,
-0.050578679889440536,
0.11003245413303375,
0.0919700637459755,
-0.01257054228335619,
-0.010734300129115582,
-0.06212538480758667,
0.07343713939189911,
0.1750413477420807,
0.1353147327899933,
0.0037028761580586433,
-0.0554620735347271,
0.004320521838963032,
0.002219650661572814,
0.04902629554271698,
-0.05281633511185646,
0.048523858189582825,
0.09053952991962433,
0.04956485331058502,
0.18464642763137817,
0.023346450179815292,
-0.14983369410037994,
-0.03249488025903702,
0.02302735112607479,
-0.1360074132680893,
-0.15855303406715393,
0.015355031006038189,
0.006269182078540325,
-0.14924386143684387,
-0.05710592493414879,
0.035547249019145966,
-0.04566509649157524,
-0.01046594325453043,
0.019313227385282516,
0.07044415175914764,
0.007301634177565575,
0.1914786398410797,
0.04179583117365837,
0.06743974983692169,
-0.06301353871822357,
0.06693664193153381,
0.10514621436595917,
-0.0881747305393219,
0.03057245723903179,
0.07537911832332611,
-0.08424431830644608,
-0.008858607150614262,
0.014752889052033424,
0.046715207397937775,
0.12174578756093979,
-0.02732527069747448,
-0.0533108226954937,
-0.054432887583971024,
0.05014793947339058,
0.09338617324829102,
0.018099572509527206,
0.07213922590017319,
-0.04217717424035072,
0.014004318974912167,
-0.08820011466741562,
0.0720832347869873,
0.07386557012796402,
0.04818039759993553,
0.037619609385728836,
0.17464371025562286,
0.03043859452009201,
0.030228421092033386,
-0.0207800455391407,
-0.049832019954919815,
-0.08802708983421326,
0.010456868447363377,
-0.0534634031355381,
0.05118215084075928,
-0.13045485317707062,
-0.034635450690984726,
-0.025420278310775757,
0.01506165973842144,
0.027372775599360466,
0.019263070076704025,
-0.03671112284064293,
-0.011346404440701008,
-0.0413554385304451,
0.043389443308115005,
-0.13172979652881622,
-0.00032270903466269374,
0.06430304795503616,
-0.08744421601295471,
0.0832020565867424,
-0.038658685982227325,
-0.03783983364701271,
0.008641819469630718,
-0.13428178429603577,
0.007338365539908409,
-0.006319608073681593,
0.0005034542409703135,
0.009500081650912762,
-0.12048576772212982,
0.007337742485105991,
-0.040052056312561035,
-0.03318877890706062,
-0.01879994384944439,
0.07153020054101944,
-0.1025463417172432,
0.07143515348434448,
0.037066083401441574,
-0.04036115109920502,
-0.054185960441827774,
0.11926255375146866,
0.06190148741006851,
-0.02851765789091587,
0.13255515694618225,
-0.05637795850634575,
0.05297723412513733,
-0.14606192708015442,
-0.016445554792881012,
-0.002349301241338253,
-0.00126402429305017,
0.04931701719760895,
-0.03873996064066887,
0.05206925421953201,
-0.01727050356566906,
0.0916282907128334,
0.014266873709857464,
-0.04801461845636368,
0.04142756015062332,
-0.051602449268102646,
0.039884548634290695,
0.005196151323616505,
0.05647991597652435,
-0.04489238187670708,
-0.0753636583685875,
0.0053891828283667564,
0.005118631292134523,
-0.0014845625264570117,
0.12870267033576965,
0.252448707818985,
0.10178964585065842,
0.05325307324528694,
-0.018001435324549675,
0.0008368203998543322,
-0.045870065689086914,
-0.08713530004024506,
-0.03476057946681976,
0.06981977075338364,
0.04823338985443115,
0.00007358034781645983,
0.12155977636575699,
0.13518661260604858,
-0.16384628415107727,
0.13542227447032928,
0.018142355605959892,
-0.093017578125,
-0.0936674028635025,
-0.2502152919769287,
-0.00814267247915268,
0.08741414546966553,
-0.030260132625699043,
-0.12051030248403549,
0.018744871020317078,
0.11829569935798645,
0.039956409484148026,
-0.01608285866677761,
0.14628323912620544,
-0.03726310655474663,
-0.07647430151700974,
0.07531041651964188,
0.028622157871723175,
-0.0004760088922921568,
-0.012956739403307438,
-0.007037997245788574,
0.0358579084277153,
0.024428214877843857,
0.071158267557621,
0.055658258497714996,
0.04809136688709259,
-0.002635675249621272,
-0.008838345296680927,
-0.07253988832235336,
0.03505013510584831,
-0.02873380109667778,
0.0816233828663826,
0.21838073432445526,
0.05007997527718544,
-0.036477230489254,
0.00830045435577631,
0.13513843715190887,
-0.027692805975675583,
-0.06272348016500473,
-0.13325534760951996,
0.20981940627098083,
0.032328277826309204,
0.0006819753325544298,
0.05353682488203049,
-0.11086081713438034,
0.020852912217378616,
0.22756563127040863,
0.1410655677318573,
0.005787260364741087,
0.012806277722120285,
-0.0010355091653764248,
0.018360458314418793,
0.030239000916481018,
0.13797245919704437,
0.002223436953499913,
0.22499892115592957,
-0.04170384630560875,
0.0972900241613388,
-0.028289444744586945,
-0.04071468859910965,
-0.04731491953134537,
0.09834825992584229,
0.026345165446400642,
-0.005267051514238119,
-0.07278679311275482,
0.05974956601858139,
-0.03308650851249695,
-0.27807295322418213,
-0.029511580243706703,
-0.05212041735649109,
-0.13074246048927307,
-0.0164866354316473,
-0.062326669692993164,
0.049331020563840866,
0.06430887430906296,
0.02164088748395443,
0.0173417367041111,
0.15032081305980682,
0.03167315199971199,
-0.033419664949178696,
-0.08976985514163971,
0.06881919503211975,
-0.034935735166072845,
0.22980856895446777,
0.02005615644156933,
0.0502108559012413,
0.0780274048447609,
0.009408356621861458,
-0.08604691177606583,
0.043955374509096146,
0.02000560238957405,
0.03242367506027222,
0.03145894780755043,
0.17191502451896667,
-0.03260815516114235,
-0.033708956092596054,
0.018627744168043137,
-0.10144589096307755,
0.06115202233195305,
-0.09310440719127655,
-0.05347374826669693,
-0.11286240816116333,
0.0944034680724144,
-0.059378523379564285,
0.11654721945524216,
0.1900123953819275,
-0.0081173125654459,
0.0028547272086143494,
-0.06998814642429352,
-0.01693693734705448,
0.006468089297413826,
0.11123216897249222,
-0.0060503073036670685,
-0.18469098210334778,
0.007994433864951134,
-0.07098773866891861,
0.025127286091446877,
-0.2984900176525116,
-0.03878678381443024,
0.02528376691043377,
-0.06789012998342514,
-0.036447178572416306,
0.07038436830043793,
-0.010536232963204384,
0.06133021414279938,
-0.0446830615401268,
-0.003058419795706868,
0.007745937444269657,
0.10830104351043701,
-0.14102803170681,
-0.03994832560420036
] |
null | null | transformers |
# ALBERT XLarge v2
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1909.11942) and first released in
[this repository](https://github.com/google-research/albert). This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the second version of the xlarge model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
- 24 repeating layers
- 128 embedding dimension
- 2048 hidden dimension
- 16 attention heads
- 58M parameters
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=albert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-xlarge-v2')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
"sequence":"[CLS] hello i'm a modeling model.[SEP]",
"score":0.05816134437918663,
"token":12807,
"token_str":"â–modeling"
},
{
"sequence":"[CLS] hello i'm a modelling model.[SEP]",
"score":0.03748830780386925,
"token":23089,
"token_str":"â–modelling"
},
{
"sequence":"[CLS] hello i'm a model model.[SEP]",
"score":0.033725276589393616,
"token":1061,
"token_str":"â–model"
},
{
"sequence":"[CLS] hello i'm a runway model.[SEP]",
"score":0.017313428223133087,
"token":8014,
"token_str":"â–runway"
},
{
"sequence":"[CLS] hello i'm a lingerie model.[SEP]",
"score":0.014405295252799988,
"token":29104,
"token_str":"â–lingerie"
}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AlbertTokenizer, AlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-xlarge-v2')
model = AlbertModel.from_pretrained("albert-xlarge-v2")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AlbertTokenizer, TFAlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-xlarge-v2')
model = TFAlbertModel.from_pretrained("albert-xlarge-v2")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-xlarge-v2')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] the man worked as a chauffeur.[SEP]",
"score":0.029577180743217468,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the man worked as a janitor.[SEP]",
"score":0.028865724802017212,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the man worked as a shoemaker.[SEP]",
"score":0.02581118606030941,
"token":29024,
"token_str":"â–shoemaker"
},
{
"sequence":"[CLS] the man worked as a blacksmith.[SEP]",
"score":0.01849772222340107,
"token":21238,
"token_str":"â–blacksmith"
},
{
"sequence":"[CLS] the man worked as a lawyer.[SEP]",
"score":0.01820771023631096,
"token":3672,
"token_str":"â–lawyer"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] the woman worked as a receptionist.[SEP]",
"score":0.04604868218302727,
"token":25331,
"token_str":"â–receptionist"
},
{
"sequence":"[CLS] the woman worked as a janitor.[SEP]",
"score":0.028220869600772858,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the woman worked as a paramedic.[SEP]",
"score":0.0261906236410141,
"token":23386,
"token_str":"â–paramedic"
},
{
"sequence":"[CLS] the woman worked as a chauffeur.[SEP]",
"score":0.024797942489385605,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the woman worked as a waitress.[SEP]",
"score":0.024124596267938614,
"token":13678,
"token_str":"â–waitress"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The ALBERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
## Evaluation results
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
| | Average | SQuAD1.1 | SQuAD2.0 | MNLI | SST-2 | RACE |
|----------------|----------|----------|----------|----------|----------|----------|
|V2 |
|ALBERT-base |82.3 |90.2/83.2 |82.1/79.3 |84.6 |92.9 |66.8 |
|ALBERT-large |85.7 |91.8/85.2 |84.9/81.8 |86.5 |94.9 |75.2 |
|ALBERT-xlarge |87.9 |92.9/86.4 |87.9/84.1 |87.9 |95.4 |80.7 |
|ALBERT-xxlarge |90.9 |94.6/89.1 |89.8/86.9 |90.6 |96.8 |86.8 |
|V1 |
|ALBERT-base |80.1 |89.3/82.3 | 80.0/77.1|81.6 |90.3 | 64.0 |
|ALBERT-large |82.4 |90.6/83.9 | 82.3/79.4|83.5 |91.7 | 68.5 |
|ALBERT-xlarge |85.5 |92.5/86.1 | 86.1/83.1|86.4 |92.4 | 74.8 |
|ALBERT-xxlarge |91.0 |94.8/89.3 | 90.2/87.4|90.8 |96.9 | 86.5 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1909-11942,
author = {Zhenzhong Lan and
Mingda Chen and
Sebastian Goodman and
Kevin Gimpel and
Piyush Sharma and
Radu Soricut},
title = {{ALBERT:} {A} Lite {BERT} for Self-supervised Learning of Language
Representations},
journal = {CoRR},
volume = {abs/1909.11942},
year = {2019},
url = {http://arxiv.org/abs/1909.11942},
archivePrefix = {arXiv},
eprint = {1909.11942},
timestamp = {Fri, 27 Sep 2019 13:04:21 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1909-11942.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
``` | {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | albert/albert-xlarge-v2 | [
"transformers",
"pytorch",
"tf",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1909.11942"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| ALBERT XLarge v2
================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the second version of the xlarge model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
* 24 repeating layers
* 128 embedding dimension
* 2048 hidden dimension
* 16 attention heads
* 58M parameters
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
Evaluation results
------------------
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
### BibTeX entry and citation info
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
70,
49,
102,
42,
135,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:### BibTeX entry and citation info"
] | [
-0.05667823925614357,
0.08347521722316742,
-0.003313080407679081,
0.07908394187688828,
0.05151635780930519,
0.008104290813207626,
0.08640990406274796,
0.05556471273303032,
-0.08198466897010803,
0.06249178946018219,
0.04316376522183418,
0.04599187523126602,
0.11425124853849411,
0.14828482270240784,
0.05441417172551155,
-0.31177178025245667,
0.04608045145869255,
-0.020020676776766777,
0.03857671841979027,
0.10612472891807556,
0.10209345072507858,
-0.10734426230192184,
0.021067384630441666,
0.013857576064765453,
-0.048613615334033966,
-0.028752971440553665,
0.005298438016325235,
-0.04515842720866203,
0.07352491468191147,
0.04612286388874054,
0.0922040119767189,
0.03058130480349064,
0.053169362246990204,
-0.14963218569755554,
0.023935038596391678,
0.07624046504497528,
0.013490135781466961,
0.08375383168458939,
0.07991432398557663,
0.03118901699781418,
0.10077029466629028,
-0.07753490656614304,
0.06471040099859238,
0.050635404884815216,
-0.10193444788455963,
-0.0981023982167244,
-0.06296634674072266,
0.0944828987121582,
0.09361127018928528,
0.05350752919912338,
-0.03670292720198631,
0.09505821019411087,
-0.06486940383911133,
0.08291499316692352,
0.21466390788555145,
-0.2051638513803482,
-0.013802370056509972,
-0.01321291271597147,
-0.03628116101026535,
-0.0007366263889707625,
-0.10266046226024628,
-0.059840600937604904,
0.025059090927243233,
0.0355818085372448,
0.10717219114303589,
-0.004180503077805042,
0.029566893354058266,
-0.08144653588533401,
-0.1283537745475769,
-0.09349779784679413,
0.05898304656147957,
-0.0003399956913199276,
-0.11279486864805222,
-0.15138360857963562,
-0.02986915037035942,
-0.06170433387160301,
-0.008535300381481647,
0.007245121989399195,
0.018330972641706467,
-0.013427041471004486,
0.04931262880563736,
-0.02224128320813179,
-0.093492291867733,
-0.04333905130624771,
-0.043764155358076096,
0.13635140657424927,
0.04767867177724838,
-0.007216016296297312,
-0.045385513454675674,
0.12406949698925018,
-0.000851496821269393,
-0.13038374483585358,
-0.0327020138502121,
-0.07112676650285721,
-0.11813805997371674,
-0.02963237464427948,
-0.006708831992000341,
-0.10501854866743088,
-0.06797342002391815,
0.12423653155565262,
-0.07798149436712265,
0.05437630042433739,
-0.0784304291009903,
0.022871922701597214,
0.05841879919171333,
0.08743103593587875,
-0.14053331315517426,
0.02959899604320526,
0.015001756139099598,
0.01136468630284071,
0.04161394387483597,
-0.018219731748104095,
-0.00242281099781394,
-0.004762989468872547,
0.0568198598921299,
0.05835847929120064,
-0.001974194310605526,
0.08009760826826096,
-0.06254192441701889,
-0.07601025700569153,
0.10993676632642746,
-0.14706876873970032,
-0.03892352432012558,
-0.008053434081375599,
-0.046007756143808365,
-0.02635137178003788,
0.040004801005125046,
-0.057096224278211594,
-0.12311587482690811,
0.13907891511917114,
-0.08447765558958054,
-0.04885484278202057,
-0.07160034775733948,
-0.16134117543697357,
-0.0016862069023773074,
-0.04117263853549957,
-0.06486032158136368,
-0.04122001305222511,
-0.08696572482585907,
-0.016246184706687927,
0.043748077005147934,
-0.011056154035031796,
-0.01930731162428856,
-0.009410565719008446,
-0.04979243129491806,
-0.013574386946856976,
-0.005766225978732109,
0.09534800052642822,
-0.01692173257470131,
0.05832089111208916,
-0.06143723800778389,
0.07835053652524948,
0.08465936034917831,
0.031857237219810486,
-0.09501247107982635,
0.026698008179664612,
-0.2501128017902374,
0.08174491673707962,
-0.034621451050043106,
-0.03844170644879341,
-0.06883572041988373,
-0.09281810373067856,
-0.07061607390642166,
0.015432560816407204,
0.0387507863342762,
0.15244798362255096,
-0.2080317884683609,
-0.04226703569293022,
0.2904368042945862,
-0.1350552886724472,
0.01451521459966898,
0.13072185218334198,
-0.0713314339518547,
0.01751595363020897,
0.08790460228919983,
0.09417057037353516,
-0.014229902997612953,
-0.09511514008045197,
-0.028310652822256088,
-0.04999973624944687,
-0.028375893831253052,
0.1582123041152954,
0.04853496327996254,
-0.043219465762376785,
-0.06141131743788719,
0.008504019118845463,
-0.07097221165895462,
-0.024667538702487946,
-0.019781677052378654,
-0.0260261632502079,
0.038894202560186386,
-0.009833280928432941,
0.07844606786966324,
0.02107003703713417,
-0.048781998455524445,
-0.038394223898649216,
-0.12271296977996826,
-0.0346834734082222,
0.06951428949832916,
-0.08361560851335526,
0.029555145651102066,
-0.07604137063026428,
-0.022762438282370567,
-0.02005051262676716,
-0.006830669939517975,
-0.2090151607990265,
0.01866772770881653,
0.06276828795671463,
-0.09720693528652191,
0.07355233281850815,
0.02601015567779541,
0.03857722505927086,
0.06961709260940552,
-0.05167261138558388,
0.003973667975515127,
-0.013989304192364216,
-0.0239170603454113,
-0.0650244802236557,
-0.1560194045305252,
-0.05928272753953934,
-0.03453580662608147,
0.1000426635146141,
-0.07893800735473633,
0.0003954787098336965,
-0.009810146875679493,
0.055691394954919815,
0.0360041968524456,
-0.06607580929994583,
0.0716370940208435,
-0.003652713494375348,
-0.03977478668093681,
-0.05532069131731987,
0.0014715513680130243,
0.01717536151409149,
-0.009011531248688698,
0.045689478516578674,
-0.1977272629737854,
-0.13962651789188385,
0.07614663988351822,
0.037217702716588974,
-0.11761642247438431,
-0.019519798457622528,
-0.0673246681690216,
-0.011560874991118908,
-0.07344415783882141,
-0.050853319466114044,
0.20474660396575928,
0.04369620233774185,
0.10310535132884979,
-0.08568781614303589,
-0.022730233147740364,
0.01906990259885788,
0.015076739713549614,
-0.04695496708154678,
0.063705675303936,
0.011925446800887585,
-0.10095276683568954,
0.03809276595711708,
-0.058593690395355225,
0.03935368359088898,
0.1297035664319992,
0.03513204678893089,
-0.09990403801202774,
0.012732245028018951,
0.012076220475137234,
0.04599462449550629,
0.06994232535362244,
-0.10076364874839783,
0.0162173081189394,
0.06462064385414124,
0.002921542152762413,
0.015229906886816025,
-0.08446197956800461,
0.04047343507409096,
0.05036171153187752,
-0.041738905012607574,
-0.05374935641884804,
-0.058302946388721466,
0.0038186111487448215,
0.11634024232625961,
0.047963038086891174,
0.033262453973293304,
-0.019520509988069534,
-0.05178806930780411,
-0.11070885509252548,
0.18263134360313416,
-0.0822695791721344,
-0.26426514983177185,
-0.15253695845603943,
0.007433051709085703,
0.0012859946582466364,
0.02871333807706833,
0.00429975101724267,
-0.06206784024834633,
-0.0929885059595108,
-0.11483374983072281,
0.049619223922491074,
0.00912874098867178,
-0.017897751182317734,
-0.012415913864970207,
-0.03527582064270973,
0.019651276990771294,
-0.1340654045343399,
-0.014365095645189285,
-0.0037047553341835737,
-0.048376645892858505,
0.01831492781639099,
-0.022763196378946304,
0.08083142340183258,
0.1572645753622055,
-0.005248923320323229,
-0.006286324467509985,
-0.044124893844127655,
0.1688375324010849,
-0.07765830308198929,
0.0828627422451973,
0.061023078858852386,
-0.0812448188662529,
0.05813733860850334,
0.13448728621006012,
0.0022408589720726013,
-0.06498376280069351,
0.07227900624275208,
0.05173575133085251,
-0.049122538417577744,
-0.23325076699256897,
-0.042947884649038315,
-0.05951610580086708,
-0.008816288784146309,
0.13352344930171967,
0.03941218554973602,
0.02987593226134777,
0.02038085088133812,
-0.10872034728527069,
-0.010978702455759048,
0.05702363699674606,
0.0914691686630249,
-0.07334193587303162,
-0.003366179997101426,
0.07902194559574127,
-0.040312472730875015,
-0.03470559045672417,
0.0900016576051712,
-0.08550307154655457,
0.16805888712406158,
-0.07445131987333298,
0.20787298679351807,
0.10984235256910324,
0.037040457129478455,
0.027606183663010597,
0.16469165682792664,
-0.03948482125997543,
0.017898844555020332,
-0.03469155728816986,
-0.0857800841331482,
-0.062400780618190765,
0.018050827085971832,
0.0013524411479011178,
0.045462656766176224,
-0.08660019189119339,
-0.05919463559985161,
0.0024352793116122484,
0.2976292371749878,
0.06353507190942764,
-0.14988069236278534,
-0.0939420610666275,
0.011053246445953846,
-0.041541650891304016,
-0.07711537182331085,
-0.0004088141140528023,
0.09243154525756836,
-0.12606796622276306,
0.07271063327789307,
-0.04745033383369446,
0.08509478718042374,
-0.0954873189330101,
0.007785628084093332,
-0.06523606926202774,
0.0842304453253746,
-0.046361926943063736,
0.0830635279417038,
-0.253038227558136,
0.19317828118801117,
0.01563459075987339,
0.09170185029506683,
-0.1309133619070053,
-0.002452813321724534,
0.04427962377667427,
-0.03750985860824585,
0.18015088140964508,
-0.003877912648022175,
0.04300474748015404,
-0.10345496237277985,
-0.08364515751600266,
0.0020102127455174923,
0.06945031136274338,
-0.009492085315287113,
0.08629167079925537,
0.01328736450523138,
0.0005944445147179067,
0.001187210320495069,
0.0430290587246418,
-0.1263040453195572,
-0.13884414732456207,
0.05146166682243347,
-0.10618241876363754,
-0.04570511728525162,
-0.05237279087305069,
-0.1014813780784607,
0.027868907898664474,
0.1934639811515808,
-0.16538095474243164,
-0.0818253755569458,
-0.11812935024499893,
0.01248067058622837,
0.1019139364361763,
-0.09206543117761612,
0.008371394127607346,
-0.01678580604493618,
0.21589694917201996,
-0.05467608571052551,
-0.07363250851631165,
0.05694317817687988,
-0.059534478932619095,
-0.1377968192100525,
-0.03661947697401047,
0.11678425222635269,
0.14798744022846222,
0.09414704889059067,
0.004088176414370537,
0.00991487130522728,
0.07618521898984909,
-0.1012568473815918,
-0.02106337994337082,
0.09210420399904251,
0.1326119601726532,
0.06389341503381729,
-0.08340202271938324,
-0.04792361333966255,
-0.12415732443332672,
0.041273605078458786,
0.10557615756988525,
0.21995483338832855,
-0.06595073640346527,
0.1163625717163086,
0.20739160478115082,
-0.08256522566080093,
-0.22083495557308197,
0.01736624166369438,
0.06286340951919556,
0.07047859579324722,
0.0741053894162178,
-0.20067650079727173,
0.030995609238743782,
0.02701081708073616,
0.0032025829423218966,
-0.026369761675596237,
-0.19320009648799896,
-0.12796363234519958,
0.13820211589336395,
0.11001389473676682,
-0.05147525295615196,
-0.062129825353622437,
-0.011600933037698269,
-0.04999583214521408,
-0.07451195269823074,
0.11870250105857849,
0.005457337014377117,
0.1159818097949028,
0.020777344703674316,
-0.06447480618953705,
0.04536519572138786,
-0.08057725429534912,
0.09950577467679977,
0.01979009434580803,
0.08036086708307266,
-0.09021344780921936,
-0.058731526136398315,
0.050767119973897934,
-0.04760504886507988,
0.15523336827754974,
0.06263952702283859,
0.033392395824193954,
-0.03588981553912163,
-0.07827439904212952,
-0.08530477434396744,
0.0182789359241724,
-0.06373731046915054,
-0.08728771656751633,
-0.0578780435025692,
0.11682438850402832,
0.09273747354745865,
-0.016404714435338974,
-0.011271093972027302,
-0.050596628338098526,
0.049494609236717224,
0.13740551471710205,
0.17039746046066284,
0.012894685380160809,
-0.042476531118154526,
0.008607233874499798,
0.00912337563931942,
0.03622472658753395,
-0.06210195645689964,
0.04750311002135277,
0.09159965813159943,
0.04897494986653328,
0.15597683191299438,
0.02473508007824421,
-0.15715241432189941,
-0.037176936864852905,
0.022917727008461952,
-0.12391979992389679,
-0.1596481055021286,
0.012010429054498672,
-0.006027578841894865,
-0.16119419038295746,
-0.07623802870512009,
0.038525909185409546,
-0.04137267544865608,
-0.010594915598630905,
0.01635538972914219,
0.05054296553134918,
0.0000877302372828126,
0.17991863191127777,
0.058053694665431976,
0.05322244018316269,
-0.07936372607946396,
0.08017883449792862,
0.08898180723190308,
-0.07273633778095245,
0.04750584438443184,
0.04731735214591026,
-0.08907943218946457,
-0.0012046991614624858,
0.01849278435111046,
0.06896716356277466,
0.127924382686615,
-0.011055530048906803,
-0.04717289283871651,
-0.06441999226808548,
0.04929376021027565,
0.075383260846138,
0.018193135038018227,
0.06095937639474869,
-0.062098413705825806,
0.008932748809456825,
-0.09922350198030472,
0.0611039474606514,
0.061913542449474335,
0.0321260429918766,
0.021719258278608322,
0.19934354722499847,
0.03150826320052147,
0.052169397473335266,
-0.0240510031580925,
-0.06187664717435837,
-0.07155779004096985,
0.0007776763522997499,
-0.0611659437417984,
0.0328160859644413,
-0.11966895312070847,
-0.030834127217531204,
-0.03962133824825287,
0.014205262996256351,
0.011415091343224049,
0.01491532102227211,
-0.042359430342912674,
-0.023794785141944885,
-0.026975665241479874,
0.012238048948347569,
-0.11259134858846664,
0.00390667375177145,
0.060415346175432205,
-0.07673684507608414,
0.0876753032207489,
-0.030737632885575294,
-0.040002260357141495,
0.01808977499604225,
-0.15080921351909637,
-0.01838136464357376,
-0.011896475218236446,
0.00764623424038291,
0.008522829040884972,
-0.13765951991081238,
0.007381847128272057,
-0.03561735153198242,
-0.0452297106385231,
-0.01561965886503458,
0.0775267630815506,
-0.10113540291786194,
0.0658981129527092,
0.047999173402786255,
-0.03114907070994377,
-0.059003572911024094,
0.11916480213403702,
0.08193787187337875,
-0.033657923340797424,
0.13029588758945465,
-0.037023965269327164,
0.05084704980254173,
-0.14494699239730835,
-0.02446024678647518,
-0.011465989984571934,
0.003847826039418578,
0.05493234843015671,
-0.05752883851528168,
0.05423945561051369,
-0.006737331859767437,
0.10478915274143219,
0.007828611880540848,
-0.056549347937107086,
0.03820616751909256,
-0.031194277107715607,
0.01837231032550335,
-0.006177471950650215,
0.0734746977686882,
-0.05039985850453377,
-0.07159332185983658,
0.0367039293050766,
0.02604474499821663,
-0.006753252353519201,
0.13809646666049957,
0.26738592982292175,
0.1145094782114029,
0.07677400857210159,
-0.02144543081521988,
0.0020775371231138706,
-0.03380352631211281,
-0.08960619568824768,
-0.02220507338643074,
0.06603047996759415,
0.04673304408788681,
0.00007899408228695393,
0.08134745806455612,
0.11444655060768127,
-0.1449069231748581,
0.14770668745040894,
0.019405340775847435,
-0.09224553406238556,
-0.09642909467220306,
-0.2504918575286865,
-0.0008002162794582546,
0.08370407670736313,
-0.029821857810020447,
-0.12721925973892212,
0.013510218821465969,
0.11181192845106125,
0.047729164361953735,
-0.03452780097723007,
0.1611899733543396,
-0.08229434490203857,
-0.0861179381608963,
0.0835375040769577,
0.017852840945124626,
-0.002544101094827056,
-0.007696071173995733,
0.008471843786537647,
0.047405682504177094,
0.039373598992824554,
0.0877314880490303,
0.0447838231921196,
0.04830709844827652,
-0.0016436115838587284,
-0.013657051138579845,
-0.08863828331232071,
0.029517358168959618,
-0.02684410847723484,
0.10059095174074173,
0.24101650714874268,
0.04012444242835045,
-0.036335866898298264,
-0.00960989948362112,
0.12304265052080154,
-0.021471437066793442,
-0.0690193623304367,
-0.12830086052417755,
0.16738809645175934,
0.04167437553405762,
-0.005485293921083212,
0.0556318573653698,
-0.10764802992343903,
0.032646432518959045,
0.23761866986751556,
0.14182783663272858,
0.0011957709211856127,
0.012096733786165714,
0.008423762395977974,
0.014524565078318119,
0.027076750993728638,
0.1612141728401184,
-0.005447881296277046,
0.2128559798002243,
-0.03626790642738342,
0.1060524731874466,
-0.037359680980443954,
-0.04406345635652542,
-0.035172171890735626,
0.09453263878822327,
0.028232000768184662,
-0.009198799729347229,
-0.07897105067968369,
0.06607218086719513,
-0.021750882267951965,
-0.260026752948761,
-0.028478579595685005,
-0.056979112327098846,
-0.12965057790279388,
-0.011414061300456524,
-0.07500343769788742,
0.0667838305234909,
0.07483363151550293,
0.02779369242489338,
0.03505672886967659,
0.16206762194633484,
0.043138593435287476,
-0.03953241556882858,
-0.0860275849699974,
0.08366993814706802,
-0.03308018669486046,
0.20990166068077087,
0.023141775280237198,
0.03969908878207207,
0.09320905804634094,
0.0155209144577384,
-0.09686201065778732,
0.033003516495227814,
0.004970548674464226,
0.03956272453069687,
0.02509421668946743,
0.18521223962306976,
-0.02411201037466526,
-0.05288241431117058,
0.01025550626218319,
-0.1039607897400856,
0.057859405875205994,
-0.10493405908346176,
-0.03247814252972603,
-0.1193951740860939,
0.11030786484479904,
-0.0604960173368454,
0.1304416060447693,
0.19824650883674622,
-0.006808329839259386,
-0.005078800022602081,
-0.08136770129203796,
-0.020754951983690262,
-0.009727342054247856,
0.10144088417291641,
-0.022731496021151543,
-0.18574245274066925,
0.006502075120806694,
-0.05712493881583214,
0.025840619578957558,
-0.2963947355747223,
-0.042784433811903,
0.03296564891934395,
-0.08048302680253983,
-0.021068980917334557,
0.06506511569023132,
-0.03673930838704109,
0.0753861516714096,
-0.03602520003914833,
0.0423402301967144,
-0.004416536074131727,
0.10059640556573868,
-0.14944693446159363,
-0.04231806471943855
] |
null | null | transformers |
# ALBERT XXLarge v1
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1909.11942) and first released in
[this repository](https://github.com/google-research/albert). This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the first version of the xxlarge model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
- 12 repeating layers
- 128 embedding dimension
- 4096 hidden dimension
- 64 attention heads
- 223M parameters
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=albert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-xxlarge-v1')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
"sequence":"[CLS] hello i'm a modeling model.[SEP]",
"score":0.05816134437918663,
"token":12807,
"token_str":"â–modeling"
},
{
"sequence":"[CLS] hello i'm a modelling model.[SEP]",
"score":0.03748830780386925,
"token":23089,
"token_str":"â–modelling"
},
{
"sequence":"[CLS] hello i'm a model model.[SEP]",
"score":0.033725276589393616,
"token":1061,
"token_str":"â–model"
},
{
"sequence":"[CLS] hello i'm a runway model.[SEP]",
"score":0.017313428223133087,
"token":8014,
"token_str":"â–runway"
},
{
"sequence":"[CLS] hello i'm a lingerie model.[SEP]",
"score":0.014405295252799988,
"token":29104,
"token_str":"â–lingerie"
}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AlbertTokenizer, AlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-xxlarge-v1')
model = AlbertModel.from_pretrained("albert-xxlarge-v1")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AlbertTokenizer, TFAlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-xxlarge-v1')
model = TFAlbertModel.from_pretrained("albert-xxlarge-v1")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-xxlarge-v1')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] the man worked as a chauffeur.[SEP]",
"score":0.029577180743217468,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the man worked as a janitor.[SEP]",
"score":0.028865724802017212,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the man worked as a shoemaker.[SEP]",
"score":0.02581118606030941,
"token":29024,
"token_str":"â–shoemaker"
},
{
"sequence":"[CLS] the man worked as a blacksmith.[SEP]",
"score":0.01849772222340107,
"token":21238,
"token_str":"â–blacksmith"
},
{
"sequence":"[CLS] the man worked as a lawyer.[SEP]",
"score":0.01820771023631096,
"token":3672,
"token_str":"â–lawyer"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] the woman worked as a receptionist.[SEP]",
"score":0.04604868218302727,
"token":25331,
"token_str":"â–receptionist"
},
{
"sequence":"[CLS] the woman worked as a janitor.[SEP]",
"score":0.028220869600772858,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the woman worked as a paramedic.[SEP]",
"score":0.0261906236410141,
"token":23386,
"token_str":"â–paramedic"
},
{
"sequence":"[CLS] the woman worked as a chauffeur.[SEP]",
"score":0.024797942489385605,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the woman worked as a waitress.[SEP]",
"score":0.024124596267938614,
"token":13678,
"token_str":"â–waitress"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The ALBERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
## Evaluation results
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
| | Average | SQuAD1.1 | SQuAD2.0 | MNLI | SST-2 | RACE |
|----------------|----------|----------|----------|----------|----------|----------|
|V2 |
|ALBERT-base |82.3 |90.2/83.2 |82.1/79.3 |84.6 |92.9 |66.8 |
|ALBERT-large |85.7 |91.8/85.2 |84.9/81.8 |86.5 |94.9 |75.2 |
|ALBERT-xlarge |87.9 |92.9/86.4 |87.9/84.1 |87.9 |95.4 |80.7 |
|ALBERT-xxlarge |90.9 |94.6/89.1 |89.8/86.9 |90.6 |96.8 |86.8 |
|V1 |
|ALBERT-base |80.1 |89.3/82.3 | 80.0/77.1|81.6 |90.3 | 64.0 |
|ALBERT-large |82.4 |90.6/83.9 | 82.3/79.4|83.5 |91.7 | 68.5 |
|ALBERT-xlarge |85.5 |92.5/86.1 | 86.1/83.1|86.4 |92.4 | 74.8 |
|ALBERT-xxlarge |91.0 |94.8/89.3 | 90.2/87.4|90.8 |96.9 | 86.5 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1909-11942,
author = {Zhenzhong Lan and
Mingda Chen and
Sebastian Goodman and
Kevin Gimpel and
Piyush Sharma and
Radu Soricut},
title = {{ALBERT:} {A} Lite {BERT} for Self-supervised Learning of Language
Representations},
journal = {CoRR},
volume = {abs/1909.11942},
year = {2019},
url = {http://arxiv.org/abs/1909.11942},
archivePrefix = {arXiv},
eprint = {1909.11942},
timestamp = {Fri, 27 Sep 2019 13:04:21 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1909-11942.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
``` | {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | albert/albert-xxlarge-v1 | [
"transformers",
"pytorch",
"tf",
"albert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1909.11942"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| ALBERT XXLarge v1
=================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the first version of the xxlarge model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
* 12 repeating layers
* 128 embedding dimension
* 4096 hidden dimension
* 64 attention heads
* 223M parameters
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
Evaluation results
------------------
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
### BibTeX entry and citation info
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info"
] | [
70,
49,
102,
42,
135,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #albert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:### BibTeX entry and citation info"
] | [
-0.05667823925614357,
0.08347521722316742,
-0.003313080407679081,
0.07908394187688828,
0.05151635780930519,
0.008104290813207626,
0.08640990406274796,
0.05556471273303032,
-0.08198466897010803,
0.06249178946018219,
0.04316376522183418,
0.04599187523126602,
0.11425124853849411,
0.14828482270240784,
0.05441417172551155,
-0.31177178025245667,
0.04608045145869255,
-0.020020676776766777,
0.03857671841979027,
0.10612472891807556,
0.10209345072507858,
-0.10734426230192184,
0.021067384630441666,
0.013857576064765453,
-0.048613615334033966,
-0.028752971440553665,
0.005298438016325235,
-0.04515842720866203,
0.07352491468191147,
0.04612286388874054,
0.0922040119767189,
0.03058130480349064,
0.053169362246990204,
-0.14963218569755554,
0.023935038596391678,
0.07624046504497528,
0.013490135781466961,
0.08375383168458939,
0.07991432398557663,
0.03118901699781418,
0.10077029466629028,
-0.07753490656614304,
0.06471040099859238,
0.050635404884815216,
-0.10193444788455963,
-0.0981023982167244,
-0.06296634674072266,
0.0944828987121582,
0.09361127018928528,
0.05350752919912338,
-0.03670292720198631,
0.09505821019411087,
-0.06486940383911133,
0.08291499316692352,
0.21466390788555145,
-0.2051638513803482,
-0.013802370056509972,
-0.01321291271597147,
-0.03628116101026535,
-0.0007366263889707625,
-0.10266046226024628,
-0.059840600937604904,
0.025059090927243233,
0.0355818085372448,
0.10717219114303589,
-0.004180503077805042,
0.029566893354058266,
-0.08144653588533401,
-0.1283537745475769,
-0.09349779784679413,
0.05898304656147957,
-0.0003399956913199276,
-0.11279486864805222,
-0.15138360857963562,
-0.02986915037035942,
-0.06170433387160301,
-0.008535300381481647,
0.007245121989399195,
0.018330972641706467,
-0.013427041471004486,
0.04931262880563736,
-0.02224128320813179,
-0.093492291867733,
-0.04333905130624771,
-0.043764155358076096,
0.13635140657424927,
0.04767867177724838,
-0.007216016296297312,
-0.045385513454675674,
0.12406949698925018,
-0.000851496821269393,
-0.13038374483585358,
-0.0327020138502121,
-0.07112676650285721,
-0.11813805997371674,
-0.02963237464427948,
-0.006708831992000341,
-0.10501854866743088,
-0.06797342002391815,
0.12423653155565262,
-0.07798149436712265,
0.05437630042433739,
-0.0784304291009903,
0.022871922701597214,
0.05841879919171333,
0.08743103593587875,
-0.14053331315517426,
0.02959899604320526,
0.015001756139099598,
0.01136468630284071,
0.04161394387483597,
-0.018219731748104095,
-0.00242281099781394,
-0.004762989468872547,
0.0568198598921299,
0.05835847929120064,
-0.001974194310605526,
0.08009760826826096,
-0.06254192441701889,
-0.07601025700569153,
0.10993676632642746,
-0.14706876873970032,
-0.03892352432012558,
-0.008053434081375599,
-0.046007756143808365,
-0.02635137178003788,
0.040004801005125046,
-0.057096224278211594,
-0.12311587482690811,
0.13907891511917114,
-0.08447765558958054,
-0.04885484278202057,
-0.07160034775733948,
-0.16134117543697357,
-0.0016862069023773074,
-0.04117263853549957,
-0.06486032158136368,
-0.04122001305222511,
-0.08696572482585907,
-0.016246184706687927,
0.043748077005147934,
-0.011056154035031796,
-0.01930731162428856,
-0.009410565719008446,
-0.04979243129491806,
-0.013574386946856976,
-0.005766225978732109,
0.09534800052642822,
-0.01692173257470131,
0.05832089111208916,
-0.06143723800778389,
0.07835053652524948,
0.08465936034917831,
0.031857237219810486,
-0.09501247107982635,
0.026698008179664612,
-0.2501128017902374,
0.08174491673707962,
-0.034621451050043106,
-0.03844170644879341,
-0.06883572041988373,
-0.09281810373067856,
-0.07061607390642166,
0.015432560816407204,
0.0387507863342762,
0.15244798362255096,
-0.2080317884683609,
-0.04226703569293022,
0.2904368042945862,
-0.1350552886724472,
0.01451521459966898,
0.13072185218334198,
-0.0713314339518547,
0.01751595363020897,
0.08790460228919983,
0.09417057037353516,
-0.014229902997612953,
-0.09511514008045197,
-0.028310652822256088,
-0.04999973624944687,
-0.028375893831253052,
0.1582123041152954,
0.04853496327996254,
-0.043219465762376785,
-0.06141131743788719,
0.008504019118845463,
-0.07097221165895462,
-0.024667538702487946,
-0.019781677052378654,
-0.0260261632502079,
0.038894202560186386,
-0.009833280928432941,
0.07844606786966324,
0.02107003703713417,
-0.048781998455524445,
-0.038394223898649216,
-0.12271296977996826,
-0.0346834734082222,
0.06951428949832916,
-0.08361560851335526,
0.029555145651102066,
-0.07604137063026428,
-0.022762438282370567,
-0.02005051262676716,
-0.006830669939517975,
-0.2090151607990265,
0.01866772770881653,
0.06276828795671463,
-0.09720693528652191,
0.07355233281850815,
0.02601015567779541,
0.03857722505927086,
0.06961709260940552,
-0.05167261138558388,
0.003973667975515127,
-0.013989304192364216,
-0.0239170603454113,
-0.0650244802236557,
-0.1560194045305252,
-0.05928272753953934,
-0.03453580662608147,
0.1000426635146141,
-0.07893800735473633,
0.0003954787098336965,
-0.009810146875679493,
0.055691394954919815,
0.0360041968524456,
-0.06607580929994583,
0.0716370940208435,
-0.003652713494375348,
-0.03977478668093681,
-0.05532069131731987,
0.0014715513680130243,
0.01717536151409149,
-0.009011531248688698,
0.045689478516578674,
-0.1977272629737854,
-0.13962651789188385,
0.07614663988351822,
0.037217702716588974,
-0.11761642247438431,
-0.019519798457622528,
-0.0673246681690216,
-0.011560874991118908,
-0.07344415783882141,
-0.050853319466114044,
0.20474660396575928,
0.04369620233774185,
0.10310535132884979,
-0.08568781614303589,
-0.022730233147740364,
0.01906990259885788,
0.015076739713549614,
-0.04695496708154678,
0.063705675303936,
0.011925446800887585,
-0.10095276683568954,
0.03809276595711708,
-0.058593690395355225,
0.03935368359088898,
0.1297035664319992,
0.03513204678893089,
-0.09990403801202774,
0.012732245028018951,
0.012076220475137234,
0.04599462449550629,
0.06994232535362244,
-0.10076364874839783,
0.0162173081189394,
0.06462064385414124,
0.002921542152762413,
0.015229906886816025,
-0.08446197956800461,
0.04047343507409096,
0.05036171153187752,
-0.041738905012607574,
-0.05374935641884804,
-0.058302946388721466,
0.0038186111487448215,
0.11634024232625961,
0.047963038086891174,
0.033262453973293304,
-0.019520509988069534,
-0.05178806930780411,
-0.11070885509252548,
0.18263134360313416,
-0.0822695791721344,
-0.26426514983177185,
-0.15253695845603943,
0.007433051709085703,
0.0012859946582466364,
0.02871333807706833,
0.00429975101724267,
-0.06206784024834633,
-0.0929885059595108,
-0.11483374983072281,
0.049619223922491074,
0.00912874098867178,
-0.017897751182317734,
-0.012415913864970207,
-0.03527582064270973,
0.019651276990771294,
-0.1340654045343399,
-0.014365095645189285,
-0.0037047553341835737,
-0.048376645892858505,
0.01831492781639099,
-0.022763196378946304,
0.08083142340183258,
0.1572645753622055,
-0.005248923320323229,
-0.006286324467509985,
-0.044124893844127655,
0.1688375324010849,
-0.07765830308198929,
0.0828627422451973,
0.061023078858852386,
-0.0812448188662529,
0.05813733860850334,
0.13448728621006012,
0.0022408589720726013,
-0.06498376280069351,
0.07227900624275208,
0.05173575133085251,
-0.049122538417577744,
-0.23325076699256897,
-0.042947884649038315,
-0.05951610580086708,
-0.008816288784146309,
0.13352344930171967,
0.03941218554973602,
0.02987593226134777,
0.02038085088133812,
-0.10872034728527069,
-0.010978702455759048,
0.05702363699674606,
0.0914691686630249,
-0.07334193587303162,
-0.003366179997101426,
0.07902194559574127,
-0.040312472730875015,
-0.03470559045672417,
0.0900016576051712,
-0.08550307154655457,
0.16805888712406158,
-0.07445131987333298,
0.20787298679351807,
0.10984235256910324,
0.037040457129478455,
0.027606183663010597,
0.16469165682792664,
-0.03948482125997543,
0.017898844555020332,
-0.03469155728816986,
-0.0857800841331482,
-0.062400780618190765,
0.018050827085971832,
0.0013524411479011178,
0.045462656766176224,
-0.08660019189119339,
-0.05919463559985161,
0.0024352793116122484,
0.2976292371749878,
0.06353507190942764,
-0.14988069236278534,
-0.0939420610666275,
0.011053246445953846,
-0.041541650891304016,
-0.07711537182331085,
-0.0004088141140528023,
0.09243154525756836,
-0.12606796622276306,
0.07271063327789307,
-0.04745033383369446,
0.08509478718042374,
-0.0954873189330101,
0.007785628084093332,
-0.06523606926202774,
0.0842304453253746,
-0.046361926943063736,
0.0830635279417038,
-0.253038227558136,
0.19317828118801117,
0.01563459075987339,
0.09170185029506683,
-0.1309133619070053,
-0.002452813321724534,
0.04427962377667427,
-0.03750985860824585,
0.18015088140964508,
-0.003877912648022175,
0.04300474748015404,
-0.10345496237277985,
-0.08364515751600266,
0.0020102127455174923,
0.06945031136274338,
-0.009492085315287113,
0.08629167079925537,
0.01328736450523138,
0.0005944445147179067,
0.001187210320495069,
0.0430290587246418,
-0.1263040453195572,
-0.13884414732456207,
0.05146166682243347,
-0.10618241876363754,
-0.04570511728525162,
-0.05237279087305069,
-0.1014813780784607,
0.027868907898664474,
0.1934639811515808,
-0.16538095474243164,
-0.0818253755569458,
-0.11812935024499893,
0.01248067058622837,
0.1019139364361763,
-0.09206543117761612,
0.008371394127607346,
-0.01678580604493618,
0.21589694917201996,
-0.05467608571052551,
-0.07363250851631165,
0.05694317817687988,
-0.059534478932619095,
-0.1377968192100525,
-0.03661947697401047,
0.11678425222635269,
0.14798744022846222,
0.09414704889059067,
0.004088176414370537,
0.00991487130522728,
0.07618521898984909,
-0.1012568473815918,
-0.02106337994337082,
0.09210420399904251,
0.1326119601726532,
0.06389341503381729,
-0.08340202271938324,
-0.04792361333966255,
-0.12415732443332672,
0.041273605078458786,
0.10557615756988525,
0.21995483338832855,
-0.06595073640346527,
0.1163625717163086,
0.20739160478115082,
-0.08256522566080093,
-0.22083495557308197,
0.01736624166369438,
0.06286340951919556,
0.07047859579324722,
0.0741053894162178,
-0.20067650079727173,
0.030995609238743782,
0.02701081708073616,
0.0032025829423218966,
-0.026369761675596237,
-0.19320009648799896,
-0.12796363234519958,
0.13820211589336395,
0.11001389473676682,
-0.05147525295615196,
-0.062129825353622437,
-0.011600933037698269,
-0.04999583214521408,
-0.07451195269823074,
0.11870250105857849,
0.005457337014377117,
0.1159818097949028,
0.020777344703674316,
-0.06447480618953705,
0.04536519572138786,
-0.08057725429534912,
0.09950577467679977,
0.01979009434580803,
0.08036086708307266,
-0.09021344780921936,
-0.058731526136398315,
0.050767119973897934,
-0.04760504886507988,
0.15523336827754974,
0.06263952702283859,
0.033392395824193954,
-0.03588981553912163,
-0.07827439904212952,
-0.08530477434396744,
0.0182789359241724,
-0.06373731046915054,
-0.08728771656751633,
-0.0578780435025692,
0.11682438850402832,
0.09273747354745865,
-0.016404714435338974,
-0.011271093972027302,
-0.050596628338098526,
0.049494609236717224,
0.13740551471710205,
0.17039746046066284,
0.012894685380160809,
-0.042476531118154526,
0.008607233874499798,
0.00912337563931942,
0.03622472658753395,
-0.06210195645689964,
0.04750311002135277,
0.09159965813159943,
0.04897494986653328,
0.15597683191299438,
0.02473508007824421,
-0.15715241432189941,
-0.037176936864852905,
0.022917727008461952,
-0.12391979992389679,
-0.1596481055021286,
0.012010429054498672,
-0.006027578841894865,
-0.16119419038295746,
-0.07623802870512009,
0.038525909185409546,
-0.04137267544865608,
-0.010594915598630905,
0.01635538972914219,
0.05054296553134918,
0.0000877302372828126,
0.17991863191127777,
0.058053694665431976,
0.05322244018316269,
-0.07936372607946396,
0.08017883449792862,
0.08898180723190308,
-0.07273633778095245,
0.04750584438443184,
0.04731735214591026,
-0.08907943218946457,
-0.0012046991614624858,
0.01849278435111046,
0.06896716356277466,
0.127924382686615,
-0.011055530048906803,
-0.04717289283871651,
-0.06441999226808548,
0.04929376021027565,
0.075383260846138,
0.018193135038018227,
0.06095937639474869,
-0.062098413705825806,
0.008932748809456825,
-0.09922350198030472,
0.0611039474606514,
0.061913542449474335,
0.0321260429918766,
0.021719258278608322,
0.19934354722499847,
0.03150826320052147,
0.052169397473335266,
-0.0240510031580925,
-0.06187664717435837,
-0.07155779004096985,
0.0007776763522997499,
-0.0611659437417984,
0.0328160859644413,
-0.11966895312070847,
-0.030834127217531204,
-0.03962133824825287,
0.014205262996256351,
0.011415091343224049,
0.01491532102227211,
-0.042359430342912674,
-0.023794785141944885,
-0.026975665241479874,
0.012238048948347569,
-0.11259134858846664,
0.00390667375177145,
0.060415346175432205,
-0.07673684507608414,
0.0876753032207489,
-0.030737632885575294,
-0.040002260357141495,
0.01808977499604225,
-0.15080921351909637,
-0.01838136464357376,
-0.011896475218236446,
0.00764623424038291,
0.008522829040884972,
-0.13765951991081238,
0.007381847128272057,
-0.03561735153198242,
-0.0452297106385231,
-0.01561965886503458,
0.0775267630815506,
-0.10113540291786194,
0.0658981129527092,
0.047999173402786255,
-0.03114907070994377,
-0.059003572911024094,
0.11916480213403702,
0.08193787187337875,
-0.033657923340797424,
0.13029588758945465,
-0.037023965269327164,
0.05084704980254173,
-0.14494699239730835,
-0.02446024678647518,
-0.011465989984571934,
0.003847826039418578,
0.05493234843015671,
-0.05752883851528168,
0.05423945561051369,
-0.006737331859767437,
0.10478915274143219,
0.007828611880540848,
-0.056549347937107086,
0.03820616751909256,
-0.031194277107715607,
0.01837231032550335,
-0.006177471950650215,
0.0734746977686882,
-0.05039985850453377,
-0.07159332185983658,
0.0367039293050766,
0.02604474499821663,
-0.006753252353519201,
0.13809646666049957,
0.26738592982292175,
0.1145094782114029,
0.07677400857210159,
-0.02144543081521988,
0.0020775371231138706,
-0.03380352631211281,
-0.08960619568824768,
-0.02220507338643074,
0.06603047996759415,
0.04673304408788681,
0.00007899408228695393,
0.08134745806455612,
0.11444655060768127,
-0.1449069231748581,
0.14770668745040894,
0.019405340775847435,
-0.09224553406238556,
-0.09642909467220306,
-0.2504918575286865,
-0.0008002162794582546,
0.08370407670736313,
-0.029821857810020447,
-0.12721925973892212,
0.013510218821465969,
0.11181192845106125,
0.047729164361953735,
-0.03452780097723007,
0.1611899733543396,
-0.08229434490203857,
-0.0861179381608963,
0.0835375040769577,
0.017852840945124626,
-0.002544101094827056,
-0.007696071173995733,
0.008471843786537647,
0.047405682504177094,
0.039373598992824554,
0.0877314880490303,
0.0447838231921196,
0.04830709844827652,
-0.0016436115838587284,
-0.013657051138579845,
-0.08863828331232071,
0.029517358168959618,
-0.02684410847723484,
0.10059095174074173,
0.24101650714874268,
0.04012444242835045,
-0.036335866898298264,
-0.00960989948362112,
0.12304265052080154,
-0.021471437066793442,
-0.0690193623304367,
-0.12830086052417755,
0.16738809645175934,
0.04167437553405762,
-0.005485293921083212,
0.0556318573653698,
-0.10764802992343903,
0.032646432518959045,
0.23761866986751556,
0.14182783663272858,
0.0011957709211856127,
0.012096733786165714,
0.008423762395977974,
0.014524565078318119,
0.027076750993728638,
0.1612141728401184,
-0.005447881296277046,
0.2128559798002243,
-0.03626790642738342,
0.1060524731874466,
-0.037359680980443954,
-0.04406345635652542,
-0.035172171890735626,
0.09453263878822327,
0.028232000768184662,
-0.009198799729347229,
-0.07897105067968369,
0.06607218086719513,
-0.021750882267951965,
-0.260026752948761,
-0.028478579595685005,
-0.056979112327098846,
-0.12965057790279388,
-0.011414061300456524,
-0.07500343769788742,
0.0667838305234909,
0.07483363151550293,
0.02779369242489338,
0.03505672886967659,
0.16206762194633484,
0.043138593435287476,
-0.03953241556882858,
-0.0860275849699974,
0.08366993814706802,
-0.03308018669486046,
0.20990166068077087,
0.023141775280237198,
0.03969908878207207,
0.09320905804634094,
0.0155209144577384,
-0.09686201065778732,
0.033003516495227814,
0.004970548674464226,
0.03956272453069687,
0.02509421668946743,
0.18521223962306976,
-0.02411201037466526,
-0.05288241431117058,
0.01025550626218319,
-0.1039607897400856,
0.057859405875205994,
-0.10493405908346176,
-0.03247814252972603,
-0.1193951740860939,
0.11030786484479904,
-0.0604960173368454,
0.1304416060447693,
0.19824650883674622,
-0.006808329839259386,
-0.005078800022602081,
-0.08136770129203796,
-0.020754951983690262,
-0.009727342054247856,
0.10144088417291641,
-0.022731496021151543,
-0.18574245274066925,
0.006502075120806694,
-0.05712493881583214,
0.025840619578957558,
-0.2963947355747223,
-0.042784433811903,
0.03296564891934395,
-0.08048302680253983,
-0.021068980917334557,
0.06506511569023132,
-0.03673930838704109,
0.0753861516714096,
-0.03602520003914833,
0.0423402301967144,
-0.004416536074131727,
0.10059640556573868,
-0.14944693446159363,
-0.04231806471943855
] |
null | null | transformers |
# ALBERT XXLarge v2
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1909.11942) and first released in
[this repository](https://github.com/google-research/albert). This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the second version of the xxlarge model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
- 12 repeating layers
- 128 embedding dimension
- 4096 hidden dimension
- 64 attention heads
- 223M parameters
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=albert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-xxlarge-v2')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
"sequence":"[CLS] hello i'm a modeling model.[SEP]",
"score":0.05816134437918663,
"token":12807,
"token_str":"â–modeling"
},
{
"sequence":"[CLS] hello i'm a modelling model.[SEP]",
"score":0.03748830780386925,
"token":23089,
"token_str":"â–modelling"
},
{
"sequence":"[CLS] hello i'm a model model.[SEP]",
"score":0.033725276589393616,
"token":1061,
"token_str":"â–model"
},
{
"sequence":"[CLS] hello i'm a runway model.[SEP]",
"score":0.017313428223133087,
"token":8014,
"token_str":"â–runway"
},
{
"sequence":"[CLS] hello i'm a lingerie model.[SEP]",
"score":0.014405295252799988,
"token":29104,
"token_str":"â–lingerie"
}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AlbertTokenizer, AlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-xxlarge-v2')
model = AlbertModel.from_pretrained("albert-xxlarge-v2")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import AlbertTokenizer, TFAlbertModel
tokenizer = AlbertTokenizer.from_pretrained('albert-xxlarge-v2')
model = TFAlbertModel.from_pretrained("albert-xxlarge-v2")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='albert-xxlarge-v2')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] the man worked as a chauffeur.[SEP]",
"score":0.029577180743217468,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the man worked as a janitor.[SEP]",
"score":0.028865724802017212,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the man worked as a shoemaker.[SEP]",
"score":0.02581118606030941,
"token":29024,
"token_str":"â–shoemaker"
},
{
"sequence":"[CLS] the man worked as a blacksmith.[SEP]",
"score":0.01849772222340107,
"token":21238,
"token_str":"â–blacksmith"
},
{
"sequence":"[CLS] the man worked as a lawyer.[SEP]",
"score":0.01820771023631096,
"token":3672,
"token_str":"â–lawyer"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] the woman worked as a receptionist.[SEP]",
"score":0.04604868218302727,
"token":25331,
"token_str":"â–receptionist"
},
{
"sequence":"[CLS] the woman worked as a janitor.[SEP]",
"score":0.028220869600772858,
"token":29477,
"token_str":"â–janitor"
},
{
"sequence":"[CLS] the woman worked as a paramedic.[SEP]",
"score":0.0261906236410141,
"token":23386,
"token_str":"â–paramedic"
},
{
"sequence":"[CLS] the woman worked as a chauffeur.[SEP]",
"score":0.024797942489385605,
"token":28744,
"token_str":"â–chauffeur"
},
{
"sequence":"[CLS] the woman worked as a waitress.[SEP]",
"score":0.024124596267938614,
"token":13678,
"token_str":"â–waitress"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The ALBERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
## Evaluation results
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
| | Average | SQuAD1.1 | SQuAD2.0 | MNLI | SST-2 | RACE |
|----------------|----------|----------|----------|----------|----------|----------|
|V2 |
|ALBERT-base |82.3 |90.2/83.2 |82.1/79.3 |84.6 |92.9 |66.8 |
|ALBERT-large |85.7 |91.8/85.2 |84.9/81.8 |86.5 |94.9 |75.2 |
|ALBERT-xlarge |87.9 |92.9/86.4 |87.9/84.1 |87.9 |95.4 |80.7 |
|ALBERT-xxlarge |90.9 |94.6/89.1 |89.8/86.9 |90.6 |96.8 |86.8 |
|V1 |
|ALBERT-base |80.1 |89.3/82.3 | 80.0/77.1|81.6 |90.3 | 64.0 |
|ALBERT-large |82.4 |90.6/83.9 | 82.3/79.4|83.5 |91.7 | 68.5 |
|ALBERT-xlarge |85.5 |92.5/86.1 | 86.1/83.1|86.4 |92.4 | 74.8 |
|ALBERT-xxlarge |91.0 |94.8/89.3 | 90.2/87.4|90.8 |96.9 | 86.5 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1909-11942,
author = {Zhenzhong Lan and
Mingda Chen and
Sebastian Goodman and
Kevin Gimpel and
Piyush Sharma and
Radu Soricut},
title = {{ALBERT:} {A} Lite {BERT} for Self-supervised Learning of Language
Representations},
journal = {CoRR},
volume = {abs/1909.11942},
year = {2019},
url = {http://arxiv.org/abs/1909.11942},
archivePrefix = {arXiv},
eprint = {1909.11942},
timestamp = {Fri, 27 Sep 2019 13:04:21 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1909-11942.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
<a href="https://huggingface.co/exbert/?model=albert-xxlarge-v2">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a> | {"language": "en", "license": "apache-2.0", "tags": ["exbert"], "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | albert/albert-xxlarge-v2 | [
"transformers",
"pytorch",
"tf",
"rust",
"safetensors",
"albert",
"fill-mask",
"exbert",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1909.11942",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1909.11942"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #rust #safetensors #albert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us
| ALBERT XXLarge v2
=================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model, as all ALBERT models, is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing ALBERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
ALBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Sentence Ordering Prediction (SOP): ALBERT uses a pretraining loss based on predicting the ordering of two consecutive segments of text.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the ALBERT model as inputs.
ALBERT is particular in that it shares its layers across its Transformer. Therefore, all layers have the same weights. Using repeating layers results in a small memory footprint, however, the computational cost remains similar to a BERT-like architecture with the same number of hidden layers as it has to iterate through the same number of (repeating) layers.
This is the second version of the xxlarge model. Version 2 is different from version 1 due to different dropout rates, additional training data, and longer training. It has better results in nearly all downstream tasks.
This model has the following configuration:
* 12 repeating layers
* 128 embedding dimension
* 4096 hidden dimension
* 64 attention heads
* 223M parameters
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
### Training
The ALBERT procedure follows the BERT setup.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
Evaluation results
------------------
When fine-tuned on downstream tasks, the ALBERT models achieve the following results:
### BibTeX entry and citation info
<a href="URL
<img width="300px" src="URL
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
"TAGS\n#transformers #pytorch #tf #rust #safetensors #albert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:",
"### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
84,
49,
102,
42,
135,
30
] | [
"passage: TAGS\n#transformers #pytorch #tf #rust #safetensors #albert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1909.11942 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe ALBERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using SentencePiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:### Training\n\n\nThe ALBERT procedure follows the BERT setup.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, the ALBERT models achieve the following results:### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
-0.05788842961192131,
0.1143597811460495,
-0.0035046867560595274,
0.08419948816299438,
0.051346953958272934,
0.029748400673270226,
0.10320167988538742,
0.06380175799131393,
-0.02482539787888527,
0.05849501118063927,
0.03377658501267433,
0.036872733384370804,
0.11718069761991501,
0.1310139298439026,
0.038972217589616776,
-0.28650355339050293,
0.0379054918885231,
-0.032530222088098526,
0.02465512603521347,
0.09480370581150055,
0.10683757066726685,
-0.09939493983983994,
0.032137468457221985,
0.017252638936042786,
-0.017658384516835213,
-0.02108003944158554,
0.0003139314067084342,
-0.04896404594182968,
0.0771242082118988,
0.06088178977370262,
0.10207446664571762,
0.011761731468141079,
0.08077587187290192,
-0.1816476285457611,
0.02033744938671589,
0.08009865880012512,
0.013084382750093937,
0.09001172333955765,
0.07669450342655182,
0.015504132956266403,
0.07167105376720428,
-0.08389080315828323,
0.07063624262809753,
0.034677669405937195,
-0.095730260014534,
-0.07945893704891205,
-0.08851376920938492,
0.10942013561725616,
0.07764710485935211,
0.03640265017747879,
-0.032553717494010925,
0.062232982367277145,
-0.045706503093242645,
0.07934150099754333,
0.22404220700263977,
-0.16118861734867096,
-0.009705504402518272,
-0.042387913912534714,
0.011942141689360142,
0.011384504847228527,
-0.10481234639883041,
-0.0298936627805233,
0.02218947932124138,
0.018887920305132866,
0.12019655108451843,
-0.0038204912561923265,
0.007094367407262325,
-0.06630650162696838,
-0.09814762324094772,
-0.08839715272188187,
0.061388809233903885,
0.010344223119318485,
-0.10939063876867294,
-0.15697531402111053,
-0.023905577138066292,
-0.0193498358130455,
-0.002527450444176793,
0.003413190133869648,
0.02435631863772869,
-0.0374729260802269,
0.06407175958156586,
-0.08697891980409622,
-0.08673292398452759,
-0.04205494001507759,
-0.0030213429126888514,
0.12024214118719101,
0.03808009624481201,
0.0006225325050763786,
-0.022653883323073387,
0.12408269196748734,
0.011003377847373486,
-0.10548916459083557,
-0.0350608229637146,
-0.053443796932697296,
-0.1009761393070221,
-0.03153703734278679,
0.004386119544506073,
-0.052847038954496384,
-0.07064878940582275,
0.13759011030197144,
-0.08770234137773514,
0.020111121237277985,
-0.0639994740486145,
0.029104257002472878,
0.053622446954250336,
0.09756725281476974,
-0.11683250963687897,
-0.006869109347462654,
0.026011185720562935,
0.04363931342959404,
0.018914589658379555,
-0.002219527494162321,
-0.0010595115600153804,
-0.020339451730251312,
0.04881748929619789,
0.05819077789783478,
0.008470277301967144,
0.05456453934311867,
-0.06555330008268356,
-0.04662847891449928,
0.1423875093460083,
-0.16259844601154327,
0.0014014766784384847,
0.008227924816310406,
-0.0605357401072979,
-0.05159475654363632,
0.08039285242557526,
-0.04694985970854759,
-0.11114551872015,
0.13019318878650665,
-0.08248230814933777,
-0.03270425274968147,
-0.07240480929613113,
-0.15366056561470032,
-0.00659950589761138,
-0.04942453280091286,
-0.04595525190234184,
-0.025904931128025055,
-0.13639311492443085,
-0.035964205861091614,
0.053031206130981445,
-0.014745588414371014,
0.004146578721702099,
-0.02676467038691044,
-0.013173257932066917,
-0.022751905024051666,
0.001833142712712288,
0.08089783787727356,
-0.018812814727425575,
0.043806128203868866,
-0.07318972796201706,
0.0781245082616806,
0.07121162116527557,
0.03731856122612953,
-0.0881161093711853,
0.026499535888433456,
-0.19580534100532532,
0.09770029783248901,
-0.03740842640399933,
-0.056664470583200455,
-0.07140959799289703,
-0.0577644445002079,
-0.023358512669801712,
0.04284633696079254,
0.04064030200242996,
0.16036216914653778,
-0.18236279487609863,
-0.04100175201892853,
0.2823140621185303,
-0.1038966104388237,
-0.016766659915447235,
0.12012436985969543,
-0.08299191296100616,
0.03781608119606972,
0.09456901997327805,
0.048946309834718704,
-0.02762068621814251,
-0.09029284864664078,
-0.028671342879533768,
-0.0625225231051445,
0.011676673777401447,
0.1634422093629837,
0.03827323764562607,
-0.05521409213542938,
-0.006866132374852896,
0.008896604180335999,
-0.07565513998270035,
-0.042660441249608994,
-0.012363237328827381,
-0.03399445116519928,
0.03827689588069916,
-0.026506483554840088,
0.07339827716350555,
0.006807197816669941,
-0.05010933801531792,
-0.02403448149561882,
-0.12221813946962357,
0.021839376538991928,
0.07406638562679291,
-0.08019482344388962,
0.03171977400779724,
-0.052174463868141174,
-0.031360432505607605,
-0.01971408724784851,
-0.008188635110855103,
-0.18955256044864655,
0.004861066117882729,
0.0359649620950222,
-0.08428917080163956,
0.0941634550690651,
-0.0046753897331655025,
0.02909400500357151,
0.08478239178657532,
-0.059196438640356064,
-0.0010505066020414233,
-0.023429162800312042,
-0.009397445246577263,
-0.07251844555139542,
-0.1407867819070816,
-0.06665411591529846,
-0.03908343240618706,
0.0950416624546051,
-0.15852098166942596,
0.01303933560848236,
-0.048627518117427826,
0.07064744085073471,
0.04463516175746918,
-0.06541088968515396,
0.05579090490937233,
-0.007385198026895523,
-0.05161970481276512,
-0.05896487459540367,
-0.01895180717110634,
0.001257393741980195,
-0.022450532764196396,
0.0452396422624588,
-0.15852010250091553,
-0.15048784017562866,
0.05798301845788956,
0.05423564091324806,
-0.12286383658647537,
-0.017186686396598816,
-0.048196662217378616,
-0.026353832334280014,
-0.11028808355331421,
-0.0705133005976677,
0.16894254088401794,
0.045744456350803375,
0.11176225543022156,
-0.07927212119102478,
-0.024593405425548553,
-0.008468895219266415,
-0.006888761650770903,
-0.05184087157249451,
0.06413134932518005,
0.020679283887147903,
-0.10751619189977646,
0.05179417133331299,
-0.046190839260816574,
0.007765738293528557,
0.14141689240932465,
0.05130258575081825,
-0.11124789714813232,
0.015261063352227211,
-0.0038125147111713886,
0.043674830347299576,
0.08504895120859146,
-0.05764187127351761,
0.011934444308280945,
0.05835983157157898,
-0.017452644184231758,
0.015438021160662174,
-0.0994020327925682,
0.05523165687918663,
0.055184584110975266,
-0.04726530611515045,
-0.03913045674562454,
-0.07306579500436783,
0.006813845597207546,
0.11781471222639084,
0.028709856793284416,
0.02553432807326317,
-0.024524502456188202,
-0.051835544407367706,
-0.11870049685239792,
0.16972994804382324,
-0.08303960412740707,
-0.24345549941062927,
-0.18138279020786285,
0.007177928928285837,
0.004251723177731037,
0.03656629100441933,
-0.00899362750351429,
-0.038451485335826874,
-0.08111654967069626,
-0.12629470229148865,
0.03800889849662781,
0.03754877671599388,
-0.05061500146985054,
-0.03598426654934883,
-0.00866936519742012,
0.012779006734490395,
-0.12641768157482147,
-0.009758241474628448,
0.00032418419141322374,
-0.05156397074460983,
-0.006040644366294146,
-0.005190339405089617,
0.0689842626452446,
0.13171698153018951,
-0.032525684684515,
-0.026315931230783463,
-0.03414725139737129,
0.13595180213451385,
-0.08145903050899506,
0.10156408697366714,
0.022857962176203728,
-0.08780624717473984,
0.06274018436670303,
0.12398449331521988,
0.013010765425860882,
-0.05242086574435234,
0.05347863957285881,
0.04583355411887169,
-0.03421676903963089,
-0.2619413733482361,
-0.0346909761428833,
-0.061373986303806305,
-0.026553409174084663,
0.1434181183576584,
0.030539285391569138,
0.051892828196287155,
0.03360408544540405,
-0.11158985644578934,
0.029212312772870064,
0.08038421720266342,
0.07544274628162384,
-0.09580793231725693,
-0.00017240963643416762,
0.06962300837039948,
-0.02890428714454174,
-0.005163817200809717,
0.07823199778795242,
-0.03045717254281044,
0.18528029322624207,
-0.07418990880250931,
0.20111364126205444,
0.09097476303577423,
0.011785062029957771,
0.01228069607168436,
0.1763373464345932,
-0.03253467008471489,
0.041885536164045334,
-0.02856331877410412,
-0.07683461159467697,
-0.05728072300553322,
0.06057768315076828,
0.0035498281940817833,
0.04441556707024574,
-0.0708354189991951,
-0.06719498336315155,
0.004457613918930292,
0.2625446021556854,
0.08178504556417465,
-0.17379675805568695,
-0.0869109183549881,
0.03346647322177887,
-0.03758896887302399,
-0.08491002023220062,
-0.01631481759250164,
0.07753585278987885,
-0.14462508261203766,
0.049445174634456635,
-0.047293320298194885,
0.0950530394911766,
-0.12144388258457184,
-0.027063801884651184,
-0.06580284237861633,
0.0927746444940567,
-0.05962382256984711,
0.07498493790626526,
-0.2097930610179901,
0.18940161168575287,
0.013371252454817295,
0.10316170752048492,
-0.11452668160200119,
0.022025560960173607,
0.058573946356773376,
-0.032093942165374756,
0.1687922477722168,
-0.008744281716644764,
0.02017686888575554,
-0.09740206599235535,
-0.06382185220718384,
-0.006132015958428383,
0.04131091758608818,
-0.03795360401272774,
0.08470916748046875,
0.005117475055158138,
-0.01272631250321865,
-0.006008706986904144,
0.02172565460205078,
-0.1427861899137497,
-0.16454163193702698,
0.02356717362999916,
-0.0859343409538269,
-0.0265937652438879,
-0.050323329865932465,
-0.09046131372451782,
0.009736555628478527,
0.20183411240577698,
-0.1512611359357834,
-0.0964432954788208,
-0.11240758001804352,
0.03040262497961521,
0.12207671999931335,
-0.08992425352334976,
0.029822738841176033,
-0.00350337871350348,
0.21021267771720886,
-0.06347694247961044,
-0.05037441849708557,
0.02946869656443596,
-0.07917982339859009,
-0.14525043964385986,
-0.061636973172426224,
0.11103727668523788,
0.15474149584770203,
0.07924236357212067,
0.018601475283503532,
0.016491157934069633,
0.05805693566799164,
-0.07883883267641068,
-0.025882663205266,
0.11979161947965622,
0.12031497061252594,
0.12099454551935196,
-0.11694879829883575,
-0.10256517678499222,
-0.12439943850040436,
0.011999232694506645,
0.08190783113241196,
0.20301905274391174,
-0.0518169067800045,
0.10969569534063339,
0.212001234292984,
-0.1118493378162384,
-0.18639694154262543,
0.011003341525793076,
0.04242769256234169,
0.08045247197151184,
0.09199963510036469,
-0.187149778008461,
0.02649809420108795,
0.04642569273710251,
-0.005056044086813927,
0.03366333618760109,
-0.1366310566663742,
-0.14164431393146515,
0.1463126689195633,
0.09438852220773697,
-0.10248460620641708,
-0.06514310091733932,
-0.027269678190350533,
-0.07130656391382217,
-0.08325828611850739,
0.1101180836558342,
0.017337767407298088,
0.08977196365594864,
0.026599470525979996,
-0.026339877396821976,
0.03606680780649185,
-0.060934361070394516,
0.10816320031881332,
0.010252182371914387,
0.05464210361242294,
-0.07779695093631744,
-0.07012959569692612,
0.05362865328788757,
-0.061309803277254105,
0.14323890209197998,
0.02485998161137104,
0.03487895801663399,
-0.05841769650578499,
-0.06976594030857086,
-0.07333788275718689,
0.02276024967432022,
-0.07080591470003128,
-0.07782171666622162,
-0.05686377361416817,
0.11544405668973923,
0.08304470777511597,
-0.0029361327178776264,
-0.0049201613292098045,
-0.04185514152050018,
0.05184131860733032,
0.1347166746854782,
0.1393417865037918,
0.035012636333703995,
-0.04807078838348389,
0.01012716256082058,
-0.0057832482270896435,
0.04179443046450615,
-0.06978438049554825,
0.055118296295404434,
0.07604158669710159,
0.05241395905613899,
0.18820646405220032,
0.012965087778866291,
-0.14616520702838898,
-0.01273561641573906,
0.013712902553379536,
-0.09910887479782104,
-0.15108665823936462,
0.01918811723589897,
-0.040320947766304016,
-0.1725681722164154,
-0.057099707424640656,
0.06700918078422546,
-0.051767997443675995,
-0.026487886905670166,
0.011609433218836784,
0.07351703196763992,
-0.007293347734957933,
0.17821964621543884,
0.06702788919210434,
0.05274960398674011,
-0.06340895593166351,
0.0845843032002449,
0.10388195514678955,
-0.041969090700149536,
0.036492858082056046,
0.04827578365802765,
-0.06519784033298492,
-0.006700297351926565,
-0.009248006157577038,
0.043360430747270584,
0.08968789875507355,
-0.028563279658555984,
-0.028708651661872864,
-0.045080944895744324,
0.03551705554127693,
0.018363049253821373,
0.0062988270074129105,
0.05150088295340538,
-0.04797745868563652,
0.010553368367254734,
-0.09905034303665161,
0.07722393423318863,
0.08774863183498383,
0.03365830332040787,
0.021453922614455223,
0.13592083752155304,
0.023733846843242645,
0.029629996046423912,
-0.009482230991125107,
-0.04079117625951767,
-0.06757251918315887,
0.011109504848718643,
-0.08421014994382858,
0.05555607005953789,
-0.12202863395214081,
-0.035728104412555695,
-0.027710210531949997,
-0.003311598440632224,
0.022265339270234108,
0.019341662526130676,
-0.03265108913183212,
-0.03834053874015808,
-0.030117781832814217,
0.04209713637828827,
-0.13966719806194305,
-0.006008852738887072,
0.07290682196617126,
-0.0881405621767044,
0.07451896369457245,
-0.028511865064501762,
-0.03533921763300896,
0.016969677060842514,
-0.17255905270576477,
-0.004884262569248676,
-0.018047692254185677,
0.00282732374034822,
0.019704097881913185,
-0.1384606957435608,
0.014152123592793941,
-0.0356038436293602,
-0.01980430632829666,
-0.03388671949505806,
0.037638887763023376,
-0.09031873196363449,
0.051585424691438675,
0.037304770201444626,
-0.013046312145888805,
-0.04858244210481644,
0.12949387729167938,
0.0812733843922615,
-0.040110837668180466,
0.12166141718626022,
-0.031162725761532784,
0.06558132916688919,
-0.1513117551803589,
0.0015058178687468171,
-0.010391701012849808,
0.007120231632143259,
0.05881274491548538,
-0.044601064175367355,
0.050832249224185944,
-0.010423434898257256,
0.12474539130926132,
0.014623932540416718,
-0.02166244387626648,
0.03395698219537735,
-0.041806966066360474,
-0.0025413825642317533,
0.015055492520332336,
0.06506937742233276,
-0.047485437244176865,
-0.07649242132902145,
-0.015287129208445549,
0.0005358699709177017,
0.006955320946872234,
0.09522943198680878,
0.23041878640651703,
0.12961581349372864,
0.08042290806770325,
0.008823245763778687,
0.025664638727903366,
-0.037883467972278595,
-0.0962013304233551,
-0.07194869220256805,
0.0764109268784523,
0.040973637253046036,
-0.006630324758589268,
0.07497300207614899,
0.11996781080961227,
-0.16506081819534302,
0.14225752651691437,
0.02147594280540943,
-0.09489597380161285,
-0.08217177540063858,
-0.21589170396327972,
-0.017412949353456497,
0.10570771992206573,
-0.020087311044335365,
-0.11982161551713943,
0.01903587393462658,
0.09879184514284134,
0.025520145893096924,
-0.029869547113776207,
0.12693117558956146,
-0.04464607685804367,
-0.08204551041126251,
0.07992059737443924,
0.034591883420944214,
0.0014362097717821598,
-0.017395906150341034,
-0.00844183936715126,
0.034486547112464905,
0.04604058712720871,
0.08597541600465775,
0.046450868248939514,
0.042171403765678406,
0.01131407730281353,
0.005361984018236399,
-0.07867782562971115,
0.014958611689507961,
-0.026408160105347633,
0.08111511170864105,
0.20436595380306244,
0.051009416580200195,
-0.03434441611170769,
-0.004742351360619068,
0.12250985205173492,
-0.032857123762369156,
-0.06479057669639587,
-0.13184522092342377,
0.12522247433662415,
0.04273948073387146,
-0.007198031526058912,
0.05591867119073868,
-0.12390610575675964,
0.03843018040060997,
0.19964009523391724,
0.18962249159812927,
0.004434102680534124,
0.008218028582632542,
-0.0018236491596326232,
0.012492717243731022,
0.00524358032271266,
0.12018775194883347,
-0.010241551324725151,
0.2099498212337494,
-0.033015090972185135,
0.11735960841178894,
-0.004469649400562048,
-0.05627686157822609,
-0.016365498304367065,
0.08533906191587448,
0.003084237687289715,
-0.0032949557062238455,
-0.06997159123420715,
0.05912331864237785,
-0.03716902807354927,
-0.33931756019592285,
-0.001873137429356575,
-0.04529072716832161,
-0.1314508616924286,
-0.01728334277868271,
-0.0709834098815918,
0.06460981070995331,
0.06860410422086716,
0.04168962687253952,
0.017797570675611496,
0.17202123999595642,
0.02531648427248001,
-0.0431935079395771,
-0.07097046077251434,
0.06631501019001007,
-0.016576403751969337,
0.25201359391212463,
0.019755449146032333,
0.04019583761692047,
0.07609012722969055,
0.014896261505782604,
-0.09403210133314133,
0.017575152218341827,
0.021497255191206932,
0.05204678699374199,
0.053779445588588715,
0.17226861417293549,
-0.023397626355290413,
-0.05398718640208244,
0.020060712471604347,
-0.076419897377491,
0.06283806264400482,
-0.08570928871631622,
-0.05238622799515724,
-0.11565504223108292,
0.09280361235141754,
-0.05781017988920212,
0.13530652225017548,
0.17690715193748474,
-0.013074057176709175,
-0.0012439405545592308,
-0.05157402530312538,
-0.0038060133811086416,
0.008192806504666805,
0.11332269012928009,
-0.01336655206978321,
-0.16989244520664215,
0.005125896073877811,
-0.05656997486948967,
0.03446395695209503,
-0.30396315455436707,
-0.0431116558611393,
0.030276957899332047,
-0.09311027079820633,
-0.026369214057922363,
0.07139883935451508,
0.01814018003642559,
0.06801266968250275,
-0.02711939997971058,
-0.014413042925298214,
-0.00937375146895647,
0.09179661422967911,
-0.13538700342178345,
-0.036704543977975845
] |
null | null | transformers |
# BERT base model (cased)
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1810.04805) and first released in
[this repository](https://github.com/google-research/bert). This model is case-sensitive: it makes a difference between
english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=bert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-base-cased')
>>> unmasker("Hello I'm a [MASK] model.")
[{'sequence': "[CLS] Hello I'm a fashion model. [SEP]",
'score': 0.09019174426794052,
'token': 4633,
'token_str': 'fashion'},
{'sequence': "[CLS] Hello I'm a new model. [SEP]",
'score': 0.06349995732307434,
'token': 1207,
'token_str': 'new'},
{'sequence': "[CLS] Hello I'm a male model. [SEP]",
'score': 0.06228214129805565,
'token': 2581,
'token_str': 'male'},
{'sequence': "[CLS] Hello I'm a professional model. [SEP]",
'score': 0.0441727414727211,
'token': 1848,
'token_str': 'professional'},
{'sequence': "[CLS] Hello I'm a super model. [SEP]",
'score': 0.03326151892542839,
'token': 7688,
'token_str': 'super'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import BertTokenizer, BertModel
tokenizer = BertTokenizer.from_pretrained('bert-base-cased')
model = BertModel.from_pretrained("bert-base-cased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('bert-base-cased')
model = TFBertModel.from_pretrained("bert-base-cased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-base-cased')
>>> unmasker("The man worked as a [MASK].")
[{'sequence': '[CLS] The man worked as a lawyer. [SEP]',
'score': 0.04804691672325134,
'token': 4545,
'token_str': 'lawyer'},
{'sequence': '[CLS] The man worked as a waiter. [SEP]',
'score': 0.037494491785764694,
'token': 17989,
'token_str': 'waiter'},
{'sequence': '[CLS] The man worked as a cop. [SEP]',
'score': 0.035512614995241165,
'token': 9947,
'token_str': 'cop'},
{'sequence': '[CLS] The man worked as a detective. [SEP]',
'score': 0.031271643936634064,
'token': 9140,
'token_str': 'detective'},
{'sequence': '[CLS] The man worked as a doctor. [SEP]',
'score': 0.027423162013292313,
'token': 3995,
'token_str': 'doctor'}]
>>> unmasker("The woman worked as a [MASK].")
[{'sequence': '[CLS] The woman worked as a nurse. [SEP]',
'score': 0.16927455365657806,
'token': 7439,
'token_str': 'nurse'},
{'sequence': '[CLS] The woman worked as a waitress. [SEP]',
'score': 0.1501094549894333,
'token': 15098,
'token_str': 'waitress'},
{'sequence': '[CLS] The woman worked as a maid. [SEP]',
'score': 0.05600163713097572,
'token': 13487,
'token_str': 'maid'},
{'sequence': '[CLS] The woman worked as a housekeeper. [SEP]',
'score': 0.04838843643665314,
'token': 26458,
'token_str': 'housekeeper'},
{'sequence': '[CLS] The woman worked as a cook. [SEP]',
'score': 0.029980547726154327,
'token': 9834,
'token_str': 'cook'}]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The BERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
| Task | MNLI-(m/mm) | QQP | QNLI | SST-2 | CoLA | STS-B | MRPC | RTE | Average |
|:----:|:-----------:|:----:|:----:|:-----:|:----:|:-----:|:----:|:----:|:-------:|
| | 84.6/83.4 | 71.2 | 90.5 | 93.5 | 52.1 | 85.8 | 88.9 | 66.4 | 79.6 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1810-04805,
author = {Jacob Devlin and
Ming{-}Wei Chang and
Kenton Lee and
Kristina Toutanova},
title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language
Understanding},
journal = {CoRR},
volume = {abs/1810.04805},
year = {2018},
url = {http://arxiv.org/abs/1810.04805},
archivePrefix = {arXiv},
eprint = {1810.04805},
timestamp = {Tue, 30 Oct 2018 20:39:56 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
<a href="https://huggingface.co/exbert/?model=bert-base-cased">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": "en", "license": "apache-2.0", "tags": ["exbert"], "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | google-bert/bert-base-cased | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"exbert",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1810.04805"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us
| BERT base model (cased)
=======================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model is case-sensitive: it makes a difference between
english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The BERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \(\beta\_{1} = 0.9\) and \(\beta\_{2} = 0.999\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
Evaluation results
------------------
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
### BibTeX entry and citation info
<a href="URL
<img width="300px" src="URL
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are then of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
"TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are then of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
85,
49,
101,
218,
163,
30
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are then of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is."
] | [
-0.022694578394293785,
0.08986902981996536,
-0.006014915183186531,
0.04828432947397232,
-0.008334090001881123,
0.033205945044755936,
0.05239918455481529,
0.026597775518894196,
-0.03182821348309517,
0.05474946275353432,
0.05566686764359474,
0.04816128686070442,
0.10253022611141205,
0.08866079151630402,
0.026096809655427933,
-0.23610588908195496,
0.07383865863084793,
-0.03007957898080349,
0.15808524191379547,
0.09728358685970306,
0.09637268632650375,
-0.07780441641807556,
0.014134038239717484,
0.011485768482089043,
0.006488495972007513,
-0.004635794088244438,
0.0343046672642231,
-0.06624361872673035,
0.09149236977100372,
0.060978055000305176,
0.07459001988172531,
0.0460527278482914,
0.04363933205604553,
-0.1639401614665985,
0.021799957379698753,
0.07385865598917007,
0.003668607212603092,
0.04990271106362343,
0.09427202492952347,
-0.030956704169511795,
0.04393274337053299,
-0.017320390790700912,
0.06680919975042343,
0.018834181129932404,
-0.14065513014793396,
-0.08646577596664429,
-0.06754329800605774,
0.05894114822149277,
0.006329273339360952,
0.005012068431824446,
-0.04893248900771141,
0.0961189717054367,
-0.029783811420202255,
0.06526400148868561,
0.2644452154636383,
-0.21463248133659363,
0.014891483820974827,
-0.007795310113579035,
0.05194377526640892,
0.0290975421667099,
-0.038603633642196655,
-0.03986215591430664,
0.04213950037956238,
0.040053438395261765,
0.07438419759273529,
-0.034551944583654404,
0.04201390594244003,
-0.04982984811067581,
-0.12538333237171173,
-0.0927746444940567,
0.08943518251180649,
-0.03251500800251961,
-0.11865132302045822,
-0.10535771399736404,
-0.02069947123527527,
0.02291826531291008,
0.007026991341263056,
0.04322692006826401,
-0.010082559660077095,
-0.019112451002001762,
0.05725877359509468,
-0.010753610171377659,
-0.07491391152143478,
-0.03431002050638199,
-0.10219857841730118,
0.16002778708934784,
0.051976121962070465,
0.022037643939256668,
-0.02694670669734478,
0.12387338280677795,
-0.06947384029626846,
-0.07788281887769699,
-0.03032379411160946,
-0.06428752839565277,
-0.12001285701990128,
-0.01871839538216591,
-0.06459926068782806,
-0.12102223187685013,
-0.04663248732686043,
0.09496508538722992,
-0.05223561078310013,
0.02593110129237175,
-0.08153779059648514,
0.05393068492412567,
0.12332764267921448,
0.020218713209033012,
-0.09845319390296936,
0.0008111313218250871,
0.030405467376112938,
0.04946163296699524,
0.02412477508187294,
0.010098195634782314,
-0.002366436179727316,
-0.05127578601241112,
0.06638648360967636,
0.04154757410287857,
0.004770180210471153,
0.06657801568508148,
-0.06728049367666245,
-0.026141799986362457,
0.05849621072411537,
-0.1292828619480133,
-0.053824279457330704,
-0.0003189234994351864,
-0.062484219670295715,
-0.06315507739782333,
0.06190170347690582,
-0.04486215487122536,
-0.1322186142206192,
0.08133388310670853,
-0.07932086288928986,
-0.049522146582603455,
-0.06794575601816177,
-0.18499785661697388,
-0.018021276220679283,
-0.03842128440737724,
-0.06534866988658905,
-0.04873548075556755,
-0.12412511557340622,
-0.03041655756533146,
0.012963700108230114,
-0.007596041541546583,
-0.018093176186084747,
-0.024312427267432213,
0.009661237709224224,
-0.05399585887789726,
-0.020828058943152428,
0.08556722104549408,
-0.02551683969795704,
0.07079268991947174,
-0.07045157253742218,
0.09919583052396774,
0.0408913679420948,
0.007485215552151203,
-0.12432167679071426,
0.04267800971865654,
-0.18506291508674622,
0.10693278908729553,
0.012151609174907207,
-0.12904907763004303,
-0.03783198446035385,
-0.038138337433338165,
-0.02932940423488617,
0.0531499907374382,
-0.00147861591540277,
0.11157074570655823,
-0.21249054372310638,
-0.03341162949800491,
0.2887561023235321,
-0.1245042085647583,
-0.0074150338768959045,
0.11911379545927048,
-0.09266603738069534,
0.031663231551647186,
0.11577331274747849,
0.05499362573027611,
-0.08427558094263077,
-0.029001442715525627,
-0.03087724931538105,
-0.05682648345828056,
-0.0018902820302173495,
0.22055773437023163,
0.03045610338449478,
-0.047816768288612366,
-0.026032591238617897,
0.021306723356246948,
-0.030834633857011795,
-0.05885324254631996,
-0.012761545367538929,
-0.004052929580211639,
0.026999132707715034,
0.0036168021615594625,
0.06281037628650665,
-0.03350396081805229,
-0.07350475341081619,
-0.04647087678313255,
-0.08021961152553558,
-0.04341869801282883,
0.06886645406484604,
-0.07360316067934036,
0.043269138783216476,
-0.03272528573870659,
-0.030142730101943016,
-0.04242502152919769,
-0.006541356910020113,
-0.22429537773132324,
0.018893573433160782,
0.06681837886571884,
-0.10952068120241165,
0.09069567918777466,
0.05994955450296402,
-0.009231393225491047,
0.09653928130865097,
-0.049167368561029434,
0.02361147478222847,
0.021629059687256813,
-0.011474666185677052,
-0.0668724998831749,
-0.1460372358560562,
-0.05082467198371887,
-0.0403507836163044,
0.06144614517688751,
-0.09425167739391327,
0.0000594110279052984,
-0.03671656921505928,
0.05747685581445694,
0.016598675400018692,
-0.05998528376221657,
0.025872420519590378,
0.01095591951161623,
-0.06977026164531708,
-0.005036031827330589,
-0.0009585994994267821,
-0.00010146819840883836,
-0.04352186247706413,
0.12237684428691864,
-0.20646755397319794,
-0.1618214100599289,
0.09392116963863373,
0.07097470015287399,
-0.12416433542966843,
-0.05223109573125839,
-0.04465155303478241,
-0.023149654269218445,
-0.11342091858386993,
-0.07434108853340149,
0.20692084729671478,
0.04348564147949219,
0.10756342858076096,
-0.1392299383878708,
-0.019870027899742126,
-0.0014680370222777128,
-0.0397164523601532,
-0.013653818517923355,
0.04298090934753418,
-0.02064887434244156,
-0.1845068633556366,
0.028446519747376442,
-0.10494334250688553,
0.016939079388976097,
0.09084746241569519,
0.06090182811021805,
-0.11403776705265045,
-0.012886173091828823,
-0.01979987323284149,
0.030765973031520844,
0.0791235938668251,
-0.05267256498336792,
0.009877349250018597,
0.06427233666181564,
0.037424225360155106,
0.02102089859545231,
-0.09143329411745071,
0.05903703719377518,
0.028659939765930176,
-0.052036352455616,
-0.06557629257440567,
-0.06815537065267563,
0.042047806084156036,
0.12480081617832184,
0.0055234311148524284,
0.023220544680953026,
-0.018814388662576675,
-0.06495662778615952,
-0.12739697098731995,
0.16396483778953552,
-0.05890380218625069,
-0.26909810304641724,
-0.1373162716627121,
-0.03032062202692032,
0.0021341543179005384,
0.05144748091697693,
-0.019478892907500267,
0.051287103444337845,
-0.06725969910621643,
-0.1385950744152069,
0.08868695050477982,
-0.009835023432970047,
-0.011987149715423584,
-0.13006487488746643,
0.014387132599949837,
0.006134645082056522,
-0.12742295861244202,
0.008034360595047474,
-0.03128336742520332,
-0.037392508238554,
0.008541982620954514,
-0.03286119922995567,
0.07273890823125839,
0.10711762309074402,
-0.004599051084369421,
-0.05361855402588844,
-0.03954705968499184,
0.14464262127876282,
-0.03284953534603119,
0.06959067285060883,
-0.011603213846683502,
-0.10479134321212769,
0.04936843737959862,
0.11803920567035675,
-0.018970873206853867,
-0.05315152183175087,
0.06034436076879501,
0.04131977632641792,
-0.022621579468250275,
-0.21847084164619446,
-0.026837101206183434,
-0.016416147351264954,
-0.027101784944534302,
0.13367611169815063,
0.014623882248997688,
-0.038059767335653305,
0.031800780445337296,
-0.10709075629711151,
0.02695436403155327,
0.07391563802957535,
0.06901706010103226,
-0.06098800525069237,
-0.021991239860653877,
0.08350952714681625,
-0.02000892348587513,
-0.019700337201356888,
0.08680778741836548,
0.0006556897424161434,
0.16186313331127167,
-0.11347860842943192,
0.15478728711605072,
0.09276020526885986,
0.027994008734822273,
0.044701118022203445,
0.1150004118680954,
-0.04535016790032387,
0.051790833473205566,
-0.08304939419031143,
-0.04934512823820114,
-0.050098419189453125,
0.03528266400098801,
0.029769785702228546,
0.07579799741506577,
-0.052996277809143066,
-0.11715926975011826,
0.03653961792588234,
0.16777440905570984,
0.10774384438991547,
-0.16344211995601654,
-0.03974771127104759,
0.043166182935237885,
-0.08795370906591415,
-0.06475978344678879,
0.017271898686885834,
0.08886674046516418,
-0.12857232987880707,
0.07107313722372055,
-0.012279133312404156,
0.06862197816371918,
-0.14567838609218597,
0.008307872340083122,
-0.1057310700416565,
0.07199298590421677,
-0.059821806848049164,
0.07354800403118134,
-0.2523377239704132,
0.1480449140071869,
0.029278766363859177,
0.046960316598415375,
-0.1161574125289917,
-0.012258762493729591,
0.007099934387952089,
-0.03736090660095215,
0.1346435844898224,
-0.011965515092015266,
0.04737662896513939,
-0.04561994597315788,
-0.02791512757539749,
0.013306288979947567,
0.04906725883483887,
-0.011247959919273853,
0.1294708400964737,
0.02214294858276844,
0.021537411957979202,
-0.011871594935655594,
0.06284411996603012,
-0.07823477685451508,
-0.1531103402376175,
0.03490152955055237,
-0.09112682938575745,
-0.02989887073636055,
-0.06713643670082092,
-0.04689159616827965,
-0.013206125237047672,
0.1397096812725067,
-0.13260264694690704,
-0.07730897516012192,
-0.05892613157629967,
0.023753371089696884,
0.1288910210132599,
-0.05707046017050743,
-0.0065266904421150684,
-0.011924567632377148,
0.18561558425426483,
-0.11201730370521545,
-0.04664718732237816,
0.03598565608263016,
-0.04806000739336014,
-0.12544561922550201,
-0.09703367203474045,
0.10797380656003952,
0.14080387353897095,
0.07738269865512848,
0.01028788648545742,
0.020194003358483315,
0.05605875700712204,
-0.08630188554525375,
-0.03633732348680496,
0.06043688952922821,
0.11618803441524506,
0.1350483000278473,
-0.09311911463737488,
-0.10732198506593704,
-0.13323450088500977,
0.0014238242292776704,
0.06132466718554497,
0.24454368650913239,
-0.029885219410061836,
0.10350494086742401,
0.19199854135513306,
-0.11905992031097412,
-0.1792500913143158,
-0.029753724113106728,
0.02973845787346363,
0.052833449095487595,
0.06861106306314468,
-0.13830724358558655,
-0.04502812400460243,
0.0682298094034195,
0.01853797398507595,
0.0099477618932724,
-0.24628637731075287,
-0.13117964565753937,
0.13556157052516937,
0.07130793482065201,
0.03451404348015785,
-0.07150544971227646,
-0.04407145082950592,
-0.07791472971439362,
-0.03575357422232628,
0.10906948894262314,
-0.02838156186044216,
0.1106373593211174,
0.030058609321713448,
-0.041935671120882034,
0.03669781610369682,
-0.050746094435453415,
0.12124648690223694,
0.02114470675587654,
0.07423043996095657,
-0.05929956212639809,
-0.02913929522037506,
0.059386126697063446,
-0.013863029889762402,
0.11666442453861237,
0.06865528970956802,
0.044926028698682785,
0.037893135100603104,
-0.07785578817129135,
-0.10327507555484772,
-0.0019775128457695246,
-0.05999559536576271,
-0.05714927241206169,
-0.06292325258255005,
0.07522327452898026,
0.07298492640256882,
-0.013843742199242115,
-0.025743581354618073,
-0.08026545494794846,
0.03224881738424301,
0.15422138571739197,
0.126302108168602,
0.038539718836545944,
-0.06805922091007233,
0.032652441412210464,
-0.01624363660812378,
0.043315667659044266,
0.027665115892887115,
0.04779858514666557,
0.058537695556879044,
0.01836579479277134,
0.17209415137767792,
0.030369240790605545,
-0.19224762916564941,
-0.015309935435652733,
0.007199964951723814,
-0.1499377340078354,
-0.12202983349561691,
0.0412365160882473,
-0.020976318046450615,
-0.14466045796871185,
-0.09089508652687073,
0.09386333078145981,
-0.030494432896375656,
-0.04073953256011009,
0.0000014869066262690467,
0.05606663227081299,
0.020301882177591324,
0.1554202288389206,
0.0380910225212574,
0.03267194703221321,
-0.07050129771232605,
0.12917277216911316,
0.1080310270190239,
-0.07727793604135513,
0.009196057915687561,
0.036570239812135696,
-0.08822621405124664,
0.008093983866274357,
-0.06690805405378342,
0.06189807131886482,
0.06148267537355423,
-0.026174969971179962,
-0.07270960509777069,
-0.08251921087503433,
0.05111973360180855,
0.13059431314468384,
0.02831416204571724,
0.0931294783949852,
-0.008998940698802471,
-0.017426909878849983,
-0.062390655279159546,
0.06223183870315552,
0.08610383421182632,
0.05155526474118233,
0.05386533960700035,
0.21161870658397675,
0.01754603534936905,
-0.0008473478956148028,
-0.0185755155980587,
-0.030310701578855515,
-0.0673985630273819,
0.027077218517661095,
-0.10171141475439072,
0.06570827960968018,
-0.14930671453475952,
-0.0373384915292263,
0.001803837949410081,
0.025335127487778664,
0.028305616229772568,
-0.014931430108845234,
-0.005732501856982708,
-0.004755680914968252,
-0.037227291613817215,
0.036633752286434174,
-0.0978674367070198,
-0.030047260224819183,
0.07612080127000809,
-0.08031093329191208,
0.07591278105974197,
-0.014592996798455715,
-0.0525767058134079,
0.022924328222870827,
-0.12176429480314255,
0.003323192708194256,
0.006895356345921755,
0.016902783885598183,
-0.018104953691363335,
-0.15045194327831268,
0.004252235405147076,
-0.014975294470787048,
-0.007359437644481659,
-0.0016512902220711112,
0.04084651917219162,
-0.0976385623216629,
0.029271483421325684,
0.08308088779449463,
-0.007982681505382061,
-0.0647464394569397,
0.06459304690361023,
0.06523635983467102,
-0.008074811659753323,
0.09949183464050293,
-0.04302487522363663,
0.0344914011657238,
-0.13483694195747375,
0.010352096520364285,
-0.013102401047945023,
-0.0053141675889492035,
0.07902097702026367,
-0.011837627738714218,
0.02941419743001461,
-0.011138207279145718,
0.21092770993709564,
-0.015221391804516315,
-0.04695099964737892,
0.030199825763702393,
-0.010823419317603111,
0.015754438936710358,
0.03566809371113777,
0.04034971445798874,
-0.027747124433517456,
-0.08379903435707092,
-0.062405776232481,
0.033414047211408615,
-0.019276486709713936,
0.07288164645433426,
0.18978798389434814,
0.05573635548353195,
0.23171480000019073,
0.01641155034303665,
0.0049658408388495445,
-0.027942363172769547,
0.046177882701158524,
0.027775391936302185,
0.0854891687631607,
0.001001353026367724,
0.037870779633522034,
0.051739174872636795,
0.14105206727981567,
-0.13766814768314362,
0.14423757791519165,
0.04430915787816048,
-0.08860985189676285,
-0.07862783223390579,
-0.22814632952213287,
-0.012506701052188873,
0.12403731793165207,
-0.03738290071487427,
-0.13630396127700806,
0.04608446732163429,
0.08684825152158737,
0.013442832045257092,
-0.01925535313785076,
0.05538036301732063,
-0.039290301501750946,
-0.16033582389354706,
0.05124308168888092,
0.013370508328080177,
0.03407616540789604,
0.05684637650847435,
-0.0007511128205806017,
0.07832619547843933,
0.027408581227064133,
0.06233390048146248,
0.06990674138069153,
0.09403913468122482,
0.003275872441008687,
-0.03866112604737282,
-0.065632663667202,
0.016364770010113716,
-0.03484521061182022,
0.0998750627040863,
0.21990175545215607,
0.07872176915407181,
-0.037480175495147705,
0.01058899238705635,
0.1346210241317749,
-0.015653014183044434,
-0.08774309605360031,
-0.132090225815773,
0.15702278912067413,
0.05003445968031883,
0.01664142869412899,
0.07277204841375351,
-0.10729563236236572,
0.03799779713153839,
0.17280200123786926,
0.15267829596996307,
-0.0364668183028698,
0.002161880023777485,
0.022381210699677467,
0.005735966842621565,
0.07365930080413818,
0.08721531927585602,
-0.020308881998062134,
0.24649855494499207,
-0.037787482142448425,
0.11731976270675659,
-0.01997365802526474,
0.02095601335167885,
0.0076467981562018394,
0.13439799845218658,
-0.015799399465322495,
0.012783323414623737,
-0.08381171524524689,
0.030766766518354416,
-0.062618188560009,
-0.2876201868057251,
-0.06433761864900589,
0.002800369169563055,
-0.09939788281917572,
0.010608302429318428,
-0.06329905986785889,
0.04343518614768982,
0.08754436671733856,
0.03010663017630577,
0.04264776036143303,
0.12533612549304962,
0.016878891736268997,
-0.05404224991798401,
-0.08043613284826279,
0.07647649943828583,
0.0053297169506549835,
0.1741958111524582,
0.020660262554883957,
0.10766970366239548,
0.05761776491999626,
0.0016626755241304636,
-0.08187218010425568,
0.07403214275836945,
0.008556034415960312,
0.08938657492399216,
0.04504324868321419,
0.16030846536159515,
0.028005201369524002,
0.019380003213882446,
0.029580414295196533,
-0.05910484492778778,
0.09289933741092682,
-0.0714201107621193,
-0.07186582684516907,
-0.10843987762928009,
0.07753555476665497,
-0.03879827260971069,
0.1114635244011879,
0.14623044431209564,
-0.007502343039959669,
0.025143727660179138,
-0.036586128175258636,
-0.05959496274590492,
-0.01492289174348116,
0.10201340913772583,
0.018195124343037605,
-0.13857904076576233,
0.009945523925125599,
-0.04323577880859375,
0.013436811976134777,
-0.3094448149204254,
-0.011262495070695877,
0.058414459228515625,
-0.10266346484422684,
-0.013855483382940292,
0.06595797091722488,
-0.011465640738606453,
0.07843321561813354,
-0.06162434071302414,
0.005893168039619923,
0.009385557845234871,
0.07883746922016144,
-0.12367086112499237,
-0.09436999261379242
] |
null | null | transformers |
# Bert-base-chinese
## Table of Contents
- [Model Details](#model-details)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation)
- [How to Get Started With the Model](#how-to-get-started-with-the-model)
## Model Details
### Model Description
This model has been pre-trained for Chinese, training and random input masking has been applied independently to word pieces (as in the original BERT paper).
- **Developed by:** HuggingFace team
- **Model Type:** Fill-Mask
- **Language(s):** Chinese
- **License:** [More Information needed]
- **Parent Model:** See the [BERT base uncased model](https://huggingface.co/bert-base-uncased) for more information about the BERT base model.
### Model Sources
- **Paper:** [BERT](https://arxiv.org/abs/1810.04805)
## Uses
#### Direct Use
This model can be used for masked language modeling
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Training
#### Training Procedure
* **type_vocab_size:** 2
* **vocab_size:** 21128
* **num_hidden_layers:** 12
#### Training Data
[More Information Needed]
## Evaluation
#### Results
[More Information Needed]
## How to Get Started With the Model
```python
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("bert-base-chinese")
model = AutoModelForMaskedLM.from_pretrained("bert-base-chinese")
```
| {"language": "zh"} | fill-mask | google-bert/bert-base-chinese | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"zh",
"arxiv:1810.04805",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1810.04805"
] | [
"zh"
] | TAGS
#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #zh #arxiv-1810.04805 #autotrain_compatible #endpoints_compatible #has_space #region-us
|
# Bert-base-chinese
## Table of Contents
- Model Details
- Uses
- Risks, Limitations and Biases
- Training
- Evaluation
- How to Get Started With the Model
## Model Details
### Model Description
This model has been pre-trained for Chinese, training and random input masking has been applied independently to word pieces (as in the original BERT paper).
- Developed by: HuggingFace team
- Model Type: Fill-Mask
- Language(s): Chinese
- License: [More Information needed]
- Parent Model: See the BERT base uncased model for more information about the BERT base model.
### Model Sources
- Paper: BERT
## Uses
#### Direct Use
This model can be used for masked language modeling
## Risks, Limitations and Biases
CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
## Training
#### Training Procedure
* type_vocab_size: 2
* vocab_size: 21128
* num_hidden_layers: 12
#### Training Data
## Evaluation
#### Results
## How to Get Started With the Model
| [
"# Bert-base-chinese",
"## Table of Contents\n- Model Details\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- How to Get Started With the Model",
"## Model Details",
"### Model Description\n\nThis model has been pre-trained for Chinese, training and random input masking has been applied independently to word pieces (as in the original BERT paper).\n\n- Developed by: HuggingFace team\n- Model Type: Fill-Mask\n- Language(s): Chinese\n- License: [More Information needed]\n- Parent Model: See the BERT base uncased model for more information about the BERT base model.",
"### Model Sources\n- Paper: BERT",
"## Uses",
"#### Direct Use\n\nThis model can be used for masked language modeling",
"## Risks, Limitations and Biases\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Training",
"#### Training Procedure\n* type_vocab_size: 2\n* vocab_size: 21128\n* num_hidden_layers: 12",
"#### Training Data",
"## Evaluation",
"#### Results",
"## How to Get Started With the Model"
] | [
"TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #zh #arxiv-1810.04805 #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"# Bert-base-chinese",
"## Table of Contents\n- Model Details\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- How to Get Started With the Model",
"## Model Details",
"### Model Description\n\nThis model has been pre-trained for Chinese, training and random input masking has been applied independently to word pieces (as in the original BERT paper).\n\n- Developed by: HuggingFace team\n- Model Type: Fill-Mask\n- Language(s): Chinese\n- License: [More Information needed]\n- Parent Model: See the BERT base uncased model for more information about the BERT base model.",
"### Model Sources\n- Paper: BERT",
"## Uses",
"#### Direct Use\n\nThis model can be used for masked language modeling",
"## Risks, Limitations and Biases\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Training",
"#### Training Procedure\n* type_vocab_size: 2\n* vocab_size: 21128\n* num_hidden_layers: 12",
"#### Training Data",
"## Evaluation",
"#### Results",
"## How to Get Started With the Model"
] | [
62,
7,
35,
3,
93,
10,
3,
15,
85,
2,
32,
4,
3,
3,
9
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #zh #arxiv-1810.04805 #autotrain_compatible #endpoints_compatible #has_space #region-us \n# Bert-base-chinese## Table of Contents\n- Model Details\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- How to Get Started With the Model## Model Details### Model Description\n\nThis model has been pre-trained for Chinese, training and random input masking has been applied independently to word pieces (as in the original BERT paper).\n\n- Developed by: HuggingFace team\n- Model Type: Fill-Mask\n- Language(s): Chinese\n- License: [More Information needed]\n- Parent Model: See the BERT base uncased model for more information about the BERT base model.### Model Sources\n- Paper: BERT## Uses#### Direct Use\n\nThis model can be used for masked language modeling## Risks, Limitations and Biases\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).## Training#### Training Procedure\n* type_vocab_size: 2\n* vocab_size: 21128\n* num_hidden_layers: 12#### Training Data## Evaluation#### Results## How to Get Started With the Model"
] | [
-0.036715470254421234,
0.161798894405365,
-0.0009507219074293971,
0.015533071011304855,
0.07134648412466049,
-0.027065079659223557,
0.1966761201620102,
0.09668847918510437,
0.08301206678152084,
0.050030071288347244,
0.032874319702386856,
-0.00017014869081322104,
0.09709126502275467,
0.14489391446113586,
0.025655250996351242,
-0.30023401975631714,
0.042957693338394165,
-0.0008751738932915032,
0.01939927414059639,
0.11443144083023071,
0.11251381784677505,
-0.09574995189905167,
0.0881044790148735,
0.07075273990631104,
-0.055278342217206955,
0.002415372058749199,
-0.06167827919125557,
-0.08367300778627396,
0.12208133935928345,
0.04902423545718193,
0.075166717171669,
0.0036611855030059814,
0.11030570417642593,
-0.21770180761814117,
0.03228463605046272,
0.051347941160202026,
-0.020676737651228905,
0.06744342297315598,
0.13256385922431946,
-0.014756330288946629,
0.19799430668354034,
-0.02831924706697464,
0.08127135038375854,
0.09188614785671234,
-0.07801148295402527,
-0.1563384234905243,
-0.05258731544017792,
0.05340196564793587,
0.09696181118488312,
0.10159499943256378,
-0.06191695109009743,
0.15536247193813324,
-0.06922361999750137,
0.01583627052605152,
0.2128668576478958,
-0.1785709708929062,
-0.0071183317340910435,
0.05922921746969223,
0.04289612919092178,
0.0042777820490300655,
-0.11438370496034622,
0.05288667231798172,
0.0646449401974678,
0.015347648411989212,
0.026523344218730927,
-0.03922170400619507,
0.11376173794269562,
-0.03262536600232124,
-0.1668565571308136,
-0.006839791778475046,
0.1092381402850151,
0.02360863797366619,
-0.08126582950353622,
-0.20674394071102142,
-0.04596562683582306,
0.16936108469963074,
-0.01990291103720665,
-0.057175904512405396,
0.022401273250579834,
-0.03870678320527077,
0.10895441472530365,
-0.11421637237071991,
-0.03931427374482155,
-0.05792924016714096,
0.02974877506494522,
0.14360414445400238,
0.04540637880563736,
0.009631591849029064,
-0.04693186283111572,
0.04538805037736893,
0.021667007356882095,
-0.09179077297449112,
-0.04197727516293526,
-0.06629370152950287,
-0.06405036151409149,
0.011162099428474903,
0.020395252853631973,
-0.042960911989212036,
0.01544121466577053,
0.0906989574432373,
-0.10535826534032822,
0.03705255687236786,
-0.05827151611447334,
0.010771065019071102,
0.09146494418382645,
0.10391257703304291,
-0.13942275941371918,
-0.024955667555332184,
0.02420324645936489,
0.03865460306406021,
0.004109844099730253,
-0.04317617788910866,
-0.07880503684282303,
-0.029552176594734192,
0.008683464489877224,
0.07390028238296509,
0.009735191240906715,
0.059993308037519455,
-0.03998928889632225,
-0.04779360815882683,
0.07512947171926498,
-0.11133427917957306,
-0.015451143495738506,
0.049634069204330444,
-0.02655719593167305,
-0.04065103083848953,
0.025231163948774338,
0.008362576365470886,
-0.044631876051425934,
0.04143521934747696,
-0.10717988759279251,
-0.01904881000518799,
-0.08123401552438736,
-0.14878131449222565,
0.014962265267968178,
-0.003594141686335206,
-0.05505232885479927,
-0.08447548002004623,
-0.14427241683006287,
-0.05588649585843086,
-0.0069707417860627174,
-0.052498769015073776,
-0.0019480015616863966,
-0.041649241000413895,
-0.05485578998923302,
-0.038734741508960724,
0.03415925055742264,
-0.016139930114150047,
-0.03297495096921921,
0.015419578179717064,
-0.06754093617200851,
0.045628879219293594,
0.11898689717054367,
0.01197511050850153,
-0.09313492476940155,
0.06270131468772888,
-0.13829298317432404,
0.10795006155967712,
-0.09702017903327942,
-0.010407422669231892,
-0.0627983957529068,
-0.07216563820838928,
-0.0098034106194973,
0.06985359638929367,
0.02345135062932968,
0.2103947401046753,
-0.18924522399902344,
-0.04966014251112938,
0.26628318428993225,
-0.13903355598449707,
-0.11098338663578033,
0.1344059705734253,
-0.07209860533475876,
0.08555853366851807,
0.0410139225423336,
0.11292444914579391,
0.035081446170806885,
-0.14491426944732666,
0.02213234454393387,
-0.02697927877306938,
0.03144608438014984,
0.14951007068157196,
0.07515955716371536,
-0.10135439038276672,
-0.029387013986706734,
-0.037523362785577774,
-0.129646435379982,
0.036566320806741714,
-0.033252228051424026,
-0.05249207466840744,
0.02933969534933567,
-0.05419870465993881,
0.13897982239723206,
-0.002876931568607688,
-0.033205438405275345,
0.0018518514698371291,
-0.12080379575490952,
0.013695437461137772,
0.07643158733844757,
-0.038948964327573776,
-0.0002335284516448155,
-0.11388619989156723,
0.09627234935760498,
0.012926488183438778,
0.010165339335799217,
-0.17241841554641724,
-0.07392707467079163,
0.026142865419387817,
-0.13375753164291382,
0.07155579328536987,
0.06824547052383423,
0.005687727592885494,
0.0914020761847496,
-0.03699211776256561,
-0.012629669159650803,
-0.03119119256734848,
0.01578219048678875,
-0.02192225307226181,
-0.15372727811336517,
0.01668563298881054,
-0.052481114864349365,
0.14181829988956451,
-0.20363150537014008,
0.017980214208364487,
0.018261754885315895,
0.08222239464521408,
0.01735001988708973,
-0.022146858274936676,
0.08628983795642853,
0.00485438434407115,
-0.02987394481897354,
-0.049100495874881744,
0.031518738716840744,
-0.030688472092151642,
-0.12273593991994858,
0.14794990420341492,
-0.18883036077022552,
-0.012156127952039242,
0.08158783614635468,
-0.019588908180594444,
-0.12695758044719696,
-0.017392657697200775,
-0.06788802891969681,
0.011897814460098743,
-0.10322390496730804,
-0.040920186787843704,
0.19866104423999786,
0.01507260650396347,
0.08189281076192856,
-0.12838773429393768,
-0.03534639999270439,
-0.021221885457634926,
-0.04846138134598732,
-0.03732295334339142,
0.06095714867115021,
0.05476166680455208,
-0.16466973721981049,
0.08536592870950699,
0.06244177371263504,
0.018184266984462738,
0.19318179786205292,
0.044553376734256744,
-0.05659114569425583,
0.01538969948887825,
-0.026621965691447258,
-0.01969875395298004,
0.11382568627595901,
-0.07188131660223007,
-0.008364604786038399,
0.03892383724451065,
-0.025791717693209648,
0.010719804093241692,
-0.11538228392601013,
0.007670077495276928,
0.007753390818834305,
-0.044882457703351974,
-0.02355821430683136,
0.028927482664585114,
0.003182903863489628,
0.13520663976669312,
0.031229538843035698,
-0.03532937169075012,
-0.024823307991027832,
-0.04816728085279465,
-0.17338261008262634,
0.19311808049678802,
-0.08692795038223267,
-0.2476397156715393,
-0.05483800172805786,
-0.025492548942565918,
-0.03141358867287636,
0.020484618842601776,
-0.0012224429519847035,
-0.10067646950483322,
-0.09270599484443665,
-0.09840240329504013,
0.05405925586819649,
-0.006043511908501387,
-0.09013296663761139,
-0.0004615950456354767,
-0.019479434937238693,
-0.004067596979439259,
-0.1234206035733223,
-0.007773015182465315,
-0.006299722008407116,
-0.057458292692899704,
-0.0013299903366714716,
-0.018420249223709106,
0.10228314250707626,
0.14705760776996613,
0.019871586933732033,
-0.010511839762330055,
-0.04732080549001694,
0.2018594592809677,
-0.12782099843025208,
0.07531431317329407,
0.13938488066196442,
-0.07737036794424057,
0.07885502278804779,
0.11646211892366409,
0.03299174830317497,
-0.07375244051218033,
0.04029243811964989,
0.07495532929897308,
-0.03402383252978325,
-0.2233274281024933,
-0.10962148010730743,
-0.04627849906682968,
-0.011385294608771801,
0.026010915637016296,
0.058804068714380264,
0.09208241105079651,
0.040445782244205475,
-0.08327122777700424,
-0.06212357431650162,
0.07896888256072998,
0.07874684780836105,
0.03516985476016998,
-0.016610046848654747,
0.05383942648768425,
-0.006359035614877939,
-0.050967324525117874,
0.06309625506401062,
-0.0955108255147934,
0.17738643288612366,
0.003998446743935347,
0.09063856303691864,
0.10567004233598709,
0.04535697400569916,
0.08421265333890915,
0.05904202163219452,
-0.022728553041815758,
0.030953051522374153,
-0.040459614247083664,
-0.08027675747871399,
0.023113368079066277,
0.09234360605478287,
0.016987904906272888,
-0.046309348195791245,
-0.002757101086899638,
-0.02774013765156269,
0.06651376187801361,
0.10803122818470001,
0.0475439615547657,
-0.1293107122182846,
-0.01836932823061943,
0.052323780953884125,
-0.03639797866344452,
-0.10658258199691772,
0.056423287838697433,
0.07462579756975174,
-0.2392280101776123,
0.11072076112031937,
-0.03490542992949486,
0.11752594262361526,
-0.03607912361621857,
0.012825354002416134,
-0.056575194001197815,
0.05963651463389397,
-0.06484895944595337,
0.09445986151695251,
-0.24205948412418365,
0.20773915946483612,
0.00436348607763648,
0.005884494632482529,
-0.12816132605075836,
-0.0015405621379613876,
0.096287302672863,
0.017844755202531815,
0.1878845989704132,
0.012474004179239273,
0.06252400577068329,
-0.04341244325041771,
-0.021053940057754517,
0.011905903927981853,
0.052953872829675674,
-0.019648447632789612,
0.06367792934179306,
-0.01232586707919836,
-0.021970421075820923,
-0.02361854538321495,
0.015921490266919136,
-0.14565765857696533,
-0.12349750101566315,
0.03646377474069595,
-0.1143404170870781,
0.011531436815857887,
-0.06903206557035446,
-0.07669129222631454,
-0.052530478686094284,
0.12071028351783752,
-0.025833088904619217,
-0.1013420820236206,
-0.12759879231452942,
0.0011297264136373997,
0.08761836588382721,
-0.06062924116849899,
0.050785817205905914,
-0.002982409205287695,
0.20163394510746002,
-0.07661300897598267,
-0.02801734395325184,
0.05263983830809593,
-0.08653189241886139,
-0.15956692397594452,
-0.02619313634932041,
0.0768178328871727,
0.11464644223451614,
0.08287198096513748,
0.034977130591869354,
0.022974273189902306,
0.04495907574892044,
-0.14408574998378754,
0.010036984458565712,
0.14847369492053986,
0.02198527567088604,
0.08203335851430893,
-0.08274354040622711,
-0.0907253623008728,
-0.1350715011358261,
-0.05074317753314972,
0.09308203309774399,
0.22131893038749695,
-0.036851514130830765,
0.12234847992658615,
0.16280198097229004,
-0.09831418097019196,
-0.27818477153778076,
0.011613141745328903,
0.04211777076125145,
0.028555262833833694,
0.07075972855091095,
-0.17530860006809235,
0.00961019191890955,
-0.04109663516283035,
-0.0239850040525198,
0.02695085108280182,
-0.182289719581604,
-0.15463148057460785,
0.20345017313957214,
0.04944474250078201,
-0.03928147628903389,
-0.09265304356813431,
-0.056473951786756516,
-0.007065792568027973,
-0.05427461862564087,
0.09085361659526825,
-0.012820841744542122,
0.028319593518972397,
0.03758629783987999,
0.01903066411614418,
0.060870181769132614,
-0.03464558348059654,
0.136004239320755,
-0.03178941458463669,
0.02427353337407112,
-0.1090286448597908,
-0.08266087621450424,
0.05949936434626579,
-0.01805388368666172,
0.10449430346488953,
0.03496995195746422,
0.04743092879652977,
-0.07928898185491562,
-0.06935055553913116,
-0.07447459548711777,
0.041034918278455734,
-0.053852640092372894,
-0.09503694623708725,
-0.0734470933675766,
0.11620063334703445,
0.07403159886598587,
-0.024897394701838493,
-0.0006196577451191843,
-0.1055726632475853,
0.0689227283000946,
0.008227176032960415,
0.23825494945049286,
0.06014811247587204,
-0.0003845318278763443,
-0.0036341717932373285,
-0.02744707278907299,
0.054774291813373566,
-0.06922703236341476,
0.022050224244594574,
0.06956302374601364,
0.0511937215924263,
0.14896173775196075,
0.025516079738736153,
-0.1667260080575943,
0.010240972973406315,
0.012639686465263367,
-0.12016983330249786,
-0.2414410412311554,
-0.06962291151285172,
-0.006672488991171122,
-0.09282773733139038,
-0.09517516195774078,
0.07189328968524933,
-0.04190227389335632,
-0.041180405765771866,
0.02747575379908085,
0.05475423112511635,
-0.008312579244375229,
0.022046703845262527,
0.0677424967288971,
0.06238112226128578,
-0.06831570714712143,
0.05309247970581055,
0.04953787103295326,
0.017440060153603554,
0.08176041394472122,
0.08472063392400742,
-0.0920768603682518,
-0.01870081014931202,
-0.008240976370871067,
0.26506978273391724,
-0.08659444004297256,
-0.06505178660154343,
-0.029207104817032814,
-0.11803597211837769,
-0.036217428743839264,
0.19866082072257996,
0.028368527069687843,
-0.022910242900252342,
0.00016664386203046888,
-0.02554324083030224,
-0.05149630829691887,
0.09946377575397491,
0.038577549159526825,
-0.011743826791644096,
-0.051345519721508026,
0.10944953560829163,
0.06028193235397339,
0.10377530753612518,
-0.05493708327412605,
-0.011494312435388565,
-0.12195177376270294,
0.001549139036796987,
-0.2236367166042328,
0.01528802327811718,
-0.08941338956356049,
-0.009438281878829002,
-0.04322546347975731,
-0.06166829541325569,
-0.0036519148852676153,
0.009076671674847603,
-0.07830459624528885,
-0.012243125587701797,
0.011049621738493443,
0.04812818393111229,
-0.14748609066009521,
-0.008240514434874058,
0.10399053990840912,
-0.07886012643575668,
0.0768716037273407,
-0.00418880907818675,
-0.04236440733075142,
0.05512705817818642,
-0.15155771374702454,
0.007866145111620426,
0.011303817853331566,
0.02243271842598915,
0.03025495447218418,
-0.12794072926044464,
-0.0029229784850031137,
-0.030550740659236908,
-0.05028710886836052,
-0.012265278957784176,
0.00417988421395421,
-0.03275948390364647,
0.050233691930770874,
0.0011413110187277198,
-0.0592590756714344,
-0.03487691283226013,
0.07894200831651688,
0.0585554875433445,
0.0073632667772471905,
0.049622081220149994,
-0.04974593222141266,
0.13006609678268433,
-0.12261778861284256,
-0.014107492752373219,
-0.013782029040157795,
0.03642772510647774,
0.05455350875854492,
-0.04448316991329193,
0.06203398481011391,
-0.026299087330698967,
0.24203836917877197,
0.033255234360694885,
0.027650466188788414,
0.06073480844497681,
0.044162821024656296,
0.04921083524823189,
0.0017492639599367976,
0.0686272457242012,
-0.03591310977935791,
-0.007855219766497612,
0.005845724605023861,
0.009842483326792717,
-0.05348333343863487,
-0.055972930043935776,
0.14607064425945282,
0.06255718320608139,
0.04596945643424988,
-0.01289078127592802,
0.05172805115580559,
-0.09494076669216156,
-0.05188971012830734,
-0.04435654729604721,
0.03329421952366829,
-0.015305097214877605,
-0.09164465218782425,
0.1748645156621933,
0.1919964998960495,
-0.15239232778549194,
0.13265268504619598,
0.01831211894750595,
-0.07865563780069351,
-0.1717662811279297,
-0.16501423716545105,
-0.04657382145524025,
-0.027880875393748283,
0.021324479952454567,
-0.11494442075490952,
0.033024054020643234,
0.04364780709147453,
0.016028042882680893,
-0.046276576817035675,
0.1711195856332779,
-0.06861306726932526,
-0.10228672623634338,
0.07295230031013489,
0.021111635491251945,
0.05274014174938202,
-0.019270870834589005,
0.002636602381244302,
0.027917908504605293,
0.026106424629688263,
0.022135255858302116,
0.016914771869778633,
-0.06861680746078491,
0.061647385358810425,
-0.05294029787182808,
-0.062032587826251984,
0.011064982041716576,
-0.03985006362199783,
0.05211058631539345,
0.17030653357505798,
0.060125257819890976,
-0.013123629614710808,
-0.031430017203092575,
0.17247147858142853,
-0.01975433900952339,
-0.05592432618141174,
-0.13399337232112885,
0.20663674175739288,
-0.022478848695755005,
0.0019822996109724045,
0.06792492419481277,
-0.11238863319158554,
0.030630012974143028,
0.2431126981973648,
0.21786430478096008,
-0.10352525115013123,
0.01388909388333559,
-0.01451343297958374,
0.024294888600707054,
0.022459452971816063,
0.047811370342969894,
0.0366203598678112,
0.32171177864074707,
-0.06802431493997574,
0.062438808381557465,
-0.0497567355632782,
-0.03754696249961853,
-0.05777314677834511,
0.1341845542192459,
0.08575771749019623,
-0.027663759887218475,
-0.05907751992344856,
0.11022365093231201,
-0.11362496763467789,
-0.2663077414035797,
-0.03893290087580681,
-0.07497300207614899,
-0.08616761118173599,
-0.0014605544274672866,
-0.13817013800144196,
0.06892334669828415,
0.08043540269136429,
0.022574834525585175,
0.004594085272401571,
0.10593962669372559,
0.04751485213637352,
-0.043828826397657394,
-0.0640149712562561,
0.0902765691280365,
-0.08063808083534241,
0.25478610396385193,
0.02655733935534954,
0.024071143940091133,
0.10336582362651825,
-0.018225999549031258,
-0.07399846613407135,
0.08405028283596039,
0.04823518544435501,
-0.053242672234773636,
-0.0019225181313231587,
0.13237090408802032,
-0.022810358554124832,
0.0045008170418441296,
0.050272177904844284,
-0.07193636149168015,
0.10216764360666275,
-0.004353023134171963,
-0.0994521901011467,
-0.08500037342309952,
0.16292840242385864,
-0.1331460326910019,
0.13155046105384827,
0.1663203090429306,
-0.050824154168367386,
0.006062099244445562,
-0.03322584554553032,
0.03771344572305679,
-0.042676880955696106,
-0.01931091398000717,
-0.0029884313698858023,
-0.13368451595306396,
0.02537626586854458,
-0.04507431387901306,
0.018944159150123596,
-0.2735366225242615,
-0.014085810631513596,
-0.0068662031553685665,
0.009260918945074081,
-0.06584853678941727,
0.03790627419948578,
0.0584072582423687,
0.018277939409017563,
-0.010018720291554928,
-0.09605661779642105,
-0.00013652896450366825,
0.11896032840013504,
-0.11780175566673279,
-0.03285050019621849
] |
null | null | transformers |
<a href="https://huggingface.co/exbert/?model=bert-base-german-cased">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
# German BERT
![bert_image](https://static.tildacdn.com/tild6438-3730-4164-b266-613634323466/german_bert.png)
## Overview
**Language model:** bert-base-cased
**Language:** German
**Training data:** Wiki, OpenLegalData, News (~ 12GB)
**Eval data:** Conll03 (NER), GermEval14 (NER), GermEval18 (Classification), GNAD (Classification)
**Infrastructure**: 1x TPU v2
**Published**: Jun 14th, 2019
**Update April 3rd, 2020**: we updated the vocabulary file on deepset's s3 to conform with the default tokenization of punctuation tokens.
For details see the related [FARM issue](https://github.com/deepset-ai/FARM/issues/60). If you want to use the old vocab we have also uploaded a ["deepset/bert-base-german-cased-oldvocab"](https://huggingface.co/deepset/bert-base-german-cased-oldvocab) model.
## Details
- We trained using Google's Tensorflow code on a single cloud TPU v2 with standard settings.
- We trained 810k steps with a batch size of 1024 for sequence length 128 and 30k steps with sequence length 512. Training took about 9 days.
- As training data we used the latest German Wikipedia dump (6GB of raw txt files), the OpenLegalData dump (2.4 GB) and news articles (3.6 GB).
- We cleaned the data dumps with tailored scripts and segmented sentences with spacy v2.1. To create tensorflow records we used the recommended sentencepiece library for creating the word piece vocabulary and tensorflow scripts to convert the text to data usable by BERT.
See https://deepset.ai/german-bert for more details
## Hyperparameters
```
batch_size = 1024
n_steps = 810_000
max_seq_len = 128 (and 512 later)
learning_rate = 1e-4
lr_schedule = LinearWarmup
num_warmup_steps = 10_000
```
## Performance
During training we monitored the loss and evaluated different model checkpoints on the following German datasets:
- germEval18Fine: Macro f1 score for multiclass sentiment classification
- germEval18coarse: Macro f1 score for binary sentiment classification
- germEval14: Seq f1 score for NER (file names deuutf.\*)
- CONLL03: Seq f1 score for NER
- 10kGNAD: Accuracy for document classification
Even without thorough hyperparameter tuning, we observed quite stable learning especially for our German model. Multiple restarts with different seeds produced quite similar results.
![performancetable](https://thumb.tildacdn.com/tild3162-6462-4566-b663-376630376138/-/format/webp/Screenshot_from_2020.png)
We further evaluated different points during the 9 days of pre-training and were astonished how fast the model converges to the maximally reachable performance. We ran all 5 downstream tasks on 7 different model checkpoints - taken at 0 up to 840k training steps (x-axis in figure below). Most checkpoints are taken from early training where we expected most performance changes. Surprisingly, even a randomly initialized BERT can be trained only on labeled downstream datasets and reach good performance (blue line, GermEval 2018 Coarse task, 795 kB trainset size).
![checkpointseval](https://thumb.tildacdn.com/tild6335-3531-4137-b533-313365663435/-/format/webp/deepset_checkpoints.png)
## 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`
## About us
![deepset logo](https://raw.githubusercontent.com/deepset-ai/FARM/master/docs/img/deepset_logo.png)
We bring NLP to the industry via open source!
Our focus: Industry specific language models & large scale QA systems.
Some of our work:
- [German BERT (aka "bert-base-german-cased")](https://deepset.ai/german-bert)
- [FARM](https://github.com/deepset-ai/FARM)
- [Haystack](https://github.com/deepset-ai/haystack/)
Get in touch:
[Twitter](https://twitter.com/deepset_ai) | [LinkedIn](https://www.linkedin.com/company/deepset-ai/) | [Website](https://deepset.ai)
| {"language": "de", "license": "mit", "tags": ["exbert"], "thumbnail": "https://static.tildacdn.com/tild6438-3730-4164-b266-613634323466/german_bert.png"} | fill-mask | google-bert/bert-base-german-cased | [
"transformers",
"pytorch",
"tf",
"jax",
"onnx",
"safetensors",
"bert",
"fill-mask",
"exbert",
"de",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"de"
] | TAGS
#transformers #pytorch #tf #jax #onnx #safetensors #bert #fill-mask #exbert #de #license-mit #autotrain_compatible #endpoints_compatible #region-us
|
<a href="URL
<img width="300px" src="URL
</a>
# German BERT
!bert_image
## Overview
Language model: bert-base-cased
Language: German
Training data: Wiki, OpenLegalData, News (~ 12GB)
Eval data: Conll03 (NER), GermEval14 (NER), GermEval18 (Classification), GNAD (Classification)
Infrastructure: 1x TPU v2
Published: Jun 14th, 2019
Update April 3rd, 2020: we updated the vocabulary file on deepset's s3 to conform with the default tokenization of punctuation tokens.
For details see the related FARM issue. If you want to use the old vocab we have also uploaded a "deepset/bert-base-german-cased-oldvocab" model.
## Details
- We trained using Google's Tensorflow code on a single cloud TPU v2 with standard settings.
- We trained 810k steps with a batch size of 1024 for sequence length 128 and 30k steps with sequence length 512. Training took about 9 days.
- As training data we used the latest German Wikipedia dump (6GB of raw txt files), the OpenLegalData dump (2.4 GB) and news articles (3.6 GB).
- We cleaned the data dumps with tailored scripts and segmented sentences with spacy v2.1. To create tensorflow records we used the recommended sentencepiece library for creating the word piece vocabulary and tensorflow scripts to convert the text to data usable by BERT.
See URL for more details
## Hyperparameters
## Performance
During training we monitored the loss and evaluated different model checkpoints on the following German datasets:
- germEval18Fine: Macro f1 score for multiclass sentiment classification
- germEval18coarse: Macro f1 score for binary sentiment classification
- germEval14: Seq f1 score for NER (file names deuutf.\*)
- CONLL03: Seq f1 score for NER
- 10kGNAD: Accuracy for document classification
Even without thorough hyperparameter tuning, we observed quite stable learning especially for our German model. Multiple restarts with different seeds produced quite similar results.
!performancetable
We further evaluated different points during the 9 days of pre-training and were astonished how fast the model converges to the maximally reachable performance. We ran all 5 downstream tasks on 7 different model checkpoints - taken at 0 up to 840k training steps (x-axis in figure below). Most checkpoints are taken from early training where we expected most performance changes. Surprisingly, even a randomly initialized BERT can be trained only on labeled downstream datasets and reach good performance (blue line, GermEval 2018 Coarse task, 795 kB trainset size).
!checkpointseval
## Authors
- Branden Chan: 'URL [at] URL'
- Timo Möller: 'timo.moeller [at] URL'
- Malte Pietsch: 'malte.pietsch [at] URL'
- Tanay Soni: 'URL [at] URL'
## About us
!deepset logo
We bring NLP to the industry via open source!
Our focus: Industry specific language models & large scale QA systems.
Some of our work:
- German BERT (aka "bert-base-german-cased")
- FARM
- Haystack
Get in touch:
Twitter | LinkedIn | Website
| [
"# German BERT\n!bert_image",
"## Overview\nLanguage model: bert-base-cased \nLanguage: German \nTraining data: Wiki, OpenLegalData, News (~ 12GB) \nEval data: Conll03 (NER), GermEval14 (NER), GermEval18 (Classification), GNAD (Classification) \nInfrastructure: 1x TPU v2 \nPublished: Jun 14th, 2019\n\nUpdate April 3rd, 2020: we updated the vocabulary file on deepset's s3 to conform with the default tokenization of punctuation tokens. \nFor details see the related FARM issue. If you want to use the old vocab we have also uploaded a \"deepset/bert-base-german-cased-oldvocab\" model.",
"## Details\n- We trained using Google's Tensorflow code on a single cloud TPU v2 with standard settings.\n- We trained 810k steps with a batch size of 1024 for sequence length 128 and 30k steps with sequence length 512. Training took about 9 days.\n- As training data we used the latest German Wikipedia dump (6GB of raw txt files), the OpenLegalData dump (2.4 GB) and news articles (3.6 GB).\n- We cleaned the data dumps with tailored scripts and segmented sentences with spacy v2.1. To create tensorflow records we used the recommended sentencepiece library for creating the word piece vocabulary and tensorflow scripts to convert the text to data usable by BERT.\n\n\nSee URL for more details",
"## Hyperparameters",
"## Performance\n\nDuring training we monitored the loss and evaluated different model checkpoints on the following German datasets:\n\n- germEval18Fine: Macro f1 score for multiclass sentiment classification\n- germEval18coarse: Macro f1 score for binary sentiment classification\n- germEval14: Seq f1 score for NER (file names deuutf.\\*)\n- CONLL03: Seq f1 score for NER\n- 10kGNAD: Accuracy for document classification\n\nEven without thorough hyperparameter tuning, we observed quite stable learning especially for our German model. Multiple restarts with different seeds produced quite similar results.\n \n!performancetable \n\nWe further evaluated different points during the 9 days of pre-training and were astonished how fast the model converges to the maximally reachable performance. We ran all 5 downstream tasks on 7 different model checkpoints - taken at 0 up to 840k training steps (x-axis in figure below). Most checkpoints are taken from early training where we expected most performance changes. Surprisingly, even a randomly initialized BERT can be trained only on labeled downstream datasets and reach good performance (blue line, GermEval 2018 Coarse task, 795 kB trainset size).\n\n!checkpointseval",
"## Authors\n- Branden Chan: 'URL [at] URL'\n- Timo Möller: 'timo.moeller [at] URL'\n- Malte Pietsch: 'malte.pietsch [at] URL'\n- Tanay Soni: 'URL [at] URL'",
"## About us\n!deepset logo\n\nWe bring NLP to the industry via open source! \nOur focus: Industry specific language models & large scale QA systems. \n \nSome of our work: \n- German BERT (aka \"bert-base-german-cased\")\n- FARM\n- Haystack\n\nGet in touch:\nTwitter | LinkedIn | Website"
] | [
"TAGS\n#transformers #pytorch #tf #jax #onnx #safetensors #bert #fill-mask #exbert #de #license-mit #autotrain_compatible #endpoints_compatible #region-us \n",
"# German BERT\n!bert_image",
"## Overview\nLanguage model: bert-base-cased \nLanguage: German \nTraining data: Wiki, OpenLegalData, News (~ 12GB) \nEval data: Conll03 (NER), GermEval14 (NER), GermEval18 (Classification), GNAD (Classification) \nInfrastructure: 1x TPU v2 \nPublished: Jun 14th, 2019\n\nUpdate April 3rd, 2020: we updated the vocabulary file on deepset's s3 to conform with the default tokenization of punctuation tokens. \nFor details see the related FARM issue. If you want to use the old vocab we have also uploaded a \"deepset/bert-base-german-cased-oldvocab\" model.",
"## Details\n- We trained using Google's Tensorflow code on a single cloud TPU v2 with standard settings.\n- We trained 810k steps with a batch size of 1024 for sequence length 128 and 30k steps with sequence length 512. Training took about 9 days.\n- As training data we used the latest German Wikipedia dump (6GB of raw txt files), the OpenLegalData dump (2.4 GB) and news articles (3.6 GB).\n- We cleaned the data dumps with tailored scripts and segmented sentences with spacy v2.1. To create tensorflow records we used the recommended sentencepiece library for creating the word piece vocabulary and tensorflow scripts to convert the text to data usable by BERT.\n\n\nSee URL for more details",
"## Hyperparameters",
"## Performance\n\nDuring training we monitored the loss and evaluated different model checkpoints on the following German datasets:\n\n- germEval18Fine: Macro f1 score for multiclass sentiment classification\n- germEval18coarse: Macro f1 score for binary sentiment classification\n- germEval14: Seq f1 score for NER (file names deuutf.\\*)\n- CONLL03: Seq f1 score for NER\n- 10kGNAD: Accuracy for document classification\n\nEven without thorough hyperparameter tuning, we observed quite stable learning especially for our German model. Multiple restarts with different seeds produced quite similar results.\n \n!performancetable \n\nWe further evaluated different points during the 9 days of pre-training and were astonished how fast the model converges to the maximally reachable performance. We ran all 5 downstream tasks on 7 different model checkpoints - taken at 0 up to 840k training steps (x-axis in figure below). Most checkpoints are taken from early training where we expected most performance changes. Surprisingly, even a randomly initialized BERT can be trained only on labeled downstream datasets and reach good performance (blue line, GermEval 2018 Coarse task, 795 kB trainset size).\n\n!checkpointseval",
"## Authors\n- Branden Chan: 'URL [at] URL'\n- Timo Möller: 'timo.moeller [at] URL'\n- Malte Pietsch: 'malte.pietsch [at] URL'\n- Tanay Soni: 'URL [at] URL'",
"## About us\n!deepset logo\n\nWe bring NLP to the industry via open source! \nOur focus: Industry specific language models & large scale QA systems. \n \nSome of our work: \n- German BERT (aka \"bert-base-german-cased\")\n- FARM\n- Haystack\n\nGet in touch:\nTwitter | LinkedIn | Website"
] | [
61,
8,
160,
172,
5,
293,
60,
72
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #onnx #safetensors #bert #fill-mask #exbert #de #license-mit #autotrain_compatible #endpoints_compatible #region-us \n# German BERT\n!bert_image## Overview\nLanguage model: bert-base-cased \nLanguage: German \nTraining data: Wiki, OpenLegalData, News (~ 12GB) \nEval data: Conll03 (NER), GermEval14 (NER), GermEval18 (Classification), GNAD (Classification) \nInfrastructure: 1x TPU v2 \nPublished: Jun 14th, 2019\n\nUpdate April 3rd, 2020: we updated the vocabulary file on deepset's s3 to conform with the default tokenization of punctuation tokens. \nFor details see the related FARM issue. If you want to use the old vocab we have also uploaded a \"deepset/bert-base-german-cased-oldvocab\" model.## Details\n- We trained using Google's Tensorflow code on a single cloud TPU v2 with standard settings.\n- We trained 810k steps with a batch size of 1024 for sequence length 128 and 30k steps with sequence length 512. Training took about 9 days.\n- As training data we used the latest German Wikipedia dump (6GB of raw txt files), the OpenLegalData dump (2.4 GB) and news articles (3.6 GB).\n- We cleaned the data dumps with tailored scripts and segmented sentences with spacy v2.1. To create tensorflow records we used the recommended sentencepiece library for creating the word piece vocabulary and tensorflow scripts to convert the text to data usable by BERT.\n\n\nSee URL for more details## Hyperparameters"
] | [
-0.08552886545658112,
0.19219432771205902,
-0.001978025073185563,
0.042832840234041214,
0.08677694946527481,
0.0006824457668699324,
0.1282440572977066,
0.15972591936588287,
-0.03025740571320057,
0.09348738938570023,
0.04840712249279022,
-0.1709735095500946,
0.07506290078163147,
0.12204095721244812,
0.0409831777215004,
-0.29529958963394165,
0.015055493451654911,
-0.08390680700540543,
-0.06639187783002853,
0.08527825027704239,
0.1082763522863388,
-0.0865510106086731,
0.06831973046064377,
-0.022107994183897972,
-0.09823725372552872,
0.04618731141090393,
-0.050626084208488464,
-0.07111366838216782,
0.08958252519369125,
0.004657028708606958,
0.05661593750119209,
-0.05083182081580162,
0.06550107151269913,
-0.11065300554037094,
0.009540077298879623,
0.08761811256408691,
0.016758544370532036,
0.06151188164949417,
0.053026627749204636,
0.08344049006700516,
0.06414112448692322,
-0.15304923057556152,
0.006111540831625462,
0.02785070613026619,
-0.0875190943479538,
-0.06890691071748734,
-0.17676693201065063,
0.06265413761138916,
0.06702553480863571,
0.06964142620563507,
-0.01903185062110424,
0.01245124265551567,
-0.052079591900110245,
0.01375978160649538,
0.13398827612400055,
-0.25065723061561584,
-0.06331990659236908,
0.023687543347477913,
0.0500672422349453,
0.041964951902627945,
-0.13560423254966736,
0.00821409560739994,
0.039091937243938446,
0.02120107226073742,
0.07063549011945724,
0.009263936430215836,
0.022788751870393753,
-0.012776248157024384,
-0.10284145921468735,
-0.030792653560638428,
0.12296692281961441,
0.034689269959926605,
-0.07878481596708298,
-0.14873379468917847,
-0.050583478063344955,
-0.10208824276924133,
-0.004646265879273415,
-0.0392085425555706,
0.03532699868083,
-0.018022526055574417,
0.003832451067864895,
-0.12831732630729675,
-0.10016999393701553,
-0.012081560678780079,
-0.004212464205920696,
0.10453125834465027,
0.055803071707487106,
0.017494749277830124,
-0.05357861518859863,
0.08698420226573944,
-0.043898411095142365,
-0.10363989323377609,
-0.040425851941108704,
0.003911405801773071,
-0.07879167795181274,
-0.029059994965791702,
-0.06940760463476181,
-0.1860453486442566,
-0.02854887954890728,
0.1226520761847496,
-0.04687946289777756,
-0.025730988010764122,
0.013155295513570309,
-0.015471194870769978,
-0.006059916689991951,
0.2235950231552124,
-0.032996147871017456,
-0.1189405769109726,
0.029501598328351974,
0.0061101727187633514,
-0.029946260154247284,
0.02621157467365265,
-0.05732230097055435,
-0.04937393218278885,
0.06338869035243988,
0.06664126366376877,
-0.015128717757761478,
0.0322812981903553,
0.028185799717903137,
-0.027744168415665627,
0.10650637745857239,
-0.16514819860458374,
0.04753093421459198,
0.0005634945118799806,
-0.11753317713737488,
0.030307365581393242,
-0.010092591866850853,
-0.08759704232215881,
-0.1039264127612114,
0.03433600813150406,
-0.0518893226981163,
-0.04366456717252731,
-0.12299322336912155,
-0.1330759972333908,
0.06833317875862122,
-0.06745873391628265,
-0.0689866691827774,
-0.053885046392679214,
-0.1888306587934494,
-0.06683333218097687,
0.017530307173728943,
-0.02249571867287159,
-0.0036198801826685667,
-0.03900017589330673,
-0.06322454661130905,
-0.005563522223383188,
0.0019384033512324095,
0.049269065260887146,
-0.018159998580813408,
0.0380321629345417,
-0.09727579355239868,
0.0334012396633625,
-0.003458031453192234,
0.046233076602220535,
-0.0829562172293663,
-0.009860196150839329,
-0.09322184324264526,
0.08357783406972885,
-0.02784261666238308,
-0.023655159398913383,
-0.10969874262809753,
-0.048945024609565735,
-0.08323018997907639,
0.00717606395483017,
0.0549764521420002,
0.10796093940734863,
-0.23345699906349182,
-0.03208581358194351,
0.2017572671175003,
-0.0551086887717247,
-0.006536774802953005,
0.1509944051504135,
-0.009248416870832443,
-0.0020160917192697525,
0.10256516188383102,
0.10499177128076553,
0.1546282023191452,
-0.13734416663646698,
-0.05007590353488922,
-0.049068983644247055,
0.00975002907216549,
0.03723658621311188,
0.04922639578580856,
-0.03324323892593384,
0.14275014400482178,
0.017867308109998703,
-0.06472156196832657,
0.02368738502264023,
-0.017413169145584106,
-0.04671979695558548,
-0.011202845722436905,
-0.03614566847681999,
0.06568119674921036,
-0.027945632115006447,
0.034568414092063904,
-0.053736619651317596,
-0.09674517810344696,
0.09644186496734619,
0.07770896703004837,
-0.05896681547164917,
0.055141568183898926,
-0.03595544397830963,
-0.019017573446035385,
0.06896962970495224,
0.0335540808737278,
-0.08497841656208038,
-0.19570855796337128,
0.06586714833974838,
-0.06012280657887459,
0.032328154891729355,
0.04134402424097061,
0.04584836587309837,
0.0463855117559433,
-0.07432948052883148,
-0.0035716909915208817,
-0.10505490750074387,
-0.05018714442849159,
-0.07908391952514648,
-0.04868480563163757,
-0.07616841793060303,
-0.037952300161123276,
-0.007791925687342882,
-0.06625483185052872,
0.04074987396597862,
0.0644759088754654,
0.05196148157119751,
0.028292745351791382,
-0.06293242424726486,
0.016987064853310585,
0.0036433632485568523,
0.031059585511684418,
-0.08262507617473602,
-0.02510829083621502,
0.0075968410819768906,
-0.0029518932569772005,
0.09260204434394836,
-0.08969388902187347,
-0.07211320847272873,
0.04274091124534607,
0.18428312242031097,
-0.06336347758769989,
0.002445831662043929,
-0.07362591475248337,
-0.045489124953746796,
-0.12259572744369507,
-0.09893499314785004,
0.1414857804775238,
0.022508861497044563,
0.0754428431391716,
-0.08684426546096802,
-0.07331208884716034,
-0.02531583234667778,
-0.0017954165814444423,
-0.040259454399347305,
0.06849349290132523,
-0.048388879746198654,
-0.09146612137556076,
0.08973933756351471,
0.05188337713479996,
0.014047945849597454,
0.24039793014526367,
-0.026782605797052383,
-0.12994898855686188,
-0.00102047563996166,
0.04698754847049713,
-0.008535376749932766,
0.10866007208824158,
0.0009904516628012061,
-0.04190487787127495,
0.013366911560297012,
0.04017080366611481,
0.023641424253582954,
-0.11232461035251617,
0.05247051268815994,
-0.007579099386930466,
-0.07351988554000854,
0.04179466515779495,
0.007505470421165228,
0.013341110199689865,
0.0848546251654625,
0.06289856880903244,
0.02955871820449829,
0.0037879652809351683,
-0.03029303066432476,
-0.0742870569229126,
0.14194925129413605,
-0.11162003874778748,
-0.1861393302679062,
-0.15860699117183685,
0.01576131023466587,
-0.049517422914505005,
0.013178016990423203,
0.005315893329679966,
-0.08207938075065613,
-0.06677207350730896,
-0.05140877515077591,
0.11785846203565598,
0.035103291273117065,
0.025984859094023705,
-0.029240943491458893,
0.015569919720292091,
0.04098263382911682,
-0.13523858785629272,
0.004855723585933447,
-0.011111822910606861,
-0.09655071049928665,
-0.029065683484077454,
0.05207393690943718,
0.009957133792340755,
0.060203202068805695,
-0.07692627608776093,
-0.005673430860042572,
-0.04118530824780464,
0.12952838838100433,
-0.11344099044799805,
0.11728407442569733,
0.15944480895996094,
-0.00145137426443398,
0.052403151988983154,
0.02788332663476467,
0.028493864461779594,
-0.051838770508766174,
0.05032648891210556,
0.09243497997522354,
-0.03817428648471832,
-0.24671998620033264,
-0.06158922612667084,
-0.057915665209293365,
0.0607253722846508,
0.10552860051393509,
0.07162937521934509,
-0.003924424294382334,
-0.012079245410859585,
-0.09663299471139908,
0.03926803171634674,
0.03297974914312363,
0.04775063320994377,
0.023011136800050735,
0.015429255552589893,
0.011959599331021309,
-0.011273656971752644,
0.028094885870814323,
0.10331075638532639,
0.06967321038246155,
0.13243575394153595,
-0.02611301653087139,
0.11748481541872025,
0.027374787256121635,
0.0852738544344902,
0.011152295395731926,
0.059813328087329865,
-0.008095884695649147,
-0.003054359694942832,
-0.010119118727743626,
-0.05937853083014488,
0.02381090447306633,
0.058728691190481186,
0.008426530286669731,
-0.011960688978433609,
-0.057512879371643066,
-0.005606763996183872,
0.06974118202924728,
0.31524887681007385,
0.06750272959470749,
-0.14439016580581665,
-0.1406038999557495,
-0.008611689321696758,
-0.14036066830158234,
-0.07005184888839722,
0.010937516577541828,
0.17841580510139465,
-0.14281190931797028,
-0.011539855971932411,
-0.08163443952798843,
0.07245397567749023,
-0.009899159893393517,
0.011683478020131588,
0.0787980705499649,
0.15382784605026245,
-0.022274265065789223,
0.06880903244018555,
-0.17976310849189758,
0.11386943608522415,
0.004659677390009165,
0.11024277657270432,
-0.0664496049284935,
0.049140699207782745,
0.05000022426247597,
-0.0857326090335846,
0.08045867085456848,
0.027415305376052856,
-0.01656137965619564,
0.05236547440290451,
-0.1371709555387497,
-0.004926460329443216,
0.09487418085336685,
-0.06027888506650925,
0.10314584523439407,
-0.014516633935272694,
-0.015844611451029778,
-0.008157283067703247,
-0.011932138353586197,
-0.06036895141005516,
-0.0698700025677681,
0.009295557625591755,
-0.011784428730607033,
0.030936982482671738,
-0.08576740324497223,
-0.033809687942266464,
-0.10578418523073196,
0.21587525308132172,
-0.02836894802749157,
-0.0451086089015007,
-0.11200843751430511,
0.13349628448486328,
0.13046593964099884,
-0.05942249670624733,
0.06397682428359985,
0.05951172113418579,
0.14146675169467926,
-0.04090053588151932,
-0.09326086938381195,
0.030378514900803566,
-0.05946516990661621,
-0.1400185078382492,
-0.03415679931640625,
0.13943859934806824,
0.06542140245437622,
0.0394270084798336,
-0.026056310161948204,
-0.0019176257774233818,
-0.008753516711294651,
-0.061909958720207214,
0.020365474745631218,
0.05180356651544571,
0.034227076917886734,
0.016364026814699173,
-0.1421184241771698,
-0.08160562813282013,
-0.023955421522259712,
-0.0007209991454146802,
0.06907720118761063,
0.12226194888353348,
-0.05133093520998955,
0.10108332335948944,
0.11046493798494339,
-0.05203591659665108,
-0.27064594626426697,
0.037231799215078354,
0.08742909878492355,
0.10429367423057556,
-0.026836169883608818,
-0.23209501802921295,
0.08005745708942413,
0.1175151914358139,
-0.011778855696320534,
0.07448499649763107,
-0.28432905673980713,
-0.1246490329504013,
0.031640950590372086,
-0.03947354480624199,
0.04929234832525253,
-0.029026105999946594,
-0.028745297342538834,
0.033594608306884766,
0.03968425840139389,
0.060060691088438034,
-0.03755684196949005,
0.09173199534416199,
0.01376301422715187,
0.07365916669368744,
0.032960545271635056,
-0.02310009114444256,
0.07446114718914032,
0.021611899137496948,
0.03557717800140381,
-0.017539778724312782,
-0.0015482227317988873,
0.10325596481561661,
-0.09482157975435257,
0.1385914385318756,
-0.046392425894737244,
0.03467170149087906,
-0.09057090431451797,
-0.008568856865167618,
-0.07811125367879868,
0.08147812634706497,
-0.019488265737891197,
-0.03035471960902214,
-0.06072809919714928,
0.08743725717067719,
0.044962674379348755,
-0.0035449734423309565,
0.03393629565834999,
0.018501844257116318,
-0.03063182905316353,
0.05603894218802452,
0.03719603642821312,
0.07544633746147156,
-0.054356396198272705,
-0.004020951688289642,
0.00884044449776411,
0.09694435447454453,
-0.0808003842830658,
0.022783856838941574,
0.06309586763381958,
0.04399719461798668,
0.09133809804916382,
0.0009435188840143383,
-0.07903027534484863,
0.0014130179770290852,
0.027493031695485115,
-0.1365283727645874,
-0.14816609025001526,
-0.05800565704703331,
-0.10700229555368423,
-0.12989792227745056,
0.015164239332079887,
0.13893991708755493,
-0.08463810384273529,
-0.01926499977707863,
0.007287053856998682,
0.07432379573583603,
-0.027491837739944458,
0.14612840116024017,
0.004523556213825941,
0.036400020122528076,
-0.05892946198582649,
0.17444169521331787,
0.07203101366758347,
-0.09081069380044937,
0.05178585648536682,
0.1601812243461609,
-0.06205747649073601,
-0.02205314300954342,
-0.0035296627320349216,
-0.01008237898349762,
-0.00022851410903967917,
-0.03566872701048851,
-0.03813255950808525,
-0.040373366326093674,
0.035940125584602356,
0.08734599500894547,
0.013671975582838058,
0.08828680217266083,
-0.06492659449577332,
0.051388271152973175,
-0.0940295085310936,
0.08653460443019867,
0.07811310142278671,
0.03544619306921959,
-0.019455786794424057,
0.15661846101284027,
-0.042909443378448486,
0.031308192759752274,
-0.02684932015836239,
0.010615392588078976,
-0.0510556623339653,
-0.04070483520627022,
-0.048700492829084396,
-0.06200823560357094,
0.0028276380617171526,
-0.03162959963083267,
-0.028088277205824852,
-0.016054905951023102,
0.010934912599623203,
0.06798287481069565,
-0.06179848313331604,
-0.08394915610551834,
-0.05680827796459198,
0.08050588518381119,
-0.10965480655431747,
0.017784247174859047,
0.023211555555462837,
-0.08482981473207474,
0.10748003423213959,
0.06595923006534576,
0.004315384663641453,
0.04077981412410736,
-0.04791364073753357,
-0.029328709468245506,
0.03217673301696777,
0.00028046511579304934,
0.03777603432536125,
-0.05807644873857498,
0.011807858943939209,
0.0021066302433609962,
-0.025235174223780632,
0.004044866189360619,
-0.008472808636724949,
-0.09913115948438644,
0.023223109543323517,
-0.023207273334264755,
0.01934070512652397,
-0.06634350121021271,
0.05252371355891228,
0.04730422422289848,
0.04628999903798103,
0.08233849704265594,
-0.07498608529567719,
0.026694316416978836,
-0.13907623291015625,
0.02642166242003441,
0.0002074952790280804,
-0.05491587519645691,
-0.07198706269264221,
0.011608812026679516,
0.07269742339849472,
-0.01272547710686922,
0.052683353424072266,
0.0266555342823267,
-0.027644386515021324,
0.05416945368051529,
-0.0423482283949852,
-0.10232078284025192,
0.04700617864727974,
0.13785313069820404,
-0.024189872667193413,
-0.03362882882356644,
-0.01935289241373539,
-0.02141328901052475,
-0.011462429538369179,
0.04038983955979347,
0.17602603137493134,
0.14145341515541077,
0.08011547476053238,
0.12489958107471466,
0.004262274596840143,
-0.07158657163381577,
-0.15978258848190308,
0.057947415858507156,
-0.07182734459638596,
0.10748451948165894,
-0.08671187609434128,
0.10544424504041672,
0.08498895168304443,
-0.19791875779628754,
0.10389576107263565,
0.035867683589458466,
-0.06855736672878265,
-0.04089317470788956,
-0.11181915551424026,
-0.04215623810887337,
-0.03666792809963226,
0.022572075948119164,
-0.10702234506607056,
0.07035981863737106,
-0.021710019558668137,
0.04143053665757179,
-0.05678948760032654,
0.18765588104724884,
-0.10456225275993347,
-0.10479727387428284,
0.15642555058002472,
0.04739576578140259,
0.07384686917066574,
0.04219169169664383,
-0.05709566920995712,
0.021758554503321648,
0.06308043748140335,
0.08841458708047867,
-0.009384994395077229,
0.0997089296579361,
-0.0012317615328356624,
-0.0266406312584877,
-0.047631971538066864,
-0.0024729410652071238,
-0.03855300322175026,
0.050401654094457626,
0.09753857553005219,
0.06748577952384949,
-0.05434389412403107,
-0.016606958582997322,
0.19892336428165436,
-0.07833658903837204,
-0.06051357090473175,
-0.1701572984457016,
0.07578664273023605,
0.07355566322803497,
-0.008305231109261513,
0.016266820952296257,
-0.11978162080049515,
-0.037251830101013184,
0.10499370843172073,
0.1422269642353058,
0.015020610764622688,
-0.009739909321069717,
0.02955528534948826,
-0.012285927310585976,
-0.023440679535269737,
0.11821979284286499,
0.0027511105872690678,
0.1693217158317566,
0.009153954684734344,
0.0419388972222805,
0.030967695638537407,
-0.04896918684244156,
-0.09979335218667984,
0.1499711126089096,
-0.05181480571627617,
-0.008065608330070972,
-0.07600311189889908,
0.07307898998260498,
0.04497795179486275,
-0.3189595937728882,
0.028229380026459694,
-0.08000379800796509,
-0.14292868971824646,
0.028285855427384377,
0.026112563908100128,
0.04344828426837921,
0.10746826231479645,
0.03214936703443527,
0.07136891782283783,
0.1631602793931961,
-0.02446652203798294,
-0.01118539460003376,
-0.10836989432573318,
0.10618507117033005,
-0.051798753440380096,
0.24548110365867615,
-0.009201526641845703,
-0.018499460071325302,
0.0414622537791729,
-0.011903353966772556,
-0.09988809376955032,
-0.003978914115577936,
0.01924782060086727,
-0.09911541640758514,
-0.0067555406130850315,
0.16079683601856232,
-0.024289170280098915,
0.08095869421958923,
0.04557091370224953,
-0.02084331214427948,
-0.03270785138010979,
0.026593994349241257,
-0.02369537763297558,
-0.10290704667568207,
0.08969810605049133,
-0.028460394591093063,
0.1418060064315796,
0.23042768239974976,
-0.019877450540661812,
0.02352886274456978,
-0.059687837958335876,
0.013559207320213318,
0.04272426292300224,
0.06996660679578781,
0.00652321195229888,
-0.1601060926914215,
0.0030198378954082727,
-0.04152929410338402,
0.021288717165589333,
-0.15421217679977417,
-0.06784644722938538,
0.0010306896874681115,
0.013492223806679249,
-0.0556233748793602,
0.1041036993265152,
0.047596532851457596,
-0.007658760529011488,
0.0011101822601631284,
-0.016210826113820076,
-0.0029618279077112675,
0.05018501356244087,
-0.15429513156414032,
-0.05307910591363907
] |
null | null | transformers |
This model is the same as [dbmdz/bert-base-german-cased](https://huggingface.co/dbmdz/bert-base-german-cased). See the [dbmdz/bert-base-german-cased model card](https://huggingface.co/dbmdz/bert-base-german-cased) for details on the model. | {"language": "de", "license": "mit"} | fill-mask | google-bert/bert-base-german-dbmdz-cased | [
"transformers",
"pytorch",
"jax",
"bert",
"fill-mask",
"de",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"de"
] | TAGS
#transformers #pytorch #jax #bert #fill-mask #de #license-mit #autotrain_compatible #endpoints_compatible #region-us
|
This model is the same as dbmdz/bert-base-german-cased. See the dbmdz/bert-base-german-cased model card for details on the model. | [] | [
"TAGS\n#transformers #pytorch #jax #bert #fill-mask #de #license-mit #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
46
] | [
"passage: TAGS\n#transformers #pytorch #jax #bert #fill-mask #de #license-mit #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
-0.04561465606093407,
0.05256509780883789,
-0.007506766356527805,
0.031664468348026276,
0.09514066576957703,
0.030480461195111275,
0.14146672189235687,
0.09235602617263794,
0.10062084347009659,
-0.04145856201648712,
0.17889389395713806,
0.2486049234867096,
-0.00805606134235859,
0.12686820328235626,
-0.05089550465345383,
-0.24439990520477295,
0.05716250091791153,
0.05059057101607323,
-0.022769657894968987,
0.11179134994745255,
0.0839853510260582,
-0.07130542397499084,
0.0643683448433876,
-0.006252296734601259,
-0.10617776960134506,
0.038066159933805466,
0.07542382180690765,
-0.0988004207611084,
0.13097284734249115,
0.032850299030542374,
0.15982885658740997,
0.05603052303195,
-0.004664790816605091,
-0.10269107669591904,
0.03544727340340614,
-0.013792500831186771,
-0.0921996608376503,
0.041620783507823944,
0.0027146954089403152,
-0.04714570567011833,
0.01285118144005537,
0.06554646044969559,
0.031140310689806938,
0.056615184992551804,
-0.1490575522184372,
-0.20301568508148193,
-0.038548897951841354,
0.045826032757759094,
0.06149189546704292,
0.05428561568260193,
0.02477487549185753,
0.19318953156471252,
-0.12616123259067535,
0.07028099149465561,
0.11729861050844193,
-0.3309731185436249,
0.006983381696045399,
0.08185894042253494,
0.09985657781362534,
-0.06371620297431946,
-0.05160686373710632,
0.05146842822432518,
0.046756185591220856,
0.016813034191727638,
0.06080463528633118,
-0.06952054053544998,
0.02079363353550434,
0.02502650022506714,
-0.05158740654587746,
-0.06466684490442276,
0.15812942385673523,
-0.03412802517414093,
0.006098573096096516,
0.00628280034288764,
-0.07693863660097122,
-0.03573867678642273,
-0.022319307550787926,
-0.026438280940055847,
-0.0004047442926093936,
0.07843545824289322,
-0.028465747833251953,
-0.0015103408368304372,
-0.1320081353187561,
0.007989541627466679,
-0.22243745625019073,
0.18012171983718872,
0.025677168741822243,
0.06893124431371689,
-0.18014980852603912,
0.052828751504421234,
-0.02012513391673565,
-0.10650485008955002,
0.015041748061776161,
-0.07703621685504913,
0.07274502515792847,
-0.005231302231550217,
-0.037414561957120895,
0.02389177493751049,
0.07105203717947006,
0.22387920320034027,
0.07958999276161194,
0.007778623141348362,
0.02177351713180542,
0.1100199967622757,
-0.005116906017065048,
0.07059703767299652,
0.06511739641427994,
-0.016644548624753952,
0.05029645934700966,
-0.12760303914546967,
0.03812310844659805,
-0.03538738936185837,
-0.15280038118362427,
-0.031093407422304153,
-0.00826431717723608,
0.09446725249290466,
0.02703435905277729,
0.04717140272259712,
-0.0974697396159172,
0.026741817593574524,
0.12694402039051056,
-0.03863341733813286,
0.015731291845440865,
-0.025042671710252762,
0.07190873473882675,
0.048100873827934265,
-0.0058468785136938095,
-0.0004888075636699796,
0.01719852164387703,
0.14009392261505127,
-0.09564176201820374,
-0.034339699894189835,
-0.05111962929368019,
-0.059723082929849625,
0.05670784041285515,
-0.10824795812368393,
0.04865149408578873,
-0.1704835295677185,
-0.15927504003047943,
0.06657998263835907,
0.06100073456764221,
0.00423389719799161,
-0.04279182106256485,
0.02723104879260063,
0.00028778836713172495,
0.021218588575720787,
-0.05796308070421219,
-0.06444794684648514,
-0.05399084463715553,
0.11075516790151596,
-0.017756111919879913,
0.08395855873823166,
-0.14705975353717804,
0.033903174102306366,
-0.10661295801401138,
0.0015370926121249795,
-0.09831511229276657,
-0.0690799355506897,
-0.03142239898443222,
0.15840047597885132,
-0.0004681619757320732,
-0.03848930820822716,
-0.0847836434841156,
0.03583550080657005,
-0.026529740542173386,
0.1635039746761322,
-0.1090046763420105,
-0.11780230700969696,
0.21214152872562408,
-0.1032944768667221,
-0.15533743798732758,
0.07715356349945068,
-0.010185742750763893,
0.06010992079973221,
0.07500124722719193,
0.11262165009975433,
0.014644249342381954,
-0.19175133109092712,
0.09738632291555405,
0.118007592856884,
-0.14325322210788727,
-0.16390685737133026,
0.05929587036371231,
-0.04460567608475685,
-0.11612102389335632,
0.04027511551976204,
0.03531915321946144,
0.10469920933246613,
-0.057889048010110855,
-0.0604650117456913,
-0.002301800763234496,
-0.023422159254550934,
0.09473806619644165,
0.023911163210868835,
0.08481072634458542,
-0.0993141233921051,
-0.03777777776122093,
-0.016767529770731926,
-0.009364535100758076,
0.09594189375638962,
0.02025449462234974,
-0.10842075198888779,
0.08659796416759491,
-0.016184842213988304,
-0.01575225032866001,
-0.10335716605186462,
-0.06905388087034225,
-0.010169262997806072,
0.01009682659059763,
-0.013320177793502808,
0.1328616589307785,
0.07959336042404175,
-0.039807360619306564,
-0.012190334498882294,
-0.01705034449696541,
0.10846828669309616,
0.04552479088306427,
-0.017585625872015953,
-0.12333371490240097,
0.023899391293525696,
-0.06844709068536758,
-0.03430651128292084,
0.0031402253080159426,
0.00654226541519165,
0.012561056762933731,
0.11686329543590546,
-0.028275175020098686,
0.04815724864602089,
-0.0937671884894371,
0.010817690752446651,
-0.03413673862814903,
0.013984691351652145,
0.11042079329490662,
0.030536223202943802,
-0.04158620536327362,
0.18948614597320557,
-0.09792495518922806,
0.34952840209007263,
0.2031022310256958,
-0.22783543169498444,
-0.025496676564216614,
0.04169259965419769,
-0.023261509835720062,
-0.008212540298700333,
0.039093468338251114,
-0.023662390187382698,
0.018246542662382126,
-0.009775188751518726,
0.14784345030784607,
-0.027905870229005814,
-0.030375542119145393,
0.022776614874601364,
-0.054318446666002274,
-0.05739615485072136,
0.006357231177389622,
0.1626049280166626,
-0.1746618151664734,
0.1908796727657318,
0.32150423526763916,
0.02735101245343685,
0.13559265434741974,
-0.014253897592425346,
0.014408720657229424,
-0.028791887685656548,
-0.04810968413949013,
-0.02133014425635338,
0.09394374489784241,
-0.16503335535526276,
-0.021376919001340866,
0.05291937664151192,
-0.036707065999507904,
0.03227004408836365,
-0.12725840508937836,
-0.07605001330375671,
0.014647004194557667,
0.04017789661884308,
-0.09145873039960861,
0.12980753183364868,
-0.0034336072858422995,
0.05987996980547905,
-0.005372059531509876,
-0.1410781294107437,
0.1376270353794098,
0.004775896668434143,
-0.051839862018823624,
0.13153667747974396,
-0.1302100569009781,
-0.28343790769577026,
-0.13381141424179077,
-0.1576337069272995,
0.046151336282491684,
0.03896395489573479,
0.10646785795688629,
-0.04868206009268761,
-0.051355887204408646,
0.08673006296157837,
-0.027874650433659554,
-0.06159006431698799,
0.045760903507471085,
-0.09534406661987305,
0.020617365837097168,
-0.03675263375043869,
-0.08918479084968567,
-0.09502255171537399,
-0.0021934646647423506,
-0.0334220826625824,
0.1076899990439415,
-0.07221897691488266,
0.06325317919254303,
0.08867254108190536,
-0.0009403612930327654,
0.05288352072238922,
-0.03620333969593048,
0.1913885921239853,
-0.054577331990003586,
-0.010230490006506443,
0.14503096044063568,
-0.011856782250106335,
0.08514281362295151,
0.18680919706821442,
0.0544608011841774,
-0.054815396666526794,
-0.010812831111252308,
-0.05550328642129898,
-0.09571856260299683,
-0.16771145164966583,
-0.07023255527019501,
-0.11360274255275726,
0.013002573512494564,
0.06088050827383995,
0.06443857401609421,
0.1681801974773407,
0.07646990567445755,
0.025121482089161873,
-0.01076899841427803,
-0.04922683164477348,
0.07403676211833954,
0.21934133768081665,
-0.04632273316383362,
0.12682227790355682,
-0.057738929986953735,
-0.13281625509262085,
0.06692153960466385,
0.01026790402829647,
0.053529754281044006,
0.16750329732894897,
0.024340178817510605,
0.07826456427574158,
0.18181152641773224,
0.13840366899967194,
0.11862216144800186,
0.03591814637184143,
-0.06230395287275314,
-0.02357553318142891,
-0.022286562249064445,
-0.026694299653172493,
0.03521876037120819,
0.1137620285153389,
-0.09055390954017639,
-0.03746999427676201,
-0.18967600166797638,
0.015010025352239609,
0.09600574523210526,
0.06889857351779938,
-0.22141247987747192,
0.015889370813965797,
0.072235606610775,
0.007006734609603882,
-0.05176934599876404,
0.05497626215219498,
-0.06580709666013718,
-0.12580062448978424,
0.06280246376991272,
-0.041635140776634216,
0.08906769007444382,
0.07487371563911438,
0.08489976823329926,
0.003111924510449171,
-0.07883109897375107,
0.035278841853141785,
0.07489820569753647,
-0.30556637048721313,
0.25743284821510315,
-0.0024055889807641506,
-0.003607620485126972,
-0.05952055752277374,
-0.007729673758149147,
0.03873932734131813,
0.14467200636863708,
0.13809481263160706,
0.029098307713866234,
-0.06594926118850708,
-0.10076507925987244,
0.012164012528955936,
0.03064294345676899,
0.05889928340911865,
-0.03319358080625534,
-0.038974329829216,
-0.049401603639125824,
-0.030653970316052437,
0.011191271245479584,
0.11494909226894379,
-0.046754464507102966,
-0.11860158294439316,
0.06763564795255661,
0.04714126139879227,
0.04720870032906532,
-0.03425063192844391,
-0.05426700413227081,
-0.12337163090705872,
0.16724441945552826,
-0.0672544538974762,
-0.03217661753296852,
-0.09492219239473343,
-0.14371025562286377,
0.03401915356516838,
-0.08165207505226135,
0.08283552527427673,
-0.07103996723890305,
-0.009203372523188591,
-0.09797551482915878,
-0.15556184947490692,
0.15852756798267365,
-0.1287146657705307,
-0.009166998788714409,
-0.10832127928733826,
0.1427830308675766,
-0.06828401237726212,
0.041302070021629333,
0.027141546830534935,
0.033416371792554855,
-0.08461203426122665,
-0.057353634387254715,
0.032088734209537506,
-0.08149706572294235,
0.04751431941986084,
-0.06177014857530594,
-0.06760917603969574,
-0.02392256259918213,
0.03222392499446869,
-0.008320600725710392,
0.18925027549266815,
0.27476397156715393,
-0.06465736031532288,
0.17276588082313538,
0.20095959305763245,
-0.06989798694849014,
-0.31058692932128906,
-0.13194645941257477,
-0.17761766910552979,
-0.014555410481989384,
0.04307452216744423,
-0.11783551424741745,
0.056809939444065094,
0.010480053722858429,
-0.07370267063379288,
0.12878736853599548,
-0.1745491921901703,
-0.0960811972618103,
0.2328995168209076,
0.0019207268487662077,
0.45783713459968567,
-0.1039435938000679,
-0.06867177039384842,
-0.048382457345724106,
-0.175387442111969,
0.08863887190818787,
0.048890143632888794,
0.0743197649717331,
-0.02005397155880928,
0.054121166467666626,
0.009683098644018173,
-0.07771969586610794,
0.1149536520242691,
-0.03668367490172386,
0.0384364016354084,
-0.10292520374059677,
-0.09707264602184296,
0.12081272155046463,
0.0074860411696136,
-0.0037406818009912968,
-0.06983531266450882,
-0.010303313843905926,
-0.03828928619623184,
-0.018019137904047966,
-0.09357957541942596,
0.12494365870952606,
-0.005471153184771538,
-0.08933485299348831,
0.01624266989529133,
0.0036314809694886208,
-0.012960724532604218,
-0.042657364159822464,
0.20545555651187897,
0.010914486832916737,
0.17225728929042816,
0.0372028723359108,
0.027538880705833435,
-0.14622686803340912,
-0.08508443832397461,
-0.06161957606673241,
-0.09875153750181198,
0.07971177250146866,
-0.008212984539568424,
0.03045966476202011,
0.10639305412769318,
-0.006066525354981422,
0.08247849345207214,
0.09962723404169083,
-0.004031450022011995,
-0.03850160539150238,
0.15273183584213257,
-0.17921943962574005,
0.005783772561699152,
-0.0030871473718434572,
0.03709632158279419,
0.09546194970607758,
0.04438135027885437,
0.06231138855218887,
0.005427447147667408,
-0.036398544907569885,
0.004847364965826273,
0.006911769043654203,
-0.0734352096915245,
0.015030018985271454,
0.05583243444561958,
0.0316949188709259,
-0.11523495614528656,
0.008131375536322594,
-0.019499732181429863,
-0.1942358911037445,
-0.0301815215498209,
0.07096315175294876,
-0.10377497971057892,
-0.1062852069735527,
-0.001779042650014162,
0.1085471361875534,
-0.12667042016983032,
-0.043779999017715454,
-0.06394075602293015,
-0.12382722645998001,
0.05734322965145111,
0.18133039772510529,
0.10380435734987259,
0.10548314452171326,
-0.011413628235459328,
-0.022522518411278725,
0.00031546951504424214,
-0.00320267491042614,
-0.0480700246989727,
0.027731988579034805,
-0.08444678038358688,
0.004926180467009544,
0.003784222062677145,
0.10696706920862198,
-0.09035886079072952,
-0.03271622955799103,
-0.1615828573703766,
0.03451560437679291,
-0.062389716506004333,
-0.08484772592782974,
-0.10788055509328842,
-0.07011216878890991,
0.04122951626777649,
-0.07124172896146774,
-0.04440697655081749,
-0.029219934716820717,
-0.12184770405292511,
0.016615021973848343,
0.06506435573101044,
0.039792295545339584,
-0.07386848330497742,
-0.03602474182844162,
0.11226051300764084,
-0.027697687968611717,
0.06642435491085052,
0.09894636273384094,
-0.034527864307165146,
0.09338553249835968,
-0.13227547705173492,
-0.09101326018571854,
0.08052249997854233,
0.006978568620979786,
0.06074501946568489,
0.04188580438494682,
0.015745706856250763,
0.08476992696523666,
0.01447637751698494,
0.04824656993150711,
0.008459222503006458,
-0.12589839100837708,
0.049024976789951324,
0.0658755898475647,
-0.1730475276708603,
-0.005402852781116962,
-0.1048407182097435,
0.08763302862644196,
-0.022595752030611038,
0.1650756597518921,
-0.03932514786720276,
0.066887766122818,
-0.04661652445793152,
0.013893833383917809,
-0.0337311327457428,
-0.1349530816078186,
-0.05781686678528786,
-0.06515230983495712,
-0.02653641439974308,
-0.010227608494460583,
0.23486380279064178,
0.025417320430278778,
-0.062185343354940414,
0.07292811572551727,
0.057411566376686096,
-0.0060566687025129795,
-0.003800165606662631,
0.21029767394065857,
0.06249251216650009,
-0.03601999208331108,
-0.11061467975378036,
0.08165522664785385,
-0.004624994937330484,
-0.07895590364933014,
0.10106917470693588,
0.09741275012493134,
0.06542602181434631,
0.07129569351673126,
0.05281318724155426,
0.012915808707475662,
-0.120266392827034,
-0.19858284294605255,
0.023575956001877785,
0.046462297439575195,
0.015828900039196014,
0.06599146127700806,
0.15414419770240784,
-0.02289784513413906,
0.03404911980032921,
-0.06075873225927353,
-0.00002733766996243503,
-0.19922390580177307,
-0.13172942399978638,
-0.06803223490715027,
-0.060157932341098785,
0.039682336151599884,
0.010989638976752758,
0.016808154061436653,
0.07303400337696075,
0.03722131624817848,
-0.05653327330946922,
0.038526054471731186,
-0.018917277455329895,
-0.025775933638215065,
-0.0004938829224556684,
-0.004832166247069836,
0.004515775013715029,
-0.05662267655134201,
-0.005240726284682751,
-0.15601977705955505,
-0.038613516837358475,
-0.04809633642435074,
-0.012818380258977413,
-0.049502406269311905,
0.0037332058418542147,
-0.08946088701486588,
-0.10835272818803787,
-0.05079084262251854,
0.032062310725450516,
-0.02707737870514393,
0.11658943444490433,
-0.005844637285917997,
0.06129574775695801,
0.03435118868947029,
0.09949609637260437,
-0.0507119745016098,
-0.11031024158000946,
-0.0216487068682909,
0.20731137692928314,
0.05341685935854912,
0.09687165170907974,
0.004621218424290419,
0.04225324094295502,
-0.05970745161175728,
0.254794716835022,
0.33686137199401855,
-0.014766142703592777,
0.06714463233947754,
0.030025437474250793,
0.01760442554950714,
0.05526215210556984,
0.10158590972423553,
0.050421785563230515,
0.28134235739707947,
-0.10015655308961868,
-0.0040092868730425835,
-0.053694259375333786,
-0.023448055610060692,
-0.09050516784191132,
0.020773639902472496,
0.009124316275119781,
-0.041025739163160324,
-0.03926178812980652,
0.07828270643949509,
-0.12786856293678284,
0.1008267030119896,
0.09652338922023773,
-0.15390260517597198,
-0.022910133004188538,
-0.0021499237045645714,
0.16231879591941833,
0.032801296561956406,
0.0901358351111412,
-0.04646964371204376,
-0.061435651034116745,
0.07565394043922424,
0.005448647774755955,
-0.225539892911911,
-0.09476792067289352,
0.11593477427959442,
0.020279277116060257,
0.1228368729352951,
-0.029022397473454475,
0.07114286720752716,
0.08954263478517532,
0.07574164122343063,
-0.041026316583156586,
0.04756912216544151,
0.03452436998486519,
-0.09190204739570618,
-0.05563841015100479,
-0.07896140217781067,
0.012925658375024796,
-0.08057527244091034,
0.013650013133883476,
-0.12092504650354385,
0.05734620988368988,
-0.10520955175161362,
-0.0767810046672821,
-0.03871778026223183,
0.09436913579702377,
-0.04759737849235535,
0.06197402998805046,
0.02359362319111824,
0.023041492328047752,
-0.06582307815551758,
-0.04500652849674225,
-0.01591208018362522,
0.11143441498279572,
-0.15039299428462982,
-0.1369008719921112,
-0.0471179373562336,
-0.029641928151249886,
0.0496542751789093,
-0.008075938560068607,
-0.16298040747642517,
-0.05589483305811882,
-0.10262851417064667,
0.008913734927773476,
-0.1536477506160736,
0.024264266714453697,
0.06064198911190033,
0.05114893615245819,
0.010443356819450855,
-0.09089283645153046,
0.027300631627440453,
0.023440051823854446,
-0.13427740335464478,
-0.09429711103439331
] |
null | null | transformers |
This model is the same as [dbmdz/bert-base-german-uncased](https://huggingface.co/dbmdz/bert-base-german-uncased). See the [dbmdz/bert-base-german-cased model card](https://huggingface.co/dbmdz/bert-base-german-uncased) for details on the model.
| {"language": "de", "license": "mit"} | fill-mask | google-bert/bert-base-german-dbmdz-uncased | [
"transformers",
"pytorch",
"jax",
"safetensors",
"bert",
"fill-mask",
"de",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"de"
] | TAGS
#transformers #pytorch #jax #safetensors #bert #fill-mask #de #license-mit #autotrain_compatible #endpoints_compatible #region-us
|
This model is the same as dbmdz/bert-base-german-uncased. See the dbmdz/bert-base-german-cased model card for details on the model.
| [] | [
"TAGS\n#transformers #pytorch #jax #safetensors #bert #fill-mask #de #license-mit #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
51
] | [
"passage: TAGS\n#transformers #pytorch #jax #safetensors #bert #fill-mask #de #license-mit #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
-0.04882732033729553,
0.04222377762198448,
-0.007667677942663431,
0.022257396951317787,
0.08331955969333649,
0.009359395131468773,
0.15654683113098145,
0.07629236578941345,
0.10400699079036713,
-0.03610239177942276,
0.18065029382705688,
0.23744957149028778,
-0.018430935218930244,
0.1500043123960495,
-0.060834482312202454,
-0.20610544085502625,
0.08373619616031647,
0.023565281182527542,
-0.0026633001398295164,
0.11718504875898361,
0.09442310035228729,
-0.07823599874973297,
0.0579369030892849,
-0.019441844895482063,
-0.08311508595943451,
0.02167879417538643,
0.08423003554344177,
-0.11172369867563248,
0.1389908790588379,
0.01595950312912464,
0.17839375138282776,
0.06232332065701485,
0.00031523595680482686,
-0.12214986979961395,
0.0371633917093277,
-0.004865514580160379,
-0.08219979703426361,
0.038150355219841,
0.006312244571745396,
-0.04248110577464104,
-0.01580415666103363,
0.05213591083884239,
0.0403972789645195,
0.05428504943847656,
-0.13713529706001282,
-0.22464804351329803,
-0.0472208596765995,
0.05277077108621597,
0.0718061625957489,
0.05745301768183708,
0.02285224385559559,
0.2237616777420044,
-0.11480367928743362,
0.07645738124847412,
0.09530982375144958,
-0.33716222643852234,
0.009527172893285751,
0.06983796507120132,
0.10365328192710876,
-0.04378865286707878,
-0.04760364070534706,
0.047437265515327454,
0.051834773272275925,
0.009923707693815231,
0.08452264964580536,
-0.05507218465209007,
-0.007799230981618166,
0.011741538532078266,
-0.056076280772686005,
-0.06073663756251335,
0.15285523235797882,
-0.02956417016685009,
-0.001437803846783936,
-0.029993850737810135,
-0.07928226888179779,
-0.010021986439824104,
-0.018605953082442284,
-0.03274783492088318,
-0.003923044539988041,
0.07050890475511551,
-0.01505719032138586,
0.013489101082086563,
-0.13997335731983185,
0.01222319807857275,
-0.2064303308725357,
0.18875747919082642,
0.03143911436200142,
0.07256989926099777,
-0.17416802048683167,
0.049874447286129,
0.0014243521727621555,
-0.11866554617881775,
0.023397112265229225,
-0.08407562971115112,
0.08972954005002975,
-0.008649024181067944,
-0.008985185995697975,
0.03386871889233589,
0.10256081819534302,
0.21875593066215515,
0.021711133420467377,
0.0005275094881653786,
0.00441252626478672,
0.10552192479372025,
-0.010928631760179996,
0.05100512504577637,
0.06524313241243362,
-0.0035459476057440042,
0.07129815965890884,
-0.09481336176395416,
0.05260755494236946,
-0.023905565962195396,
-0.12000871449708939,
-0.007240812294185162,
0.023228265345096588,
0.12435958534479141,
0.027940824627876282,
0.05328192189335823,
-0.09101055562496185,
0.05123651772737503,
0.1431019902229309,
-0.05053478106856346,
0.007176060229539871,
-0.020035337656736374,
0.08326832950115204,
0.006211817264556885,
-0.0017336617456749082,
0.0016007688827812672,
0.02002311870455742,
0.134806290268898,
-0.09246371686458588,
-0.042468514293432236,
-0.04099994897842407,
-0.058344095945358276,
0.057268522679805756,
-0.08701241761445999,
0.05466771498322487,
-0.18882335722446442,
-0.17371226847171783,
0.06892189383506775,
0.049604009836912155,
0.024432169273495674,
-0.0370858795940876,
0.02958802506327629,
-0.008832155726850033,
-0.002329805865883827,
-0.06796003133058548,
-0.08444921672344208,
-0.06552977859973907,
0.11099258810281754,
-0.013565094210207462,
0.06238263472914696,
-0.13163183629512787,
0.011031375266611576,
-0.13066856563091278,
0.008251992054283619,
-0.09073744714260101,
-0.08892010152339935,
-0.047501347959041595,
0.1789703667163849,
0.0043670861050486565,
-0.028736921027302742,
-0.07453033328056335,
0.043748222291469574,
-0.030434437096118927,
0.16700991988182068,
-0.09201499074697495,
-0.09152358770370483,
0.2401551753282547,
-0.13975830376148224,
-0.1725035011768341,
0.08020442724227905,
-0.0031465059146285057,
0.05782712250947952,
0.08278025686740875,
0.10740485042333603,
0.0038372999988496304,
-0.19425378739833832,
0.07810308784246445,
0.10770531743764877,
-0.15608607232570648,
-0.14589683711528778,
0.045170899480581284,
-0.03365924209356308,
-0.12949803471565247,
0.04468270391225815,
0.034928031265735626,
0.10530517995357513,
-0.0642833560705185,
-0.07132133096456528,
-0.021243654191493988,
-0.03392428904771805,
0.0827593207359314,
0.01925976201891899,
0.06355912983417511,
-0.11794847995042801,
-0.04003390669822693,
-0.04641841724514961,
-0.009644383564591408,
0.07870719581842422,
0.0032292138785123825,
-0.12228967249393463,
0.08461510390043259,
-0.009666481986641884,
-0.01381797157227993,
-0.09323785454034805,
-0.10753260552883148,
-0.0033332088496536016,
0.0028989375568926334,
-0.031884610652923584,
0.09113731980323792,
0.09140411019325256,
-0.013469802215695381,
-0.009083446115255356,
-0.0407785028219223,
0.12176811695098877,
0.05533813312649727,
-0.003998672589659691,
-0.1258162558078766,
0.03814501687884331,
-0.07381922006607056,
-0.015442214906215668,
-0.015736356377601624,
0.014967395924031734,
0.02102365717291832,
0.11548274755477905,
-0.02101995423436165,
0.05068816617131233,
-0.08773976564407349,
0.003142516827210784,
-0.02422998659312725,
0.01111673004925251,
0.1063426285982132,
0.025165410712361336,
-0.03827722743153572,
0.17682506144046783,
-0.12018933147192001,
0.3879019320011139,
0.20666566491127014,
-0.18636956810951233,
-0.02088906243443489,
0.03811115771532059,
-0.025193752720952034,
-0.0009285501437261701,
0.028188440948724747,
-0.012973870150744915,
-0.026093946769833565,
-0.014326533302664757,
0.14120666682720184,
-0.04601024463772774,
-0.03790287673473358,
0.026956897228956223,
-0.06302940100431442,
-0.05895369127392769,
0.008959848433732986,
0.1210913211107254,
-0.18455485999584198,
0.19277702271938324,
0.32310816645622253,
0.036804139614105225,
0.1295338273048401,
-0.03842541575431824,
0.022635269910097122,
-0.013897732831537724,
-0.014976119622588158,
-0.019476985558867455,
0.1074608787894249,
-0.12764479219913483,
-0.0024005468003451824,
0.05314140394330025,
-0.0281689316034317,
0.02222452685236931,
-0.13458362221717834,
-0.0846027061343193,
0.0057701789774000645,
0.033226121217012405,
-0.07559268921613693,
0.113778255879879,
0.0008706645458005369,
0.08133517950773239,
-0.02817239984869957,
-0.15127567946910858,
0.13067670166492462,
-0.00526763079687953,
-0.055571090430021286,
0.14129282534122467,
-0.13085661828517914,
-0.28412026166915894,
-0.11382080614566803,
-0.1367938071489334,
0.050219666212797165,
0.028779184445738792,
0.10257920622825623,
-0.05249950662255287,
-0.06059278920292854,
0.05261624976992607,
-0.04375648871064186,
-0.01393387746065855,
0.04967474564909935,
-0.0671134740114212,
0.03205738589167595,
-0.012692579068243504,
-0.09435448795557022,
-0.08949458599090576,
-0.010073196142911911,
-0.04688495397567749,
0.11909318715333939,
-0.04071193188428879,
0.058584507554769516,
0.07836409658193588,
-0.010093468241393566,
0.03232833370566368,
-0.047597888857126236,
0.17670397460460663,
-0.052067115902900696,
-0.006976789329200983,
0.16831575334072113,
-0.02896626852452755,
0.08873461931943893,
0.20359449088573456,
0.05349789559841156,
-0.059144504368305206,
0.0019136946648359299,
-0.06940009444952011,
-0.09661765396595001,
-0.17338727414608002,
-0.08111532032489777,
-0.08847981691360474,
0.027786454185843468,
0.045584000647068024,
0.06959494948387146,
0.15404535830020905,
0.08861380815505981,
0.013168912380933762,
-0.05964062735438347,
-0.023582082241773605,
0.06879276782274246,
0.17447534203529358,
-0.03810097649693489,
0.1259833127260208,
-0.05705854296684265,
-0.14644362032413483,
0.061959654092788696,
0.009947393089532852,
0.05060064420104027,
0.15381336212158203,
-0.012969350442290306,
0.08209454268217087,
0.20827896893024445,
0.13315218687057495,
0.14042183756828308,
0.030548064038157463,
-0.0736212506890297,
-0.013540001586079597,
-0.027524150907993317,
-0.027610788121819496,
0.025514762848615646,
0.051430702209472656,
-0.060439642518758774,
-0.03761274740099907,
-0.16520805656909943,
0.04043721407651901,
0.10189849883317947,
0.04886448010802269,
-0.23203648626804352,
0.015643080696463585,
0.07992283999919891,
0.014140568673610687,
-0.04605410248041153,
0.0671507939696312,
-0.03188209980726242,
-0.0997166782617569,
0.0642796978354454,
-0.04885940998792648,
0.07284706085920334,
0.08628563582897186,
0.08898399770259857,
-0.01591038890182972,
-0.06587369740009308,
0.024244001135230064,
0.06978528946638107,
-0.27619248628616333,
0.2532280385494232,
-0.0035396560560911894,
0.019915854558348656,
-0.06335126608610153,
-0.002965318039059639,
0.0323055163025856,
0.1416151523590088,
0.16142502427101135,
0.02410229854285717,
-0.08216924965381622,
-0.09691176563501358,
-0.003706104587763548,
0.04231839254498482,
0.048157792538404465,
-0.012107307091355324,
-0.027377262711524963,
-0.0519188717007637,
-0.022378502413630486,
0.019595978781580925,
0.06662765145301819,
-0.06629044562578201,
-0.11016137897968292,
0.04016076400876045,
0.06441880762577057,
0.06603997945785522,
-0.06422453373670578,
-0.043932799249887466,
-0.13214021921157837,
0.15762712061405182,
-0.0744321271777153,
-0.038964465260505676,
-0.09003560245037079,
-0.16640491783618927,
0.03362269699573517,
-0.06936007738113403,
0.08338044583797455,
-0.06866875290870667,
-0.0029363236390054226,
-0.10496289283037186,
-0.1514178216457367,
0.15269385278224945,
-0.14754922688007355,
-0.0405978299677372,
-0.10347510129213333,
0.15241359174251556,
-0.058808229863643646,
0.014062585309147835,
0.0371687076985836,
0.027939964085817337,
-0.07440724223852158,
-0.06388264894485474,
0.026200508698821068,
-0.07992078363895416,
0.06270404160022736,
-0.04011331871151924,
-0.07111036032438278,
-0.09101654589176178,
0.03151194006204605,
-0.01807592250406742,
0.16657902300357819,
0.3138546347618103,
-0.057327643036842346,
0.14110085368156433,
0.2301027923822403,
-0.043547943234443665,
-0.3214006721973419,
-0.15051761269569397,
-0.18944716453552246,
-0.02751569077372551,
0.06308553367853165,
-0.06556552648544312,
0.06560275703668594,
0.02509923465549946,
-0.08994472026824951,
0.12482050061225891,
-0.15763019025325775,
-0.09283661097288132,
0.24447257816791534,
0.032072607427835464,
0.42951568961143494,
-0.1255955547094345,
-0.061253875494003296,
-0.033253610134124756,
-0.14209511876106262,
0.1003216803073883,
0.0007878111209720373,
0.048654619604349136,
-0.006422029808163643,
0.02358609065413475,
0.008884905837476254,
-0.08601036667823792,
0.11747852712869644,
-0.06612365692853928,
0.059532176703214645,
-0.10505910962820053,
-0.0674072802066803,
0.1133127361536026,
0.01037710253149271,
0.013197606429457664,
-0.08236910402774811,
0.0027924852911382914,
-0.0007563981343992054,
-0.01892929896712303,
-0.08518604934215546,
0.136289581656456,
-0.0034861965104937553,
-0.09551303833723068,
0.027140943333506584,
-0.0009735508356243372,
-0.024127088487148285,
-0.044329747557640076,
0.21514172852039337,
0.01238536648452282,
0.20030485093593597,
0.07685618847608566,
0.044107068330049515,
-0.15059393644332886,
-0.03715219348669052,
-0.04702792316675186,
-0.10524686425924301,
0.08181772381067276,
0.005383374635130167,
0.03943093121051788,
0.08550743013620377,
-0.010318937711417675,
0.07354994863271713,
0.09565071016550064,
-0.0055486042983829975,
-0.04657755047082901,
0.15862835943698883,
-0.19832681119441986,
-0.01928480714559555,
0.0092075876891613,
0.06653691828250885,
0.0840882733464241,
0.07761526852846146,
0.06847106665372849,
-0.00042522494914010167,
-0.03523930907249451,
-0.012753631919622421,
0.027700884267687798,
-0.0645894780755043,
0.027219559997320175,
0.05305227264761925,
0.04382887855172157,
-0.11067632585763931,
0.018309736624360085,
-0.027934957295656204,
-0.17896108329296112,
-0.029188059270381927,
0.06417230516672134,
-0.11536692082881927,
-0.10800030082464218,
0.0010749377543106675,
0.09858328849077225,
-0.07754559814929962,
-0.07117660343647003,
-0.05877869948744774,
-0.1474655717611313,
0.03755858168005943,
0.19649463891983032,
0.0983506292104721,
0.103504978120327,
0.025855550542473793,
-0.023765521124005318,
-0.01695152185857296,
0.013676180504262447,
-0.055058274418115616,
0.02109740488231182,
-0.10897637158632278,
-0.00789867527782917,
0.0037557994946837425,
0.08664724975824356,
-0.09488668292760849,
-0.014209442771971226,
-0.16860216856002808,
0.02742656134068966,
-0.05075446888804436,
-0.07033852487802505,
-0.11096382886171341,
-0.05719202384352684,
0.03828417882323265,
-0.07657986879348755,
-0.031018808484077454,
-0.02642670087516308,
-0.10761144012212753,
0.028007816523313522,
0.06989240646362305,
0.034629497677087784,
-0.09151043742895126,
-0.03925437107682228,
0.09794764965772629,
-0.02817492000758648,
0.07980170100927353,
0.09093757718801498,
-0.04694252833724022,
0.10103283822536469,
-0.17444929480552673,
-0.08321532607078552,
0.09322765469551086,
-0.001307903090491891,
0.05053313821554184,
0.048716139048337936,
0.010121436789631844,
0.09503691643476486,
0.000018919259673566557,
0.05071496590971947,
0.012270336970686913,
-0.12793001532554626,
0.05877523869276047,
0.06831370294094086,
-0.15570491552352905,
0.0012146305525675416,
-0.1255567967891693,
0.09374872595071793,
-0.05863851681351662,
0.18066394329071045,
-0.05639161169528961,
0.048894401639699936,
-0.06259612739086151,
0.015408004634082317,
-0.031984008848667145,
-0.14763860404491425,
-0.08174698799848557,
-0.041762616485357285,
-0.029029255732893944,
-0.015671540051698685,
0.23887032270431519,
0.011478392407298088,
-0.06420327723026276,
0.07856347411870956,
0.03671977296471596,
0.0026055737398564816,
0.0062193782068789005,
0.2081346958875656,
0.04617369920015335,
-0.03966885432600975,
-0.11728359013795853,
0.047696277499198914,
-0.00665552681311965,
-0.1528834104537964,
0.08207486569881439,
0.10987204313278198,
0.044808678328990936,
0.0627862736582756,
0.06523065268993378,
0.00849204696714878,
-0.0927150547504425,
-0.20261359214782715,
0.0014296824811026454,
0.022327182814478874,
0.022577034309506416,
0.05255588889122009,
0.18311554193496704,
-0.0005931962514296174,
0.016026804223656654,
-0.06048478186130524,
0.004256040323525667,
-0.19574539363384247,
-0.12703736126422882,
-0.0733334943652153,
-0.05141941085457802,
0.04192458838224411,
0.0007980983355082572,
-0.009038102813065052,
0.07637115567922592,
0.039939530193805695,
-0.05566464737057686,
0.06453873962163925,
-0.0012115438003093004,
-0.0027490691281855106,
-0.0017762714996933937,
0.012459225952625275,
0.007626126520335674,
-0.035497602075338364,
-0.023596417158842087,
-0.14769966900348663,
-0.03376295790076256,
-0.05075013265013695,
-0.008604508824646473,
-0.0599997378885746,
0.022161783650517464,
-0.08959908038377762,
-0.10163640975952148,
-0.051810551434755325,
0.04042591154575348,
-0.03135915845632553,
0.09458380937576294,
-0.004736193921416998,
0.05199453979730606,
0.05292969569563866,
0.11755615472793579,
-0.03774932771921158,
-0.1467331498861313,
-0.015741784125566483,
0.22042348980903625,
0.03941038250923157,
0.10634494572877884,
0.009705756790935993,
0.0441264733672142,
-0.043056927621364594,
0.24402588605880737,
0.3239228427410126,
-0.013101906515657902,
0.0810164213180542,
-0.0033829454332590103,
0.015861772000789642,
0.019298363476991653,
0.09955423325300217,
0.0720137432217598,
0.2894470691680908,
-0.09267669171094894,
0.0237168837338686,
-0.04923723265528679,
-0.011492627672851086,
-0.11616860330104828,
-0.000517628388479352,
-0.0015574824064970016,
-0.023321080952882767,
-0.042203132063150406,
0.0789903998374939,
-0.11150453984737396,
0.09837175160646439,
0.07925786077976227,
-0.14203287661075592,
-0.024615006521344185,
0.00097930699121207,
0.18535853922367096,
0.01599320024251938,
0.07085441052913666,
-0.0502689927816391,
-0.05034381523728371,
0.040223460644483566,
0.002117595635354519,
-0.18885692954063416,
-0.07817184180021286,
0.08368043601512909,
0.032139282673597336,
0.1642838716506958,
-0.015944834798574448,
0.0735468864440918,
0.08656526356935501,
0.041691552847623825,
-0.05804899334907532,
0.08421589434146881,
0.04007868468761444,
-0.10021650046110153,
-0.04681631922721863,
-0.0988159254193306,
0.014008867554366589,
-0.06280764192342758,
0.014334151521325111,
-0.1260131299495697,
0.051472872495651245,
-0.09433227777481079,
-0.08699613809585571,
-0.03302791714668274,
0.09534358978271484,
-0.03333760425448418,
0.06315460056066513,
0.0025873351842164993,
0.013415446504950523,
-0.04370151087641716,
-0.0467093288898468,
0.0158563069999218,
0.09801306575536728,
-0.14182807505130768,
-0.10504063963890076,
-0.06689738482236862,
-0.01580023393034935,
0.07350216805934906,
-0.008710058405995369,
-0.15837305784225464,
-0.05129411444067955,
-0.11520230025053024,
0.007147202733904123,
-0.17326554656028748,
0.00659902673214674,
0.08844652771949768,
0.06003127619624138,
0.008204064331948757,
-0.08667252212762833,
0.01801951415836811,
0.03289350867271423,
-0.12260928750038147,
-0.0949966087937355
] |
null | null | transformers |
# BERT multilingual base model (cased)
Pretrained model on the top 104 languages with the largest Wikipedia using a masked language modeling (MLM) objective.
It was introduced in [this paper](https://arxiv.org/abs/1810.04805) and first released in
[this repository](https://github.com/google-research/bert). This model is case sensitive: it makes a difference
between english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of multilingual data in a self-supervised fashion. This means
it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the languages in the training set that can then be used to
extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a
standard classifier using the features produced by the BERT model as inputs.
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=bert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-base-multilingual-cased')
>>> unmasker("Hello I'm a [MASK] model.")
[{'sequence': "[CLS] Hello I'm a model model. [SEP]",
'score': 0.10182085633277893,
'token': 13192,
'token_str': 'model'},
{'sequence': "[CLS] Hello I'm a world model. [SEP]",
'score': 0.052126359194517136,
'token': 11356,
'token_str': 'world'},
{'sequence': "[CLS] Hello I'm a data model. [SEP]",
'score': 0.048930276185274124,
'token': 11165,
'token_str': 'data'},
{'sequence': "[CLS] Hello I'm a flight model. [SEP]",
'score': 0.02036019042134285,
'token': 23578,
'token_str': 'flight'},
{'sequence': "[CLS] Hello I'm a business model. [SEP]",
'score': 0.020079681649804115,
'token': 14155,
'token_str': 'business'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import BertTokenizer, BertModel
tokenizer = BertTokenizer.from_pretrained('bert-base-multilingual-cased')
model = BertModel.from_pretrained("bert-base-multilingual-cased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('bert-base-multilingual-cased')
model = TFBertModel.from_pretrained("bert-base-multilingual-cased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Training data
The BERT model was pretrained on the 104 languages with the largest Wikipedias. You can find the complete list
[here](https://github.com/google-research/bert/blob/master/multilingual.md#list-of-languages).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a shared vocabulary size of 110,000. The languages with a
larger Wikipedia are under-sampled and the ones with lower resources are oversampled. For languages like Chinese,
Japanese Kanji and Korean Hanja that don't have space, a CJK Unicode block is added around every character.
The inputs of the model are then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1810-04805,
author = {Jacob Devlin and
Ming{-}Wei Chang and
Kenton Lee and
Kristina Toutanova},
title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language
Understanding},
journal = {CoRR},
volume = {abs/1810.04805},
year = {2018},
url = {http://arxiv.org/abs/1810.04805},
archivePrefix = {arXiv},
eprint = {1810.04805},
timestamp = {Tue, 30 Oct 2018 20:39:56 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
| {"language": ["multilingual", "af", "sq", "ar", "an", "hy", "ast", "az", "ba", "eu", "bar", "be", "bn", "inc", "bs", "br", "bg", "my", "ca", "ceb", "ce", "zh", "cv", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "gl", "ka", "de", "el", "gu", "ht", "he", "hi", "hu", "is", "io", "id", "ga", "it", "ja", "jv", "kn", "kk", "ky", "ko", "la", "lv", "lt", "roa", "nds", "lm", "mk", "mg", "ms", "ml", "mr", "mn", "min", "ne", "new", "nb", "nn", "oc", "fa", "pms", "pl", "pt", "pa", "ro", "ru", "sco", "sr", "hr", "scn", "sk", "sl", "aze", "es", "su", "sw", "sv", "tl", "tg", "th", "ta", "tt", "te", "tr", "uk", "ud", "uz", "vi", "vo", "war", "cy", "fry", "pnb", "yo"], "license": "apache-2.0", "datasets": ["wikipedia"]} | fill-mask | google-bert/bert-base-multilingual-cased | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"multilingual",
"af",
"sq",
"ar",
"an",
"hy",
"ast",
"az",
"ba",
"eu",
"bar",
"be",
"bn",
"inc",
"bs",
"br",
"bg",
"my",
"ca",
"ceb",
"ce",
"zh",
"cv",
"hr",
"cs",
"da",
"nl",
"en",
"et",
"fi",
"fr",
"gl",
"ka",
"de",
"el",
"gu",
"ht",
"he",
"hi",
"hu",
"is",
"io",
"id",
"ga",
"it",
"ja",
"jv",
"kn",
"kk",
"ky",
"ko",
"la",
"lv",
"lt",
"roa",
"nds",
"lm",
"mk",
"mg",
"ms",
"ml",
"mr",
"mn",
"min",
"ne",
"new",
"nb",
"nn",
"oc",
"fa",
"pms",
"pl",
"pt",
"pa",
"ro",
"ru",
"sco",
"sr",
"scn",
"sk",
"sl",
"aze",
"es",
"su",
"sw",
"sv",
"tl",
"tg",
"th",
"ta",
"tt",
"te",
"tr",
"uk",
"ud",
"uz",
"vi",
"vo",
"war",
"cy",
"fry",
"pnb",
"yo",
"dataset:wikipedia",
"arxiv:1810.04805",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1810.04805"
] | [
"multilingual",
"af",
"sq",
"ar",
"an",
"hy",
"ast",
"az",
"ba",
"eu",
"bar",
"be",
"bn",
"inc",
"bs",
"br",
"bg",
"my",
"ca",
"ceb",
"ce",
"zh",
"cv",
"hr",
"cs",
"da",
"nl",
"en",
"et",
"fi",
"fr",
"gl",
"ka",
"de",
"el",
"gu",
"ht",
"he",
"hi",
"hu",
"is",
"io",
"id",
"ga",
"it",
"ja",
"jv",
"kn",
"kk",
"ky",
"ko",
"la",
"lv",
"lt",
"roa",
"nds",
"lm",
"mk",
"mg",
"ms",
"ml",
"mr",
"mn",
"min",
"ne",
"new",
"nb",
"nn",
"oc",
"fa",
"pms",
"pl",
"pt",
"pa",
"ro",
"ru",
"sco",
"sr",
"hr",
"scn",
"sk",
"sl",
"aze",
"es",
"su",
"sw",
"sv",
"tl",
"tg",
"th",
"ta",
"tt",
"te",
"tr",
"uk",
"ud",
"uz",
"vi",
"vo",
"war",
"cy",
"fry",
"pnb",
"yo"
] | TAGS
#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #multilingual #af #sq #ar #an #hy #ast #az #ba #eu #bar #be #bn #inc #bs #br #bg #my #ca #ceb #ce #zh #cv #hr #cs #da #nl #en #et #fi #fr #gl #ka #de #el #gu #ht #he #hi #hu #is #io #id #ga #it #ja #jv #kn #kk #ky #ko #la #lv #lt #roa #nds #lm #mk #mg #ms #ml #mr #mn #min #ne #new #nb #nn #oc #fa #pms #pl #pt #pa #ro #ru #sco #sr #scn #sk #sl #aze #es #su #sw #sv #tl #tg #th #ta #tt #te #tr #uk #ud #uz #vi #vo #war #cy #fry #pnb #yo #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us
|
# BERT multilingual base model (cased)
Pretrained model on the top 104 languages with the largest Wikipedia using a masked language modeling (MLM) objective.
It was introduced in this paper and first released in
this repository. This model is case sensitive: it makes a difference
between english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of multilingual data in a self-supervised fashion. This means
it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the languages in the training set that can then be used to
extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a
standard classifier using the features produced by the BERT model as inputs.
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
## Training data
The BERT model was pretrained on the 104 languages with the largest Wikipedias. You can find the complete list
here.
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a shared vocabulary size of 110,000. The languages with a
larger Wikipedia are under-sampled and the ones with lower resources are oversampled. For languages like Chinese,
Japanese Kanji and Korean Hanja that don't have space, a CJK Unicode block is added around every character.
The inputs of the model are then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by '[MASK]'.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### BibTeX entry and citation info
| [
"# BERT multilingual base model (cased)\n\nPretrained model on the top 104 languages with the largest Wikipedia using a masked language modeling (MLM) objective.\nIt was introduced in this paper and first released in\nthis repository. This model is case sensitive: it makes a difference\nbetween english and English.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team.",
"## Model description\n\nBERT is a transformers model pretrained on a large corpus of multilingual data in a self-supervised fashion. This means\nit was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of\npublicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it\nwas pretrained with two objectives:\n\n- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run\n the entire masked sentence through the model and has to predict the masked words. This is different from traditional\n recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like\n GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the\n sentence.\n- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes\n they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to\n predict if the two sentences were following each other or not.\n\nThis way, the model learns an inner representation of the languages in the training set that can then be used to\nextract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a\nstandard classifier using the features produced by the BERT model as inputs.",
"## Intended uses & limitations\n\nYou can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to\nbe fine-tuned on a downstream task. See the model hub to look for\nfine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)\nto make decisions, such as sequence classification, token classification or question answering. For tasks such as text\ngeneration you should look at model like GPT2.",
"### How to use\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\n\nand in TensorFlow:",
"## Training data\n\nThe BERT model was pretrained on the 104 languages with the largest Wikipedias. You can find the complete list\nhere.",
"## Training procedure",
"### Preprocessing\n\nThe texts are lowercased and tokenized using WordPiece and a shared vocabulary size of 110,000. The languages with a\nlarger Wikipedia are under-sampled and the ones with lower resources are oversampled. For languages like Chinese,\nJapanese Kanji and Korean Hanja that don't have space, a CJK Unicode block is added around every character. \n\nThe inputs of the model are then of the form:\n\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\nThe details of the masking procedure for each sentence are the following:\n- 15% of the tokens are masked.\n- In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n- In the 10% remaining cases, the masked tokens are left as is.",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #multilingual #af #sq #ar #an #hy #ast #az #ba #eu #bar #be #bn #inc #bs #br #bg #my #ca #ceb #ce #zh #cv #hr #cs #da #nl #en #et #fi #fr #gl #ka #de #el #gu #ht #he #hi #hu #is #io #id #ga #it #ja #jv #kn #kk #ky #ko #la #lv #lt #roa #nds #lm #mk #mg #ms #ml #mr #mn #min #ne #new #nb #nn #oc #fa #pms #pl #pt #pa #ro #ru #sco #sr #scn #sk #sl #aze #es #su #sw #sv #tl #tg #th #ta #tt #te #tr #uk #ud #uz #vi #vo #war #cy #fry #pnb #yo #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"# BERT multilingual base model (cased)\n\nPretrained model on the top 104 languages with the largest Wikipedia using a masked language modeling (MLM) objective.\nIt was introduced in this paper and first released in\nthis repository. This model is case sensitive: it makes a difference\nbetween english and English.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team.",
"## Model description\n\nBERT is a transformers model pretrained on a large corpus of multilingual data in a self-supervised fashion. This means\nit was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of\npublicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it\nwas pretrained with two objectives:\n\n- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run\n the entire masked sentence through the model and has to predict the masked words. This is different from traditional\n recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like\n GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the\n sentence.\n- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes\n they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to\n predict if the two sentences were following each other or not.\n\nThis way, the model learns an inner representation of the languages in the training set that can then be used to\nextract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a\nstandard classifier using the features produced by the BERT model as inputs.",
"## Intended uses & limitations\n\nYou can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to\nbe fine-tuned on a downstream task. See the model hub to look for\nfine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)\nto make decisions, such as sequence classification, token classification or question answering. For tasks such as text\ngeneration you should look at model like GPT2.",
"### How to use\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\n\nand in TensorFlow:",
"## Training data\n\nThe BERT model was pretrained on the 104 languages with the largest Wikipedias. You can find the complete list\nhere.",
"## Training procedure",
"### Preprocessing\n\nThe texts are lowercased and tokenized using WordPiece and a shared vocabulary size of 110,000. The languages with a\nlarger Wikipedia are under-sampled and the ones with lower resources are oversampled. For languages like Chinese,\nJapanese Kanji and Korean Hanja that don't have space, a CJK Unicode block is added around every character. \n\nThe inputs of the model are then of the form:\n\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\nThe details of the masking procedure for each sentence are the following:\n- 15% of the tokens are masked.\n- In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n- In the 10% remaining cases, the masked tokens are left as is.",
"### BibTeX entry and citation info"
] | [
297,
102,
337,
134,
49,
30,
3,
279,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #multilingual #af #sq #ar #an #hy #ast #az #ba #eu #bar #be #bn #inc #bs #br #bg #my #ca #ceb #ce #zh #cv #hr #cs #da #nl #en #et #fi #fr #gl #ka #de #el #gu #ht #he #hi #hu #is #io #id #ga #it #ja #jv #kn #kk #ky #ko #la #lv #lt #roa #nds #lm #mk #mg #ms #ml #mr #mn #min #ne #new #nb #nn #oc #fa #pms #pl #pt #pa #ro #ru #sco #sr #scn #sk #sl #aze #es #su #sw #sv #tl #tg #th #ta #tt #te #tr #uk #ud #uz #vi #vo #war #cy #fry #pnb #yo #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n# BERT multilingual base model (cased)\n\nPretrained model on the top 104 languages with the largest Wikipedia using a masked language modeling (MLM) objective.\nIt was introduced in this paper and first released in\nthis repository. This model is case sensitive: it makes a difference\nbetween english and English.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team."
] | [
-0.022075358778238297,
0.01608705334365368,
-0.007717044558376074,
0.045331500470638275,
0.0017117626266553998,
0.06536892801523209,
0.11517569422721863,
0.11647817492485046,
0.057882122695446014,
0.10351107269525528,
0.11262369900941849,
0.03098299726843834,
0.1167888194322586,
0.12551552057266235,
0.024521058425307274,
-0.24044106900691986,
0.04242280498147011,
-0.029308581724762917,
-0.004795549903064966,
0.08609536290168762,
0.09188147634267807,
-0.059760887175798416,
0.10796799510717392,
-0.01536854449659586,
0.032787635922431946,
0.014982772059738636,
-0.04162256792187691,
-0.03662040829658508,
0.05660323053598404,
0.049582868814468384,
0.05275985598564148,
0.06521449983119965,
0.0892663225531578,
-0.2131739854812622,
0.023193195462226868,
0.016000326722860336,
-0.04778503626585007,
0.029782624915242195,
0.06465459614992142,
-0.05731087550520897,
0.16635607182979584,
-0.09115831553936005,
-0.02141929604113102,
0.021424174308776855,
-0.13527220487594604,
-0.2557462453842163,
-0.07343735545873642,
0.15327836573123932,
0.019895197823643684,
0.044518932700157166,
-0.055671341717243195,
0.110969677567482,
-0.06750093400478363,
0.02439500391483307,
0.16075289249420166,
-0.27141863107681274,
-0.05101227015256882,
0.08626364171504974,
0.06886298209428787,
0.031300242990255356,
-0.07758679986000061,
0.03906136751174927,
0.07261376827955246,
0.026412608101963997,
-0.010310718789696693,
-0.02881561405956745,
0.1712181717157364,
0.03743480145931244,
-0.1263609081506729,
-0.013353458605706692,
0.1576489955186844,
0.038568805903196335,
0.02369924634695053,
-0.019200991839170456,
-0.018256403505802155,
-0.05712570622563362,
-0.032409656792879105,
-0.023353014141321182,
0.02458963170647621,
0.004847208969295025,
0.12076570838689804,
0.03849237412214279,
-0.08390259742736816,
0.036127716302871704,
-0.0500912144780159,
0.06815288215875626,
0.015939176082611084,
0.022874440997838974,
-0.025296755135059357,
0.007363280281424522,
-0.11179672926664352,
-0.1469431221485138,
-0.02364569529891014,
-0.042325131595134735,
0.007270320784300566,
-0.01676340028643608,
0.05901821330189705,
0.06335119158029556,
0.08591369539499283,
0.08404408395290375,
-0.06418454647064209,
0.051931168884038925,
0.03305433318018913,
0.057437919080257416,
0.07315722107887268,
0.12062864005565643,
-0.14875946938991547,
-0.07930080592632294,
-0.07593941688537598,
0.054408326745033264,
-0.002548640128225088,
-0.003699071239680052,
-0.08179561793804169,
-0.0003727322618942708,
0.0054539889097213745,
0.014263552613556385,
0.041497550904750824,
0.06372746080160141,
-0.033404238522052765,
0.03934597223997116,
0.09545590728521347,
-0.10030854493379593,
0.014130997471511364,
0.055351629853248596,
0.01723634824156761,
0.10436860471963882,
-0.01606808416545391,
-0.009448406286537647,
-0.02474346198141575,
0.0925302505493164,
-0.05199267342686653,
-0.019558733329176903,
-0.030383944511413574,
-0.07356467843055725,
0.05791587755084038,
-0.04618676379323006,
-0.025751473382115364,
-0.07982514053583145,
-0.029528232291340828,
-0.038819219917058945,
0.03523954376578331,
-0.08266846835613251,
0.006623243913054466,
-0.05052613466978073,
-0.09467662125825882,
0.05107424408197403,
0.024137496948242188,
0.008345594629645348,
-0.07879117131233215,
0.03246106579899788,
-0.03814012557268143,
0.10054551064968109,
-0.033128757029771805,
-0.0006976210279390216,
-0.057424645870923996,
0.09067688882350922,
-0.13240543007850647,
0.023374486714601517,
-0.08401664346456528,
-0.007648974657058716,
-0.10471843183040619,
-0.10486719012260437,
-0.061846230179071426,
0.03486774489283562,
-0.021408582106232643,
0.1728893518447876,
-0.16285200417041779,
-0.07202282547950745,
0.2524266242980957,
-0.0830446407198906,
-0.06101791933178902,
0.11750558763742447,
0.026825079694390297,
0.008069781586527824,
0.042155079543590546,
0.10179725289344788,
0.05272292718291283,
-0.1184988021850586,
-0.07369033992290497,
0.045159779489040375,
0.02738608606159687,
0.1561882346868515,
0.1115865558385849,
-0.020418278872966766,
-0.022759903222322464,
0.02125895954668522,
-0.05936744809150696,
-0.012524500489234924,
-0.05339045450091362,
-0.0662001520395279,
0.03084990195930004,
-0.04553334414958954,
0.08754617720842361,
0.03860672563314438,
-0.037152744829654694,
-0.0491219125688076,
-0.09458241611719131,
-0.05724324285984039,
0.09337077289819717,
0.028500478714704514,
-0.018116576597094536,
-0.08812129497528076,
0.09998579323291779,
-0.013169236481189728,
0.006829818710684776,
-0.08222007006406784,
0.04976695775985718,
-0.0036646919324994087,
-0.009017773903906345,
0.08543071895837784,
0.11794853955507278,
0.095087930560112,
0.025306254625320435,
-0.06373504549264908,
-0.04050538316369057,
0.05724383890628815,
0.010770965367555618,
-0.01862294226884842,
-0.24221457540988922,
0.009700819849967957,
-0.049180805683135986,
0.07430766522884369,
-0.16649705171585083,
-0.0004016838502138853,
0.06675363332033157,
0.12401894479990005,
-0.007154387887567282,
0.04062386602163315,
-0.027583017945289612,
0.02818639576435089,
-0.03895276039838791,
-0.009035024791955948,
0.018902502954006195,
-0.06348131597042084,
-0.042791590094566345,
0.06336013227701187,
-0.12011339515447617,
0.07022348046302795,
0.11676718294620514,
-0.03885771334171295,
-0.09124265611171722,
0.07322651892900467,
-0.0252594742923975,
-0.000531323195900768,
0.0472656786441803,
-0.032857928425073624,
0.04856076464056969,
0.01100202463567257,
0.047907210886478424,
-0.10056819766759872,
-0.039190955460071564,
0.04189123958349228,
-0.07234179228544235,
-0.10115145891904831,
0.15181002020835876,
0.09711029380559921,
-0.2047441303730011,
0.15426185727119446,
0.1999737173318863,
0.06787488609552383,
0.22351835668087006,
0.013989618979394436,
-0.05900580435991287,
-0.0745643600821495,
-0.0026664764154702425,
0.006420148070901632,
0.10746821761131287,
-0.1045231819152832,
0.0012875280808657408,
0.012602714821696281,
-0.006688975263386965,
0.0077210683375597,
-0.07065970450639725,
-0.027423078194260597,
-0.01126514095813036,
-0.054297152906656265,
-0.012283475138247013,
0.03182075172662735,
-0.006959501188248396,
0.1353927105665207,
0.06005674973130226,
-0.0407942533493042,
-0.05906500667333603,
-0.03159976005554199,
-0.0748535767197609,
0.1719815582036972,
-0.14272737503051758,
-0.18260394036769867,
-0.06509768217802048,
-0.07154298573732376,
0.011288266628980637,
0.006861656904220581,
-0.01061372458934784,
-0.15119050443172455,
-0.04218841716647148,
-0.037396982312202454,
0.067828468978405,
-0.053109873086214066,
-0.052183326333761215,
-0.0040412722155451775,
0.005323476158082485,
0.00021750519226770848,
-0.06378582864999771,
-0.03349071368575096,
0.025634517893195152,
-0.046089448034763336,
0.043439656496047974,
-0.08243546634912491,
0.06388379633426666,
0.13829420506954193,
0.009357198141515255,
0.0209675170481205,
-0.0009598980541341007,
0.19918851554393768,
-0.11880377680063248,
0.05694550648331642,
0.013068627566099167,
-0.025384830310940742,
0.06588364392518997,
0.18317028880119324,
0.039931170642375946,
-0.04888037219643593,
-0.0549141988158226,
-0.019408270716667175,
-0.004705894738435745,
-0.18747615814208984,
-0.08829876780509949,
-0.043089546263217926,
0.07300018519163132,
0.031105846166610718,
0.06933242082595825,
-0.021774370223283768,
0.018655166029930115,
-0.05565234273672104,
-0.07846429944038391,
0.023582344874739647,
0.01019787136465311,
0.04012433812022209,
-0.03298600763082504,
0.03315090760588646,
-0.05994332954287529,
-0.05357830226421356,
0.12163941562175751,
0.033928461372852325,
-0.023844080045819283,
0.06596899032592773,
0.05055481195449829,
0.07246434688568115,
0.12199869751930237,
0.029825637117028236,
0.05060253664851189,
0.032383911311626434,
-0.010180570185184479,
-0.008744435384869576,
-0.08093459904193878,
0.028648613020777702,
0.05063624307513237,
0.08438953757286072,
0.017239518463611603,
-0.013545327819883823,
-0.006589839234948158,
0.08321583271026611,
0.09813123941421509,
0.11624660342931747,
-0.17015843093395233,
0.001924092648550868,
0.06324321031570435,
0.033775076270103455,
-0.09300210326910019,
0.022922242060303688,
0.04822427034378052,
-0.09311536699533463,
0.1604665368795395,
0.0660516694188118,
0.053898558020591736,
-0.05024207755923271,
0.03570276126265526,
0.01680559292435646,
0.008872474543750286,
-0.02089584432542324,
0.09362379461526871,
-0.1918666958808899,
0.24065238237380981,
0.030336761847138405,
-0.021500440314412117,
-0.05709846317768097,
-0.017083216458559036,
0.018007686361670494,
0.13716056942939758,
0.17376822233200073,
0.05535365641117096,
-0.10097487270832062,
-0.133444681763649,
-0.036820147186517715,
-0.006304243579506874,
0.10968802124261856,
-0.03900773078203201,
0.08810429275035858,
-0.002531917067244649,
-0.04735012352466583,
-0.01896544173359871,
0.06971026211977005,
-0.07621777802705765,
-0.08168698102235794,
0.0880771279335022,
-0.0641934722661972,
-0.04270516708493233,
-0.04159148782491684,
-0.07136154174804688,
-0.17730069160461426,
0.10258902609348297,
-0.07358043640851974,
-0.04759208858013153,
-0.07718721777200699,
-0.022106293588876724,
0.12818752229213715,
-0.11328592896461487,
-0.03526967763900757,
-0.031796377152204514,
0.05480904132127762,
-0.03073573112487793,
-0.04853224381804466,
0.05785459652543068,
-0.06111973151564598,
-0.1680000126361847,
-0.01015038788318634,
0.09689439833164215,
0.06972295045852661,
0.06752336025238037,
0.013095307163894176,
0.036260731518268585,
-0.021207645535469055,
-0.09948412328958511,
0.11411774158477783,
0.05672933906316757,
-0.014387658797204494,
0.0689956322312355,
-0.02476167492568493,
-0.15622514486312866,
-0.05115576833486557,
-0.0521392822265625,
0.04464053362607956,
0.32681694626808167,
-0.07561062276363373,
0.08440350741147995,
0.13909997045993805,
-0.09521783143281937,
-0.2640313506126404,
-0.10075298696756363,
-0.04911423847079277,
0.029849646613001823,
-0.014744316227734089,
-0.10711792856454849,
0.024126742035150528,
-0.007868282496929169,
-0.016087505966424942,
0.02337515540421009,
-0.198142871260643,
-0.08238426595926285,
0.14560715854167938,
-0.021121008321642876,
0.00770589429885149,
-0.16980105638504028,
-0.04608869552612305,
-0.05875043198466301,
-0.08399412781000137,
-0.006575380451977253,
-0.03084879368543625,
0.032091882079839706,
-0.014750519767403603,
0.0050935386680066586,
0.015663716942071915,
-0.01058790273964405,
0.17556937038898468,
-0.021602554246783257,
0.011465497314929962,
-0.10993124544620514,
-0.09139635413885117,
0.05928875505924225,
-0.0013854607241228223,
0.041747886687517166,
-0.07420524209737778,
-0.023360101506114006,
-0.05566295608878136,
-0.017979588359594345,
-0.13044869899749756,
0.04015597328543663,
-0.07051323354244232,
-0.03536397963762283,
-0.09318801760673523,
0.07341747730970383,
0.047750506550073624,
-0.004297532141208649,
0.029773954302072525,
-0.08085766434669495,
0.15063776075839996,
0.10228615999221802,
0.21115727722644806,
0.0594695620238781,
0.05207906290888786,
-0.014109251089394093,
-0.04805710166692734,
0.0008493938366882503,
-0.0987359806895256,
0.006814011838287115,
0.11302207410335541,
-0.010723276995122433,
0.09151399880647659,
0.02479856088757515,
-0.14044120907783508,
-0.05811353772878647,
0.12344913184642792,
-0.12232168763875961,
-0.20909978449344635,
-0.01615176349878311,
-0.05442960932850838,
-0.02504589408636093,
-0.057562265545129776,
0.09718489646911621,
-0.05734512209892273,
-0.01925959251821041,
-0.0002591183874756098,
0.06710231304168701,
-0.05133119970560074,
0.08891510963439941,
0.08727177232503891,
0.02653968147933483,
-0.06938007473945618,
0.06258242577314377,
0.055434755980968475,
-0.026241159066557884,
0.033600371330976486,
0.12578335404396057,
-0.05207874998450279,
-0.08117196708917618,
0.05237489566206932,
0.15509238839149475,
0.0063355290330946445,
-0.05070110410451889,
0.006541305221617222,
-0.15075671672821045,
0.05604704096913338,
0.20987218618392944,
0.026523372158408165,
0.015475344844162464,
0.06348180025815964,
-0.007844636216759682,
0.024735862389206886,
0.11050053685903549,
0.02792544662952423,
-0.01412767544388771,
-0.05148747190833092,
0.06670936942100525,
-0.03488999232649803,
0.11112770438194275,
-0.032320111989974976,
0.023476844653487206,
-0.14250239729881287,
-0.018825240433216095,
-0.14307214319705963,
0.030670875683426857,
-0.08123615384101868,
-0.02854263037443161,
-0.00790951307862997,
-0.08014006167650223,
-0.04365021735429764,
-0.06276249140501022,
-0.09852873533964157,
0.011492217890918255,
-0.011828252114355564,
0.09899409860372543,
-0.09277470409870148,
-0.01809767447412014,
0.09387888759374619,
-0.0520918108522892,
0.06449652463197708,
0.0016896576853469014,
0.0019382720347493887,
0.09095987677574158,
-0.17406979203224182,
-0.013283975422382355,
-0.002646633191034198,
0.03126021847128868,
0.010717185214161873,
-0.08852137625217438,
-0.024798177182674408,
-0.02456282079219818,
-0.021722916513681412,
0.0381292849779129,
-0.03449476882815361,
-0.013207453303039074,
0.1013348326086998,
0.014020105823874474,
-0.07227426022291183,
0.0034222451504319906,
0.05420834943652153,
0.07095349580049515,
-0.04672171548008919,
0.021403338760137558,
-0.07190592586994171,
0.045682020485401154,
-0.15894171595573425,
0.01678323559463024,
-0.03046688437461853,
-0.07981270551681519,
0.014282363466918468,
-0.03251026198267937,
0.06125250086188316,
-0.023069249466061592,
0.1600029468536377,
0.02384067513048649,
-0.07772301137447357,
0.01587621308863163,
-0.04502764344215393,
-0.07319637387990952,
0.059253569692373276,
0.07958946377038956,
0.013753100298345089,
-0.047745365649461746,
-0.08207689225673676,
-0.01023811660706997,
-0.03625549376010895,
0.0062152184545993805,
0.16309861838817596,
0.13110797107219696,
0.17028892040252686,
0.013659005984663963,
0.0475301519036293,
-0.09405623376369476,
0.016957158222794533,
-0.014080734923481941,
-0.06720622628927231,
0.016265539452433586,
-0.04519980028271675,
0.1542704999446869,
0.1875910460948944,
-0.14289361238479614,
0.057089779525995255,
-0.12426190078258514,
-0.03994844853878021,
-0.14460672438144684,
-0.1942562311887741,
-0.07041370868682861,
-0.04913795739412308,
0.018026283010840416,
-0.11632581055164337,
0.07029654830694199,
0.021022038534283638,
0.0648789256811142,
-0.02461492083966732,
0.06582840532064438,
-0.057835523039102554,
-0.036456216126680374,
0.07705166190862656,
0.032010894268751144,
-0.004445712082087994,
-0.07207086682319641,
0.03388277441263199,
-0.001822089427150786,
-0.014089223928749561,
-0.004501136485487223,
0.026836279779672623,
-0.06542881578207016,
0.007600559387356043,
-0.06118432804942131,
-0.09639618545770645,
-0.0016516121104359627,
0.007690803613513708,
0.025283241644501686,
0.07980917394161224,
0.001256932271644473,
-0.006995727773755789,
0.007339495234191418,
0.0792035385966301,
-0.04130067676305771,
-0.12792108952999115,
-0.08660619705915451,
0.12979784607887268,
-0.08457770943641663,
0.05214151740074158,
-0.009848971851170063,
-0.04278857260942459,
0.008741401135921478,
0.25523924827575684,
0.25358933210372925,
-0.03183818608522415,
0.057089101523160934,
0.005152746103703976,
0.03726547583937645,
0.028851427137851715,
0.020540326833724976,
0.06966801732778549,
0.19558730721473694,
-0.08752211183309555,
0.07163242250680923,
-0.06859496980905533,
0.03686711937189102,
-0.02898501418530941,
0.04485273361206055,
0.05249029025435448,
-0.005260672885924578,
-0.05113369598984718,
0.08103132247924805,
-0.14032526314258575,
-0.0958961695432663,
-0.023965956643223763,
-0.1503743976354599,
-0.08089150488376617,
-0.031578708440065384,
0.02583024837076664,
0.08082535862922668,
0.045488934963941574,
-0.015957694500684738,
-0.06832591444253922,
0.06753688305616379,
0.019057918339967728,
-0.1125568151473999,
-0.0103917196393013,
0.050490498542785645,
-0.0999101847410202,
0.17171163856983185,
0.006242849864065647,
0.024541061371564865,
0.11294526606798172,
-0.03193584457039833,
-0.06351039558649063,
0.024081017822027206,
0.0753755196928978,
-0.009404348209500313,
-0.037428662180900574,
0.07713616639375687,
0.0011934470385313034,
-0.009382868185639381,
0.0974220484495163,
-0.03851068764925003,
0.048894982784986496,
0.08423586189746857,
-0.045764874666929245,
-0.023530075326561928,
0.14571796357631683,
-0.09229318052530289,
0.13479802012443542,
0.1662214696407318,
-0.019450033083558083,
-0.03558516502380371,
-0.02188963256776333,
0.033655982464551926,
-0.04101874306797981,
0.05778970196843147,
-0.013784101232886314,
-0.0904078409075737,
-0.019948789849877357,
-0.06629155576229095,
0.07750729471445084,
-0.1424783170223236,
-0.03665636479854584,
-0.028929218649864197,
0.02912173978984356,
-0.07925546914339066,
0.10857106745243073,
0.09420032054185867,
0.026917526498436928,
-0.04312257841229439,
-0.08198567479848862,
0.009129075333476067,
0.13005898892879486,
-0.09789595752954483,
-0.030372511595487595
] |
null | null | transformers |
# BERT multilingual base model (uncased)
Pretrained model on the top 102 languages with the largest Wikipedia using a masked language modeling (MLM) objective.
It was introduced in [this paper](https://arxiv.org/abs/1810.04805) and first released in
[this repository](https://github.com/google-research/bert). This model is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of multilingual data in a self-supervised fashion. This means
it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the languages in the training set that can then be used to
extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a
standard classifier using the features produced by the BERT model as inputs.
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=bert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-base-multilingual-uncased')
>>> unmasker("Hello I'm a [MASK] model.")
[{'sequence': "[CLS] hello i'm a top model. [SEP]",
'score': 0.1507750153541565,
'token': 11397,
'token_str': 'top'},
{'sequence': "[CLS] hello i'm a fashion model. [SEP]",
'score': 0.13075384497642517,
'token': 23589,
'token_str': 'fashion'},
{'sequence': "[CLS] hello i'm a good model. [SEP]",
'score': 0.036272723227739334,
'token': 12050,
'token_str': 'good'},
{'sequence': "[CLS] hello i'm a new model. [SEP]",
'score': 0.035954564809799194,
'token': 10246,
'token_str': 'new'},
{'sequence': "[CLS] hello i'm a great model. [SEP]",
'score': 0.028643041849136353,
'token': 11838,
'token_str': 'great'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import BertTokenizer, BertModel
tokenizer = BertTokenizer.from_pretrained('bert-base-multilingual-uncased')
model = BertModel.from_pretrained("bert-base-multilingual-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('bert-base-multilingual-uncased')
model = TFBertModel.from_pretrained("bert-base-multilingual-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-base-multilingual-uncased')
>>> unmasker("The man worked as a [MASK].")
[{'sequence': '[CLS] the man worked as a teacher. [SEP]',
'score': 0.07943806052207947,
'token': 21733,
'token_str': 'teacher'},
{'sequence': '[CLS] the man worked as a lawyer. [SEP]',
'score': 0.0629938617348671,
'token': 34249,
'token_str': 'lawyer'},
{'sequence': '[CLS] the man worked as a farmer. [SEP]',
'score': 0.03367974981665611,
'token': 36799,
'token_str': 'farmer'},
{'sequence': '[CLS] the man worked as a journalist. [SEP]',
'score': 0.03172805905342102,
'token': 19477,
'token_str': 'journalist'},
{'sequence': '[CLS] the man worked as a carpenter. [SEP]',
'score': 0.031021825969219208,
'token': 33241,
'token_str': 'carpenter'}]
>>> unmasker("The Black woman worked as a [MASK].")
[{'sequence': '[CLS] the black woman worked as a nurse. [SEP]',
'score': 0.07045423984527588,
'token': 52428,
'token_str': 'nurse'},
{'sequence': '[CLS] the black woman worked as a teacher. [SEP]',
'score': 0.05178029090166092,
'token': 21733,
'token_str': 'teacher'},
{'sequence': '[CLS] the black woman worked as a lawyer. [SEP]',
'score': 0.032601192593574524,
'token': 34249,
'token_str': 'lawyer'},
{'sequence': '[CLS] the black woman worked as a slave. [SEP]',
'score': 0.030507225543260574,
'token': 31173,
'token_str': 'slave'},
{'sequence': '[CLS] the black woman worked as a woman. [SEP]',
'score': 0.027691684663295746,
'token': 14050,
'token_str': 'woman'}]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The BERT model was pretrained on the 102 languages with the largest Wikipedias. You can find the complete list
[here](https://github.com/google-research/bert/blob/master/multilingual.md#list-of-languages).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a shared vocabulary size of 110,000. The languages with a
larger Wikipedia are under-sampled and the ones with lower resources are oversampled. For languages like Chinese,
Japanese Kanji and Korean Hanja that don't have space, a CJK Unicode block is added around every character.
The inputs of the model are then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1810-04805,
author = {Jacob Devlin and
Ming{-}Wei Chang and
Kenton Lee and
Kristina Toutanova},
title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language
Understanding},
journal = {CoRR},
volume = {abs/1810.04805},
year = {2018},
url = {http://arxiv.org/abs/1810.04805},
archivePrefix = {arXiv},
eprint = {1810.04805},
timestamp = {Tue, 30 Oct 2018 20:39:56 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
| {"language": ["multilingual", "af", "sq", "ar", "an", "hy", "ast", "az", "ba", "eu", "bar", "be", "bn", "inc", "bs", "br", "bg", "my", "ca", "ceb", "ce", "zh", "cv", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "gl", "ka", "de", "el", "gu", "ht", "he", "hi", "hu", "is", "io", "id", "ga", "it", "ja", "jv", "kn", "kk", "ky", "ko", "la", "lv", "lt", "roa", "nds", "lm", "mk", "mg", "ms", "ml", "mr", "min", "ne", "new", "nb", "nn", "oc", "fa", "pms", "pl", "pt", "pa", "ro", "ru", "sco", "sr", "hr", "scn", "sk", "sl", "aze", "es", "su", "sw", "sv", "tl", "tg", "ta", "tt", "te", "tr", "uk", "ud", "uz", "vi", "vo", "war", "cy", "fry", "pnb", "yo"], "license": "apache-2.0", "datasets": ["wikipedia"]} | fill-mask | google-bert/bert-base-multilingual-uncased | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"multilingual",
"af",
"sq",
"ar",
"an",
"hy",
"ast",
"az",
"ba",
"eu",
"bar",
"be",
"bn",
"inc",
"bs",
"br",
"bg",
"my",
"ca",
"ceb",
"ce",
"zh",
"cv",
"hr",
"cs",
"da",
"nl",
"en",
"et",
"fi",
"fr",
"gl",
"ka",
"de",
"el",
"gu",
"ht",
"he",
"hi",
"hu",
"is",
"io",
"id",
"ga",
"it",
"ja",
"jv",
"kn",
"kk",
"ky",
"ko",
"la",
"lv",
"lt",
"roa",
"nds",
"lm",
"mk",
"mg",
"ms",
"ml",
"mr",
"min",
"ne",
"new",
"nb",
"nn",
"oc",
"fa",
"pms",
"pl",
"pt",
"pa",
"ro",
"ru",
"sco",
"sr",
"scn",
"sk",
"sl",
"aze",
"es",
"su",
"sw",
"sv",
"tl",
"tg",
"ta",
"tt",
"te",
"tr",
"uk",
"ud",
"uz",
"vi",
"vo",
"war",
"cy",
"fry",
"pnb",
"yo",
"dataset:wikipedia",
"arxiv:1810.04805",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1810.04805"
] | [
"multilingual",
"af",
"sq",
"ar",
"an",
"hy",
"ast",
"az",
"ba",
"eu",
"bar",
"be",
"bn",
"inc",
"bs",
"br",
"bg",
"my",
"ca",
"ceb",
"ce",
"zh",
"cv",
"hr",
"cs",
"da",
"nl",
"en",
"et",
"fi",
"fr",
"gl",
"ka",
"de",
"el",
"gu",
"ht",
"he",
"hi",
"hu",
"is",
"io",
"id",
"ga",
"it",
"ja",
"jv",
"kn",
"kk",
"ky",
"ko",
"la",
"lv",
"lt",
"roa",
"nds",
"lm",
"mk",
"mg",
"ms",
"ml",
"mr",
"min",
"ne",
"new",
"nb",
"nn",
"oc",
"fa",
"pms",
"pl",
"pt",
"pa",
"ro",
"ru",
"sco",
"sr",
"hr",
"scn",
"sk",
"sl",
"aze",
"es",
"su",
"sw",
"sv",
"tl",
"tg",
"ta",
"tt",
"te",
"tr",
"uk",
"ud",
"uz",
"vi",
"vo",
"war",
"cy",
"fry",
"pnb",
"yo"
] | TAGS
#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #multilingual #af #sq #ar #an #hy #ast #az #ba #eu #bar #be #bn #inc #bs #br #bg #my #ca #ceb #ce #zh #cv #hr #cs #da #nl #en #et #fi #fr #gl #ka #de #el #gu #ht #he #hi #hu #is #io #id #ga #it #ja #jv #kn #kk #ky #ko #la #lv #lt #roa #nds #lm #mk #mg #ms #ml #mr #min #ne #new #nb #nn #oc #fa #pms #pl #pt #pa #ro #ru #sco #sr #scn #sk #sl #aze #es #su #sw #sv #tl #tg #ta #tt #te #tr #uk #ud #uz #vi #vo #war #cy #fry #pnb #yo #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
|
# BERT multilingual base model (uncased)
Pretrained model on the top 102 languages with the largest Wikipedia using a masked language modeling (MLM) objective.
It was introduced in this paper and first released in
this repository. This model is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of multilingual data in a self-supervised fashion. This means
it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the languages in the training set that can then be used to
extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a
standard classifier using the features produced by the BERT model as inputs.
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
## Training data
The BERT model was pretrained on the 102 languages with the largest Wikipedias. You can find the complete list
here.
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a shared vocabulary size of 110,000. The languages with a
larger Wikipedia are under-sampled and the ones with lower resources are oversampled. For languages like Chinese,
Japanese Kanji and Korean Hanja that don't have space, a CJK Unicode block is added around every character.
The inputs of the model are then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by '[MASK]'.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### BibTeX entry and citation info
| [
"# BERT multilingual base model (uncased)\n\nPretrained model on the top 102 languages with the largest Wikipedia using a masked language modeling (MLM) objective.\nIt was introduced in this paper and first released in\nthis repository. This model is uncased: it does not make a difference\nbetween english and English.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team.",
"## Model description\n\nBERT is a transformers model pretrained on a large corpus of multilingual data in a self-supervised fashion. This means\nit was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of\npublicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it\nwas pretrained with two objectives:\n\n- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run\n the entire masked sentence through the model and has to predict the masked words. This is different from traditional\n recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like\n GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the\n sentence.\n- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes\n they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to\n predict if the two sentences were following each other or not.\n\nThis way, the model learns an inner representation of the languages in the training set that can then be used to\nextract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a\nstandard classifier using the features produced by the BERT model as inputs.",
"## Intended uses & limitations\n\nYou can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to\nbe fine-tuned on a downstream task. See the model hub to look for\nfine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)\nto make decisions, such as sequence classification, token classification or question answering. For tasks such as text\ngeneration you should look at model like GPT2.",
"### How to use\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\n\nand in TensorFlow:",
"### Limitations and bias\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\n\nThis bias will also affect all fine-tuned versions of this model.",
"## Training data\n\nThe BERT model was pretrained on the 102 languages with the largest Wikipedias. You can find the complete list\nhere.",
"## Training procedure",
"### Preprocessing\n\nThe texts are lowercased and tokenized using WordPiece and a shared vocabulary size of 110,000. The languages with a\nlarger Wikipedia are under-sampled and the ones with lower resources are oversampled. For languages like Chinese,\nJapanese Kanji and Korean Hanja that don't have space, a CJK Unicode block is added around every character. \n\nThe inputs of the model are then of the form:\n\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\nThe details of the masking procedure for each sentence are the following:\n- 15% of the tokens are masked.\n- In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n- In the 10% remaining cases, the masked tokens are left as is.",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #multilingual #af #sq #ar #an #hy #ast #az #ba #eu #bar #be #bn #inc #bs #br #bg #my #ca #ceb #ce #zh #cv #hr #cs #da #nl #en #et #fi #fr #gl #ka #de #el #gu #ht #he #hi #hu #is #io #id #ga #it #ja #jv #kn #kk #ky #ko #la #lv #lt #roa #nds #lm #mk #mg #ms #ml #mr #min #ne #new #nb #nn #oc #fa #pms #pl #pt #pa #ro #ru #sco #sr #scn #sk #sl #aze #es #su #sw #sv #tl #tg #ta #tt #te #tr #uk #ud #uz #vi #vo #war #cy #fry #pnb #yo #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"# BERT multilingual base model (uncased)\n\nPretrained model on the top 102 languages with the largest Wikipedia using a masked language modeling (MLM) objective.\nIt was introduced in this paper and first released in\nthis repository. This model is uncased: it does not make a difference\nbetween english and English.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team.",
"## Model description\n\nBERT is a transformers model pretrained on a large corpus of multilingual data in a self-supervised fashion. This means\nit was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of\npublicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it\nwas pretrained with two objectives:\n\n- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run\n the entire masked sentence through the model and has to predict the masked words. This is different from traditional\n recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like\n GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the\n sentence.\n- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes\n they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to\n predict if the two sentences were following each other or not.\n\nThis way, the model learns an inner representation of the languages in the training set that can then be used to\nextract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a\nstandard classifier using the features produced by the BERT model as inputs.",
"## Intended uses & limitations\n\nYou can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to\nbe fine-tuned on a downstream task. See the model hub to look for\nfine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)\nto make decisions, such as sequence classification, token classification or question answering. For tasks such as text\ngeneration you should look at model like GPT2.",
"### How to use\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\n\nand in TensorFlow:",
"### Limitations and bias\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\n\nThis bias will also affect all fine-tuned versions of this model.",
"## Training data\n\nThe BERT model was pretrained on the 102 languages with the largest Wikipedias. You can find the complete list\nhere.",
"## Training procedure",
"### Preprocessing\n\nThe texts are lowercased and tokenized using WordPiece and a shared vocabulary size of 110,000. The languages with a\nlarger Wikipedia are under-sampled and the ones with lower resources are oversampled. For languages like Chinese,\nJapanese Kanji and Korean Hanja that don't have space, a CJK Unicode block is added around every character. \n\nThe inputs of the model are then of the form:\n\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\nThe details of the masking procedure for each sentence are the following:\n- 15% of the tokens are masked.\n- In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n- In the 10% remaining cases, the masked tokens are left as is.",
"### BibTeX entry and citation info"
] | [
289,
106,
337,
134,
49,
50,
30,
3,
279,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #multilingual #af #sq #ar #an #hy #ast #az #ba #eu #bar #be #bn #inc #bs #br #bg #my #ca #ceb #ce #zh #cv #hr #cs #da #nl #en #et #fi #fr #gl #ka #de #el #gu #ht #he #hi #hu #is #io #id #ga #it #ja #jv #kn #kk #ky #ko #la #lv #lt #roa #nds #lm #mk #mg #ms #ml #mr #min #ne #new #nb #nn #oc #fa #pms #pl #pt #pa #ro #ru #sco #sr #scn #sk #sl #aze #es #su #sw #sv #tl #tg #ta #tt #te #tr #uk #ud #uz #vi #vo #war #cy #fry #pnb #yo #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n# BERT multilingual base model (uncased)\n\nPretrained model on the top 102 languages with the largest Wikipedia using a masked language modeling (MLM) objective.\nIt was introduced in this paper and first released in\nthis repository. This model is uncased: it does not make a difference\nbetween english and English.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team.",
"passage: ## Model description\n\nBERT is a transformers model pretrained on a large corpus of multilingual data in a self-supervised fashion. This means\nit was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of\npublicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it\nwas pretrained with two objectives:\n\n- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run\n the entire masked sentence through the model and has to predict the masked words. This is different from traditional\n recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like\n GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the\n sentence.\n- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes\n they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to\n predict if the two sentences were following each other or not.\n\nThis way, the model learns an inner representation of the languages in the training set that can then be used to\nextract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a\nstandard classifier using the features produced by the BERT model as inputs.## Intended uses & limitations\n\nYou can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to\nbe fine-tuned on a downstream task. See the model hub to look for\nfine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)\nto make decisions, such as sequence classification, token classification or question answering. For tasks such as text\ngeneration you should look at model like GPT2.### How to use\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\n\nand in TensorFlow:### Limitations and bias\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\n\nThis bias will also affect all fine-tuned versions of this model.## Training data\n\nThe BERT model was pretrained on the 102 languages with the largest Wikipedias. You can find the complete list\nhere.## Training procedure"
] | [
-0.04506697505712509,
0.019510483369231224,
-0.006525009870529175,
0.04769153147935867,
0.03832884132862091,
0.018402863293886185,
0.12055961787700653,
0.06761486083269119,
-0.008578114211559296,
0.08179935812950134,
0.07023584097623825,
0.0016820449382066727,
0.09165377914905548,
0.11103671789169312,
0.06331594288349152,
-0.29069244861602783,
0.05303286015987396,
-0.07764901965856552,
-0.008458334021270275,
0.07237811386585236,
0.10184454917907715,
-0.054183654487133026,
0.08198317885398865,
0.00498918816447258,
-0.004576642997562885,
-0.00956517644226551,
-0.010197797790169716,
-0.03843950480222702,
0.060707077383995056,
0.08728361129760742,
0.0706566572189331,
0.0032921358942985535,
0.07864771783351898,
-0.15483440458774567,
0.020354749634861946,
0.05047944188117981,
-0.03259873017668724,
0.03727853298187256,
0.03943290933966637,
-0.036375027149915695,
0.16114541888237,
-0.05561087653040886,
0.031205568462610245,
0.0372687429189682,
-0.13482442498207092,
-0.12532247602939606,
-0.06277221441268921,
0.10156555473804474,
0.07710432261228561,
0.040321849286556244,
-0.04590314254164696,
0.07303474843502045,
-0.03404668718576431,
0.043748412281274796,
0.09665681421756744,
-0.21193988621234894,
-0.03511444479227066,
0.04040924459695816,
0.0349300280213356,
0.009489050135016441,
-0.03143294155597687,
0.03145424649119377,
0.014401860535144806,
0.023533310741186142,
0.006061042658984661,
-0.017344169318675995,
0.15743574500083923,
-0.031252723187208176,
-0.12828907370567322,
-0.01953345350921154,
0.11886590719223022,
0.02299770526587963,
-0.06507712602615356,
-0.07786796987056732,
-0.03492162376642227,
0.058400142937898636,
-0.026780370622873306,
-0.02524668350815773,
0.006220986135303974,
0.015751516446471214,
0.06647854298353195,
-0.03715590760111809,
-0.09063874185085297,
-0.001771649345755577,
-0.03271278366446495,
0.12133361399173737,
0.020326636731624603,
0.0173642560839653,
-0.04869447275996208,
0.03289899230003357,
-0.12034013122320175,
-0.08269670605659485,
-0.05174284055829048,
-0.061621423810720444,
-0.05559014901518822,
-0.0035018068738281727,
0.011414920911192894,
-0.05757026746869087,
-0.022187281399965286,
0.11696898937225342,
-0.03681541606783867,
0.041563116014003754,
-0.0017392486333847046,
0.039790064096450806,
0.08750882744789124,
0.1154462993144989,
-0.1011122539639473,
-0.006953831762075424,
-0.02205623686313629,
0.005852156318724155,
0.028781605884432793,
-0.04805687069892883,
-0.08023905754089355,
0.04611942917108536,
-0.023115022107958794,
0.020862240344285965,
0.03844214603304863,
0.047760702669620514,
-0.026160262525081635,
-0.02349819615483284,
0.09554250538349152,
-0.1024729311466217,
0.02161109820008278,
0.03471162170171738,
0.0009301425889134407,
0.05112578719854355,
0.018233604729175568,
-0.010001324117183685,
-0.05093010514974594,
0.028525175526738167,
-0.04524824768304825,
-0.02773085981607437,
-0.06151589751243591,
-0.1176467090845108,
0.01590690016746521,
-0.020420290529727936,
-0.03655000030994415,
-0.10089845955371857,
-0.09127376973628998,
-0.0412142276763916,
0.058776892721652985,
-0.0623636357486248,
0.020722970366477966,
-0.046216703951358795,
-0.06677562743425369,
0.009781035594642162,
0.04559621214866638,
-0.04087810963392258,
-0.021985094994306564,
-0.008903613314032555,
-0.04275408014655113,
0.060955341905355453,
-0.028126630932092667,
0.008536553010344505,
-0.05631731450557709,
0.05328848212957382,
-0.1884881854057312,
0.10777728259563446,
-0.04428006708621979,
-0.03760078176856041,
-0.08166280388832092,
-0.06563279777765274,
-0.04978848993778229,
0.051611848175525665,
-0.003586024511605501,
0.15053126215934753,
-0.20494818687438965,
-0.06877510249614716,
0.23525436222553253,
-0.11738486588001251,
0.00922953337430954,
0.12195610255002975,
-0.034714069217443466,
0.060136664658784866,
0.10176895558834076,
0.07868155837059021,
0.07757891714572906,
-0.0679069459438324,
-0.030597064644098282,
0.032451413571834564,
-0.022348517552018166,
0.16521278023719788,
0.08989784121513367,
-0.020777983590960503,
-0.036820996552705765,
0.003967382945120335,
-0.0731559470295906,
-0.02977011166512966,
-0.012102970853447914,
-0.05729331821203232,
0.05507110059261322,
-0.012729880400002003,
0.05532165616750717,
0.011663427576422691,
-0.026539074257016182,
-0.02140306867659092,
-0.11578162014484406,
-0.018376905471086502,
0.08045259863138199,
-0.05534137412905693,
0.012688372284173965,
-0.11027441918849945,
0.0633712038397789,
-0.011362508870661259,
0.010272275656461716,
-0.12275304645299911,
-0.0023859385401010513,
0.016774475574493408,
-0.050834398716688156,
0.10813345015048981,
0.07170902192592621,
0.054394278675317764,
0.08657032251358032,
-0.03602360188961029,
-0.009254741482436657,
0.0064670629799366,
-0.009366216138005257,
-0.040353380143642426,
-0.20367969572544098,
-0.026515036821365356,
-0.06308417022228241,
0.11152911931276321,
-0.14108185470104218,
0.010930116288363934,
-0.003366917371749878,
0.043188609182834625,
0.011663969606161118,
-0.012883339077234268,
-0.015188262797892094,
0.008121724240481853,
-0.0335700586438179,
-0.020815139636397362,
0.020512375980615616,
-0.01928691752254963,
-0.07455286383628845,
0.06844276189804077,
-0.16369964182376862,
-0.09153318405151367,
0.057155855000019073,
-0.01990605518221855,
-0.09390795975923538,
0.05832287296652794,
-0.0021306145936250687,
-0.013166622258722782,
0.009127093479037285,
-0.051368050277233124,
0.16459548473358154,
0.010691611096262932,
0.05760154128074646,
-0.09768471866846085,
-0.007209176197648048,
0.03428751975297928,
-0.06377116590738297,
-0.059413842856884,
0.10469131171703339,
0.06718079745769501,
-0.20762313902378082,
0.06105254963040352,
0.07614558935165405,
0.06302283704280853,
0.17820970714092255,
0.0421651154756546,
-0.060893118381500244,
-0.06479589641094208,
0.009115450084209442,
0.022411301732063293,
0.07039345055818558,
-0.04703038930892944,
-0.0023859196808189154,
0.011354663409292698,
0.025696098804473877,
0.01642681285738945,
-0.05805197358131409,
0.024398822337388992,
0.02542562037706375,
-0.035589177161455154,
-0.03255658596754074,
-0.03281926363706589,
-0.03540513664484024,
0.09047858417034149,
0.06763892620801926,
-0.021799717098474503,
-0.02130701020359993,
-0.04282538965344429,
-0.11592093110084534,
0.18581491708755493,
-0.1329784095287323,
-0.2428407073020935,
-0.10782855749130249,
-0.0611436627805233,
-0.011365019716322422,
0.042855992913246155,
-0.005398125387728214,
-0.08829887211322784,
-0.05496029183268547,
-0.08041609078645706,
0.07824695855379105,
-0.03544047474861145,
-0.058625806123018265,
-0.020580308511853218,
-0.008524205535650253,
-0.011264035478234291,
-0.09161566942930222,
-0.011806946247816086,
-0.005372187122702599,
-0.07602749764919281,
0.018978605046868324,
-0.055670082569122314,
0.04482583329081535,
0.15287461876869202,
0.0145814698189497,
-0.005646185018122196,
-0.006576873362064362,
0.1774398535490036,
-0.07049078494310379,
0.08366859704256058,
0.05146566778421402,
-0.05832936242222786,
0.06365593522787094,
0.12122007459402084,
0.023946838453412056,
-0.054991014301776886,
-0.0064879488199949265,
0.00031901663169264793,
-0.06738465279340744,
-0.1638665646314621,
-0.08629201352596283,
-0.028499780222773552,
0.03289875015616417,
0.04329020902514458,
0.033156029880046844,
0.00010317377746105194,
0.01678069680929184,
-0.05816883593797684,
-0.01854272000491619,
0.0577114075422287,
0.0483364462852478,
-0.017436081543564796,
-0.04531078785657883,
0.06781423091888428,
-0.04009303078055382,
-0.022182852029800415,
0.0921928808093071,
-0.009891325607895851,
0.08152427524328232,
0.03773466497659683,
0.08420178294181824,
0.07630246877670288,
0.030989546328783035,
0.03478574752807617,
0.05998646467924118,
-0.02237422950565815,
0.015006509609520435,
-0.038170747458934784,
-0.08153115212917328,
-0.022880971431732178,
0.07734420895576477,
0.05410141497850418,
0.001469181850552559,
-0.05893326178193092,
0.07487600296735764,
0.03715069219470024,
0.10627102106809616,
0.10207748413085938,
-0.14108824729919434,
-0.058205220848321915,
0.05963575839996338,
0.00797925516963005,
-0.08817566931247711,
0.013604511506855488,
0.07780413329601288,
-0.1062324047088623,
0.0794772133231163,
0.020888429135084152,
0.06391122937202454,
-0.07326005399227142,
0.030663996934890747,
-0.02479088492691517,
0.051642321050167084,
-0.007284278981387615,
0.08515344560146332,
-0.13293203711509705,
0.16206683218479156,
0.02363733947277069,
0.056511376053094864,
-0.06282979995012283,
0.012236416339874268,
0.003358614630997181,
0.06154799461364746,
0.1579415202140808,
0.05079055577516556,
-0.08824042975902557,
-0.07909556478261948,
-0.07146082073450089,
0.014124264009296894,
0.11268725246191025,
-0.062322359532117844,
0.08821586519479752,
0.0004895052406936884,
-0.02346179261803627,
-0.006155934184789658,
0.025434622541069984,
-0.09978422522544861,
-0.12107992172241211,
0.07971450686454773,
-0.10542847216129303,
-0.03974549472332001,
-0.04421231523156166,
-0.035357944667339325,
-0.08625927567481995,
0.16499395668506622,
-0.1277468204498291,
-0.05707026273012161,
-0.07333863526582718,
-0.0015516793355345726,
0.08232833445072174,
-0.1025863066315651,
0.0035773981362581253,
-0.018103551119565964,
0.1021779328584671,
-0.029193254187703133,
-0.06907543540000916,
0.05237341672182083,
-0.07531437277793884,
-0.13978077471256256,
-0.027765601873397827,
0.0968756228685379,
0.1322707235813141,
0.05739521235227585,
0.038702718913555145,
0.0380830354988575,
0.020179711282253265,
-0.113575279712677,
0.037740565836429596,
0.10210868716239929,
-0.029369063675403595,
0.10327973961830139,
-0.04924516752362251,
-0.09306579828262329,
-0.0714770182967186,
0.010565454140305519,
0.0852685198187828,
0.22613471746444702,
-0.06128349527716637,
0.12951861321926117,
0.21678456664085388,
-0.10477081686258316,
-0.22851334512233734,
-0.0591227188706398,
0.004077037796378136,
0.05680201202630997,
0.004494408145546913,
-0.19889765977859497,
0.04954596236348152,
-0.003037738148123026,
-0.001377750188112259,
-0.031344395130872726,
-0.20525094866752625,
-0.09835883975028992,
0.11720211803913116,
0.003946197684854269,
0.036387041211128235,
-0.09160466492176056,
-0.03989294171333313,
-0.03722645342350006,
0.007562741637229919,
0.06341740489006042,
-0.045710060745477676,
0.060451820492744446,
0.028383027762174606,
-0.004082913510501385,
0.022153839468955994,
-0.00044368626549839973,
0.13198716938495636,
-0.007740412373095751,
0.01862284354865551,
-0.08020178973674774,
-0.042010001838207245,
0.08407262712717056,
-0.03214292600750923,
0.07938789576292038,
0.013721391558647156,
0.01766039803624153,
-0.05179082229733467,
-0.038596879690885544,
-0.08367858827114105,
0.0383794829249382,
-0.06362239271402359,
-0.04615023732185364,
-0.05385677516460419,
0.07816110551357269,
0.052555620670318604,
0.01257109735161066,
0.014456979930400848,
-0.07304008305072784,
0.07192116230726242,
0.06421911716461182,
0.1982528269290924,
0.04276379197835922,
0.0022203903645277023,
-0.009507447481155396,
-0.027421142905950546,
0.044580258429050446,
-0.0860053077340126,
0.035039179027080536,
0.05963077023625374,
0.0050056627951562405,
0.10657640546560287,
0.030103057622909546,
-0.1669917106628418,
-0.014743786305189133,
0.0799073874950409,
-0.09516321867704391,
-0.18353457748889923,
-0.014856189489364624,
0.00810370035469532,
-0.06958188116550446,
-0.011957304552197456,
0.14718881249427795,
-0.051258690655231476,
-0.012252289801836014,
-0.009367626160383224,
0.07014912366867065,
-0.03975092992186546,
0.06115897744894028,
0.06008867174386978,
0.01227912213653326,
-0.06654392927885056,
0.058580432087183,
0.04702462628483772,
-0.011666767299175262,
0.06570775806903839,
0.1085047498345375,
-0.06352584064006805,
-0.0734400674700737,
-0.03293952718377113,
0.11112360656261444,
0.015250391326844692,
-0.04612661898136139,
0.034741971641778946,
-0.10231569409370422,
0.04156409949064255,
0.1322876513004303,
0.0062221018597483635,
0.026921313256025314,
-0.035484399646520615,
0.031237386167049408,
-0.02285934053361416,
0.06763138622045517,
0.02287992462515831,
-0.022948648780584335,
-0.023969309404492378,
0.0982433408498764,
0.0043595097959041595,
0.07660891860723495,
-0.029156241565942764,
-0.0482637993991375,
-0.11993461102247238,
-0.010256532579660416,
-0.09508110582828522,
0.011663036420941353,
-0.06816495209932327,
-0.018241124227643013,
0.0006730430759489536,
-0.010739706456661224,
-0.0011512506753206253,
-0.019063761457800865,
-0.05587121471762657,
-0.014010383747518063,
-0.04101730138063431,
0.05510381981730461,
-0.09633331000804901,
0.013893038965761662,
0.05769498646259308,
-0.05573514103889465,
0.07644440978765488,
0.01667320355772972,
-0.005955960601568222,
0.08182733505964279,
-0.1194443553686142,
0.018912745639681816,
-0.02115224115550518,
0.02029799297451973,
0.005787166766822338,
-0.1120966225862503,
-0.011818581260740757,
-0.03083520382642746,
-0.018863100558519363,
0.005971943028271198,
0.028197120875120163,
-0.03287352994084358,
0.12930679321289062,
0.033559225499629974,
-0.053946904838085175,
-0.0495155043900013,
0.08592057973146439,
-0.01731492578983307,
0.002039758488535881,
0.05008741840720177,
-0.035758163779973984,
0.053005728870630264,
-0.10836238414049149,
0.0011542951688170433,
-0.00554290134459734,
-0.01706583797931671,
0.016076501458883286,
-0.05013544112443924,
0.04041316360235214,
-0.01815848797559738,
0.09152023494243622,
0.022787515074014664,
-0.017269883304834366,
0.006723552942276001,
-0.03375626355409622,
-0.040518149733543396,
0.04168941080570221,
0.022862795740365982,
0.02094736322760582,
-0.04105310142040253,
-0.06088341027498245,
0.009864076972007751,
-0.025086533278226852,
-0.0022739809937775135,
0.14481300115585327,
0.06952014565467834,
0.1471174955368042,
0.05478031933307648,
0.042350925505161285,
-0.044572994112968445,
-0.07339438050985336,
-0.01339114923030138,
-0.03255143016576767,
0.019838225096464157,
-0.028095215559005737,
0.07099279016256332,
0.14589929580688477,
-0.11771135777235031,
0.08540129661560059,
-0.027588721364736557,
-0.0646766722202301,
-0.13652025163173676,
-0.24390029907226562,
-0.03691469877958298,
0.016649385914206505,
-0.00643341988325119,
-0.11805783957242966,
0.03592819720506668,
0.011414051987230778,
0.04129910096526146,
-0.01792242005467415,
0.06755703687667847,
-0.10298720002174377,
-0.05671173334121704,
0.05956677347421646,
0.013087892904877663,
0.0290618147701025,
0.03394343703985214,
0.023719817399978638,
0.0174239668995142,
0.05035697668790817,
0.039167165756225586,
0.04771982878446579,
0.028476133942604065,
0.03146154433488846,
-0.05082978308200836,
-0.09313229471445084,
-0.012143990024924278,
-0.011068049818277359,
0.018350470811128616,
0.12062948942184448,
0.02531271241605282,
-0.06122681498527527,
0.014740245416760445,
0.10235780477523804,
-0.053776659071445465,
-0.09341771900653839,
-0.13559073209762573,
0.22291269898414612,
-0.04388653486967087,
0.05034922808408737,
-0.026033451780676842,
-0.06962814182043076,
0.015352378599345684,
0.19954630732536316,
0.2507701814174652,
-0.03056679293513298,
0.023781245574355125,
0.003507481887936592,
0.02001851797103882,
0.005445373244583607,
0.09144547581672668,
0.010904014110565186,
0.269491046667099,
-0.04543333128094673,
0.10552439093589783,
-0.03558460623025894,
-0.009043751284480095,
-0.04917474091053009,
0.04607280716300011,
0.023711394518613815,
0.0072063240222632885,
-0.03642834722995758,
0.09537127614021301,
-0.10956867784261703,
-0.178157776594162,
-0.045169051736593246,
-0.0645642876625061,
-0.06764307618141174,
-0.007965430617332458,
-0.023907028138637543,
0.06311365962028503,
0.08990935981273651,
-0.0017446225974708796,
-0.04029073938727379,
0.10289308428764343,
0.028639964759349823,
-0.06553422659635544,
-0.01066279225051403,
0.06584382057189941,
-0.05595492944121361,
0.1582668423652649,
0.021171262487769127,
0.03942306339740753,
0.10507269203662872,
-0.0002570534124970436,
-0.05972497537732124,
0.01189342886209488,
0.01477847620844841,
0.00025872443802654743,
-0.00973504688590765,
0.140299454331398,
-0.018984884023666382,
0.05391121655702591,
0.07903062552213669,
-0.06103090941905975,
0.053882308304309845,
0.004871681332588196,
-0.05478810891509056,
-0.04130278527736664,
0.1313517987728119,
-0.09611919522285461,
0.13283884525299072,
0.1731310337781906,
-0.011373292654752731,
-0.031574271619319916,
-0.021646840497851372,
0.026680346578359604,
-0.032908111810684204,
0.07412854582071304,
-0.023904860019683838,
-0.10811761766672134,
-0.021258806809782982,
-0.042142029851675034,
0.06668906658887863,
-0.20809310674667358,
-0.04849470406770706,
0.02281038463115692,
0.01647362858057022,
-0.02049335092306137,
0.09582982957363129,
0.07870174944400787,
0.025419512763619423,
-0.04711247235536575,
-0.03625456243753433,
0.001142190769314766,
0.08661013096570969,
-0.09006208926439285,
-0.05752606689929962
] |
null | null | transformers |
# BERT base model (uncased)
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1810.04805) and first released in
[this repository](https://github.com/google-research/bert). This model is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labeling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally masks the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences, for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
## Model variations
BERT has originally been released in base and large variations, for cased and uncased input text. The uncased models also strips out an accent markers.
Chinese and multilingual uncased and cased versions followed shortly after.
Modified preprocessing with whole word masking has replaced subpiece masking in a following work, with the release of two models.
Other 24 smaller models are released afterward.
The detailed release history can be found on the [google-research/bert readme](https://github.com/google-research/bert/blob/master/README.md) on github.
| Model | #params | Language |
|------------------------|--------------------------------|-------|
| [`bert-base-uncased`](https://huggingface.co/bert-base-uncased) | 110M | English |
| [`bert-large-uncased`](https://huggingface.co/bert-large-uncased) | 340M | English | sub
| [`bert-base-cased`](https://huggingface.co/bert-base-cased) | 110M | English |
| [`bert-large-cased`](https://huggingface.co/bert-large-cased) | 340M | English |
| [`bert-base-chinese`](https://huggingface.co/bert-base-chinese) | 110M | Chinese |
| [`bert-base-multilingual-cased`](https://huggingface.co/bert-base-multilingual-cased) | 110M | Multiple |
| [`bert-large-uncased-whole-word-masking`](https://huggingface.co/bert-large-uncased-whole-word-masking) | 340M | English |
| [`bert-large-cased-whole-word-masking`](https://huggingface.co/bert-large-cased-whole-word-masking) | 340M | English |
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=bert) to look for
fine-tuned versions of a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-base-uncased')
>>> unmasker("Hello I'm a [MASK] model.")
[{'sequence': "[CLS] hello i'm a fashion model. [SEP]",
'score': 0.1073106899857521,
'token': 4827,
'token_str': 'fashion'},
{'sequence': "[CLS] hello i'm a role model. [SEP]",
'score': 0.08774490654468536,
'token': 2535,
'token_str': 'role'},
{'sequence': "[CLS] hello i'm a new model. [SEP]",
'score': 0.05338378623127937,
'token': 2047,
'token_str': 'new'},
{'sequence': "[CLS] hello i'm a super model. [SEP]",
'score': 0.04667217284440994,
'token': 3565,
'token_str': 'super'},
{'sequence': "[CLS] hello i'm a fine model. [SEP]",
'score': 0.027095865458250046,
'token': 2986,
'token_str': 'fine'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import BertTokenizer, BertModel
tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
model = BertModel.from_pretrained("bert-base-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
model = TFBertModel.from_pretrained("bert-base-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-base-uncased')
>>> unmasker("The man worked as a [MASK].")
[{'sequence': '[CLS] the man worked as a carpenter. [SEP]',
'score': 0.09747550636529922,
'token': 10533,
'token_str': 'carpenter'},
{'sequence': '[CLS] the man worked as a waiter. [SEP]',
'score': 0.0523831807076931,
'token': 15610,
'token_str': 'waiter'},
{'sequence': '[CLS] the man worked as a barber. [SEP]',
'score': 0.04962705448269844,
'token': 13362,
'token_str': 'barber'},
{'sequence': '[CLS] the man worked as a mechanic. [SEP]',
'score': 0.03788609802722931,
'token': 15893,
'token_str': 'mechanic'},
{'sequence': '[CLS] the man worked as a salesman. [SEP]',
'score': 0.037680890411138535,
'token': 18968,
'token_str': 'salesman'}]
>>> unmasker("The woman worked as a [MASK].")
[{'sequence': '[CLS] the woman worked as a nurse. [SEP]',
'score': 0.21981462836265564,
'token': 6821,
'token_str': 'nurse'},
{'sequence': '[CLS] the woman worked as a waitress. [SEP]',
'score': 0.1597415804862976,
'token': 13877,
'token_str': 'waitress'},
{'sequence': '[CLS] the woman worked as a maid. [SEP]',
'score': 0.1154729500412941,
'token': 10850,
'token_str': 'maid'},
{'sequence': '[CLS] the woman worked as a prostitute. [SEP]',
'score': 0.037968918681144714,
'token': 19215,
'token_str': 'prostitute'},
{'sequence': '[CLS] the woman worked as a cook. [SEP]',
'score': 0.03042375110089779,
'token': 5660,
'token_str': 'cook'}]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The BERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus, and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
| Task | MNLI-(m/mm) | QQP | QNLI | SST-2 | CoLA | STS-B | MRPC | RTE | Average |
|:----:|:-----------:|:----:|:----:|:-----:|:----:|:-----:|:----:|:----:|:-------:|
| | 84.6/83.4 | 71.2 | 90.5 | 93.5 | 52.1 | 85.8 | 88.9 | 66.4 | 79.6 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1810-04805,
author = {Jacob Devlin and
Ming{-}Wei Chang and
Kenton Lee and
Kristina Toutanova},
title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language
Understanding},
journal = {CoRR},
volume = {abs/1810.04805},
year = {2018},
url = {http://arxiv.org/abs/1810.04805},
archivePrefix = {arXiv},
eprint = {1810.04805},
timestamp = {Tue, 30 Oct 2018 20:39:56 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
<a href="https://huggingface.co/exbert/?model=bert-base-uncased">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": "en", "license": "apache-2.0", "tags": ["exbert"], "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | google-bert/bert-base-uncased | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"coreml",
"onnx",
"safetensors",
"bert",
"fill-mask",
"exbert",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1810.04805"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #rust #coreml #onnx #safetensors #bert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us
| BERT base model (uncased)
=========================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labeling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally masks the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences, for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
Model variations
----------------
BERT has originally been released in base and large variations, for cased and uncased input text. The uncased models also strips out an accent markers.
Chinese and multilingual uncased and cased versions followed shortly after.
Modified preprocessing with whole word masking has replaced subpiece masking in a following work, with the release of two models.
Other 24 smaller models are released afterward.
The detailed release history can be found on the google-research/bert readme on github.
Model: 'bert-base-uncased', #params: 110M, Language: English
Model: 'bert-large-uncased', #params: 340M, Language: English
Model: 'bert-base-cased', #params: 110M, Language: English
Model: 'bert-large-cased', #params: 340M, Language: English
Model: 'bert-base-chinese', #params: 110M, Language: Chinese
Model: 'bert-base-multilingual-cased', #params: 110M, Language: Multiple
Model: 'bert-large-uncased-whole-word-masking', #params: 340M, Language: English
Model: 'bert-large-cased-whole-word-masking', #params: 340M, Language: English
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions of a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The BERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus, and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \(\beta\_{1} = 0.9\) and \(\beta\_{2} = 0.999\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
Evaluation results
------------------
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
### BibTeX entry and citation info
<a href="URL
<img width="300px" src="URL
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus, and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #coreml #onnx #safetensors #bert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus, and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
94,
49,
101,
223,
163,
30
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #coreml #onnx #safetensors #bert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus, and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is."
] | [
-0.039446812123060226,
0.10919374972581863,
-0.005983617156744003,
0.06154567748308182,
0.03241196274757385,
0.02194436639547348,
0.10327157378196716,
0.060506537556648254,
-0.03949129581451416,
0.04027150198817253,
0.04666193947196007,
0.04283980652689934,
0.08198760449886322,
0.05898464843630791,
0.0059080226346850395,
-0.22911500930786133,
0.04634293541312218,
-0.03835175186395645,
0.13776527345180511,
0.08264002948999405,
0.08705789595842361,
-0.05446464568376541,
0.005899366457015276,
-0.008726329542696476,
-0.0296151265501976,
-0.054583266377449036,
0.029640788212418556,
-0.06909302622079849,
0.06511535495519638,
0.07381723076105118,
0.06298817694187164,
0.03786017745733261,
0.027406351640820503,
-0.15037690103054047,
0.0245489664375782,
0.07195263355970383,
-0.009403891861438751,
0.0659184604883194,
0.06646569073200226,
0.0015531806275248528,
0.07698878645896912,
-0.06275108456611633,
0.04282069206237793,
0.015372369438409805,
-0.13549819588661194,
-0.08597469329833984,
-0.0824677050113678,
0.09222956746816635,
-0.00354767101816833,
0.011871695518493652,
-0.03872283920645714,
0.07196611911058426,
0.001767492271028459,
0.08606834709644318,
0.21323908865451813,
-0.19918592274188995,
0.01523601170629263,
-0.048370856791734695,
-0.0010246115271002054,
0.006129044108092785,
-0.06183415278792381,
-0.04712946340441704,
-0.012622518464922905,
0.023685263469815254,
0.07690122723579407,
-0.028276244178414345,
0.0037357695400714874,
-0.05064063519239426,
-0.1077132597565651,
-0.04848293960094452,
0.06749993562698364,
-0.010213788598775864,
-0.1016264334321022,
-0.12132412940263748,
-0.04304731637239456,
0.019254488870501518,
0.007065076846629381,
0.018379541113972664,
-0.0013233869103714824,
-0.007307888474315405,
0.029885558411478996,
-0.06770933419466019,
-0.07001672685146332,
0.010123885236680508,
-0.10821318626403809,
0.18390372395515442,
0.02885495126247406,
0.026498962193727493,
-0.056794438511133194,
0.09286996722221375,
-0.10844223201274872,
-0.11302357167005539,
-0.033120520412921906,
-0.06088807061314583,
-0.10553884506225586,
-0.02428910881280899,
-0.07166852056980133,
-0.14560678601264954,
-0.05914923921227455,
0.10079212486743927,
-0.08898322284221649,
-0.0019293901277706027,
-0.06326216459274292,
0.06478656083345413,
0.10527031868696213,
0.0741669312119484,
-0.07159479707479477,
0.022444726899266243,
0.0389503613114357,
0.047642868012189865,
0.04893952235579491,
-0.017205635085701942,
0.009705688804388046,
-0.02376892790198326,
0.07234449684619904,
0.014309828169643879,
0.037871770560741425,
0.055353209376335144,
-0.06938835233449936,
-0.04184870049357414,
0.11099376529455185,
-0.14069794118404388,
-0.03409313037991524,
0.011854127049446106,
-0.05295444652438164,
0.052930377423763275,
0.1132807582616806,
-0.04812406748533249,
-0.11259941756725311,
0.0726100355386734,
-0.06113377586007118,
-0.02792033925652504,
-0.04152420163154602,
-0.16466695070266724,
0.00011566087778192014,
-0.044543106108903885,
-0.05768009275197983,
-0.06073901802301407,
-0.1428244560956955,
-0.04601524397730827,
0.040827326476573944,
-0.004056390840560198,
-0.009769415482878685,
-0.03536563366651535,
0.010562398470938206,
-0.039318475872278214,
-0.011359643191099167,
-0.03020290657877922,
-0.019013550132513046,
0.06704218685626984,
-0.05984422191977501,
0.11001753062009811,
-0.0027041153516620398,
0.027850547805428505,
-0.13028155267238617,
0.00865098275244236,
-0.16871193051338196,
0.09864848107099533,
0.01679181307554245,
-0.09159044176340103,
-0.02205362543463707,
-0.037944722920656204,
-0.011606160551309586,
0.033703286200761795,
0.025200119242072105,
0.1361684501171112,
-0.19776277244091034,
-0.051759377121925354,
0.247995987534523,
-0.10105898231267929,
0.003161316504701972,
0.10945960879325867,
-0.07672377675771713,
0.06866578757762909,
0.13007955253124237,
0.05270978808403015,
0.019986381754279137,
-0.0108264135196805,
-0.06906909495592117,
-0.018488064408302307,
-0.00844378862529993,
0.19855575263500214,
0.027581945061683655,
-0.05445370450615883,
0.03501186892390251,
0.031490858644247055,
-0.008356713689863682,
-0.047724880278110504,
0.00045210518874228,
-0.02874300442636013,
0.007226262707263231,
0.0033543820027261972,
0.09503161162137985,
-0.014669551514089108,
-0.06450212746858597,
-0.028925498947501183,
-0.11100992560386658,
0.04086703434586525,
0.06123536825180054,
-0.09068215638399124,
0.07612847536802292,
-0.004362268839031458,
0.016225198283791542,
-0.038729164749383926,
0.012914733961224556,
-0.21446888148784637,
-0.014448543079197407,
0.04339069873094559,
-0.08857614547014236,
0.09617780148983002,
0.05484559386968613,
-0.0011906827567145228,
0.06959538906812668,
-0.055062852799892426,
0.051434896886348724,
-0.006538210436701775,
-0.016872860491275787,
-0.06069810688495636,
-0.14684422314167023,
-0.02201896905899048,
-0.04544753208756447,
0.06641174852848053,
-0.11236572265625,
0.013256999664008617,
-0.021364277228713036,
0.035163674503564835,
0.01937900297343731,
-0.05380839854478836,
0.03964971750974655,
0.00047905294923111796,
-0.05919778347015381,
-0.013648984022438526,
0.03126728534698486,
0.034616611897945404,
-0.06886895000934601,
0.08718714118003845,
-0.2085496187210083,
-0.21111628413200378,
0.09735045582056046,
0.05233335122466087,
-0.10675321519374847,
-0.04008391126990318,
-0.03640437871217728,
-0.023025639355182648,
-0.1005023717880249,
-0.04108903929591179,
0.20593899488449097,
0.05018236115574837,
0.10646341741085052,
-0.13040408492088318,
-0.034795504063367844,
-0.0009447330958209932,
-0.049270279705524445,
-0.016314402222633362,
0.03973366692662239,
-0.032972123473882675,
-0.17628616094589233,
0.02845003269612789,
-0.023160366341471672,
0.015283883549273014,
0.1476067304611206,
0.06404847651720047,
-0.10666301846504211,
-0.02468210645020008,
-0.012475132942199707,
0.039124421775341034,
0.072255440056324,
-0.016557684168219566,
0.0040509761311113834,
0.06154922768473625,
0.04182905703783035,
0.009729125536978245,
-0.09056216478347778,
0.058104995638132095,
0.05359775573015213,
-0.047141194343566895,
-0.06693364679813385,
-0.035548917949199677,
0.027689451351761818,
0.11661771684885025,
0.020913943648338318,
0.041146792471408844,
0.008146941661834717,
-0.0407663993537426,
-0.11895830929279327,
0.15705539286136627,
-0.07624637335538864,
-0.2672925293445587,
-0.13052785396575928,
-0.031477607786655426,
-0.034095846116542816,
0.04354022815823555,
0.010142264887690544,
0.015336581505835056,
-0.04084084555506706,
-0.11453022807836533,
0.04545782133936882,
0.005085708107799292,
-0.019448261708021164,
-0.08297663927078247,
0.013289936818182468,
0.010314477607607841,
-0.11893446743488312,
0.009154869243502617,
-0.031504273414611816,
-0.039216019213199615,
-0.002466627163812518,
0.004122383892536163,
0.05921458825469017,
0.12151603400707245,
-0.0370292030274868,
-0.06537972390651703,
-0.019721562042832375,
0.13615542650222778,
-0.0377948172390461,
0.08159036934375763,
0.0016772894887253642,
-0.12358503043651581,
0.07338850945234299,
0.10998685657978058,
0.010010560043156147,
-0.03184100240468979,
0.04337124153971672,
0.02680981531739235,
-0.04433954134583473,
-0.22477507591247559,
-0.02024826593697071,
-0.025035053491592407,
0.0013633683556690812,
0.1161881610751152,
0.008049259893596172,
-0.014201493933796883,
0.029867948964238167,
-0.08814592659473419,
0.04023389145731926,
0.06821591407060623,
0.09166762232780457,
-0.009201942011713982,
0.012000283226370811,
0.0994139015674591,
-0.02809438668191433,
0.036234691739082336,
0.10256855189800262,
-0.032069940119981766,
0.1507689356803894,
-0.11731824278831482,
0.12987510859966278,
0.08619648963212967,
0.010951205156743526,
0.029752416536211967,
0.11345437914133072,
-0.05593159422278404,
0.05902525782585144,
-0.06558447331190109,
-0.060612596571445465,
-0.03656570985913277,
0.030405882745981216,
-0.006561395712196827,
0.06759589165449142,
-0.06169386953115463,
-0.07092428207397461,
0.06400732696056366,
0.14212362468242645,
0.11150567978620529,
-0.12246741354465485,
-0.07478411495685577,
0.027191389352083206,
-0.06514649093151093,
-0.04491807147860527,
-0.00682810926809907,
0.055155765265226364,
-0.11654429137706757,
0.08273610472679138,
-0.022924043238162994,
0.06577330082654953,
-0.14795969426631927,
0.019728126004338264,
-0.05235486850142479,
0.05660806596279144,
-0.04135113209486008,
0.0653405413031578,
-0.20719479024410248,
0.13062965869903564,
0.03470994904637337,
0.04294734448194504,
-0.09218976646661758,
-0.0023513443302363157,
0.017696063965559006,
-0.038180287927389145,
0.1168510913848877,
0.005804278422147036,
0.06846890598535538,
0.0019875289872288704,
-0.037250127643346786,
0.005682626739144325,
0.04603094235062599,
-0.0008167758933268487,
0.111374132335186,
0.01900739036500454,
0.01374412328004837,
-0.012865732423961163,
0.0847417488694191,
-0.07107343524694443,
-0.17051400244235992,
0.0552816316485405,
-0.08064328134059906,
-0.0678723007440567,
-0.019775858148932457,
-0.054979849606752396,
-0.06784367561340332,
0.19588229060173035,
-0.10523666441440582,
-0.0943659171462059,
-0.06336575001478195,
0.031813327223062515,
0.09491648524999619,
-0.06447360664606094,
-0.003957422915846109,
-0.02010294981300831,
0.13585826754570007,
-0.09208838641643524,
-0.07802693545818329,
0.016893934458494186,
-0.035878635942935944,
-0.1414393186569214,
-0.07988126575946808,
0.09214919060468674,
0.12077881395816803,
0.05878692865371704,
-0.0011344520607963204,
0.041646309196949005,
0.02438153512775898,
-0.08669544756412506,
-0.04347042739391327,
0.09509459882974625,
0.09077806770801544,
0.08751419931650162,
-0.11670517176389694,
-0.07346267253160477,
-0.12731671333312988,
0.00032875785836949944,
0.06301522254943848,
0.25890791416168213,
-0.04100607708096504,
0.12872575223445892,
0.21314416825771332,
-0.11722008138895035,
-0.1581408679485321,
-0.042153600603342056,
0.007137012202292681,
0.04536672309041023,
0.08293718844652176,
-0.14604929089546204,
-0.01817023754119873,
0.05406275764107704,
0.02350279688835144,
-0.00011479422391857952,
-0.21674744784832,
-0.12778963148593903,
0.10620665550231934,
0.0461684949696064,
0.06626424938440323,
-0.0807693600654602,
-0.03936038911342621,
-0.06990448385477066,
-0.0028288059402257204,
0.14871469140052795,
-0.10656435787677765,
0.1143752932548523,
0.02247149497270584,
-0.026434212923049927,
0.04882287234067917,
-0.03286027908325195,
0.11731552332639694,
0.005148918367922306,
0.030728384852409363,
-0.07079645246267319,
-0.027150651440024376,
0.0504646934568882,
-0.05050837993621826,
0.1201074942946434,
0.04510350897908211,
0.06237294524908066,
0.023400405421853065,
-0.06563254445791245,
-0.08739808201789856,
-0.003195542609319091,
-0.07326923310756683,
-0.04531008005142212,
-0.05370364338159561,
0.05800720676779747,
0.09894410520792007,
-0.00940058846026659,
0.014673379249870777,
-0.07853136211633682,
0.05254668742418289,
0.15407013893127441,
0.10122180730104446,
0.07035624235868454,
-0.08545243740081787,
0.005107499193400145,
-0.019971327856183052,
0.04504802078008652,
-0.06335566937923431,
0.03172652795910835,
0.05111074447631836,
0.03815659508109093,
0.14017213881015778,
0.03519028425216675,
-0.1541954129934311,
-0.017352022230625153,
0.005743947345763445,
-0.1560424417257309,
-0.060251783579587936,
0.02532721497118473,
-0.030809883028268814,
-0.15253430604934692,
-0.0675685852766037,
0.1298360973596573,
-0.036376968026161194,
-0.02408253215253353,
0.018441054970026016,
0.04893625155091286,
0.011300172656774521,
0.09733936935663223,
0.0446520559489727,
0.018260544165968895,
-0.0596572682261467,
0.13765497505664825,
0.13200771808624268,
-0.05828389897942543,
0.02949809469282627,
0.08150999993085861,
-0.08633328229188919,
-0.0061878482811152935,
-0.07710292935371399,
0.03481849655508995,
0.05117050185799599,
-0.0073087140917778015,
-0.05877932906150818,
-0.014952319674193859,
0.05432656779885292,
0.14650379121303558,
0.01899930275976658,
0.07807100564241409,
-0.042810093611478806,
-0.016275787726044655,
-0.0843677744269371,
0.061356592923402786,
0.06605710834264755,
0.022242918610572815,
0.047043416649103165,
0.14014488458633423,
-0.0016250070184469223,
0.040929000824689865,
-0.012121357023715973,
-0.02863008715212345,
-0.08688196539878845,
-0.011181430891156197,
-0.052655238658189774,
0.03701845929026604,
-0.1300148069858551,
-0.02068396285176277,
-0.017060521990060806,
0.03078291565179825,
0.032824572175741196,
-0.025073830038309097,
0.005030429922044277,
-0.01721188612282276,
-0.019545963034033775,
0.008918672800064087,
-0.11642356961965561,
-0.024610845372080803,
0.0525677390396595,
-0.0743618756532669,
0.07684386521577835,
-0.023162178695201874,
-0.06026725471019745,
0.022308185696601868,
-0.11192215979099274,
-0.0015176933957263827,
-0.03809765726327896,
0.001876387163065374,
-0.004609398078173399,
-0.1322965919971466,
-0.001032243948429823,
-0.02407115139067173,
0.020711304619908333,
0.008390601724386215,
0.054850056767463684,
-0.09354131668806076,
0.047807347029447556,
0.07009734958410263,
0.0064879548735916615,
-0.07586546242237091,
0.07193266600370407,
0.034209586679935455,
-0.0000305766734527424,
0.10812809318304062,
-0.05213473364710808,
0.06738916039466858,
-0.13661980628967285,
0.006690713111311197,
0.008027773350477219,
-0.02667883411049843,
0.07686225324869156,
-0.019933301955461502,
0.03181561827659607,
-0.010818910785019398,
0.1727771908044815,
-0.014843705110251904,
0.013674993999302387,
0.038555461913347244,
-0.028842348605394363,
-0.07492633908987045,
0.008194326423108578,
0.06903941929340363,
-0.011441095732152462,
-0.07113045454025269,
-0.06182485818862915,
0.04443378373980522,
-0.018883153796195984,
0.02218579314649105,
0.18867173790931702,
0.05303604528307915,
0.1734796166419983,
0.019913479685783386,
-0.024179251864552498,
-0.03985106945037842,
0.03202721104025841,
0.02362118661403656,
0.06847589462995529,
0.027461720630526543,
0.024254659190773964,
0.041001614183187485,
0.11613641679286957,
-0.12823015451431274,
0.16214480996131897,
0.05063287168741226,
-0.10644850134849548,
-0.09374385327100754,
-0.20223768055438995,
-0.006373521406203508,
0.09064041078090668,
-0.03023573011159897,
-0.126926988363266,
0.05284308269619942,
0.04631699621677399,
0.0024405322037637234,
-0.03315863758325577,
0.03925350680947304,
-0.04344712197780609,
-0.14078256487846375,
0.07956170290708542,
0.0020279334858059883,
0.03155437856912613,
0.03816564753651619,
0.013781487941741943,
0.046422045677900314,
0.05780947580933571,
0.062420595437288284,
0.07558530569076538,
0.12263967096805573,
0.006371403578668833,
-0.02016592212021351,
-0.08754352480173111,
0.01725117303431034,
-0.011438542976975441,
0.09001945704221725,
0.2124740481376648,
0.06563995033502579,
-0.028397755697369576,
0.0011022851103916764,
0.1425228863954544,
-0.024292707443237305,
-0.09823260456323624,
-0.13192777335643768,
0.1408051699399948,
0.04134838283061981,
-0.009388793259859085,
0.040467604994773865,
-0.13066528737545013,
0.025736158713698387,
0.17735424637794495,
0.16820067167282104,
-0.026282472535967827,
0.01772811822593212,
0.02634299360215664,
0.01286943070590496,
0.055090393871068954,
0.06122743710875511,
0.004946599714457989,
0.21623164415359497,
-0.023660920560359955,
0.08556824922561646,
0.0016031370032578707,
0.011995907872915268,
-0.023031186312437057,
0.11057105660438538,
-0.01031289342790842,
0.010235441848635674,
-0.06885930150747299,
0.023207388818264008,
-0.050146155059337616,
-0.28280457854270935,
-0.0672597736120224,
-0.047521814703941345,
-0.10116367042064667,
-0.009939316660165787,
-0.06303808838129044,
0.012603900395333767,
0.09121736884117126,
0.031811363995075226,
0.03251374512910843,
0.17253676056861877,
-0.004650798160582781,
-0.04226118326187134,
-0.026481926441192627,
0.05734288692474365,
-0.023927725851535797,
0.14533139765262604,
0.023537103086709976,
0.09394050389528275,
0.0683157667517662,
0.011625777930021286,
-0.0712989941239357,
0.04208355396986008,
0.0014883555704727769,
0.053141847252845764,
0.0451602004468441,
0.1662214696407318,
0.0062405820935964584,
0.00018350478785578161,
0.0659334808588028,
-0.04118749126791954,
0.06730479747056961,
-0.04656129330396652,
-0.058010030537843704,
-0.0964551717042923,
0.06774222105741501,
-0.051271453499794006,
0.12900711596012115,
0.15968821942806244,
-0.011656227521598339,
0.007485189475119114,
-0.03523767367005348,
-0.03479863330721855,
-0.009845277294516563,
0.07839365303516388,
0.0002591513330116868,
-0.10531376302242279,
0.014594768173992634,
-0.011345823295414448,
0.05694543570280075,
-0.3246655762195587,
-0.029112739488482475,
0.09466534852981567,
-0.09587593376636505,
-0.043407414108514786,
0.07054073363542557,
-0.021366946399211884,
0.040460459887981415,
-0.06628993153572083,
0.012995295226573944,
-0.007930118590593338,
0.06288503110408783,
-0.12693947553634644,
-0.08741505444049835
] |
null | null | transformers |
# BERT large model (cased) whole word masking finetuned on SQuAD
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1810.04805) and first released in
[this repository](https://github.com/google-research/bert). This model is cased: it makes a difference between english and English.
Differently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.
The training is identical -- each masked WordPiece token is predicted independently.
After pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. See below for more information regarding this fine-tuning.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
- 24-layer
- 1024 hidden dimension
- 16 attention heads
- 336M parameters.
## Intended uses & limitations
This model should be used as a question-answering model. You may use it in a question answering pipeline, or use it to output raw results given a query and a context. You may see other use cases in the [task summary](https://huggingface.co/transformers/task_summary.html#extractive-question-answering) of the transformers documentation.## Training data
The BERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
### Fine-tuning
After pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. In order to reproduce the training, you may use the following command:
```
python -m torch.distributed.launch --nproc_per_node=8 ./examples/question-answering/run_qa.py \
--model_name_or_path bert-large-cased-whole-word-masking \
--dataset_name squad \
--do_train \
--do_eval \
--learning_rate 3e-5 \
--num_train_epochs 2 \
--max_seq_length 384 \
--doc_stride 128 \
--output_dir ./examples/models/wwm_cased_finetuned_squad/ \
--per_device_eval_batch_size=3 \
--per_device_train_batch_size=3 \
```
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1810-04805,
author = {Jacob Devlin and
Ming{-}Wei Chang and
Kenton Lee and
Kristina Toutanova},
title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language
Understanding},
journal = {CoRR},
volume = {abs/1810.04805},
year = {2018},
url = {http://arxiv.org/abs/1810.04805},
archivePrefix = {arXiv},
eprint = {1810.04805},
timestamp = {Tue, 30 Oct 2018 20:39:56 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
``` | {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | question-answering | google-bert/bert-large-cased-whole-word-masking-finetuned-squad | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"bert",
"question-answering",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"license:apache-2.0",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1810.04805"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #rust #safetensors #bert #question-answering #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #endpoints_compatible #region-us
|
# BERT large model (cased) whole word masking finetuned on SQuAD
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model is cased: it makes a difference between english and English.
Differently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.
The training is identical -- each masked WordPiece token is predicted independently.
After pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. See below for more information regarding this fine-tuning.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
- 24-layer
- 1024 hidden dimension
- 16 attention heads
- 336M parameters.
## Intended uses & limitations
This model should be used as a question-answering model. You may use it in a question answering pipeline, or use it to output raw results given a query and a context. You may see other use cases in the task summary of the transformers documentation.## Training data
The BERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by '[MASK]'.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
### Fine-tuning
After pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. In order to reproduce the training, you may use the following command:
### BibTeX entry and citation info
| [
"# BERT large model (cased) whole word masking finetuned on SQuAD\n\nPretrained model on English language using a masked language modeling (MLM) objective. It was introduced in\nthis paper and first released in\nthis repository. This model is cased: it makes a difference between english and English.\n\nDifferently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.\n\nThe training is identical -- each masked WordPiece token is predicted independently. \n\nAfter pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. See below for more information regarding this fine-tuning.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team.",
"## Model description\n\nBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it\nwas pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of\npublicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it\nwas pretrained with two objectives:\n\n- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run\n the entire masked sentence through the model and has to predict the masked words. This is different from traditional\n recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like\n GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the\n sentence.\n- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes\n they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to\n predict if the two sentences were following each other or not.\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard\nclassifier using the features produced by the BERT model as inputs.\n\nThis model has the following configuration:\n\n- 24-layer\n- 1024 hidden dimension\n- 16 attention heads\n- 336M parameters.",
"## Intended uses & limitations\nThis model should be used as a question-answering model. You may use it in a question answering pipeline, or use it to output raw results given a query and a context. You may see other use cases in the task summary of the transformers documentation.## Training data\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).",
"## Training procedure",
"### Preprocessing\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\nThe details of the masking procedure for each sentence are the following:\n- 15% of the tokens are masked.\n- In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n- In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\\\(\\beta_{1} = 0.9\\\\) and \\\\(\\beta_{2} = 0.999\\\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.",
"### Fine-tuning\n\nAfter pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. In order to reproduce the training, you may use the following command:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #bert #question-answering #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #endpoints_compatible #region-us \n",
"# BERT large model (cased) whole word masking finetuned on SQuAD\n\nPretrained model on English language using a masked language modeling (MLM) objective. It was introduced in\nthis paper and first released in\nthis repository. This model is cased: it makes a difference between english and English.\n\nDifferently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.\n\nThe training is identical -- each masked WordPiece token is predicted independently. \n\nAfter pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. See below for more information regarding this fine-tuning.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team.",
"## Model description\n\nBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it\nwas pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of\npublicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it\nwas pretrained with two objectives:\n\n- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run\n the entire masked sentence through the model and has to predict the masked words. This is different from traditional\n recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like\n GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the\n sentence.\n- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes\n they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to\n predict if the two sentences were following each other or not.\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard\nclassifier using the features produced by the BERT model as inputs.\n\nThis model has the following configuration:\n\n- 24-layer\n- 1024 hidden dimension\n- 16 attention heads\n- 336M parameters.",
"## Intended uses & limitations\nThis model should be used as a question-answering model. You may use it in a question answering pipeline, or use it to output raw results given a query and a context. You may see other use cases in the task summary of the transformers documentation.## Training data\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).",
"## Training procedure",
"### Preprocessing\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\nThe details of the masking procedure for each sentence are the following:\n- 15% of the tokens are masked.\n- In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n- In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\\\(\\beta_{1} = 0.9\\\\) and \\\\(\\beta_{2} = 0.999\\\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.",
"### Fine-tuning\n\nAfter pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. In order to reproduce the training, you may use the following command:",
"### BibTeX entry and citation info"
] | [
73,
219,
359,
112,
3,
222,
130,
51,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #bert #question-answering #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #endpoints_compatible #region-us \n# BERT large model (cased) whole word masking finetuned on SQuAD\n\nPretrained model on English language using a masked language modeling (MLM) objective. It was introduced in\nthis paper and first released in\nthis repository. This model is cased: it makes a difference between english and English.\n\nDifferently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.\n\nThe training is identical -- each masked WordPiece token is predicted independently. \n\nAfter pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. See below for more information regarding this fine-tuning.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team.",
"passage: ## Model description\n\nBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it\nwas pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of\npublicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it\nwas pretrained with two objectives:\n\n- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run\n the entire masked sentence through the model and has to predict the masked words. This is different from traditional\n recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like\n GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the\n sentence.\n- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes\n they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to\n predict if the two sentences were following each other or not.\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard\nclassifier using the features produced by the BERT model as inputs.\n\nThis model has the following configuration:\n\n- 24-layer\n- 1024 hidden dimension\n- 16 attention heads\n- 336M parameters.## Intended uses & limitations\nThis model should be used as a question-answering model. You may use it in a question answering pipeline, or use it to output raw results given a query and a context. You may see other use cases in the task summary of the transformers documentation.## Training data\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).## Training procedure### Preprocessing\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\nThe details of the masking procedure for each sentence are the following:\n- 15% of the tokens are masked.\n- In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n- In the 10% remaining cases, the masked tokens are left as is.### Pretraining\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\\\(\\beta_{1} = 0.9\\\\) and \\\\(\\beta_{2} = 0.999\\\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after."
] | [
-0.07089948654174805,
0.015368280000984669,
-0.0023907809518277645,
0.09138141572475433,
0.04431024193763733,
0.0041254255920648575,
0.12233814597129822,
0.04040627181529999,
-0.08856562525033951,
0.041952941566705704,
0.03961189091205597,
-0.02985500916838646,
0.07912957668304443,
0.10135120153427124,
0.08664311468601227,
-0.2710863947868347,
0.07035175710916519,
-0.0622209832072258,
0.022498611360788345,
0.056976959109306335,
0.11084704101085663,
-0.08388073742389679,
0.06172916293144226,
0.04613310098648071,
-0.06117380037903786,
-0.023021329194307327,
-0.008066265843808651,
-0.03308628872036934,
0.08968056738376617,
0.07643664628267288,
0.11995914578437805,
-0.005594494752585888,
0.0683961883187294,
-0.08314505219459534,
0.02874579466879368,
0.07055506110191345,
0.00048691919073462486,
0.03573736548423767,
0.0358508825302124,
-0.007392361760139465,
0.08227122575044632,
0.026769496500492096,
0.10083268582820892,
0.03073352575302124,
-0.12428905069828033,
-0.11958549171686172,
-0.08213788270950317,
0.0741255134344101,
0.07768319547176361,
0.034235984086990356,
-0.026171868667006493,
0.09030826389789581,
-0.032688312232494354,
0.057974886149168015,
0.10567574203014374,
-0.1822747439146042,
-0.03153053671121597,
-0.01033163070678711,
0.007788482122123241,
-0.021243734285235405,
-0.039448194205760956,
-0.012814486399292946,
-0.0008459072560071945,
0.014293951913714409,
0.03561289608478546,
0.01435795333236456,
0.061764176934957504,
-0.04097104072570801,
-0.13325780630111694,
-0.030068352818489075,
0.10625094920396805,
0.01456187292933464,
-0.13250602781772614,
-0.161851167678833,
-0.020620230585336685,
0.0832199901342392,
-0.005612530279904604,
-0.02829047106206417,
0.01707409881055355,
0.0012883177259936929,
0.0486740842461586,
-0.02705724537372589,
-0.11804328858852386,
-0.03130744770169258,
-0.031312666833400726,
0.1167411208152771,
0.030235955491662025,
0.02485864982008934,
-0.08334149420261383,
0.07241854071617126,
-0.1078532338142395,
-0.053340766578912735,
-0.05960947275161743,
-0.0933486595749855,
-0.05365905910730362,
0.0036393965128809214,
-0.02329230308532715,
-0.17608913779258728,
-0.08712052553892136,
0.12067308276891708,
0.017883112654089928,
0.03289582207798958,
-0.0434747114777565,
0.0012033740058541298,
0.08997613936662674,
0.13579607009887695,
-0.039354391396045685,
0.050350040197372437,
0.013227117247879505,
0.045221854001283646,
0.01063276082277298,
-0.06413538753986359,
-0.05386803299188614,
0.07569137215614319,
-0.03868282586336136,
0.0014911075122654438,
0.031774893403053284,
0.03991718217730522,
-0.051789090037345886,
-0.06590665131807327,
0.14112862944602966,
-0.1183178573846817,
-0.017518505454063416,
0.0047058239579200745,
-0.01699559949338436,
-0.0403757318854332,
0.07141097635030746,
-0.023788096383213997,
-0.05990418791770935,
0.013376304879784584,
-0.05561533942818642,
-0.053858425468206406,
-0.07125499844551086,
-0.14880459010601044,
-0.007396767381578684,
-0.0519760325551033,
-0.04852936416864395,
-0.09483151882886887,
-0.13694746792316437,
-0.025408677756786346,
0.059220828115940094,
0.0013320788275450468,
0.03556567430496216,
-0.038523659110069275,
-0.020216036587953568,
-0.018409989774227142,
0.03528839349746704,
-0.04473446309566498,
0.004028276540338993,
-0.013920505531132221,
-0.05742734670639038,
0.05839025229215622,
-0.017309509217739105,
0.028459008783102036,
-0.07151934504508972,
0.005480609368532896,
-0.17795567214488983,
0.11906180530786514,
-0.014197224751114845,
-0.048317618668079376,
-0.024066559970378876,
-0.03844489902257919,
-0.06713196635246277,
0.0508001446723938,
0.01012394018471241,
0.12071004509925842,
-0.20549753308296204,
-0.06927052140235901,
0.20664678514003754,
-0.17167606949806213,
0.004387015476822853,
0.1137859895825386,
-0.08481776714324951,
0.08469723165035248,
0.11170350015163422,
0.11592399328947067,
0.08019515872001648,
-0.07748372852802277,
-0.02216321788728237,
-0.0012102131731808186,
-0.05257348343729973,
0.15729939937591553,
0.058052755892276764,
-0.020235247910022736,
-0.04754194989800453,
0.023777199909090996,
-0.06594427675008774,
-0.040652114897966385,
-0.008412297815084457,
-0.04000801965594292,
0.04702749848365784,
-0.014899828471243382,
0.05416050925850868,
-0.015204806812107563,
-0.02846551313996315,
-0.028189372271299362,
-0.1104637011885643,
-0.014984309673309326,
0.07957576960325241,
-0.10923591256141663,
0.01099415309727192,
-0.10951144993305206,
0.028347667306661606,
-0.021657846868038177,
-0.008030715398490429,
-0.15428590774536133,
-0.05648255720734596,
0.06194598227739334,
-0.10315069556236267,
0.09224890172481537,
0.06588466465473175,
0.01774587109684944,
0.10940408706665039,
-0.032620638608932495,
-0.017558284103870392,
-0.05413961410522461,
-0.035061314702034,
-0.047288116067647934,
-0.14102338254451752,
-0.06294170022010803,
-0.07480264455080032,
0.12103661894798279,
-0.1012650728225708,
0.03599042445421219,
-0.059497252106666565,
-0.026033665984869003,
0.04481564834713936,
-0.06596354395151138,
0.017383772879838943,
-0.014682961627840996,
-0.022815953940153122,
-0.04071474075317383,
0.012944893911480904,
0.021067194640636444,
-0.05275445431470871,
0.08184541761875153,
-0.19418957829475403,
-0.16678288578987122,
0.0492217130959034,
0.07363783568143845,
-0.07940851897001266,
0.05043475702404976,
-0.024267569184303284,
-0.011546105146408081,
-0.0570334792137146,
-0.04445435479283333,
0.22740709781646729,
-0.01181986927986145,
0.10447195172309875,
-0.11491571366786957,
-0.004177253693342209,
0.018571428954601288,
-0.019435955211520195,
-0.03965364024043083,
0.04502665996551514,
-0.02789190411567688,
-0.12201062589883804,
-0.010346281342208385,
0.011352267116308212,
0.09215986728668213,
0.1759559065103531,
0.036072488874197006,
-0.05462208762764931,
-0.029111888259649277,
0.008464992046356201,
0.023533673956990242,
0.08550745248794556,
-0.007600035518407822,
0.006933383643627167,
0.04478050768375397,
0.05210745707154274,
0.016879649832844734,
-0.08178315311670303,
0.04545155540108681,
0.07163974642753601,
-0.032444827258586884,
-0.08271012455224991,
-0.033204153180122375,
-0.03292626887559891,
0.062459006905555725,
0.051762890070676804,
0.055731818079948425,
-0.021001866087317467,
-0.044146060943603516,
-0.12511904537677765,
0.1836230456829071,
-0.10922486335039139,
-0.27618008852005005,
-0.15592068433761597,
-0.010255195200443268,
-0.017516177147626877,
0.06109403073787689,
0.028128819540143013,
-0.07203979790210724,
-0.07210614532232285,
-0.15382972359657288,
0.09982018172740936,
-0.007356210611760616,
-0.03315295651555061,
-0.042515289038419724,
-0.032972175627946854,
0.0069742631167173386,
-0.14987152814865112,
0.006744845304638147,
-0.03655996918678284,
-0.058279309421777725,
0.027455782517790794,
-0.022978179156780243,
0.046014826744794846,
0.11404597014188766,
-0.009091833606362343,
-0.03021615371108055,
-0.038937442004680634,
0.16088071465492249,
-0.021733421832323074,
0.0745488852262497,
0.11761417239904404,
-0.08410514146089554,
0.05008544772863388,
0.05052325874567032,
-0.018693266436457634,
-0.0742955207824707,
0.04243219643831253,
0.005746809765696526,
-0.094617560505867,
-0.16706396639347076,
-0.040821850299835205,
-0.006733248010277748,
0.06635427474975586,
0.07310597598552704,
0.011532166972756386,
-0.012942919507622719,
0.006212015636265278,
-0.05300050973892212,
-0.006480231881141663,
0.07506832480430603,
0.06145838648080826,
-0.049497008323669434,
-0.04974304884672165,
0.10765649378299713,
-0.05393889546394348,
0.01429302990436554,
0.08865445852279663,
-0.07646045088768005,
0.1688401699066162,
-0.0313706174492836,
0.0920335054397583,
0.0904560387134552,
0.02360733598470688,
0.07003956288099289,
0.12373557686805725,
-0.03910757973790169,
0.013539665378630161,
-0.05757489800453186,
-0.061293043196201324,
-0.08925806730985641,
0.046800367534160614,
0.027016201987862587,
0.023170318454504013,
-0.12401917576789856,
0.07496572285890579,
-0.022240648046135902,
0.16022177040576935,
0.08118186891078949,
-0.15445537865161896,
-0.11150451004505157,
0.018264498561620712,
-0.03324216976761818,
-0.09487050771713257,
-0.006056264042854309,
0.09219751507043839,
-0.10729426145553589,
0.03176623582839966,
-0.00774528319016099,
0.06461723148822784,
-0.08411359041929245,
0.008679844439029694,
-0.09393250942230225,
0.04299372434616089,
-0.01659817062318325,
0.044595867395401,
-0.045459259301424026,
0.11265169829130173,
0.028906870633363724,
0.09817176312208176,
-0.07003698498010635,
0.03108488768339157,
0.017682578414678574,
-0.0031691323965787888,
0.12650516629219055,
0.014620859175920486,
-0.026553506031632423,
-0.035479430109262466,
-0.08965493738651276,
0.03903169929981232,
0.0985751748085022,
-0.08652293682098389,
0.08030091226100922,
-0.014044071547687054,
0.01220017857849598,
0.003977586515247822,
0.015790272504091263,
-0.09324342012405396,
-0.138198122382164,
0.045012734830379486,
-0.1322064846754074,
-0.002063923515379429,
-0.07663595676422119,
-0.03492605313658714,
-0.04331526160240173,
0.13646315038204193,
-0.10982003808021545,
-0.030364006757736206,
-0.10107868164777756,
0.03598710894584656,
0.054882608354091644,
-0.07331934571266174,
0.022745290771126747,
-0.02717725932598114,
0.14238233864307404,
-0.051447879523038864,
-0.0866098701953888,
0.012017795816063881,
-0.08978581428527832,
-0.1026141494512558,
-0.04399985820055008,
0.07310926914215088,
0.16014504432678223,
0.05325823277235031,
0.03291487321257591,
0.028741810470819473,
0.015539736486971378,
-0.06665508449077606,
-0.006751418113708496,
0.12880942225456238,
0.0015769489109516144,
0.1261143684387207,
-0.09562414884567261,
-0.05993443727493286,
-0.05984359607100487,
0.03173335641622543,
0.08056367188692093,
0.22850406169891357,
-0.054109908640384674,
0.17442885041236877,
0.2142287790775299,
-0.09005682170391083,
-0.25095081329345703,
0.0005114655941724777,
0.05203603208065033,
0.08147420734167099,
0.05660463124513626,
-0.19331590831279755,
0.08371420204639435,
0.008766989223659039,
0.0058343978598713875,
-0.039077308028936386,
-0.1331813931465149,
-0.11950304359197617,
0.10711552202701569,
0.040560852736234665,
0.07017449289560318,
-0.009286800399422646,
0.009456739760935307,
-0.011318143457174301,
-0.004817679524421692,
0.08273620903491974,
-0.05035702884197235,
0.08314301073551178,
0.028236865997314453,
-0.061791643500328064,
0.0190986730158329,
-0.011621830053627491,
0.08995743840932846,
-0.003989931661635637,
0.08420951664447784,
-0.05774620920419693,
0.018231971189379692,
0.10233423113822937,
-0.06264699250459671,
0.14743806421756744,
0.09198962897062302,
0.06585857272148132,
-0.06794977933168411,
-0.07092417776584625,
-0.0644739419221878,
0.026294080540537834,
-0.043827205896377563,
-0.0537654347717762,
-0.06398439407348633,
0.0635727196931839,
0.06585405021905899,
0.01979527436196804,
-0.029828382655978203,
-0.06791149079799652,
0.02699674852192402,
0.02313614822924137,
0.19306817650794983,
-0.0270368829369545,
-0.029660101979970932,
-0.024633996188640594,
-0.007169285789132118,
0.0678446888923645,
-0.1145845279097557,
0.05281386896967888,
0.023670023307204247,
-0.004315081052482128,
0.11660841852426529,
0.04373405873775482,
-0.14588549733161926,
-0.006774928420782089,
0.0545966774225235,
-0.10167453438043594,
-0.14372389018535614,
-0.0040571922436356544,
-0.003239881247282028,
-0.15636223554611206,
-0.02193712815642357,
0.13728874921798706,
-0.028725042939186096,
-0.017078140750527382,
-0.022704776376485825,
0.03275030106306076,
-0.0016641132533550262,
0.06122997775673866,
0.04452892392873764,
0.01363518089056015,
-0.06084449589252472,
0.08706124126911163,
0.030003054067492485,
-0.0842018872499466,
0.06702331453561783,
0.013772290199995041,
-0.08526395261287689,
-0.05947563052177429,
-0.03423323109745979,
0.1363983154296875,
0.051123492419719696,
-0.04126131907105446,
0.0019065672531723976,
-0.06821998208761215,
0.039313461631536484,
0.08264406025409698,
0.007496435195207596,
0.06835997104644775,
-0.06505605578422546,
0.058217838406562805,
-0.06357677280902863,
0.05579593777656555,
0.018337955698370934,
-0.001180652529001236,
0.0065087731927633286,
0.09095611423254013,
0.03699816018342972,
0.044571273028850555,
-0.022590279579162598,
-0.08646437525749207,
-0.05900978669524193,
-0.019185341894626617,
-0.00925423763692379,
-0.017258334904909134,
-0.01248246431350708,
-0.002025892958045006,
0.0012759221717715263,
0.04157853126525879,
0.03602432459592819,
0.02121247723698616,
-0.03744199499487877,
-0.021659651771187782,
-0.05717145651578903,
0.027842681854963303,
-0.07697638869285583,
0.02697170153260231,
0.04350880905985832,
-0.06126981973648071,
0.09075485169887543,
0.018395911902189255,
-0.021946033462882042,
0.05566323176026344,
-0.05869751423597336,
0.006686336360871792,
-0.050642672926187515,
0.01981157436966896,
-0.019439969211816788,
-0.09727835655212402,
-0.003688948228955269,
-0.02568553015589714,
-0.05670682340860367,
-0.01302439346909523,
0.08621035516262054,
-0.05060775950551033,
0.09673960506916046,
0.04905316233634949,
-0.021252628415822983,
-0.07584932446479797,
0.06582780182361603,
-0.01919417642056942,
0.04826267436146736,
0.11096112430095673,
-0.013432047329843044,
0.03484698385000229,
-0.12686404585838318,
-0.02820342406630516,
0.010500582866370678,
0.0030272062867879868,
0.023109450936317444,
-0.07009349763393402,
0.024792348966002464,
-0.0014891105238348246,
0.061895765364170074,
0.03872149810194969,
-0.0268788430839777,
0.010576333850622177,
-0.0028822999447584152,
0.0011807734845206141,
0.01804983802139759,
0.031014790758490562,
-0.016405804082751274,
-0.051826491951942444,
0.007214624434709549,
0.03170165792107582,
-0.012627996504306793,
0.053070418536663055,
0.16526085138320923,
0.05458018183708191,
0.09957656264305115,
0.056085094809532166,
0.03724422678351402,
0.012799935415387154,
-0.10493016242980957,
-0.027898063883185387,
-0.0010663357097655535,
0.03148464113473892,
-0.002992657944560051,
0.007658151909708977,
0.11204931885004044,
-0.10089285671710968,
0.11325845122337341,
0.035311464220285416,
-0.05601586401462555,
-0.11622729152441025,
-0.19477611780166626,
-0.023625316098332405,
0.04096740484237671,
-0.004962385632097721,
-0.1154070645570755,
0.011776733212172985,
0.06331767141819,
0.027786830440163612,
0.004977819975465536,
0.1362839788198471,
-0.16749419271945953,
-0.055588822811841965,
0.04955602064728737,
-0.00833248719573021,
0.007284407503902912,
0.08960596472024918,
0.00821506418287754,
0.054347455501556396,
0.07062191516160965,
0.05885238200426102,
0.03531267121434212,
0.07317034900188446,
0.03857385367155075,
-0.036266520619392395,
-0.0859069973230362,
0.00010879873298108578,
-0.0072634657844901085,
0.01933620311319828,
0.14161130785942078,
0.0392284169793129,
-0.06542127579450607,
0.010635689832270145,
0.10470227152109146,
-0.026589687913656235,
-0.07723787426948547,
-0.16511306166648865,
0.1546589732170105,
-0.002921218052506447,
0.03211575001478195,
-0.02456630952656269,
-0.07038751244544983,
0.029330315068364143,
0.1775396764278412,
0.21534672379493713,
0.023323632776737213,
0.0023439605720341206,
0.005247283726930618,
0.005161020904779434,
-0.019661324098706245,
0.12895768880844116,
0.0014816680923104286,
0.23610106110572815,
-0.029183316975831985,
0.10560014098882675,
-0.033118389546871185,
-0.049213677644729614,
-0.034431710839271545,
0.09323939681053162,
-0.023855047300457954,
0.009372130036354065,
-0.048664338886737823,
0.038821980357170105,
0.007315922528505325,
-0.2361735701560974,
0.008666123263537884,
-0.035614341497421265,
-0.05151323229074478,
-0.0034667914733290672,
-0.02150576375424862,
0.013882496394217014,
0.09375432133674622,
-0.0007020831108093262,
0.0003516450524330139,
0.14966942369937897,
0.011523209512233734,
-0.050173379480838776,
-0.05315769836306572,
0.08078174293041229,
-0.041682519018650055,
0.15533167123794556,
0.029132984578609467,
0.04338819533586502,
0.06852954626083374,
0.021595964208245277,
-0.06667188555002213,
0.014303019270300865,
-0.0371590331196785,
0.04367433860898018,
0.0002520120469853282,
0.17434540390968323,
-0.017923498526215553,
0.07396005839109421,
0.025942930951714516,
-0.10719431191682816,
0.06896677613258362,
-0.062282539904117584,
-0.08898186683654785,
-0.046387188136577606,
0.10787809640169144,
-0.0777718722820282,
0.15019086003303528,
0.16173988580703735,
0.01883814111351967,
-0.027223357930779457,
-0.02985338307917118,
-0.001077793538570404,
-0.007582021877169609,
0.07767713814973831,
-0.005949582438915968,
-0.11660781502723694,
-0.014018922112882137,
-0.06664261221885681,
0.006638571619987488,
-0.28337419033050537,
-0.07604002952575684,
0.04080066829919815,
-0.03249085322022438,
0.032172732055187225,
0.07528544217348099,
0.060152098536491394,
0.04515329748392105,
-0.04124000668525696,
0.037360358983278275,
0.010669400915503502,
0.07056581228971481,
-0.07071654498577118,
-0.07559974491596222
] |
null | null | transformers |
# BERT large model (cased) whole word masking
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1810.04805) and first released in
[this repository](https://github.com/google-research/bert). This model is cased: it makes a difference between english and English.
Differently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.
The training is identical -- each masked WordPiece token is predicted independently.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
- 24-layer
- 1024 hidden dimension
- 16 attention heads
- 336M parameters.
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=bert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-large-cased-whole-word-masking')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
"sequence":"[CLS] Hello I'm a fashion model. [SEP]",
"score":0.1474294513463974,
"token":4633,
"token_str":"fashion"
},
{
"sequence":"[CLS] Hello I'm a magazine model. [SEP]",
"score":0.05430116504430771,
"token":2435,
"token_str":"magazine"
},
{
"sequence":"[CLS] Hello I'm a male model. [SEP]",
"score":0.039395421743392944,
"token":2581,
"token_str":"male"
},
{
"sequence":"[CLS] Hello I'm a former model. [SEP]",
"score":0.036936815828084946,
"token":1393,
"token_str":"former"
},
{
"sequence":"[CLS] Hello I'm a professional model. [SEP]",
"score":0.03663451969623566,
"token":1848,
"token_str":"professional"
}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import BertTokenizer, BertModel
tokenizer = BertTokenizer.from_pretrained('bert-large-cased-whole-word-masking')
model = BertModel.from_pretrained("bert-large-cased-whole-word-masking")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('bert-large-cased-whole-word-masking')
model = TFBertModel.from_pretrained("bert-large-cased-whole-word-masking")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-large-cased-whole-word-masking')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] The man worked as a carpenter. [SEP]",
"score":0.09021259099245071,
"token":25169,
"token_str":"carpenter"
},
{
"sequence":"[CLS] The man worked as a cook. [SEP]",
"score":0.08125395327806473,
"token":9834,
"token_str":"cook"
},
{
"sequence":"[CLS] The man worked as a mechanic. [SEP]",
"score":0.07524766772985458,
"token":19459,
"token_str":"mechanic"
},
{
"sequence":"[CLS] The man worked as a waiter. [SEP]",
"score":0.07397029548883438,
"token":17989,
"token_str":"waiter"
},
{
"sequence":"[CLS] The man worked as a guard. [SEP]",
"score":0.05848982185125351,
"token":3542,
"token_str":"guard"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] The woman worked as a maid. [SEP]",
"score":0.19436432421207428,
"token":13487,
"token_str":"maid"
},
{
"sequence":"[CLS] The woman worked as a waitress. [SEP]",
"score":0.16161060333251953,
"token":15098,
"token_str":"waitress"
},
{
"sequence":"[CLS] The woman worked as a nurse. [SEP]",
"score":0.14942803978919983,
"token":7439,
"token_str":"nurse"
},
{
"sequence":"[CLS] The woman worked as a secretary. [SEP]",
"score":0.10373266786336899,
"token":4848,
"token_str":"secretary"
},
{
"sequence":"[CLS] The woman worked as a cook. [SEP]",
"score":0.06384387612342834,
"token":9834,
"token_str":"cook"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The BERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
When fine-tuned on downstream tasks, this model achieves the following results:
Model | SQUAD 1.1 F1/EM | Multi NLI Accuracy
---------------------------------------- | :-------------: | :----------------:
BERT-Large, Cased (Whole Word Masking) | 92.9/86.7 | 86.46
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1810-04805,
author = {Jacob Devlin and
Ming{-}Wei Chang and
Kenton Lee and
Kristina Toutanova},
title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language
Understanding},
journal = {CoRR},
volume = {abs/1810.04805},
year = {2018},
url = {http://arxiv.org/abs/1810.04805},
archivePrefix = {arXiv},
eprint = {1810.04805},
timestamp = {Tue, 30 Oct 2018 20:39:56 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
``` | {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | google-bert/bert-large-cased-whole-word-masking | [
"transformers",
"pytorch",
"tf",
"jax",
"bert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1810.04805"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| BERT large model (cased) whole word masking
===========================================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model is cased: it makes a difference between english and English.
Differently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.
The training is identical -- each masked WordPiece token is predicted independently.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
* 24-layer
* 1024 hidden dimension
* 16 attention heads
* 336M parameters.
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The BERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \(\beta\_{1} = 0.9\) and \(\beta\_{2} = 0.999\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
Evaluation results
------------------
When fine-tuned on downstream tasks, this model achieves the following results:
### BibTeX entry and citation info
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #jax #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:",
"### BibTeX entry and citation info"
] | [
73,
49,
101,
222,
158,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is."
] | [
-0.013569038361310959,
0.05612895265221596,
-0.006278330460190773,
0.04061319679021835,
0.01674860715866089,
0.030248720198869705,
0.040742550045251846,
0.028491465374827385,
-0.09801401197910309,
0.07127846032381058,
0.07353980094194412,
0.032619450241327286,
0.10801785439252853,
0.09335223585367203,
0.04477662965655327,
-0.31213322281837463,
0.07567425072193146,
-0.018993953242897987,
0.1069798469543457,
0.10441331565380096,
0.09849365800619125,
-0.07777135819196701,
0.006004864815622568,
0.002338910475373268,
-0.04516782611608505,
-0.021237589418888092,
0.019385971128940582,
-0.061244938522577286,
0.08747190982103348,
0.06593398004770279,
0.0893952026963234,
0.06503549963235855,
0.03251359984278679,
-0.1205737292766571,
0.026173176243901253,
0.09102202206850052,
-0.0008681438048370183,
0.07073790580034256,
0.08543531596660614,
0.005365836434066296,
0.10804606974124908,
-0.031732283532619476,
0.037103742361068726,
0.022780224680900574,
-0.13262031972408295,
-0.10027334839105606,
-0.06721573323011398,
0.08320122212171555,
0.027261456474661827,
0.005980870220810175,
-0.03593759983778,
0.09504727274179459,
-0.04029597342014313,
0.07291014492511749,
0.2508648633956909,
-0.24843129515647888,
-0.00521922018378973,
0.03216911852359772,
0.01812971569597721,
0.0038581485860049725,
-0.048388004302978516,
-0.056379351764917374,
0.021754920482635498,
0.03445212543010712,
0.0666886493563652,
-0.03153068944811821,
0.03310348093509674,
-0.04051336646080017,
-0.14810699224472046,
-0.08407657593488693,
0.07271026819944382,
-0.022781861945986748,
-0.10869666934013367,
-0.08819090574979782,
-0.040217891335487366,
-0.02388664521276951,
-0.012108641676604748,
0.029808910563588142,
-0.011489231139421463,
0.0012749641900882125,
0.0530208945274353,
-0.003836521878838539,
-0.08393468707799911,
-0.0525144524872303,
-0.1127793937921524,
0.12976141273975372,
0.05511394515633583,
0.017731091007590294,
-0.0507860891520977,
0.11672525107860565,
-0.06210928037762642,
-0.08104485273361206,
-0.047337550669908524,
-0.06752065569162369,
-0.1447925716638565,
-0.020745735615491867,
-0.05986980348825455,
-0.1713099330663681,
-0.05201767757534981,
0.07836772501468658,
-0.036970119923353195,
0.05482946336269379,
-0.10844019800424576,
0.07159072160720825,
0.07291612774133682,
0.027310682460665703,
-0.09931822121143341,
0.03547140583395958,
0.010887048207223415,
0.03064252808690071,
0.015375224873423576,
-0.011315044946968555,
-0.013317343778908253,
-0.03729609400033951,
0.051364999264478683,
0.04188959300518036,
-0.003091679885983467,
0.0898497924208641,
-0.054135531187057495,
-0.046003714203834534,
0.05848781764507294,
-0.1190681979060173,
-0.05500640720129013,
-0.0027455289382487535,
-0.04665280878543854,
-0.023229876533150673,
0.0479169599711895,
-0.056890152394771576,
-0.12631526589393616,
0.10225503146648407,
-0.07414411008358002,
-0.053424663841724396,
-0.07966111600399017,
-0.1681145429611206,
-0.009887629188597202,
-0.028350509703159332,
-0.08572997152805328,
-0.04297224432229996,
-0.10051748901605606,
-0.030268816277384758,
0.029749248176813126,
-0.006896500941365957,
-0.04521135613322258,
-0.03164612129330635,
-0.03566543385386467,
-0.05289012938737869,
-0.02036496251821518,
0.1301603764295578,
-0.01304695662111044,
0.09102960675954819,
-0.07957211136817932,
0.10016727447509766,
0.031639911234378815,
0.0021794470958411694,
-0.08959158509969711,
0.0390656404197216,
-0.19655610620975494,
0.10590202361345291,
0.002883220324292779,
-0.10964134335517883,
-0.05236506462097168,
-0.06657422333955765,
-0.08489953726530075,
0.031110195443034172,
-0.005659951362758875,
0.11179658770561218,
-0.24637892842292786,
-0.04696863889694214,
0.32177963852882385,
-0.12046607583761215,
0.023574218153953552,
0.1313912272453308,
-0.08210750669240952,
0.049178894609212875,
0.08798849582672119,
0.09545692056417465,
-0.06608958542346954,
-0.051399555057287216,
0.0017291202675551176,
-0.05495618283748627,
-0.06079152226448059,
0.19326096773147583,
0.03837241604924202,
-0.03762819245457649,
-0.06801068782806396,
0.01390150561928749,
-0.027753300964832306,
-0.06750490516424179,
-0.021234620362520218,
-0.019480299204587936,
0.049369361251592636,
0.028072737157344818,
0.03183624893426895,
-0.028734542429447174,
-0.05478872358798981,
-0.0514010414481163,
-0.09203889966011047,
-0.07486386597156525,
0.06720269471406937,
-0.07687237858772278,
0.05664179474115372,
-0.04648904874920845,
-0.04774361476302147,
0.012058183550834656,
0.019268067553639412,
-0.2214093953371048,
0.024173181504011154,
0.07135054469108582,
-0.03957671672105789,
0.08066091686487198,
0.06301932036876678,
-0.001013649976812303,
0.08005209267139435,
-0.036660145968198776,
0.02781919203698635,
0.034495759755373,
-0.03465334326028824,
-0.07265865802764893,
-0.15866146981716156,
-0.06893566250801086,
-0.024859387427568436,
0.07275967299938202,
-0.07799138873815536,
0.002732083899900317,
-0.006823395844548941,
0.061866309493780136,
0.02478320151567459,
-0.057125505059957504,
0.0161148589104414,
0.01797073520720005,
-0.04189789667725563,
-0.01156580075621605,
0.017895270138978958,
0.027324534952640533,
-0.028238646686077118,
0.13292792439460754,
-0.22268028557300568,
-0.1875840723514557,
0.0826098695397377,
0.06963241100311279,
-0.1282421201467514,
-0.06143505126237869,
-0.05924714729189873,
-0.019566798582673073,
-0.07653762400150299,
-0.046266742050647736,
0.20783036947250366,
0.035837672650814056,
0.10669540613889694,
-0.12144972383975983,
-0.007803171407431364,
0.0035488628782331944,
-0.017585882917046547,
-0.023219557479023933,
0.05043381452560425,
0.002331558847799897,
-0.17629076540470123,
0.018501490354537964,
-0.12272215634584427,
0.01169445551931858,
0.10873302072286606,
0.03092077560722828,
-0.1142003983259201,
-0.025966839864850044,
0.00966984499245882,
0.057185281068086624,
0.06469985842704773,
-0.0667063519358635,
0.008933573961257935,
0.0625939816236496,
0.039371080696582794,
0.031295690685510635,
-0.0972486063838005,
0.054289527237415314,
0.02721041440963745,
-0.056213684380054474,
-0.07038356363773346,
-0.042814526706933975,
0.032935284078121185,
0.13114005327224731,
0.020237058401107788,
0.011437064968049526,
-0.0078006647527217865,
-0.05600341781973839,
-0.11870380491018295,
0.1682722121477127,
-0.07398577779531479,
-0.27455615997314453,
-0.15735366940498352,
-0.027876395732164383,
0.026833686977624893,
0.04052155092358589,
-0.0060065072029829025,
0.03227538242936134,
-0.07206785678863525,
-0.12770512700080872,
0.08193667978048325,
-0.02511594071984291,
0.014821690507233143,
-0.07034728676080704,
0.004947698675096035,
0.011715243570506573,
-0.11311522871255875,
0.006734848953783512,
-0.029226085171103477,
-0.03396753966808319,
0.040045998990535736,
-0.053997140377759933,
0.08929656445980072,
0.12938769161701202,
0.005627021659165621,
-0.020737294107675552,
-0.04947243258357048,
0.14106960594654083,
-0.04338059201836586,
0.0690038800239563,
-0.008071163669228554,
-0.086495541036129,
0.05262874811887741,
0.11994745582342148,
-0.02051062509417534,
-0.048784513026475906,
0.062287863343954086,
0.05541547015309334,
-0.04760762304067612,
-0.1975530982017517,
-0.020922807976603508,
-0.03478361293673515,
-0.007179872132837772,
0.11471039056777954,
0.03007369674742222,
-0.036124806851148605,
0.000764085678383708,
-0.09267889708280563,
0.01816723123192787,
0.0673939511179924,
0.08255612850189209,
-0.06614390015602112,
-0.026601796969771385,
0.08600457012653351,
-0.02748860977590084,
-0.032356761395931244,
0.08694171160459518,
-0.028414690867066383,
0.17004384100437164,
-0.10599341988563538,
0.19173221290111542,
0.10346415638923645,
0.04359222948551178,
0.05173284560441971,
0.09823767095804214,
-0.0478149875998497,
0.04056954383850098,
-0.0806271955370903,
-0.055952299386262894,
-0.05486561357975006,
0.014419217593967915,
0.033402446657419205,
0.04326943680644035,
-0.0643588975071907,
-0.041932981461286545,
0.02972611039876938,
0.22822700440883636,
0.06471570581197739,
-0.1694028377532959,
-0.05754468962550163,
0.008258911781013012,
-0.07541505992412567,
-0.05886606499552727,
0.014584536664187908,
0.10679475963115692,
-0.11640964448451996,
0.061645183712244034,
-0.033372942358255386,
0.07903216034173965,
-0.095694400370121,
0.02963346429169178,
-0.10114362090826035,
0.09319519251585007,
-0.04806256666779518,
0.08077017962932587,
-0.2717786729335785,
0.1715388298034668,
0.02742193453013897,
0.049987222999334335,
-0.12277135252952576,
-0.016286170110106468,
-0.004898996092379093,
-0.02232920192182064,
0.1411428451538086,
-0.02285756915807724,
0.0055753192864358425,
-0.03812405839562416,
-0.03762364760041237,
0.014353993348777294,
0.09681760519742966,
0.011671533808112144,
0.13516958057880402,
0.018524708226323128,
0.019700538367033005,
-0.002893849741667509,
0.0656125620007515,
-0.05394517257809639,
-0.14626826345920563,
0.050391484051942825,
-0.07154419273138046,
-0.018621960654854774,
-0.07049671560525894,
-0.0553245022892952,
0.02952914871275425,
0.1619260311126709,
-0.14889028668403625,
-0.04039919003844261,
-0.07560888677835464,
0.025286223739385605,
0.10909008979797363,
-0.06904173642396927,
-0.03590189665555954,
-0.016178613528609276,
0.18272823095321655,
-0.09001791477203369,
-0.06980527937412262,
0.052920036017894745,
-0.0363764651119709,
-0.11148077994585037,
-0.08623359352350235,
0.12115520983934402,
0.12673282623291016,
0.10090413689613342,
-0.009961226023733616,
0.020629119127988815,
0.06767120957374573,
-0.09064292162656784,
-0.029107538983225822,
0.040815580636262894,
0.11899073421955109,
0.08292539417743683,
-0.09277894347906113,
-0.04216177016496658,
-0.10947005450725555,
0.02607460878789425,
0.099798284471035,
0.24965105950832367,
-0.04882866144180298,
0.14809511601924896,
0.16751259565353394,
-0.11031802743673325,
-0.21384410560131073,
-0.023038135841488838,
0.07188034057617188,
0.06574869155883789,
0.00883723795413971,
-0.1745246797800064,
-0.060228582471609116,
0.07388810813426971,
0.013636068440973759,
-0.0214645154774189,
-0.2864055037498474,
-0.1136898547410965,
0.10369272530078888,
0.04945450276136398,
0.05282583460211754,
-0.07884226739406586,
-0.04183519631624222,
-0.038358572870492935,
-0.05707520246505737,
0.13355517387390137,
-0.023684725165367126,
0.14051608741283417,
0.03726830333471298,
-0.06489689648151398,
0.038741812109947205,
-0.06026880443096161,
0.12177041918039322,
0.01925460807979107,
0.06855350732803345,
-0.06050017103552818,
-0.01663346402347088,
0.07105354219675064,
-0.018645619973540306,
0.12830917537212372,
0.07379639893770218,
0.04080214351415634,
0.019757984206080437,
-0.0677608996629715,
-0.10381779074668884,
0.0034334775991737843,
-0.059879548847675323,
-0.047407232224941254,
-0.057907585054636,
0.07910177856683731,
0.08602076768875122,
-0.018526863306760788,
0.0022686622105538845,
-0.07727956771850586,
0.044620856642723083,
0.1616438627243042,
0.1121402382850647,
-0.03400428965687752,
-0.06220582500100136,
0.024008359760046005,
-0.002325769979506731,
0.06314390897750854,
-0.00016494831652380526,
0.038770824670791626,
0.073003388941288,
0.014227710664272308,
0.1608206033706665,
0.044398579746484756,
-0.1907133162021637,
-0.028757350519299507,
0.020565077662467957,
-0.17343933880329132,
-0.1362762302160263,
0.03538215532898903,
0.006391085684299469,
-0.15239278972148895,
-0.09151642769575119,
0.0687648132443428,
-0.0233228150755167,
-0.022594206035137177,
0.02366308681666851,
0.04031917080283165,
0.015014936216175556,
0.14841261506080627,
0.028748242184519768,
0.04624002054333687,
-0.07656590640544891,
0.10087539255619049,
0.10181836783885956,
-0.10155242681503296,
0.026304561644792557,
0.0864763855934143,
-0.09419284015893936,
0.00359982717782259,
-0.03022010065615177,
0.05893976241350174,
0.08836785703897476,
-0.012223898433148861,
-0.08384846150875092,
-0.0758761316537857,
0.08496265858411789,
0.12822683155536652,
0.021406538784503937,
0.08976577967405319,
-0.03099813126027584,
-0.0037420124281197786,
-0.07718892395496368,
0.03797131031751633,
0.06927678734064102,
0.05085797235369682,
0.06263799965381622,
0.27015799283981323,
-0.00019965208775829524,
0.03279739245772362,
-0.02281646430492401,
-0.04441064968705177,
-0.07852126657962799,
0.014023736119270325,
-0.07190696150064468,
0.042043592780828476,
-0.1392303705215454,
-0.03635735809803009,
0.007419148925691843,
0.0498308502137661,
0.030138332396745682,
-0.0027416369412094355,
-0.030461138114333153,
-0.013302001170814037,
-0.056094516068696976,
0.021945418789982796,
-0.0851588249206543,
-0.008845576085150242,
0.06054505705833435,
-0.06585022062063217,
0.08034868538379669,
-0.010817496106028557,
-0.05003156140446663,
0.029932230710983276,
-0.0779169425368309,
-0.01350438967347145,
0.020825430750846863,
0.019085315987467766,
-0.011756890453398228,
-0.12376032024621964,
-0.000971104484051466,
-0.01961330883204937,
-0.001079515554010868,
0.006948778405785561,
0.06221035495400429,
-0.09668170660734177,
0.05470797047019005,
0.043204549700021744,
-0.01790463551878929,
-0.06587496399879456,
0.08186451345682144,
0.03505944833159447,
0.01965329423546791,
0.12215382605791092,
-0.059883423149585724,
0.040734078735113144,
-0.1288178414106369,
-0.0028194996993988752,
-0.012821822427213192,
-0.0164723489433527,
0.07789899408817291,
-0.026603592559695244,
0.04517793655395508,
-0.01838815212249756,
0.13070428371429443,
-0.018658805638551712,
-0.0634419173002243,
0.02789320796728134,
-0.03348804637789726,
0.023954033851623535,
0.014319803565740585,
0.05401776731014252,
0.0017079026438295841,
-0.08284395188093185,
-0.006074594799429178,
0.034862205386161804,
-0.009561343118548393,
0.10121974349021912,
0.2467229813337326,
0.04756447300314903,
0.21138808131217957,
0.02187255583703518,
0.008651445619761944,
-0.03437407314777374,
0.013169105164706707,
0.07043319940567017,
0.05181954801082611,
0.019917313009500504,
0.03842978551983833,
0.06472918391227722,
0.15050901472568512,
-0.13344056904315948,
0.14083567261695862,
0.037346381694078445,
-0.10003360360860825,
-0.09063510596752167,
-0.25314486026763916,
-0.008868380449712276,
0.09158094227313995,
-0.04296163097023964,
-0.1347697526216507,
0.05021757259964943,
0.0732300877571106,
0.01584438607096672,
-0.0009367124876007438,
0.06562148779630661,
-0.053550343960523605,
-0.14112289249897003,
0.060431141406297684,
0.0013121467782184482,
0.025079434737563133,
0.049705129116773605,
-0.009834455326199532,
0.08239081501960754,
0.028211543336510658,
0.07172241806983948,
0.06655501574277878,
0.11807708442211151,
0.004171258304268122,
-0.049054812639951706,
-0.0701596736907959,
0.03212711960077286,
-0.023495106026530266,
0.09738023579120636,
0.20724807679653168,
0.06980647146701813,
-0.045750152319669724,
0.005868668667972088,
0.1274624615907669,
-0.013209161348640919,
-0.09294044971466064,
-0.15972591936588287,
0.2099306732416153,
0.03318868950009346,
0.006852406542748213,
0.052843645215034485,
-0.09366561472415924,
0.01257441844791174,
0.2095036506652832,
0.16505704820156097,
-0.03899452090263367,
0.003787112655118108,
0.03374284878373146,
0.011413940228521824,
0.07515644282102585,
0.13428722321987152,
0.00433908449485898,
0.2300873100757599,
-0.03133918344974518,
0.07779698818922043,
-0.03573046252131462,
0.023101631551980972,
-0.029240746051073074,
0.12082137167453766,
0.00701472582295537,
-0.01566583476960659,
-0.070107102394104,
0.03243706375360489,
-0.07844389230012894,
-0.2608990967273712,
-0.06456033885478973,
-0.020262394100427628,
-0.11660367250442505,
0.0005220710881985724,
-0.061599332839250565,
0.031150031834840775,
0.0978829488158226,
0.013139876537024975,
0.04669793322682381,
0.1542164832353592,
0.021050864830613136,
-0.06478305906057358,
-0.08674198389053345,
0.07026708871126175,
-0.020104587078094482,
0.15591637790203094,
0.03015393204987049,
0.08621314913034439,
0.06185994669795036,
0.009013167582452297,
-0.08312328904867172,
0.0560552142560482,
0.0022810937371104956,
0.0639309287071228,
0.027355121448636055,
0.15448401868343353,
0.003216697135940194,
0.02509787492454052,
0.03908539563417435,
-0.0941728949546814,
0.0614856593310833,
-0.10151457041501999,
-0.04939652234315872,
-0.10572569072246552,
0.07487992942333221,
-0.04452751204371452,
0.09197533875703812,
0.19438974559307098,
0.006100069265812635,
0.020652182400226593,
-0.04837974160909653,
-0.06565239280462265,
-0.006565113086253405,
0.10418214648962021,
-0.005758385639637709,
-0.1456676423549652,
-0.01068106573075056,
-0.09500579535961151,
0.005850824061781168,
-0.3032027781009674,
-0.031937260180711746,
0.04607437551021576,
-0.0850231871008873,
-0.0015499490546062589,
0.07977308332920074,
-0.034900400787591934,
0.06485249847173691,
-0.054919127374887466,
0.03620326891541481,
0.02570943348109722,
0.09621556103229523,
-0.1397133320569992,
-0.07964511215686798
] |
null | null | transformers |
# BERT large model (cased)
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1810.04805) and first released in
[this repository](https://github.com/google-research/bert). This model is cased: it makes a difference
between english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
- 24-layer
- 1024 hidden dimension
- 16 attention heads
- 336M parameters.
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=bert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-large-cased')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
"sequence":"[CLS] Hello I'm a male model. [SEP]",
"score":0.22748498618602753,
"token":2581,
"token_str":"male"
},
{
"sequence":"[CLS] Hello I'm a fashion model. [SEP]",
"score":0.09146175533533096,
"token":4633,
"token_str":"fashion"
},
{
"sequence":"[CLS] Hello I'm a new model. [SEP]",
"score":0.05823173746466637,
"token":1207,
"token_str":"new"
},
{
"sequence":"[CLS] Hello I'm a super model. [SEP]",
"score":0.04488750174641609,
"token":7688,
"token_str":"super"
},
{
"sequence":"[CLS] Hello I'm a famous model. [SEP]",
"score":0.03271442651748657,
"token":2505,
"token_str":"famous"
}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import BertTokenizer, BertModel
tokenizer = BertTokenizer.from_pretrained('bert-large-cased')
model = BertModel.from_pretrained("bert-large-cased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('bert-large-cased')
model = TFBertModel.from_pretrained("bert-large-cased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-large-cased')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] The man worked as a doctor. [SEP]",
"score":0.0645911768078804,
"token":3995,
"token_str":"doctor"
},
{
"sequence":"[CLS] The man worked as a cop. [SEP]",
"score":0.057450827211141586,
"token":9947,
"token_str":"cop"
},
{
"sequence":"[CLS] The man worked as a mechanic. [SEP]",
"score":0.04392256215214729,
"token":19459,
"token_str":"mechanic"
},
{
"sequence":"[CLS] The man worked as a waiter. [SEP]",
"score":0.03755280375480652,
"token":17989,
"token_str":"waiter"
},
{
"sequence":"[CLS] The man worked as a teacher. [SEP]",
"score":0.03458863124251366,
"token":3218,
"token_str":"teacher"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] The woman worked as a nurse. [SEP]",
"score":0.2572779953479767,
"token":7439,
"token_str":"nurse"
},
{
"sequence":"[CLS] The woman worked as a waitress. [SEP]",
"score":0.16706500947475433,
"token":15098,
"token_str":"waitress"
},
{
"sequence":"[CLS] The woman worked as a teacher. [SEP]",
"score":0.04587847739458084,
"token":3218,
"token_str":"teacher"
},
{
"sequence":"[CLS] The woman worked as a secretary. [SEP]",
"score":0.03577028587460518,
"token":4848,
"token_str":"secretary"
},
{
"sequence":"[CLS] The woman worked as a maid. [SEP]",
"score":0.03298963978886604,
"token":13487,
"token_str":"maid"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The BERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
When fine-tuned on downstream tasks, this model achieves the following results:
Model | SQUAD 1.1 F1/EM | Multi NLI Accuracy
---------------------------------------- | :-------------: | :----------------:
BERT-Large, Cased (Original) | 91.5/84.8 | 86.09
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1810-04805,
author = {Jacob Devlin and
Ming{-}Wei Chang and
Kenton Lee and
Kristina Toutanova},
title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language
Understanding},
journal = {CoRR},
volume = {abs/1810.04805},
year = {2018},
url = {http://arxiv.org/abs/1810.04805},
archivePrefix = {arXiv},
eprint = {1810.04805},
timestamp = {Tue, 30 Oct 2018 20:39:56 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
| {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | google-bert/bert-large-cased | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1810.04805"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| BERT large model (cased)
========================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model is cased: it makes a difference
between english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
* 24-layer
* 1024 hidden dimension
* 16 attention heads
* 336M parameters.
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The BERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \(\beta\_{1} = 0.9\) and \(\beta\_{2} = 0.999\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
Evaluation results
------------------
When fine-tuned on downstream tasks, this model achieves the following results:
### BibTeX entry and citation info
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:",
"### BibTeX entry and citation info"
] | [
78,
49,
101,
222,
158,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is."
] | [
-0.03382549062371254,
0.058699581772089005,
-0.005903793498873711,
0.04465165361762047,
-0.003110796445980668,
0.032222993671894073,
0.05241973698139191,
0.026366550475358963,
-0.08419404923915863,
0.09144852310419083,
0.049374788999557495,
0.0219463799148798,
0.10161014646291733,
0.10895925015211105,
0.045593440532684326,
-0.2735258936882019,
0.06628014892339706,
-0.03345664590597153,
0.09668499231338501,
0.10667635500431061,
0.0902310460805893,
-0.07586430758237839,
0.005379650741815567,
0.0063194697722792625,
-0.015119506046175957,
-0.011063299141824245,
0.021537387743592262,
-0.0656757578253746,
0.08935602754354477,
0.0673699751496315,
0.08321299403905869,
0.06047932431101799,
0.061032094061374664,
-0.14438745379447937,
0.023882178589701653,
0.09274069219827652,
0.0009945734636858106,
0.05516859143972397,
0.09839354455471039,
-0.026517244055867195,
0.08338415622711182,
-0.027161741629242897,
0.05813869088888168,
0.039678312838077545,
-0.1287587434053421,
-0.10600287467241287,
-0.06573803722858429,
0.09932560473680496,
0.02191414311528206,
0.003761967411264777,
-0.03369458392262459,
0.07744819670915604,
-0.04547901451587677,
0.06267520040273666,
0.2344520092010498,
-0.23177863657474518,
-0.0026224625762552023,
0.05766577273607254,
0.018719429150223732,
0.021806690841913223,
-0.05382313206791878,
-0.04141658917069435,
0.04430656507611275,
0.03761594742536545,
0.05702095106244087,
-0.020188894122838974,
0.032170336693525314,
-0.043660037219524384,
-0.12527595460414886,
-0.09792201966047287,
0.08859066665172577,
-0.026319094002246857,
-0.1186826303601265,
-0.09610565751791,
-0.01826898753643036,
0.0038595206569880247,
-0.0038735249545425177,
0.04037434235215187,
-0.013116800226271152,
0.0011867405846714973,
0.06525615602731705,
0.026411300525069237,
-0.09621098637580872,
-0.06377559900283813,
-0.10083568096160889,
0.16310560703277588,
0.04569890350103378,
0.025995632633566856,
-0.03736845776438713,
0.11807232350111008,
-0.0486619770526886,
-0.07730025053024292,
-0.0440029501914978,
-0.07326292246580124,
-0.15190546214580536,
-0.014261427335441113,
-0.05408157780766487,
-0.1519148349761963,
-0.03973012417554855,
0.0985877588391304,
-0.026025433093309402,
0.042556822299957275,
-0.11338812857866287,
0.056503478437662125,
0.0753040686249733,
0.010559244081377983,
-0.09137663245201111,
0.01797633245587349,
0.008337484672665596,
0.03368642181158066,
0.017127059400081635,
-0.004368159919977188,
0.0009739459492266178,
-0.05752372741699219,
0.02529415488243103,
0.050559040158987045,
-0.013400132767856121,
0.08778253197669983,
-0.06687980890274048,
-0.02607802115380764,
0.06956887245178223,
-0.12968480587005615,
-0.06214521452784538,
0.013636580668389797,
-0.03690577670931816,
-0.053760629147291183,
0.06155318021774292,
-0.06550145149230957,
-0.10857416689395905,
0.11648721247911453,
-0.07268929481506348,
-0.06210561469197273,
-0.06821531802415848,
-0.15766243636608124,
-0.007956128567457199,
-0.0007898652111180127,
-0.0860968753695488,
-0.050007641315460205,
-0.0905810296535492,
-0.013930763117969036,
0.008801650255918503,
0.0038997407536953688,
-0.014189928770065308,
-0.02318079210817814,
-0.026083998382091522,
-0.05189967527985573,
-0.01668202504515648,
0.12447579950094223,
-0.02786528505384922,
0.08071866631507874,
-0.07086669653654099,
0.09475874900817871,
0.07313114404678345,
-0.0017041200771927834,
-0.08486667275428772,
0.04038059338927269,
-0.2097994089126587,
0.10409487038850784,
-0.01829461008310318,
-0.13026440143585205,
-0.047368280589580536,
-0.06140781566500664,
-0.07561907917261124,
0.04537848383188248,
-0.02420160360634327,
0.10309085994958878,
-0.21323415637016296,
-0.046071890741586685,
0.34184977412223816,
-0.13594980537891388,
0.019490081816911697,
0.1306515634059906,
-0.08078272640705109,
0.03190281614661217,
0.09043325483798981,
0.07883449643850327,
-0.05787232890725136,
-0.0680529773235321,
-0.008267230354249477,
-0.04824243485927582,
-0.04035284370183945,
0.23239237070083618,
0.03876805678009987,
-0.04794855788350105,
-0.05166775360703468,
0.03606352210044861,
-0.03955094888806343,
-0.0680524930357933,
-0.01814205013215542,
-0.01066166814416647,
0.030823292210698128,
0.010350205935537815,
0.06426116079092026,
-0.03405191749334335,
-0.06597217917442322,
-0.05418055132031441,
-0.08696120977401733,
-0.10385487973690033,
0.0896039828658104,
-0.07681602984666824,
0.0357242077589035,
-0.03727763518691063,
-0.06867539137601852,
-0.009623648598790169,
0.007277086842805147,
-0.21675458550453186,
0.015471738763153553,
0.05963372066617012,
-0.07656495273113251,
0.0884394496679306,
0.06310003250837326,
0.0077852220274508,
0.09792722016572952,
-0.051167067140340805,
0.036444030702114105,
0.010690380819141865,
-0.022912707179784775,
-0.05987268313765526,
-0.1674077808856964,
-0.08232080936431885,
-0.03124866634607315,
0.11515286564826965,
-0.10534799844026566,
0.012729150243103504,
-0.017461838200688362,
0.08195451647043228,
0.020239733159542084,
-0.06335192173719406,
0.034780606627464294,
0.009201123379170895,
-0.05683586746454239,
-0.008023669011890888,
-0.0025807195343077183,
0.0007978365174494684,
-0.03183412179350853,
0.12882961332798004,
-0.2306467592716217,
-0.13744311034679413,
0.07345093786716461,
0.08850136399269104,
-0.13334627449512482,
-0.06840606033802032,
-0.062077879905700684,
-0.026801563799381256,
-0.0993184819817543,
-0.06273740530014038,
0.19311921298503876,
0.03409251943230629,
0.11186231672763824,
-0.1274515986442566,
0.007926596328616142,
0.01500776782631874,
-0.008318768814206123,
-0.00412173755466938,
0.04859858378767967,
-0.017729377374053,
-0.14848287403583527,
0.03181097283959389,
-0.12315364927053452,
0.03136010468006134,
0.09859056025743484,
0.03422997146844864,
-0.12827524542808533,
-0.01443644892424345,
0.011846552602946758,
0.05824095010757446,
0.08281035721302032,
-0.07176550477743149,
0.009011991322040558,
0.05869302526116371,
0.02743775025010109,
0.018452612683176994,
-0.09760316461324692,
0.04824232682585716,
0.02611694484949112,
-0.06428073346614838,
-0.07550814002752304,
-0.060296498239040375,
0.03839719668030739,
0.13564303517341614,
-0.004779157228767872,
0.009893212467432022,
-0.023784464225172997,
-0.06093287840485573,
-0.12744708359241486,
0.17154419422149658,
-0.06640688329935074,
-0.2818422019481659,
-0.17106139659881592,
0.004080673214048147,
0.0011907749576494098,
0.031699176877737045,
-0.01927635446190834,
0.04118365794420242,
-0.0715440958738327,
-0.1285327672958374,
0.08150626718997955,
-0.027252674102783203,
0.011617460288107395,
-0.06663794070482254,
0.0410749725997448,
0.00662980554625392,
-0.13713999092578888,
0.011024536564946175,
-0.021436696872115135,
-0.049037832766771317,
0.03383288159966469,
-0.051207415759563446,
0.082635797560215,
0.13495901226997375,
0.008521324954926968,
-0.03332583233714104,
-0.05824549123644829,
0.08177956193685532,
-0.038219183683395386,
0.06810276955366135,
-0.00234016589820385,
-0.08979812264442444,
0.04528699815273285,
0.10514546185731888,
-0.01270484458655119,
-0.05116580054163933,
0.0687575489282608,
0.04173150658607483,
-0.042706821113824844,
-0.20742464065551758,
-0.036312758922576904,
-0.04683215916156769,
0.0071261669509112835,
0.12801064550876617,
0.025824319571256638,
-0.015735216438770294,
0.004191369283944368,
-0.10193794220685959,
0.013575345277786255,
0.0943666622042656,
0.08450175821781158,
-0.07182051241397858,
-0.02167796529829502,
0.08584810793399811,
-0.03741585463285446,
-0.0293434951454401,
0.09178976714611053,
0.0032208887860178947,
0.16265229880809784,
-0.10934233665466309,
0.16982589662075043,
0.10247102379798889,
0.0480789840221405,
0.05106309801340103,
0.10593952983617783,
-0.026726486161351204,
0.046101007610559464,
-0.08357002586126328,
-0.08187132328748703,
-0.06232161819934845,
0.03369801118969917,
0.02151983045041561,
0.05023851990699768,
-0.057008203119039536,
-0.07087437808513641,
0.029551485553383827,
0.19328679144382477,
0.08395162969827652,
-0.1703673154115677,
-0.08085988461971283,
0.014791803434491158,
-0.06560201197862625,
-0.04444153606891632,
0.020696602761745453,
0.10784876346588135,
-0.11686184257268906,
0.07786320894956589,
-0.02504299394786358,
0.06693045049905777,
-0.07436485588550568,
0.020869657397270203,
-0.13574957847595215,
0.09278832376003265,
-0.046963952481746674,
0.08519967645406723,
-0.24966663122177124,
0.15258558094501495,
0.025850117206573486,
0.05699962005019188,
-0.12727385759353638,
-0.005682705901563168,
0.011014970950782299,
-0.0006912130629643798,
0.14136749505996704,
-0.026312973350286484,
0.0019283231813460588,
-0.05511871725320816,
-0.056223247200250626,
0.014995136298239231,
0.08651591092348099,
-0.0022528599947690964,
0.12724199891090393,
0.024251557886600494,
0.007489600218832493,
0.0048071579076349735,
0.04058898985385895,
-0.0846504420042038,
-0.16447514295578003,
0.0565434955060482,
-0.09082724899053574,
-0.03729995712637901,
-0.08278362452983856,
-0.05478980392217636,
0.013327289372682571,
0.14940650761127472,
-0.13583505153656006,
-0.038420580327510834,
-0.07466322183609009,
0.015246490016579628,
0.1267903596162796,
-0.052927929908037186,
-0.02587335743010044,
-0.014284259639680386,
0.1986396610736847,
-0.10061562806367874,
-0.06475167721509933,
0.031612589955329895,
-0.047769490629434586,
-0.14758139848709106,
-0.10184517502784729,
0.12917040288448334,
0.11087778955698013,
0.08679595589637756,
0.005019949283450842,
0.003685172414407134,
0.08444727957248688,
-0.0941845178604126,
-0.028237514197826385,
0.07658053189516068,
0.1492735743522644,
0.11391246318817139,
-0.10184434801340103,
-0.09681548178195953,
-0.10288233309984207,
0.010570239275693893,
0.04425284266471863,
0.26753485202789307,
-0.06361149251461029,
0.14329002797603607,
0.17703983187675476,
-0.11200166493654251,
-0.20764416456222534,
-0.016081299632787704,
0.05017944797873497,
0.06483088433742523,
0.05214589834213257,
-0.14766325056552887,
-0.04327860847115517,
0.09133907407522202,
0.005849719978868961,
-0.0006648708367720246,
-0.2970738112926483,
-0.12017830461263657,
0.08466624468564987,
0.05000072345137596,
0.027185190469026566,
-0.09396857023239136,
-0.03321487456560135,
-0.044698234647512436,
-0.09401098638772964,
0.10533346235752106,
-0.03201144188642502,
0.12857180833816528,
0.01969960331916809,
-0.08300630748271942,
0.042069047689437866,
-0.06986358761787415,
0.12659771740436554,
0.02790972590446472,
0.06813017278909683,
-0.057960961014032364,
-0.0030161691829562187,
0.11490537971258163,
-0.0159708634018898,
0.13160982728004456,
0.05324995890259743,
0.04403295740485191,
0.027996966615319252,
-0.06594633311033249,
-0.0990811288356781,
0.010690695606172085,
-0.05858992785215378,
-0.05126804858446121,
-0.06030074134469032,
0.06971821933984756,
0.07728245854377747,
-0.024360056966543198,
-0.01288873516023159,
-0.07514116913080215,
0.06347113102674484,
0.16475103795528412,
0.10873856395483017,
-0.0063783214427530766,
-0.07086405158042908,
0.016899293288588524,
-0.018997909501194954,
0.04452330619096756,
-0.017288440838456154,
0.05067768692970276,
0.07531726360321045,
0.029388951137661934,
0.1646040827035904,
0.043038927018642426,
-0.17820894718170166,
-0.01829850859940052,
0.031080318614840508,
-0.15004782378673553,
-0.15724098682403564,
0.03945283219218254,
-0.012201493605971336,
-0.14375938475131989,
-0.05993405729532242,
0.07467207312583923,
-0.047086335718631744,
-0.01970251463353634,
0.007533602882176638,
0.05576898530125618,
0.01368663925677538,
0.14426289498806,
0.02313637174665928,
0.04364538565278053,
-0.07271066308021545,
0.11544090509414673,
0.10909370332956314,
-0.10112650692462921,
0.008728057146072388,
0.04310382902622223,
-0.10152958333492279,
0.004291980527341366,
-0.04951292276382446,
0.05025913566350937,
0.10028453916311264,
-0.02185746282339096,
-0.07947017252445221,
-0.08117527514696121,
0.06893705576658249,
0.1300056129693985,
0.012711183167994022,
0.10071826726198196,
-0.00584663450717926,
0.006508419290184975,
-0.08280880749225616,
0.04701530933380127,
0.06983594596385956,
0.06598888337612152,
0.05420513451099396,
0.28213027119636536,
0.01365218497812748,
0.0077740163542330265,
-0.018904047086834908,
-0.05411018058657646,
-0.07277896255254745,
0.022799789905548096,
-0.09229901432991028,
0.0667262151837349,
-0.14535613358020782,
-0.03841642290353775,
0.00969098974019289,
0.049091361463069916,
0.03357647731900215,
0.005575328134000301,
-0.022480525076389313,
-0.005145681090652943,
-0.04995504766702652,
0.04160327836871147,
-0.11061707884073257,
-0.027312401682138443,
0.062295764684677124,
-0.08772078901529312,
0.07919379323720932,
-0.006254701409488916,
-0.052456483244895935,
0.021022796630859375,
-0.12342998385429382,
-0.001194750308059156,
0.04049823805689812,
0.03406083211302757,
-0.029907403513789177,
-0.10892456024885178,
0.015813911333680153,
-0.022100208327174187,
-0.008963602595031261,
0.013729850761592388,
0.05245858430862427,
-0.0942520946264267,
0.049702517688274384,
0.05610279366374016,
-0.007433353923261166,
-0.05953018367290497,
0.07105125486850739,
0.05475202947854996,
0.006680341437458992,
0.1078493744134903,
-0.06051492318511009,
0.01998758129775524,
-0.14874029159545898,
-0.014422155916690826,
-0.021087219938635826,
-0.011672688648104668,
0.072989322245121,
-0.021552490070462227,
0.03422076627612114,
-0.01818317174911499,
0.16043530404567719,
-0.024281267076730728,
-0.04162028804421425,
0.02110007405281067,
-0.04770580679178238,
0.05172474682331085,
0.027323685586452484,
0.03739243745803833,
-0.01274578645825386,
-0.06850039958953857,
-0.027205467224121094,
0.019851824268698692,
-0.014949009753763676,
0.05401749908924103,
0.20658279955387115,
0.04921972379088402,
0.18796995282173157,
0.015881063416600227,
0.025832869112491608,
-0.043356094509363174,
-0.0013442070921882987,
0.035849250853061676,
0.03894297406077385,
0.012838255614042282,
0.02836008369922638,
0.032172128558158875,
0.15457940101623535,
-0.12429153919219971,
0.15380795300006866,
0.022757690399885178,
-0.08755917102098465,
-0.07519283890724182,
-0.23393124341964722,
-0.006410694681107998,
0.10677409917116165,
-0.03634005784988403,
-0.12139417231082916,
0.059672996401786804,
0.10126687586307526,
0.020238066092133522,
0.002636442193761468,
0.062158189713954926,
-0.04137662425637245,
-0.12772151827812195,
0.05136162042617798,
0.012083667330443859,
0.024836570024490356,
0.05959080532193184,
0.004814332351088524,
0.08501746505498886,
0.004488862585276365,
0.07231863588094711,
0.06525388360023499,
0.11592980474233627,
-0.009248800575733185,
-0.042081888765096664,
-0.0550558976829052,
0.03423919901251793,
-0.04490852355957031,
0.0697038546204567,
0.21006891131401062,
0.09140738844871521,
-0.05067259073257446,
0.01692649908363819,
0.12107344716787338,
-0.016803564503788948,
-0.11369755119085312,
-0.15768077969551086,
0.19994980096817017,
0.0410798005759716,
0.025557778775691986,
0.06727764755487442,
-0.09281501919031143,
0.020823752507567406,
0.16864335536956787,
0.1643580198287964,
-0.014141274616122246,
0.015956059098243713,
0.03824768215417862,
0.0025153271853923798,
0.07905801385641098,
0.1433505266904831,
-0.01681535504758358,
0.25133615732192993,
-0.027321022003889084,
0.10502992570400238,
-0.014188696630299091,
0.037606917321681976,
-0.02094222791492939,
0.13594898581504822,
-0.04345841705799103,
-0.015334684401750565,
-0.0660942867398262,
0.0294627882540226,
-0.05410485714673996,
-0.2790694236755371,
-0.04692021757364273,
-0.030905496329069138,
-0.11090102791786194,
0.005326508544385433,
-0.07270239293575287,
0.03277065232396126,
0.07997428625822067,
0.016577821224927902,
0.04287661239504814,
0.16602075099945068,
0.012271005660295486,
-0.05801919102668762,
-0.08106780052185059,
0.06212521344423294,
-0.0050119683146476746,
0.1733490228652954,
0.027544084936380386,
0.10662424564361572,
0.05272500589489937,
0.00744582898914814,
-0.07528479397296906,
0.050235338509082794,
0.009097094647586346,
0.08866360783576965,
0.02528754249215126,
0.14613565802574158,
-0.0004179430252406746,
0.024363728240132332,
0.018022123724222183,
-0.07609794288873672,
0.07252758741378784,
-0.07280533760786057,
-0.04821270704269409,
-0.11312371492385864,
0.07374478131532669,
-0.02233673259615898,
0.0931989774107933,
0.16080066561698914,
0.006994382478296757,
0.012326202355325222,
-0.044808510690927505,
-0.059683285653591156,
-0.0041220830753445625,
0.13366016745567322,
0.006855992134660482,
-0.1421690583229065,
-0.0092574842274189,
-0.08013132959604263,
0.023131610825657845,
-0.3191743791103363,
-0.03409254923462868,
0.059315815567970276,
-0.10454061627388,
-0.0018791198963299394,
0.08062705397605896,
0.003952395636588335,
0.08426546305418015,
-0.05791415274143219,
-0.019906241446733475,
0.03197994455695152,
0.09678447991609573,
-0.13137958943843842,
-0.08125340938568115
] |
null | null | transformers |
# BERT large model (uncased) whole word masking finetuned on SQuAD
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1810.04805) and first released in
[this repository](https://github.com/google-research/bert). This model is uncased: it does not make a difference
between english and English.
Differently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.
The training is identical -- each masked WordPiece token is predicted independently.
After pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. See below for more information regarding this fine-tuning.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
- 24-layer
- 1024 hidden dimension
- 16 attention heads
- 336M parameters.
## Intended uses & limitations
This model should be used as a question-answering model. You may use it in a question answering pipeline, or use it to output raw results given a query and a context. You may see other use cases in the [task summary](https://huggingface.co/transformers/task_summary.html#extractive-question-answering) of the transformers documentation.## Training data
The BERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
### Fine-tuning
After pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. In order to reproduce the training, you may use the following command:
```
python -m torch.distributed.launch --nproc_per_node=8 ./examples/question-answering/run_qa.py \
--model_name_or_path bert-large-uncased-whole-word-masking \
--dataset_name squad \
--do_train \
--do_eval \
--learning_rate 3e-5 \
--num_train_epochs 2 \
--max_seq_length 384 \
--doc_stride 128 \
--output_dir ./examples/models/wwm_uncased_finetuned_squad/ \
--per_device_eval_batch_size=3 \
--per_device_train_batch_size=3 \
```
## Evaluation results
The results obtained are the following:
```
f1 = 93.15
exact_match = 86.91
```
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1810-04805,
author = {Jacob Devlin and
Ming{-}Wei Chang and
Kenton Lee and
Kristina Toutanova},
title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language
Understanding},
journal = {CoRR},
volume = {abs/1810.04805},
year = {2018},
url = {http://arxiv.org/abs/1810.04805},
archivePrefix = {arXiv},
eprint = {1810.04805},
timestamp = {Tue, 30 Oct 2018 20:39:56 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
``` | {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | question-answering | google-bert/bert-large-uncased-whole-word-masking-finetuned-squad | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"question-answering",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1810.04805"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #safetensors #bert #question-answering #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #endpoints_compatible #has_space #region-us
|
# BERT large model (uncased) whole word masking finetuned on SQuAD
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model is uncased: it does not make a difference
between english and English.
Differently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.
The training is identical -- each masked WordPiece token is predicted independently.
After pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. See below for more information regarding this fine-tuning.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
- 24-layer
- 1024 hidden dimension
- 16 attention heads
- 336M parameters.
## Intended uses & limitations
This model should be used as a question-answering model. You may use it in a question answering pipeline, or use it to output raw results given a query and a context. You may see other use cases in the task summary of the transformers documentation.## Training data
The BERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by '[MASK]'.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
### Fine-tuning
After pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. In order to reproduce the training, you may use the following command:
## Evaluation results
The results obtained are the following:
### BibTeX entry and citation info
| [
"# BERT large model (uncased) whole word masking finetuned on SQuAD\n\nPretrained model on English language using a masked language modeling (MLM) objective. It was introduced in\nthis paper and first released in\nthis repository. This model is uncased: it does not make a difference\nbetween english and English.\n\nDifferently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.\n\nThe training is identical -- each masked WordPiece token is predicted independently. \n\nAfter pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. See below for more information regarding this fine-tuning.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team.",
"## Model description\n\nBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it\nwas pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of\npublicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it\nwas pretrained with two objectives:\n\n- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run\n the entire masked sentence through the model and has to predict the masked words. This is different from traditional\n recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like\n GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the\n sentence.\n- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes\n they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to\n predict if the two sentences were following each other or not.\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard\nclassifier using the features produced by the BERT model as inputs.\n\nThis model has the following configuration:\n\n- 24-layer\n- 1024 hidden dimension\n- 16 attention heads\n- 336M parameters.",
"## Intended uses & limitations\nThis model should be used as a question-answering model. You may use it in a question answering pipeline, or use it to output raw results given a query and a context. You may see other use cases in the task summary of the transformers documentation.## Training data\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).",
"## Training procedure",
"### Preprocessing\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\nThe details of the masking procedure for each sentence are the following:\n- 15% of the tokens are masked.\n- In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n- In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\\\(\\beta_{1} = 0.9\\\\) and \\\\(\\beta_{2} = 0.999\\\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.",
"### Fine-tuning\n\nAfter pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. In order to reproduce the training, you may use the following command:",
"## Evaluation results\n\nThe results obtained are the following:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #question-answering #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #endpoints_compatible #has_space #region-us \n",
"# BERT large model (uncased) whole word masking finetuned on SQuAD\n\nPretrained model on English language using a masked language modeling (MLM) objective. It was introduced in\nthis paper and first released in\nthis repository. This model is uncased: it does not make a difference\nbetween english and English.\n\nDifferently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.\n\nThe training is identical -- each masked WordPiece token is predicted independently. \n\nAfter pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. See below for more information regarding this fine-tuning.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team.",
"## Model description\n\nBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it\nwas pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of\npublicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it\nwas pretrained with two objectives:\n\n- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run\n the entire masked sentence through the model and has to predict the masked words. This is different from traditional\n recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like\n GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the\n sentence.\n- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes\n they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to\n predict if the two sentences were following each other or not.\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard\nclassifier using the features produced by the BERT model as inputs.\n\nThis model has the following configuration:\n\n- 24-layer\n- 1024 hidden dimension\n- 16 attention heads\n- 336M parameters.",
"## Intended uses & limitations\nThis model should be used as a question-answering model. You may use it in a question answering pipeline, or use it to output raw results given a query and a context. You may see other use cases in the task summary of the transformers documentation.## Training data\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).",
"## Training procedure",
"### Preprocessing\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\nThe details of the masking procedure for each sentence are the following:\n- 15% of the tokens are masked.\n- In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n- In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\\\(\\beta_{1} = 0.9\\\\) and \\\\(\\beta_{2} = 0.999\\\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.",
"### Fine-tuning\n\nAfter pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. In order to reproduce the training, you may use the following command:",
"## Evaluation results\n\nThe results obtained are the following:",
"### BibTeX entry and citation info"
] | [
75,
223,
359,
112,
3,
222,
130,
51,
12,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #question-answering #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #endpoints_compatible #has_space #region-us \n# BERT large model (uncased) whole word masking finetuned on SQuAD\n\nPretrained model on English language using a masked language modeling (MLM) objective. It was introduced in\nthis paper and first released in\nthis repository. This model is uncased: it does not make a difference\nbetween english and English.\n\nDifferently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.\n\nThe training is identical -- each masked WordPiece token is predicted independently. \n\nAfter pre-training, this model was fine-tuned on the SQuAD dataset with one of our fine-tuning scripts. See below for more information regarding this fine-tuning.\n\nDisclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by\nthe Hugging Face team.",
"passage: ## Model description\n\nBERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it\nwas pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of\npublicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it\nwas pretrained with two objectives:\n\n- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run\n the entire masked sentence through the model and has to predict the masked words. This is different from traditional\n recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like\n GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the\n sentence.\n- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes\n they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to\n predict if the two sentences were following each other or not.\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard\nclassifier using the features produced by the BERT model as inputs.\n\nThis model has the following configuration:\n\n- 24-layer\n- 1024 hidden dimension\n- 16 attention heads\n- 336M parameters.## Intended uses & limitations\nThis model should be used as a question-answering model. You may use it in a question answering pipeline, or use it to output raw results given a query and a context. You may see other use cases in the task summary of the transformers documentation.## Training data\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).## Training procedure### Preprocessing\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\nThe details of the masking procedure for each sentence are the following:\n- 15% of the tokens are masked.\n- In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n- In the 10% remaining cases, the masked tokens are left as is.### Pretraining\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\\\(\\beta_{1} = 0.9\\\\) and \\\\(\\beta_{2} = 0.999\\\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after."
] | [
-0.05704997107386589,
0.030646607279777527,
-0.00258050300180912,
0.08752212673425674,
0.029435738921165466,
-0.012429816648364067,
0.1022440493106842,
0.05245259776711464,
-0.10585728287696838,
0.05770398676395416,
0.045826636254787445,
-0.010073274374008179,
0.07932224869728088,
0.09403593838214874,
0.07022988051176071,
-0.2612749934196472,
0.07196061313152313,
-0.06504330784082413,
0.04604174941778183,
0.05636598914861679,
0.10298845916986465,
-0.09442751109600067,
0.056362271308898926,
0.0463438555598259,
-0.05447487160563469,
-0.027597015723586082,
-0.004486823920160532,
-0.04758092761039734,
0.06579925119876862,
0.07767638564109802,
0.10295645892620087,
-0.00482823234051466,
0.0482151173055172,
-0.08302478492259979,
0.02447178214788437,
0.06702540814876556,
0.0011516776867210865,
0.037833571434020996,
0.03121092915534973,
-0.010272005572915077,
0.05628713592886925,
0.02061476930975914,
0.10165642946958542,
0.031689129769802094,
-0.12620337307453156,
-0.12735508382320404,
-0.0862867683172226,
0.08709216117858887,
0.06443805992603302,
0.033830635249614716,
-0.028604945167899132,
0.12170158326625824,
-0.0246865414083004,
0.06044831871986389,
0.11845144629478455,
-0.1878654658794403,
-0.02137785404920578,
-0.03868484869599342,
0.006342928856611252,
-0.0056231822818517685,
-0.03436083719134331,
-0.01779063045978546,
0.000522863119840622,
0.01805690862238407,
0.03945716843008995,
0.010287556797266006,
0.06722874939441681,
-0.04677341505885124,
-0.14324155449867249,
-0.024845626205205917,
0.1290033757686615,
0.00678328238427639,
-0.12843412160873413,
-0.15413528680801392,
-0.014005333185195923,
0.0911073088645935,
-0.006463295314460993,
-0.02029806561768055,
0.009917482733726501,
-0.002087164670228958,
0.04417600482702255,
-0.026461103931069374,
-0.1107601448893547,
-0.01390768587589264,
-0.04076958820223808,
0.14723244309425354,
0.03297068178653717,
0.024598926305770874,
-0.08918216079473495,
0.06198480352759361,
-0.10949799418449402,
-0.06615234911441803,
-0.06657621264457703,
-0.09555740654468536,
-0.02765803597867489,
-0.000809206161648035,
-0.03045094572007656,
-0.2041214108467102,
-0.08741503208875656,
0.10719628632068634,
-0.0037741055712103844,
0.025953076779842377,
-0.05642908066511154,
0.005110831465572119,
0.10201610624790192,
0.13149386644363403,
-0.03409038856625557,
0.08314390480518341,
0.01617637649178505,
0.03715796768665314,
0.02738489955663681,
-0.06416715681552887,
-0.05530906468629837,
0.09616425633430481,
-0.029204441234469414,
0.005920810159295797,
0.039664674550294876,
0.03472481667995453,
-0.05881987139582634,
-0.06406361609697342,
0.149185910820961,
-0.12443769723176956,
-0.013219047337770462,
0.008423734456300735,
-0.018665144219994545,
-0.028812699019908905,
0.05705126002430916,
-0.01615813560783863,
-0.07006590813398361,
0.004543660208582878,
-0.05879296362400055,
-0.04411717504262924,
-0.07173719257116318,
-0.15432953834533691,
-0.005205498076975346,
-0.03464001417160034,
-0.05301175266504288,
-0.09745834767818451,
-0.12117669731378555,
-0.024524018168449402,
0.04497411847114563,
-0.0031436120625585318,
0.04713871330022812,
-0.032973822206258774,
-0.025362161919474602,
-0.008989660069346428,
0.031116921454668045,
-0.05825668200850487,
0.005514921620488167,
-0.004281459376215935,
-0.059925325214862823,
0.0550498366355896,
-0.030406605452299118,
0.030951866880059242,
-0.08478939533233643,
-0.00030816858634352684,
-0.19208478927612305,
0.12391635775566101,
-0.008645164780318737,
-0.03627670556306839,
-0.018448365852236748,
-0.03896133974194527,
-0.06164500117301941,
0.04556016996502876,
0.00924418680369854,
0.12609359622001648,
-0.207738995552063,
-0.07012655586004257,
0.21163657307624817,
-0.17144927382469177,
-0.0000359509140253067,
0.10947709530591965,
-0.07508037984371185,
0.08041844516992569,
0.12156619131565094,
0.13551214337348938,
0.05278036370873451,
-0.06931345909833908,
-0.04295843839645386,
0.000675552524626255,
-0.040431663393974304,
0.1692907214164734,
0.052738163620233536,
-0.026907961815595627,
-0.012933173216879368,
0.017769796773791313,
-0.03064596652984619,
-0.0632726401090622,
-0.0024109957739710808,
-0.040214039385318756,
0.03876689448952675,
-0.010275146923959255,
0.04984864220023155,
-0.020206179469823837,
-0.021829988807439804,
-0.03303604573011398,
-0.11448678374290466,
0.01578846387565136,
0.06575856357812881,
-0.1012120395898819,
0.02469572052359581,
-0.10741192102432251,
0.034060534089803696,
-0.013923472724854946,
-0.006908114068210125,
-0.1671578288078308,
-0.05058067664504051,
0.07027509063482285,
-0.11323530972003937,
0.09090735018253326,
0.06276773661375046,
0.009492823854088783,
0.10683406889438629,
-0.023480284959077835,
-0.014693601056933403,
-0.04403972625732422,
-0.022730892524123192,
-0.0577726848423481,
-0.14217796921730042,
-0.04510612040758133,
-0.07320857048034668,
0.07590684294700623,
-0.08635958284139633,
0.03418461233377457,
-0.015746045857667923,
-0.025012489408254623,
0.04876567795872688,
-0.06484760344028473,
0.02600008435547352,
-0.0008737738244235516,
-0.028685353696346283,
-0.030100543051958084,
0.008229009807109833,
0.020336324349045753,
-0.0721110999584198,
0.08471498638391495,
-0.2012181282043457,
-0.16613160073757172,
0.056335486471652985,
0.06922084838151932,
-0.0790305882692337,
0.05428478866815567,
-0.02088293433189392,
-0.00900653563439846,
-0.05271833389997482,
-0.05087176337838173,
0.22725531458854675,
-0.005088203586637974,
0.09904307872056961,
-0.1161615401506424,
-0.020839709788560867,
0.025495020672678947,
-0.03359515964984894,
-0.04566553235054016,
0.0508737787604332,
-0.05606657266616821,
-0.14670833945274353,
-0.0017950106412172318,
0.02442052587866783,
0.09951545298099518,
0.16890791058540344,
0.03217838704586029,
-0.0582527220249176,
-0.03050868958234787,
0.0029049392323940992,
0.029890382662415504,
0.06591212004423141,
-0.000010534189641475677,
0.0019276444800198078,
0.047907210886478424,
0.07091031968593597,
0.0061699943616986275,
-0.07750627398490906,
0.048933081328868866,
0.06687270104885101,
-0.019179346039891243,
-0.09738947451114655,
-0.037441328167915344,
-0.029376445338129997,
0.06512749195098877,
0.05778384953737259,
0.07728706300258636,
-0.013781830668449402,
-0.043965213000774384,
-0.12075509130954742,
0.17980548739433289,
-0.12577098608016968,
-0.28677189350128174,
-0.14830800890922546,
-0.02872859314084053,
-0.01962963119149208,
0.05267539620399475,
0.043629977852106094,
-0.07189062237739563,
-0.08053082972764969,
-0.1588432490825653,
0.07508517801761627,
-0.02102537825703621,
-0.03746793419122696,
-0.051883719861507416,
-0.033192604780197144,
0.00014946656301617622,
-0.1442052721977234,
0.001406329683959484,
-0.042887795716524124,
-0.039283543825149536,
0.025930313393473625,
-0.020548664033412933,
0.03689742833375931,
0.11759057641029358,
0.003047899343073368,
-0.03282663971185684,
-0.04038412868976593,
0.17166408896446228,
-0.021096017211675644,
0.07459667325019836,
0.10797352343797684,
-0.09300382435321808,
0.06137890741229057,
0.05457102507352829,
-0.011218808591365814,
-0.08071485906839371,
0.04405476152896881,
-0.0092296302318573,
-0.08552844822406769,
-0.17801907658576965,
-0.039087649434804916,
-0.012463435530662537,
0.04431842640042305,
0.058375708758831024,
0.014320376329123974,
-0.012005511671304703,
-0.0036132591776549816,
-0.05777197703719139,
-0.011734195053577423,
0.05648509040474892,
0.0731094628572464,
-0.025703495368361473,
-0.0487118661403656,
0.10894252359867096,
-0.049231380224227905,
0.020838838070631027,
0.09471924602985382,
-0.084242083132267,
0.1610066145658493,
-0.03456583619117737,
0.12305134534835815,
0.08973593264818192,
0.023309234529733658,
0.07223743200302124,
0.11509314179420471,
-0.049803998321294785,
0.014725999906659126,
-0.05942995846271515,
-0.0747000053524971,
-0.07311399281024933,
0.05494210124015808,
0.013918672688305378,
0.029769785702228546,
-0.12200918793678284,
0.05540991201996803,
-0.011961620301008224,
0.16028299927711487,
0.08823580294847488,
-0.1342501938343048,
-0.10954365134239197,
0.02570045180618763,
-0.03526664525270462,
-0.08710263669490814,
-0.003753004129976034,
0.09352021664381027,
-0.10138864815235138,
0.042808808386325836,
0.003254203824326396,
0.06556777656078339,
-0.08631756901741028,
0.010563037358224392,
-0.10719463229179382,
0.0351530984044075,
-0.023512698709964752,
0.04926446080207825,
-0.057214997708797455,
0.10380607843399048,
0.04321156069636345,
0.09605638682842255,
-0.06439755856990814,
0.02804012969136238,
-0.004101529251784086,
0.010646559298038483,
0.12329475581645966,
0.021097831428050995,
-0.02824695035815239,
-0.03399108350276947,
-0.10272148251533508,
0.029851123690605164,
0.10719522088766098,
-0.07147835195064545,
0.08066283911466599,
-0.003275863826274872,
0.018794620409607887,
0.0015335867647081614,
-0.003695845603942871,
-0.08835102617740631,
-0.14325746893882751,
0.0545530840754509,
-0.12090376019477844,
-0.0007708044722676277,
-0.07111094892024994,
-0.0396847240626812,
-0.034796759486198425,
0.13898445665836334,
-0.13604749739170074,
-0.04289204999804497,
-0.09723664820194244,
0.029749270528554916,
0.04659614339470863,
-0.07309716939926147,
0.016168277710676193,
-0.03731805831193924,
0.14350448548793793,
-0.049523089081048965,
-0.0767645314335823,
0.031131213530898094,
-0.08060604333877563,
-0.11242285370826721,
-0.046934355050325394,
0.07089639455080032,
0.16283228993415833,
0.05751921236515045,
0.0330667719244957,
0.0341036282479763,
0.008439548313617706,
-0.06718167662620544,
-0.007099451497197151,
0.13167259097099304,
0.033520277589559555,
0.1110232025384903,
-0.09260571002960205,
-0.04689868912100792,
-0.0702771469950676,
0.021524619311094284,
0.08876606822013855,
0.230354443192482,
-0.0491427406668663,
0.18267348408699036,
0.21958351135253906,
-0.0903635174036026,
-0.23680223524570465,
-0.00449878815561533,
0.039301320910453796,
0.0657743588089943,
0.05777069181203842,
-0.18534550070762634,
0.07188181579113007,
0.00834887009114027,
0.008112145587801933,
-0.0337686762213707,
-0.1400052309036255,
-0.11620887368917465,
0.09089383482933044,
0.038047850131988525,
0.08084572851657867,
-0.017835350707173347,
0.0018141791224479675,
-0.008069438859820366,
0.019839216023683548,
0.07868661731481552,
-0.047086358070373535,
0.08190399408340454,
0.028641395270824432,
-0.057164959609508514,
0.016779355704784393,
-0.009863642044365406,
0.07504383474588394,
-0.0011230753734707832,
0.07429711520671844,
-0.0590687096118927,
0.02112310379743576,
0.1000593826174736,
-0.06598223745822906,
0.13690099120140076,
0.08690134435892105,
0.06157355383038521,
-0.055095333606004715,
-0.0638970211148262,
-0.06015687435865402,
0.030485937371850014,
-0.05020011216402054,
-0.05503988265991211,
-0.0618240050971508,
0.05507000908255577,
0.0701235979795456,
0.016147686168551445,
-0.0081419562920928,
-0.07185015827417374,
0.02759871445596218,
0.05882217362523079,
0.18469807505607605,
-0.03700733557343483,
-0.030015908181667328,
-0.022177308797836304,
-0.01649235561490059,
0.0691203773021698,
-0.11092221736907959,
0.048475105315446854,
0.016008887439966202,
0.005140693858265877,
0.1123877465724945,
0.03936576470732689,
-0.1573852151632309,
-0.0011438317596912384,
0.04227240011096001,
-0.10242920368909836,
-0.13131602108478546,
0.0006720102392137051,
0.030304741114377975,
-0.14642077684402466,
-0.019508516415953636,
0.14383286237716675,
-0.028247542679309845,
-0.02299988828599453,
-0.02468710020184517,
0.03268921375274658,
0.0020285220816731453,
0.05601135268807411,
0.04714890569448471,
0.016216766089200974,
-0.06212442368268967,
0.08518785238265991,
0.04130536690354347,
-0.07960496842861176,
0.08078069239854813,
0.013856308534741402,
-0.08312813937664032,
-0.05261988192796707,
-0.03688877448439598,
0.12125806510448456,
0.0538485161960125,
-0.04045169800519943,
0.00039455294609069824,
-0.06664727628231049,
0.04268956184387207,
0.11530019342899323,
0.009583935141563416,
0.06865757703781128,
-0.06372204422950745,
0.05102250725030899,
-0.05275629833340645,
0.06261919438838959,
0.0011282796040177345,
-0.003960448782891035,
0.007353820372372866,
0.09015636146068573,
0.041324861347675323,
0.04420259967446327,
-0.021863192319869995,
-0.09284467995166779,
-0.06959270685911179,
-0.01722152903676033,
-0.008672325871884823,
-0.01596067100763321,
-0.010111590847373009,
-0.007090671919286251,
-0.010471615940332413,
0.03835316374897957,
0.03837776929140091,
0.0211196132004261,
-0.0368952639400959,
-0.015963170677423477,
-0.05359037220478058,
0.02934674546122551,
-0.09291399270296097,
0.025412986055016518,
0.038632020354270935,
-0.05999980866909027,
0.08819769322872162,
0.022229835391044617,
-0.029923150315880775,
0.05565551668405533,
-0.04474245384335518,
0.017907097935676575,
-0.048452746123075485,
0.026573028415441513,
-0.005911356769502163,
-0.09255307167768478,
-0.021069712936878204,
-0.028524015098810196,
-0.059137292206287384,
-0.006883577909320593,
0.07751934230327606,
-0.05507940798997879,
0.09287570416927338,
0.060327205806970596,
-0.034307755529880524,
-0.07794873416423798,
0.0682559385895729,
-0.02522938884794712,
0.03377390280365944,
0.1159723550081253,
-0.011651283130049706,
0.03163847327232361,
-0.10741262882947922,
-0.025986388325691223,
0.01838570274412632,
-0.0008161384612321854,
0.02357865683734417,
-0.059998251497745514,
0.024250928312540054,
-0.0014926781877875328,
0.07340463995933533,
0.031081441789865494,
-0.03394753858447075,
0.021707605570554733,
-0.02544122189283371,
-0.01930924691259861,
0.01911807432770729,
0.033965423703193665,
-0.004754908382892609,
-0.053108517080545425,
0.0038594678044319153,
0.02561677247285843,
-0.010129273869097233,
0.05634678900241852,
0.16577374935150146,
0.05535394698381424,
0.11663398146629333,
0.04482831805944443,
0.03368040919303894,
0.03002237156033516,
-0.11698079109191895,
-0.023541873320937157,
0.011298393830657005,
0.04149984195828438,
-0.0012118266895413399,
-0.0100354989990592,
0.10974298417568207,
-0.09031776338815689,
0.10461476445198059,
0.034152887761592865,
-0.061341676861047745,
-0.11815699934959412,
-0.20048101246356964,
-0.023755816742777824,
0.04223908856511116,
-0.01665336638689041,
-0.11765264719724655,
0.02916235662996769,
0.04468786343932152,
0.02880670130252838,
0.0050023579970002174,
0.12396909296512604,
-0.16058871150016785,
-0.05509115755558014,
0.04094831272959709,
-0.01548477541655302,
-0.003394637256860733,
0.09173621237277985,
0.01266257744282484,
0.05609205365180969,
0.07277601212263107,
0.05978677421808243,
0.06441553682088852,
0.07604542374610901,
0.029023967683315277,
-0.04717066138982773,
-0.09489628672599792,
-0.0013127302518114448,
0.0008328334079124033,
0.025377335026860237,
0.13790372014045715,
0.04870230332016945,
-0.06726892292499542,
0.007863900624215603,
0.11164969205856323,
-0.02946874499320984,
-0.06251898407936096,
-0.15191400051116943,
0.15868599712848663,
0.007424568757414818,
0.02794020250439644,
-0.021854635328054428,
-0.07673400640487671,
0.022411348298192024,
0.18093737959861755,
0.1881764829158783,
0.0240399818867445,
0.004500905983150005,
-0.0012491157976910472,
0.0070443227887153625,
-0.015448169782757759,
0.12442221492528915,
0.007509389892220497,
0.23668672144412994,
-0.031029939651489258,
0.10674606263637543,
-0.04553421959280968,
-0.04271795228123665,
-0.05446989834308624,
0.08121679723262787,
-0.014163886196911335,
0.00944888312369585,
-0.0559452623128891,
0.04565807431936264,
-0.008232354186475277,
-0.22440657019615173,
-0.010214053094387054,
-0.030662596225738525,
-0.04855438321828842,
0.005305996630340815,
-0.012580733746290207,
0.012660226784646511,
0.10133204609155655,
0.007699666079133749,
-0.008263337425887585,
0.1493130624294281,
0.011561166495084763,
-0.039546575397253036,
-0.04810948297381401,
0.09026715159416199,
-0.04873654246330261,
0.1411115527153015,
0.035231124609708786,
0.058695223182439804,
0.07112035900354385,
0.0183790922164917,
-0.06393849104642868,
0.022098563611507416,
-0.03427073359489441,
0.04253677278757095,
-0.001697384170256555,
0.17583969235420227,
-0.013681652024388313,
0.08176890760660172,
0.031184766441583633,
-0.10968136787414551,
0.06432123482227325,
-0.0610470287501812,
-0.08232428133487701,
-0.04753366485238075,
0.09934617578983307,
-0.07102648168802261,
0.1475672721862793,
0.1630728393793106,
0.009745299816131592,
-0.02894907258450985,
-0.028545374050736427,
-0.008575675077736378,
-0.016477400436997414,
0.054723650217056274,
-0.007619763258844614,
-0.12832029163837433,
-0.008234048262238503,
-0.03850241005420685,
0.01197371818125248,
-0.2919396758079529,
-0.06377705931663513,
0.0444631427526474,
-0.026065237820148468,
0.02225273661315441,
0.05866033583879471,
0.0436425544321537,
0.034050408750772476,
-0.052550628781318665,
0.05813125520944595,
0.006687698885798454,
0.06045498698949814,
-0.0626080110669136,
-0.06756213307380676
] |
null | null | transformers |
# BERT large model (uncased) whole word masking
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1810.04805) and first released in
[this repository](https://github.com/google-research/bert). This model is uncased: it does not make a difference
between english and English.
Differently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.
The training is identical -- each masked WordPiece token is predicted independently.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
- 24-layer
- 1024 hidden dimension
- 16 attention heads
- 336M parameters.
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=bert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-large-uncased-whole-word-masking')
>>> unmasker("Hello I'm a [MASK] model.")
[
{
'sequence': "[CLS] hello i'm a fashion model. [SEP]",
'score': 0.15813860297203064,
'token': 4827,
'token_str': 'fashion'
}, {
'sequence': "[CLS] hello i'm a cover model. [SEP]",
'score': 0.10551052540540695,
'token': 3104,
'token_str': 'cover'
}, {
'sequence': "[CLS] hello i'm a male model. [SEP]",
'score': 0.08340442180633545,
'token': 3287,
'token_str': 'male'
}, {
'sequence': "[CLS] hello i'm a super model. [SEP]",
'score': 0.036381796002388,
'token': 3565,
'token_str': 'super'
}, {
'sequence': "[CLS] hello i'm a top model. [SEP]",
'score': 0.03609578311443329,
'token': 2327,
'token_str': 'top'
}
]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import BertTokenizer, BertModel
tokenizer = BertTokenizer.from_pretrained('bert-large-uncased-whole-word-masking')
model = BertModel.from_pretrained("bert-large-uncased-whole-word-masking")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('bert-large-uncased-whole-word-masking')
model = TFBertModel.from_pretrained("bert-large-uncased-whole-word-masking")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-large-uncased-whole-word-masking')
>>> unmasker("The man worked as a [MASK].")
[
{
"sequence":"[CLS] the man worked as a waiter. [SEP]",
"score":0.09823174774646759,
"token":15610,
"token_str":"waiter"
},
{
"sequence":"[CLS] the man worked as a carpenter. [SEP]",
"score":0.08976428955793381,
"token":10533,
"token_str":"carpenter"
},
{
"sequence":"[CLS] the man worked as a mechanic. [SEP]",
"score":0.06550426036119461,
"token":15893,
"token_str":"mechanic"
},
{
"sequence":"[CLS] the man worked as a butcher. [SEP]",
"score":0.04142395779490471,
"token":14998,
"token_str":"butcher"
},
{
"sequence":"[CLS] the man worked as a barber. [SEP]",
"score":0.03680137172341347,
"token":13362,
"token_str":"barber"
}
]
>>> unmasker("The woman worked as a [MASK].")
[
{
"sequence":"[CLS] the woman worked as a waitress. [SEP]",
"score":0.2669651508331299,
"token":13877,
"token_str":"waitress"
},
{
"sequence":"[CLS] the woman worked as a maid. [SEP]",
"score":0.13054853677749634,
"token":10850,
"token_str":"maid"
},
{
"sequence":"[CLS] the woman worked as a nurse. [SEP]",
"score":0.07987703382968903,
"token":6821,
"token_str":"nurse"
},
{
"sequence":"[CLS] the woman worked as a prostitute. [SEP]",
"score":0.058545831590890884,
"token":19215,
"token_str":"prostitute"
},
{
"sequence":"[CLS] the woman worked as a cleaner. [SEP]",
"score":0.03834161534905434,
"token":20133,
"token_str":"cleaner"
}
]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The BERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
When fine-tuned on downstream tasks, this model achieves the following results:
Model | SQUAD 1.1 F1/EM | Multi NLI Accuracy
---------------------------------------- | :-------------: | :----------------:
BERT-Large, Uncased (Whole Word Masking) | 92.8/86.7 | 87.07
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1810-04805,
author = {Jacob Devlin and
Ming{-}Wei Chang and
Kenton Lee and
Kristina Toutanova},
title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language
Understanding},
journal = {CoRR},
volume = {abs/1810.04805},
year = {2018},
url = {http://arxiv.org/abs/1810.04805},
archivePrefix = {arXiv},
eprint = {1810.04805},
timestamp = {Tue, 30 Oct 2018 20:39:56 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
``` | {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | google-bert/bert-large-uncased-whole-word-masking | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"bert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1810.04805"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| BERT large model (uncased) whole word masking
=============================================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model is uncased: it does not make a difference
between english and English.
Differently to other BERT models, this model was trained with a new technique: Whole Word Masking. In this case, all of the tokens corresponding to a word are masked at once. The overall masking rate remains the same.
The training is identical -- each masked WordPiece token is predicted independently.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
* 24-layer
* 1024 hidden dimension
* 16 attention heads
* 336M parameters.
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The BERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \(\beta\_{1} = 0.9\) and \(\beta\_{2} = 0.999\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
Evaluation results
------------------
When fine-tuned on downstream tasks, this model achieves the following results:
### BibTeX entry and citation info
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:",
"### BibTeX entry and citation info"
] | [
78,
49,
101,
222,
158,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #safetensors #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is."
] | [
-0.03382549062371254,
0.058699581772089005,
-0.005903793498873711,
0.04465165361762047,
-0.003110796445980668,
0.032222993671894073,
0.05241973698139191,
0.026366550475358963,
-0.08419404923915863,
0.09144852310419083,
0.049374788999557495,
0.0219463799148798,
0.10161014646291733,
0.10895925015211105,
0.045593440532684326,
-0.2735258936882019,
0.06628014892339706,
-0.03345664590597153,
0.09668499231338501,
0.10667635500431061,
0.0902310460805893,
-0.07586430758237839,
0.005379650741815567,
0.0063194697722792625,
-0.015119506046175957,
-0.011063299141824245,
0.021537387743592262,
-0.0656757578253746,
0.08935602754354477,
0.0673699751496315,
0.08321299403905869,
0.06047932431101799,
0.061032094061374664,
-0.14438745379447937,
0.023882178589701653,
0.09274069219827652,
0.0009945734636858106,
0.05516859143972397,
0.09839354455471039,
-0.026517244055867195,
0.08338415622711182,
-0.027161741629242897,
0.05813869088888168,
0.039678312838077545,
-0.1287587434053421,
-0.10600287467241287,
-0.06573803722858429,
0.09932560473680496,
0.02191414311528206,
0.003761967411264777,
-0.03369458392262459,
0.07744819670915604,
-0.04547901451587677,
0.06267520040273666,
0.2344520092010498,
-0.23177863657474518,
-0.0026224625762552023,
0.05766577273607254,
0.018719429150223732,
0.021806690841913223,
-0.05382313206791878,
-0.04141658917069435,
0.04430656507611275,
0.03761594742536545,
0.05702095106244087,
-0.020188894122838974,
0.032170336693525314,
-0.043660037219524384,
-0.12527595460414886,
-0.09792201966047287,
0.08859066665172577,
-0.026319094002246857,
-0.1186826303601265,
-0.09610565751791,
-0.01826898753643036,
0.0038595206569880247,
-0.0038735249545425177,
0.04037434235215187,
-0.013116800226271152,
0.0011867405846714973,
0.06525615602731705,
0.026411300525069237,
-0.09621098637580872,
-0.06377559900283813,
-0.10083568096160889,
0.16310560703277588,
0.04569890350103378,
0.025995632633566856,
-0.03736845776438713,
0.11807232350111008,
-0.0486619770526886,
-0.07730025053024292,
-0.0440029501914978,
-0.07326292246580124,
-0.15190546214580536,
-0.014261427335441113,
-0.05408157780766487,
-0.1519148349761963,
-0.03973012417554855,
0.0985877588391304,
-0.026025433093309402,
0.042556822299957275,
-0.11338812857866287,
0.056503478437662125,
0.0753040686249733,
0.010559244081377983,
-0.09137663245201111,
0.01797633245587349,
0.008337484672665596,
0.03368642181158066,
0.017127059400081635,
-0.004368159919977188,
0.0009739459492266178,
-0.05752372741699219,
0.02529415488243103,
0.050559040158987045,
-0.013400132767856121,
0.08778253197669983,
-0.06687980890274048,
-0.02607802115380764,
0.06956887245178223,
-0.12968480587005615,
-0.06214521452784538,
0.013636580668389797,
-0.03690577670931816,
-0.053760629147291183,
0.06155318021774292,
-0.06550145149230957,
-0.10857416689395905,
0.11648721247911453,
-0.07268929481506348,
-0.06210561469197273,
-0.06821531802415848,
-0.15766243636608124,
-0.007956128567457199,
-0.0007898652111180127,
-0.0860968753695488,
-0.050007641315460205,
-0.0905810296535492,
-0.013930763117969036,
0.008801650255918503,
0.0038997407536953688,
-0.014189928770065308,
-0.02318079210817814,
-0.026083998382091522,
-0.05189967527985573,
-0.01668202504515648,
0.12447579950094223,
-0.02786528505384922,
0.08071866631507874,
-0.07086669653654099,
0.09475874900817871,
0.07313114404678345,
-0.0017041200771927834,
-0.08486667275428772,
0.04038059338927269,
-0.2097994089126587,
0.10409487038850784,
-0.01829461008310318,
-0.13026440143585205,
-0.047368280589580536,
-0.06140781566500664,
-0.07561907917261124,
0.04537848383188248,
-0.02420160360634327,
0.10309085994958878,
-0.21323415637016296,
-0.046071890741586685,
0.34184977412223816,
-0.13594980537891388,
0.019490081816911697,
0.1306515634059906,
-0.08078272640705109,
0.03190281614661217,
0.09043325483798981,
0.07883449643850327,
-0.05787232890725136,
-0.0680529773235321,
-0.008267230354249477,
-0.04824243485927582,
-0.04035284370183945,
0.23239237070083618,
0.03876805678009987,
-0.04794855788350105,
-0.05166775360703468,
0.03606352210044861,
-0.03955094888806343,
-0.0680524930357933,
-0.01814205013215542,
-0.01066166814416647,
0.030823292210698128,
0.010350205935537815,
0.06426116079092026,
-0.03405191749334335,
-0.06597217917442322,
-0.05418055132031441,
-0.08696120977401733,
-0.10385487973690033,
0.0896039828658104,
-0.07681602984666824,
0.0357242077589035,
-0.03727763518691063,
-0.06867539137601852,
-0.009623648598790169,
0.007277086842805147,
-0.21675458550453186,
0.015471738763153553,
0.05963372066617012,
-0.07656495273113251,
0.0884394496679306,
0.06310003250837326,
0.0077852220274508,
0.09792722016572952,
-0.051167067140340805,
0.036444030702114105,
0.010690380819141865,
-0.022912707179784775,
-0.05987268313765526,
-0.1674077808856964,
-0.08232080936431885,
-0.03124866634607315,
0.11515286564826965,
-0.10534799844026566,
0.012729150243103504,
-0.017461838200688362,
0.08195451647043228,
0.020239733159542084,
-0.06335192173719406,
0.034780606627464294,
0.009201123379170895,
-0.05683586746454239,
-0.008023669011890888,
-0.0025807195343077183,
0.0007978365174494684,
-0.03183412179350853,
0.12882961332798004,
-0.2306467592716217,
-0.13744311034679413,
0.07345093786716461,
0.08850136399269104,
-0.13334627449512482,
-0.06840606033802032,
-0.062077879905700684,
-0.026801563799381256,
-0.0993184819817543,
-0.06273740530014038,
0.19311921298503876,
0.03409251943230629,
0.11186231672763824,
-0.1274515986442566,
0.007926596328616142,
0.01500776782631874,
-0.008318768814206123,
-0.00412173755466938,
0.04859858378767967,
-0.017729377374053,
-0.14848287403583527,
0.03181097283959389,
-0.12315364927053452,
0.03136010468006134,
0.09859056025743484,
0.03422997146844864,
-0.12827524542808533,
-0.01443644892424345,
0.011846552602946758,
0.05824095010757446,
0.08281035721302032,
-0.07176550477743149,
0.009011991322040558,
0.05869302526116371,
0.02743775025010109,
0.018452612683176994,
-0.09760316461324692,
0.04824232682585716,
0.02611694484949112,
-0.06428073346614838,
-0.07550814002752304,
-0.060296498239040375,
0.03839719668030739,
0.13564303517341614,
-0.004779157228767872,
0.009893212467432022,
-0.023784464225172997,
-0.06093287840485573,
-0.12744708359241486,
0.17154419422149658,
-0.06640688329935074,
-0.2818422019481659,
-0.17106139659881592,
0.004080673214048147,
0.0011907749576494098,
0.031699176877737045,
-0.01927635446190834,
0.04118365794420242,
-0.0715440958738327,
-0.1285327672958374,
0.08150626718997955,
-0.027252674102783203,
0.011617460288107395,
-0.06663794070482254,
0.0410749725997448,
0.00662980554625392,
-0.13713999092578888,
0.011024536564946175,
-0.021436696872115135,
-0.049037832766771317,
0.03383288159966469,
-0.051207415759563446,
0.082635797560215,
0.13495901226997375,
0.008521324954926968,
-0.03332583233714104,
-0.05824549123644829,
0.08177956193685532,
-0.038219183683395386,
0.06810276955366135,
-0.00234016589820385,
-0.08979812264442444,
0.04528699815273285,
0.10514546185731888,
-0.01270484458655119,
-0.05116580054163933,
0.0687575489282608,
0.04173150658607483,
-0.042706821113824844,
-0.20742464065551758,
-0.036312758922576904,
-0.04683215916156769,
0.0071261669509112835,
0.12801064550876617,
0.025824319571256638,
-0.015735216438770294,
0.004191369283944368,
-0.10193794220685959,
0.013575345277786255,
0.0943666622042656,
0.08450175821781158,
-0.07182051241397858,
-0.02167796529829502,
0.08584810793399811,
-0.03741585463285446,
-0.0293434951454401,
0.09178976714611053,
0.0032208887860178947,
0.16265229880809784,
-0.10934233665466309,
0.16982589662075043,
0.10247102379798889,
0.0480789840221405,
0.05106309801340103,
0.10593952983617783,
-0.026726486161351204,
0.046101007610559464,
-0.08357002586126328,
-0.08187132328748703,
-0.06232161819934845,
0.03369801118969917,
0.02151983045041561,
0.05023851990699768,
-0.057008203119039536,
-0.07087437808513641,
0.029551485553383827,
0.19328679144382477,
0.08395162969827652,
-0.1703673154115677,
-0.08085988461971283,
0.014791803434491158,
-0.06560201197862625,
-0.04444153606891632,
0.020696602761745453,
0.10784876346588135,
-0.11686184257268906,
0.07786320894956589,
-0.02504299394786358,
0.06693045049905777,
-0.07436485588550568,
0.020869657397270203,
-0.13574957847595215,
0.09278832376003265,
-0.046963952481746674,
0.08519967645406723,
-0.24966663122177124,
0.15258558094501495,
0.025850117206573486,
0.05699962005019188,
-0.12727385759353638,
-0.005682705901563168,
0.011014970950782299,
-0.0006912130629643798,
0.14136749505996704,
-0.026312973350286484,
0.0019283231813460588,
-0.05511871725320816,
-0.056223247200250626,
0.014995136298239231,
0.08651591092348099,
-0.0022528599947690964,
0.12724199891090393,
0.024251557886600494,
0.007489600218832493,
0.0048071579076349735,
0.04058898985385895,
-0.0846504420042038,
-0.16447514295578003,
0.0565434955060482,
-0.09082724899053574,
-0.03729995712637901,
-0.08278362452983856,
-0.05478980392217636,
0.013327289372682571,
0.14940650761127472,
-0.13583505153656006,
-0.038420580327510834,
-0.07466322183609009,
0.015246490016579628,
0.1267903596162796,
-0.052927929908037186,
-0.02587335743010044,
-0.014284259639680386,
0.1986396610736847,
-0.10061562806367874,
-0.06475167721509933,
0.031612589955329895,
-0.047769490629434586,
-0.14758139848709106,
-0.10184517502784729,
0.12917040288448334,
0.11087778955698013,
0.08679595589637756,
0.005019949283450842,
0.003685172414407134,
0.08444727957248688,
-0.0941845178604126,
-0.028237514197826385,
0.07658053189516068,
0.1492735743522644,
0.11391246318817139,
-0.10184434801340103,
-0.09681548178195953,
-0.10288233309984207,
0.010570239275693893,
0.04425284266471863,
0.26753485202789307,
-0.06361149251461029,
0.14329002797603607,
0.17703983187675476,
-0.11200166493654251,
-0.20764416456222534,
-0.016081299632787704,
0.05017944797873497,
0.06483088433742523,
0.05214589834213257,
-0.14766325056552887,
-0.04327860847115517,
0.09133907407522202,
0.005849719978868961,
-0.0006648708367720246,
-0.2970738112926483,
-0.12017830461263657,
0.08466624468564987,
0.05000072345137596,
0.027185190469026566,
-0.09396857023239136,
-0.03321487456560135,
-0.044698234647512436,
-0.09401098638772964,
0.10533346235752106,
-0.03201144188642502,
0.12857180833816528,
0.01969960331916809,
-0.08300630748271942,
0.042069047689437866,
-0.06986358761787415,
0.12659771740436554,
0.02790972590446472,
0.06813017278909683,
-0.057960961014032364,
-0.0030161691829562187,
0.11490537971258163,
-0.0159708634018898,
0.13160982728004456,
0.05324995890259743,
0.04403295740485191,
0.027996966615319252,
-0.06594633311033249,
-0.0990811288356781,
0.010690695606172085,
-0.05858992785215378,
-0.05126804858446121,
-0.06030074134469032,
0.06971821933984756,
0.07728245854377747,
-0.024360056966543198,
-0.01288873516023159,
-0.07514116913080215,
0.06347113102674484,
0.16475103795528412,
0.10873856395483017,
-0.0063783214427530766,
-0.07086405158042908,
0.016899293288588524,
-0.018997909501194954,
0.04452330619096756,
-0.017288440838456154,
0.05067768692970276,
0.07531726360321045,
0.029388951137661934,
0.1646040827035904,
0.043038927018642426,
-0.17820894718170166,
-0.01829850859940052,
0.031080318614840508,
-0.15004782378673553,
-0.15724098682403564,
0.03945283219218254,
-0.012201493605971336,
-0.14375938475131989,
-0.05993405729532242,
0.07467207312583923,
-0.047086335718631744,
-0.01970251463353634,
0.007533602882176638,
0.05576898530125618,
0.01368663925677538,
0.14426289498806,
0.02313637174665928,
0.04364538565278053,
-0.07271066308021545,
0.11544090509414673,
0.10909370332956314,
-0.10112650692462921,
0.008728057146072388,
0.04310382902622223,
-0.10152958333492279,
0.004291980527341366,
-0.04951292276382446,
0.05025913566350937,
0.10028453916311264,
-0.02185746282339096,
-0.07947017252445221,
-0.08117527514696121,
0.06893705576658249,
0.1300056129693985,
0.012711183167994022,
0.10071826726198196,
-0.00584663450717926,
0.006508419290184975,
-0.08280880749225616,
0.04701530933380127,
0.06983594596385956,
0.06598888337612152,
0.05420513451099396,
0.28213027119636536,
0.01365218497812748,
0.0077740163542330265,
-0.018904047086834908,
-0.05411018058657646,
-0.07277896255254745,
0.022799789905548096,
-0.09229901432991028,
0.0667262151837349,
-0.14535613358020782,
-0.03841642290353775,
0.00969098974019289,
0.049091361463069916,
0.03357647731900215,
0.005575328134000301,
-0.022480525076389313,
-0.005145681090652943,
-0.04995504766702652,
0.04160327836871147,
-0.11061707884073257,
-0.027312401682138443,
0.062295764684677124,
-0.08772078901529312,
0.07919379323720932,
-0.006254701409488916,
-0.052456483244895935,
0.021022796630859375,
-0.12342998385429382,
-0.001194750308059156,
0.04049823805689812,
0.03406083211302757,
-0.029907403513789177,
-0.10892456024885178,
0.015813911333680153,
-0.022100208327174187,
-0.008963602595031261,
0.013729850761592388,
0.05245858430862427,
-0.0942520946264267,
0.049702517688274384,
0.05610279366374016,
-0.007433353923261166,
-0.05953018367290497,
0.07105125486850739,
0.05475202947854996,
0.006680341437458992,
0.1078493744134903,
-0.06051492318511009,
0.01998758129775524,
-0.14874029159545898,
-0.014422155916690826,
-0.021087219938635826,
-0.011672688648104668,
0.072989322245121,
-0.021552490070462227,
0.03422076627612114,
-0.01818317174911499,
0.16043530404567719,
-0.024281267076730728,
-0.04162028804421425,
0.02110007405281067,
-0.04770580679178238,
0.05172474682331085,
0.027323685586452484,
0.03739243745803833,
-0.01274578645825386,
-0.06850039958953857,
-0.027205467224121094,
0.019851824268698692,
-0.014949009753763676,
0.05401749908924103,
0.20658279955387115,
0.04921972379088402,
0.18796995282173157,
0.015881063416600227,
0.025832869112491608,
-0.043356094509363174,
-0.0013442070921882987,
0.035849250853061676,
0.03894297406077385,
0.012838255614042282,
0.02836008369922638,
0.032172128558158875,
0.15457940101623535,
-0.12429153919219971,
0.15380795300006866,
0.022757690399885178,
-0.08755917102098465,
-0.07519283890724182,
-0.23393124341964722,
-0.006410694681107998,
0.10677409917116165,
-0.03634005784988403,
-0.12139417231082916,
0.059672996401786804,
0.10126687586307526,
0.020238066092133522,
0.002636442193761468,
0.062158189713954926,
-0.04137662425637245,
-0.12772151827812195,
0.05136162042617798,
0.012083667330443859,
0.024836570024490356,
0.05959080532193184,
0.004814332351088524,
0.08501746505498886,
0.004488862585276365,
0.07231863588094711,
0.06525388360023499,
0.11592980474233627,
-0.009248800575733185,
-0.042081888765096664,
-0.0550558976829052,
0.03423919901251793,
-0.04490852355957031,
0.0697038546204567,
0.21006891131401062,
0.09140738844871521,
-0.05067259073257446,
0.01692649908363819,
0.12107344716787338,
-0.016803564503788948,
-0.11369755119085312,
-0.15768077969551086,
0.19994980096817017,
0.0410798005759716,
0.025557778775691986,
0.06727764755487442,
-0.09281501919031143,
0.020823752507567406,
0.16864335536956787,
0.1643580198287964,
-0.014141274616122246,
0.015956059098243713,
0.03824768215417862,
0.0025153271853923798,
0.07905801385641098,
0.1433505266904831,
-0.01681535504758358,
0.25133615732192993,
-0.027321022003889084,
0.10502992570400238,
-0.014188696630299091,
0.037606917321681976,
-0.02094222791492939,
0.13594898581504822,
-0.04345841705799103,
-0.015334684401750565,
-0.0660942867398262,
0.0294627882540226,
-0.05410485714673996,
-0.2790694236755371,
-0.04692021757364273,
-0.030905496329069138,
-0.11090102791786194,
0.005326508544385433,
-0.07270239293575287,
0.03277065232396126,
0.07997428625822067,
0.016577821224927902,
0.04287661239504814,
0.16602075099945068,
0.012271005660295486,
-0.05801919102668762,
-0.08106780052185059,
0.06212521344423294,
-0.0050119683146476746,
0.1733490228652954,
0.027544084936380386,
0.10662424564361572,
0.05272500589489937,
0.00744582898914814,
-0.07528479397296906,
0.050235338509082794,
0.009097094647586346,
0.08866360783576965,
0.02528754249215126,
0.14613565802574158,
-0.0004179430252406746,
0.024363728240132332,
0.018022123724222183,
-0.07609794288873672,
0.07252758741378784,
-0.07280533760786057,
-0.04821270704269409,
-0.11312371492385864,
0.07374478131532669,
-0.02233673259615898,
0.0931989774107933,
0.16080066561698914,
0.006994382478296757,
0.012326202355325222,
-0.044808510690927505,
-0.059683285653591156,
-0.0041220830753445625,
0.13366016745567322,
0.006855992134660482,
-0.1421690583229065,
-0.0092574842274189,
-0.08013132959604263,
0.023131610825657845,
-0.3191743791103363,
-0.03409254923462868,
0.059315815567970276,
-0.10454061627388,
-0.0018791198963299394,
0.08062705397605896,
0.003952395636588335,
0.08426546305418015,
-0.05791415274143219,
-0.019906241446733475,
0.03197994455695152,
0.09678447991609573,
-0.13137958943843842,
-0.08125340938568115
] |
null | null | transformers |
# BERT large model (uncased)
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1810.04805) and first released in
[this repository](https://github.com/google-research/bert). This model is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
- Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
- Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
- 24-layer
- 1024 hidden dimension
- 16 attention heads
- 336M parameters.
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=bert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-large-uncased')
>>> unmasker("Hello I'm a [MASK] model.")
[{'sequence': "[CLS] hello i'm a fashion model. [SEP]",
'score': 0.1886913776397705,
'token': 4827,
'token_str': 'fashion'},
{'sequence': "[CLS] hello i'm a professional model. [SEP]",
'score': 0.07157472521066666,
'token': 2658,
'token_str': 'professional'},
{'sequence': "[CLS] hello i'm a male model. [SEP]",
'score': 0.04053466394543648,
'token': 3287,
'token_str': 'male'},
{'sequence': "[CLS] hello i'm a role model. [SEP]",
'score': 0.03891477733850479,
'token': 2535,
'token_str': 'role'},
{'sequence': "[CLS] hello i'm a fitness model. [SEP]",
'score': 0.03038121573626995,
'token': 10516,
'token_str': 'fitness'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import BertTokenizer, BertModel
tokenizer = BertTokenizer.from_pretrained('bert-large-uncased')
model = BertModel.from_pretrained("bert-large-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import BertTokenizer, TFBertModel
tokenizer = BertTokenizer.from_pretrained('bert-large-uncased')
model = TFBertModel.from_pretrained("bert-large-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='bert-large-uncased')
>>> unmasker("The man worked as a [MASK].")
[{'sequence': '[CLS] the man worked as a bartender. [SEP]',
'score': 0.10426565259695053,
'token': 15812,
'token_str': 'bartender'},
{'sequence': '[CLS] the man worked as a waiter. [SEP]',
'score': 0.10232779383659363,
'token': 15610,
'token_str': 'waiter'},
{'sequence': '[CLS] the man worked as a mechanic. [SEP]',
'score': 0.06281787157058716,
'token': 15893,
'token_str': 'mechanic'},
{'sequence': '[CLS] the man worked as a lawyer. [SEP]',
'score': 0.050936125218868256,
'token': 5160,
'token_str': 'lawyer'},
{'sequence': '[CLS] the man worked as a carpenter. [SEP]',
'score': 0.041034240275621414,
'token': 10533,
'token_str': 'carpenter'}]
>>> unmasker("The woman worked as a [MASK].")
[{'sequence': '[CLS] the woman worked as a waitress. [SEP]',
'score': 0.28473711013793945,
'token': 13877,
'token_str': 'waitress'},
{'sequence': '[CLS] the woman worked as a nurse. [SEP]',
'score': 0.11336520314216614,
'token': 6821,
'token_str': 'nurse'},
{'sequence': '[CLS] the woman worked as a bartender. [SEP]',
'score': 0.09574324637651443,
'token': 15812,
'token_str': 'bartender'},
{'sequence': '[CLS] the woman worked as a maid. [SEP]',
'score': 0.06351090222597122,
'token': 10850,
'token_str': 'maid'},
{'sequence': '[CLS] the woman worked as a secretary. [SEP]',
'score': 0.048970773816108704,
'token': 3187,
'token_str': 'secretary'}]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The BERT model was pretrained on [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038
unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and
headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \\(\beta_{1} = 0.9\\) and \\(\beta_{2} = 0.999\\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
## Evaluation results
When fine-tuned on downstream tasks, this model achieves the following results:
Model | SQUAD 1.1 F1/EM | Multi NLI Accuracy
---------------------------------------- | :-------------: | :----------------:
BERT-Large, Uncased (Original) | 91.0/84.3 | 86.05
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1810-04805,
author = {Jacob Devlin and
Ming{-}Wei Chang and
Kenton Lee and
Kristina Toutanova},
title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language
Understanding},
journal = {CoRR},
volume = {abs/1810.04805},
year = {2018},
url = {http://arxiv.org/abs/1810.04805},
archivePrefix = {arXiv},
eprint = {1810.04805},
timestamp = {Tue, 30 Oct 2018 20:39:56 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
``` | {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | google-bert/bert-large-uncased | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"bert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1810.04805",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1810.04805"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #rust #safetensors #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| BERT large model (uncased)
==========================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model is uncased: it does not make a difference
between english and English.
Disclaimer: The team releasing BERT did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
BERT is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it
was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it
was pretrained with two objectives:
* Masked language modeling (MLM): taking a sentence, the model randomly masks 15% of the words in the input then run
the entire masked sentence through the model and has to predict the masked words. This is different from traditional
recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like
GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the
sentence.
* Next sentence prediction (NSP): the models concatenates two masked sentences as inputs during pretraining. Sometimes
they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to
predict if the two sentences were following each other or not.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
This model has the following configuration:
* 24-layer
* 1024 hidden dimension
* 16 attention heads
* 336M parameters.
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The BERT model was pretrained on BookCorpus, a dataset consisting of 11,038
unpublished books and English Wikipedia (excluding lists, tables and
headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size
of 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer
used is Adam with a learning rate of 1e-4, \(\beta\_{1} = 0.9\) and \(\beta\_{2} = 0.999\), a weight decay of 0.01,
learning rate warmup for 10,000 steps and linear decay of the learning rate after.
Evaluation results
------------------
When fine-tuned on downstream tasks, this model achieves the following results:
### BibTeX entry and citation info
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 4 cloud TPUs in Pod configuration (16 TPU chips total) for one million steps with a batch size\nof 256. The sequence length was limited to 128 tokens for 90% of the steps and 512 for the remaining 10%. The optimizer\nused is Adam with a learning rate of 1e-4, \\(\\beta\\_{1} = 0.9\\) and \\(\\beta\\_{2} = 0.999\\), a weight decay of 0.01,\nlearning rate warmup for 10,000 steps and linear decay of the learning rate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:",
"### BibTeX entry and citation info"
] | [
80,
49,
101,
222,
158,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #bert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1810.04805 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe BERT model was pretrained on BookCorpus, a dataset consisting of 11,038\nunpublished books and English Wikipedia (excluding lists, tables and\nheaders).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is."
] | [
-0.03401278331875801,
0.056651849299669266,
-0.005967371165752411,
0.034851450473070145,
0.004530924838036299,
0.038422100245952606,
0.058079320937395096,
0.02751675620675087,
-0.08115321397781372,
0.07386627048254013,
0.050440963357686996,
0.029254397377371788,
0.10723226517438889,
0.1047564297914505,
0.0372123047709465,
-0.26232442259788513,
0.08096138387918472,
-0.02272641658782959,
0.10993446409702301,
0.10730396956205368,
0.09643980860710144,
-0.07735809683799744,
0.006115374621003866,
0.012893297709524632,
-0.02076476626098156,
-0.004562643822282553,
0.026297468692064285,
-0.06285401433706284,
0.08913307636976242,
0.06221616268157959,
0.08462857455015182,
0.0629052072763443,
0.06263648718595505,
-0.14542189240455627,
0.023824112489819527,
0.09173161536455154,
-0.0026674470864236355,
0.05865088105201721,
0.09152181446552277,
-0.031234372407197952,
0.07173007726669312,
-0.02672223374247551,
0.05731234699487686,
0.03151809424161911,
-0.1323266625404358,
-0.10775601863861084,
-0.0725226104259491,
0.09583912789821625,
0.0295596644282341,
0.009066663682460785,
-0.03982837125658989,
0.08611703664064407,
-0.03670181706547737,
0.06010647863149643,
0.23497796058654785,
-0.2239220291376114,
0.0031660194508731365,
0.040580395609140396,
0.01552299503237009,
0.021091407164931297,
-0.05328185111284256,
-0.04398595541715622,
0.04122193530201912,
0.0327160470187664,
0.06502849608659744,
-0.025187354534864426,
0.03204026073217392,
-0.04332529753446579,
-0.12399955838918686,
-0.09493144601583481,
0.08710049837827682,
-0.032412756234407425,
-0.11858883500099182,
-0.09669565409421921,
-0.019241800531744957,
-0.004718039650470018,
-0.0008265611249953508,
0.02981346845626831,
-0.010907166637480259,
-0.00190248666331172,
0.05846653878688812,
0.01177109032869339,
-0.08867716044187546,
-0.05919290706515312,
-0.1050039604306221,
0.1578029841184616,
0.051637474447488785,
0.027743102982640266,
-0.03757799416780472,
0.1215231642127037,
-0.04435322806239128,
-0.07729654014110565,
-0.03992420807480812,
-0.06766162067651749,
-0.1435195654630661,
-0.013144203461706638,
-0.057527534663677216,
-0.1511170119047165,
-0.04873956739902496,
0.09290117025375366,
-0.030175738036632538,
0.045279163867235184,
-0.0962064266204834,
0.056148067116737366,
0.08634710311889648,
0.017856262624263763,
-0.10358358174562454,
0.02130350098013878,
0.022681035101413727,
0.04542146623134613,
0.018202869221568108,
0.002481182338669896,
-0.005163358524441719,
-0.05225161835551262,
0.04901754483580589,
0.046857744455337524,
-0.014930087141692638,
0.08740504831075668,
-0.06451220065355301,
-0.03121229074895382,
0.06085898354649544,
-0.1296301633119583,
-0.05469950661063194,
0.007645060773938894,
-0.04408835619688034,
-0.04422780126333237,
0.0648047998547554,
-0.05491909757256508,
-0.11627044528722763,
0.10467329621315002,
-0.07411930710077286,
-0.05850227549672127,
-0.07343324273824692,
-0.16414719820022583,
-0.012743414379656315,
-0.020871439948678017,
-0.08028628677129745,
-0.046000074595212936,
-0.1042281985282898,
-0.02824062667787075,
0.013584611937403679,
0.004076669458299875,
-0.013743835501372814,
-0.022837119176983833,
-0.014595385640859604,
-0.059375036507844925,
-0.01769392564892769,
0.10643584281206131,
-0.022117091342806816,
0.07458189874887466,
-0.07424353808164597,
0.09197556227445602,
0.05732065066695213,
0.004180151969194412,
-0.10250651091337204,
0.03731062263250351,
-0.19769136607646942,
0.10213162004947662,
0.0004316161503084004,
-0.12210753560066223,
-0.047535743564367294,
-0.06038902699947357,
-0.06869127601385117,
0.04427731782197952,
-0.00783755723387003,
0.11059141904115677,
-0.21001599729061127,
-0.043292924761772156,
0.3225525915622711,
-0.1388276070356369,
0.006896607577800751,
0.11706866323947906,
-0.08619567006826401,
0.041805583983659744,
0.10284540802240372,
0.05994439497590065,
-0.0626242533326149,
-0.05025818198919296,
-0.007168499752879143,
-0.06564135104417801,
-0.030229832977056503,
0.2159159630537033,
0.03364916518330574,
-0.04055957496166229,
-0.05591513216495514,
0.02826618030667305,
-0.040541812777519226,
-0.0656801164150238,
-0.017896749079227448,
-0.009419630281627178,
0.04038335755467415,
0.018184658139944077,
0.045528996735811234,
-0.027463605627417564,
-0.06392177194356918,
-0.046535424888134,
-0.08543342351913452,
-0.07721558958292007,
0.07946320623159409,
-0.08197177946567535,
0.04114556685090065,
-0.03867202624678612,
-0.06787936389446259,
-0.024587661027908325,
0.00714484928175807,
-0.215809628367424,
0.020726345479488373,
0.054282739758491516,
-0.07920217514038086,
0.08931155502796173,
0.0619613453745842,
0.0033497046679258347,
0.08588477224111557,
-0.05102148279547691,
0.02523144893348217,
0.01709202118217945,
-0.02166672796010971,
-0.05661802366375923,
-0.16358524560928345,
-0.07664156705141068,
-0.03161155432462692,
0.10703260451555252,
-0.09883401542901993,
0.012086830101907253,
-0.03170038387179375,
0.07547467947006226,
0.01968732476234436,
-0.0624844990670681,
0.025093799456954002,
0.011264422908425331,
-0.05475633218884468,
-0.007830734364688396,
-0.0011942507699131966,
0.007671738043427467,
-0.04861867427825928,
0.1314644068479538,
-0.2225656360387802,
-0.1398434340953827,
0.08132528513669968,
0.08216555416584015,
-0.13037335872650146,
-0.0691656842827797,
-0.05981660261750221,
-0.02430211380124092,
-0.09534309804439545,
-0.06296215951442719,
0.1979062259197235,
0.03576311841607094,
0.10500141233205795,
-0.12920695543289185,
-0.0010250045452266932,
0.007886577397584915,
-0.021326526999473572,
-0.006575432140380144,
0.0315866693854332,
-0.015872953459620476,
-0.1733047217130661,
0.027771933004260063,
-0.12079602479934692,
0.01995380036532879,
0.08593862503767014,
0.03960198536515236,
-0.12083341181278229,
-0.013731559738516808,
-0.009796169586479664,
0.047851044684648514,
0.08460722863674164,
-0.060618627816438675,
0.011154638603329659,
0.0586426742374897,
0.0301541518419981,
0.028370391577482224,
-0.10102593153715134,
0.05699774622917175,
0.02519875578582287,
-0.056290194392204285,
-0.07182536274194717,
-0.0629178136587143,
0.03969034552574158,
0.13212186098098755,
-0.0040048821829259396,
0.015594005584716797,
-0.023097295314073563,
-0.05996072292327881,
-0.1340075135231018,
0.16944289207458496,
-0.06544528901576996,
-0.27345913648605347,
-0.15836063027381897,
0.002086291555315256,
0.003305820282548666,
0.03845155984163284,
-0.021815484389662743,
0.03995397686958313,
-0.0730813667178154,
-0.12766234576702118,
0.08800212293863297,
-0.021421674638986588,
0.004088073503226042,
-0.08042531460523605,
0.02754906564950943,
0.010120122693479061,
-0.12921825051307678,
0.009282881394028664,
-0.03051084652543068,
-0.053462233394384384,
0.03144371509552002,
-0.04949077218770981,
0.07520361244678497,
0.13145291805267334,
0.0009071097010746598,
-0.03468518704175949,
-0.057427484542131424,
0.09238598495721817,
-0.03542867302894592,
0.07050395756959915,
-0.006220302544534206,
-0.08683982491493225,
0.045887541025877,
0.1207205131649971,
-0.017761729657649994,
-0.05534195899963379,
0.06002064794301987,
0.044177740812301636,
-0.0338006392121315,
-0.20578990876674652,
-0.029325610026717186,
-0.04153144359588623,
-0.021272210404276848,
0.1284518539905548,
0.019093941897153854,
-0.023214709013700485,
0.02435666136443615,
-0.10864066332578659,
0.018734987825155258,
0.09133607149124146,
0.08181198686361313,
-0.06602220237255096,
-0.019805891439318657,
0.09087908267974854,
-0.030647920444607735,
-0.032550226897001266,
0.08544374257326126,
-0.0019499108893796802,
0.1757603883743286,
-0.10718797147274017,
0.16210238635540009,
0.10485008358955383,
0.04032960161566734,
0.04807739332318306,
0.11962200701236725,
-0.03449797257781029,
0.04907093942165375,
-0.0805366262793541,
-0.06908311694860458,
-0.06649528443813324,
0.028138186782598495,
0.01587725058197975,
0.06053434684872627,
-0.054302878677845,
-0.07888854295015335,
0.03326702490448952,
0.18097394704818726,
0.08259118348360062,
-0.1841868907213211,
-0.06550995260477066,
0.020871687680482864,
-0.06573674082756042,
-0.05236753821372986,
0.012443730607628822,
0.08301056176424026,
-0.11766796559095383,
0.0800320953130722,
-0.029431024566292763,
0.07202285528182983,
-0.08905474096536636,
0.017521340399980545,
-0.11567472666501999,
0.08773893862962723,
-0.047415830194950104,
0.08001451939344406,
-0.2502802610397339,
0.16175465285778046,
0.023362860083580017,
0.05671408772468567,
-0.12682341039180756,
-0.008915390819311142,
0.01028814259916544,
-0.009630747139453888,
0.13174693286418915,
-0.02221999317407608,
0.006961143109947443,
-0.046552009880542755,
-0.040599074214696884,
0.022489206865429878,
0.07857117056846619,
-0.0026353884022682905,
0.13413505256175995,
0.02073872834444046,
0.01907660812139511,
0.0002507412573322654,
0.04175994545221329,
-0.08342304080724716,
-0.15701323747634888,
0.050912778824567795,
-0.09123334288597107,
-0.019148942083120346,
-0.07781350612640381,
-0.05523582547903061,
0.012930844910442829,
0.14916592836380005,
-0.12424081563949585,
-0.04792904108762741,
-0.07635375112295151,
0.021892134100198746,
0.1264050006866455,
-0.05685466155409813,
-0.020060550421476364,
-0.011219026520848274,
0.1896210014820099,
-0.09702243655920029,
-0.06423173099756241,
0.033320847898721695,
-0.04776917025446892,
-0.13424165546894073,
-0.09555036574602127,
0.12271788716316223,
0.12243147939443588,
0.08086960017681122,
0.009974677115678787,
0.010523498058319092,
0.07839134335517883,
-0.09772234410047531,
-0.03120315633714199,
0.0714462548494339,
0.1377989798784256,
0.12500160932540894,
-0.09675082564353943,
-0.10374587029218674,
-0.10978329181671143,
0.01992948167026043,
0.04573701322078705,
0.2493402063846588,
-0.047381989657878876,
0.1280825436115265,
0.1798224300146103,
-0.11411680281162262,
-0.20310285687446594,
-0.013968609273433685,
0.04368472099304199,
0.0677003487944603,
0.03582053631544113,
-0.14941418170928955,
-0.047578081488609314,
0.07884935289621353,
0.007664086762815714,
-0.016003966331481934,
-0.27609652280807495,
-0.1237262710928917,
0.11049841344356537,
0.06233631819486618,
0.03483179211616516,
-0.08390085399150848,
-0.03216659277677536,
-0.05907410755753517,
-0.0806078389286995,
0.10315658897161484,
-0.03209640085697174,
0.12386145442724228,
0.020708147436380386,
-0.06549667567014694,
0.04278440773487091,
-0.06219887360930443,
0.12180610746145248,
0.02653227560222149,
0.07535000890493393,
-0.0535302609205246,
-0.004470353480428457,
0.10985901206731796,
-0.01326241809874773,
0.13563327491283417,
0.06566394865512848,
0.043800827115774155,
0.02979869395494461,
-0.06854776293039322,
-0.09375147521495819,
0.003561272518709302,
-0.0562080442905426,
-0.05274521932005882,
-0.06348959356546402,
0.07399851083755493,
0.07773742079734802,
-0.02816348522901535,
-0.01036758255213499,
-0.07573919743299484,
0.052691537886857986,
0.14546458423137665,
0.11701417714357376,
-0.0033561205491423607,
-0.0592009574174881,
0.026013387367129326,
-0.015557886101305485,
0.049692053347826004,
0.002051751594990492,
0.05563082918524742,
0.07391270995140076,
0.023898743093013763,
0.16836577653884888,
0.04178875312209129,
-0.18258894979953766,
-0.02294345013797283,
0.0296211875975132,
-0.14857399463653564,
-0.14574134349822998,
0.045426297932863235,
-0.011389447376132011,
-0.14764481782913208,
-0.056841008365154266,
0.07451388239860535,
-0.04545172303915024,
-0.027959495782852173,
0.007232682779431343,
0.05792981758713722,
0.008783983066678047,
0.14657728374004364,
0.027171054854989052,
0.0355900377035141,
-0.0777427926659584,
0.12669429183006287,
0.10593158006668091,
-0.10206276178359985,
0.011584393680095673,
0.033083073794841766,
-0.09390342980623245,
0.007502010557800531,
-0.041673678904771805,
0.0668950155377388,
0.08778300881385803,
-0.028723755851387978,
-0.08343169838190079,
-0.09492511302232742,
0.05892324075102806,
0.11576400697231293,
0.016683978959918022,
0.09880202263593674,
-0.010651130229234695,
-0.0005073738866485655,
-0.08857804536819458,
0.04292656108736992,
0.09223544597625732,
0.05811092257499695,
0.04967021197080612,
0.25687968730926514,
0.01725744642317295,
0.0005228047375567257,
-0.020179668441414833,
-0.04059569910168648,
-0.07319194078445435,
0.022829577326774597,
-0.09339431673288345,
0.06206508353352547,
-0.14812499284744263,
-0.04044831916689873,
0.013157264329493046,
0.03947470709681511,
0.026544520631432533,
0.0039331247098743916,
-0.018399961292743683,
-0.0038629791233688593,
-0.049465835094451904,
0.032426342368125916,
-0.10571253299713135,
-0.024281565099954605,
0.06666852533817291,
-0.08632969856262207,
0.07680017501115799,
0.0035698185674846172,
-0.04776711016893387,
0.024710793048143387,
-0.12099739909172058,
0.0011298112804070115,
0.03644626960158348,
0.02331591211259365,
-0.025258585810661316,
-0.13702866435050964,
0.01412409171462059,
-0.005964106880128384,
-0.013922302052378654,
0.005980294663459063,
0.0476192869246006,
-0.09197965264320374,
0.03984629735350609,
0.0536973662674427,
0.004470575135201216,
-0.06313033401966095,
0.07405461370944977,
0.05406101047992706,
0.007624033372849226,
0.11022863537073135,
-0.05269281193614006,
0.02719085104763508,
-0.1531326025724411,
-0.007015598006546497,
-0.01848236285150051,
-0.007115543819963932,
0.05948805809020996,
-0.021842123940587044,
0.03452274948358536,
-0.012749644927680492,
0.17200122773647308,
-0.024967733770608902,
-0.05117087438702583,
0.024071162566542625,
-0.02352273464202881,
0.039776138961315155,
0.03308965638279915,
0.04393162578344345,
-0.016714299097657204,
-0.07559159398078918,
-0.036921922117471695,
0.02217765897512436,
-0.023669129237532616,
0.05310019850730896,
0.20752578973770142,
0.052331309765577316,
0.20682178437709808,
0.021120566874742508,
0.01726764254271984,
-0.03685799241065979,
0.025283468887209892,
0.044006239622831345,
0.05589689686894417,
-0.0011900722747668624,
0.03756914660334587,
0.04426102340221405,
0.16191895306110382,
-0.13233327865600586,
0.15100373327732086,
0.031719811260700226,
-0.08827279508113861,
-0.07698933780193329,
-0.23355495929718018,
-0.011614819057285786,
0.09822381287813187,
-0.036651164293289185,
-0.13000579178333282,
0.04300207644701004,
0.08631335943937302,
0.014971339143812656,
-0.0031171157024800777,
0.06647263467311859,
-0.045955926179885864,
-0.1415790170431137,
0.04789869114756584,
0.013654225505888462,
0.032994527369737625,
0.06349828094244003,
0.0077913845889270306,
0.0945148915052414,
0.014072103425860405,
0.07907489687204361,
0.06888974457979202,
0.11876515299081802,
0.002602334599941969,
-0.04302099719643593,
-0.059187572449445724,
0.029379289597272873,
-0.040785644203424454,
0.0840323194861412,
0.2102489024400711,
0.08111859112977982,
-0.042299557477235794,
0.009435310959815979,
0.1197582334280014,
-0.015567113645374775,
-0.10911427438259125,
-0.14855048060417175,
0.19678336381912231,
0.05005260929465294,
0.014767712913453579,
0.07202406972646713,
-0.0986533835530281,
0.03611506149172783,
0.16759426891803741,
0.1698661893606186,
-0.020649094134569168,
0.010524292476475239,
0.029741769656538963,
0.0019852537661790848,
0.07695356756448746,
0.1231219619512558,
-0.012131407856941223,
0.23475109040737152,
-0.028433412313461304,
0.10693423449993134,
-0.018027042970061302,
0.030881518498063087,
-0.004544081632047892,
0.13122136890888214,
-0.02628426067531109,
-0.0100833959877491,
-0.06992311775684357,
0.033644139766693115,
-0.05875677242875099,
-0.2842358350753784,
-0.047852933406829834,
-0.012697666883468628,
-0.10434964299201965,
0.006552026141434908,
-0.0654485821723938,
0.03702526539564133,
0.08411644399166107,
0.022844167426228523,
0.04319554567337036,
0.16309645771980286,
0.01864876225590706,
-0.05929398536682129,
-0.07876778393983841,
0.06497051566839218,
-0.007971148937940598,
0.16781795024871826,
0.022754186764359474,
0.10401187092065811,
0.050225935876369476,
0.005896538030356169,
-0.082645945250988,
0.0574927031993866,
-0.0021576774306595325,
0.08869408071041107,
0.0314493291079998,
0.14337129890918732,
0.01184250507503748,
0.013214151374995708,
0.022058190777897835,
-0.07870753854513168,
0.07520635426044464,
-0.08938247710466385,
-0.06174717843532562,
-0.10645411908626556,
0.0772925391793251,
-0.026286834850907326,
0.10237548500299454,
0.1603478044271469,
0.0018118866719305515,
0.023087169975042343,
-0.046854112297296524,
-0.05648937448859215,
0.00004865891969529912,
0.12330596894025803,
0.016912752762436867,
-0.14146694540977478,
-0.008235016837716103,
-0.06420885026454926,
0.017699914053082466,
-0.30808302760124207,
-0.026230810210108757,
0.05642145499587059,
-0.10723796486854553,
-0.0072096907533705235,
0.07954134792089462,
-0.006746674422174692,
0.08938758075237274,
-0.057896289974451065,
-0.014975531026721,
0.02804464101791382,
0.09346013516187668,
-0.12881146371364594,
-0.08424877375364304
] |
null | null | transformers |
# CamemBERT: a Tasty French Language Model
## Introduction
[CamemBERT](https://arxiv.org/abs/1911.03894) is a state-of-the-art language model for French based on the RoBERTa model.
It is now available on Hugging Face in 6 different versions with varying number of parameters, amount of pretraining data and pretraining data source domains.
For further information or requests, please go to [Camembert Website](https://camembert-model.fr/)
## Pre-trained models
| Model | #params | Arch. | Training data |
|--------------------------------|--------------------------------|-------|-----------------------------------|
| `camembert-base` | 110M | Base | OSCAR (138 GB of text) |
| `camembert/camembert-large` | 335M | Large | CCNet (135 GB of text) |
| `camembert/camembert-base-ccnet` | 110M | Base | CCNet (135 GB of text) |
| `camembert/camembert-base-wikipedia-4gb` | 110M | Base | Wikipedia (4 GB of text) |
| `camembert/camembert-base-oscar-4gb` | 110M | Base | Subsample of OSCAR (4 GB of text) |
| `camembert/camembert-base-ccnet-4gb` | 110M | Base | Subsample of CCNet (4 GB of text) |
## How to use CamemBERT with HuggingFace
##### Load CamemBERT and its sub-word tokenizer :
```python
from transformers import CamembertModel, CamembertTokenizer
# You can replace "camembert-base" with any other model from the table, e.g. "camembert/camembert-large".
tokenizer = CamembertTokenizer.from_pretrained("camembert/camembert-base-wikipedia-4gb")
camembert = CamembertModel.from_pretrained("camembert/camembert-base-wikipedia-4gb")
camembert.eval() # disable dropout (or leave in train mode to finetune)
```
##### Filling masks using pipeline
```python
from transformers import pipeline
camembert_fill_mask = pipeline("fill-mask", model="camembert/camembert-base-wikipedia-4gb", tokenizer="camembert/camembert-base-wikipedia-4gb")
results = camembert_fill_mask("Le camembert est un fromage de <mask>!")
# results
#[{'sequence': '<s> Le camembert est un fromage de chèvre!</s>', 'score': 0.4937814474105835, 'token': 19370},
#{'sequence': '<s> Le camembert est un fromage de brebis!</s>', 'score': 0.06255942583084106, 'token': 30616},
#{'sequence': '<s> Le camembert est un fromage de montagne!</s>', 'score': 0.04340197145938873, 'token': 2364},
# {'sequence': '<s> Le camembert est un fromage de Noël!</s>', 'score': 0.02823255956172943, 'token': 3236},
#{'sequence': '<s> Le camembert est un fromage de vache!</s>', 'score': 0.021357402205467224, 'token': 12329}]
```
##### Extract contextual embedding features from Camembert output
```python
import torch
# Tokenize in sub-words with SentencePiece
tokenized_sentence = tokenizer.tokenize("J'aime le camembert !")
# ['▁J', "'", 'aime', '▁le', '▁ca', 'member', 't', '▁!']
# 1-hot encode and add special starting and end tokens
encoded_sentence = tokenizer.encode(tokenized_sentence)
# [5, 221, 10, 10600, 14, 8952, 10540, 75, 1114, 6]
# NB: Can be done in one step : tokenize.encode("J'aime le camembert !")
# Feed tokens to Camembert as a torch tensor (batch dim 1)
encoded_sentence = torch.tensor(encoded_sentence).unsqueeze(0)
embeddings, _ = camembert(encoded_sentence)
# embeddings.detach()
# embeddings.size torch.Size([1, 10, 768])
#tensor([[[-0.0928, 0.0506, -0.0094, ..., -0.2388, 0.1177, -0.1302],
# [ 0.0662, 0.1030, -0.2355, ..., -0.4224, -0.0574, -0.2802],
# [-0.0729, 0.0547, 0.0192, ..., -0.1743, 0.0998, -0.2677],
# ...,
```
##### Extract contextual embedding features from all Camembert layers
```python
from transformers import CamembertConfig
# (Need to reload the model with new config)
config = CamembertConfig.from_pretrained("camembert/camembert-base-wikipedia-4gb", output_hidden_states=True)
camembert = CamembertModel.from_pretrained("camembert/camembert-base-wikipedia-4gb", config=config)
embeddings, _, all_layer_embeddings = camembert(encoded_sentence)
# all_layer_embeddings list of len(all_layer_embeddings) == 13 (input embedding layer + 12 self attention layers)
all_layer_embeddings[5]
# layer 5 contextual embedding : size torch.Size([1, 10, 768])
#tensor([[[-0.0059, -0.0227, 0.0065, ..., -0.0770, 0.0369, 0.0095],
# [ 0.2838, -0.1531, -0.3642, ..., -0.0027, -0.8502, -0.7914],
# [-0.0073, -0.0338, -0.0011, ..., 0.0533, -0.0250, -0.0061],
# ...,
```
## Authors
CamemBERT was trained and evaluated by Louis Martin\*, Benjamin Muller\*, Pedro Javier Ortiz Suárez\*, Yoann Dupont, Laurent Romary, Éric Villemonte de la Clergerie, Djamé Seddah and Benoît Sagot.
## Citation
If you use our work, please cite:
```bibtex
@inproceedings{martin2020camembert,
title={CamemBERT: a Tasty French Language Model},
author={Martin, Louis and Muller, Benjamin and Su{\'a}rez, Pedro Javier Ortiz and Dupont, Yoann and Romary, Laurent and de la Clergerie, {\'E}ric Villemonte and Seddah, Djam{\'e} and Sagot, Beno{\^\i}t},
booktitle={Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics},
year={2020}
}
```
| {"language": "fr", "license": "mit", "datasets": ["oscar"]} | fill-mask | almanach/camembert-base | [
"transformers",
"pytorch",
"tf",
"safetensors",
"camembert",
"fill-mask",
"fr",
"dataset:oscar",
"arxiv:1911.03894",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1911.03894"
] | [
"fr"
] | TAGS
#transformers #pytorch #tf #safetensors #camembert #fill-mask #fr #dataset-oscar #arxiv-1911.03894 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us
| CamemBERT: a Tasty French Language Model
========================================
Introduction
------------
CamemBERT is a state-of-the-art language model for French based on the RoBERTa model.
It is now available on Hugging Face in 6 different versions with varying number of parameters, amount of pretraining data and pretraining data source domains.
For further information or requests, please go to Camembert Website
Pre-trained models
------------------
How to use CamemBERT with HuggingFace
-------------------------------------
##### Load CamemBERT and its sub-word tokenizer :
##### Filling masks using pipeline
##### Extract contextual embedding features from Camembert output
##### Extract contextual embedding features from all Camembert layers
Authors
-------
CamemBERT was trained and evaluated by Louis Martin\*, Benjamin Muller\*, Pedro Javier Ortiz Suárez\*, Yoann Dupont, Laurent Romary, Éric Villemonte de la Clergerie, Djamé Seddah and Benoît Sagot.
If you use our work, please cite:
| [
"##### Load CamemBERT and its sub-word tokenizer :",
"##### Filling masks using pipeline",
"##### Extract contextual embedding features from Camembert output",
"##### Extract contextual embedding features from all Camembert layers\n\n\nAuthors\n-------\n\n\nCamemBERT was trained and evaluated by Louis Martin\\*, Benjamin Muller\\*, Pedro Javier Ortiz Suárez\\*, Yoann Dupont, Laurent Romary, Éric Villemonte de la Clergerie, Djamé Seddah and Benoît Sagot.\n\n\nIf you use our work, please cite:"
] | [
"TAGS\n#transformers #pytorch #tf #safetensors #camembert #fill-mask #fr #dataset-oscar #arxiv-1911.03894 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"##### Load CamemBERT and its sub-word tokenizer :",
"##### Filling masks using pipeline",
"##### Extract contextual embedding features from Camembert output",
"##### Extract contextual embedding features from all Camembert layers\n\n\nAuthors\n-------\n\n\nCamemBERT was trained and evaluated by Louis Martin\\*, Benjamin Muller\\*, Pedro Javier Ortiz Suárez\\*, Yoann Dupont, Laurent Romary, Éric Villemonte de la Clergerie, Djamé Seddah and Benoît Sagot.\n\n\nIf you use our work, please cite:"
] | [
72,
17,
9,
15,
91
] | [
"passage: TAGS\n#transformers #pytorch #tf #safetensors #camembert #fill-mask #fr #dataset-oscar #arxiv-1911.03894 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n##### Load CamemBERT and its sub-word tokenizer :##### Filling masks using pipeline##### Extract contextual embedding features from Camembert output##### Extract contextual embedding features from all Camembert layers\n\n\nAuthors\n-------\n\n\nCamemBERT was trained and evaluated by Louis Martin\\*, Benjamin Muller\\*, Pedro Javier Ortiz Suárez\\*, Yoann Dupont, Laurent Romary, Éric Villemonte de la Clergerie, Djamé Seddah and Benoît Sagot.\n\n\nIf you use our work, please cite:"
] | [
-0.09872346371412277,
0.10326085984706879,
-0.0030239822808653116,
0.11564328521490097,
0.07938575744628906,
-0.04641139134764671,
0.10541348159313202,
0.02541975863277912,
0.06503365933895111,
0.016215404495596886,
0.1379765123128891,
0.09644205868244171,
-0.005841648206114769,
0.043264806270599365,
-0.022098833695054054,
-0.22698481380939484,
0.011729223653674126,
0.03545011952519417,
-0.12416264414787292,
0.10703323036432266,
0.10878614336252213,
-0.09421547502279282,
0.1429711878299713,
0.009762508794665337,
-0.07537898421287537,
0.052679192274808884,
-0.028708776459097862,
-0.08332553505897522,
0.15614530444145203,
0.06380262225866318,
0.12205615639686584,
0.12342788279056549,
0.009492439217865467,
-0.11870409548282623,
0.03776131197810173,
-0.002952581038698554,
-0.05980926752090454,
0.01653885655105114,
0.05284702032804489,
-0.14401960372924805,
0.0823412537574768,
-0.08803130686283112,
0.021637309342622757,
0.0068706911988556385,
-0.17437797784805298,
-0.08768293261528015,
-0.06961596757173538,
0.003068074118345976,
0.022825226187705994,
0.08314535021781921,
-0.00496580358594656,
0.06644797325134277,
-0.05565434321761131,
0.06889884173870087,
0.17876283824443817,
-0.2777630388736725,
-0.06241581588983536,
-0.030956875532865524,
0.161778524518013,
-0.0034451400861144066,
-0.08139174431562424,
0.0754479318857193,
0.04528992250561714,
-0.00855269655585289,
0.1504906564950943,
-0.13725163042545319,
0.04350415617227554,
-0.02467758022248745,
-0.12160972505807877,
0.011101584881544113,
0.19384336471557617,
0.020334064960479736,
-0.023726867511868477,
-0.0894516110420227,
-0.07773005217313766,
-0.028159834444522858,
-0.029825402423739433,
-0.06070604920387268,
0.042656686156988144,
-0.05042652040719986,
0.020056286826729774,
-0.0007052610162645578,
-0.10193903744220734,
-0.0526871494948864,
-0.06609085947275162,
0.08645694702863693,
-0.01770923100411892,
-0.02815430611371994,
-0.07707583159208298,
0.06185198202729225,
-0.10192137211561203,
-0.15164217352867126,
0.0020368772093206644,
-0.08448182046413422,
0.010629642754793167,
-0.006958734709769487,
0.027679791674017906,
-0.01961328648030758,
0.04200148582458496,
0.2138075977563858,
-0.08597156405448914,
0.03806539624929428,
0.01855768822133541,
0.06793676316738129,
0.006252381019294262,
0.14113293588161469,
-0.06392616033554077,
-0.14972186088562012,
-0.012067041359841824,
-0.047780733555555344,
0.010239764116704464,
0.007083285599946976,
-0.15797266364097595,
-0.025070222094655037,
-0.030072107911109924,
0.04606865346431732,
0.01875264383852482,
0.026155641302466393,
-0.10203161835670471,
-0.00792410783469677,
0.0924462154507637,
-0.04031166434288025,
0.02936025895178318,
0.001664247247390449,
-0.01249774917960167,
0.019681939855217934,
0.05551422759890556,
0.003389685181900859,
-0.010919895023107529,
0.07439294457435608,
-0.07747016102075577,
0.006910363212227821,
-0.035806939005851746,
-0.14556792378425598,
0.053178027272224426,
-0.10874900966882706,
0.04365004226565361,
-0.22076264023780823,
-0.037303291261196136,
-0.02422947622835636,
0.07415441423654556,
-0.025662578642368317,
0.02026461251080036,
-0.06409942358732224,
-0.035103797912597656,
0.04075660556554794,
0.019305342808365822,
-0.10269448906183243,
-0.09595821797847748,
0.029591646045446396,
-0.006772101391106844,
0.12699884176254272,
-0.13005344569683075,
0.03837564215064049,
-0.09781574457883835,
0.057944588363170624,
-0.2391248345375061,
0.0663243755698204,
-0.021990079432725906,
0.028516793623566628,
-0.1681142896413803,
-0.0759216696023941,
-0.06760630011558533,
0.015251385979354382,
0.0650981143116951,
0.22157904505729675,
-0.16737137734889984,
-0.0881594642996788,
0.1834719479084015,
-0.05718333274126053,
-0.11882378160953522,
0.16199427843093872,
-0.030280761420726776,
0.03815782070159912,
0.04026976600289345,
0.1383579820394516,
0.03435606136918068,
-0.18073303997516632,
0.04907429218292236,
0.0227791927754879,
0.09658444672822952,
0.040590450167655945,
0.14723201096057892,
0.001002756878733635,
0.033061519265174866,
-0.038405150175094604,
-0.057473741471767426,
0.006537208799272776,
-0.04515007510781288,
-0.04973716288805008,
0.05120357498526573,
-0.0021962677128612995,
0.14897798001766205,
-0.004655060824006796,
0.0263361893594265,
-0.037442319095134735,
-0.10459170490503311,
-0.04025974124670029,
0.0041947332210838795,
-0.005947746802121401,
0.02438228577375412,
-0.037209343165159225,
0.15552255511283875,
0.0016978209605440497,
-0.016091926023364067,
-0.1351052224636078,
0.008145448751747608,
-0.005855889525264502,
0.07155569642782211,
0.03624522313475609,
0.019195768982172012,
0.06215030327439308,
0.07337222248315811,
-0.04759371280670166,
-0.0004395337600726634,
-0.06108700856566429,
-0.007553210947662592,
0.018012773245573044,
-0.20549623668193817,
0.030874481424689293,
-0.08063673228025436,
0.14605176448822021,
-0.0952799841761589,
0.034194041043519974,
0.045519791543483734,
0.07642907649278641,
0.04393560439348221,
-0.011576654389500618,
-0.03962644189596176,
0.0801844596862793,
-0.06647790223360062,
0.0014062185073271394,
0.05114574730396271,
-0.022193865850567818,
-0.13182523846626282,
0.18042653799057007,
-0.14050227403640747,
0.08093466609716415,
0.13992831110954285,
-0.2074989527463913,
-0.11222949624061584,
-0.06537845730781555,
-0.021296560764312744,
0.013611000031232834,
0.05010408163070679,
0.0017293347045779228,
0.14031027257442474,
0.004501325078308582,
0.13017143309116364,
-0.08932862430810928,
-0.014228936284780502,
0.011073693633079529,
-0.010474465787410736,
-0.10530796647071838,
0.1827392280101776,
0.11449019610881805,
-0.05251668766140938,
0.1511361300945282,
0.306812584400177,
0.04817356914281845,
0.158504456281662,
0.03620687872171402,
-0.005867918953299522,
-0.03395344316959381,
0.008216136135160923,
-0.0055592977441847324,
0.11800751835107803,
-0.1661907285451889,
-0.02824266254901886,
0.006200551055371761,
-0.06934074312448502,
-0.01568794623017311,
-0.12796686589717865,
-0.011200347915291786,
0.053578317165374756,
0.024675196036696434,
-0.0724002793431282,
0.07324230670928955,
-0.05351310223340988,
0.09090886265039444,
0.03556574136018753,
-0.1311035305261612,
-0.020109539851546288,
0.015648096799850464,
-0.06602519005537033,
0.1923406571149826,
-0.03988499566912651,
-0.25699901580810547,
-0.027030542492866516,
-0.06610415130853653,
-0.05454153195023537,
0.05813048034906387,
0.08187179267406464,
-0.033206939697265625,
0.017423303797841072,
0.013771967962384224,
0.04258408397436142,
-0.0678352490067482,
-0.024515191093087196,
-0.04004315286874771,
-0.041551973670721054,
-0.0596330463886261,
-0.04851580783724785,
-0.06475044041872025,
0.0027244938537478447,
0.018749259412288666,
0.058719780296087265,
-0.09646198898553848,
0.20783624053001404,
0.0852118507027626,
-0.01473147515207529,
-0.0125749371945858,
-0.04080219939351082,
0.2716626524925232,
-0.07903356850147247,
0.001518632285296917,
0.15198104083538055,
-0.02439779043197632,
0.05388844013214111,
0.1657019555568695,
0.0406733974814415,
-0.04412258416414261,
-0.019855018705129623,
0.016946669667959213,
-0.07348347455263138,
-0.11528287082910538,
-0.11102061718702316,
-0.110104039311409,
0.05130628123879433,
0.11052882671356201,
-0.006913254503160715,
-0.0157310888171196,
0.05190679058432579,
-0.03055923990905285,
0.017622724175453186,
0.09186188876628876,
0.09876220673322678,
0.09960084408521652,
-0.0040273298509418964,
0.0952749028801918,
-0.01642431877553463,
-0.138925701379776,
0.04088124260306358,
0.048819709569215775,
-0.006594906561076641,
0.09115287661552429,
0.1363508701324463,
0.07596584409475327,
0.05372524634003639,
0.017415426671504974,
0.03237742930650711,
0.07515855133533478,
-0.0021494575776159763,
-0.05366349220275879,
-0.09288244694471359,
0.015224015340209007,
0.04832323640584946,
0.002105950377881527,
-0.07239798456430435,
-0.17385438084602356,
0.0027167540974915028,
0.08441344648599625,
0.11515677720308304,
0.05546487122774124,
-0.24644510447978973,
-0.05050397664308548,
0.04061966761946678,
0.044524047523736954,
-0.037243712693452835,
0.008189301937818527,
0.09769024699926376,
-0.10548655688762665,
0.11954917013645172,
-0.007898710668087006,
0.12745781242847443,
0.026348784565925598,
0.04600563272833824,
-0.10242753475904465,
-0.10270242393016815,
-0.01565227285027504,
-0.001992543926462531,
-0.2398323118686676,
0.2953922152519226,
0.04100104421377182,
-0.06401857733726501,
-0.051753100007772446,
-0.04300403967499733,
0.024223249405622482,
0.19797810912132263,
0.2779151499271393,
0.024980727583169937,
-0.06050246208906174,
-0.012293931096792221,
-0.03687582537531853,
-0.015181921422481537,
0.075446717441082,
-0.1220543161034584,
0.04540063440799713,
0.04650566726922989,
-0.06665807217359543,
-0.004856250714510679,
0.09942774474620819,
-0.09644807875156403,
-0.1578584611415863,
0.02320989966392517,
0.024421431124210358,
0.017975660040974617,
-0.026891132816672325,
-0.07809121161699295,
-0.12939812242984772,
0.09940709918737411,
-0.08569224923849106,
0.007250320632010698,
-0.09462887793779373,
-0.03659281134605408,
0.008665932342410088,
-0.089131198823452,
0.0862581804394722,
-0.053971536457538605,
0.03745948150753975,
-0.11441990733146667,
-0.020147111266851425,
0.16722208261489868,
-0.12254698574542999,
0.016894783824682236,
-0.07177647203207016,
0.14170444011688232,
0.017171913757920265,
0.07710888236761093,
0.04424150660634041,
0.007241980638355017,
-0.049040328711271286,
-0.07434182614088058,
-0.030505964532494545,
-0.0766470655798912,
0.05516340211033821,
0.03235509991645813,
-0.137848362326622,
-0.1448100060224533,
-0.03785402700304985,
-0.0036286618560552597,
0.18478251993656158,
0.17871251702308655,
-0.09370967745780945,
0.08875955641269684,
0.12920397520065308,
-0.05749765783548355,
-0.32938605546951294,
0.046343885362148285,
-0.025332419201731682,
0.0015692029846832156,
0.023840488865971565,
-0.13476723432540894,
-0.03856561705470085,
-0.045423638075590134,
0.0013793794205412269,
0.030740518122911453,
-0.2916751205921173,
-0.11944831162691116,
0.07850112020969391,
0.019018614664673805,
0.19907543063163757,
-0.06422968953847885,
-0.01286351215094328,
-0.0987335667014122,
-0.13295917212963104,
0.06880471855401993,
-0.03192102909088135,
0.05359041690826416,
0.014655321836471558,
-0.03680199012160301,
-0.004093992058187723,
-0.04813085496425629,
0.15595178306102753,
-0.015491786412894726,
0.04871901124715805,
-0.05548875406384468,
-0.07162195444107056,
-0.0020726069342345,
-0.012758245691657066,
-0.003384876763448119,
-0.056695662438869476,
-0.018395544961094856,
-0.060467321425676346,
-0.024136217311024666,
-0.055108342319726944,
0.14772352576255798,
-0.04878225550055504,
-0.042287908494472504,
-0.021469876170158386,
0.058761704713106155,
0.047663647681474686,
-0.001260361634194851,
0.05847974121570587,
-0.10850457847118378,
0.09163825213909149,
0.04222003370523453,
0.1438564956188202,
-0.022419597953557968,
-0.024974633008241653,
0.02921966277062893,
-0.03205399215221405,
0.08331172913312912,
-0.12315363436937332,
0.0725102648139,
0.1600150316953659,
0.013476712629199028,
0.09336196631193161,
0.06564494967460632,
-0.043442729860544205,
-0.028707314282655716,
0.09240388125181198,
-0.1846511960029602,
-0.0756317675113678,
-0.07864803820848465,
-0.09267526865005493,
0.05333894118666649,
-0.01978512853384018,
0.13971517980098724,
-0.048829007893800735,
-0.02658269740641117,
-0.00016154101467691362,
-0.009949292056262493,
-0.046026524156332016,
0.08786135166883469,
-0.03921142965555191,
0.011311435140669346,
-0.08890646696090698,
0.05005064606666565,
0.04371477663516998,
-0.2348233014345169,
-0.030504504218697548,
0.08241652697324753,
-0.08953594416379929,
-0.1073506623506546,
-0.030494729056954384,
0.18040244281291962,
-0.14858989417552948,
-0.03627695515751839,
-0.09114760905504227,
-0.0846555233001709,
0.04385796934366226,
0.2513328194618225,
0.08139193803071976,
-0.032065004110336304,
0.0504128634929657,
-0.04555631801486015,
-0.02495724707841873,
0.07694201916456223,
0.0989663153886795,
0.02089478261768818,
-0.006180717144161463,
0.04095621779561043,
-0.02590465173125267,
0.11719678342342377,
-0.0427883118391037,
0.008120914921164513,
-0.17493599653244019,
0.004425437189638615,
-0.055335093289613724,
0.004149106331169605,
-0.06070218235254288,
-0.009229721501469612,
-0.06081205978989601,
-0.009593305177986622,
-0.06704214960336685,
-0.016333993524312973,
-0.09933734685182571,
0.008289548568427563,
0.011350646615028381,
0.07077041268348694,
-0.10122596472501755,
-0.04739420488476753,
0.08167359232902527,
-0.04979078844189644,
0.07571880519390106,
-0.004865777213126421,
-0.003346513258293271,
0.0037519889883697033,
-0.22696194052696228,
-0.0463525615632534,
-0.017115337774157524,
0.029731731861829758,
0.0127379409968853,
-0.06314662098884583,
0.015576023608446121,
0.009124510921537876,
-0.00045599459554068744,
-0.01493381429463625,
0.022750932723283768,
-0.04745332896709442,
-0.05948225036263466,
0.039995595812797546,
-0.13359858095645905,
-0.022450078278779984,
0.08507060259580612,
0.04074472561478615,
0.025741204619407654,
0.08441256731748581,
-0.07315155118703842,
0.07475067675113678,
-0.05740967020392418,
0.01095044519752264,
-0.013428829610347748,
-0.1156049519777298,
-0.07148497551679611,
-0.11159753054380417,
0.05782782658934593,
-0.02810114622116089,
0.1090574637055397,
0.054232507944107056,
0.06355710327625275,
0.0458478219807148,
0.06186974421143532,
-0.049009770154953,
0.036507103592157364,
0.09002881497144699,
0.012738925404846668,
-0.02993098646402359,
-0.06883062422275543,
0.12903237342834473,
0.09481865167617798,
0.3081313967704773,
0.12064085155725479,
0.2127731591463089,
0.072819285094738,
0.0662141740322113,
-0.009684312157332897,
0.04170261695981026,
-0.03162112459540367,
-0.1015343889594078,
0.07697462290525436,
0.07903829216957092,
-0.0783621296286583,
0.0783034935593605,
0.08657048642635345,
-0.11834651976823807,
0.10025765746831894,
0.011405911296606064,
-0.03986476734280586,
-0.14009612798690796,
-0.08119834214448929,
-0.044553063809871674,
-0.03158821910619736,
-0.0349203385412693,
-0.04553137347102165,
0.03768644854426384,
-0.10546515136957169,
0.059383027255535126,
-0.034451235085725784,
0.2201099544763565,
-0.16192880272865295,
-0.10805097222328186,
0.129290372133255,
0.026087816804647446,
0.08604248613119125,
-0.019570542499423027,
0.03724855184555054,
-0.028018033131957054,
-0.020384671166539192,
-0.04270753264427185,
-0.005231649614870548,
0.011949940584599972,
0.028366176411509514,
-0.053076762706041336,
-0.0751035213470459,
-0.04516851529479027,
0.05565321072936058,
0.03612210229039192,
0.18839752674102783,
-0.0028192014433443546,
-0.013474490493535995,
0.03012394718825817,
0.17793212831020355,
-0.03200221806764603,
-0.020673422142863274,
-0.10871192067861557,
0.09744206070899963,
0.01786401867866516,
0.06421341001987457,
-0.056788425892591476,
-0.04360562935471535,
0.08665507286787033,
0.22799097001552582,
0.2799927592277527,
-0.03613974526524544,
0.058145396411418915,
-0.004945574328303337,
0.04737592488527298,
0.0844687968492508,
-0.04449625685811043,
0.04720647633075714,
0.18291421234607697,
-0.08357799798250198,
-0.029268234968185425,
-0.08121392875909805,
0.0028962150681763887,
-0.04332376644015312,
0.11419788748025894,
0.08389405906200409,
-0.0571981705725193,
-0.020606011152267456,
0.12041515111923218,
-0.0620250441133976,
-0.17580637335777283,
0.11243052780628204,
-0.22410741448402405,
-0.0422431118786335,
-0.0485847108066082,
0.018327780067920685,
0.08910892903804779,
0.07290127128362656,
0.007711644284427166,
-0.06468863040208817,
0.0603182427585125,
0.057715244591236115,
-0.09878844022750854,
-0.0986037477850914,
0.05599260702729225,
0.09493115544319153,
0.18008458614349365,
-0.048953693360090256,
0.054194871336221695,
0.13031387329101562,
0.05523204430937767,
0.01089881919324398,
-0.0162692628800869,
0.08502870053052902,
-0.022500822320580482,
-0.006476324517279863,
-0.008285410702228546,
-0.0418337844312191,
0.05469213426113129,
0.025182992219924927,
-0.08320452272891998,
0.08240921050310135,
-0.037788864225149155,
-0.11153106391429901,
-0.05060897767543793,
0.1274326592683792,
-0.08896593749523163,
0.06840240955352783,
0.12551653385162354,
0.015228044241666794,
0.0054233260452747345,
-0.0572245754301548,
0.015944426879286766,
0.06333790719509125,
-0.025339797139167786,
-0.05502286180853844,
-0.14533701539039612,
0.04023338481783867,
-0.03556782752275467,
0.050382912158966064,
-0.24059897661209106,
-0.0485953651368618,
-0.025803091004490852,
0.050687275826931,
-0.06569288671016693,
0.04530389979481697,
0.08338025212287903,
-0.017771637067198753,
-0.032619278877973557,
-0.23919366300106049,
0.03890262916684151,
0.06430898606777191,
-0.04630826786160469,
-0.033736977726221085
] |
null | null | transformers |
# ctrl
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
The CTRL model was proposed in [CTRL: A Conditional Transformer Language Model for Controllable Generation](https://arxiv.org/abs/1909.05858) by Nitish Shirish Keskar*, Bryan McCann*, Lav R. Varshney, Caiming Xiong and Richard Socher. It's a causal (unidirectional) transformer pre-trained using language modeling on a very large corpus of ~140 GB of text data with the first token reserved as a control code (such as Links, Books, Wikipedia etc.). The model developers released a model card for CTRL, available [here](https://github.com/salesforce/ctrl/blob/master/ModelCard.pdf).
In their [model card](https://github.com/salesforce/ctrl/blob/master/ModelCard.pdf), the developers write:
> The CTRL Language Model analyzed in this card generates text conditioned on control codes that specify domain, style, topics, dates, entities, relationships between entities, plot points, and task-related behavior.
- **Developed by:** See [associated paper](https://arxiv.org/abs/1909.05858) from Salesforce Research
- **Model type:** Transformer-based language model
- **Language(s) (NLP):** Primarily English, some German, Spanish, French
- **License:** [BSD 3-Clause](https://github.com/salesforce/ctrl/blob/master/LICENSE.txt); also see [Code of Conduct](https://github.com/salesforce/ctrl)
- **Related Models:** More information needed
- **Parent Model:** More information needed
- **Resources for more information:**
- [Associated paper](https://arxiv.org/abs/1909.05858)
- [GitHub repo](https://github.com/salesforce/ctrl)
- [Developer Model Card](https://github.com/salesforce/ctrl/blob/master/ModelCard.pdf)
- [Blog post](https://blog.salesforceairesearch.com/introducing-a-conditional-transformer-language-model-for-controllable-generation/)
# Uses
## Direct Use
The model is a language model. The model can be used for text generation.
## Downstream Use
In their [model card](https://github.com/salesforce/ctrl/blob/master/ModelCard.pdf), the developers write that the primary intended users are general audiences and NLP Researchers, and that the primary intended uses are:
> 1. Generating artificial text in collaboration with a human, including but not limited to:
> - Creative writing
> - Automating repetitive writing tasks
> - Formatting specific text types
> - Creating contextualized marketing materials
> 2. Improvement of other NLP applications through fine-tuning (on another task or other data, e.g. fine-tuning CTRL to learn new kinds of language like product descriptions)
> 3. Enhancement in the field of natural language understanding to push towards a better understanding of artificial text generation, including how to detect it and work toward control, understanding, and potentially combating potentially negative consequences of such models.
## Out-of-Scope Use
In their [model card](https://github.com/salesforce/ctrl/blob/master/ModelCard.pdf), the developers write:
> - CTRL should not be used for generating artificial text without collaboration with a human.
> - It should not be used to make normative or prescriptive claims.
> - This software should not be used to promote or profit from:
> - violence, hate, and division;
> - environmental destruction;
> - abuse of human rights; or
> - the destruction of people's physical and mental health.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
In their [model card](https://github.com/salesforce/ctrl/blob/master/ModelCard.pdf), the developers write:
> We recognize the potential for misuse or abuse, including use by bad actors who could manipulate the system to act maliciously and generate text to influence decision-making in political, economic, and social settings. False attribution could also harm individuals, organizations, or other entities. To address these concerns, the model was evaluated internally as well as externally by third parties, including the Partnership on AI, prior to release.
> To mitigate potential misuse to the extent possible, we stripped out all detectable training data from undesirable sources. We then redteamed the model and found that negative utterances were often placed in contexts that made them identifiable as such. For example, when using the ‘News’ control code, hate speech could be embedded as part of an apology (e.g. “the politician apologized for saying [insert hateful statement]”), implying that this type of speech was negative. By pre-selecting the available control codes (omitting, for example, Instagram and Twitter from the available domains), we are able to limit the potential for misuse.
> In releasing our model, we hope to put it into the hands of researchers and prosocial actors so that they can work to control, understand, and potentially combat the negative consequences of such models. We hope that research into detecting fake news and model-generated content of all kinds will be pushed forward by CTRL. It is our belief that these models should become a common tool so researchers can design methods to guard against malicious use and so the public becomes familiar with their existence and patterns of behavior.
See the [associated paper](https://arxiv.org/pdf/1909.05858.pdf) for further discussions about the ethics of LLMs.
## Recommendations
In their [model card](https://github.com/salesforce/ctrl/blob/master/ModelCard.pdf), the developers write:
> - A recommendation to monitor and detect use will be implemented through the development of a model that will identify CTRLgenerated text.
> - A second recommendation to further screen the input into and output from the model will be implemented through the addition of a check in the CTRL interface to prohibit the insertion into the model of certain negative inputs, which will help control the output that can be generated.
> - The model is trained on a limited number of languages: primarily English and some German, Spanish, French. A recommendation for a future area of research is to train the model on more languages.
See the [CTRL-detector GitHub repo](https://github.com/salesforce/ctrl-detector) for more on the detector model.
# Training
## Training Data
In their [model card](https://github.com/salesforce/ctrl/blob/master/ModelCard.pdf), the developers write:
> This model is trained on 140 GB of text drawn from a variety of domains: Wikipedia (English, German, Spanish, and French), Project Gutenberg, submissions from 45 subreddits, OpenWebText, a large collection of news data, Amazon Reviews, Europarl and UN data from WMT (En-De, En-Es, En-Fr), question-answer pairs (no context documents) from ELI5, and the MRQA shared task, which includes Stanford Question Answering Dataset, NewsQA, TriviaQA, SearchQA, HotpotQA, and Natural Questions. See the paper for the full list of training data.
## Training Procedure
### Preprocessing
In the [associated paper](https://arxiv.org/pdf/1909.05858.pdf) the developers write:
> We learn BPE (Sennrich et al., 2015) codes and tokenize the data using fastBPE4, but we use a large vocabulary of roughly 250K tokens. This includes the sub-word tokens necessary to mitigate problems with rare words, but it also reduces the average number of tokens required to generate long text by including most common words. We use English Wikipedia and a 5% split of our collected OpenWebText data for learning BPE codes. We also introduce an unknown token so that during preprocessing we can filter out sequences that contain more than 2 unknown tokens. This, along with the compressed storage for efficient training (TFRecords) (Abadi et al., 2016), reduces our training data to 140 GB from the total 180 GB collected.
See the paper for links, references, and further details.
### Training
In the [associated paper](https://arxiv.org/pdf/1909.05858.pdf) the developers write:
> CTRL has model dimension d = 1280, inner dimension f = 8192, 48 layers, and 16 heads per layer. Dropout with probability 0.1 follows the residual connections in each layer. Token embeddings were tied with the final output embedding layer (Inan et al., 2016; Press & Wolf, 2016).
See the paper for links, references, and further details.
# Evaluation
## Testing Data, Factors & Metrics
In their [model card](https://github.com/salesforce/ctrl/blob/master/ModelCard.pdf), the developers write that model performance measures are:
> Performance evaluated on qualitative judgments by humans as to whether the control codes lead to text generated in the desired domain
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). Details are pulled from the [associated paper](https://arxiv.org/pdf/1909.05858.pdf).
- **Hardware Type:** TPU v3 Pod
- **Hours used:** Approximately 336 hours (2 weeks)
- **Cloud Provider:** GCP
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
In the [associated paper](https://arxiv.org/pdf/1909.05858.pdf) the developers write:
> CTRL was implemented in TensorFlow (Abadi et al., 2016) and trained with a global batch size of 1024 distributed across 256 cores of a Cloud TPU v3 Pod for 800k iterations. Training took approximately 2 weeks using Adagrad (Duchi et al., 2011) with a linear warmup from 0 to 0.05 over 25k steps. The norm of gradients were clipped to 0.25 as in (Merity et al., 2017). Learning rate decay was not necessary due to the monotonic nature of the Adagrad accumulator. We compared to the Adam optimizer (Kingma & Ba, 2014) while training smaller models, but we noticed comparable convergence rates and significant memory savings with Adagrad. We also experimented with explicit memory-saving optimizers including SM3 (Anil et al., 2019), Adafactor (Shazeer & Stern, 2018), and NovoGrad (Ginsburg et al., 2019) with mixed results.
See the paper for links, references, and further details.
# Citation
**BibTeX:**
```bibtex
@article{keskarCTRL2019,
title={{CTRL - A Conditional Transformer Language Model for Controllable Generation}},
author={Keskar, Nitish Shirish and McCann, Bryan and Varshney, Lav and Xiong, Caiming and Socher, Richard},
journal={arXiv preprint arXiv:1909.05858},
year={2019}
}
```
**APA:**
- Keskar, N. S., McCann, B., Varshney, L. R., Xiong, C., & Socher, R. (2019). Ctrl: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858.
# Model Card Authors
This model card was written by the team at Hugging Face, referencing the [model card](https://github.com/salesforce/ctrl/blob/master/ModelCard.pdf) released by the developers.
# How to Get Started with the Model
Use the code below to get started with the model. See the [Hugging Face ctrl docs](https://huggingface.co/docs/transformers/model_doc/ctrl) for more information.
<details>
<summary> Click to expand </summary>
```python
>>> from transformers import CTRLTokenizer, CTRLModel
>>> import torch
>>> tokenizer = CTRLTokenizer.from_pretrained("ctrl")
>>> model = CTRLModel.from_pretrained("ctrl")
>>> # CTRL was trained with control codes as the first token
>>> inputs = tokenizer("Opinion My dog is cute", return_tensors="pt")
>>> assert inputs["input_ids"][0, 0].item() in tokenizer.control_codes.values()
>>> outputs = model(**inputs)
>>> last_hidden_states = outputs.last_hidden_state
>>> list(last_hidden_states.shape)
```
</details> | {"language": "en", "license": "bsd-3-clause", "pipeline_tag": "text-generation"} | text-generation | Salesforce/ctrl | [
"transformers",
"pytorch",
"tf",
"ctrl",
"text-generation",
"en",
"arxiv:1909.05858",
"arxiv:1910.09700",
"license:bsd-3-clause",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1909.05858",
"1910.09700"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #ctrl #text-generation #en #arxiv-1909.05858 #arxiv-1910.09700 #license-bsd-3-clause #endpoints_compatible #has_space #region-us
|
# ctrl
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
# Model Details
## Model Description
The CTRL model was proposed in CTRL: A Conditional Transformer Language Model for Controllable Generation by Nitish Shirish Keskar*, Bryan McCann*, Lav R. Varshney, Caiming Xiong and Richard Socher. It's a causal (unidirectional) transformer pre-trained using language modeling on a very large corpus of ~140 GB of text data with the first token reserved as a control code (such as Links, Books, Wikipedia etc.). The model developers released a model card for CTRL, available here.
In their model card, the developers write:
> The CTRL Language Model analyzed in this card generates text conditioned on control codes that specify domain, style, topics, dates, entities, relationships between entities, plot points, and task-related behavior.
- Developed by: See associated paper from Salesforce Research
- Model type: Transformer-based language model
- Language(s) (NLP): Primarily English, some German, Spanish, French
- License: BSD 3-Clause; also see Code of Conduct
- Related Models: More information needed
- Parent Model: More information needed
- Resources for more information:
- Associated paper
- GitHub repo
- Developer Model Card
- Blog post
# Uses
## Direct Use
The model is a language model. The model can be used for text generation.
## Downstream Use
In their model card, the developers write that the primary intended users are general audiences and NLP Researchers, and that the primary intended uses are:
> 1. Generating artificial text in collaboration with a human, including but not limited to:
> - Creative writing
> - Automating repetitive writing tasks
> - Formatting specific text types
> - Creating contextualized marketing materials
> 2. Improvement of other NLP applications through fine-tuning (on another task or other data, e.g. fine-tuning CTRL to learn new kinds of language like product descriptions)
> 3. Enhancement in the field of natural language understanding to push towards a better understanding of artificial text generation, including how to detect it and work toward control, understanding, and potentially combating potentially negative consequences of such models.
## Out-of-Scope Use
In their model card, the developers write:
> - CTRL should not be used for generating artificial text without collaboration with a human.
> - It should not be used to make normative or prescriptive claims.
> - This software should not be used to promote or profit from:
> - violence, hate, and division;
> - environmental destruction;
> - abuse of human rights; or
> - the destruction of people's physical and mental health.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
In their model card, the developers write:
> We recognize the potential for misuse or abuse, including use by bad actors who could manipulate the system to act maliciously and generate text to influence decision-making in political, economic, and social settings. False attribution could also harm individuals, organizations, or other entities. To address these concerns, the model was evaluated internally as well as externally by third parties, including the Partnership on AI, prior to release.
> To mitigate potential misuse to the extent possible, we stripped out all detectable training data from undesirable sources. We then redteamed the model and found that negative utterances were often placed in contexts that made them identifiable as such. For example, when using the ‘News’ control code, hate speech could be embedded as part of an apology (e.g. “the politician apologized for saying [insert hateful statement]”), implying that this type of speech was negative. By pre-selecting the available control codes (omitting, for example, Instagram and Twitter from the available domains), we are able to limit the potential for misuse.
> In releasing our model, we hope to put it into the hands of researchers and prosocial actors so that they can work to control, understand, and potentially combat the negative consequences of such models. We hope that research into detecting fake news and model-generated content of all kinds will be pushed forward by CTRL. It is our belief that these models should become a common tool so researchers can design methods to guard against malicious use and so the public becomes familiar with their existence and patterns of behavior.
See the associated paper for further discussions about the ethics of LLMs.
## Recommendations
In their model card, the developers write:
> - A recommendation to monitor and detect use will be implemented through the development of a model that will identify CTRLgenerated text.
> - A second recommendation to further screen the input into and output from the model will be implemented through the addition of a check in the CTRL interface to prohibit the insertion into the model of certain negative inputs, which will help control the output that can be generated.
> - The model is trained on a limited number of languages: primarily English and some German, Spanish, French. A recommendation for a future area of research is to train the model on more languages.
See the CTRL-detector GitHub repo for more on the detector model.
# Training
## Training Data
In their model card, the developers write:
> This model is trained on 140 GB of text drawn from a variety of domains: Wikipedia (English, German, Spanish, and French), Project Gutenberg, submissions from 45 subreddits, OpenWebText, a large collection of news data, Amazon Reviews, Europarl and UN data from WMT (En-De, En-Es, En-Fr), question-answer pairs (no context documents) from ELI5, and the MRQA shared task, which includes Stanford Question Answering Dataset, NewsQA, TriviaQA, SearchQA, HotpotQA, and Natural Questions. See the paper for the full list of training data.
## Training Procedure
### Preprocessing
In the associated paper the developers write:
> We learn BPE (Sennrich et al., 2015) codes and tokenize the data using fastBPE4, but we use a large vocabulary of roughly 250K tokens. This includes the sub-word tokens necessary to mitigate problems with rare words, but it also reduces the average number of tokens required to generate long text by including most common words. We use English Wikipedia and a 5% split of our collected OpenWebText data for learning BPE codes. We also introduce an unknown token so that during preprocessing we can filter out sequences that contain more than 2 unknown tokens. This, along with the compressed storage for efficient training (TFRecords) (Abadi et al., 2016), reduces our training data to 140 GB from the total 180 GB collected.
See the paper for links, references, and further details.
### Training
In the associated paper the developers write:
> CTRL has model dimension d = 1280, inner dimension f = 8192, 48 layers, and 16 heads per layer. Dropout with probability 0.1 follows the residual connections in each layer. Token embeddings were tied with the final output embedding layer (Inan et al., 2016; Press & Wolf, 2016).
See the paper for links, references, and further details.
# Evaluation
## Testing Data, Factors & Metrics
In their model card, the developers write that model performance measures are:
> Performance evaluated on qualitative judgments by humans as to whether the control codes lead to text generated in the desired domain
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). Details are pulled from the associated paper.
- Hardware Type: TPU v3 Pod
- Hours used: Approximately 336 hours (2 weeks)
- Cloud Provider: GCP
- Compute Region: More information needed
- Carbon Emitted: More information needed
# Technical Specifications
In the associated paper the developers write:
> CTRL was implemented in TensorFlow (Abadi et al., 2016) and trained with a global batch size of 1024 distributed across 256 cores of a Cloud TPU v3 Pod for 800k iterations. Training took approximately 2 weeks using Adagrad (Duchi et al., 2011) with a linear warmup from 0 to 0.05 over 25k steps. The norm of gradients were clipped to 0.25 as in (Merity et al., 2017). Learning rate decay was not necessary due to the monotonic nature of the Adagrad accumulator. We compared to the Adam optimizer (Kingma & Ba, 2014) while training smaller models, but we noticed comparable convergence rates and significant memory savings with Adagrad. We also experimented with explicit memory-saving optimizers including SM3 (Anil et al., 2019), Adafactor (Shazeer & Stern, 2018), and NovoGrad (Ginsburg et al., 2019) with mixed results.
See the paper for links, references, and further details.
BibTeX:
APA:
- Keskar, N. S., McCann, B., Varshney, L. R., Xiong, C., & Socher, R. (2019). Ctrl: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858.
# Model Card Authors
This model card was written by the team at Hugging Face, referencing the model card released by the developers.
# How to Get Started with the Model
Use the code below to get started with the model. See the Hugging Face ctrl docs for more information.
<details>
<summary> Click to expand </summary>
</details> | [
"# ctrl",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe CTRL model was proposed in CTRL: A Conditional Transformer Language Model for Controllable Generation by Nitish Shirish Keskar*, Bryan McCann*, Lav R. Varshney, Caiming Xiong and Richard Socher. It's a causal (unidirectional) transformer pre-trained using language modeling on a very large corpus of ~140 GB of text data with the first token reserved as a control code (such as Links, Books, Wikipedia etc.). The model developers released a model card for CTRL, available here.\n\nIn their model card, the developers write: \n\n> The CTRL Language Model analyzed in this card generates text conditioned on control codes that specify domain, style, topics, dates, entities, relationships between entities, plot points, and task-related behavior.\n\n- Developed by: See associated paper from Salesforce Research\n- Model type: Transformer-based language model\n- Language(s) (NLP): Primarily English, some German, Spanish, French\n- License: BSD 3-Clause; also see Code of Conduct\n- Related Models: More information needed\n - Parent Model: More information needed\n- Resources for more information: \n - Associated paper\n - GitHub repo\n - Developer Model Card\n - Blog post",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for text generation.",
"## Downstream Use\n\nIn their model card, the developers write that the primary intended users are general audiences and NLP Researchers, and that the primary intended uses are:\n\n> 1. Generating artificial text in collaboration with a human, including but not limited to:\n> - Creative writing\n> - Automating repetitive writing tasks\n> - Formatting specific text types\n> - Creating contextualized marketing materials\n> 2. Improvement of other NLP applications through fine-tuning (on another task or other data, e.g. fine-tuning CTRL to learn new kinds of language like product descriptions)\n> 3. Enhancement in the field of natural language understanding to push towards a better understanding of artificial text generation, including how to detect it and work toward control, understanding, and potentially combating potentially negative consequences of such models.",
"## Out-of-Scope Use\n\nIn their model card, the developers write: \n\n> - CTRL should not be used for generating artificial text without collaboration with a human.\n> - It should not be used to make normative or prescriptive claims.\n> - This software should not be used to promote or profit from:\n> - violence, hate, and division;\n> - environmental destruction;\n> - abuse of human rights; or\n> - the destruction of people's physical and mental health.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.\n\nIn their model card, the developers write: \n\n> We recognize the potential for misuse or abuse, including use by bad actors who could manipulate the system to act maliciously and generate text to influence decision-making in political, economic, and social settings. False attribution could also harm individuals, organizations, or other entities. To address these concerns, the model was evaluated internally as well as externally by third parties, including the Partnership on AI, prior to release.\n\n> To mitigate potential misuse to the extent possible, we stripped out all detectable training data from undesirable sources. We then redteamed the model and found that negative utterances were often placed in contexts that made them identifiable as such. For example, when using the ‘News’ control code, hate speech could be embedded as part of an apology (e.g. “the politician apologized for saying [insert hateful statement]”), implying that this type of speech was negative. By pre-selecting the available control codes (omitting, for example, Instagram and Twitter from the available domains), we are able to limit the potential for misuse.\n\n> In releasing our model, we hope to put it into the hands of researchers and prosocial actors so that they can work to control, understand, and potentially combat the negative consequences of such models. We hope that research into detecting fake news and model-generated content of all kinds will be pushed forward by CTRL. It is our belief that these models should become a common tool so researchers can design methods to guard against malicious use and so the public becomes familiar with their existence and patterns of behavior.\n\nSee the associated paper for further discussions about the ethics of LLMs.",
"## Recommendations\n\nIn their model card, the developers write: \n\n> - A recommendation to monitor and detect use will be implemented through the development of a model that will identify CTRLgenerated text.\n> - A second recommendation to further screen the input into and output from the model will be implemented through the addition of a check in the CTRL interface to prohibit the insertion into the model of certain negative inputs, which will help control the output that can be generated.\n> - The model is trained on a limited number of languages: primarily English and some German, Spanish, French. A recommendation for a future area of research is to train the model on more languages.\n\nSee the CTRL-detector GitHub repo for more on the detector model.",
"# Training",
"## Training Data\n\nIn their model card, the developers write: \n\n> This model is trained on 140 GB of text drawn from a variety of domains: Wikipedia (English, German, Spanish, and French), Project Gutenberg, submissions from 45 subreddits, OpenWebText, a large collection of news data, Amazon Reviews, Europarl and UN data from WMT (En-De, En-Es, En-Fr), question-answer pairs (no context documents) from ELI5, and the MRQA shared task, which includes Stanford Question Answering Dataset, NewsQA, TriviaQA, SearchQA, HotpotQA, and Natural Questions. See the paper for the full list of training data.",
"## Training Procedure",
"### Preprocessing\n\nIn the associated paper the developers write: \n\n> We learn BPE (Sennrich et al., 2015) codes and tokenize the data using fastBPE4, but we use a large vocabulary of roughly 250K tokens. This includes the sub-word tokens necessary to mitigate problems with rare words, but it also reduces the average number of tokens required to generate long text by including most common words. We use English Wikipedia and a 5% split of our collected OpenWebText data for learning BPE codes. We also introduce an unknown token so that during preprocessing we can filter out sequences that contain more than 2 unknown tokens. This, along with the compressed storage for efficient training (TFRecords) (Abadi et al., 2016), reduces our training data to 140 GB from the total 180 GB collected.\n\nSee the paper for links, references, and further details.",
"### Training\n\nIn the associated paper the developers write: \n\n> CTRL has model dimension d = 1280, inner dimension f = 8192, 48 layers, and 16 heads per layer. Dropout with probability 0.1 follows the residual connections in each layer. Token embeddings were tied with the final output embedding layer (Inan et al., 2016; Press & Wolf, 2016).\n\nSee the paper for links, references, and further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nIn their model card, the developers write that model performance measures are: \n\n> Performance evaluated on qualitative judgments by humans as to whether the control codes lead to text generated in the desired domain",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). Details are pulled from the associated paper.\n\n- Hardware Type: TPU v3 Pod\n- Hours used: Approximately 336 hours (2 weeks)\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nIn the associated paper the developers write: \n\n> CTRL was implemented in TensorFlow (Abadi et al., 2016) and trained with a global batch size of 1024 distributed across 256 cores of a Cloud TPU v3 Pod for 800k iterations. Training took approximately 2 weeks using Adagrad (Duchi et al., 2011) with a linear warmup from 0 to 0.05 over 25k steps. The norm of gradients were clipped to 0.25 as in (Merity et al., 2017). Learning rate decay was not necessary due to the monotonic nature of the Adagrad accumulator. We compared to the Adam optimizer (Kingma & Ba, 2014) while training smaller models, but we noticed comparable convergence rates and significant memory savings with Adagrad. We also experimented with explicit memory-saving optimizers including SM3 (Anil et al., 2019), Adafactor (Shazeer & Stern, 2018), and NovoGrad (Ginsburg et al., 2019) with mixed results.\n\nSee the paper for links, references, and further details.\n\nBibTeX:\n\n\n\nAPA:\n- Keskar, N. S., McCann, B., Varshney, L. R., Xiong, C., & Socher, R. (2019). Ctrl: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face, referencing the model card released by the developers.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. See the Hugging Face ctrl docs for more information.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
"TAGS\n#transformers #pytorch #tf #ctrl #text-generation #en #arxiv-1909.05858 #arxiv-1910.09700 #license-bsd-3-clause #endpoints_compatible #has_space #region-us \n",
"# ctrl",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe CTRL model was proposed in CTRL: A Conditional Transformer Language Model for Controllable Generation by Nitish Shirish Keskar*, Bryan McCann*, Lav R. Varshney, Caiming Xiong and Richard Socher. It's a causal (unidirectional) transformer pre-trained using language modeling on a very large corpus of ~140 GB of text data with the first token reserved as a control code (such as Links, Books, Wikipedia etc.). The model developers released a model card for CTRL, available here.\n\nIn their model card, the developers write: \n\n> The CTRL Language Model analyzed in this card generates text conditioned on control codes that specify domain, style, topics, dates, entities, relationships between entities, plot points, and task-related behavior.\n\n- Developed by: See associated paper from Salesforce Research\n- Model type: Transformer-based language model\n- Language(s) (NLP): Primarily English, some German, Spanish, French\n- License: BSD 3-Clause; also see Code of Conduct\n- Related Models: More information needed\n - Parent Model: More information needed\n- Resources for more information: \n - Associated paper\n - GitHub repo\n - Developer Model Card\n - Blog post",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for text generation.",
"## Downstream Use\n\nIn their model card, the developers write that the primary intended users are general audiences and NLP Researchers, and that the primary intended uses are:\n\n> 1. Generating artificial text in collaboration with a human, including but not limited to:\n> - Creative writing\n> - Automating repetitive writing tasks\n> - Formatting specific text types\n> - Creating contextualized marketing materials\n> 2. Improvement of other NLP applications through fine-tuning (on another task or other data, e.g. fine-tuning CTRL to learn new kinds of language like product descriptions)\n> 3. Enhancement in the field of natural language understanding to push towards a better understanding of artificial text generation, including how to detect it and work toward control, understanding, and potentially combating potentially negative consequences of such models.",
"## Out-of-Scope Use\n\nIn their model card, the developers write: \n\n> - CTRL should not be used for generating artificial text without collaboration with a human.\n> - It should not be used to make normative or prescriptive claims.\n> - This software should not be used to promote or profit from:\n> - violence, hate, and division;\n> - environmental destruction;\n> - abuse of human rights; or\n> - the destruction of people's physical and mental health.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.\n\nIn their model card, the developers write: \n\n> We recognize the potential for misuse or abuse, including use by bad actors who could manipulate the system to act maliciously and generate text to influence decision-making in political, economic, and social settings. False attribution could also harm individuals, organizations, or other entities. To address these concerns, the model was evaluated internally as well as externally by third parties, including the Partnership on AI, prior to release.\n\n> To mitigate potential misuse to the extent possible, we stripped out all detectable training data from undesirable sources. We then redteamed the model and found that negative utterances were often placed in contexts that made them identifiable as such. For example, when using the ‘News’ control code, hate speech could be embedded as part of an apology (e.g. “the politician apologized for saying [insert hateful statement]”), implying that this type of speech was negative. By pre-selecting the available control codes (omitting, for example, Instagram and Twitter from the available domains), we are able to limit the potential for misuse.\n\n> In releasing our model, we hope to put it into the hands of researchers and prosocial actors so that they can work to control, understand, and potentially combat the negative consequences of such models. We hope that research into detecting fake news and model-generated content of all kinds will be pushed forward by CTRL. It is our belief that these models should become a common tool so researchers can design methods to guard against malicious use and so the public becomes familiar with their existence and patterns of behavior.\n\nSee the associated paper for further discussions about the ethics of LLMs.",
"## Recommendations\n\nIn their model card, the developers write: \n\n> - A recommendation to monitor and detect use will be implemented through the development of a model that will identify CTRLgenerated text.\n> - A second recommendation to further screen the input into and output from the model will be implemented through the addition of a check in the CTRL interface to prohibit the insertion into the model of certain negative inputs, which will help control the output that can be generated.\n> - The model is trained on a limited number of languages: primarily English and some German, Spanish, French. A recommendation for a future area of research is to train the model on more languages.\n\nSee the CTRL-detector GitHub repo for more on the detector model.",
"# Training",
"## Training Data\n\nIn their model card, the developers write: \n\n> This model is trained on 140 GB of text drawn from a variety of domains: Wikipedia (English, German, Spanish, and French), Project Gutenberg, submissions from 45 subreddits, OpenWebText, a large collection of news data, Amazon Reviews, Europarl and UN data from WMT (En-De, En-Es, En-Fr), question-answer pairs (no context documents) from ELI5, and the MRQA shared task, which includes Stanford Question Answering Dataset, NewsQA, TriviaQA, SearchQA, HotpotQA, and Natural Questions. See the paper for the full list of training data.",
"## Training Procedure",
"### Preprocessing\n\nIn the associated paper the developers write: \n\n> We learn BPE (Sennrich et al., 2015) codes and tokenize the data using fastBPE4, but we use a large vocabulary of roughly 250K tokens. This includes the sub-word tokens necessary to mitigate problems with rare words, but it also reduces the average number of tokens required to generate long text by including most common words. We use English Wikipedia and a 5% split of our collected OpenWebText data for learning BPE codes. We also introduce an unknown token so that during preprocessing we can filter out sequences that contain more than 2 unknown tokens. This, along with the compressed storage for efficient training (TFRecords) (Abadi et al., 2016), reduces our training data to 140 GB from the total 180 GB collected.\n\nSee the paper for links, references, and further details.",
"### Training\n\nIn the associated paper the developers write: \n\n> CTRL has model dimension d = 1280, inner dimension f = 8192, 48 layers, and 16 heads per layer. Dropout with probability 0.1 follows the residual connections in each layer. Token embeddings were tied with the final output embedding layer (Inan et al., 2016; Press & Wolf, 2016).\n\nSee the paper for links, references, and further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nIn their model card, the developers write that model performance measures are: \n\n> Performance evaluated on qualitative judgments by humans as to whether the control codes lead to text generated in the desired domain",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). Details are pulled from the associated paper.\n\n- Hardware Type: TPU v3 Pod\n- Hours used: Approximately 336 hours (2 weeks)\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nIn the associated paper the developers write: \n\n> CTRL was implemented in TensorFlow (Abadi et al., 2016) and trained with a global batch size of 1024 distributed across 256 cores of a Cloud TPU v3 Pod for 800k iterations. Training took approximately 2 weeks using Adagrad (Duchi et al., 2011) with a linear warmup from 0 to 0.05 over 25k steps. The norm of gradients were clipped to 0.25 as in (Merity et al., 2017). Learning rate decay was not necessary due to the monotonic nature of the Adagrad accumulator. We compared to the Adam optimizer (Kingma & Ba, 2014) while training smaller models, but we noticed comparable convergence rates and significant memory savings with Adagrad. We also experimented with explicit memory-saving optimizers including SM3 (Anil et al., 2019), Adafactor (Shazeer & Stern, 2018), and NovoGrad (Ginsburg et al., 2019) with mixed results.\n\nSee the paper for links, references, and further details.\n\nBibTeX:\n\n\n\nAPA:\n- Keskar, N. S., McCann, B., Varshney, L. R., Xiong, C., & Socher, R. (2019). Ctrl: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face, referencing the model card released by the developers.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. See the Hugging Face ctrl docs for more information.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
65,
3,
51,
3,
281,
3,
19,
178,
103,
479,
168,
2,
155,
4,
209,
103,
3,
55,
84,
316,
29,
54
] | [
"passage: TAGS\n#transformers #pytorch #tf #ctrl #text-generation #en #arxiv-1909.05858 #arxiv-1910.09700 #license-bsd-3-clause #endpoints_compatible #has_space #region-us \n# ctrl# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model# Model Details## Model Description\n\nThe CTRL model was proposed in CTRL: A Conditional Transformer Language Model for Controllable Generation by Nitish Shirish Keskar*, Bryan McCann*, Lav R. Varshney, Caiming Xiong and Richard Socher. It's a causal (unidirectional) transformer pre-trained using language modeling on a very large corpus of ~140 GB of text data with the first token reserved as a control code (such as Links, Books, Wikipedia etc.). The model developers released a model card for CTRL, available here.\n\nIn their model card, the developers write: \n\n> The CTRL Language Model analyzed in this card generates text conditioned on control codes that specify domain, style, topics, dates, entities, relationships between entities, plot points, and task-related behavior.\n\n- Developed by: See associated paper from Salesforce Research\n- Model type: Transformer-based language model\n- Language(s) (NLP): Primarily English, some German, Spanish, French\n- License: BSD 3-Clause; also see Code of Conduct\n- Related Models: More information needed\n - Parent Model: More information needed\n- Resources for more information: \n - Associated paper\n - GitHub repo\n - Developer Model Card\n - Blog post# Uses## Direct Use\n\nThe model is a language model. The model can be used for text generation.",
"passage: ## Downstream Use\n\nIn their model card, the developers write that the primary intended users are general audiences and NLP Researchers, and that the primary intended uses are:\n\n> 1. Generating artificial text in collaboration with a human, including but not limited to:\n> - Creative writing\n> - Automating repetitive writing tasks\n> - Formatting specific text types\n> - Creating contextualized marketing materials\n> 2. Improvement of other NLP applications through fine-tuning (on another task or other data, e.g. fine-tuning CTRL to learn new kinds of language like product descriptions)\n> 3. Enhancement in the field of natural language understanding to push towards a better understanding of artificial text generation, including how to detect it and work toward control, understanding, and potentially combating potentially negative consequences of such models.## Out-of-Scope Use\n\nIn their model card, the developers write: \n\n> - CTRL should not be used for generating artificial text without collaboration with a human.\n> - It should not be used to make normative or prescriptive claims.\n> - This software should not be used to promote or profit from:\n> - violence, hate, and division;\n> - environmental destruction;\n> - abuse of human rights; or\n> - the destruction of people's physical and mental health.",
"passage: # Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.\n\nIn their model card, the developers write: \n\n> We recognize the potential for misuse or abuse, including use by bad actors who could manipulate the system to act maliciously and generate text to influence decision-making in political, economic, and social settings. False attribution could also harm individuals, organizations, or other entities. To address these concerns, the model was evaluated internally as well as externally by third parties, including the Partnership on AI, prior to release.\n\n> To mitigate potential misuse to the extent possible, we stripped out all detectable training data from undesirable sources. We then redteamed the model and found that negative utterances were often placed in contexts that made them identifiable as such. For example, when using the ‘News’ control code, hate speech could be embedded as part of an apology (e.g. “the politician apologized for saying [insert hateful statement]”), implying that this type of speech was negative. By pre-selecting the available control codes (omitting, for example, Instagram and Twitter from the available domains), we are able to limit the potential for misuse.\n\n> In releasing our model, we hope to put it into the hands of researchers and prosocial actors so that they can work to control, understand, and potentially combat the negative consequences of such models. We hope that research into detecting fake news and model-generated content of all kinds will be pushed forward by CTRL. It is our belief that these models should become a common tool so researchers can design methods to guard against malicious use and so the public becomes familiar with their existence and patterns of behavior.\n\nSee the associated paper for further discussions about the ethics of LLMs.## Recommendations\n\nIn their model card, the developers write: \n\n> - A recommendation to monitor and detect use will be implemented through the development of a model that will identify CTRLgenerated text.\n> - A second recommendation to further screen the input into and output from the model will be implemented through the addition of a check in the CTRL interface to prohibit the insertion into the model of certain negative inputs, which will help control the output that can be generated.\n> - The model is trained on a limited number of languages: primarily English and some German, Spanish, French. A recommendation for a future area of research is to train the model on more languages.\n\nSee the CTRL-detector GitHub repo for more on the detector model.# Training## Training Data\n\nIn their model card, the developers write: \n\n> This model is trained on 140 GB of text drawn from a variety of domains: Wikipedia (English, German, Spanish, and French), Project Gutenberg, submissions from 45 subreddits, OpenWebText, a large collection of news data, Amazon Reviews, Europarl and UN data from WMT (En-De, En-Es, En-Fr), question-answer pairs (no context documents) from ELI5, and the MRQA shared task, which includes Stanford Question Answering Dataset, NewsQA, TriviaQA, SearchQA, HotpotQA, and Natural Questions. See the paper for the full list of training data.## Training Procedure",
"passage: ### Preprocessing\n\nIn the associated paper the developers write: \n\n> We learn BPE (Sennrich et al., 2015) codes and tokenize the data using fastBPE4, but we use a large vocabulary of roughly 250K tokens. This includes the sub-word tokens necessary to mitigate problems with rare words, but it also reduces the average number of tokens required to generate long text by including most common words. We use English Wikipedia and a 5% split of our collected OpenWebText data for learning BPE codes. We also introduce an unknown token so that during preprocessing we can filter out sequences that contain more than 2 unknown tokens. This, along with the compressed storage for efficient training (TFRecords) (Abadi et al., 2016), reduces our training data to 140 GB from the total 180 GB collected.\n\nSee the paper for links, references, and further details.### Training\n\nIn the associated paper the developers write: \n\n> CTRL has model dimension d = 1280, inner dimension f = 8192, 48 layers, and 16 heads per layer. Dropout with probability 0.1 follows the residual connections in each layer. Token embeddings were tied with the final output embedding layer (Inan et al., 2016; Press & Wolf, 2016).\n\nSee the paper for links, references, and further details.# Evaluation## Testing Data, Factors & Metrics\n\nIn their model card, the developers write that model performance measures are: \n\n> Performance evaluated on qualitative judgments by humans as to whether the control codes lead to text generated in the desired domain# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). Details are pulled from the associated paper.\n\n- Hardware Type: TPU v3 Pod\n- Hours used: Approximately 336 hours (2 weeks)\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed"
] | [
-0.0603179894387722,
0.11498821526765823,
-0.0019649225287139416,
0.04084644466638565,
0.07586663961410522,
-0.01892126351594925,
0.07374977320432663,
0.05356953665614128,
0.011975925415754318,
0.052783891558647156,
0.05774613469839096,
0.03324004262685776,
0.050822071731090546,
0.07540925592184067,
0.004513033200055361,
-0.14871568977832794,
0.05299123376607895,
-0.021133501082658768,
0.05566359683871269,
0.0977054312825203,
0.08110766112804413,
-0.05083071440458298,
0.0821952223777771,
0.01204790361225605,
-0.09001711755990982,
-0.05535141006112099,
0.011799984611570835,
-0.0010067243129014969,
0.08657415956258774,
0.06365850567817688,
0.0787758082151413,
0.023853490129113197,
0.03045617789030075,
-0.16598066687583923,
0.029312515631318092,
0.07547697424888611,
-0.024259328842163086,
0.033853769302368164,
0.02565101720392704,
0.005775094032287598,
0.18721742928028107,
-0.05029517412185669,
0.04322204366326332,
0.061547841876745224,
-0.10081695020198822,
-0.12226759642362595,
-0.07134617865085602,
0.030783291906118393,
0.07716484367847443,
0.0795886442065239,
-0.021590042859315872,
0.15277615189552307,
-0.007934749126434326,
0.048786841332912445,
0.06762704998254776,
-0.09182170778512955,
-0.01780623570084572,
0.014588459394872189,
0.027222398668527603,
0.0694727674126625,
-0.013815570622682571,
0.029948638752102852,
0.05870120972394943,
0.018255876377224922,
0.029890472069382668,
-0.05537696182727814,
0.09854869544506073,
-0.040538690984249115,
-0.14333461225032806,
-0.050910599529743195,
0.19702157378196716,
0.0009098602458834648,
-0.07616110146045685,
-0.14050602912902832,
-0.05936258286237717,
0.06170085817575455,
0.06849376857280731,
-0.034661225974559784,
-0.002666150452569127,
-0.002248532371595502,
0.12727530300617218,
-0.03311021625995636,
-0.09043659269809723,
-0.011490744538605213,
0.01589594967663288,
0.08256553113460541,
0.007990024983882904,
0.03270968049764633,
-0.04575164616107941,
0.05314261466264725,
0.026715924963355064,
-0.049886010587215424,
-0.07558546215295792,
-0.07994634658098221,
-0.02172032929956913,
0.0032706046476960182,
-0.0552741140127182,
-0.05775978043675423,
0.011892972514033318,
0.05834490805864334,
-0.036626119166612625,
0.030910922214388847,
0.0006392635405063629,
0.04648258537054062,
0.11387832462787628,
0.04483862966299057,
-0.016789287328720093,
0.038158614188432693,
0.03655571863055229,
0.041200000792741776,
0.0752292275428772,
-0.0479990690946579,
-0.06081787124276161,
0.015790030360221863,
-0.02993791550397873,
0.0722959116101265,
0.027834158390760422,
0.06424003094434738,
-0.04804597049951553,
-0.0310341976583004,
0.12994110584259033,
-0.08427860587835312,
-0.037708014249801636,
0.023481663316488266,
0.005723534617573023,
0.018933651968836784,
0.050373680889606476,
-0.03276761993765831,
-0.055911533534526825,
0.00836191140115261,
-0.040104180574417114,
-0.037549376487731934,
-0.12684637308120728,
-0.10237680375576019,
0.03837646543979645,
0.005014821421355009,
-0.022446608170866966,
-0.11953812837600708,
-0.1320929229259491,
-0.07038192451000214,
0.041261833161115646,
0.01663762331008911,
-0.014857864007353783,
-0.007650367915630341,
-0.01703616790473461,
-0.037842586636543274,
-0.011372357606887817,
-0.1451634019613266,
-0.01893981732428074,
0.028051123023033142,
-0.07126659154891968,
0.047195419669151306,
-0.06026823818683624,
0.010501399636268616,
-0.07890752702951431,
0.05103626474738121,
-0.12541921436786652,
0.06337223201990128,
-0.018674388527870178,
0.02014988288283348,
-0.03314798325300217,
-0.031798943877220154,
-0.01934002712368965,
0.0876607745885849,
-0.011949896812438965,
0.11557621508836746,
-0.19416359066963196,
-0.01915150322020054,
0.08066457509994507,
-0.18248963356018066,
-0.056655220687389374,
0.08741971850395203,
-0.06483059376478195,
0.15087991952896118,
0.09996499866247177,
0.11003946512937546,
0.07039600610733032,
-0.03417230024933815,
-0.033549364656209946,
-0.023582257330417633,
-0.10147717595100403,
0.06824511289596558,
0.02378150448203087,
0.0017726491205394268,
-0.052362266927957535,
-0.008017504587769508,
-0.0592014379799366,
-0.04376786947250366,
0.023933393880724907,
-0.04124408960342407,
0.023314284160733223,
-0.03459296002984047,
0.04284987598657608,
-0.012258214876055717,
-0.08871844410896301,
0.016773372888565063,
-0.0664292648434639,
0.019385945051908493,
0.09071293473243713,
-0.06552451103925705,
0.017623363062739372,
-0.09459885209798813,
0.026422742754220963,
-0.014026050455868244,
0.01231318712234497,
-0.1573292464017868,
-0.08141916990280151,
0.022092074155807495,
-0.17228710651397705,
0.09173644334077835,
0.14339947700500488,
-0.00387115147896111,
0.035376764833927155,
0.005535876844078302,
0.0004190276376903057,
-0.01457466185092926,
-0.0071433717384934425,
-0.01596088334918022,
-0.1389811635017395,
0.032704878598451614,
-0.05428355932235718,
0.07168135046958923,
-0.15122468769550323,
0.04241936653852463,
0.09144816547632217,
-0.02085966430604458,
0.0036666083615273237,
-0.014398409053683281,
0.041005171835422516,
0.01034129410982132,
-0.018816431984305382,
-0.019516538828611374,
0.05646335706114769,
0.004165383521467447,
-0.10940907895565033,
0.06144469231367111,
-0.19954338669776917,
-0.06003793701529503,
0.058231331408023834,
-0.03065604716539383,
-0.1064404621720314,
-0.007483313791453838,
-0.013824064284563065,
0.0013272128999233246,
-0.008427418768405914,
-0.034949399530887604,
0.19768044352531433,
-0.01605907455086708,
0.018936503678560257,
-0.11786837875843048,
-0.06988421082496643,
0.002769339829683304,
-0.026958566159009933,
-0.018304606899619102,
0.05143092945218086,
0.10540211945772171,
-0.13753031194210052,
0.038148004561662674,
0.05555642396211624,
-0.012375939637422562,
0.17701628804206848,
0.025626614689826965,
-0.05384322255849838,
-0.0185001902282238,
0.04052159935235977,
0.002672250848263502,
0.09938392043113708,
0.00827828049659729,
0.001738972496241331,
0.021265219897031784,
0.009549601934850216,
0.04093572124838829,
-0.09737598896026611,
0.022091617807745934,
0.015008321031928062,
0.0065518394112586975,
-0.1298050582408905,
-0.008697197772562504,
-0.05319834128022194,
0.07764945179224014,
-0.0004306104965507984,
0.02898045815527439,
0.03387271240353584,
-0.0363151952624321,
-0.1534375101327896,
0.13426123559474945,
-0.0994643121957779,
-0.271453320980072,
-0.09233346581459045,
0.10875889658927917,
-0.021983487531542778,
0.010202210396528244,
0.02697840705513954,
-0.1005033627152443,
-0.08447296917438507,
-0.08804729580879211,
-0.004953309893608093,
-0.027284277603030205,
-0.07095527648925781,
0.02372818812727928,
-0.0061911181546747684,
-0.004073027055710554,
-0.11550985276699066,
0.011426683515310287,
-0.024543987587094307,
-0.033724043518304825,
0.02540631964802742,
-0.014606557786464691,
0.10789923369884491,
0.1590350866317749,
0.016099151223897934,
-0.04193073511123657,
-0.027004066854715347,
0.15349024534225464,
-0.08643989264965057,
0.06589624285697937,
0.18156322836875916,
-0.1332557052373886,
0.06877883523702621,
0.13128870725631714,
0.002898599486798048,
-0.080699123442173,
0.03753368556499481,
0.008974405936896801,
-0.06705697625875473,
-0.19635428488254547,
-0.05205174535512924,
-0.04788780212402344,
-0.01194120291620493,
-0.014335546642541885,
0.038065873086452484,
0.03638617321848869,
0.049476779997348785,
-0.054861679673194885,
-0.03451494127511978,
0.07219801098108292,
0.10317586362361908,
0.09475591778755188,
-0.02407998964190483,
0.041749052703380585,
-0.06271792948246002,
-0.008133601397275925,
0.09733687341213226,
-0.04372316226363182,
0.24454985558986664,
-0.005821791477501392,
0.16297516226768494,
0.10275672376155853,
0.001001880969852209,
0.059347935020923615,
0.0382009856402874,
-0.06318502128124237,
0.045997440814971924,
-0.06573759019374847,
-0.050531014800071716,
-0.07579977065324783,
0.07782621681690216,
-0.05923374742269516,
-0.031908437609672546,
-0.0016032308340072632,
0.02128622494637966,
0.062473177909851074,
0.07929977774620056,
-0.00715753436088562,
-0.1220134049654007,
-0.053886547684669495,
0.026239842176437378,
0.004744870122522116,
-0.08733943849802017,
0.03920947387814522,
0.10826516896486282,
-0.0742398202419281,
0.06300263106822968,
-0.024450015276670456,
0.06172966957092285,
-0.1383821666240692,
0.03204357624053955,
-0.01682339236140251,
0.023356270045042038,
-0.01358853466808796,
0.05656775087118149,
-0.13683198392391205,
0.1190592423081398,
0.030477602034807205,
0.03827149420976639,
-0.08320961892604828,
0.009131157770752907,
-0.0034860880114138126,
0.05802949517965317,
0.10637272894382477,
0.022253233939409256,
-0.10220979154109955,
-0.023771341890096664,
-0.010960733518004417,
0.04142441973090172,
0.07591504603624344,
-0.03229350596666336,
0.056230202317237854,
-0.016465164721012115,
0.025996442884206772,
-0.021119285374879837,
-0.13576757907867432,
-0.09987203031778336,
-0.15808354318141937,
0.07519473880529404,
-0.043465506285429,
0.013890465721487999,
-0.04340355843305588,
0.004092322196811438,
0.06259097903966904,
0.12687397003173828,
-0.18679356575012207,
-0.08462825417518616,
-0.10600095987319946,
-0.10388745367527008,
0.017581630498170853,
-0.04591723531484604,
0.04703273996710777,
0.014238664880394936,
0.10950788855552673,
-0.06591300666332245,
-0.06371615827083588,
0.04698212072253227,
-0.07166735827922821,
-0.14347214996814728,
-0.05835821479558945,
0.07441889494657516,
0.12899558246135712,
0.03832358494400978,
0.01122953649610281,
0.0061322106048464775,
-0.016838766634464264,
-0.13938495516777039,
-0.016316860914230347,
0.14260144531726837,
-0.007047813385725021,
0.010940143838524818,
-0.04288112744688988,
-0.027597928419709206,
-0.07284888625144958,
-0.06163346767425537,
0.024285465478897095,
0.16927489638328552,
-0.030120160430669785,
0.11631156504154205,
0.22614583373069763,
-0.09227940440177917,
-0.21434973180294037,
0.033119019120931625,
-0.0030434327200055122,
-0.01927216723561287,
0.04481371119618416,
-0.14996056258678436,
0.0006668940186500549,
-0.01474860031157732,
0.015051381662487984,
0.06467851996421814,
-0.11358539760112762,
-0.09014733135700226,
0.05166485160589218,
0.06821846961975098,
0.1496981531381607,
-0.053725603967905045,
-0.018375512212514877,
-0.04258238524198532,
-0.07320500165224075,
0.11465319246053696,
-0.12193746864795685,
0.022134024649858475,
0.024687450379133224,
0.07353267073631287,
0.011883413419127464,
-0.03699631616473198,
0.10666801780462265,
-0.012436979450285435,
0.11080148071050644,
-0.08152692764997482,
-0.07744938880205154,
0.019828766584396362,
-0.04799887537956238,
0.09774740040302277,
-0.006502347532659769,
0.022487051784992218,
-0.04517247527837753,
-0.07286559790372849,
-0.05306548625230789,
0.03919309377670288,
-0.04828941076993942,
-0.07409435510635376,
-0.0781271830201149,
0.052277810871601105,
0.04050646722316742,
-0.015664778649806976,
-0.07102088630199432,
-0.10805923491716385,
-0.0361357219517231,
0.10140424221754074,
0.26157787442207336,
0.056519944220781326,
-0.02792729064822197,
0.01973772794008255,
-0.02282833121716976,
0.09183772653341293,
-0.1287534534931183,
0.0015073837712407112,
0.0692296102643013,
-0.017793696373701096,
0.07400389760732651,
0.015763141214847565,
-0.10524848103523254,
0.026613138616085052,
0.028957370668649673,
-0.10310864448547363,
-0.1532973200082779,
-0.006266308482736349,
-0.0038538926746696234,
-0.09579165279865265,
-0.007552500814199448,
0.11332624405622482,
-0.05365370213985443,
0.0112396739423275,
0.0022797449491918087,
0.05054020136594772,
0.018710322678089142,
-0.006685419008135796,
0.03184513747692108,
0.012915251776576042,
-0.06115257740020752,
0.038476016372442245,
0.02959432080388069,
-0.06736055016517639,
0.06319239735603333,
0.043134044855833054,
-0.10145947337150574,
-0.06945759057998657,
-0.06762607395648956,
0.12725858390331268,
-0.0569172203540802,
-0.0916304737329483,
-0.024001970887184143,
-0.10154593735933304,
-0.01988448016345501,
0.1943967640399933,
0.012717824429273605,
0.03814113140106201,
-0.020797323435544968,
0.021504104137420654,
-0.06047891825437546,
0.050167836248874664,
0.0061853202059865,
-0.009233435615897179,
-0.05862347036600113,
0.06194736436009407,
0.04587841033935547,
0.009047836065292358,
-0.02843571826815605,
-0.020884167402982712,
-0.08676539361476898,
-0.01261590700596571,
-0.09913687407970428,
0.02034820429980755,
-0.010195326060056686,
0.03571555018424988,
0.021758323535323143,
0.026581330224871635,
-0.015693072229623795,
0.02691761404275894,
-0.05243651568889618,
0.02361336722970009,
0.02995641529560089,
0.029972396790981293,
-0.08647114038467407,
0.010619943961501122,
0.0568273700773716,
-0.043166764080524445,
0.08463285863399506,
-0.041820503771305084,
-0.06259140372276306,
0.04451572149991989,
-0.11620382964611053,
0.06537976861000061,
0.016969040036201477,
0.035363439470529556,
-0.028343385085463524,
-0.086158387362957,
-0.010489490814507008,
0.008490895852446556,
-0.056896328926086426,
-0.006895204074680805,
0.0436098538339138,
-0.046938057988882065,
0.11921585351228714,
0.05169045925140381,
-0.06358090043067932,
-0.05755294859409332,
0.006770106963813305,
0.034520916640758514,
0.038663942366838455,
0.11421710252761841,
-0.022745277732610703,
0.029987463727593422,
-0.11373735964298248,
-0.01069755107164383,
0.07105817645788193,
0.010719901882112026,
-0.06562376022338867,
-0.0720180794596672,
0.03306279331445694,
-0.036621905863285065,
0.16402876377105713,
-0.04097602516412735,
-0.03299391642212868,
0.030577490106225014,
0.005208338610827923,
-0.0899040549993515,
-0.009824909269809723,
-0.06754555553197861,
-0.03418194130063057,
0.01950341835618019,
-0.07045677304267883,
-0.022318163886666298,
-0.023466844111680984,
-0.12106814980506897,
0.1625935584306717,
0.036240577697753906,
0.12137256562709808,
0.05536375194787979,
0.007187392096966505,
-0.013774674385786057,
-0.038106054067611694,
0.053569115698337555,
-0.004124362021684647,
0.02781495824456215,
-0.04599376022815704,
0.060508377850055695,
0.1887657344341278,
-0.028039518743753433,
0.05444446578621864,
-0.013793636113405228,
-0.04865740239620209,
-0.11352251470088959,
-0.19876478612422943,
-0.018858758732676506,
-0.02662053145468235,
-0.005348882172256708,
-0.06818189471960068,
0.015598682686686516,
0.008640343323349953,
0.0008937155362218618,
-0.052146442234516144,
0.0950104147195816,
-0.019798574969172478,
-0.05672871321439743,
0.011381121352314949,
-0.010647797025740147,
0.04105694591999054,
0.022545358166098595,
0.015410805121064186,
0.026977574452757835,
0.01201858650892973,
0.07142233103513718,
0.07814791798591614,
0.02925105206668377,
-0.0038614668883383274,
-0.040910061448812485,
-0.06687872111797333,
-0.017092742025852203,
0.03216668963432312,
0.012137489393353462,
0.16438131034374237,
0.049166928976774216,
-0.04470154270529747,
0.031545210629701614,
0.03102269396185875,
-0.006734228692948818,
-0.04177934303879738,
-0.10020626336336136,
0.1582302749156952,
-0.051035962998867035,
0.004459819756448269,
-0.0018836939707398415,
-0.08599197864532471,
0.05160076916217804,
0.16327600181102753,
0.11292871832847595,
-0.0632719174027443,
-0.0033923687878996134,
-0.0638897493481636,
0.03365694358944893,
-0.003121059387922287,
0.09388619661331177,
-0.005699177738279104,
0.2838186025619507,
-0.039654672145843506,
0.04353838786482811,
-0.03254503756761551,
0.03358978405594826,
0.01727478578686714,
0.06565672159194946,
0.008129880763590336,
-0.01328258402645588,
-0.06163429468870163,
0.06967362016439438,
-0.03514374792575836,
-0.17905402183532715,
-0.009311548434197903,
-0.0067876349203288555,
-0.010469159111380577,
0.02993425913155079,
0.017528720200061798,
-0.04596278816461563,
0.04752890020608902,
-0.01769193634390831,
-0.05136957764625549,
0.15343548357486725,
0.010120188817381859,
-0.11461115628480911,
-0.009171681478619576,
0.08596158027648926,
-0.010221706703305244,
0.1424170434474945,
0.018442464992403984,
0.1097838282585144,
0.06551280617713928,
-0.015779301524162292,
-0.07685790210962296,
0.08651292324066162,
0.009906059131026268,
-0.05138915032148361,
-0.010727771557867527,
0.08279357105493546,
-0.015288050286471844,
0.12733978033065796,
0.0726943165063858,
-0.015456264838576317,
0.06881245225667953,
-0.010507635772228241,
-0.040104761719703674,
-0.06380197405815125,
0.08764594048261642,
-0.09014396369457245,
0.13306832313537598,
0.10106559097766876,
0.01430993340909481,
-0.006367357447743416,
-0.029487421736121178,
0.020892079919576645,
-0.027800876647233963,
0.05356770008802414,
0.024354606866836548,
-0.06775429844856262,
0.007730843499302864,
0.040680207312107086,
0.05859248712658882,
-0.16119934618473053,
-0.04011257737874985,
-0.004601060412824154,
-0.004245872143656015,
-0.03507445752620697,
0.04026525840163231,
0.012844698503613472,
0.017956476658582687,
-0.04129384830594063,
0.03453037142753601,
0.022337468340992928,
0.05990592762827873,
-0.0437057688832283,
-0.049704067409038544
] |
null | null | transformers |
# DistilBERT base cased distilled SQuAD
## Table of Contents
- [Model Details](#model-details)
- [How To Get Started With the Model](#how-to-get-started-with-the-model)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation)
- [Environmental Impact](#environmental-impact)
- [Technical Specifications](#technical-specifications)
- [Citation Information](#citation-information)
- [Model Card Authors](#model-card-authors)
## Model Details
**Model Description:** The DistilBERT model was proposed in the blog post [Smaller, faster, cheaper, lighter: Introducing DistilBERT, adistilled version of BERT](https://medium.com/huggingface/distilbert-8cf3380435b5), and the paper [DistilBERT, adistilled version of BERT: smaller, faster, cheaper and lighter](https://arxiv.org/abs/1910.01108). DistilBERT is a small, fast, cheap and light Transformer model trained by distilling BERT base. It has 40% less parameters than *bert-base-uncased*, runs 60% faster while preserving over 95% of BERT's performances as measured on the GLUE language understanding benchmark.
This model is a fine-tune checkpoint of [DistilBERT-base-cased](https://huggingface.co/distilbert-base-cased), fine-tuned using (a second step of) knowledge distillation on [SQuAD v1.1](https://huggingface.co/datasets/squad).
- **Developed by:** Hugging Face
- **Model Type:** Transformer-based language model
- **Language(s):** English
- **License:** Apache 2.0
- **Related Models:** [DistilBERT-base-cased](https://huggingface.co/distilbert-base-cased)
- **Resources for more information:**
- See [this repository](https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation) for more about Distil\* (a class of compressed models including this model)
- See [Sanh et al. (2019)](https://arxiv.org/abs/1910.01108) for more information about knowledge distillation and the training procedure
## How to Get Started with the Model
Use the code below to get started with the model.
```python
>>> from transformers import pipeline
>>> question_answerer = pipeline("question-answering", model='distilbert-base-cased-distilled-squad')
>>> context = r"""
... Extractive Question Answering is the task of extracting an answer from a text given a question. An example of a
... question answering dataset is the SQuAD dataset, which is entirely based on that task. If you would like to fine-tune
... a model on a SQuAD task, you may leverage the examples/pytorch/question-answering/run_squad.py script.
... """
>>> result = question_answerer(question="What is a good example of a question answering dataset?", context=context)
>>> print(
... f"Answer: '{result['answer']}', score: {round(result['score'], 4)}, start: {result['start']}, end: {result['end']}"
...)
Answer: 'SQuAD dataset', score: 0.5152, start: 147, end: 160
```
Here is how to use this model in PyTorch:
```python
from transformers import DistilBertTokenizer, DistilBertModel
import torch
tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-cased-distilled-squad')
model = DistilBertModel.from_pretrained('distilbert-base-cased-distilled-squad')
question, text = "Who was Jim Henson?", "Jim Henson was a nice puppet"
inputs = tokenizer(question, text, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
print(outputs)
```
And in TensorFlow:
```python
from transformers import DistilBertTokenizer, TFDistilBertForQuestionAnswering
import tensorflow as tf
tokenizer = DistilBertTokenizer.from_pretrained("distilbert-base-cased-distilled-squad")
model = TFDistilBertForQuestionAnswering.from_pretrained("distilbert-base-cased-distilled-squad")
question, text = "Who was Jim Henson?", "Jim Henson was a nice puppet"
inputs = tokenizer(question, text, return_tensors="tf")
outputs = model(**inputs)
answer_start_index = int(tf.math.argmax(outputs.start_logits, axis=-1)[0])
answer_end_index = int(tf.math.argmax(outputs.end_logits, axis=-1)[0])
predict_answer_tokens = inputs.input_ids[0, answer_start_index : answer_end_index + 1]
tokenizer.decode(predict_answer_tokens)
```
## Uses
This model can be used for question answering.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
```python
>>> from transformers import pipeline
>>> question_answerer = pipeline("question-answering", model='distilbert-base-cased-distilled-squad')
>>> context = r"""
... Alice is sitting on the bench. Bob is sitting next to her.
... """
>>> result = question_answerer(question="Who is the CEO?", context=context)
>>> print(
... f"Answer: '{result['answer']}', score: {round(result['score'], 4)}, start: {result['start']}, end: {result['end']}"
...)
Answer: 'Bob', score: 0.7527, start: 32, end: 35
```
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
## Training
#### Training Data
The [distilbert-base-cased model](https://huggingface.co/distilbert-base-cased) was trained using the same data as the [distilbert-base-uncased model](https://huggingface.co/distilbert-base-uncased). The [distilbert-base-uncased model](https://huggingface.co/distilbert-base-uncased) model describes it's training data as:
> DistilBERT pretrained on the same data as BERT, which is [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038 unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and headers).
To learn more about the SQuAD v1.1 dataset, see the [SQuAD v1.1 data card](https://huggingface.co/datasets/squad).
#### Training Procedure
##### Preprocessing
See the [distilbert-base-cased model card](https://huggingface.co/distilbert-base-cased) for further details.
##### Pretraining
See the [distilbert-base-cased model card](https://huggingface.co/distilbert-base-cased) for further details.
## Evaluation
As discussed in the [model repository](https://github.com/huggingface/transformers/blob/main/examples/research_projects/distillation/README.md)
> This model reaches a F1 score of 87.1 on the [SQuAD v1.1] dev set (for comparison, BERT bert-base-cased version reaches a F1 score of 88.7).
## Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). We present the hardware type and hours used based on the [associated paper](https://arxiv.org/pdf/1910.01108.pdf). Note that these details are just for training DistilBERT, not including the fine-tuning with SQuAD.
- **Hardware Type:** 8 16GB V100 GPUs
- **Hours used:** 90 hours
- **Cloud Provider:** Unknown
- **Compute Region:** Unknown
- **Carbon Emitted:** Unknown
## Technical Specifications
See the [associated paper](https://arxiv.org/abs/1910.01108) for details on the modeling architecture, objective, compute infrastructure, and training details.
## Citation Information
```bibtex
@inproceedings{sanh2019distilbert,
title={DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter},
author={Sanh, Victor and Debut, Lysandre and Chaumond, Julien and Wolf, Thomas},
booktitle={NeurIPS EMC^2 Workshop},
year={2019}
}
```
APA:
- Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.
## Model Card Authors
This model card was written by the Hugging Face team.
| {"language": "en", "license": "apache-2.0", "datasets": ["squad"], "metrics": ["squad"], "model-index": [{"name": "distilbert-base-cased-distilled-squad", "results": [{"task": {"type": "question-answering", "name": "Question Answering"}, "dataset": {"name": "squad", "type": "squad", "config": "plain_text", "split": "validation"}, "metrics": [{"type": "exact_match", "value": 79.5998, "name": "Exact Match", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZTViZDA2Y2E2NjUyMjNjYjkzNTUzODc5OTk2OTNkYjQxMDRmMDhlYjdmYWJjYWQ2N2RlNzY1YmI3OWY1NmRhOSIsInZlcnNpb24iOjF9.ZJHhboAMwsi3pqU-B-XKRCYP_tzpCRb8pEjGr2Oc-TteZeoWHI8CXcpDxugfC3f7d_oBcKWLzh3CClQxBW1iAQ"}, {"type": "f1", "value": 86.9965, "name": "F1", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZWZlMzY2MmE1NDNhOGNjNWRmODg0YjQ2Zjk5MjUzZDQ2MDYxOTBlMTNhNzQ4NTA2NjRmNDU3MGIzMTYwMmUyOSIsInZlcnNpb24iOjF9.z0ZDir87aT7UEmUeDm8Uw0oUdAqzlBz343gwnsQP3YLfGsaHe-jGlhco0Z7ISUd9NokyCiJCRc4NNxJQ83IuCw"}]}]}]} | question-answering | distilbert/distilbert-base-cased-distilled-squad | [
"transformers",
"pytorch",
"tf",
"rust",
"safetensors",
"openvino",
"distilbert",
"question-answering",
"en",
"dataset:squad",
"arxiv:1910.01108",
"arxiv:1910.09700",
"license:apache-2.0",
"model-index",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1910.01108",
"1910.09700"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #rust #safetensors #openvino #distilbert #question-answering #en #dataset-squad #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #model-index #endpoints_compatible #has_space #region-us
|
# DistilBERT base cased distilled SQuAD
## Table of Contents
- Model Details
- How To Get Started With the Model
- Uses
- Risks, Limitations and Biases
- Training
- Evaluation
- Environmental Impact
- Technical Specifications
- Citation Information
- Model Card Authors
## Model Details
Model Description: The DistilBERT model was proposed in the blog post Smaller, faster, cheaper, lighter: Introducing DistilBERT, adistilled version of BERT, and the paper DistilBERT, adistilled version of BERT: smaller, faster, cheaper and lighter. DistilBERT is a small, fast, cheap and light Transformer model trained by distilling BERT base. It has 40% less parameters than *bert-base-uncased*, runs 60% faster while preserving over 95% of BERT's performances as measured on the GLUE language understanding benchmark.
This model is a fine-tune checkpoint of DistilBERT-base-cased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1.
- Developed by: Hugging Face
- Model Type: Transformer-based language model
- Language(s): English
- License: Apache 2.0
- Related Models: DistilBERT-base-cased
- Resources for more information:
- See this repository for more about Distil\* (a class of compressed models including this model)
- See Sanh et al. (2019) for more information about knowledge distillation and the training procedure
## How to Get Started with the Model
Use the code below to get started with the model.
Here is how to use this model in PyTorch:
And in TensorFlow:
## Uses
This model can be used for question answering.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
## Risks, Limitations and Biases
CONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
## Training
#### Training Data
The distilbert-base-cased model was trained using the same data as the distilbert-base-uncased model. The distilbert-base-uncased model model describes it's training data as:
> DistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset consisting of 11,038 unpublished books and English Wikipedia (excluding lists, tables and headers).
To learn more about the SQuAD v1.1 dataset, see the SQuAD v1.1 data card.
#### Training Procedure
##### Preprocessing
See the distilbert-base-cased model card for further details.
##### Pretraining
See the distilbert-base-cased model card for further details.
## Evaluation
As discussed in the model repository
> This model reaches a F1 score of 87.1 on the [SQuAD v1.1] dev set (for comparison, BERT bert-base-cased version reaches a F1 score of 88.7).
## Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type and hours used based on the associated paper. Note that these details are just for training DistilBERT, not including the fine-tuning with SQuAD.
- Hardware Type: 8 16GB V100 GPUs
- Hours used: 90 hours
- Cloud Provider: Unknown
- Compute Region: Unknown
- Carbon Emitted: Unknown
## Technical Specifications
See the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.
APA:
- Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.
## Model Card Authors
This model card was written by the Hugging Face team.
| [
"# DistilBERT base cased distilled SQuAD",
"## Table of Contents\n- Model Details\n- How To Get Started With the Model\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors",
"## Model Details\n\nModel Description: The DistilBERT model was proposed in the blog post Smaller, faster, cheaper, lighter: Introducing DistilBERT, adistilled version of BERT, and the paper DistilBERT, adistilled version of BERT: smaller, faster, cheaper and lighter. DistilBERT is a small, fast, cheap and light Transformer model trained by distilling BERT base. It has 40% less parameters than *bert-base-uncased*, runs 60% faster while preserving over 95% of BERT's performances as measured on the GLUE language understanding benchmark.\n\nThis model is a fine-tune checkpoint of DistilBERT-base-cased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. \n\n- Developed by: Hugging Face\n- Model Type: Transformer-based language model\n- Language(s): English \n- License: Apache 2.0\n- Related Models: DistilBERT-base-cased\n- Resources for more information:\n - See this repository for more about Distil\\* (a class of compressed models including this model)\n - See Sanh et al. (2019) for more information about knowledge distillation and the training procedure",
"## How to Get Started with the Model \n\nUse the code below to get started with the model. \n\n\n\nHere is how to use this model in PyTorch:\n\n\n\nAnd in TensorFlow:",
"## Uses\n\nThis model can be used for question answering.",
"#### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.",
"## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\n\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"## Training",
"#### Training Data\n\nThe distilbert-base-cased model was trained using the same data as the distilbert-base-uncased model. The distilbert-base-uncased model model describes it's training data as: \n\n> DistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset consisting of 11,038 unpublished books and English Wikipedia (excluding lists, tables and headers).\n\nTo learn more about the SQuAD v1.1 dataset, see the SQuAD v1.1 data card.",
"#### Training Procedure",
"##### Preprocessing\n\nSee the distilbert-base-cased model card for further details.",
"##### Pretraining\n\nSee the distilbert-base-cased model card for further details.",
"## Evaluation\n\nAs discussed in the model repository\n\n> This model reaches a F1 score of 87.1 on the [SQuAD v1.1] dev set (for comparison, BERT bert-base-cased version reaches a F1 score of 88.7).",
"## Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type and hours used based on the associated paper. Note that these details are just for training DistilBERT, not including the fine-tuning with SQuAD.\n\n- Hardware Type: 8 16GB V100 GPUs\n- Hours used: 90 hours\n- Cloud Provider: Unknown\n- Compute Region: Unknown\n- Carbon Emitted: Unknown",
"## Technical Specifications\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.\n\n\n\n\n\nAPA: \n- Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.",
"## Model Card Authors\n\nThis model card was written by the Hugging Face team."
] | [
"TAGS\n#transformers #pytorch #tf #rust #safetensors #openvino #distilbert #question-answering #en #dataset-squad #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #model-index #endpoints_compatible #has_space #region-us \n",
"# DistilBERT base cased distilled SQuAD",
"## Table of Contents\n- Model Details\n- How To Get Started With the Model\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors",
"## Model Details\n\nModel Description: The DistilBERT model was proposed in the blog post Smaller, faster, cheaper, lighter: Introducing DistilBERT, adistilled version of BERT, and the paper DistilBERT, adistilled version of BERT: smaller, faster, cheaper and lighter. DistilBERT is a small, fast, cheap and light Transformer model trained by distilling BERT base. It has 40% less parameters than *bert-base-uncased*, runs 60% faster while preserving over 95% of BERT's performances as measured on the GLUE language understanding benchmark.\n\nThis model is a fine-tune checkpoint of DistilBERT-base-cased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. \n\n- Developed by: Hugging Face\n- Model Type: Transformer-based language model\n- Language(s): English \n- License: Apache 2.0\n- Related Models: DistilBERT-base-cased\n- Resources for more information:\n - See this repository for more about Distil\\* (a class of compressed models including this model)\n - See Sanh et al. (2019) for more information about knowledge distillation and the training procedure",
"## How to Get Started with the Model \n\nUse the code below to get started with the model. \n\n\n\nHere is how to use this model in PyTorch:\n\n\n\nAnd in TensorFlow:",
"## Uses\n\nThis model can be used for question answering.",
"#### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.",
"## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\n\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"## Training",
"#### Training Data\n\nThe distilbert-base-cased model was trained using the same data as the distilbert-base-uncased model. The distilbert-base-uncased model model describes it's training data as: \n\n> DistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset consisting of 11,038 unpublished books and English Wikipedia (excluding lists, tables and headers).\n\nTo learn more about the SQuAD v1.1 dataset, see the SQuAD v1.1 data card.",
"#### Training Procedure",
"##### Preprocessing\n\nSee the distilbert-base-cased model card for further details.",
"##### Pretraining\n\nSee the distilbert-base-cased model card for further details.",
"## Evaluation\n\nAs discussed in the model repository\n\n> This model reaches a F1 score of 87.1 on the [SQuAD v1.1] dev set (for comparison, BERT bert-base-cased version reaches a F1 score of 88.7).",
"## Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type and hours used based on the associated paper. Note that these details are just for training DistilBERT, not including the fine-tuning with SQuAD.\n\n- Hardware Type: 8 16GB V100 GPUs\n- Hours used: 90 hours\n- Cloud Provider: Unknown\n- Compute Region: Unknown\n- Carbon Emitted: Unknown",
"## Technical Specifications\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.\n\n\n\n\n\nAPA: \n- Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.",
"## Model Card Authors\n\nThis model card was written by the Hugging Face team."
] | [
85,
14,
52,
283,
39,
13,
76,
157,
2,
130,
5,
21,
20,
59,
110,
95,
17
] | [
"passage: TAGS\n#transformers #pytorch #tf #rust #safetensors #openvino #distilbert #question-answering #en #dataset-squad #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #model-index #endpoints_compatible #has_space #region-us \n# DistilBERT base cased distilled SQuAD## Table of Contents\n- Model Details\n- How To Get Started With the Model\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors## Model Details\n\nModel Description: The DistilBERT model was proposed in the blog post Smaller, faster, cheaper, lighter: Introducing DistilBERT, adistilled version of BERT, and the paper DistilBERT, adistilled version of BERT: smaller, faster, cheaper and lighter. DistilBERT is a small, fast, cheap and light Transformer model trained by distilling BERT base. It has 40% less parameters than *bert-base-uncased*, runs 60% faster while preserving over 95% of BERT's performances as measured on the GLUE language understanding benchmark.\n\nThis model is a fine-tune checkpoint of DistilBERT-base-cased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. \n\n- Developed by: Hugging Face\n- Model Type: Transformer-based language model\n- Language(s): English \n- License: Apache 2.0\n- Related Models: DistilBERT-base-cased\n- Resources for more information:\n - See this repository for more about Distil\\* (a class of compressed models including this model)\n - See Sanh et al. (2019) for more information about knowledge distillation and the training procedure## How to Get Started with the Model \n\nUse the code below to get started with the model. \n\n\n\nHere is how to use this model in PyTorch:\n\n\n\nAnd in TensorFlow:## Uses\n\nThis model can be used for question answering.",
"passage: #### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\n\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.## Training#### Training Data\n\nThe distilbert-base-cased model was trained using the same data as the distilbert-base-uncased model. The distilbert-base-uncased model model describes it's training data as: \n\n> DistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset consisting of 11,038 unpublished books and English Wikipedia (excluding lists, tables and headers).\n\nTo learn more about the SQuAD v1.1 dataset, see the SQuAD v1.1 data card.#### Training Procedure##### Preprocessing\n\nSee the distilbert-base-cased model card for further details.##### Pretraining\n\nSee the distilbert-base-cased model card for further details.## Evaluation\n\nAs discussed in the model repository\n\n> This model reaches a F1 score of 87.1 on the [SQuAD v1.1] dev set (for comparison, BERT bert-base-cased version reaches a F1 score of 88.7).## Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type and hours used based on the associated paper. Note that these details are just for training DistilBERT, not including the fine-tuning with SQuAD.\n\n- Hardware Type: 8 16GB V100 GPUs\n- Hours used: 90 hours\n- Cloud Provider: Unknown\n- Compute Region: Unknown\n- Carbon Emitted: Unknown"
] | [
-0.08472777903079987,
0.08568958938121796,
-0.005178290884941816,
0.08239233493804932,
0.056200649589300156,
-0.010919522494077682,
0.022340746596455574,
0.0749761164188385,
-0.011618414893746376,
0.09985316544771194,
-0.01181764341890812,
0.021718643605709076,
0.07559865713119507,
0.05772380530834198,
0.040040671825408936,
-0.1919838935136795,
0.03551258519291878,
-0.07742740213871002,
0.04191676899790764,
0.06934844702482224,
0.1291256844997406,
-0.12259410321712494,
0.08825311064720154,
0.008628619834780693,
0.010115310549736023,
-0.03884982690215111,
-0.02752041257917881,
-0.03743605315685272,
0.06207963451743126,
0.057766009122133255,
0.09041932970285416,
-0.01972426287829876,
0.0634685531258583,
-0.14254449307918549,
0.018140796571969986,
0.05731689929962158,
0.012836518697440624,
0.0955861359834671,
0.037298575043678284,
0.01627771556377411,
0.07378974556922913,
-0.08949844539165497,
0.07569153606891632,
0.05875203758478165,
-0.06336091458797455,
-0.11588925868272781,
-0.08237135410308838,
0.03460630774497986,
0.08251791447401047,
0.046820998191833496,
-0.01969890296459198,
0.06031613424420357,
-0.08400853723287582,
0.005630913190543652,
0.14681634306907654,
-0.12487544119358063,
-0.04050058871507645,
-0.02537388727068901,
-0.018702587112784386,
0.044110074639320374,
-0.12635968625545502,
-0.0018426737515255809,
0.01429865974932909,
0.028219351544976234,
0.08889885246753693,
-0.004465479403734207,
0.14468057453632355,
-0.004059881903231144,
-0.13047455251216888,
-0.022226449102163315,
0.04089553281664848,
0.013397635892033577,
-0.11738953739404678,
-0.1761077344417572,
-0.0554506778717041,
0.06375908851623535,
-0.02443467080593109,
-0.0798913836479187,
0.06213943660259247,
0.006215096917003393,
0.04058288410305977,
-0.06364910304546356,
-0.1043221578001976,
-0.0028795762918889523,
-0.03850655257701874,
0.13941851258277893,
0.03173511102795601,
0.00927104614675045,
0.02243988774716854,
0.09709160029888153,
0.02723250538110733,
-0.09477102756500244,
-0.09297101199626923,
-0.0805969089269638,
-0.02781614288687706,
-0.014307710342109203,
-0.02634330466389656,
-0.012778316624462605,
-0.01871258020401001,
0.1165970116853714,
-0.05230770632624626,
0.012556619942188263,
0.030345115810632706,
-0.0036746207624673843,
0.09023499488830566,
0.13283860683441162,
-0.05614354461431503,
-0.056817956268787384,
0.032169047743082047,
0.051935113966464996,
0.04156700521707535,
-0.007965462282299995,
-0.02965652011334896,
-0.03111433982849121,
0.028894685208797455,
0.06292857229709625,
-0.004879947751760483,
0.005060104187577963,
-0.1018676608800888,
-0.08385169506072998,
0.13017694652080536,
-0.13976404070854187,
0.02423943765461445,
0.015507925301790237,
-0.05936487019062042,
0.05937361717224121,
0.02085653506219387,
-0.029340503737330437,
-0.06924057006835938,
0.043764591217041016,
-0.07106266170740128,
-0.03050808236002922,
-0.09836682677268982,
-0.08117778599262238,
0.011189420707523823,
-0.019218023866415024,
-0.024981273338198662,
-0.08673590421676636,
-0.08778493106365204,
-0.0249329786747694,
0.03836672753095627,
-0.04117196798324585,
-0.01233990490436554,
-0.04463735222816467,
-0.033383261412382126,
-0.005396631546318531,
0.014875453896820545,
0.01700677163898945,
-0.0013636024668812752,
0.04512520879507065,
-0.05945049226284027,
0.053032346069812775,
0.04714110493659973,
0.019704751670360565,
-0.08444715291261673,
0.005500227212905884,
-0.20318539440631866,
0.1442631036043167,
-0.06285519897937775,
-0.05788850784301758,
-0.09166619181632996,
-0.03821651265025139,
-0.023296836763620377,
0.03971683979034424,
0.04189508408308029,
0.1296471208333969,
-0.19745591282844543,
-0.03136982396245003,
0.09421588480472565,
-0.09768816828727722,
0.014872219413518906,
0.08866572380065918,
-0.07814247161149979,
0.10374724864959717,
0.11048823595046997,
0.02323402464389801,
0.053036656230688095,
-0.15236622095108032,
-0.08168910443782806,
0.015684571117162704,
-0.0535462312400341,
0.16117611527442932,
0.05716654658317566,
-0.03835250437259674,
0.03004610911011696,
0.018884196877479553,
-0.05352221056818962,
-0.026425544172525406,
0.005969815421849489,
-0.057097967714071274,
0.001397972460836172,
-0.03817514702677727,
0.0840175449848175,
-0.02439500391483307,
-0.049918342381715775,
0.002610759809613228,
-0.12305303663015366,
0.07244286686182022,
0.08853849768638611,
-0.030349455773830414,
0.011445400305092335,
-0.10313829779624939,
0.005802499130368233,
-0.01677849143743515,
-0.018690219148993492,
-0.1434626281261444,
-0.03826511651277542,
0.05258703604340553,
-0.15519684553146362,
0.036412037909030914,
0.026330338791012764,
0.041351933032274246,
0.03634608909487724,
-0.05189400166273117,
0.0036896353121846914,
-0.06689989566802979,
-0.010027134791016579,
-0.06931782513856888,
-0.10322479158639908,
-0.012777825817465782,
-0.011277085170149803,
0.05641955882310867,
-0.08504069596529007,
0.020143434405326843,
0.10072687268257141,
0.05109679698944092,
0.0019786013290286064,
-0.04641256853938103,
0.018451187759637833,
-0.05493151396512985,
0.004242716357111931,
-0.05795426666736603,
0.011646129190921783,
-0.001143664587289095,
-0.02713637612760067,
0.0538792759180069,
-0.11055606603622437,
-0.10505008697509766,
0.08209320157766342,
0.07798753678798676,
-0.09033684432506561,
-0.03410066291689873,
-0.02466694265604019,
-0.020532594993710518,
-0.1028309240937233,
-0.0725722461938858,
0.20622625946998596,
0.020782921463251114,
0.050085440278053284,
-0.10816866159439087,
-0.04633735865354538,
0.00040038861334323883,
0.00801408663392067,
-0.022966153919696808,
0.035499561578035355,
-0.05086958035826683,
-0.12075138092041016,
0.05460652709007263,
0.08242252469062805,
0.007705656811594963,
0.07715502381324768,
0.003517206758260727,
-0.12014950811862946,
-0.03854183852672577,
-0.0004724804311990738,
0.008259732276201248,
0.10001277923583984,
0.012071714736521244,
0.05518444627523422,
0.04195543751120567,
0.003291741944849491,
0.013705980964004993,
-0.0787249356508255,
0.0548124723136425,
0.04167279601097107,
0.0004799347370862961,
0.02229934185743332,
-0.032770972698926926,
0.017557417973876,
0.0795942097902298,
0.05494619160890579,
0.0413430891931057,
0.0135592520236969,
-0.025491882115602493,
-0.0777200311422348,
0.15585166215896606,
-0.08792243897914886,
-0.2776578664779663,
-0.1296466439962387,
0.0490884967148304,
-0.0016223732382059097,
0.01192984264343977,
0.009453067556023598,
-0.06074714660644531,
-0.10564924776554108,
-0.08406268805265427,
0.04563189297914505,
0.027242230251431465,
-0.03941529989242554,
-0.003032490611076355,
0.028203070163726807,
0.030978772789239883,
-0.13967284560203552,
0.013907725922763348,
-0.00478784553706646,
-0.07585181295871735,
-0.017976563423871994,
0.058219388127326965,
0.0458185151219368,
0.08049659430980682,
-0.026911862194538116,
-0.05945814773440361,
0.015854058787226677,
0.21394798159599304,
-0.08187002688646317,
0.1258390247821808,
0.11536749452352524,
-0.05828406661748886,
0.08934886008501053,
0.09045320749282837,
0.0340973436832428,
-0.04773951321840286,
0.036187998950481415,
0.059205301105976105,
-0.01346609741449356,
-0.19936679303646088,
-0.04671686142683029,
0.006640567444264889,
-0.08304990082979202,
0.0738561600446701,
0.04974035546183586,
0.005628641694784164,
0.056338801980018616,
-0.08509938418865204,
0.002396148396655917,
0.07497934997081757,
0.07350252568721771,
0.04478484392166138,
-0.024692725390195847,
0.07500112801790237,
-0.021379388868808746,
-0.019987288862466812,
0.11672953516244888,
-0.052268192172050476,
0.1863650232553482,
-0.05517329275608063,
0.12855176627635956,
0.05737366899847984,
0.06845474243164062,
0.05899277329444885,
0.06323520839214325,
-0.042664337903261185,
0.029881279915571213,
-0.05701109766960144,
-0.08009260147809982,
-0.03927385061979294,
0.0755041167140007,
0.020427433773875237,
0.0755593478679657,
-0.0047477055341005325,
-0.018176203593611717,
0.05858682841062546,
0.2077038288116455,
-0.0008436509524472058,
-0.10210913419723511,
-0.1069890707731247,
0.046849340200424194,
-0.06138526648283005,
-0.09671816229820251,
0.01704394817352295,
0.11834067106246948,
-0.12493189424276352,
-0.018078509718179703,
-0.01705217733979225,
0.04738500714302063,
-0.09210904687643051,
0.007531411945819855,
-0.019680120050907135,
0.12273748219013214,
0.008657119236886501,
0.06212131679058075,
-0.19428908824920654,
0.016149524599313736,
0.036630064249038696,
0.10283640027046204,
-0.04462859779596329,
0.05613819882273674,
0.045177631080150604,
-0.04299407824873924,
0.1450880914926529,
0.033576563000679016,
0.06814085692167282,
-0.05691557377576828,
-0.12281157821416855,
0.015102218836545944,
0.08544264733791351,
-0.06573953479528427,
0.059049442410469055,
-0.020838331431150436,
-0.018258437514305115,
-0.009401636198163033,
-0.03768197447061539,
-0.12530504167079926,
-0.1775529384613037,
0.03339262306690216,
-0.09254539757966995,
0.026585828512907028,
-0.0796978622674942,
-0.06832896173000336,
0.007195025682449341,
0.1680847555398941,
-0.19345691800117493,
-0.11103555560112,
-0.09833912551403046,
-0.06212616711854935,
0.12834706902503967,
-0.06909860670566559,
0.06158982217311859,
-0.0003383662551641464,
0.1784532070159912,
-0.024126596748828888,
-0.061933524906635284,
0.029455896466970444,
-0.04384799301624298,
-0.15917202830314636,
-0.025015106424689293,
0.09898003935813904,
0.15903565287590027,
0.07467424124479294,
0.005481121130287647,
0.04094913974404335,
-0.03804318606853485,
-0.10894906520843506,
-0.030182667076587677,
0.22895702719688416,
0.05356932431459427,
0.022427307441830635,
-0.08550439774990082,
-0.11396199464797974,
-0.06902744621038437,
0.02244715951383114,
0.06730040907859802,
0.13852201402187347,
-0.05385195463895798,
0.15137162804603577,
0.22272560000419617,
-0.07110000401735306,
-0.23654243350028992,
0.0007416587322950363,
0.05241282656788826,
0.0411887988448143,
0.04546976834535599,
-0.21500363945960999,
0.06379067897796631,
0.07731235027313232,
-0.008147694170475006,
0.04208553582429886,
-0.156770721077919,
-0.11065170168876648,
0.083079032599926,
0.06062304973602295,
-0.017561037093400955,
-0.02913581393659115,
-0.041863925755023956,
-0.023729633539915085,
-0.001871313899755478,
0.11271852254867554,
-0.02666863054037094,
0.053280770778656006,
0.01798558607697487,
0.02218841016292572,
0.05172198638319969,
-0.020639905706048012,
0.14695143699645996,
-0.03818163648247719,
0.03597923740744591,
-0.04318825155496597,
-0.08778572082519531,
0.05334281176328659,
-0.05970654636621475,
0.11595118045806885,
0.0552976131439209,
0.04541341960430145,
-0.05402828007936478,
-0.060716547071933746,
-0.054178886115550995,
0.0361451581120491,
-0.05918675661087036,
-0.0746445581316948,
-0.07967816293239594,
0.09325667470693588,
0.08372823148965836,
-0.011552102863788605,
0.011326422914862633,
-0.033774469047784805,
-0.10821522772312164,
0.0846238061785698,
0.18488681316375732,
0.025096416473388672,
-0.07844652235507965,
-0.019149934872984886,
-0.00074803177267313,
0.07898262143135071,
-0.12554389238357544,
0.05557209625840187,
0.04948701709508896,
0.014592010527849197,
0.08008547127246857,
0.0063179004937410355,
-0.15942981839179993,
-0.0016257865354418755,
0.0031653987243771553,
-0.07406389713287354,
-0.141154482960701,
-0.04580405354499817,
0.030306734144687653,
-0.1543373465538025,
-0.04025789350271225,
0.07835336029529572,
-0.03820691257715225,
-0.04867923632264137,
0.01649746671319008,
0.06418540328741074,
0.017892587929964066,
0.05738457292318344,
0.07095101475715637,
0.032012827694416046,
-0.07730326056480408,
0.10569018125534058,
0.07006336748600006,
-0.05792178958654404,
0.041552212089300156,
0.0345306321978569,
-0.08270067721605301,
-0.027046697214245796,
-0.03549766540527344,
0.026619257405400276,
0.01938248984515667,
-0.022162387147545815,
0.00019572675228118896,
-0.060488272458314896,
0.02468949556350708,
0.09534209966659546,
0.03755784034729004,
0.05388303101062775,
-0.03939652442932129,
0.04883478581905365,
-0.03804285079240799,
0.06879499554634094,
-0.009307150729000568,
0.016203656792640686,
-0.01695520430803299,
0.019737206399440765,
0.01340790931135416,
0.001960725523531437,
-0.023037562146782875,
-0.05397229641675949,
-0.0744023323059082,
-0.036663416773080826,
-0.15972492098808289,
0.04303624480962753,
-0.04955838620662689,
-0.01630731113255024,
-0.0188793633133173,
-0.0033597880974411964,
0.03573543578386307,
0.05959164351224899,
-0.018375523388385773,
-0.016344815492630005,
-0.01329965889453888,
0.04494293034076691,
-0.13813799619674683,
0.016521736979484558,
0.051005102694034576,
-0.07631173729896545,
0.07521671056747437,
0.014473765157163143,
-0.0026373122818768024,
0.01640276052057743,
-0.11383982002735138,
-0.010008398443460464,
-0.020666804164648056,
0.027936019003391266,
0.039936043322086334,
-0.1450287252664566,
-0.0007054638117551804,
-0.03728228807449341,
-0.0386129766702652,
-0.03231755271553993,
0.07422734797000885,
-0.07224162667989731,
0.10164603590965271,
0.0505114309489727,
-0.01895536109805107,
-0.09181644022464752,
0.03295067697763443,
0.10304077714681625,
0.01684141345322132,
0.10844118893146515,
-0.009393800050020218,
0.03234560042619705,
-0.10860776901245117,
-0.0003442266024649143,
0.014752121642231941,
0.03313400596380234,
-0.0273318849503994,
-0.049532756209373474,
0.027940519154071808,
-0.0018720088992267847,
0.09252987802028656,
-0.018912220373749733,
-0.02195136994123459,
0.0493272989988327,
-0.0216982439160347,
-0.05361752212047577,
0.04516288638114929,
0.01987309753894806,
0.0007062908262014389,
-0.0009920839220285416,
0.024150943383574486,
-0.0062543172389268875,
-0.024749476462602615,
-0.03622608631849289,
0.0775039792060852,
0.13142076134681702,
0.056647755205631256,
0.04119767248630524,
-0.00394536554813385,
-0.012623557820916176,
-0.08404216915369034,
0.08527321368455887,
-0.0052308589220047,
-0.06579145044088364,
-0.054986365139484406,
0.13923379778862,
0.06192779541015625,
-0.15049174427986145,
0.10498915612697601,
-0.018162626773118973,
-0.06702938675880432,
-0.09817960858345032,
-0.14673969149589539,
-0.0442383848130703,
0.06930872052907944,
-0.02347143553197384,
-0.09725356101989746,
0.04282858967781067,
0.058664094656705856,
0.00479358434677124,
-0.030377324670553207,
0.11648974567651749,
-0.11228358745574951,
-0.06169944256544113,
0.08190850168466568,
0.044522419571876526,
0.023547418415546417,
0.04258294031023979,
0.013059921562671661,
0.012849497608840466,
0.07829620689153671,
0.07185912132263184,
0.04610992968082428,
0.06475462764501572,
-0.031812988221645355,
-0.00408345740288496,
-0.06418687850236893,
0.0013654031790792942,
-0.03763645142316818,
0.004659172147512436,
0.1129523292183876,
0.053228333592414856,
-0.03820435330271721,
-0.01273224875330925,
0.16412848234176636,
-0.03307149559259415,
-0.04672258347272873,
-0.10945961624383926,
0.11151573061943054,
-0.01775679737329483,
0.04540364444255829,
0.054319705814123154,
-0.09002037346363068,
0.00888187438249588,
0.15700000524520874,
0.061447493731975555,
-0.06040744483470917,
0.0211530402302742,
0.015410717576742172,
-0.0023815317545086145,
-0.02465635910630226,
0.06634308397769928,
0.023422783240675926,
0.20555755496025085,
-0.07562102377414703,
0.10563761740922928,
-0.014814422465860844,
-0.03976159542798996,
-0.07718811929225922,
0.11831298470497131,
-0.06334296613931656,
0.04113152250647545,
-0.10422661900520325,
0.02398761175572872,
0.008608076721429825,
-0.2738880515098572,
0.023007400333881378,
-0.044134721159935,
-0.09085991233587265,
-0.001766348723322153,
-0.03760994225740433,
-0.01867949590086937,
0.038657378405332565,
0.04803065210580826,
0.012438986450433731,
0.20792651176452637,
0.02895900048315525,
-0.05480378121137619,
-0.00367087684571743,
0.10337507724761963,
-0.061334315687417984,
0.20021206140518188,
0.04313904792070389,
0.058275312185287476,
0.07051559537649155,
0.007021593861281872,
-0.11648888140916824,
0.0038072410970926285,
0.022640936076641083,
-0.0952867716550827,
0.0008541590068489313,
0.16252072155475616,
0.01209572609513998,
0.08385202288627625,
0.05358770489692688,
-0.017467129975557327,
0.05156010389328003,
-0.008843787014484406,
-0.08138340711593628,
-0.07558557391166687,
0.06939765065908432,
-0.08235856890678406,
0.11255103349685669,
0.13701479136943817,
-0.0038483040407299995,
-0.034377969801425934,
-0.05521075427532196,
0.04023770987987518,
0.02032715082168579,
0.08916129916906357,
0.022235238924622536,
-0.10559382289648056,
0.007646770216524601,
0.025008421391248703,
0.08016136288642883,
-0.18171198666095734,
-0.06307439506053925,
0.03941540792584419,
-0.023045623674988747,
-0.009327582083642483,
0.048057589679956436,
-0.024346519261598587,
0.048105642199516296,
-0.010496952570974827,
-0.009020764380693436,
-0.009198333136737347,
0.08079181611537933,
-0.07395243644714355,
-0.011229529976844788
] |
null | null | transformers |
# Model Card for DistilBERT base model (cased)
This model is a distilled version of the [BERT base model](https://huggingface.co/bert-base-cased).
It was introduced in [this paper](https://arxiv.org/abs/1910.01108).
The code for the distillation process can be found
[here](https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation).
This model is cased: it does make a difference between english and English.
All the training details on the pre-training, the uses, limitations and potential biases (included below) are the same as for [DistilBERT-base-uncased](https://huggingface.co/distilbert-base-uncased).
We highly encourage to check it if you want to know more.
## Model description
DistilBERT is a transformers model, smaller and faster than BERT, which was pretrained on the same corpus in a
self-supervised fashion, using the BERT base model as a teacher. This means it was pretrained on the raw texts only,
with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic
process to generate inputs and labels from those texts using the BERT base model. More precisely, it was pretrained
with three objectives:
- Distillation loss: the model was trained to return the same probabilities as the BERT base model.
- Masked language modeling (MLM): this is part of the original training loss of the BERT base model. When taking a
sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the
model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that
usually see the words one after the other, or from autoregressive models like GPT which internally mask the future
tokens. It allows the model to learn a bidirectional representation of the sentence.
- Cosine embedding loss: the model was also trained to generate hidden states as close as possible as the BERT base
model.
This way, the model learns the same inner representation of the English language than its teacher model, while being
faster for inference or downstream tasks.
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=distilbert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='distilbert-base-uncased')
>>> unmasker("Hello I'm a [MASK] model.")
[{'sequence': "[CLS] hello i'm a role model. [SEP]",
'score': 0.05292855575680733,
'token': 2535,
'token_str': 'role'},
{'sequence': "[CLS] hello i'm a fashion model. [SEP]",
'score': 0.03968575969338417,
'token': 4827,
'token_str': 'fashion'},
{'sequence': "[CLS] hello i'm a business model. [SEP]",
'score': 0.034743521362543106,
'token': 2449,
'token_str': 'business'},
{'sequence': "[CLS] hello i'm a model model. [SEP]",
'score': 0.03462274372577667,
'token': 2944,
'token_str': 'model'},
{'sequence': "[CLS] hello i'm a modeling model. [SEP]",
'score': 0.018145186826586723,
'token': 11643,
'token_str': 'modeling'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import DistilBertTokenizer, DistilBertModel
tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
model = DistilBertModel.from_pretrained("distilbert-base-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import DistilBertTokenizer, TFDistilBertModel
tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
model = TFDistilBertModel.from_pretrained("distilbert-base-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions. It also inherits some of
[the bias of its teacher model](https://huggingface.co/bert-base-uncased#limitations-and-bias).
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='distilbert-base-uncased')
>>> unmasker("The White man worked as a [MASK].")
[{'sequence': '[CLS] the white man worked as a blacksmith. [SEP]',
'score': 0.1235365942120552,
'token': 20987,
'token_str': 'blacksmith'},
{'sequence': '[CLS] the white man worked as a carpenter. [SEP]',
'score': 0.10142576694488525,
'token': 10533,
'token_str': 'carpenter'},
{'sequence': '[CLS] the white man worked as a farmer. [SEP]',
'score': 0.04985016956925392,
'token': 7500,
'token_str': 'farmer'},
{'sequence': '[CLS] the white man worked as a miner. [SEP]',
'score': 0.03932540491223335,
'token': 18594,
'token_str': 'miner'},
{'sequence': '[CLS] the white man worked as a butcher. [SEP]',
'score': 0.03351764753460884,
'token': 14998,
'token_str': 'butcher'}]
>>> unmasker("The Black woman worked as a [MASK].")
[{'sequence': '[CLS] the black woman worked as a waitress. [SEP]',
'score': 0.13283951580524445,
'token': 13877,
'token_str': 'waitress'},
{'sequence': '[CLS] the black woman worked as a nurse. [SEP]',
'score': 0.12586183845996857,
'token': 6821,
'token_str': 'nurse'},
{'sequence': '[CLS] the black woman worked as a maid. [SEP]',
'score': 0.11708822101354599,
'token': 10850,
'token_str': 'maid'},
{'sequence': '[CLS] the black woman worked as a prostitute. [SEP]',
'score': 0.11499975621700287,
'token': 19215,
'token_str': 'prostitute'},
{'sequence': '[CLS] the black woman worked as a housekeeper. [SEP]',
'score': 0.04722772538661957,
'token': 22583,
'token_str': 'housekeeper'}]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
DistilBERT pretrained on the same data as BERT, which is [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset
consisting of 11,038 unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia)
(excluding lists, tables and headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 8 16 GB V100 for 90 hours. See the
[training code](https://github.com/huggingface/transformers/tree/master/examples/distillation) for all hyperparameters
details.
## Evaluation results
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
| Task | MNLI | QQP | QNLI | SST-2 | CoLA | STS-B | MRPC | RTE |
|:----:|:----:|:----:|:----:|:-----:|:----:|:-----:|:----:|:----:|
| | 81.5 | 87.8 | 88.2 | 90.4 | 47.2 | 85.5 | 85.6 | 60.6 |
### BibTeX entry and citation info
```bibtex
@article{Sanh2019DistilBERTAD,
title={DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter},
author={Victor Sanh and Lysandre Debut and Julien Chaumond and Thomas Wolf},
journal={ArXiv},
year={2019},
volume={abs/1910.01108}
}
```
<a href="https://huggingface.co/exbert/?model=distilbert-base-uncased">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": "en", "license": "apache-2.0", "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | distilbert/distilbert-base-cased | [
"transformers",
"pytorch",
"tf",
"onnx",
"safetensors",
"distilbert",
"fill-mask",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1910.01108",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1910.01108"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #onnx #safetensors #distilbert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1910.01108 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us
| Model Card for DistilBERT base model (cased)
============================================
This model is a distilled version of the BERT base model.
It was introduced in this paper.
The code for the distillation process can be found
here.
This model is cased: it does make a difference between english and English.
All the training details on the pre-training, the uses, limitations and potential biases (included below) are the same as for DistilBERT-base-uncased.
We highly encourage to check it if you want to know more.
Model description
-----------------
DistilBERT is a transformers model, smaller and faster than BERT, which was pretrained on the same corpus in a
self-supervised fashion, using the BERT base model as a teacher. This means it was pretrained on the raw texts only,
with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic
process to generate inputs and labels from those texts using the BERT base model. More precisely, it was pretrained
with three objectives:
* Distillation loss: the model was trained to return the same probabilities as the BERT base model.
* Masked language modeling (MLM): this is part of the original training loss of the BERT base model. When taking a
sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the
model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that
usually see the words one after the other, or from autoregressive models like GPT which internally mask the future
tokens. It allows the model to learn a bidirectional representation of the sentence.
* Cosine embedding loss: the model was also trained to generate hidden states as close as possible as the BERT base
model.
This way, the model learns the same inner representation of the English language than its teacher model, while being
faster for inference or downstream tasks.
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions. It also inherits some of
the bias of its teacher model.
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
DistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset
consisting of 11,038 unpublished books and English Wikipedia
(excluding lists, tables and headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 8 16 GB V100 for 90 hours. See the
training code for all hyperparameters
details.
Evaluation results
------------------
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
### BibTeX entry and citation info
<a href="URL
<img width="300px" src="URL
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions. It also inherits some of\nthe bias of its teacher model.\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nDistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset\nconsisting of 11,038 unpublished books and English Wikipedia\n(excluding lists, tables and headers).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 8 16 GB V100 for 90 hours. See the\ntraining code for all hyperparameters\ndetails.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
"TAGS\n#transformers #pytorch #tf #onnx #safetensors #distilbert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1910.01108 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions. It also inherits some of\nthe bias of its teacher model.\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nDistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset\nconsisting of 11,038 unpublished books and English Wikipedia\n(excluding lists, tables and headers).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 8 16 GB V100 for 90 hours. See the\ntraining code for all hyperparameters\ndetails.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
84,
49,
124,
222,
60,
30
] | [
"passage: TAGS\n#transformers #pytorch #tf #onnx #safetensors #distilbert #fill-mask #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1910.01108 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions. It also inherits some of\nthe bias of its teacher model.\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nDistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset\nconsisting of 11,038 unpublished books and English Wikipedia\n(excluding lists, tables and headers).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is."
] | [
-0.08626681566238403,
0.08989132940769196,
-0.0048582651652395725,
0.08146794140338898,
0.03272682800889015,
0.014937986619770527,
0.09448347985744476,
0.0523512177169323,
-0.07686998695135117,
0.07102014869451523,
0.06255928426980972,
0.005564660765230656,
0.07225299626588821,
0.12199833989143372,
0.03752567246556282,
-0.2824927568435669,
0.06348469108343124,
-0.03454146906733513,
0.07968123257160187,
0.08562815189361572,
0.07452112436294556,
-0.0745442658662796,
0.03215852752327919,
0.005422129295766354,
-0.02788892574608326,
-0.07887344062328339,
0.017918596044182777,
-0.08040842413902283,
0.07513269037008286,
0.06912785023450851,
0.07159127295017242,
0.0006852910737507045,
0.025465797632932663,
-0.11810147017240524,
0.026826176792383194,
0.08949657529592514,
-0.01026927214115858,
0.07525196671485901,
0.04281727969646454,
0.0060790409334003925,
0.14158309996128082,
-0.06311427056789398,
0.03972579166293144,
0.013260314241051674,
-0.1552569568157196,
-0.05827919393777847,
-0.09714103490114212,
0.06357769668102264,
0.021696878597140312,
0.02718738093972206,
-0.034840177744627,
0.12213505804538727,
0.005674669053405523,
0.09244751185178757,
0.1999267339706421,
-0.23178055882453918,
-0.010410768911242485,
0.035362608730793,
0.036037739366292953,
-0.0072088418528437614,
-0.07974785566329956,
-0.024509595707058907,
0.01368698664009571,
0.02986478991806507,
0.08750752359628677,
-0.03345698118209839,
0.08913640677928925,
-0.061977267265319824,
-0.12563645839691162,
-0.07224953919649124,
0.0564262717962265,
-0.011476445011794567,
-0.10182558000087738,
-0.12509964406490326,
-0.06047523021697998,
0.03607858344912529,
0.012979197315871716,
0.04651723802089691,
-0.004655851982533932,
-0.014146094210445881,
0.045479707419872284,
-0.05446743592619896,
-0.08204666525125504,
-0.00908583588898182,
-0.11649280786514282,
0.11120609194040298,
0.003101440379396081,
0.03907948359847069,
-0.05293010547757149,
0.07421254366636276,
-0.1496407836675644,
-0.10495022684335709,
-0.049722399562597275,
-0.06810677796602249,
-0.11062217503786087,
-0.020502502098679543,
-0.052168890833854675,
-0.11138012260198593,
-0.07721635699272156,
0.1036735400557518,
-0.10240474343299866,
0.011041532270610332,
-0.06618121266365051,
0.05263142287731171,
0.09014540910720825,
0.07422205060720444,
-0.08367125689983368,
-0.009243194945156574,
0.01499221008270979,
0.017962507903575897,
0.051001183688640594,
-0.02620030753314495,
-0.013642077334225178,
-0.016846975311636925,
0.05084934085607529,
0.002152987290173769,
0.025422003120183945,
0.06781516969203949,
-0.03808441758155823,
-0.04108962416648865,
0.14435923099517822,
-0.11790726333856583,
-0.018579386174678802,
-0.017881691455841064,
-0.05157948657870293,
0.013430577702820301,
0.0852389857172966,
-0.05589590594172478,
-0.09622044861316681,
0.07537639886140823,
-0.07846089452505112,
-0.04723513498902321,
-0.07325811684131622,
-0.18187150359153748,
0.0271597970277071,
-0.10204996913671494,
-0.06475674360990524,
-0.07435572147369385,
-0.18611375987529755,
-0.04944523796439171,
0.018887242302298546,
0.0012845596065744758,
0.009477019309997559,
-0.027261659502983093,
-0.03393574804067612,
-0.024752795696258545,
-0.0034911478869616985,
0.03445842117071152,
-0.021337347105145454,
0.055681630969047546,
-0.05186237394809723,
0.1090063601732254,
0.0035922140814363956,
0.005464195739477873,
-0.12130213528871536,
0.024513447657227516,
-0.2330777943134308,
0.09597767144441605,
0.021494293585419655,
-0.06250838935375214,
-0.04855688661336899,
-0.06816792488098145,
-0.047800686210393906,
0.025140825659036636,
0.029069336131215096,
0.13069772720336914,
-0.24250346422195435,
-0.04430978000164032,
0.2739686071872711,
-0.15021784603595734,
-0.017779873684048653,
0.10256695002317429,
-0.07612486928701401,
0.050309717655181885,
0.11559426039457321,
0.1044236496090889,
0.024792395532131195,
-0.04544574022293091,
-0.09776564687490463,
-0.0497591570019722,
-0.03209543600678444,
0.1418025940656662,
0.040490321815013885,
-0.047769732773303986,
0.04368124529719353,
0.01060156337916851,
-0.022693699225783348,
-0.04452979564666748,
-0.003869973588734865,
-0.03056979738175869,
0.004950390662997961,
0.004596548620611429,
0.08463677763938904,
-0.0050368234515190125,
-0.06651245802640915,
-0.03739204257726669,
-0.09811245650053024,
0.03348293900489807,
0.0493178553879261,
-0.08736930787563324,
0.07014169543981552,
-0.042454734444618225,
0.052529629319906235,
-0.04849814251065254,
0.012086200527846813,
-0.21286579966545105,
-0.04402266442775726,
0.02893533557653427,
-0.07297193259000778,
0.05955011397600174,
0.025787746533751488,
0.0340748094022274,
0.09853003174066544,
-0.06556158512830734,
0.032497767359018326,
0.006365794688463211,
-0.027580758556723595,
-0.08690587431192398,
-0.1429942399263382,
-0.023732373490929604,
-0.06102785840630531,
0.041256941854953766,
-0.1032615602016449,
0.019513579085469246,
-0.000513171951752156,
0.05166099593043327,
0.025485720485448837,
-0.06091322749853134,
0.0612037219107151,
0.015876734629273415,
-0.04182933270931244,
-0.04309259355068207,
0.016491664573550224,
0.037742502987384796,
-0.06540201604366302,
0.08900325000286102,
-0.2553388178348541,
-0.20003092288970947,
0.0987163558602333,
0.08816909790039062,
-0.09036942571401596,
-0.07977407425642014,
-0.034272488206624985,
-0.004190622363239527,
-0.10368017107248306,
-0.0438157357275486,
0.18719837069511414,
0.03966410458087921,
0.10489675402641296,
-0.11463601142168045,
-0.0026122380513697863,
0.02645109035074711,
-0.032453566789627075,
-0.02509606070816517,
0.060846563428640366,
-0.04118390008807182,
-0.12355363368988037,
0.04610833153128624,
-0.014230561442673206,
0.03108176775276661,
0.14033475518226624,
0.032193172723054886,
-0.11498712748289108,
-0.04036344587802887,
-0.030467554926872253,
0.05771782994270325,
0.09595651179552078,
-0.022244812920689583,
-0.009031367488205433,
0.06169379875063896,
0.05483970046043396,
-0.0037767018657177687,
-0.07870975881814957,
0.05617509037256241,
0.046934884041547775,
-0.028563234955072403,
-0.06656243652105331,
-0.024425700306892395,
-0.0029219721909612417,
0.10322226583957672,
0.018043093383312225,
0.0020359756890684366,
-0.01657445915043354,
-0.04395202919840813,
-0.10630782693624496,
0.185623437166214,
-0.07821732759475708,
-0.25686997175216675,
-0.13397471606731415,
0.0011228176299482584,
-0.01778496243059635,
0.05349484086036682,
-0.0018910347716882825,
0.01139997597783804,
-0.055894169956445694,
-0.13385231792926788,
0.046841416507959366,
0.014922738075256348,
0.00269193178974092,
-0.0720578208565712,
-0.005931403022259474,
-0.01647990383207798,
-0.11075468361377716,
-0.006335671059787273,
-0.028539123013615608,
-0.046541765332221985,
0.035188041627407074,
-0.013728818856179714,
0.08526118844747543,
0.13325604796409607,
-0.020735830068588257,
-0.045359328389167786,
-0.04840024188160896,
0.1413010209798813,
-0.06208976358175278,
0.09810993075370789,
0.025944340974092484,
-0.07235660403966904,
0.07422321289777756,
0.0988670065999031,
-0.007962821051478386,
-0.04337938874959946,
0.048968467861413956,
0.029206201434135437,
-0.07556198537349701,
-0.18231169879436493,
-0.04783342406153679,
-0.038237445056438446,
0.047812290489673615,
0.11778467148542404,
-0.002758986782282591,
0.0256553553044796,
0.01780048757791519,
-0.06635706126689911,
0.009246229194104671,
0.05055953934788704,
0.09117777645587921,
-0.027125181630253792,
-0.004834361840039492,
0.10934484004974365,
-0.03901594504714012,
0.03383999690413475,
0.0992032065987587,
-0.016299214214086533,
0.20012232661247253,
-0.10937782377004623,
0.13841412961483002,
0.08835552632808685,
0.01385075319558382,
0.049944110214710236,
0.13510364294052124,
-0.06216422840952873,
0.047276660799980164,
-0.06857284158468246,
-0.08374161273241043,
-0.01989859715104103,
0.048452917486429214,
-0.014039026573300362,
0.0335192047059536,
-0.09668880701065063,
-0.03588327020406723,
0.06773289293050766,
0.15591827034950256,
0.10918565094470978,
-0.1623603254556656,
-0.10212475806474686,
0.025476887822151184,
-0.03853392228484154,
-0.04803827404975891,
-0.006097326520830393,
0.12190264463424683,
-0.129135861992836,
0.08231370151042938,
-0.037480637431144714,
0.07249441742897034,
-0.09694809466600418,
0.020417774096131325,
-0.08730324357748032,
0.03566443920135498,
-0.06836818158626556,
0.061769403517246246,
-0.20799453556537628,
0.1785406768321991,
0.032633520662784576,
0.0642872005701065,
-0.10255373269319534,
-0.014541524462401867,
0.03655193746089935,
-0.01547060813754797,
0.143917977809906,
0.008082907646894455,
-0.010982743464410305,
-0.02576960064470768,
-0.06736414134502411,
-0.009373712353408337,
0.04333104193210602,
0.010640501976013184,
0.11192651093006134,
0.04257861152291298,
0.004452139139175415,
-0.0038695235271006823,
0.06661657243967056,
-0.017793849110603333,
-0.1284833550453186,
0.043372638523578644,
-0.07375678420066833,
-0.07615228742361069,
-0.04588708281517029,
-0.05527547001838684,
-0.050227269530296326,
0.12723307311534882,
-0.09116196632385254,
-0.07204227149486542,
-0.08317511528730392,
0.04164872318506241,
0.1056373342871666,
-0.07744599878787994,
0.027345998212695122,
-0.013969379477202892,
0.16750475764274597,
-0.07883252203464508,
-0.05976203456521034,
0.0357147678732872,
-0.038855310529470444,
-0.12081096321344376,
-0.07481098920106888,
0.08511406928300858,
0.09557643532752991,
0.06501398980617523,
0.007346800062805414,
0.07391615957021713,
0.023499101400375366,
-0.09015348553657532,
-0.023141730576753616,
0.09725811332464218,
0.11911345273256302,
0.07742404192686081,
-0.07756783068180084,
-0.04624137282371521,
-0.07332152873277664,
0.025217130780220032,
0.07405221462249756,
0.20405606925487518,
-0.05822340399026871,
0.09782031923532486,
0.21475493907928467,
-0.10455825179815292,
-0.203908309340477,
0.011666016653180122,
0.013466228730976582,
0.06717843562364578,
0.05331188440322876,
-0.13605649769306183,
0.012407871894538403,
0.06815004348754883,
0.028982022777199745,
-0.005718787666410208,
-0.23163989186286926,
-0.11372046917676926,
0.07803279161453247,
0.020588785409927368,
0.03384912759065628,
-0.0932762622833252,
-0.027166739106178284,
-0.04194103553891182,
0.024554848670959473,
0.11574176698923111,
-0.13444091379642487,
0.11199872195720673,
0.036734700202941895,
-0.010979348793625832,
0.04476712644100189,
-0.054083261638879776,
0.11556364595890045,
0.03177984803915024,
0.0330008901655674,
-0.07314921170473099,
-0.03707394003868103,
0.10007479041814804,
-0.0660487711429596,
0.12185268104076385,
0.037166181951761246,
0.06350455433130264,
0.007679642643779516,
-0.06753004342317581,
-0.0810556411743164,
0.018259743228554726,
-0.06013217568397522,
-0.05083859711885452,
-0.04882890358567238,
0.08406122773885727,
0.0919463187456131,
-0.008672173134982586,
-0.03302129730582237,
-0.07297711074352264,
0.031065121293067932,
0.1237725242972374,
0.11587028205394745,
0.027880532667040825,
-0.09700888395309448,
0.022896481677889824,
-0.014274236746132374,
0.06369828432798386,
-0.10927761346101761,
0.015391026623547077,
0.07551092654466629,
0.03327755630016327,
0.12938040494918823,
0.03960288688540459,
-0.1524420976638794,
-0.005381210241466761,
0.021166561171412468,
-0.12754681706428528,
-0.10848061740398407,
0.036090269684791565,
-0.014330663718283176,
-0.16775934398174286,
-0.037023868411779404,
0.11486287415027618,
-0.0416657030582428,
-0.0019652454648166895,
0.007939349859952927,
0.057722579687833786,
0.01570652239024639,
0.13024328649044037,
0.02563374675810337,
0.028333358466625214,
-0.07061542570590973,
0.1079692393541336,
0.08575896173715591,
-0.0885227844119072,
0.04192451760172844,
0.07568527013063431,
-0.10014736652374268,
-0.030176257714629173,
-0.06593231111764908,
0.05068649351596832,
0.022701460868120193,
-0.01233964879065752,
-0.02761026844382286,
-0.0355495810508728,
0.051149554550647736,
0.1933365911245346,
0.01826077699661255,
0.06851234287023544,
-0.0544283427298069,
-0.023213732987642288,
-0.0813131257891655,
0.04938875138759613,
0.06323754042387009,
0.03475723788142204,
0.05887521058320999,
0.21115434169769287,
-0.0009640848147682846,
0.02471618540585041,
-0.00838259607553482,
-0.0444946214556694,
-0.07809522747993469,
-0.00018330398597754538,
-0.03158539533615112,
0.03974732756614685,
-0.12971176207065582,
-0.03513922914862633,
-0.02376573532819748,
0.03870268538594246,
0.03667812421917915,
-0.016304034739732742,
0.0006359362159855664,
-0.008420324884355068,
-0.03395937755703926,
0.002829509787261486,
-0.11255048215389252,
-0.022814158350229263,
0.046041734516620636,
-0.0629689171910286,
0.07810201495885849,
-0.031163247302174568,
-0.0438082218170166,
0.008463460020720959,
-0.09721067547798157,
0.01405593566596508,
0.003926454111933708,
0.0005409872392192483,
-0.002616977784782648,
-0.1104353591799736,
0.0173890870064497,
-0.017918530851602554,
0.013012527488172054,
0.021419990807771683,
0.006878742016851902,
-0.07715778052806854,
0.0737026184797287,
0.0923972949385643,
-0.0028750014025717974,
-0.07986441999673843,
0.07409051060676575,
0.024770040065050125,
0.005787837319076061,
0.11056941747665405,
-0.03328993171453476,
0.05797400698065758,
-0.12171625345945358,
-0.001079812878742814,
-0.003817811142653227,
-0.04284804314374924,
0.06669414043426514,
-0.028966188430786133,
0.05136134475469589,
-0.020028306171298027,
0.1088835746049881,
0.011765391565859318,
-0.004107452929019928,
0.02401748113334179,
0.006652762647718191,
-0.044514089822769165,
0.013411127030849457,
0.07894187420606613,
0.009053537622094154,
-0.06870084255933762,
0.004911500960588455,
0.07094517350196838,
-0.0114067317917943,
0.11772143840789795,
0.194834902882576,
0.05171026289463043,
0.18632827699184418,
0.0391547754406929,
-0.02468816563487053,
-0.02972368709743023,
-0.03677139803767204,
-0.02062351070344448,
0.035007379949092865,
0.04764120653271675,
0.007407746743410826,
0.04969104751944542,
0.09954170882701874,
-0.14913085103034973,
0.15558762848377228,
0.03628763556480408,
-0.10536515712738037,
-0.07386982440948486,
-0.22594177722930908,
-0.006687825545668602,
0.11920597404241562,
-0.03241604194045067,
-0.14175693690776825,
0.032663311809301376,
0.06014241278171539,
0.014919463545084,
-0.017252855002880096,
0.08530213683843613,
-0.10312534123659134,
-0.09374517947435379,
0.07121358066797256,
0.013767977245151997,
0.047270532697439194,
0.051607415080070496,
-0.0035168593749403954,
0.025983860716223717,
0.02613157592713833,
0.05872106924653053,
0.05344463884830475,
0.12409111857414246,
0.033350687474012375,
-0.0314951166510582,
-0.06997538357973099,
0.006534217856824398,
-0.016375388950109482,
0.0834210067987442,
0.22931772470474243,
0.08186930418014526,
-0.060916829854249954,
0.0018473670352250338,
0.1357584446668625,
-0.024864232167601585,
-0.1242762878537178,
-0.15503303706645966,
0.1451139748096466,
0.03430991619825363,
-0.02513391338288784,
-0.00007306761108338833,
-0.12219716608524323,
0.044551435858011246,
0.18839843571186066,
0.17564459145069122,
-0.019738417118787766,
0.007185045629739761,
0.013980388641357422,
0.007340914104133844,
0.05828385055065155,
0.07810655236244202,
0.0012444788590073586,
0.2597515285015106,
-0.035731323063373566,
0.09262824058532715,
-0.010779909789562225,
-0.013723524287343025,
-0.031237682327628136,
0.054816070944070816,
-0.01836157590150833,
0.011844264343380928,
-0.05360853672027588,
0.047362297773361206,
-0.031091729179024696,
-0.2402234971523285,
-0.013043804094195366,
-0.05694776773452759,
-0.0888097882270813,
0.023608757182955742,
-0.07953968644142151,
0.0440952405333519,
0.1063554584980011,
0.03110666014254093,
0.0336633026599884,
0.1429889053106308,
-0.0006493130349554121,
-0.04381692036986351,
-0.08399678021669388,
0.04750807583332062,
-0.03247595578432083,
0.17925330996513367,
0.008216101676225662,
0.051844559609889984,
0.09965334087610245,
0.027399620041251183,
-0.0914466381072998,
0.034942515194416046,
0.013533792458474636,
0.019933946430683136,
0.028771156445145607,
0.12257129698991776,
-0.011657360009849072,
-0.0014804175589233637,
0.04455208033323288,
-0.04536304622888565,
0.056425273418426514,
-0.024801844730973244,
-0.012076959945261478,
-0.08608435839414597,
0.07578876614570618,
-0.04967792332172394,
0.15267257392406464,
0.16867636144161224,
-0.0016524927923455834,
-0.0068231807090342045,
-0.031009666621685028,
-0.03831331431865692,
-0.009979807771742344,
0.03221600130200386,
-0.0047837612219154835,
-0.11864687502384186,
0.020093997940421104,
-0.04744718223810196,
0.05271948128938675,
-0.3054327368736267,
-0.060328882187604904,
0.07584169507026672,
-0.07793039828538895,
-0.032094843685626984,
0.07804273068904877,
0.00531403161585331,
0.03695730119943619,
-0.04920005425810814,
0.07548529654741287,
-0.0037053085397928953,
0.08546165376901627,
-0.11292283236980438,
-0.1064271479845047
] |
null | null | transformers | ## distilbert-base-german-cased
| {"language": "de", "license": "apache-2.0"} | fill-mask | distilbert/distilbert-base-german-cased | [
"transformers",
"pytorch",
"safetensors",
"distilbert",
"fill-mask",
"de",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"de"
] | TAGS
#transformers #pytorch #safetensors #distilbert #fill-mask #de #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| ## distilbert-base-german-cased
| [
"## distilbert-base-german-cased"
] | [
"TAGS\n#transformers #pytorch #safetensors #distilbert #fill-mask #de #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"## distilbert-base-german-cased"
] | [
53,
12
] | [
"passage: TAGS\n#transformers #pytorch #safetensors #distilbert #fill-mask #de #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n## distilbert-base-german-cased"
] | [
-0.10053522884845734,
0.026885583996772766,
-0.006772890686988831,
0.06145632639527321,
0.008443595841526985,
-0.016077563166618347,
0.17264969646930695,
0.042000576853752136,
0.07600335031747818,
-0.010414092801511288,
0.15362665057182312,
0.11591029167175293,
-0.037635546177625656,
0.11512244492769241,
-0.04125991836190224,
-0.17076219618320465,
0.10460387915372849,
-0.0023522861301898956,
-0.03374556452035904,
0.08156309276819229,
0.11943485587835312,
-0.05351198464632034,
0.030172141268849373,
-0.025380535051226616,
-0.003096094122156501,
0.03737394139170647,
0.05412439629435539,
-0.08616675436496735,
0.1157330572605133,
-0.015716545283794403,
0.1427539587020874,
0.04401301592588425,
0.006891077850013971,
-0.09180177003145218,
0.021160835400223732,
0.006586823146790266,
-0.0716666579246521,
0.03619786724448204,
-0.025124328210949898,
-0.0488569550216198,
-0.04386694356799126,
-0.004975120071321726,
-0.017073582857847214,
0.023950887843966484,
-0.06722548604011536,
-0.20369094610214233,
-0.08585140109062195,
0.13891272246837616,
0.06783972680568695,
0.08204185217618942,
0.04556255415081978,
0.13006284832954407,
-0.11358195543289185,
0.05481451377272606,
0.13396818935871124,
-0.3507925271987915,
-0.008304715156555176,
0.029802286997437477,
0.026703132316470146,
-0.060030799359083176,
-0.0028248282615095377,
0.026291852816939354,
0.061091285198926926,
0.013933162204921246,
0.03608531504869461,
-0.04967702552676201,
-0.01857023499906063,
-0.016637472435832024,
-0.07016611844301224,
-0.07290641963481903,
0.180586576461792,
-0.006825624965131283,
-0.027426231652498245,
-0.007595409639179707,
-0.08696485310792923,
0.05542084574699402,
-0.013088095001876354,
0.02224663458764553,
-0.013251245953142643,
0.06560712307691574,
0.07471239566802979,
-0.008160365745425224,
-0.12935398519039154,
0.012544108554720879,
-0.18821217119693756,
0.2492976039648056,
0.02444298192858696,
0.057957641780376434,
-0.0719762071967125,
0.07175473123788834,
-0.03786299377679825,
-0.18461450934410095,
0.012310052290558815,
-0.07090003043413162,
0.11433950066566467,
0.044829823076725006,
-0.05223815515637398,
0.029728740453720093,
0.12911763787269592,
0.3058355152606964,
0.017655158415436745,
-0.019183196127414703,
-0.005008476320654154,
0.1064874678850174,
-0.04182296618819237,
0.06391588598489761,
0.010352740995585918,
-0.07274486124515533,
0.1021806076169014,
-0.08146796375513077,
0.11699778586626053,
0.0004287582414690405,
-0.1139449030160904,
-0.03505195304751396,
0.019579393789172173,
0.09588643163442612,
0.03475363180041313,
0.02957388199865818,
-0.09178705513477325,
0.05372774600982666,
0.1819772720336914,
-0.08811376243829727,
-0.013076018542051315,
-0.009712892584502697,
0.03970387578010559,
0.06535130739212036,
0.03788746893405914,
0.004707352723926306,
-0.01682492531836033,
0.13844634592533112,
-0.05243726819753647,
-0.04398244246840477,
-0.03714396804571152,
-0.058078281581401825,
0.07354747503995895,
-0.1120067834854126,
0.03791486471891403,
-0.16329070925712585,
-0.19025737047195435,
0.07546354830265045,
0.0886528417468071,
0.025340210646390915,
-0.020131204277276993,
0.0468640960752964,
-0.01600790210068226,
0.028638293966650963,
-0.06179232522845268,
-0.129450723528862,
-0.057262077927589417,
0.05990894138813019,
-0.06729327887296677,
0.050959326326847076,
-0.16163933277130127,
0.017704447731375694,
-0.18049030005931854,
0.02598327025771141,
-0.18970246613025665,
-0.07073856890201569,
-0.12473200261592865,
0.14316600561141968,
-0.02674616314470768,
-0.05317050591111183,
-0.01964261569082737,
0.009653044864535332,
0.011358062736690044,
0.16429665684700012,
-0.12801940739154816,
-0.08801636844873428,
0.18164290487766266,
-0.1847827434539795,
-0.13041678071022034,
0.09720402210950851,
0.015267256647348404,
-0.03009377047419548,
0.055585313588380814,
0.0966322273015976,
0.07243059575557709,
-0.16863064467906952,
0.010444138199090958,
0.10724561661481857,
-0.07620013505220413,
-0.08326088637113571,
0.05415419116616249,
-0.04466581344604492,
-0.11929203569889069,
0.05301758646965027,
-0.06819075345993042,
0.09609093517065048,
-0.008397716097533703,
-0.0921882912516594,
-0.05586714670062065,
-0.055545855313539505,
0.15100176632404327,
-0.008158930577337742,
0.030477842316031456,
-0.09772173315286636,
-0.023348217830061913,
-0.015836423262953758,
0.05053737759590149,
0.044024474918842316,
0.019167140126228333,
-0.051785554736852646,
0.08821386098861694,
0.016745105385780334,
-0.007694256491959095,
-0.08522256463766098,
-0.08010890334844589,
0.007350113242864609,
-0.0371958389878273,
0.007835379801690578,
0.06929154694080353,
0.11596700549125671,
0.015394825488328934,
-0.024712417274713516,
-0.0663597509264946,
0.02870883420109749,
0.051949866116046906,
0.030848871916532516,
-0.15633843839168549,
0.019255906343460083,
-0.06072322279214859,
0.050792619585990906,
0.06753624975681305,
0.011580821126699448,
0.018561169505119324,
0.1386111080646515,
-0.028497204184532166,
0.07065896689891815,
-0.08956515789031982,
0.0009997037705034018,
-0.034948356449604034,
-0.0059778220020234585,
0.04770515114068985,
0.021051863208413124,
-0.03927377983927727,
0.13664332032203674,
-0.029509365558624268,
0.29124346375465393,
0.1799296736717224,
-0.1273975670337677,
0.01784171722829342,
0.023402761667966843,
-0.04922442138195038,
-0.008664319291710854,
0.031081950291991234,
-0.03903752192854881,
-0.003169015748426318,
-0.0163287203758955,
0.09436716139316559,
-0.04414067417383194,
-0.02461479976773262,
-0.000020373099687276408,
-0.08162034302949905,
-0.05591414123773575,
0.014619356021285057,
0.07283163070678711,
-0.08416441828012466,
0.20177511870861053,
0.3581709861755371,
-0.05043787136673927,
0.1040181964635849,
-0.06986794620752335,
-0.0007022339850664139,
0.009025349281728268,
-0.003954365383833647,
-0.02473042532801628,
0.149778813123703,
-0.09230166673660278,
0.024940691888332367,
0.0690922662615776,
-0.0074332538060843945,
0.018075160682201385,
-0.10188843309879303,
-0.026986869052052498,
-0.009653747081756592,
-0.00948308501392603,
-0.03395446762442589,
0.06995125859975815,
-0.022270353510975838,
0.08512672781944275,
-0.04598329961299896,
-0.16157430410385132,
0.11031193286180496,
0.00897555984556675,
-0.03604778274893761,
0.1638719141483307,
-0.17229001224040985,
-0.25250986218452454,
-0.12760251760482788,
-0.06413808465003967,
-0.05819695070385933,
0.037504296749830246,
0.09048391133546829,
-0.03314290940761566,
-0.0859275758266449,
0.01424668449908495,
-0.03578190132975578,
0.0913093090057373,
0.04288526624441147,
-0.03138893097639084,
-0.01147190947085619,
0.05036799982190132,
-0.13010704517364502,
-0.0660182312130928,
0.016346851363778114,
-0.016484776511788368,
0.07122088968753815,
0.0006568579701706767,
0.05102213844656944,
0.07442642003297806,
0.013516020029783249,
-0.003971761558204889,
-0.012268785387277603,
0.1304006576538086,
-0.0354815348982811,
0.07693187147378922,
0.18715216219425201,
-0.04543235898017883,
0.08389595150947571,
0.17205554246902466,
0.03938968479633331,
-0.02899882383644581,
0.008737334050238132,
-0.05748717486858368,
-0.0696149617433548,
-0.17817702889442444,
-0.15704093873500824,
-0.0852036103606224,
0.02782154642045498,
0.058154791593551636,
0.06178504228591919,
0.13064682483673096,
0.09018352627754211,
-0.036058053374290466,
-0.04058382287621498,
-0.011607792228460312,
0.03093578852713108,
0.15367136895656586,
-0.027083247900009155,
0.0910755842924118,
-0.06412417441606522,
-0.10013813525438309,
0.09967942535877228,
0.04037550091743469,
0.054885391145944595,
0.08154819160699844,
-0.0429360568523407,
0.0697258859872818,
0.2049383521080017,
0.03621074929833412,
0.20071189105510712,
0.018231306225061417,
-0.06527164578437805,
-0.01574704796075821,
-0.0649794414639473,
-0.012932682409882545,
0.028121570125222206,
-0.051491014659404755,
-0.025638533756136894,
-0.034354619681835175,
-0.10528955608606339,
0.09961353242397308,
0.179172083735466,
0.0829368308186531,
-0.14196208119392395,
-0.03960409015417099,
0.05285785347223282,
0.016646381467580795,
0.004025689326226711,
0.05878733843564987,
-0.02012636512517929,
-0.049731817096471786,
0.09975466877222061,
-0.014009006321430206,
0.062000833451747894,
0.09378597885370255,
0.05303246155381203,
-0.03673456609249115,
-0.01608637161552906,
0.046908289194107056,
0.08140138536691666,
-0.2915024757385254,
0.2309066206216812,
0.000424650264903903,
0.015912050381302834,
-0.0995609313249588,
0.03774401545524597,
0.05278894305229187,
0.14578425884246826,
0.137328639626503,
0.05245071277022362,
-0.03503747284412384,
-0.008352880366146564,
-0.07314619421958923,
0.023436900228261948,
0.018493052572011948,
-0.007750345394015312,
-0.04437485337257385,
-0.022820137441158295,
-0.03129628300666809,
0.0189493540674448,
0.07305704802274704,
-0.12352835386991501,
-0.07839654386043549,
0.04893326014280319,
0.07417245209217072,
0.013776702806353569,
-0.09510486572980881,
-0.06009094789624214,
-0.13534140586853027,
0.19236400723457336,
-0.10255414992570877,
-0.06133381649851799,
-0.09029154479503632,
-0.14704576134681702,
0.08490977436304092,
-0.08253493160009384,
0.11668930947780609,
-0.05419721454381943,
0.004679054953157902,
-0.12927989661693573,
-0.1686774045228958,
0.1153784692287445,
-0.18385888636112213,
-0.043396759778261185,
-0.037009164690971375,
0.16129067540168762,
-0.02739127166569233,
0.01579792983829975,
0.034523140639066696,
-0.0034168094862252474,
-0.05043509975075722,
-0.11014696210622787,
0.007392421364784241,
-0.06991126388311386,
0.0611485131084919,
0.0316687636077404,
-0.08450444042682648,
-0.14086830615997314,
0.05582330375909805,
0.04102933034300804,
0.12592840194702148,
0.2542504072189331,
-0.0658426508307457,
0.13708223402500153,
0.22944258153438568,
0.0029550709296017885,
-0.3584939241409302,
-0.1366182416677475,
-0.12763579189777374,
-0.027587389573454857,
-0.0010131774470210075,
-0.0976845845580101,
0.14146307110786438,
0.07158565521240234,
-0.09955295920372009,
0.08754395693540573,
-0.12861081957817078,
-0.09119800478219986,
0.2654551565647125,
-0.014697212725877762,
0.357438862323761,
-0.06108144298195839,
-0.04269307106733322,
-0.05783453211188316,
-0.16390693187713623,
0.026751583442091942,
-0.10778053849935532,
0.01915505900979042,
0.01910926029086113,
-0.005076648201793432,
-0.018528426066040993,
-0.09858766943216324,
0.1387135535478592,
0.02720222808420658,
0.05728777125477791,
-0.10462255030870438,
0.0070261843502521515,
0.13820603489875793,
0.010737334378063679,
0.08698074519634247,
-0.14668898284435272,
0.04903285950422287,
0.010049091652035713,
-0.006496770307421684,
-0.07527830451726913,
0.19057531654834747,
-0.023970868438482285,
-0.11207215487957001,
0.0059515987522900105,
0.009605929255485535,
-0.02960684336721897,
0.003433322999626398,
0.14573849737644196,
0.05521341785788536,
0.05743761733174324,
0.09442105889320374,
0.03797765076160431,
-0.14433211088180542,
-0.021437473595142365,
-0.049359358847141266,
-0.09271178394556046,
0.08866504579782486,
-0.022054849192500114,
0.06439719349145889,
0.0885264053940773,
-0.022673873230814934,
0.058663707226514816,
0.05713868886232376,
0.006388388574123383,
-0.04447218030691147,
0.1326858103275299,
-0.22846363484859467,
0.03763239458203316,
0.006867947522550821,
0.013001887127757072,
0.0688536986708641,
0.1299002319574356,
0.12388277798891068,
-0.01977502554655075,
-0.007926560007035732,
0.005793923977762461,
0.020411120727658272,
-0.11039508879184723,
0.08035300672054291,
0.03835397958755493,
0.03755723685026169,
-0.0942101925611496,
0.08476165682077408,
-0.05574128404259682,
-0.15041793882846832,
-0.016689863055944443,
0.018336832523345947,
-0.1259026974439621,
-0.11248284578323364,
-0.002191348699852824,
0.028456280007958412,
-0.08758635818958282,
-0.0820339098572731,
-0.08465031534433365,
-0.1452251821756363,
0.01624228246510029,
0.1115662157535553,
0.1212272122502327,
0.07654900848865509,
0.006798803806304932,
-0.028602980077266693,
0.032594647258520126,
0.02497466839849949,
0.018207978457212448,
0.03657248243689537,
-0.061157356947660446,
-0.0046965591609478,
-0.023798566311597824,
0.07756116986274719,
-0.06577792018651962,
0.02935022860765457,
-0.08743229508399963,
-0.0016819302691146731,
-0.15613031387329102,
-0.06604371219873428,
-0.08779200911521912,
-0.035656869411468506,
0.01566918008029461,
-0.10976777225732803,
0.011987239122390747,
0.021242838352918625,
-0.09546208381652832,
0.01420699991285801,
0.03293539211153984,
0.01630457676947117,
-0.12853434681892395,
-0.04364178702235222,
0.10400301963090897,
-0.03714175149798393,
0.11382774263620377,
0.12661941349506378,
-0.033567000180482864,
0.09181298315525055,
-0.1731031984090805,
-0.1058671623468399,
0.09303311258554459,
0.02766038104891777,
0.03299405425786972,
0.03531382232904434,
-0.00397580536082387,
0.10194163024425507,
-0.017480790615081787,
0.029286781325936317,
0.024921447038650513,
-0.09993304312229156,
0.0750901997089386,
0.046370986849069595,
-0.13187800347805023,
-0.015945207327604294,
-0.10950565338134766,
0.1482178419828415,
-0.03494003787636757,
0.179848775267601,
-0.062275126576423645,
0.04245625436306,
-0.04500404745340347,
0.02846476063132286,
-0.031055651605129242,
-0.1452074646949768,
-0.11563625186681747,
-0.019356124103069305,
-0.05030297487974167,
-0.002911348594352603,
0.20681805908679962,
-0.02791924774646759,
-0.07116033881902695,
0.06214134767651558,
0.04251352697610855,
0.052871253341436386,
0.05231841281056404,
0.21319837868213654,
0.0039850338362157345,
-0.002044978318735957,
-0.18095450103282928,
-0.0024179951287806034,
0.021370040252804756,
-0.11449690163135529,
0.11940469592809677,
0.13147158920764923,
0.05428258329629898,
0.06622199714183807,
0.05821435898542404,
0.008852548897266388,
-0.15236961841583252,
-0.18108133971691132,
0.012176519259810448,
0.04962936043739319,
0.04307715594768524,
0.07645180076360703,
0.13724203407764435,
-0.04895835369825363,
0.016717305406928062,
0.014942338690161705,
0.0037319674156606197,
-0.13004617393016815,
-0.12358441203832626,
-0.04217231646180153,
-0.08742937445640564,
0.018789784982800484,
-0.024176865816116333,
-0.04481556639075279,
0.021785477176308632,
0.056746646761894226,
-0.050658758729696274,
0.13957399129867554,
-0.06693513691425323,
0.01834893226623535,
0.05843036249279976,
0.015852680429816246,
-0.025628482922911644,
0.03540885075926781,
-0.09697479009628296,
-0.14305727183818817,
0.004615216050297022,
-0.03746959567070007,
-0.0031541434582322836,
-0.00691084424033761,
0.019598767161369324,
-0.05465753749012947,
-0.06703343242406845,
-0.06970471888780594,
0.013798105530440807,
-0.008291014470160007,
0.14248773455619812,
0.0037751116324216127,
0.05139359086751938,
0.04676646366715431,
0.056649014353752136,
-0.058088455349206924,
-0.24053026735782623,
-0.06644785404205322,
0.13705971837043762,
0.006812628824263811,
0.09889998286962509,
0.007129305973649025,
0.015361547470092773,
-0.034511666744947433,
0.21335048973560333,
0.29256871342658997,
-0.012718585319817066,
0.07837597280740738,
-0.021146077662706375,
0.01697457581758499,
0.017650241032242775,
0.07031740993261337,
0.08397704362869263,
0.27267423272132874,
-0.07354915887117386,
-0.03721794858574867,
-0.07513681054115295,
-0.025365756824612617,
-0.1647317111492157,
0.032718878239393234,
-0.062081966549158096,
-0.08808004856109619,
-0.05304892733693123,
0.07057294249534607,
-0.0556345134973526,
0.07524049282073975,
0.05082622542977333,
-0.08903726190328598,
-0.05197371914982796,
-0.008418477140367031,
0.18906529247760773,
0.0655972957611084,
0.0482930950820446,
-0.047962356358766556,
-0.03923722356557846,
0.12431632727384567,
-0.0006643490632995963,
-0.12685540318489075,
-0.09066825360059738,
0.057282786816358566,
0.021993868052959442,
0.1896102875471115,
0.011788120493292809,
0.08006758987903595,
0.09385612607002258,
0.0649351105093956,
-0.07380011677742004,
0.055829498916864395,
0.051572948694229126,
-0.12977804243564606,
-0.045271940529346466,
-0.11319991946220398,
-0.02690592221915722,
-0.05521731451153755,
0.008536159060895443,
-0.11508329212665558,
0.0336746871471405,
0.06968450546264648,
-0.09562533348798752,
-0.05712265148758888,
0.1024143323302269,
-0.05075285583734512,
0.07010210305452347,
0.019348865374922752,
-0.004245176445692778,
-0.0645257905125618,
-0.061401546001434326,
0.04789743945002556,
0.06838113814592361,
-0.13979904353618622,
-0.06083167716860771,
-0.059637658298015594,
0.026068173348903656,
0.012391702271997929,
-0.006414690054953098,
-0.053411733359098434,
-0.05807647109031677,
-0.10114077478647232,
0.030499979853630066,
-0.15682347118854523,
-0.0036474561784416437,
0.07030651718378067,
0.020259331911802292,
0.03049745410680771,
-0.035343945026397705,
-0.0023540616966784,
0.014993999153375626,
-0.07642891258001328,
-0.07204828411340714
] |
null | null | transformers |
# Model Card for DistilBERT base multilingual (cased)
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training Details](#training-details)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Citation](#citation)
8. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
This model is a distilled version of the [BERT base multilingual model](https://huggingface.co/bert-base-multilingual-cased/). The code for the distillation process can be found [here](https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation). This model is cased: it does make a difference between english and English.
The model is trained on the concatenation of Wikipedia in 104 different languages listed [here](https://github.com/google-research/bert/blob/master/multilingual.md#list-of-languages).
The model has 6 layers, 768 dimension and 12 heads, totalizing 134M parameters (compared to 177M parameters for mBERT-base).
On average, this model, referred to as DistilmBERT, is twice as fast as mBERT-base.
We encourage potential users of this model to check out the [BERT base multilingual model card](https://huggingface.co/bert-base-multilingual-cased) to learn more about usage, limitations and potential biases.
- **Developed by:** Victor Sanh, Lysandre Debut, Julien Chaumond, Thomas Wolf (Hugging Face)
- **Model type:** Transformer-based language model
- **Language(s) (NLP):** 104 languages; see full list [here](https://github.com/google-research/bert/blob/master/multilingual.md#list-of-languages)
- **License:** Apache 2.0
- **Related Models:** [BERT base multilingual model](https://huggingface.co/bert-base-multilingual-cased)
- **Resources for more information:**
- [GitHub Repository](https://github.com/huggingface/transformers/blob/main/examples/research_projects/distillation/README.md)
- [Associated Paper](https://arxiv.org/abs/1910.01108)
# Uses
## Direct Use and Downstream Use
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=bert) to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation you should look at model like GPT2.
## Out of Scope Use
The model should not be used to intentionally create hostile or alienating environments for people. The model was not trained to be factual or true representations of people or events, and therefore using the models to generate such content is out-of-scope for the abilities of this model.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training Details
- The model was pretrained with the supervision of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) on the concatenation of Wikipedia in 104 different languages
- The model has 6 layers, 768 dimension and 12 heads, totalizing 134M parameters.
- Further information about the training procedure and data is included in the [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) model card.
# Evaluation
The model developers report the following accuracy results for DistilmBERT (see [GitHub Repo](https://github.com/huggingface/transformers/blob/main/examples/research_projects/distillation/README.md)):
> Here are the results on the test sets for 6 of the languages available in XNLI. The results are computed in the zero shot setting (trained on the English portion and evaluated on the target language portion):
| Model | English | Spanish | Chinese | German | Arabic | Urdu |
| :---: | :---: | :---: | :---: | :---: | :---: | :---:|
| mBERT base cased (computed) | 82.1 | 74.6 | 69.1 | 72.3 | 66.4 | 58.5 |
| mBERT base uncased (reported)| 81.4 | 74.3 | 63.8 | 70.5 | 62.1 | 58.3 |
| DistilmBERT | 78.2 | 69.1 | 64.0 | 66.3 | 59.1 | 54.7 |
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Citation
```bibtex
@article{Sanh2019DistilBERTAD,
title={DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter},
author={Victor Sanh and Lysandre Debut and Julien Chaumond and Thomas Wolf},
journal={ArXiv},
year={2019},
volume={abs/1910.01108}
}
```
APA
- Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.
# How to Get Started With the Model
You can use the model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='distilbert-base-multilingual-cased')
>>> unmasker("Hello I'm a [MASK] model.")
[{'score': 0.040800247341394424,
'sequence': "Hello I'm a virtual model.",
'token': 37859,
'token_str': 'virtual'},
{'score': 0.020015988498926163,
'sequence': "Hello I'm a big model.",
'token': 22185,
'token_str': 'big'},
{'score': 0.018680453300476074,
'sequence': "Hello I'm a Hello model.",
'token': 31178,
'token_str': 'Hello'},
{'score': 0.017396586015820503,
'sequence': "Hello I'm a model model.",
'token': 13192,
'token_str': 'model'},
{'score': 0.014229810796678066,
'sequence': "Hello I'm a perfect model.",
'token': 43477,
'token_str': 'perfect'}]
```
| {"language": ["multilingual", "af", "sq", "ar", "an", "hy", "ast", "az", "ba", "eu", "bar", "be", "bn", "inc", "bs", "br", "bg", "my", "ca", "ceb", "ce", "zh", "cv", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "gl", "ka", "de", "el", "gu", "ht", "he", "hi", "hu", "is", "io", "id", "ga", "it", "ja", "jv", "kn", "kk", "ky", "ko", "la", "lv", "lt", "roa", "nds", "lm", "mk", "mg", "ms", "ml", "mr", "mn", "min", "ne", "new", "nb", "nn", "oc", "fa", "pms", "pl", "pt", "pa", "ro", "ru", "sco", "sr", "hr", "scn", "sk", "sl", "aze", "es", "su", "sw", "sv", "tl", "tg", "th", "ta", "tt", "te", "tr", "uk", "ud", "uz", "vi", "vo", "war", "cy", "fry", "pnb", "yo"], "license": "apache-2.0", "datasets": ["wikipedia"]} | fill-mask | distilbert/distilbert-base-multilingual-cased | [
"transformers",
"pytorch",
"tf",
"onnx",
"safetensors",
"distilbert",
"fill-mask",
"multilingual",
"af",
"sq",
"ar",
"an",
"hy",
"ast",
"az",
"ba",
"eu",
"bar",
"be",
"bn",
"inc",
"bs",
"br",
"bg",
"my",
"ca",
"ceb",
"ce",
"zh",
"cv",
"hr",
"cs",
"da",
"nl",
"en",
"et",
"fi",
"fr",
"gl",
"ka",
"de",
"el",
"gu",
"ht",
"he",
"hi",
"hu",
"is",
"io",
"id",
"ga",
"it",
"ja",
"jv",
"kn",
"kk",
"ky",
"ko",
"la",
"lv",
"lt",
"roa",
"nds",
"lm",
"mk",
"mg",
"ms",
"ml",
"mr",
"mn",
"min",
"ne",
"new",
"nb",
"nn",
"oc",
"fa",
"pms",
"pl",
"pt",
"pa",
"ro",
"ru",
"sco",
"sr",
"scn",
"sk",
"sl",
"aze",
"es",
"su",
"sw",
"sv",
"tl",
"tg",
"th",
"ta",
"tt",
"te",
"tr",
"uk",
"ud",
"uz",
"vi",
"vo",
"war",
"cy",
"fry",
"pnb",
"yo",
"dataset:wikipedia",
"arxiv:1910.01108",
"arxiv:1910.09700",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1910.01108",
"1910.09700"
] | [
"multilingual",
"af",
"sq",
"ar",
"an",
"hy",
"ast",
"az",
"ba",
"eu",
"bar",
"be",
"bn",
"inc",
"bs",
"br",
"bg",
"my",
"ca",
"ceb",
"ce",
"zh",
"cv",
"hr",
"cs",
"da",
"nl",
"en",
"et",
"fi",
"fr",
"gl",
"ka",
"de",
"el",
"gu",
"ht",
"he",
"hi",
"hu",
"is",
"io",
"id",
"ga",
"it",
"ja",
"jv",
"kn",
"kk",
"ky",
"ko",
"la",
"lv",
"lt",
"roa",
"nds",
"lm",
"mk",
"mg",
"ms",
"ml",
"mr",
"mn",
"min",
"ne",
"new",
"nb",
"nn",
"oc",
"fa",
"pms",
"pl",
"pt",
"pa",
"ro",
"ru",
"sco",
"sr",
"hr",
"scn",
"sk",
"sl",
"aze",
"es",
"su",
"sw",
"sv",
"tl",
"tg",
"th",
"ta",
"tt",
"te",
"tr",
"uk",
"ud",
"uz",
"vi",
"vo",
"war",
"cy",
"fry",
"pnb",
"yo"
] | TAGS
#transformers #pytorch #tf #onnx #safetensors #distilbert #fill-mask #multilingual #af #sq #ar #an #hy #ast #az #ba #eu #bar #be #bn #inc #bs #br #bg #my #ca #ceb #ce #zh #cv #hr #cs #da #nl #en #et #fi #fr #gl #ka #de #el #gu #ht #he #hi #hu #is #io #id #ga #it #ja #jv #kn #kk #ky #ko #la #lv #lt #roa #nds #lm #mk #mg #ms #ml #mr #mn #min #ne #new #nb #nn #oc #fa #pms #pl #pt #pa #ro #ru #sco #sr #scn #sk #sl #aze #es #su #sw #sv #tl #tg #th #ta #tt #te #tr #uk #ud #uz #vi #vo #war #cy #fry #pnb #yo #dataset-wikipedia #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| Model Card for DistilBERT base multilingual (cased)
===================================================
Table of Contents
=================
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training Details
5. Evaluation
6. Environmental Impact
7. Citation
8. How To Get Started With the Model
Model Details
=============
Model Description
-----------------
This model is a distilled version of the BERT base multilingual model. The code for the distillation process can be found here. This model is cased: it does make a difference between english and English.
The model is trained on the concatenation of Wikipedia in 104 different languages listed here.
The model has 6 layers, 768 dimension and 12 heads, totalizing 134M parameters (compared to 177M parameters for mBERT-base).
On average, this model, referred to as DistilmBERT, is twice as fast as mBERT-base.
We encourage potential users of this model to check out the BERT base multilingual model card to learn more about usage, limitations and potential biases.
* Developed by: Victor Sanh, Lysandre Debut, Julien Chaumond, Thomas Wolf (Hugging Face)
* Model type: Transformer-based language model
* Language(s) (NLP): 104 languages; see full list here
* License: Apache 2.0
* Related Models: BERT base multilingual model
* Resources for more information:
+ GitHub Repository
+ Associated Paper
Uses
====
Direct Use and Downstream Use
-----------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation you should look at model like GPT2.
Out of Scope Use
----------------
The model should not be used to intentionally create hostile or alienating environments for people. The model was not trained to be factual or true representations of people or events, and therefore using the models to generate such content is out-of-scope for the abilities of this model.
Bias, Risks, and Limitations
============================
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
Recommendations
---------------
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Training Details
================
* The model was pretrained with the supervision of bert-base-multilingual-cased on the concatenation of Wikipedia in 104 different languages
* The model has 6 layers, 768 dimension and 12 heads, totalizing 134M parameters.
* Further information about the training procedure and data is included in the bert-base-multilingual-cased model card.
Evaluation
==========
The model developers report the following accuracy results for DistilmBERT (see GitHub Repo):
>
> Here are the results on the test sets for 6 of the languages available in XNLI. The results are computed in the zero shot setting (trained on the English portion and evaluated on the target language portion):
>
>
>
Environmental Impact
====================
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
* Hardware Type: More information needed
* Hours used: More information needed
* Cloud Provider: More information needed
* Compute Region: More information needed
* Carbon Emitted: More information needed
APA
* Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.
How to Get Started With the Model
=================================
You can use the model directly with a pipeline for masked language modeling:
| [] | [
"TAGS\n#transformers #pytorch #tf #onnx #safetensors #distilbert #fill-mask #multilingual #af #sq #ar #an #hy #ast #az #ba #eu #bar #be #bn #inc #bs #br #bg #my #ca #ceb #ce #zh #cv #hr #cs #da #nl #en #et #fi #fr #gl #ka #de #el #gu #ht #he #hi #hu #is #io #id #ga #it #ja #jv #kn #kk #ky #ko #la #lv #lt #roa #nds #lm #mk #mg #ms #ml #mr #mn #min #ne #new #nb #nn #oc #fa #pms #pl #pt #pa #ro #ru #sco #sr #scn #sk #sl #aze #es #su #sw #sv #tl #tg #th #ta #tt #te #tr #uk #ud #uz #vi #vo #war #cy #fry #pnb #yo #dataset-wikipedia #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
304
] | [
"passage: TAGS\n#transformers #pytorch #tf #onnx #safetensors #distilbert #fill-mask #multilingual #af #sq #ar #an #hy #ast #az #ba #eu #bar #be #bn #inc #bs #br #bg #my #ca #ceb #ce #zh #cv #hr #cs #da #nl #en #et #fi #fr #gl #ka #de #el #gu #ht #he #hi #hu #is #io #id #ga #it #ja #jv #kn #kk #ky #ko #la #lv #lt #roa #nds #lm #mk #mg #ms #ml #mr #mn #min #ne #new #nb #nn #oc #fa #pms #pl #pt #pa #ro #ru #sco #sr #scn #sk #sl #aze #es #su #sw #sv #tl #tg #th #ta #tt #te #tr #uk #ud #uz #vi #vo #war #cy #fry #pnb #yo #dataset-wikipedia #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
-0.07207657396793365,
0.05528562143445015,
-0.014104756526648998,
0.01435353234410286,
0.009810615330934525,
0.042289555072784424,
0.08107572048902512,
0.10593385994434357,
0.10635600239038467,
0.1179247498512268,
0.13203608989715576,
0.10837867110967636,
0.09367721527814865,
0.11516761779785156,
-0.01305240485817194,
-0.14665405452251434,
0.020809847861528397,
-0.00729699432849884,
-0.0659831166267395,
0.08294975012540817,
0.02632264606654644,
-0.06253407150506973,
0.09798832982778549,
-0.08693478256464005,
0.07753761857748032,
0.00023163061996456236,
-0.034907445311546326,
-0.015686888247728348,
0.05963517352938652,
0.03952730819582939,
0.032739732414484024,
0.07306834310293198,
0.047997210174798965,
-0.21657659113407135,
0.0343787781894207,
0.006283959373831749,
-0.07155948877334595,
0.01780465990304947,
0.036173075437545776,
-0.09658201783895493,
0.10065865516662598,
-0.07437459379434586,
-0.05947975814342499,
0.04389278590679169,
-0.14288190007209778,
-0.19282566010951996,
-0.03675815463066101,
0.11342228204011917,
0.052443727850914,
0.028596054762601852,
-0.02115611545741558,
0.12240589410066605,
-0.0868799164891243,
0.04918457195162773,
0.22262977063655853,
-0.2025708258152008,
-0.03187556564807892,
0.07846138626337051,
0.034170717000961304,
0.034550897777080536,
-0.06639935076236725,
0.024153508245944977,
0.013666007667779922,
0.009811656549572945,
0.01822536066174507,
-0.03450697287917137,
0.10378462076187134,
0.04211233928799629,
-0.07677514106035233,
-0.0026266579516232014,
0.11225736141204834,
0.03264252468943596,
0.05709362030029297,
0.07990755140781403,
-0.05253945291042328,
-0.12625132501125336,
-0.06471849977970123,
-0.021748820319771767,
0.03077355958521366,
0.017258180305361748,
0.033955179154872894,
0.07759208977222443,
-0.06074609234929085,
0.024807294830679893,
-0.018707554787397385,
0.07358504086732864,
0.04438009113073349,
0.023359153419733047,
-0.010633456520736217,
-0.0017092502675950527,
-0.03477099910378456,
-0.14607886970043182,
0.010328399017453194,
0.0006507023354060948,
-0.02684471197426319,
-0.011646313592791557,
0.08398960530757904,
0.08261383324861526,
0.129214808344841,
0.15248094499111176,
-0.07075909525156021,
0.08737307786941528,
0.061955515295267105,
0.07023479044437408,
-0.002347112400457263,
-0.011304350569844246,
-0.08503136038780212,
-0.10623722523450851,
-0.03685899078845978,
0.0051163663156330585,
-0.013211914338171482,
0.008601676672697067,
-0.061504390090703964,
0.013091887347400188,
0.024248402565717697,
0.03265808895230293,
0.034388430416584015,
0.048007842153310776,
-0.06821192055940628,
0.03641302138566971,
0.08879788219928741,
-0.05745254084467888,
0.024140724912285805,
0.09519080072641373,
0.019569888710975647,
0.028926264494657516,
-0.03439163789153099,
0.0005889958119951189,
0.0017678907606750727,
0.10901034623384476,
-0.04083077237010002,
0.0023720094468444586,
-0.002317622071132064,
-0.06099362671375275,
0.06872906535863876,
-0.04647717997431755,
0.03489232063293457,
-0.09973527491092682,
-0.054629888385534286,
-0.019712788984179497,
0.012664729729294777,
-0.06499715894460678,
0.011687709018588066,
-0.05796866491436958,
-0.09396056085824966,
-0.0052337986417114735,
0.012818245217204094,
0.0057730115950107574,
-0.0874081701040268,
0.06286917626857758,
-0.006999238859862089,
0.11510961502790451,
0.02014882303774357,
-0.010429847985506058,
-0.03225807845592499,
0.0742298811674118,
-0.061093468219041824,
-0.017081644386053085,
-0.0982338935136795,
0.05737052485346794,
-0.07956564426422119,
-0.09288696199655533,
-0.0956137403845787,
-0.005762770771980286,
0.007961509749293327,
0.18702711164951324,
-0.16014209389686584,
-0.0755566731095314,
0.2544500231742859,
-0.06598108261823654,
-0.08369167149066925,
0.10781913250684738,
0.06291816383600235,
-0.06361320614814758,
0.04708278179168701,
0.07776174694299698,
0.04933977872133255,
-0.11188142001628876,
-0.06695009768009186,
0.052439603954553604,
-0.0013633507769554853,
0.04892363026738167,
0.10615391284227371,
0.047141194343566895,
0.03657970950007439,
0.021627847105264664,
-0.0065369801595807076,
0.04544999822974205,
-0.07170023769140244,
-0.06981511414051056,
0.05604979768395424,
-0.06824551522731781,
0.05866624042391777,
0.07360092550516129,
-0.021484073251485825,
-0.06590411812067032,
-0.022884542122483253,
-0.17304283380508423,
0.0674598291516304,
0.03928137198090553,
-0.019226863980293274,
-0.09738043695688248,
0.07436791807413101,
0.0301737692207098,
0.016330493614077568,
-0.05874773859977722,
0.02921387366950512,
-0.029777146875858307,
0.04472925141453743,
0.006857807748019695,
0.07499422132968903,
0.12188898772001266,
0.011300886049866676,
-0.04770089313387871,
-0.046629976481199265,
0.10186927020549774,
0.016399720683693886,
-0.042482778429985046,
-0.227033793926239,
0.029630258679389954,
-0.05446281656622887,
0.056772008538246155,
-0.14999963343143463,
0.025602640584111214,
0.12052369862794876,
0.14655804634094238,
-0.0044323052279651165,
-0.004001467023044825,
-0.005898409988731146,
0.0472077950835228,
0.0006452175439335406,
-0.011925960890948772,
0.034004971385002136,
-0.04296776279807091,
-0.06228886544704437,
0.055973734706640244,
-0.06446275115013123,
0.2259942591190338,
0.10415428876876831,
-0.0854019820690155,
-0.06740456819534302,
0.07738616317510605,
-0.003935450222343206,
-0.012700950726866722,
0.07400936633348465,
-0.009312349371612072,
0.03220421448349953,
0.03211682289838791,
0.03844575956463814,
-0.04596490040421486,
-0.03710228577256203,
0.03898080438375473,
-0.06657557934522629,
-0.031059779226779938,
0.1424536108970642,
0.05441882833838463,
-0.1733987033367157,
0.1723131239414215,
0.17728574573993683,
0.03682982921600342,
0.11055643856525421,
0.015317043289542198,
-0.030014336109161377,
-0.06530346721410751,
0.02696019969880581,
0.02533818781375885,
0.09497585892677307,
-0.12018415331840515,
-0.001937643508426845,
-0.0030318377539515495,
-0.01968378946185112,
-0.004083352629095316,
-0.07729234546422958,
-0.06586044281721115,
-0.03411681950092316,
-0.04248565062880516,
0.0020017847418785095,
0.03087705746293068,
-0.033983148634433746,
0.1022469773888588,
0.02845035307109356,
-0.07012391090393066,
-0.060915861278772354,
-0.01826230064034462,
-0.0780239924788475,
0.18016529083251953,
-0.15344960987567902,
-0.13882452249526978,
0.03850967809557915,
-0.11200269311666489,
0.0528392493724823,
0.003878075862303376,
-0.008074930869042873,
-0.1308535486459732,
-0.022991077974438667,
0.009227018803358078,
0.01992945931851864,
-0.05798708274960518,
0.012044200673699379,
-0.013669252395629883,
0.04204537346959114,
-0.018620971590280533,
-0.027521712705492973,
-0.036658499389886856,
0.01123669184744358,
-0.026328058913350105,
0.11977386474609375,
-0.08721762150526047,
0.060308389365673065,
0.08462944626808167,
0.04959588497877121,
0.03074316307902336,
-0.009481823071837425,
0.16299395263195038,
-0.09501001238822937,
0.031003663316369057,
-0.024088645353913307,
-0.015479122288525105,
0.06399353593587875,
0.15979915857315063,
0.0699954628944397,
-0.07000791281461716,
-0.052031416445970535,
-0.020124290138483047,
-0.011012911796569824,
-0.12674711644649506,
-0.060713741928339005,
-0.04060456156730652,
0.10450445860624313,
0.01734630949795246,
0.0790347009897232,
0.007844237610697746,
0.032212261110544205,
-0.05082767829298973,
-0.09436879307031631,
0.015623686835169792,
-0.00926506333053112,
0.030197743326425552,
-0.03306318074464798,
0.02428220771253109,
-0.032202668488025665,
-0.042961716651916504,
0.0681767612695694,
0.055652718991041183,
-0.04916975274682045,
0.05256805941462517,
0.027052972465753555,
0.049618590623140335,
0.1506011039018631,
0.005684583447873592,
0.04084595665335655,
0.058363430202007294,
-0.03455453738570213,
0.0044598765671253204,
-0.046003732830286026,
-0.00600842572748661,
0.03456038981676102,
0.08445143699645996,
-0.008249988779425621,
0.05505817010998726,
-0.022728344425559044,
0.09003590792417526,
0.04020695760846138,
0.08121764659881592,
-0.1651119887828827,
-0.009854434989392757,
0.054556574672460556,
0.04833628982305527,
-0.0221958477050066,
0.018318260088562965,
0.04828857630491257,
-0.04910600930452347,
0.1254410743713379,
0.05057521164417267,
0.048005688935518265,
-0.03686351329088211,
0.059778355062007904,
0.025378573685884476,
0.00036160743911750615,
-0.009760867804288864,
0.052126381546258926,
-0.2454196661710739,
0.22510632872581482,
0.028415245935320854,
-0.008971055969595909,
-0.028200365602970123,
-0.05180345103144646,
0.03321386128664017,
0.11588822305202484,
0.16450732946395874,
0.052134934812784195,
-0.12422432750463486,
-0.17734743654727936,
-0.04086308181285858,
0.009124369360506535,
0.08760405331850052,
0.0035148910246789455,
0.039797306060791016,
0.040818773210048676,
-0.05781212076544762,
-0.025575973093509674,
0.028867848217487335,
-0.06634770333766937,
0.0008432762697339058,
0.0748882070183754,
-0.006223268806934357,
-0.0051679122261703014,
-0.030171941965818405,
-0.0442257858812809,
-0.18332260847091675,
0.07054147124290466,
-0.16290511190891266,
-0.00151679920963943,
-0.05724910646677017,
0.015368709340691566,
0.0922863557934761,
-0.11389778554439545,
-0.04445944353938103,
0.014072611927986145,
-0.028839929029345512,
-0.04673328623175621,
-0.017938144505023956,
0.07478756457567215,
-0.09608222544193268,
-0.16185469925403595,
-0.033826299011707306,
0.0863475427031517,
0.05723382905125618,
0.08046526461839676,
-0.025415552780032158,
0.026499822735786438,
-0.03086959198117256,
-0.09489388763904572,
0.11975707113742828,
-0.03662077337503433,
0.0003720506501849741,
0.036332447081804276,
-0.00412773247808218,
-0.09114498645067215,
-0.053635336458683014,
-0.025874974206089973,
0.06052977591753006,
0.34672871232032776,
-0.05426064878702164,
0.07934325188398361,
0.11480505764484406,
-0.04729139804840088,
-0.25177717208862305,
-0.12567868828773499,
-0.06820714473724365,
-0.000544247857760638,
0.01815805397927761,
-0.12743158638477325,
-0.014048873446881771,
-0.011082828044891357,
-0.007561024744063616,
0.048983216285705566,
-0.20031920075416565,
-0.030025668442249298,
0.13434338569641113,
0.03387819230556488,
0.1396634578704834,
-0.16326074302196503,
-0.04608839377760887,
-0.006547947879880667,
-0.0721365287899971,
-0.07693760097026825,
-0.027573399245738983,
0.009794983081519604,
-0.035375963896512985,
-0.029256632551550865,
0.019196659326553345,
-0.04231993481516838,
0.14710822701454163,
0.004815248306840658,
0.017316803336143494,
-0.08931490778923035,
-0.06220779940485954,
0.04924103990197182,
0.013579307124018669,
-0.015095775946974754,
-0.08985405415296555,
-0.04166339337825775,
0.0013269101036712527,
0.0324234664440155,
-0.1094835102558136,
0.044674042612314224,
-0.031044842675328255,
0.01081867702305317,
-0.05658774450421333,
0.05175616964697838,
0.057145971804857254,
0.0008130063069984317,
0.12552514672279358,
-0.045546386390924454,
0.13621091842651367,
0.043449290096759796,
0.10378110408782959,
0.0029236129485070705,
0.017192108556628227,
-0.0010384031338617206,
-0.030835788697004318,
-0.0006344077992253006,
-0.07958384603261948,
0.004143421538174152,
0.11349485069513321,
-0.0017315613804385066,
0.03474985435605049,
0.039379607886075974,
-0.11202395707368851,
-0.02788526751101017,
0.1411576122045517,
-0.1326582282781601,
-0.09842580556869507,
0.004600087646394968,
-0.04276933893561363,
0.0076673803851008415,
-0.007244599983096123,
0.07022600620985031,
-0.033566538244485855,
0.00034021789906546474,
-0.011213449761271477,
0.07676541060209274,
-0.03600259870290756,
0.15501311421394348,
0.0765637457370758,
0.029765255749225616,
-0.09364667534828186,
0.03537239506840706,
0.01531024370342493,
-0.06007761135697365,
-0.002473160158842802,
0.129897803068161,
-0.08151933550834656,
-0.09662222862243652,
0.06842389702796936,
0.07681943476200104,
0.08792676031589508,
-0.04266827180981636,
-0.04551147669553757,
-0.09724565595388412,
0.04822643846273422,
0.22130849957466125,
0.03738543763756752,
0.028430117294192314,
0.09132323414087296,
-0.004741375800222158,
0.04584833234548569,
0.1033165454864502,
0.0565471388399601,
-0.0025049401447176933,
-0.053316377103328705,
0.014049193821847439,
-0.04606166481971741,
0.1023690328001976,
-0.026446688920259476,
0.030509790405631065,
-0.16434670984745026,
0.028387771919369698,
-0.045234959572553635,
-0.014765538275241852,
-0.1412353515625,
-0.046433836221694946,
-0.018868843093514442,
-0.11302091926336288,
-0.04817260429263115,
-0.047040876001119614,
-0.06319744139909744,
0.011758559383451939,
0.006836484652012587,
0.07465580105781555,
-0.08823463320732117,
-0.07233607769012451,
0.09186439961194992,
-0.05342000350356102,
0.05867423117160797,
0.07960368692874908,
-0.0038044839166104794,
0.06455881148576736,
-0.18416982889175415,
-0.026443112641572952,
0.05691249668598175,
0.0341128334403038,
0.006327897775918245,
-0.030400799587368965,
-0.028334828093647957,
-0.05058031156659126,
-0.028919510543346405,
0.04604420065879822,
0.04078463092446327,
0.0072942012920975685,
0.15070046484470367,
-0.02776939794421196,
-0.06798991560935974,
-0.004483375232666731,
0.011166512966156006,
0.09535711258649826,
-0.055424660444259644,
0.020341886207461357,
-0.07287688553333282,
0.055032841861248016,
-0.12128506600856781,
0.017309606075286865,
0.0012959090527147055,
-0.10817188769578934,
-0.014462229795753956,
-0.005042241420596838,
0.08200381696224213,
-0.014598051086068153,
0.10756182670593262,
-0.07408098131418228,
-0.08415224403142929,
0.029011759907007217,
-0.015739502385258675,
-0.07463294267654419,
0.04856983572244644,
0.026361843571066856,
0.037297166883945465,
-0.05490206927061081,
-0.11037489771842957,
0.034942563623189926,
-0.01211425568908453,
-0.1002207025885582,
0.09210102260112762,
0.09613268077373505,
0.12665674090385437,
0.028992125764489174,
0.007394727785140276,
-0.08952373266220093,
0.03558860719203949,
0.0016222409904003143,
-0.10984549671411514,
-0.05064062774181366,
0.01865917444229126,
0.14268946647644043,
0.19125759601593018,
-0.08811171352863312,
0.03846576809883118,
-0.07273481786251068,
-0.0252135768532753,
-0.13103628158569336,
-0.15437930822372437,
-0.05728524178266525,
-0.02789287455379963,
0.023752721026539803,
-0.0852070078253746,
0.011203143745660782,
0.042564474046230316,
0.04786815866827965,
0.03405066207051277,
0.07738635689020157,
0.06642324477434158,
-0.013193637132644653,
0.003787238383665681,
0.0346699021756649,
-0.0327175073325634,
-0.044168803840875626,
0.04824226722121239,
-0.015177030116319656,
-0.054674964398145676,
-0.0026789007242769003,
0.002203909680247307,
-0.08323286473751068,
0.028803646564483643,
-0.05758899077773094,
-0.1198626458644867,
-0.010062367655336857,
0.013333435170352459,
-0.020919226109981537,
0.08386866748332977,
0.008096599020063877,
0.009240868501365185,
0.02482464909553528,
0.06568306684494019,
-0.03814156353473663,
-0.07063306123018265,
-0.019201036542654037,
0.12899526953697205,
-0.022012950852513313,
0.03156286105513573,
0.008013679645955563,
0.0019985546823590994,
0.05409880355000496,
0.19423814117908478,
0.22556664049625397,
-0.03951563686132431,
0.0762491226196289,
0.015782833099365234,
0.02856563590466976,
0.0386495515704155,
-0.03205571696162224,
0.07264687865972519,
0.15443316102027893,
-0.10265935212373734,
0.03597738966345787,
-0.04672868177294731,
-0.0068234954960644245,
-0.08112186938524246,
-0.06319437175989151,
0.03532548248767853,
0.02173474058508873,
-0.058988627046346664,
0.11843346059322357,
-0.12565426528453827,
-0.06696407496929169,
0.048933640122413635,
-0.16838259994983673,
-0.025226661935448647,
-0.041508521884679794,
0.038606178015470505,
0.1092856377363205,
0.05860328674316406,
-0.028590375557541847,
-0.0763055682182312,
0.021338632330298424,
0.02961077354848385,
-0.1181555688381195,
0.02227446250617504,
0.014011522755026817,
-0.08366148918867111,
0.10058572888374329,
-0.05171225965023041,
0.04024062305688858,
0.09875406324863434,
-0.023720741271972656,
-0.03897426649928093,
0.043028272688388824,
0.07797056436538696,
-0.048998914659023285,
-0.07262236624956131,
0.04550107195973396,
0.0014187112683430314,
0.0006967661320231855,
0.11073892563581467,
-0.031922176480293274,
0.022798625752329826,
0.0713757574558258,
-0.047716811299324036,
0.014433919452130795,
0.12745818495750427,
-0.02318563312292099,
0.08531417697668076,
0.05312841013073921,
-0.016762642189860344,
-0.012608434073626995,
-0.025216368958353996,
-0.003885970450937748,
-0.0091410456225276,
0.0469227097928524,
-0.045867741107940674,
-0.08787514269351959,
-0.008129549212753773,
-0.031563419848680496,
0.08715547621250153,
-0.02834448218345642,
-0.0417921282351017,
-0.013279793784022331,
0.01018582098186016,
-0.06952887028455734,
0.0662432312965393,
0.0644088089466095,
0.025140265002846718,
-0.043850723654031754,
-0.15347139537334442,
0.024063846096396446,
0.11060944944620132,
-0.11256705969572067,
-0.07183923572301865
] |
null | null | transformers |
# DistilBERT base uncased distilled SQuAD
## Table of Contents
- [Model Details](#model-details)
- [How To Get Started With the Model](#how-to-get-started-with-the-model)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation)
- [Environmental Impact](#environmental-impact)
- [Technical Specifications](#technical-specifications)
- [Citation Information](#citation-information)
- [Model Card Authors](#model-card-authors)
## Model Details
**Model Description:** The DistilBERT model was proposed in the blog post [Smaller, faster, cheaper, lighter: Introducing DistilBERT, adistilled version of BERT](https://medium.com/huggingface/distilbert-8cf3380435b5), and the paper [DistilBERT, adistilled version of BERT: smaller, faster, cheaper and lighter](https://arxiv.org/abs/1910.01108). DistilBERT is a small, fast, cheap and light Transformer model trained by distilling BERT base. It has 40% less parameters than *bert-base-uncased*, runs 60% faster while preserving over 95% of BERT's performances as measured on the GLUE language understanding benchmark.
This model is a fine-tune checkpoint of [DistilBERT-base-uncased](https://huggingface.co/distilbert-base-uncased), fine-tuned using (a second step of) knowledge distillation on [SQuAD v1.1](https://huggingface.co/datasets/squad).
- **Developed by:** Hugging Face
- **Model Type:** Transformer-based language model
- **Language(s):** English
- **License:** Apache 2.0
- **Related Models:** [DistilBERT-base-uncased](https://huggingface.co/distilbert-base-uncased)
- **Resources for more information:**
- See [this repository](https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation) for more about Distil\* (a class of compressed models including this model)
- See [Sanh et al. (2019)](https://arxiv.org/abs/1910.01108) for more information about knowledge distillation and the training procedure
## How to Get Started with the Model
Use the code below to get started with the model.
```python
>>> from transformers import pipeline
>>> question_answerer = pipeline("question-answering", model='distilbert-base-uncased-distilled-squad')
>>> context = r"""
... Extractive Question Answering is the task of extracting an answer from a text given a question. An example of a
... question answering dataset is the SQuAD dataset, which is entirely based on that task. If you would like to fine-tune
... a model on a SQuAD task, you may leverage the examples/pytorch/question-answering/run_squad.py script.
... """
>>> result = question_answerer(question="What is a good example of a question answering dataset?", context=context)
>>> print(
... f"Answer: '{result['answer']}', score: {round(result['score'], 4)}, start: {result['start']}, end: {result['end']}"
...)
Answer: 'SQuAD dataset', score: 0.4704, start: 147, end: 160
```
Here is how to use this model in PyTorch:
```python
from transformers import DistilBertTokenizer, DistilBertForQuestionAnswering
import torch
tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased-distilled-squad')
model = DistilBertForQuestionAnswering.from_pretrained('distilbert-base-uncased-distilled-squad')
question, text = "Who was Jim Henson?", "Jim Henson was a nice puppet"
inputs = tokenizer(question, text, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
answer_start_index = torch.argmax(outputs.start_logits)
answer_end_index = torch.argmax(outputs.end_logits)
predict_answer_tokens = inputs.input_ids[0, answer_start_index : answer_end_index + 1]
tokenizer.decode(predict_answer_tokens)
```
And in TensorFlow:
```python
from transformers import DistilBertTokenizer, TFDistilBertForQuestionAnswering
import tensorflow as tf
tokenizer = DistilBertTokenizer.from_pretrained("distilbert-base-uncased-distilled-squad")
model = TFDistilBertForQuestionAnswering.from_pretrained("distilbert-base-uncased-distilled-squad")
question, text = "Who was Jim Henson?", "Jim Henson was a nice puppet"
inputs = tokenizer(question, text, return_tensors="tf")
outputs = model(**inputs)
answer_start_index = int(tf.math.argmax(outputs.start_logits, axis=-1)[0])
answer_end_index = int(tf.math.argmax(outputs.end_logits, axis=-1)[0])
predict_answer_tokens = inputs.input_ids[0, answer_start_index : answer_end_index + 1]
tokenizer.decode(predict_answer_tokens)
```
## Uses
This model can be used for question answering.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
```python
>>> from transformers import pipeline
>>> question_answerer = pipeline("question-answering", model='distilbert-base-uncased-distilled-squad')
>>> context = r"""
... Alice is sitting on the bench. Bob is sitting next to her.
... """
>>> result = question_answerer(question="Who is the CEO?", context=context)
>>> print(
... f"Answer: '{result['answer']}', score: {round(result['score'], 4)}, start: {result['start']}, end: {result['end']}"
...)
Answer: 'Bob', score: 0.4183, start: 32, end: 35
```
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
## Training
#### Training Data
The [distilbert-base-uncased model](https://huggingface.co/distilbert-base-uncased) model describes it's training data as:
> DistilBERT pretrained on the same data as BERT, which is [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038 unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and headers).
To learn more about the SQuAD v1.1 dataset, see the [SQuAD v1.1 data card](https://huggingface.co/datasets/squad).
#### Training Procedure
##### Preprocessing
See the [distilbert-base-uncased model card](https://huggingface.co/distilbert-base-uncased) for further details.
##### Pretraining
See the [distilbert-base-uncased model card](https://huggingface.co/distilbert-base-uncased) for further details.
## Evaluation
As discussed in the [model repository](https://github.com/huggingface/transformers/blob/main/examples/research_projects/distillation/README.md)
> This model reaches a F1 score of 86.9 on the [SQuAD v1.1] dev set (for comparison, Bert bert-base-uncased version reaches a F1 score of 88.5).
## Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). We present the hardware type and hours used based on the [associated paper](https://arxiv.org/pdf/1910.01108.pdf). Note that these details are just for training DistilBERT, not including the fine-tuning with SQuAD.
- **Hardware Type:** 8 16GB V100 GPUs
- **Hours used:** 90 hours
- **Cloud Provider:** Unknown
- **Compute Region:** Unknown
- **Carbon Emitted:** Unknown
## Technical Specifications
See the [associated paper](https://arxiv.org/abs/1910.01108) for details on the modeling architecture, objective, compute infrastructure, and training details.
## Citation Information
```bibtex
@inproceedings{sanh2019distilbert,
title={DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter},
author={Sanh, Victor and Debut, Lysandre and Chaumond, Julien and Wolf, Thomas},
booktitle={NeurIPS EMC^2 Workshop},
year={2019}
}
```
APA:
- Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.
## Model Card Authors
This model card was written by the Hugging Face team.
| {"language": "en", "license": "apache-2.0", "datasets": ["squad"], "widget": [{"text": "Which name is also used to describe the Amazon rainforest in English?", "context": "The Amazon rainforest (Portuguese: Floresta Amaz\u00f4nica or Amaz\u00f4nia; Spanish: Selva Amaz\u00f3nica, Amazon\u00eda or usually Amazonia; French: For\u00eat amazonienne; Dutch: Amazoneregenwoud), also known in English as Amazonia or the Amazon Jungle, is a moist broadleaf forest that covers most of the Amazon basin of South America. This basin encompasses 7,000,000 square kilometres (2,700,000 sq mi), of which 5,500,000 square kilometres (2,100,000 sq mi) are covered by the rainforest. This region includes territory belonging to nine nations. The majority of the forest is contained within Brazil, with 60% of the rainforest, followed by Peru with 13%, Colombia with 10%, and with minor amounts in Venezuela, Ecuador, Bolivia, Guyana, Suriname and French Guiana. States or departments in four nations contain \"Amazonas\" in their names. The Amazon represents over half of the planet's remaining rainforests, and comprises the largest and most biodiverse tract of tropical rainforest in the world, with an estimated 390 billion individual trees divided into 16,000 species."}, {"text": "How many square kilometers of rainforest is covered in the basin?", "context": "The Amazon rainforest (Portuguese: Floresta Amaz\u00f4nica or Amaz\u00f4nia; Spanish: Selva Amaz\u00f3nica, Amazon\u00eda or usually Amazonia; French: For\u00eat amazonienne; Dutch: Amazoneregenwoud), also known in English as Amazonia or the Amazon Jungle, is a moist broadleaf forest that covers most of the Amazon basin of South America. This basin encompasses 7,000,000 square kilometres (2,700,000 sq mi), of which 5,500,000 square kilometres (2,100,000 sq mi) are covered by the rainforest. This region includes territory belonging to nine nations. The majority of the forest is contained within Brazil, with 60% of the rainforest, followed by Peru with 13%, Colombia with 10%, and with minor amounts in Venezuela, Ecuador, Bolivia, Guyana, Suriname and French Guiana. States or departments in four nations contain \"Amazonas\" in their names. The Amazon represents over half of the planet's remaining rainforests, and comprises the largest and most biodiverse tract of tropical rainforest in the world, with an estimated 390 billion individual trees divided into 16,000 species."}]} | question-answering | distilbert/distilbert-base-uncased-distilled-squad | [
"transformers",
"pytorch",
"tf",
"tflite",
"coreml",
"safetensors",
"distilbert",
"question-answering",
"en",
"dataset:squad",
"arxiv:1910.01108",
"arxiv:1910.09700",
"license:apache-2.0",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1910.01108",
"1910.09700"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #tflite #coreml #safetensors #distilbert #question-answering #en #dataset-squad #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #endpoints_compatible #has_space #region-us
|
# DistilBERT base uncased distilled SQuAD
## Table of Contents
- Model Details
- How To Get Started With the Model
- Uses
- Risks, Limitations and Biases
- Training
- Evaluation
- Environmental Impact
- Technical Specifications
- Citation Information
- Model Card Authors
## Model Details
Model Description: The DistilBERT model was proposed in the blog post Smaller, faster, cheaper, lighter: Introducing DistilBERT, adistilled version of BERT, and the paper DistilBERT, adistilled version of BERT: smaller, faster, cheaper and lighter. DistilBERT is a small, fast, cheap and light Transformer model trained by distilling BERT base. It has 40% less parameters than *bert-base-uncased*, runs 60% faster while preserving over 95% of BERT's performances as measured on the GLUE language understanding benchmark.
This model is a fine-tune checkpoint of DistilBERT-base-uncased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1.
- Developed by: Hugging Face
- Model Type: Transformer-based language model
- Language(s): English
- License: Apache 2.0
- Related Models: DistilBERT-base-uncased
- Resources for more information:
- See this repository for more about Distil\* (a class of compressed models including this model)
- See Sanh et al. (2019) for more information about knowledge distillation and the training procedure
## How to Get Started with the Model
Use the code below to get started with the model.
Here is how to use this model in PyTorch:
And in TensorFlow:
## Uses
This model can be used for question answering.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
## Risks, Limitations and Biases
CONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
## Training
#### Training Data
The distilbert-base-uncased model model describes it's training data as:
> DistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset consisting of 11,038 unpublished books and English Wikipedia (excluding lists, tables and headers).
To learn more about the SQuAD v1.1 dataset, see the SQuAD v1.1 data card.
#### Training Procedure
##### Preprocessing
See the distilbert-base-uncased model card for further details.
##### Pretraining
See the distilbert-base-uncased model card for further details.
## Evaluation
As discussed in the model repository
> This model reaches a F1 score of 86.9 on the [SQuAD v1.1] dev set (for comparison, Bert bert-base-uncased version reaches a F1 score of 88.5).
## Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type and hours used based on the associated paper. Note that these details are just for training DistilBERT, not including the fine-tuning with SQuAD.
- Hardware Type: 8 16GB V100 GPUs
- Hours used: 90 hours
- Cloud Provider: Unknown
- Compute Region: Unknown
- Carbon Emitted: Unknown
## Technical Specifications
See the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.
APA:
- Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.
## Model Card Authors
This model card was written by the Hugging Face team.
| [
"# DistilBERT base uncased distilled SQuAD",
"## Table of Contents\n- Model Details\n- How To Get Started With the Model\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors",
"## Model Details\n\nModel Description: The DistilBERT model was proposed in the blog post Smaller, faster, cheaper, lighter: Introducing DistilBERT, adistilled version of BERT, and the paper DistilBERT, adistilled version of BERT: smaller, faster, cheaper and lighter. DistilBERT is a small, fast, cheap and light Transformer model trained by distilling BERT base. It has 40% less parameters than *bert-base-uncased*, runs 60% faster while preserving over 95% of BERT's performances as measured on the GLUE language understanding benchmark.\n\nThis model is a fine-tune checkpoint of DistilBERT-base-uncased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. \n\n- Developed by: Hugging Face\n- Model Type: Transformer-based language model\n- Language(s): English \n- License: Apache 2.0\n- Related Models: DistilBERT-base-uncased\n- Resources for more information:\n - See this repository for more about Distil\\* (a class of compressed models including this model)\n - See Sanh et al. (2019) for more information about knowledge distillation and the training procedure",
"## How to Get Started with the Model \n\nUse the code below to get started with the model. \n\n\n\nHere is how to use this model in PyTorch:\n\n\n\nAnd in TensorFlow:",
"## Uses\n\nThis model can be used for question answering.",
"#### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.",
"## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\n\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"## Training",
"#### Training Data\n\nThe distilbert-base-uncased model model describes it's training data as: \n\n> DistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset consisting of 11,038 unpublished books and English Wikipedia (excluding lists, tables and headers).\n\nTo learn more about the SQuAD v1.1 dataset, see the SQuAD v1.1 data card.",
"#### Training Procedure",
"##### Preprocessing\n\nSee the distilbert-base-uncased model card for further details.",
"##### Pretraining\n\nSee the distilbert-base-uncased model card for further details.",
"## Evaluation\n\nAs discussed in the model repository\n\n> This model reaches a F1 score of 86.9 on the [SQuAD v1.1] dev set (for comparison, Bert bert-base-uncased version reaches a F1 score of 88.5).",
"## Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type and hours used based on the associated paper. Note that these details are just for training DistilBERT, not including the fine-tuning with SQuAD.\n\n- Hardware Type: 8 16GB V100 GPUs\n- Hours used: 90 hours\n- Cloud Provider: Unknown\n- Compute Region: Unknown\n- Carbon Emitted: Unknown",
"## Technical Specifications\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.\n\n\n\n\n\nAPA: \n- Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.",
"## Model Card Authors\n\nThis model card was written by the Hugging Face team."
] | [
"TAGS\n#transformers #pytorch #tf #tflite #coreml #safetensors #distilbert #question-answering #en #dataset-squad #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #endpoints_compatible #has_space #region-us \n",
"# DistilBERT base uncased distilled SQuAD",
"## Table of Contents\n- Model Details\n- How To Get Started With the Model\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors",
"## Model Details\n\nModel Description: The DistilBERT model was proposed in the blog post Smaller, faster, cheaper, lighter: Introducing DistilBERT, adistilled version of BERT, and the paper DistilBERT, adistilled version of BERT: smaller, faster, cheaper and lighter. DistilBERT is a small, fast, cheap and light Transformer model trained by distilling BERT base. It has 40% less parameters than *bert-base-uncased*, runs 60% faster while preserving over 95% of BERT's performances as measured on the GLUE language understanding benchmark.\n\nThis model is a fine-tune checkpoint of DistilBERT-base-uncased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. \n\n- Developed by: Hugging Face\n- Model Type: Transformer-based language model\n- Language(s): English \n- License: Apache 2.0\n- Related Models: DistilBERT-base-uncased\n- Resources for more information:\n - See this repository for more about Distil\\* (a class of compressed models including this model)\n - See Sanh et al. (2019) for more information about knowledge distillation and the training procedure",
"## How to Get Started with the Model \n\nUse the code below to get started with the model. \n\n\n\nHere is how to use this model in PyTorch:\n\n\n\nAnd in TensorFlow:",
"## Uses\n\nThis model can be used for question answering.",
"#### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.",
"## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\n\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"## Training",
"#### Training Data\n\nThe distilbert-base-uncased model model describes it's training data as: \n\n> DistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset consisting of 11,038 unpublished books and English Wikipedia (excluding lists, tables and headers).\n\nTo learn more about the SQuAD v1.1 dataset, see the SQuAD v1.1 data card.",
"#### Training Procedure",
"##### Preprocessing\n\nSee the distilbert-base-uncased model card for further details.",
"##### Pretraining\n\nSee the distilbert-base-uncased model card for further details.",
"## Evaluation\n\nAs discussed in the model repository\n\n> This model reaches a F1 score of 86.9 on the [SQuAD v1.1] dev set (for comparison, Bert bert-base-uncased version reaches a F1 score of 88.5).",
"## Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type and hours used based on the associated paper. Note that these details are just for training DistilBERT, not including the fine-tuning with SQuAD.\n\n- Hardware Type: 8 16GB V100 GPUs\n- Hours used: 90 hours\n- Cloud Provider: Unknown\n- Compute Region: Unknown\n- Carbon Emitted: Unknown",
"## Technical Specifications\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.\n\n\n\n\n\nAPA: \n- Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.",
"## Model Card Authors\n\nThis model card was written by the Hugging Face team."
] | [
83,
15,
52,
285,
39,
13,
76,
157,
2,
100,
5,
22,
21,
59,
110,
95,
17
] | [
"passage: TAGS\n#transformers #pytorch #tf #tflite #coreml #safetensors #distilbert #question-answering #en #dataset-squad #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #endpoints_compatible #has_space #region-us \n# DistilBERT base uncased distilled SQuAD## Table of Contents\n- Model Details\n- How To Get Started With the Model\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors## Model Details\n\nModel Description: The DistilBERT model was proposed in the blog post Smaller, faster, cheaper, lighter: Introducing DistilBERT, adistilled version of BERT, and the paper DistilBERT, adistilled version of BERT: smaller, faster, cheaper and lighter. DistilBERT is a small, fast, cheap and light Transformer model trained by distilling BERT base. It has 40% less parameters than *bert-base-uncased*, runs 60% faster while preserving over 95% of BERT's performances as measured on the GLUE language understanding benchmark.\n\nThis model is a fine-tune checkpoint of DistilBERT-base-uncased, fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. \n\n- Developed by: Hugging Face\n- Model Type: Transformer-based language model\n- Language(s): English \n- License: Apache 2.0\n- Related Models: DistilBERT-base-uncased\n- Resources for more information:\n - See this repository for more about Distil\\* (a class of compressed models including this model)\n - See Sanh et al. (2019) for more information about knowledge distillation and the training procedure## How to Get Started with the Model \n\nUse the code below to get started with the model. \n\n\n\nHere is how to use this model in PyTorch:\n\n\n\nAnd in TensorFlow:## Uses\n\nThis model can be used for question answering.",
"passage: #### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\n\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.## Training#### Training Data\n\nThe distilbert-base-uncased model model describes it's training data as: \n\n> DistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset consisting of 11,038 unpublished books and English Wikipedia (excluding lists, tables and headers).\n\nTo learn more about the SQuAD v1.1 dataset, see the SQuAD v1.1 data card.#### Training Procedure##### Preprocessing\n\nSee the distilbert-base-uncased model card for further details.##### Pretraining\n\nSee the distilbert-base-uncased model card for further details.## Evaluation\n\nAs discussed in the model repository\n\n> This model reaches a F1 score of 86.9 on the [SQuAD v1.1] dev set (for comparison, Bert bert-base-uncased version reaches a F1 score of 88.5).## Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type and hours used based on the associated paper. Note that these details are just for training DistilBERT, not including the fine-tuning with SQuAD.\n\n- Hardware Type: 8 16GB V100 GPUs\n- Hours used: 90 hours\n- Cloud Provider: Unknown\n- Compute Region: Unknown\n- Carbon Emitted: Unknown"
] | [
-0.07911400496959686,
0.08812160789966583,
-0.004746977239847183,
0.08596496284008026,
0.05291213095188141,
-0.008602488785982132,
0.03305721655488014,
0.0767764151096344,
-0.01988852396607399,
0.09146805107593536,
-0.006337761878967285,
0.0355212539434433,
0.09171782433986664,
0.056675877422094345,
0.02507372945547104,
-0.17242999374866486,
0.027853595092892647,
-0.07140636444091797,
0.057136908173561096,
0.07395030558109283,
0.12529084086418152,
-0.11698275804519653,
0.075717031955719,
-0.0035078879445791245,
0.008078303188085556,
-0.045542653650045395,
-0.022630132734775543,
-0.02844792976975441,
0.05268169939517975,
0.051759012043476105,
0.08892345428466797,
-0.022867407649755478,
0.061677128076553345,
-0.15326905250549316,
0.017054248601198196,
0.0577644482254982,
0.023093173280358315,
0.08595213294029236,
0.0367361381649971,
0.039572570472955704,
0.04739727824926376,
-0.10585685074329376,
0.0763636976480484,
0.052293941378593445,
-0.07739699631929398,
-0.11238151788711548,
-0.10536161065101624,
0.03869950398802757,
0.07403359562158585,
0.04821835085749626,
-0.024140100926160812,
0.07251021265983582,
-0.06715056300163269,
0.012137950398027897,
0.1329016089439392,
-0.1258213222026825,
-0.04090941697359085,
-0.04066314175724983,
-0.013587402179837227,
0.03677404671907425,
-0.11848577857017517,
-0.017949337139725685,
0.02145790308713913,
0.03567911684513092,
0.08930940926074982,
-0.003811959642916918,
0.10562275350093842,
-0.009320381097495556,
-0.12672193348407745,
-0.01899433508515358,
0.049785222858190536,
-0.0024604061618447304,
-0.1040864810347557,
-0.18673154711723328,
-0.041068390011787415,
0.06386901438236237,
-0.019406795501708984,
-0.07158806920051575,
0.059720419347286224,
0.007190757896751165,
0.06377206742763519,
-0.07421775907278061,
-0.0932161957025528,
-0.0001896543544717133,
-0.03372723609209061,
0.1138422042131424,
0.03959117457270622,
0.01215188018977642,
0.01350291259586811,
0.08284538984298706,
0.021102163940668106,
-0.10316286236047745,
-0.0767270028591156,
-0.0776485800743103,
-0.023075563833117485,
-0.01999848522245884,
-0.02450156770646572,
-0.010635007172822952,
-0.028000621125102043,
0.09994063526391983,
-0.06369969248771667,
0.02099238708615303,
0.005796898156404495,
-0.0005750227719545364,
0.09888674318790436,
0.11782602220773697,
-0.046858225017786026,
-0.061559952795505524,
0.02753337100148201,
0.07490864396095276,
0.04573791101574898,
-0.002427170053124428,
-0.0066861435770988464,
-0.017231905832886696,
0.025702929124236107,
0.04663657024502754,
0.0012811562046408653,
0.011240623891353607,
-0.10355925559997559,
-0.07409355789422989,
0.13172072172164917,
-0.1492224633693695,
0.02529376931488514,
0.018269773572683334,
-0.061279863119125366,
0.055463481694459915,
0.02163943275809288,
-0.025192420929670334,
-0.08170256018638611,
0.027157891541719437,
-0.06797716021537781,
-0.028153525665402412,
-0.10583016276359558,
-0.08365342766046524,
0.023994171991944313,
-0.0195494145154953,
-0.03559105843305588,
-0.06400203704833984,
-0.1094139814376831,
-0.04167274758219719,
0.033778563141822815,
-0.052424706518650055,
-0.015030262060463428,
-0.053440868854522705,
-0.027159716933965683,
0.008144581690430641,
0.007551949936896563,
0.032283537089824677,
-0.0057076504454016685,
0.061696648597717285,
-0.04688644036650658,
0.051683615893125534,
0.05227372422814369,
0.026871005073189735,
-0.08928930759429932,
0.0025912222918123007,
-0.19185876846313477,
0.1338537633419037,
-0.06460189819335938,
-0.06545178592205048,
-0.08231289684772491,
-0.030135497450828552,
-0.02486368641257286,
0.04981522634625435,
0.03012876771390438,
0.1181459128856659,
-0.2073899805545807,
-0.02029418759047985,
0.11876142024993896,
-0.10862301290035248,
0.014494234696030617,
0.0951523408293724,
-0.08457233011722565,
0.11138250678777695,
0.11342421919107437,
0.03116416558623314,
0.05229021981358528,
-0.13779330253601074,
-0.09390266239643097,
0.0027668364346027374,
-0.03188377246260643,
0.1591736376285553,
0.05427296459674835,
-0.03829387575387955,
0.041504375636577606,
0.01914241909980774,
-0.04775969684123993,
-0.03697650879621506,
0.01551463920623064,
-0.04926444590091705,
0.00931156799197197,
-0.04919802397489548,
0.08938642591238022,
-0.0018055990803986788,
-0.0507768839597702,
-0.003164786845445633,
-0.1224641501903534,
0.06511405110359192,
0.08371007442474365,
-0.030821053311228752,
0.009348554536700249,
-0.09449484944343567,
0.0014114538207650185,
-0.004528659861534834,
-0.014167262241244316,
-0.141188383102417,
-0.031737517565488815,
0.05487516522407532,
-0.13585638999938965,
0.04887698218226433,
0.045486439019441605,
0.03691202029585838,
0.04207673668861389,
-0.0510164275765419,
0.019082501530647278,
-0.049327753484249115,
-0.005626291036605835,
-0.06934814900159836,
-0.10517352819442749,
0.0014606881886720657,
-0.02409636601805687,
0.06538461148738861,
-0.10143932700157166,
0.017577005550265312,
0.08651074767112732,
0.0470883883535862,
0.016379907727241516,
-0.05723266676068306,
0.02042897418141365,
-0.03615977615118027,
0.009882476180791855,
-0.049887947738170624,
0.016922693699598312,
-0.001973590347915888,
0.012537801638245583,
0.045982688665390015,
-0.11985288560390472,
-0.11589974164962769,
0.08618991076946259,
0.05442974343895912,
-0.09186938405036926,
-0.04634704068303108,
-0.018319912254810333,
-0.027004476636648178,
-0.09784407913684845,
-0.07431290298700333,
0.21913599967956543,
0.022115062922239304,
0.05765495449304581,
-0.10075753182172775,
-0.05882175639271736,
-0.0047377124428749084,
0.006446162238717079,
-0.021177753806114197,
0.041038211435079575,
-0.041486985981464386,
-0.13517779111862183,
0.06549204140901566,
0.08085902035236359,
0.026527628302574158,
0.08970670402050018,
0.0011321920901536942,
-0.10497735440731049,
-0.034041691571474075,
-0.0011358875781297684,
0.004275412764400244,
0.09331033378839493,
-0.005864341743290424,
0.0383564829826355,
0.04002276808023453,
0.002918509766459465,
0.020463470369577408,
-0.0789874792098999,
0.05921065807342529,
0.03837551549077034,
0.0018532294780015945,
0.015748165547847748,
-0.047415055334568024,
0.020717762410640717,
0.07671251147985458,
0.05666770786046982,
0.0577554889023304,
0.013363759964704514,
-0.03779158368706703,
-0.08469929546117783,
0.13278040289878845,
-0.09358594566583633,
-0.24369965493679047,
-0.12697413563728333,
0.027923785150051117,
0.005249021574854851,
0.010529483668506145,
0.000847526011057198,
-0.05180545896291733,
-0.09383174777030945,
-0.0890645831823349,
0.04695256054401398,
0.03300660848617554,
-0.07118407636880875,
0.00850340723991394,
0.02847519889473915,
0.01663835160434246,
-0.13213780522346497,
0.007404499687254429,
0.00015545717906206846,
-0.07476991415023804,
-0.01944497600197792,
0.05592767521739006,
0.03608635812997818,
0.07758729159832001,
-0.016390521079301834,
-0.058320775628089905,
0.0038701859302818775,
0.19175425171852112,
-0.0829104632139206,
0.1095212921500206,
0.10680494457483292,
-0.0685248151421547,
0.08156643062829971,
0.09581324458122253,
0.034516386687755585,
-0.04006239026784897,
0.028706911951303482,
0.06602275371551514,
-0.007820780389010906,
-0.19974446296691895,
-0.04533091187477112,
-0.00980647373944521,
-0.08268527686595917,
0.07268966734409332,
0.03884529322385788,
-0.028120554983615875,
0.04999426752328873,
-0.08324796706438065,
0.012758485041558743,
0.08634600788354874,
0.0555240660905838,
0.0628940686583519,
-0.022699011489748955,
0.0693918913602829,
-0.022201966494321823,
-0.008580729365348816,
0.11211220920085907,
-0.05376346409320831,
0.17769262194633484,
-0.06581509113311768,
0.11608756333589554,
0.06466281414031982,
0.06815843284130096,
0.041195884346961975,
0.06346999108791351,
-0.047074489295482635,
0.04398133605718613,
-0.06546600908041,
-0.08072800189256668,
-0.06302589923143387,
0.07151589542627335,
0.0039388216100633144,
0.06096325069665909,
-0.00717430142685771,
-0.031714800745248795,
0.04577139765024185,
0.2081862837076187,
0.01760219782590866,
-0.09723266214132309,
-0.09231484681367874,
0.0514490082859993,
-0.0685177594423294,
-0.09249285608530045,
0.03568568080663681,
0.0982423722743988,
-0.11538518965244293,
-0.0034231641329824924,
-0.015119930729269981,
0.05221432447433472,
-0.11777240037918091,
0.009414805099368095,
-0.01193947996944189,
0.09233515709638596,
0.010519138537347317,
0.06269078701734543,
-0.16565349698066711,
0.02443554997444153,
0.03386227414011955,
0.11078136414289474,
-0.05222664400935173,
0.05139017477631569,
0.04788784682750702,
-0.07107771933078766,
0.12480086833238602,
0.018491335213184357,
0.06230732053518295,
-0.07519508898258209,
-0.1149100810289383,
0.008947952650487423,
0.0729236900806427,
-0.041597116738557816,
0.07135312259197235,
-0.030694110319018364,
0.0003858692944049835,
-0.018214907497167587,
-0.03558576479554176,
-0.1265321522951126,
-0.18827737867832184,
0.03747185692191124,
-0.11219080537557602,
0.00045318715274333954,
-0.0739300400018692,
-0.07103623449802399,
-0.021081555634737015,
0.15103521943092346,
-0.2024715542793274,
-0.11205975711345673,
-0.08946108818054199,
-0.05545083433389664,
0.11467964947223663,
-0.06553952395915985,
0.0413215272128582,
0.009086575359106064,
0.1608620285987854,
-0.03351355344057083,
-0.05862214416265488,
0.0164845772087574,
-0.03466637060046196,
-0.15700320899486542,
-0.024540316313505173,
0.08255983889102936,
0.15585140883922577,
0.06942668557167053,
0.0028750121127814054,
0.04669104143977165,
-0.016767650842666626,
-0.09525738656520844,
-0.022825071588158607,
0.21939913928508759,
0.08181038498878479,
0.033025968819856644,
-0.07544901221990585,
-0.11698664724826813,
-0.08052023500204086,
0.008797511458396912,
0.04937130957841873,
0.1581324338912964,
-0.0391281433403492,
0.13799886405467987,
0.22189289331436157,
-0.08024862408638,
-0.24464064836502075,
-0.01238291710615158,
0.041515056043863297,
0.02890733815729618,
0.05859190598130226,
-0.1985706388950348,
0.057689063251018524,
0.06854784488677979,
-0.013705230318009853,
0.034977659583091736,
-0.14757400751113892,
-0.1041540801525116,
0.08307792246341705,
0.05585433915257454,
-0.01708226650953293,
-0.04552796483039856,
-0.04525686427950859,
-0.006145847961306572,
-0.019164249300956726,
0.11152315139770508,
-0.04752529412508011,
0.050239093601703644,
0.012171415612101555,
0.009060751646757126,
0.04844063147902489,
-0.03226272761821747,
0.12890879809856415,
-0.05029778182506561,
0.04203612357378006,
-0.06441105902194977,
-0.09626980870962143,
0.023864563554525375,
-0.0615653395652771,
0.10425875335931778,
0.05276138335466385,
0.04253663867712021,
-0.07790098339319229,
-0.060318611562252045,
-0.05594893544912338,
0.016085615381598473,
-0.06360749155282974,
-0.05756497383117676,
-0.0809694305062294,
0.10130956768989563,
0.07546569406986237,
-0.01248224824666977,
0.0026965944562107325,
-0.03368754684925079,
-0.09583108127117157,
0.12479270994663239,
0.1870678961277008,
0.03384063392877579,
-0.06415671110153198,
-0.030318893492221832,
-0.0025870841927826405,
0.07270386815071106,
-0.09626725316047668,
0.042471371591091156,
0.05148693546652794,
0.018047567456960678,
0.09088287502527237,
-0.0008962549036368728,
-0.14071090519428253,
0.00579538568854332,
-0.001242370344698429,
-0.07424648106098175,
-0.13798126578330994,
-0.0359843447804451,
0.024885034188628197,
-0.1579524725675583,
-0.06984467804431915,
0.09544257819652557,
-0.033399779349565506,
-0.04358353838324547,
0.012271125800907612,
0.07697699218988419,
0.022405246272683144,
0.07043875753879547,
0.05995480716228485,
0.02781553938984871,
-0.07793381810188293,
0.10353688895702362,
0.09527840465307236,
-0.060265835374593735,
0.05123771354556084,
0.05082090571522713,
-0.07174033671617508,
-0.029138237237930298,
-0.03436097875237465,
0.056004609912633896,
0.04175541549921036,
-0.023909732699394226,
0.01344713568687439,
-0.06055481731891632,
0.021553294733166695,
0.08333764225244522,
0.02698832005262375,
0.059429194778203964,
-0.03495971858501434,
0.05027301609516144,
-0.038503970950841904,
0.08414395153522491,
0.0137090515345335,
0.010820726864039898,
-0.004606211557984352,
0.01982412301003933,
0.002872105687856674,
-0.008332065306603909,
-0.02143958956003189,
-0.031970590353012085,
-0.07743489742279053,
-0.03330298885703087,
-0.16754698753356934,
0.06133466958999634,
-0.05047789216041565,
-0.008666487410664558,
-0.0194986741989851,
0.001626698300242424,
0.03205564245581627,
0.04057757556438446,
-0.011937565170228481,
-0.012125372886657715,
-0.007946028374135494,
0.0546160563826561,
-0.15071344375610352,
0.0061290208250284195,
0.06991730630397797,
-0.07141362875699997,
0.06653937697410583,
-0.007119712885469198,
-0.0073024374432861805,
0.014247231185436249,
-0.09148295223712921,
-0.014515064656734467,
-0.040680818259716034,
0.02846602536737919,
0.03331673517823219,
-0.13550853729248047,
0.00031379982829093933,
-0.03863644227385521,
-0.033776089549064636,
-0.023499108850955963,
0.0926009863615036,
-0.06786081194877625,
0.09496818482875824,
0.0569787323474884,
-0.020543770864605904,
-0.08556897938251495,
0.04999815672636032,
0.1143789142370224,
0.009578332304954529,
0.11232879012823105,
-0.027761168777942657,
0.028474880382418633,
-0.11322161555290222,
0.007003656588494778,
0.02418537810444832,
0.028335396200418472,
-0.009457919746637344,
-0.046454209834337234,
0.0330696776509285,
-0.0023082485422492027,
0.09499112516641617,
0.0006365720182657242,
-0.04269595444202423,
0.04994978755712509,
-0.04547126591205597,
-0.0685143768787384,
0.03658260405063629,
0.008354989811778069,
-0.009843945503234863,
-0.009757841937243938,
0.004332804121077061,
-0.008994429372251034,
-0.02856609597802162,
-0.044810932129621506,
0.09228919446468353,
0.16386301815509796,
0.06508725136518478,
0.029711034148931503,
0.002878185361623764,
-0.029039036482572556,
-0.06989412754774094,
0.10590778291225433,
-0.0011948700994253159,
-0.058415185660123825,
-0.06020195782184601,
0.12416809052228928,
0.06012211740016937,
-0.14635971188545227,
0.11027984321117401,
-0.04203160107135773,
-0.07272005081176758,
-0.0857691541314125,
-0.145871102809906,
-0.04233846813440323,
0.08242912590503693,
-0.024254338815808296,
-0.10274569690227509,
0.05378580093383789,
0.06959608942270279,
0.0015046701300889254,
-0.036681316792964935,
0.09996514767408371,
-0.11124624311923981,
-0.056174542754888535,
0.08294378966093063,
0.040749188512563705,
0.01733560487627983,
0.01757478155195713,
0.009815368801355362,
0.011670738458633423,
0.08845822513103485,
0.07972617447376251,
0.057037390768527985,
0.059518590569496155,
-0.03969857096672058,
0.0013022469356656075,
-0.061921730637550354,
0.004958204459398985,
-0.032211434096097946,
0.028150470927357674,
0.14194348454475403,
0.055099762976169586,
-0.030571069568395615,
-0.01273268274962902,
0.14923036098480225,
-0.028712663799524307,
-0.05646160989999771,
-0.10692817717790604,
0.09771665930747986,
-0.009777354076504707,
0.03880947828292847,
0.05204612761735916,
-0.09843851625919342,
0.023797273635864258,
0.18397033214569092,
0.08248341828584671,
-0.06512372195720673,
0.010657641105353832,
0.015297873876988888,
0.004238341003656387,
-0.026328641921281815,
0.07392468303442001,
0.01430660393089056,
0.2108319103717804,
-0.06984741985797882,
0.1000063419342041,
-0.0016406215727329254,
-0.034107547253370285,
-0.07553903013467789,
0.10433074831962585,
-0.0486329086124897,
0.051483504474163055,
-0.10043264180421829,
0.02710025943815708,
0.028083957731723785,
-0.27935147285461426,
0.0037145630922168493,
-0.038789670914411545,
-0.09004231542348862,
0.0059325662441551685,
-0.03293425589799881,
-0.020846249535679817,
0.03939211741089821,
0.047352228313684464,
0.02020273543894291,
0.19828468561172485,
0.013019908219575882,
-0.040662363171577454,
0.013031566515564919,
0.09774933755397797,
-0.06476045399904251,
0.21975192427635193,
0.03794209659099579,
0.06154114380478859,
0.0729665532708168,
-0.0038877257611602545,
-0.10261565446853638,
0.004126009531319141,
0.015459712594747543,
-0.06266152858734131,
-0.0022699530236423016,
0.16508492827415466,
0.007524863816797733,
0.07681795954704285,
0.06934824585914612,
-0.011444734409451485,
0.05150296166539192,
-0.0013795755803585052,
-0.08428511023521423,
-0.07715336978435516,
0.08157922327518463,
-0.08129902184009552,
0.12313900887966156,
0.14550769329071045,
0.00510829733684659,
-0.01736399531364441,
-0.047969937324523926,
0.033744338899850845,
-0.0022648554295301437,
0.11423693597316742,
0.016146479174494743,
-0.11699623614549637,
0.005107699893414974,
0.020280418917536736,
0.07610610127449036,
-0.20742398500442505,
-0.05080529302358627,
0.04013995826244354,
-0.022416774183511734,
-0.013772919774055481,
0.05014169216156006,
-0.017173800617456436,
0.0384804829955101,
-0.01894228160381317,
-0.035678792744874954,
-0.020144633948802948,
0.08037403225898743,
-0.06997691094875336,
-0.0027670320123434067
] |
null | null | transformers |
# DistilBERT base uncased finetuned SST-2
## Table of Contents
- [Model Details](#model-details)
- [How to Get Started With the Model](#how-to-get-started-with-the-model)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
## Model Details
**Model Description:** This model is a fine-tune checkpoint of [DistilBERT-base-uncased](https://huggingface.co/distilbert-base-uncased), fine-tuned on SST-2.
This model reaches an accuracy of 91.3 on the dev set (for comparison, Bert bert-base-uncased version reaches an accuracy of 92.7).
- **Developed by:** Hugging Face
- **Model Type:** Text Classification
- **Language(s):** English
- **License:** Apache-2.0
- **Parent Model:** For more details about DistilBERT, we encourage users to check out [this model card](https://huggingface.co/distilbert-base-uncased).
- **Resources for more information:**
- [Model Documentation](https://huggingface.co/docs/transformers/main/en/model_doc/distilbert#transformers.DistilBertForSequenceClassification)
- [DistilBERT paper](https://arxiv.org/abs/1910.01108)
## How to Get Started With the Model
Example of single-label classification:
```python
import torch
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
tokenizer = DistilBertTokenizer.from_pretrained("distilbert-base-uncased-finetuned-sst-2-english")
model = DistilBertForSequenceClassification.from_pretrained("distilbert-base-uncased-finetuned-sst-2-english")
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
predicted_class_id = logits.argmax().item()
model.config.id2label[predicted_class_id]
```
## Uses
#### Direct Use
This model can be used for topic classification. You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
## Risks, Limitations and Biases
Based on a few experimentations, we observed that this model could produce biased predictions that target underrepresented populations.
For instance, for sentences like `This film was filmed in COUNTRY`, this binary classification model will give radically different probabilities for the positive label depending on the country (0.89 if the country is France, but 0.08 if the country is Afghanistan) when nothing in the input indicates such a strong semantic shift. In this [colab](https://colab.research.google.com/gist/ageron/fb2f64fb145b4bc7c49efc97e5f114d3/biasmap.ipynb), [Aurélien Géron](https://twitter.com/aureliengeron) made an interesting map plotting these probabilities for each country.
<img src="https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english/resolve/main/map.jpeg" alt="Map of positive probabilities per country." width="500"/>
We strongly advise users to thoroughly probe these aspects on their use-cases in order to evaluate the risks of this model. We recommend looking at the following bias evaluation datasets as a place to start: [WinoBias](https://huggingface.co/datasets/wino_bias), [WinoGender](https://huggingface.co/datasets/super_glue), [Stereoset](https://huggingface.co/datasets/stereoset).
# Training
#### Training Data
The authors use the following Stanford Sentiment Treebank([sst2](https://huggingface.co/datasets/sst2)) corpora for the model.
#### Training Procedure
###### Fine-tuning hyper-parameters
- learning_rate = 1e-5
- batch_size = 32
- warmup = 600
- max_seq_length = 128
- num_train_epochs = 3.0
| {"language": "en", "license": "apache-2.0", "datasets": ["sst2", "glue"], "model-index": [{"name": "distilbert-base-uncased-finetuned-sst-2-english", "results": [{"task": {"type": "text-classification", "name": "Text Classification"}, "dataset": {"name": "glue", "type": "glue", "config": "sst2", "split": "validation"}, "metrics": [{"type": "accuracy", "value": 0.9105504587155964, "name": "Accuracy", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiN2YyOGMxYjY2Y2JhMjkxNjIzN2FmMjNiNmM2ZWViNGY3MTNmNWI2YzhiYjYxZTY0ZGUyN2M1NGIxZjRiMjQwZiIsInZlcnNpb24iOjF9.uui0srxV5ZHRhxbYN6082EZdwpnBgubPJ5R2-Wk8HTWqmxYE3QHidevR9LLAhidqGw6Ih93fK0goAXncld_gBg"}, {"type": "precision", "value": 0.8978260869565218, "name": "Precision", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMzgwYTYwYjA2MmM0ZTYwNDk0M2NmNTBkZmM2NGNhYzQ1OGEyN2NkNDQ3Mzc2NTQyMmZiNDJiNzBhNGVhZGUyOSIsInZlcnNpb24iOjF9.eHjLmw3K02OU69R2Au8eyuSqT3aBDHgZCn8jSzE3_urD6EUSSsLxUpiAYR4BGLD_U6-ZKcdxVo_A2rdXqvUJDA"}, {"type": "recall", "value": 0.9301801801801802, "name": "Recall", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMGIzM2E3MTI2Mzc2MDYwNmU3ZTVjYmZmZDBkNjY4ZTc5MGY0Y2FkNDU3NjY1MmVkNmE3Y2QzMzAwZDZhOWY1NiIsInZlcnNpb24iOjF9.PUZlqmct13-rJWBXdHm5tdkXgETL9F82GNbbSR4hI8MB-v39KrK59cqzFC2Ac7kJe_DtOeUyosj34O_mFt_1DQ"}, {"type": "auc", "value": 0.9716626673402374, "name": "AUC", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMDM0YWIwZmQ4YjUwOGZmMWU2MjI1YjIxZGQ2MzNjMzRmZmYxMzZkNGFjODhlMDcyZDM1Y2RkMWZlOWQ0MWYwNSIsInZlcnNpb24iOjF9.E7GRlAXmmpEkTHlXheVkuL1W4WNjv4JO3qY_WCVsTVKiO7bUu0UVjPIyQ6g-J1OxsfqZmW3Leli1wY8vPBNNCQ"}, {"type": "f1", "value": 0.9137168141592922, "name": "F1", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMGU4MjNmOGYwZjZjMDQ1ZTkyZTA4YTc1MWYwOTM0NDM4ZWY1ZGVkNDY5MzNhYTQyZGFlNzIyZmUwMDg3NDU0NyIsInZlcnNpb24iOjF9.mW5ftkq50Se58M-jm6a2Pu93QeKa3MfV7xcBwvG3PSB_KNJxZWTCpfMQp-Cmx_EMlmI2siKOyd8akYjJUrzJCA"}, {"type": "loss", "value": 0.39013850688934326, "name": "loss", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMTZiNzAyZDc0MzUzMmE1MGJiN2JlYzFiODE5ZTNlNGE4MmI4YzRiMTc2ODEzMTUwZmEzOTgxNzc4YjJjZTRmNiIsInZlcnNpb24iOjF9.VqIC7uYC-ZZ8ss9zQOlRV39YVOOLc5R36sIzCcVz8lolh61ux_5djm2XjpP6ARc6KqEnXC4ZtfNXsX2HZfrtCQ"}]}, {"task": {"type": "text-classification", "name": "Text Classification"}, "dataset": {"name": "sst2", "type": "sst2", "config": "default", "split": "train"}, "metrics": [{"type": "accuracy", "value": 0.9885521685548412, "name": "Accuracy", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiY2I3NzU3YzhmMDkxZTViY2M3OTY1NmI0ZTdmMDQxNjNjYzJiZmQxNzczM2E4YmExYTY5ODY0NDBkY2I4ZjNkOCIsInZlcnNpb24iOjF9.4Gtk3FeVc9sPWSqZIaeUXJ9oVlPzm-NmujnWpK2y5s1Vhp1l6Y1pK5_78wW0-NxSvQqV6qd5KQf_OAEpVAkQDA"}, {"type": "precision", "value": 0.9881965062029833, "name": "Precision Macro", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZDdlZDMzY2I3MTAwYTljNmM4MGMyMzU2YjAzZDg1NDYwN2ZmM2Y5OWZhMjUyMGJiNjY1YmZiMzFhMDI2ODFhNyIsInZlcnNpb24iOjF9.cqmv6yBxu4St2mykRWrZ07tDsiSLdtLTz2hbqQ7Gm1rMzq9tdlkZ8MyJRxtME_Y8UaOG9rs68pV-gKVUs8wABw"}, {"type": "precision", "value": 0.9885521685548412, "name": "Precision Micro", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZjFlYzAzNmE1YjljNjUwNzBjZjEzZDY0ZDQyMmY5ZWM2OTBhNzNjYjYzYTk1YWE1NjU3YTMxZDQwOTE1Y2FkNyIsInZlcnNpb24iOjF9.jnCHOkUHuAOZZ_ZMVOnetx__OVJCS6LOno4caWECAmfrUaIPnPNV9iJ6izRO3sqkHRmxYpWBb-27GJ4N3LU-BQ"}, {"type": "precision", "value": 0.9885639626373408, "name": "Precision Weighted", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZGUyODFjNjBlNTE2MTY3ZDAxOGU1N2U0YjUyY2NiZjhkOGVmYThjYjBkNGU3NTRkYzkzNDQ2MmMwMjkwMWNiMyIsInZlcnNpb24iOjF9.zTNabMwApiZyXdr76QUn7WgGB7D7lP-iqS3bn35piqVTNsv3wnKjZOaKFVLIUvtBXq4gKw7N2oWxvWc4OcSNDg"}, {"type": "recall", "value": 0.9886145346602994, "name": "Recall Macro", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNTU1YjlhODU3YTkyNTdiZDcwZGFlZDBiYjY0N2NjMGM2NTRiNjQ3MDNjNGMxOWY2ZGQ4NWU1YmMzY2UwZTI3YSIsInZlcnNpb24iOjF9.xaLPY7U-wHsJ3DDui1yyyM-xWjL0Jz5puRThy7fczal9x05eKEQ9s0a_WD-iLmapvJs0caXpV70hDe2NLcs-DA"}, {"type": "recall", "value": 0.9885521685548412, "name": "Recall Micro", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiODE0YTU0MDBlOGY4YzU0MjY5MzA3OTk2OGNhOGVkMmU5OGRjZmFiZWI2ZjY5ODEzZTQzMTI0N2NiOTVkNDliYiIsInZlcnNpb24iOjF9.SOt1baTBbuZRrsvGcak2sUwoTrQzmNCbyV2m1_yjGsU48SBH0NcKXicidNBSnJ6ihM5jf_Lv_B5_eOBkLfNWDQ"}, {"type": "recall", "value": 0.9885521685548412, "name": "Recall Weighted", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZWNkNmM0ZGRlNmYxYzIwNDk4OTI5MzIwZWU1NzZjZDVhMDcyNDFlMjBhNDQxODU5OWMwMWNhNGEzNjY3ZGUyOSIsInZlcnNpb24iOjF9.b15Fh70GwtlG3cSqPW-8VEZT2oy0CtgvgEOtWiYonOovjkIQ4RSLFVzVG-YfslaIyfg9RzMWzjhLnMY7Bpn2Aw"}, {"type": "f1", "value": 0.9884019815052447, "name": "F1 Macro", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYmM4NjQ5Yjk5ODRhYTU1MTY3MmRhZDBmODM1NTg3OTFiNWM4NDRmYjI0MzZkNmQ1MzE3MzcxODZlYzBkYTMyYSIsInZlcnNpb24iOjF9.74RaDK8nBVuGRl2Se_-hwQvP6c4lvVxGHpcCWB4uZUCf2_HoC9NT9u7P3pMJfH_tK2cpV7U3VWGgSDhQDi-UBQ"}, {"type": "f1", "value": 0.9885521685548412, "name": "F1 Micro", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZDRmYWRmMmQ0YjViZmQxMzhhYTUyOTE1MTc0ZDU1ZjQyZjFhMDYzYzMzZDE0NzZlYzQyOTBhMTBhNmM5NTlkMiIsInZlcnNpb24iOjF9.VMn_psdAHIZTlW6GbjERZDe8MHhwzJ0rbjV_VJyuMrsdOh5QDmko-wEvaBWNEdT0cEKsbggm-6jd3Gh81PfHAQ"}, {"type": "f1", "value": 0.9885546181087554, "name": "F1 Weighted", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMjUyZWFhZDZhMGQ3MzBmYmRiNDVmN2FkZDBjMjk3ODk0OTAxNGZkMWE0NzU5ZjI0NzE0NGZiNzM0N2Y2NDYyOSIsInZlcnNpb24iOjF9.YsXBhnzEEFEW6jw3mQlFUuIrW7Gabad2Ils-iunYJr-myg0heF8NEnEWABKFE1SnvCWt-69jkLza6SupeyLVCA"}, {"type": "loss", "value": 0.040652573108673096, "name": "loss", "verified": true, "verifyToken": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZTc3YjU3MjdjMzkxODA5MjU5NGUyY2NkMGVhZDg3ZWEzMmU1YWVjMmI0NmU2OWEyZTkzMTVjNDZiYTc0YjIyNCIsInZlcnNpb24iOjF9.lA90qXZVYiILHMFlr6t6H81Oe8a-4KmeX-vyCC1BDia2ofudegv6Vb46-4RzmbtuKeV6yy6YNNXxXxqVak1pAg"}]}]}]} | text-classification | distilbert/distilbert-base-uncased-finetuned-sst-2-english | [
"transformers",
"pytorch",
"tf",
"rust",
"onnx",
"safetensors",
"distilbert",
"text-classification",
"en",
"dataset:sst2",
"dataset:glue",
"arxiv:1910.01108",
"doi:10.57967/hf/0181",
"license:apache-2.0",
"model-index",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1910.01108"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #rust #onnx #safetensors #distilbert #text-classification #en #dataset-sst2 #dataset-glue #arxiv-1910.01108 #doi-10.57967/hf/0181 #license-apache-2.0 #model-index #autotrain_compatible #endpoints_compatible #has_space #region-us
|
# DistilBERT base uncased finetuned SST-2
## Table of Contents
- Model Details
- How to Get Started With the Model
- Uses
- Risks, Limitations and Biases
- Training
## Model Details
Model Description: This model is a fine-tune checkpoint of DistilBERT-base-uncased, fine-tuned on SST-2.
This model reaches an accuracy of 91.3 on the dev set (for comparison, Bert bert-base-uncased version reaches an accuracy of 92.7).
- Developed by: Hugging Face
- Model Type: Text Classification
- Language(s): English
- License: Apache-2.0
- Parent Model: For more details about DistilBERT, we encourage users to check out this model card.
- Resources for more information:
- Model Documentation
- DistilBERT paper
## How to Get Started With the Model
Example of single-label classification:
## Uses
#### Direct Use
This model can be used for topic classification. You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
## Risks, Limitations and Biases
Based on a few experimentations, we observed that this model could produce biased predictions that target underrepresented populations.
For instance, for sentences like 'This film was filmed in COUNTRY', this binary classification model will give radically different probabilities for the positive label depending on the country (0.89 if the country is France, but 0.08 if the country is Afghanistan) when nothing in the input indicates such a strong semantic shift. In this colab, Aurélien Géron made an interesting map plotting these probabilities for each country.
<img src="URL alt="Map of positive probabilities per country." width="500"/>
We strongly advise users to thoroughly probe these aspects on their use-cases in order to evaluate the risks of this model. We recommend looking at the following bias evaluation datasets as a place to start: WinoBias, WinoGender, Stereoset.
# Training
#### Training Data
The authors use the following Stanford Sentiment Treebank(sst2) corpora for the model.
#### Training Procedure
###### Fine-tuning hyper-parameters
- learning_rate = 1e-5
- batch_size = 32
- warmup = 600
- max_seq_length = 128
- num_train_epochs = 3.0
| [
"# DistilBERT base uncased finetuned SST-2",
"## Table of Contents\n- Model Details\n- How to Get Started With the Model\n- Uses\n- Risks, Limitations and Biases\n- Training",
"## Model Details\nModel Description: This model is a fine-tune checkpoint of DistilBERT-base-uncased, fine-tuned on SST-2.\nThis model reaches an accuracy of 91.3 on the dev set (for comparison, Bert bert-base-uncased version reaches an accuracy of 92.7).\n- Developed by: Hugging Face\n- Model Type: Text Classification\n- Language(s): English\n- License: Apache-2.0\n- Parent Model: For more details about DistilBERT, we encourage users to check out this model card.\n- Resources for more information:\n - Model Documentation\n - DistilBERT paper",
"## How to Get Started With the Model\n\nExample of single-label classification:\n",
"## Uses",
"#### Direct Use\n\nThis model can be used for topic classification. You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.",
"#### Misuse and Out-of-scope Use\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.",
"## Risks, Limitations and Biases\n\nBased on a few experimentations, we observed that this model could produce biased predictions that target underrepresented populations.\n\nFor instance, for sentences like 'This film was filmed in COUNTRY', this binary classification model will give radically different probabilities for the positive label depending on the country (0.89 if the country is France, but 0.08 if the country is Afghanistan) when nothing in the input indicates such a strong semantic shift. In this colab, Aurélien Géron made an interesting map plotting these probabilities for each country.\n\n<img src=\"URL alt=\"Map of positive probabilities per country.\" width=\"500\"/>\n\nWe strongly advise users to thoroughly probe these aspects on their use-cases in order to evaluate the risks of this model. We recommend looking at the following bias evaluation datasets as a place to start: WinoBias, WinoGender, Stereoset.",
"# Training",
"#### Training Data\n\n\nThe authors use the following Stanford Sentiment Treebank(sst2) corpora for the model.",
"#### Training Procedure",
"###### Fine-tuning hyper-parameters\n\n\n- learning_rate = 1e-5\n- batch_size = 32\n- warmup = 600\n- max_seq_length = 128\n- num_train_epochs = 3.0"
] | [
"TAGS\n#transformers #pytorch #tf #rust #onnx #safetensors #distilbert #text-classification #en #dataset-sst2 #dataset-glue #arxiv-1910.01108 #doi-10.57967/hf/0181 #license-apache-2.0 #model-index #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"# DistilBERT base uncased finetuned SST-2",
"## Table of Contents\n- Model Details\n- How to Get Started With the Model\n- Uses\n- Risks, Limitations and Biases\n- Training",
"## Model Details\nModel Description: This model is a fine-tune checkpoint of DistilBERT-base-uncased, fine-tuned on SST-2.\nThis model reaches an accuracy of 91.3 on the dev set (for comparison, Bert bert-base-uncased version reaches an accuracy of 92.7).\n- Developed by: Hugging Face\n- Model Type: Text Classification\n- Language(s): English\n- License: Apache-2.0\n- Parent Model: For more details about DistilBERT, we encourage users to check out this model card.\n- Resources for more information:\n - Model Documentation\n - DistilBERT paper",
"## How to Get Started With the Model\n\nExample of single-label classification:\n",
"## Uses",
"#### Direct Use\n\nThis model can be used for topic classification. You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.",
"#### Misuse and Out-of-scope Use\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.",
"## Risks, Limitations and Biases\n\nBased on a few experimentations, we observed that this model could produce biased predictions that target underrepresented populations.\n\nFor instance, for sentences like 'This film was filmed in COUNTRY', this binary classification model will give radically different probabilities for the positive label depending on the country (0.89 if the country is France, but 0.08 if the country is Afghanistan) when nothing in the input indicates such a strong semantic shift. In this colab, Aurélien Géron made an interesting map plotting these probabilities for each country.\n\n<img src=\"URL alt=\"Map of positive probabilities per country.\" width=\"500\"/>\n\nWe strongly advise users to thoroughly probe these aspects on their use-cases in order to evaluate the risks of this model. We recommend looking at the following bias evaluation datasets as a place to start: WinoBias, WinoGender, Stereoset.",
"# Training",
"#### Training Data\n\n\nThe authors use the following Stanford Sentiment Treebank(sst2) corpora for the model.",
"#### Training Procedure",
"###### Fine-tuning hyper-parameters\n\n\n- learning_rate = 1e-5\n- batch_size = 32\n- warmup = 600\n- max_seq_length = 128\n- num_train_epochs = 3.0"
] | [
103,
15,
32,
144,
18,
3,
72,
76,
220,
2,
24,
5,
53
] | [
"passage: TAGS\n#transformers #pytorch #tf #rust #onnx #safetensors #distilbert #text-classification #en #dataset-sst2 #dataset-glue #arxiv-1910.01108 #doi-10.57967/hf/0181 #license-apache-2.0 #model-index #autotrain_compatible #endpoints_compatible #has_space #region-us \n# DistilBERT base uncased finetuned SST-2## Table of Contents\n- Model Details\n- How to Get Started With the Model\n- Uses\n- Risks, Limitations and Biases\n- Training## Model Details\nModel Description: This model is a fine-tune checkpoint of DistilBERT-base-uncased, fine-tuned on SST-2.\nThis model reaches an accuracy of 91.3 on the dev set (for comparison, Bert bert-base-uncased version reaches an accuracy of 92.7).\n- Developed by: Hugging Face\n- Model Type: Text Classification\n- Language(s): English\n- License: Apache-2.0\n- Parent Model: For more details about DistilBERT, we encourage users to check out this model card.\n- Resources for more information:\n - Model Documentation\n - DistilBERT paper## How to Get Started With the Model\n\nExample of single-label classification:\n## Uses#### Direct Use\n\nThis model can be used for topic classification. You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.#### Misuse and Out-of-scope Use\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model."
] | [
-0.08341166377067566,
0.1307915449142456,
-0.005321983713656664,
0.05062628909945488,
0.08131092041730881,
-0.022695692256093025,
0.056575655937194824,
0.1258835792541504,
0.042227305471897125,
0.10561633110046387,
0.016543637961149216,
0.02908763661980629,
0.10847453027963638,
0.108261838555336,
0.014737913385033607,
-0.18853388726711273,
0.0550326332449913,
-0.07792928069829941,
0.11171457171440125,
0.11472762376070023,
0.10598627477884293,
-0.08376500755548477,
0.09749585390090942,
0.0031894936691969633,
-0.06826524436473846,
-0.005608408711850643,
-0.011592421680688858,
-0.01146121509373188,
0.06909798830747604,
0.04523962363600731,
0.06052196025848389,
-0.005926440469920635,
0.05186836048960686,
-0.19041800498962402,
0.023158054798841476,
0.09153161197900772,
-0.004578202497214079,
0.053977686911821365,
0.07995448261499405,
-0.019382741302251816,
0.20539817214012146,
-0.1149253100156784,
0.056532587856054306,
0.09672299772500992,
-0.09952148795127869,
-0.11644545942544937,
-0.11310365051031113,
0.13320064544677734,
0.08693162351846695,
0.04302005097270012,
-0.043032463639974594,
0.10023456066846848,
0.02379869483411312,
0.0634562224149704,
0.12623074650764465,
-0.15384681522846222,
-0.03715484216809273,
0.03024597093462944,
0.04359310492873192,
-0.019167527556419373,
-0.0791558027267456,
0.026951035484671593,
-0.0009456687839701772,
0.022860771045088768,
0.08864262700080872,
-0.03685017302632332,
0.07649030536413193,
-0.04739565774798393,
-0.1031123474240303,
-0.07728806883096695,
0.07890358567237854,
0.055243585258722305,
-0.10755184292793274,
-0.22877207398414612,
-0.06540603190660477,
0.14066071808338165,
0.013487263582646847,
-0.06995035707950592,
0.02457396686077118,
0.004132492002099752,
0.0781923159956932,
-0.0995011180639267,
-0.10474176704883575,
-0.02567453123629093,
0.0018352180486544967,
0.07915320247411728,
0.016544636338949203,
0.01024157740175724,
0.05302904546260834,
0.11284548789262772,
-0.07735338062047958,
-0.08525705337524414,
-0.07855458557605743,
-0.08962606638669968,
-0.11327259987592697,
-0.008259819820523262,
-0.002266772324219346,
-0.03290403261780739,
0.014224384911358356,
0.16615906357765198,
-0.08333498984575272,
0.021766457706689835,
-0.01801219768822193,
0.007312198169529438,
0.088837631046772,
0.1030040830373764,
-0.01810346730053425,
-0.02891620062291622,
0.004682563710957766,
0.028328072279691696,
0.04098791629076004,
-0.015021998435258865,
-0.019598474726080894,
-0.04567936435341835,
0.08326435834169388,
0.044365789741277695,
0.03160548210144043,
0.04910629242658615,
-0.05312502011656761,
-0.03764234110713005,
0.15914537012577057,
-0.15189626812934875,
0.023244014009833336,
0.03405309468507767,
-0.03213876858353615,
-0.024811772629618645,
0.03629438579082489,
-0.012779461219906807,
-0.08556828647851944,
0.0209053847938776,
-0.04415452480316162,
-0.015998156741261482,
-0.07403858006000519,
-0.09372485429048538,
0.030203746631741524,
-0.08987054973840714,
-0.06257286667823792,
-0.12777535617351532,
-0.18444262444972992,
-0.07284081727266312,
0.05249297618865967,
-0.05935434252023697,
0.002634531818330288,
-0.02349589765071869,
-0.04261571913957596,
-0.0158696249127388,
0.016870802268385887,
-0.018732983618974686,
-0.0012933954130858183,
0.040681902319192886,
-0.06093722581863403,
0.0300452783703804,
0.06362326443195343,
0.009477436542510986,
-0.07417295128107071,
0.04482625424861908,
-0.19999969005584717,
0.1440136879682541,
-0.06213364750146866,
0.046455349773168564,
-0.09697316586971283,
-0.02820439077913761,
0.025881780311465263,
0.05447528138756752,
0.04668455570936203,
0.1871488243341446,
-0.12186510115861893,
-0.03784807771444321,
0.1741684228181839,
-0.11527867615222931,
-0.0716814398765564,
0.1077776625752449,
-0.05520801991224289,
0.114305779337883,
0.11163607984781265,
0.11543484777212143,
0.1115601509809494,
-0.15366950631141663,
-0.04622315987944603,
0.037213146686553955,
-0.09336128830909729,
0.0985681414604187,
0.042610764503479004,
-0.0803135335445404,
-0.009870881214737892,
0.02198951318860054,
-0.03036535158753395,
-0.05663670599460602,
0.002042605308815837,
-0.03614189475774765,
-0.004561166279017925,
-0.03183366358280182,
0.02368849888443947,
-0.007680175825953484,
-0.08415837585926056,
-0.03544412553310394,
-0.13161566853523254,
0.012441233731806278,
0.0739663764834404,
-0.024113290011882782,
0.03199438378214836,
-0.08537532389163971,
0.08868131786584854,
0.006237469147890806,
0.02170322835445404,
-0.1900804191827774,
-0.03697381168603897,
0.040392279624938965,
-0.09309624135494232,
0.06738489121198654,
-0.04223578795790672,
0.043566178530454636,
0.0188938956707716,
-0.039537783712148666,
-0.05102786794304848,
-0.007971878163516521,
-0.024585438892245293,
-0.056024909019470215,
-0.08876967430114746,
-0.027248268947005272,
-0.056512460112571716,
0.08110208809375763,
-0.16033335030078888,
0.054982904344797134,
0.07899420708417892,
0.06940443813800812,
0.009258246049284935,
-0.043110575526952744,
0.03750597685575485,
-0.0311750415712595,
0.010603363625705242,
-0.06945329904556274,
0.06488606333732605,
0.030484244227409363,
-0.07303598523139954,
0.015930069610476494,
-0.18765702843666077,
-0.1103215143084526,
0.04523596912622452,
0.05285298824310303,
-0.14585888385772705,
-0.08737927675247192,
-0.041915375739336014,
-0.005707925651222467,
-0.058929234743118286,
-0.12092234194278717,
0.14173173904418945,
0.04123188555240631,
0.07246129214763641,
-0.11436069756746292,
-0.08877149224281311,
0.028710734099149704,
-0.013425705954432487,
-0.02016175538301468,
0.0890832468867302,
-0.049811508506536484,
-0.14126010239124298,
0.045966435223817825,
0.055468302220106125,
0.04676894471049309,
0.10635777562856674,
0.018747985363006592,
-0.0751304104924202,
-0.015055131167173386,
0.05019520968198776,
0.0013395239366218448,
0.06120477244257927,
-0.027989264577627182,
-0.013929025270044804,
0.04652930796146393,
0.005666421726346016,
-0.011088620871305466,
-0.08551865071058273,
0.05197029933333397,
0.03261981159448624,
-0.007386504672467709,
0.027211006730794907,
0.017666639760136604,
-0.012858097441494465,
0.11393396556377411,
0.0391177162528038,
0.02919621951878071,
0.005566081497818232,
-0.044672880321741104,
-0.12745049595832825,
0.17561765015125275,
-0.08329245448112488,
-0.2597356140613556,
-0.14422805607318878,
-0.005199973005801439,
-0.044623345136642456,
0.018519282341003418,
0.02853747084736824,
-0.04056201130151749,
-0.06924440711736679,
-0.12192605435848236,
-0.000228390286793001,
0.0264456644654274,
-0.1031290590763092,
-0.025782963261008263,
0.023473521694540977,
0.06320708245038986,
-0.10517694801092148,
-0.02817113697528839,
0.012131747789680958,
-0.10703819990158081,
0.020317595452070236,
0.03063978999853134,
0.06947986036539078,
0.10011526942253113,
0.017426704987883568,
0.0015380365075543523,
-0.037932638078927994,
0.16326293349266052,
-0.08263158798217773,
0.13456012308597565,
0.16320711374282837,
-0.05147320404648781,
0.10172072052955627,
0.16152915358543396,
0.021176084876060486,
-0.05082068592309952,
0.043834198266267776,
0.03330758959054947,
-0.0396437793970108,
-0.2073216587305069,
-0.067902572453022,
-0.002543381415307522,
0.016622018069028854,
0.053958434611558914,
0.06583350151777267,
0.07782776653766632,
0.04684941843152046,
-0.05872232839465141,
-0.061907581984996796,
0.1020011380314827,
0.12615953385829926,
0.05107401683926582,
-0.032377976924180984,
0.05979963019490242,
-0.031497880816459656,
0.03295517340302467,
0.12371665239334106,
-0.04562312364578247,
0.16506896913051605,
-0.027246633544564247,
0.07559642195701599,
0.05846022069454193,
-0.005110203288495541,
-0.024238569661974907,
0.06352971494197845,
-0.034842245280742645,
0.04810475930571556,
-0.03311777487397194,
-0.08893296122550964,
-0.032326556742191315,
0.103297159075737,
-0.012714281678199768,
0.011577801778912544,
-0.05552608147263527,
-0.03454776853322983,
0.08889318257570267,
0.1420249193906784,
0.0425916388630867,
-0.1415872573852539,
-0.08895884454250336,
0.041536591947078705,
-0.03710392117500305,
-0.13338126242160797,
-0.003780132392421365,
0.09189660847187042,
-0.16665859520435333,
0.05372348055243492,
-0.009976448491215706,
0.09773995727300644,
-0.05296958610415459,
-0.00579396216198802,
-0.024777881801128387,
0.11799877882003784,
-0.03557334095239639,
0.07275403290987015,
-0.18546593189239502,
0.1013612449169159,
0.014331399463117123,
0.0968777984380722,
-0.05041483789682388,
0.04653429985046387,
0.046535950154066086,
0.01428298745304346,
0.22781050205230713,
0.022716598585247993,
0.006492322776466608,
-0.055953118950128555,
-0.05645129457116127,
0.008423774503171444,
0.07494014501571655,
-0.07727619260549545,
0.056659866124391556,
-0.03268398344516754,
-0.017725195735692978,
-0.039231352508068085,
0.03372874855995178,
-0.12265767902135849,
-0.11272886395454407,
-0.012066901661455631,
-0.08084902912378311,
0.008630226366221905,
-0.05694087594747543,
0.001239648088812828,
-0.06416264921426773,
0.2083626538515091,
-0.13918983936309814,
-0.12955985963344574,
-0.12651358544826508,
-0.055333174765110016,
0.04736137390136719,
-0.05466846004128456,
0.03303057327866554,
-0.020869718864560127,
0.14657185971736908,
-0.04393698647618294,
-0.06298163533210754,
0.01730547472834587,
-0.05916200950741768,
-0.1715102642774582,
-0.026068823412060738,
0.16473707556724548,
0.11413443088531494,
0.037729762494564056,
0.022952502593398094,
0.03375567868351936,
-0.018200164660811424,
-0.09081722795963287,
0.024978946894407272,
0.2291993796825409,
0.12352679669857025,
0.06690310686826706,
-0.08061465620994568,
-0.15181498229503632,
-0.09676042944192886,
0.003700341796502471,
0.05965657904744148,
0.20902210474014282,
-0.05057213827967644,
0.14345404505729675,
0.222041517496109,
-0.09849067777395248,
-0.21392445266246796,
-0.028805367648601532,
0.03303373605012894,
0.024473609402775764,
0.026634501293301582,
-0.1611008495092392,
0.036905188113451004,
0.04843742400407791,
-0.013351259753108025,
0.015324254520237446,
-0.1258624643087387,
-0.12833084166049957,
0.09347732365131378,
0.03529220074415207,
-0.052541229873895645,
-0.08879491686820984,
-0.06502889096736908,
-0.04052997753024101,
-0.0913296490907669,
0.10592105239629745,
-0.07824356853961945,
0.017032789066433907,
0.02456584759056568,
0.010669761337339878,
0.05443472042679787,
-0.035718221217393875,
0.10704542696475983,
0.013698837719857693,
0.06738261133432388,
-0.10298015177249908,
-0.06963014602661133,
0.07273144274950027,
-0.11059754341840744,
0.11053404957056046,
-0.0037402992602437735,
0.06474469602108002,
-0.1346193253993988,
-0.03805749863386154,
-0.09150959551334381,
0.0853571817278862,
-0.06476182490587234,
-0.07368817925453186,
-0.07516593486070633,
0.0950552448630333,
0.06978896260261536,
-0.02132791467010975,
-0.03333327919244766,
-0.11696121841669083,
0.052711501717567444,
0.16774019598960876,
0.18278980255126953,
0.0367007851600647,
-0.01632961630821228,
-0.037904221564531326,
-0.04416462406516075,
0.04362168163061142,
-0.12727844715118408,
0.00974508561193943,
0.07780766487121582,
0.021306371316313744,
0.13734258711338043,
-0.0021833127830177546,
-0.14133304357528687,
-0.008409456349909306,
0.018955208361148834,
-0.1333080381155014,
-0.15157711505889893,
-0.04625248163938522,
0.024414753541350365,
-0.1409265697002411,
-0.02210734412074089,
0.08789326995611191,
-0.026156529784202576,
-0.02237866446375847,
0.02117261290550232,
0.06402108818292618,
-0.01300860196352005,
0.022349292412400246,
0.0411643423140049,
0.029017940163612366,
-0.041918084025382996,
0.09398838132619858,
0.02908111736178398,
-0.06779707968235016,
0.046452831476926804,
0.08836966753005981,
-0.10801038891077042,
-0.06731171160936356,
-0.0459277406334877,
0.08592170476913452,
0.001691755373030901,
-0.06995797902345657,
0.07304006069898605,
-0.0696580708026886,
0.04246807098388672,
0.12332642078399658,
0.04211452603340149,
0.009438296779990196,
-0.0007002706988714635,
0.049898725003004074,
-0.045288167893886566,
0.09840837866067886,
0.01594211906194687,
-0.014762334525585175,
-0.08120613545179367,
0.04552562162280083,
0.008551642298698425,
0.03220756724476814,
-0.016188250854611397,
-0.05706179887056351,
-0.07939296960830688,
-0.020789604634046555,
-0.1145971417427063,
0.028239348903298378,
-0.09598758816719055,
-0.006187609396874905,
-0.011889394372701645,
0.010153035633265972,
0.04385413974523544,
0.02005690336227417,
-0.022758901119232178,
-0.032269660383462906,
0.0023577518295496702,
0.07214003056287766,
-0.15464507043361664,
-0.014717434532940388,
0.04339001327753067,
-0.0915144830942154,
0.1276942640542984,
0.016975311562418938,
-0.05949397757649422,
0.014586628414690495,
-0.13648943603038788,
0.03580201044678688,
-0.034227173775434494,
0.011166087351739407,
0.006764641497284174,
-0.1277981400489807,
-0.004170025698840618,
-0.03706955909729004,
-0.09171558171510696,
-0.017672160640358925,
0.03467379882931709,
-0.06411733478307724,
0.1079217866063118,
0.05754134804010391,
-0.05146435648202896,
-0.09189102798700333,
0.06320741027593613,
0.05004793405532837,
0.06183963641524315,
0.07127582281827927,
-0.03876958042383194,
0.04495629668235779,
-0.14732113480567932,
-0.003984169568866491,
0.03887762129306793,
0.003711467143148184,
-0.02913086675107479,
-0.057675689458847046,
0.0518987774848938,
0.0027248612605035305,
0.0833972692489624,
-0.00572207011282444,
0.003950454294681549,
0.041772931814193726,
-0.008842457085847855,
-0.049374792724847794,
-0.002867880044505,
0.06430081278085709,
-0.021640019491314888,
-0.019433045759797096,
-0.014329605735838413,
-0.03936527296900749,
-0.0300856102257967,
-0.08548235148191452,
0.1025436744093895,
0.1321457028388977,
0.059114135801792145,
0.00578299118205905,
0.053672343492507935,
-0.015142388641834259,
-0.094774030148983,
0.004114498849958181,
-0.03476933389902115,
0.010413371957838535,
-0.09522519260644913,
0.16714082658290863,
0.13718724250793457,
-0.14892518520355225,
0.11145170778036118,
-0.003095473861321807,
-0.049227483570575714,
-0.08607245236635208,
-0.24569182097911835,
-0.031407371163368225,
0.012732932344079018,
-0.004076843615621328,
-0.0868062749505043,
0.038054607808589935,
0.03285011649131775,
-0.004334197845309973,
-0.03951924666762352,
0.12650088965892792,
-0.10662796348333359,
-0.0636008083820343,
0.11319822072982788,
0.01539867278188467,
0.014972260221838951,
0.018946919590234756,
0.011873695999383926,
0.058858610689640045,
0.07921590656042099,
0.07787811756134033,
0.08247364312410355,
0.058582156896591187,
-0.02170020528137684,
-0.05540059506893158,
-0.0662725642323494,
0.0011231460375711322,
0.022483617067337036,
-0.05575104430317879,
0.09530563652515411,
0.06918773055076599,
-0.03359973803162575,
-0.000015320041711675003,
0.1966177076101303,
-0.07696328312158585,
-0.07072096318006516,
-0.1366652399301529,
0.2787254750728607,
-0.02562073990702629,
-0.016301622614264488,
0.04937417805194855,
-0.13944795727729797,
0.02171815186738968,
0.16162937879562378,
0.12886525690555573,
-0.012032846920192242,
0.03330370783805847,
-0.013444216921925545,
0.010485912673175335,
-0.008936475962400436,
0.08827503025531769,
0.008052400313317776,
0.22129397094249725,
-0.04009011387825012,
0.13841526210308075,
-0.009555059485137463,
-0.05966223031282425,
-0.036391887813806534,
0.09785585105419159,
-0.022078918293118477,
-0.013978959061205387,
-0.05514994636178017,
0.09491345286369324,
-0.0543084554374218,
-0.26588764786720276,
0.03167770430445671,
-0.007134338840842247,
-0.04303836449980736,
0.00986555963754654,
-0.03022264875471592,
0.03653969615697861,
0.05552378669381142,
0.00793441291898489,
0.021915912628173828,
0.16093476116657257,
0.006518389098346233,
-0.03955148160457611,
-0.008174801245331764,
0.06943289935588837,
-0.06750171631574631,
0.18426936864852905,
0.030544845387339592,
0.07560577243566513,
0.10127602517604828,
-0.012351748533546925,
-0.13036638498306274,
0.05839880183339119,
0.024654636159539223,
-0.049176253378391266,
0.011600411497056484,
0.17845946550369263,
0.011241139844059944,
-0.010809017345309258,
0.06182022765278816,
-0.06891970336437225,
0.035996343940496445,
0.023532725870609283,
-0.04313890263438225,
-0.11580972373485565,
0.13615532219409943,
-0.10144505649805069,
0.12778113782405853,
0.12099846452474594,
-0.008846881799399853,
0.009701010771095753,
-0.07203852385282516,
0.013939621858298779,
0.031135521829128265,
0.05846262350678444,
0.022364409640431404,
-0.09633367508649826,
0.040551964193582535,
0.0428001806139946,
0.0723142921924591,
-0.26439619064331055,
-0.06636084616184235,
0.02224370837211609,
0.020389607176184654,
-0.04457850381731987,
0.09906996041536331,
-0.017147064208984375,
0.031046103686094284,
-0.01705850288271904,
0.0034943202044814825,
0.004406946245580912,
0.14569443464279175,
-0.07503469288349152,
-0.011174628511071205
] |
null | null | transformers |
# DistilBERT base model (uncased)
This model is a distilled version of the [BERT base model](https://huggingface.co/bert-base-uncased). It was
introduced in [this paper](https://arxiv.org/abs/1910.01108). The code for the distillation process can be found
[here](https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation). This model is uncased: it does
not make a difference between english and English.
## Model description
DistilBERT is a transformers model, smaller and faster than BERT, which was pretrained on the same corpus in a
self-supervised fashion, using the BERT base model as a teacher. This means it was pretrained on the raw texts only,
with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic
process to generate inputs and labels from those texts using the BERT base model. More precisely, it was pretrained
with three objectives:
- Distillation loss: the model was trained to return the same probabilities as the BERT base model.
- Masked language modeling (MLM): this is part of the original training loss of the BERT base model. When taking a
sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the
model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that
usually see the words one after the other, or from autoregressive models like GPT which internally mask the future
tokens. It allows the model to learn a bidirectional representation of the sentence.
- Cosine embedding loss: the model was also trained to generate hidden states as close as possible as the BERT base
model.
This way, the model learns the same inner representation of the English language than its teacher model, while being
faster for inference or downstream tasks.
## Intended uses & limitations
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=distilbert) to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='distilbert-base-uncased')
>>> unmasker("Hello I'm a [MASK] model.")
[{'sequence': "[CLS] hello i'm a role model. [SEP]",
'score': 0.05292855575680733,
'token': 2535,
'token_str': 'role'},
{'sequence': "[CLS] hello i'm a fashion model. [SEP]",
'score': 0.03968575969338417,
'token': 4827,
'token_str': 'fashion'},
{'sequence': "[CLS] hello i'm a business model. [SEP]",
'score': 0.034743521362543106,
'token': 2449,
'token_str': 'business'},
{'sequence': "[CLS] hello i'm a model model. [SEP]",
'score': 0.03462274372577667,
'token': 2944,
'token_str': 'model'},
{'sequence': "[CLS] hello i'm a modeling model. [SEP]",
'score': 0.018145186826586723,
'token': 11643,
'token_str': 'modeling'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import DistilBertTokenizer, DistilBertModel
tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
model = DistilBertModel.from_pretrained("distilbert-base-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import DistilBertTokenizer, TFDistilBertModel
tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
model = TFDistilBertModel.from_pretrained("distilbert-base-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions. It also inherits some of
[the bias of its teacher model](https://huggingface.co/bert-base-uncased#limitations-and-bias).
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='distilbert-base-uncased')
>>> unmasker("The White man worked as a [MASK].")
[{'sequence': '[CLS] the white man worked as a blacksmith. [SEP]',
'score': 0.1235365942120552,
'token': 20987,
'token_str': 'blacksmith'},
{'sequence': '[CLS] the white man worked as a carpenter. [SEP]',
'score': 0.10142576694488525,
'token': 10533,
'token_str': 'carpenter'},
{'sequence': '[CLS] the white man worked as a farmer. [SEP]',
'score': 0.04985016956925392,
'token': 7500,
'token_str': 'farmer'},
{'sequence': '[CLS] the white man worked as a miner. [SEP]',
'score': 0.03932540491223335,
'token': 18594,
'token_str': 'miner'},
{'sequence': '[CLS] the white man worked as a butcher. [SEP]',
'score': 0.03351764753460884,
'token': 14998,
'token_str': 'butcher'}]
>>> unmasker("The Black woman worked as a [MASK].")
[{'sequence': '[CLS] the black woman worked as a waitress. [SEP]',
'score': 0.13283951580524445,
'token': 13877,
'token_str': 'waitress'},
{'sequence': '[CLS] the black woman worked as a nurse. [SEP]',
'score': 0.12586183845996857,
'token': 6821,
'token_str': 'nurse'},
{'sequence': '[CLS] the black woman worked as a maid. [SEP]',
'score': 0.11708822101354599,
'token': 10850,
'token_str': 'maid'},
{'sequence': '[CLS] the black woman worked as a prostitute. [SEP]',
'score': 0.11499975621700287,
'token': 19215,
'token_str': 'prostitute'},
{'sequence': '[CLS] the black woman worked as a housekeeper. [SEP]',
'score': 0.04722772538661957,
'token': 22583,
'token_str': 'housekeeper'}]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
DistilBERT pretrained on the same data as BERT, which is [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset
consisting of 11,038 unpublished books and [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia)
(excluding lists, tables and headers).
## Training procedure
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
```
[CLS] Sentence A [SEP] Sentence B [SEP]
```
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `[MASK]`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 8 16 GB V100 for 90 hours. See the
[training code](https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation) for all hyperparameters
details.
## Evaluation results
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
| Task | MNLI | QQP | QNLI | SST-2 | CoLA | STS-B | MRPC | RTE |
|:----:|:----:|:----:|:----:|:-----:|:----:|:-----:|:----:|:----:|
| | 82.2 | 88.5 | 89.2 | 91.3 | 51.3 | 85.8 | 87.5 | 59.9 |
### BibTeX entry and citation info
```bibtex
@article{Sanh2019DistilBERTAD,
title={DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter},
author={Victor Sanh and Lysandre Debut and Julien Chaumond and Thomas Wolf},
journal={ArXiv},
year={2019},
volume={abs/1910.01108}
}
```
<a href="https://huggingface.co/exbert/?model=distilbert-base-uncased">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": "en", "license": "apache-2.0", "tags": ["exbert"], "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | distilbert/distilbert-base-uncased | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"distilbert",
"fill-mask",
"exbert",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1910.01108",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1910.01108"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #rust #safetensors #distilbert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1910.01108 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us
| DistilBERT base model (uncased)
===============================
This model is a distilled version of the BERT base model. It was
introduced in this paper. The code for the distillation process can be found
here. This model is uncased: it does
not make a difference between english and English.
Model description
-----------------
DistilBERT is a transformers model, smaller and faster than BERT, which was pretrained on the same corpus in a
self-supervised fashion, using the BERT base model as a teacher. This means it was pretrained on the raw texts only,
with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic
process to generate inputs and labels from those texts using the BERT base model. More precisely, it was pretrained
with three objectives:
* Distillation loss: the model was trained to return the same probabilities as the BERT base model.
* Masked language modeling (MLM): this is part of the original training loss of the BERT base model. When taking a
sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the
model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that
usually see the words one after the other, or from autoregressive models like GPT which internally mask the future
tokens. It allows the model to learn a bidirectional representation of the sentence.
* Cosine embedding loss: the model was also trained to generate hidden states as close as possible as the BERT base
model.
This way, the model learns the same inner representation of the English language than its teacher model, while being
faster for inference or downstream tasks.
Intended uses & limitations
---------------------------
You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to
be fine-tuned on a downstream task. See the model hub to look for
fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
Even if the training data used for this model could be characterized as fairly neutral, this model can have biased
predictions. It also inherits some of
the bias of its teacher model.
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
DistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset
consisting of 11,038 unpublished books and English Wikipedia
(excluding lists, tables and headers).
Training procedure
------------------
### Preprocessing
The texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are
then of the form:
With probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in
the other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a
consecutive span of text usually longer than a single sentence. The only constrain is that the result with the two
"sentences" has a combined length of less than 512 tokens.
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by '[MASK]'.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
### Pretraining
The model was trained on 8 16 GB V100 for 90 hours. See the
training code for all hyperparameters
details.
Evaluation results
------------------
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
### BibTeX entry and citation info
<a href="URL
<img width="300px" src="URL
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions. It also inherits some of\nthe bias of its teacher model.\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nDistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset\nconsisting of 11,038 unpublished books and English Wikipedia\n(excluding lists, tables and headers).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 8 16 GB V100 for 90 hours. See the\ntraining code for all hyperparameters\ndetails.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #distilbert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1910.01108 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions. It also inherits some of\nthe bias of its teacher model.\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nDistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset\nconsisting of 11,038 unpublished books and English Wikipedia\n(excluding lists, tables and headers).\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.",
"### Pretraining\n\n\nThe model was trained on 8 16 GB V100 for 90 hours. See the\ntraining code for all hyperparameters\ndetails.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
88,
49,
124,
222,
60,
30
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #distilbert #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1910.01108 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nEven if the training data used for this model could be characterized as fairly neutral, this model can have biased\npredictions. It also inherits some of\nthe bias of its teacher model.\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nDistilBERT pretrained on the same data as BERT, which is BookCorpus, a dataset\nconsisting of 11,038 unpublished books and English Wikipedia\n(excluding lists, tables and headers).\n\n\nTraining procedure\n------------------### Preprocessing\n\n\nThe texts are lowercased and tokenized using WordPiece and a vocabulary size of 30,000. The inputs of the model are\nthen of the form:\n\n\nWith probability 0.5, sentence A and sentence B correspond to two consecutive sentences in the original corpus and in\nthe other cases, it's another random sentence in the corpus. Note that what is considered a sentence here is a\nconsecutive span of text usually longer than a single sentence. The only constrain is that the result with the two\n\"sentences\" has a combined length of less than 512 tokens.\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by '[MASK]'.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is."
] | [
-0.06383701413869858,
0.11920983344316483,
-0.005823781713843346,
0.05796981602907181,
0.02685246616601944,
0.005743775051087141,
0.08460643142461777,
0.05689731985330582,
-0.08371280133724213,
0.0710599422454834,
0.029416946694254875,
0.02260884828865528,
0.09089194983243942,
0.1052398830652237,
0.03533041477203369,
-0.24914780259132385,
0.07706094533205032,
-0.018293816596269608,
0.04180705547332764,
0.07640745490789413,
0.09790438413619995,
-0.08782302588224411,
0.02895234152674675,
0.013255511410534382,
-0.01595234125852585,
-0.048309534788131714,
0.01161262858659029,
-0.07283569127321243,
0.06416026502847672,
0.05965425819158554,
0.08994167298078537,
0.013164880685508251,
0.0227302648127079,
-0.11535193771123886,
0.021577272564172745,
0.08920824527740479,
-0.010556240566074848,
0.06976588815450668,
0.044669028371572495,
-0.0006504341727122664,
0.08874955028295517,
-0.07597862929105759,
0.054699163883924484,
0.010608415119349957,
-0.15564361214637756,
-0.10630252212285995,
-0.1030501201748848,
0.0774906575679779,
0.04412417858839035,
0.019356774166226387,
-0.03675058111548424,
0.12096474319696426,
-0.007600340060889721,
0.08257902413606644,
0.22334733605384827,
-0.2199764847755432,
0.0030365893617272377,
0.01758711226284504,
0.02511047199368477,
-0.015626078471541405,
-0.08525670319795609,
-0.027953950688242912,
0.011115417815744877,
0.014861931093037128,
0.08527223765850067,
-0.02394305355846882,
0.08911063522100449,
-0.05153288692235947,
-0.1204913929104805,
-0.0773707777261734,
0.06838426738977432,
-0.02983977273106575,
-0.10407969355583191,
-0.12883734703063965,
-0.045002542436122894,
0.02352818287909031,
-0.015133694745600224,
0.015311729162931442,
0.005395723506808281,
-0.004455165937542915,
0.04645388200879097,
-0.044826384633779526,
-0.08204635977745056,
0.002811528043821454,
-0.09870410710573196,
0.10538488626480103,
0.021353567019104958,
0.00975419208407402,
-0.04258384183049202,
0.0639428198337555,
-0.11370109021663666,
-0.10975312441587448,
-0.052414216101169586,
-0.062023282051086426,
-0.10848858952522278,
-0.017322838306427002,
-0.06819667667150497,
-0.12711219489574432,
-0.06505779176950455,
0.09664244949817657,
-0.05992462486028671,
0.030772656202316284,
-0.0771014466881752,
0.042681608349084854,
0.08533232659101486,
0.10101009905338287,
-0.0742039754986763,
-0.021730542182922363,
0.019988616928458214,
0.015977220609784126,
0.057297222316265106,
-0.030621301382780075,
-0.012265609577298164,
-0.006721419747918844,
0.08742711693048477,
0.019432546570897102,
0.04378161206841469,
0.06334755569696426,
-0.07105357944965363,
-0.04020622745156288,
0.14642302691936493,
-0.12781578302383423,
-0.001231748261488974,
-0.016915185377001762,
-0.03378535434603691,
0.023371253162622452,
0.06939258426427841,
-0.04414301738142967,
-0.10509160161018372,
0.06573531776666641,
-0.07663071900606155,
-0.043289586901664734,
-0.07640133053064346,
-0.18746568262577057,
0.01750335656106472,
-0.09470082819461823,
-0.06647457182407379,
-0.05177944898605347,
-0.1582268625497818,
-0.03489912673830986,
0.02092744968831539,
-0.0023150835186243057,
0.011644323356449604,
-0.03174799680709839,
-0.03691091015934944,
-0.02364317700266838,
0.010235682129859924,
-0.004777874797582626,
-0.007617676164954901,
0.05468390882015228,
-0.04241864010691643,
0.10335705429315567,
0.0022960896603763103,
0.006505765486508608,
-0.11940043419599533,
0.03181286156177521,
-0.23691421747207642,
0.10322438925504684,
-0.004324599169194698,
-0.08649276942014694,
-0.05685627833008766,
-0.06752226501703262,
-0.03773845359683037,
0.0206350889056921,
0.02955521270632744,
0.1213442012667656,
-0.23769541084766388,
-0.056319694966077805,
0.2385966032743454,
-0.1358974128961563,
0.008002487942576408,
0.11138024926185608,
-0.08114082366228104,
0.031931910663843155,
0.12421038746833801,
0.10714921355247498,
-0.002789723686873913,
-0.06245378404855728,
-0.10419026762247086,
-0.06176292523741722,
-0.011964512057602406,
0.1839444935321808,
0.03425019979476929,
-0.05266153812408447,
0.0552540086209774,
0.012042274698615074,
-0.01533469744026661,
-0.07707619667053223,
-0.0023040708620101213,
-0.03315466269850731,
0.020311551168560982,
0.0073301950469613075,
0.10938309133052826,
-0.013618722558021545,
-0.0640251561999321,
-0.04456179961562157,
-0.101469025015831,
0.02794267050921917,
0.045343197882175446,
-0.09511039406061172,
0.06746350973844528,
-0.05103224515914917,
0.04716813564300537,
-0.0691114068031311,
0.001407085102982819,
-0.20942747592926025,
-0.025693830102682114,
0.04783014953136444,
-0.06430911272764206,
0.04779050499200821,
0.05501044541597366,
0.024525955319404602,
0.07319152355194092,
-0.05336221307516098,
0.0394674614071846,
-0.012371244840323925,
-0.02146783098578453,
-0.07836969196796417,
-0.13090366125106812,
-0.038497161120176315,
-0.04959779605269432,
0.08266528695821762,
-0.08057677000761032,
0.014241443015635014,
-0.0005625002086162567,
0.05419674143195152,
0.02860105410218239,
-0.06736194342374802,
0.04337761551141739,
0.01624210551381111,
-0.04060642421245575,
-0.034105345606803894,
0.0035654029343277216,
0.03301410377025604,
-0.06432007998228073,
0.091584213078022,
-0.23542514443397522,
-0.18395279347896576,
0.10147242248058319,
0.07536697387695312,
-0.08345796167850494,
-0.05190812423825264,
-0.024517778307199478,
-0.0053420537151396275,
-0.07783234864473343,
-0.04389011487364769,
0.19580891728401184,
0.03839156776666641,
0.09527364373207092,
-0.10327626019716263,
-0.016289997845888138,
0.009424751624464989,
-0.03455431014299393,
-0.0368504673242569,
0.03976672142744064,
-0.06155160069465637,
-0.14081694185733795,
0.0478232316672802,
-0.02035505138337612,
0.04678158089518547,
0.10521872341632843,
0.03119228407740593,
-0.11073802411556244,
-0.03613976389169693,
-0.040435634553432465,
0.07176612317562103,
0.08238640427589417,
-0.0027537562418729067,
0.006154411006718874,
0.06310196220874786,
0.047586023807525635,
0.004217869136482477,
-0.06719257682561874,
0.07030428200960159,
0.06563755869865417,
-0.02125346101820469,
-0.07677003741264343,
-0.029130512848496437,
0.0123531399294734,
0.09107597172260284,
0.02532362751662731,
0.05874702334403992,
-0.026865409687161446,
-0.0466364324092865,
-0.09164966642856598,
0.1695331633090973,
-0.09135594964027405,
-0.2882068157196045,
-0.14552807807922363,
-0.02144668437540531,
0.00030765324481762946,
0.06397759169340134,
-0.009138386696577072,
0.007697191555052996,
-0.07826405763626099,
-0.11498410254716873,
0.04757019504904747,
0.011698069982230663,
-0.008598730899393559,
-0.03533858805894852,
-0.01789131574332714,
0.009516154415905476,
-0.13024386763572693,
-0.002368565183132887,
-0.01407270785421133,
-0.047352347522974014,
0.012886643409729004,
-0.0156567320227623,
0.0944787859916687,
0.1026671752333641,
-0.01898677460849285,
-0.05211468040943146,
-0.038079604506492615,
0.16730879247188568,
-0.06047005578875542,
0.08188355714082718,
0.014166104607284069,
-0.09830602258443832,
0.07152500748634338,
0.08409803360700607,
-0.02023615501821041,
-0.05361318960785866,
0.03148152306675911,
0.037909429520368576,
-0.05359954014420509,
-0.16397900879383087,
-0.0358714684844017,
-0.047614336013793945,
0.009768753312528133,
0.11435382813215256,
-0.0006373120122589171,
0.011477014981210232,
0.014250310137867928,
-0.08196919411420822,
0.0497305691242218,
0.03873896598815918,
0.09964532405138016,
-0.01833152398467064,
0.007479222025722265,
0.10214628279209137,
-0.0463886559009552,
0.012809251435101032,
0.08074573427438736,
-0.021386846899986267,
0.17035861313343048,
-0.10259232670068741,
0.17705532908439636,
0.08441688120365143,
0.04324442893266678,
0.045256294310092926,
0.12708383798599243,
-0.06748273223638535,
0.045541830360889435,
-0.06562401354312897,
-0.07077573239803314,
-0.05488252267241478,
0.02385239489376545,
0.01563570275902748,
0.03417964652180672,
-0.07615944743156433,
-0.04774651303887367,
0.06616008281707764,
0.1618291437625885,
0.09774632751941681,
-0.1580881029367447,
-0.08528489619493484,
0.03370491787791252,
-0.02791285514831543,
-0.042707715183496475,
-0.034410715103149414,
0.08453916758298874,
-0.12126241624355316,
0.08161155134439468,
-0.03868420794606209,
0.06763861328363419,
-0.11203596740961075,
0.014874804764986038,
-0.1207275241613388,
0.039177969098091125,
-0.045597877353429794,
0.07139406353235245,
-0.19699186086654663,
0.14015574753284454,
0.040201496332883835,
0.07589561492204666,
-0.1107775941491127,
-0.006532877683639526,
0.015874043107032776,
-0.029753591865301132,
0.1298801600933075,
0.004976267460733652,
0.023544684052467346,
-0.03861894831061363,
-0.08818865567445755,
-0.0014755219453945756,
0.06266041845083237,
-0.0001400557957822457,
0.13547000288963318,
0.018213720992207527,
0.003015663707628846,
-0.007239502854645252,
0.07625427097082138,
-0.03453238680958748,
-0.16854643821716309,
0.060651663690805435,
-0.08603107929229736,
-0.054236236959695816,
-0.05565382167696953,
-0.055271297693252563,
-0.03942740708589554,
0.1674337536096573,
-0.10190776735544205,
-0.06543654948472977,
-0.08651202917098999,
0.028317458927631378,
0.11785812675952911,
-0.07814686000347137,
0.04012676328420639,
-0.001033287844620645,
0.19169995188713074,
-0.07659405469894409,
-0.06206700950860977,
0.03767428174614906,
-0.03585817664861679,
-0.11856300383806229,
-0.05560735985636711,
0.08890242129564285,
0.11100778728723526,
0.07926923781633377,
0.03366570174694061,
0.07575855404138565,
0.036159295588731766,
-0.07329743355512619,
-0.03495163097977638,
0.08359923958778381,
0.12726803123950958,
0.09397649019956589,
-0.062246840447187424,
-0.05545966699719429,
-0.08371005952358246,
0.03970815986394882,
0.08411366492509842,
0.23156888782978058,
-0.04863595962524414,
0.12315846979618073,
0.1983872950077057,
-0.11214274168014526,
-0.20267337560653687,
0.014972014352679253,
0.018128616735339165,
0.07005992531776428,
0.053719792515039444,
-0.1449928879737854,
-0.021762296557426453,
0.04072592407464981,
0.014228580519557,
-0.02538473904132843,
-0.21670860052108765,
-0.10639610886573792,
0.07396941632032394,
0.039852041751146317,
0.009592191316187382,
-0.0840301364660263,
-0.029839351773262024,
-0.05713509023189545,
-0.040027208626270294,
0.10042707622051239,
-0.0821777731180191,
0.11601414531469345,
0.03578976169228554,
-0.04881993681192398,
0.04881763085722923,
-0.05281762033700943,
0.12280980497598648,
-0.0012843247968703508,
0.04469912126660347,
-0.07537443935871124,
-0.018687093630433083,
0.12274091690778732,
-0.04204974323511124,
0.12415238469839096,
0.04154716432094574,
0.04666929319500923,
0.039595574140548706,
-0.06424302607774734,
-0.07629247009754181,
0.013220206834375858,
-0.07320985198020935,
-0.048047102987766266,
-0.0637943372130394,
0.07269434630870819,
0.0983421728014946,
-0.009990670718252659,
-0.018893113359808922,
-0.053360339254140854,
0.04113614559173584,
0.11097704619169235,
0.11406837403774261,
0.060972195118665695,
-0.06889817118644714,
0.01920679584145546,
-0.015965960919857025,
0.0507090725004673,
-0.07313317805528641,
0.03837639465928078,
0.059243395924568176,
0.01911366917192936,
0.13882315158843994,
0.03435802832245827,
-0.1663663387298584,
-0.006995522417128086,
0.029927637428045273,
-0.12320347130298615,
-0.13376228511333466,
0.04385649785399437,
-0.007511887699365616,
-0.17374643683433533,
-0.0426606722176075,
0.10352476686239243,
-0.037053026258945465,
-0.02869924157857895,
0.005790363997220993,
0.054335083812475204,
0.02657190151512623,
0.12654659152030945,
0.026273680850863457,
0.03125612810254097,
-0.07399611920118332,
0.11784597486257553,
0.09073525667190552,
-0.09259828180074692,
0.06646206229925156,
0.03591590002179146,
-0.08730940520763397,
-0.01053112093359232,
-0.025311943143606186,
0.08993936330080032,
0.07850992679595947,
0.0020349668338894844,
-0.057673994451761246,
-0.03742070496082306,
0.054012466222047806,
0.1414269208908081,
0.025188257917761803,
0.07283151149749756,
-0.04641926661133766,
-0.01750263012945652,
-0.09026729315519333,
0.03976355493068695,
0.084535151720047,
0.04008721560239792,
0.06006810441613197,
0.19303588569164276,
-0.01763363927602768,
0.009948298335075378,
-0.007445497438311577,
-0.0436503142118454,
-0.06564746797084808,
-0.01229951810091734,
-0.0384211540222168,
0.03221488744020462,
-0.10628094524145126,
-0.0441092811524868,
-0.02668233960866928,
0.035136573016643524,
0.03535211458802223,
-0.0017069746972993016,
-0.018508657813072205,
-0.023633457720279694,
-0.05248699337244034,
-0.000332725903717801,
-0.12653060257434845,
-0.007452384568750858,
0.07649588584899902,
-0.06934783607721329,
0.07008445262908936,
-0.027992404997348785,
-0.03793409839272499,
0.0399346649646759,
-0.10313936322927475,
-0.013474220409989357,
0.006200239062309265,
0.00035245774779468775,
0.00916085485368967,
-0.13263925909996033,
0.0049779536202549934,
-0.010133672505617142,
0.005135706160217524,
0.007793240714818239,
0.03280310705304146,
-0.07396534085273743,
0.0448417104780674,
0.06001557782292366,
-0.00018315044871997088,
-0.0668037161231041,
0.08811892569065094,
0.042263541370630264,
-0.000028896824005641975,
0.13125133514404297,
-0.040333714336156845,
0.04687579721212387,
-0.11362534016370773,
-0.009423692710697651,
-0.007505411747843027,
-0.04530259594321251,
0.08684761822223663,
-0.052325643599033356,
0.04901723936200142,
-0.007646396290510893,
0.10406921803951263,
-0.022111082449555397,
-0.0020976571831852198,
0.018117934465408325,
0.004981879610568285,
-0.042030833661556244,
0.020652608945965767,
0.09444627165794373,
0.006589233875274658,
-0.08635559678077698,
0.00799555890262127,
0.0684138685464859,
0.002470196457579732,
0.12762118875980377,
0.1714710146188736,
0.06479356437921524,
0.17536909878253937,
0.027424782514572144,
-0.037345267832279205,
-0.026972001418471336,
-0.020489059388637543,
0.0013729961356148124,
0.02837643027305603,
0.043218616396188736,
0.030645960941910744,
0.038600701838731766,
0.10347405821084976,
-0.15136797726154327,
0.16049285233020782,
0.015778005123138428,
-0.10542423278093338,
-0.06502590328454971,
-0.22446763515472412,
-0.017462151125073433,
0.11847683787345886,
-0.03450332209467888,
-0.13983283936977386,
0.04776042699813843,
0.0440186969935894,
0.011404586024582386,
-0.0154631482437253,
0.09193175286054611,
-0.11458718031644821,
-0.09699133038520813,
0.05604873225092888,
0.0012827205937355757,
0.022350413724780083,
0.07767247408628464,
0.0028150836005806923,
0.02827451191842556,
0.05918203294277191,
0.09358640015125275,
0.06954500079154968,
0.11514478176832199,
0.0422808863222599,
-0.03684652969241142,
-0.09073085337877274,
0.022889701649546623,
-0.026087988168001175,
0.08698922395706177,
0.22503916919231415,
0.06434475630521774,
-0.03138727322220802,
0.000027370944735594094,
0.1421564668416977,
-0.024527959525585175,
-0.12942641973495483,
-0.1499590128660202,
0.0690447986125946,
0.05789197236299515,
-0.017340611666440964,
0.016519024968147278,
-0.12515656650066376,
0.058362316340208054,
0.18819139897823334,
0.15504226088523865,
-0.003275577211752534,
0.024286922067403793,
0.0008183104218915105,
0.01182901207357645,
0.047331467270851135,
0.07397902756929398,
-0.0017874399200081825,
0.21366366744041443,
-0.03675170615315437,
0.0916365310549736,
-0.02611270360648632,
-0.02037098817527294,
-0.04489634558558464,
0.08145789057016373,
-0.02059801295399666,
-0.0013865693472325802,
-0.059316158294677734,
0.03822166100144386,
-0.012101352214813232,
-0.2821374833583832,
-0.03443950414657593,
-0.06326446682214737,
-0.10473474860191345,
0.01825772225856781,
-0.052993293851614,
0.036018189042806625,
0.11083994060754776,
0.04165792465209961,
0.045662011951208115,
0.17271824181079865,
0.011896750889718533,
-0.03295416757464409,
-0.057779788970947266,
0.056879278272390366,
-0.01944335550069809,
0.16028399765491486,
0.03290355205535889,
0.03222571685910225,
0.09558001905679703,
0.018753111362457275,
-0.08135973662137985,
0.030082181096076965,
0.008929148316383362,
0.03590909391641617,
0.03352723270654678,
0.14719592034816742,
-0.006007136311382055,
-0.022789012640714645,
0.045330945402383804,
-0.03388872370123863,
0.0777573436498642,
-0.07684994488954544,
-0.020732078701257706,
-0.07694047689437866,
0.06335477530956268,
-0.058603398501873016,
0.1395784616470337,
0.16802151501178741,
0.003322359872981906,
0.00939949695020914,
-0.03279295936226845,
-0.0365295372903347,
0.0007458989275619388,
0.04084692895412445,
-0.018157225102186203,
-0.12525753676891327,
0.0008331317221745849,
-0.022302648052573204,
0.05161324888467789,
-0.283681184053421,
-0.04794101417064667,
0.06484329700469971,
-0.09020921587944031,
-0.028839826583862305,
0.08338819444179535,
-0.0012492892565205693,
0.03161318227648735,
-0.05650418624281883,
0.04540218040347099,
-0.002493838779628277,
0.07972043752670288,
-0.10655190795660019,
-0.08319107443094254
] |
null | null | transformers |
# DistilGPT2
DistilGPT2 (short for Distilled-GPT2) is an English-language model pre-trained with the supervision of the smallest version of Generative Pre-trained Transformer 2 (GPT-2). Like GPT-2, DistilGPT2 can be used to generate text. Users of this model card should also consider information about the design, training, and limitations of [GPT-2](https://huggingface.co/gpt2).
## Model Details
- **Developed by:** Hugging Face
- **Model type:** Transformer-based Language Model
- **Language:** English
- **License:** Apache 2.0
- **Model Description:** DistilGPT2 is an English-language model pre-trained with the supervision of the 124 million parameter version of GPT-2. DistilGPT2, which has 82 million parameters, was developed using [knowledge distillation](#knowledge-distillation) and was designed to be a faster, lighter version of GPT-2.
- **Resources for more information:** See [this repository](https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation) for more about Distil\* (a class of compressed models including Distilled-GPT2), [Sanh et al. (2019)](https://arxiv.org/abs/1910.01108) for more information about knowledge distillation and the training procedure, and this page for more about [GPT-2](https://openai.com/blog/better-language-models/).
## Uses, Limitations and Risks
#### Limitations and Risks
<details>
<summary>Click to expand</summary>
**CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.**
As the developers of GPT-2 (OpenAI) note in their [model card](https://github.com/openai/gpt-2/blob/master/model_card.md), “language models like GPT-2 reflect the biases inherent to the systems they were trained on.” Significant research has explored bias and fairness issues with models for language generation including GPT-2 (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
DistilGPT2 also suffers from persistent bias issues, as highlighted in the demonstrative examples below. Note that these examples are not a comprehensive stress-testing of the model. Readers considering using the model should consider more rigorous evaluations of the model depending on their use case and context.
The impact of model compression techniques – such as knowledge distillation – on bias and fairness issues associated with language models is an active area of research. For example:
- [Silva, Tambwekar and Gombolay (2021)](https://aclanthology.org/2021.naacl-main.189.pdf) find that distilled versions of BERT and RoBERTa consistently exhibit statistically significant bias (with regard to gender and race) with effect sizes larger than the teacher models.
- [Xu and Hu (2022)](https://arxiv.org/pdf/2201.08542.pdf) find that distilled versions of GPT-2 showed consistent reductions in toxicity and bias compared to the teacher model (see the paper for more detail on metrics used to define/measure toxicity and bias).
- [Gupta et al. (2022)](https://arxiv.org/pdf/2203.12574.pdf) find that DistilGPT2 exhibits greater gender disparities than GPT-2 and propose a technique for mitigating gender bias in distilled language models like DistilGPT2.
```python
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='distilgpt2')
>>> set_seed(48)
>>> generator("The White man worked as a", max_length=20, num_return_sequences=3)
[{'generated_text': "The White man worked as a salesman at a McDonald's restaurant called Kia at the time of the"},
{'generated_text': 'The White man worked as a contractor in the Army in the late 1990s. He became a "'},
{'generated_text': 'The White man worked as a police spokesman to the US Navy in the 1930s.'}]
>>> set_seed(48)
>>> generator("The Black man worked as a", max_length=20, num_return_sequences=3)
[{'generated_text': 'The Black man worked as a shop assistant for an hour at Wal-Mart at Wal-Mart in'},
{'generated_text': 'The Black man worked as a waiter in the hotel when he was assaulted when he got out of a'},
{'generated_text': 'The Black man worked as a police spokesman four months ago...'}]
```
</details>
#### Potential Uses
Since DistilGPT2 is a distilled version of GPT-2, it is intended to be used for similar use cases with the increased functionality of being smaller and easier to run than the base model.
The developers of GPT-2 state in their [model card](https://github.com/openai/gpt-2/blob/master/model_card.md) that they envisioned GPT-2 would be used by researchers to better understand large-scale generative language models, with possible secondary use cases including:
> - *Writing assistance: Grammar assistance, autocompletion (for normal prose or code)*
> - *Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.*
> - *Entertainment: Creation of games, chat bots, and amusing generations.*
Using DistilGPT2, the Hugging Face team built the [Write With Transformers](https://transformer.huggingface.co/doc/distil-gpt2) web app, which allows users to play with the model to generate text directly from their browser.
#### Out-of-scope Uses
OpenAI states in the GPT-2 [model card](https://github.com/openai/gpt-2/blob/master/model_card.md):
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.
>
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case.
### How to Get Started with the Model
<details>
<summary>Click to expand</summary>
*Be sure to read the sections on in-scope and out-of-scope uses and limitations of the model for further information on how to use the model.*
Using DistilGPT2 is similar to using GPT-2. DistilGPT2 can be used directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility:
```python
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='distilgpt2')
>>> set_seed(42)
>>> generator("Hello, I’m a language model", max_length=20, num_return_sequences=5)
Setting `pad_token_id` to `eos_token_id`:50256 for open-end generation.
[{'generated_text': "Hello, I'm a language model, I'm a language model. In my previous post I've"},
{'generated_text': "Hello, I'm a language model, and I'd love to hear what you think about it."},
{'generated_text': "Hello, I'm a language model, but I don't get much of a connection anymore, so"},
{'generated_text': "Hello, I'm a language model, a functional language... It's not an example, and that"},
{'generated_text': "Hello, I'm a language model, not an object model.\n\nIn a nutshell, I"}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import GPT2Tokenizer, GPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('distilgpt2')
model = GPT2Model.from_pretrained('distilgpt2')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
And in TensorFlow:
```python
from transformers import GPT2Tokenizer, TFGPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('distilgpt2')
model = TFGPT2Model.from_pretrained('distilgpt2')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
</details>
## Training Data
DistilGPT2 was trained using [OpenWebTextCorpus](https://skylion007.github.io/OpenWebTextCorpus/), an open-source reproduction of OpenAI’s WebText dataset, which was used to train GPT-2. See the [OpenWebTextCorpus Dataset Card](https://huggingface.co/datasets/openwebtext) for additional information about OpenWebTextCorpus and [Radford et al. (2019)](https://d4mucfpksywv.cloudfront.net/better-language-models/language-models.pdf) for additional information about WebText.
## Training Procedure
The texts were tokenized using the same tokenizer as GPT-2, a byte-level version of Byte Pair Encoding (BPE). DistilGPT2 was trained using knowledge distillation, following a procedure similar to the training procedure for DistilBERT, described in more detail in [Sanh et al. (2019)](https://arxiv.org/abs/1910.01108).
## Evaluation Results
The creators of DistilGPT2 [report](https://github.com/huggingface/transformers/tree/main/examples/research_projects/distillation) that, on the [WikiText-103](https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/) benchmark, GPT-2 reaches a perplexity on the test set of 16.3 compared to 21.1 for DistilGPT2 (after fine-tuning on the train set).
## Environmental Impact
*Carbon emissions were estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). The hardware, runtime, cloud provider, and compute region were utilized to estimate the carbon impact.*
- **Hardware Type:** 8 16GB V100
- **Hours used:** 168 (1 week)
- **Cloud Provider:** Azure
- **Compute Region:** unavailable, assumed East US for calculations
- **Carbon Emitted** *(Power consumption x Time x Carbon produced based on location of power grid)*: 149.2 kg eq. CO2
## Citation
```bibtex
@inproceedings{sanh2019distilbert,
title={DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter},
author={Sanh, Victor and Debut, Lysandre and Chaumond, Julien and Wolf, Thomas},
booktitle={NeurIPS EMC^2 Workshop},
year={2019}
}
```
## Glossary
- <a name="knowledge-distillation">**Knowledge Distillation**</a>: As described in [Sanh et al. (2019)](https://arxiv.org/pdf/1910.01108.pdf), “knowledge distillation is a compression technique in which a compact model – the student – is trained to reproduce the behavior of a larger model – the teacher – or an ensemble of models.” Also see [Bucila et al. (2006)](https://www.cs.cornell.edu/~caruana/compression.kdd06.pdf) and [Hinton et al. (2015)](https://arxiv.org/abs/1503.02531).
<a href="https://huggingface.co/exbert/?model=distilgpt2">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": "en", "license": "apache-2.0", "tags": ["exbert"], "datasets": ["openwebtext"], "co2_eq_emissions": 149200, "model-index": [{"name": "distilgpt2", "results": [{"task": {"type": "text-generation", "name": "Text Generation"}, "dataset": {"name": "WikiText-103", "type": "wikitext"}, "metrics": [{"type": "perplexity", "value": 21.1, "name": "Perplexity"}]}]}]} | text-generation | distilbert/distilgpt2 | [
"transformers",
"pytorch",
"tf",
"jax",
"tflite",
"rust",
"coreml",
"safetensors",
"gpt2",
"text-generation",
"exbert",
"en",
"dataset:openwebtext",
"arxiv:1910.01108",
"arxiv:2201.08542",
"arxiv:2203.12574",
"arxiv:1910.09700",
"arxiv:1503.02531",
"license:apache-2.0",
"model-index",
"co2_eq_emissions",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1910.01108",
"2201.08542",
"2203.12574",
"1910.09700",
"1503.02531"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #tflite #rust #coreml #safetensors #gpt2 #text-generation #exbert #en #dataset-openwebtext #arxiv-1910.01108 #arxiv-2201.08542 #arxiv-2203.12574 #arxiv-1910.09700 #arxiv-1503.02531 #license-apache-2.0 #model-index #co2_eq_emissions #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us
|
# DistilGPT2
DistilGPT2 (short for Distilled-GPT2) is an English-language model pre-trained with the supervision of the smallest version of Generative Pre-trained Transformer 2 (GPT-2). Like GPT-2, DistilGPT2 can be used to generate text. Users of this model card should also consider information about the design, training, and limitations of GPT-2.
## Model Details
- Developed by: Hugging Face
- Model type: Transformer-based Language Model
- Language: English
- License: Apache 2.0
- Model Description: DistilGPT2 is an English-language model pre-trained with the supervision of the 124 million parameter version of GPT-2. DistilGPT2, which has 82 million parameters, was developed using knowledge distillation and was designed to be a faster, lighter version of GPT-2.
- Resources for more information: See this repository for more about Distil\* (a class of compressed models including Distilled-GPT2), Sanh et al. (2019) for more information about knowledge distillation and the training procedure, and this page for more about GPT-2.
## Uses, Limitations and Risks
#### Limitations and Risks
<details>
<summary>Click to expand</summary>
CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.
As the developers of GPT-2 (OpenAI) note in their model card, “language models like GPT-2 reflect the biases inherent to the systems they were trained on.” Significant research has explored bias and fairness issues with models for language generation including GPT-2 (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
DistilGPT2 also suffers from persistent bias issues, as highlighted in the demonstrative examples below. Note that these examples are not a comprehensive stress-testing of the model. Readers considering using the model should consider more rigorous evaluations of the model depending on their use case and context.
The impact of model compression techniques – such as knowledge distillation – on bias and fairness issues associated with language models is an active area of research. For example:
- Silva, Tambwekar and Gombolay (2021) find that distilled versions of BERT and RoBERTa consistently exhibit statistically significant bias (with regard to gender and race) with effect sizes larger than the teacher models.
- Xu and Hu (2022) find that distilled versions of GPT-2 showed consistent reductions in toxicity and bias compared to the teacher model (see the paper for more detail on metrics used to define/measure toxicity and bias).
- Gupta et al. (2022) find that DistilGPT2 exhibits greater gender disparities than GPT-2 and propose a technique for mitigating gender bias in distilled language models like DistilGPT2.
</details>
#### Potential Uses
Since DistilGPT2 is a distilled version of GPT-2, it is intended to be used for similar use cases with the increased functionality of being smaller and easier to run than the base model.
The developers of GPT-2 state in their model card that they envisioned GPT-2 would be used by researchers to better understand large-scale generative language models, with possible secondary use cases including:
> - *Writing assistance: Grammar assistance, autocompletion (for normal prose or code)*
> - *Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.*
> - *Entertainment: Creation of games, chat bots, and amusing generations.*
Using DistilGPT2, the Hugging Face team built the Write With Transformers web app, which allows users to play with the model to generate text directly from their browser.
#### Out-of-scope Uses
OpenAI states in the GPT-2 model card:
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.
>
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case.
### How to Get Started with the Model
<details>
<summary>Click to expand</summary>
*Be sure to read the sections on in-scope and out-of-scope uses and limitations of the model for further information on how to use the model.*
Using DistilGPT2 is similar to using GPT-2. DistilGPT2 can be used directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility:
Here is how to use this model to get the features of a given text in PyTorch:
And in TensorFlow:
</details>
## Training Data
DistilGPT2 was trained using OpenWebTextCorpus, an open-source reproduction of OpenAI’s WebText dataset, which was used to train GPT-2. See the OpenWebTextCorpus Dataset Card for additional information about OpenWebTextCorpus and Radford et al. (2019) for additional information about WebText.
## Training Procedure
The texts were tokenized using the same tokenizer as GPT-2, a byte-level version of Byte Pair Encoding (BPE). DistilGPT2 was trained using knowledge distillation, following a procedure similar to the training procedure for DistilBERT, described in more detail in Sanh et al. (2019).
## Evaluation Results
The creators of DistilGPT2 report that, on the WikiText-103 benchmark, GPT-2 reaches a perplexity on the test set of 16.3 compared to 21.1 for DistilGPT2 (after fine-tuning on the train set).
## Environmental Impact
*Carbon emissions were estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). The hardware, runtime, cloud provider, and compute region were utilized to estimate the carbon impact.*
- Hardware Type: 8 16GB V100
- Hours used: 168 (1 week)
- Cloud Provider: Azure
- Compute Region: unavailable, assumed East US for calculations
- Carbon Emitted *(Power consumption x Time x Carbon produced based on location of power grid)*: 149.2 kg eq. CO2
## Glossary
- <a name="knowledge-distillation">Knowledge Distillation</a>: As described in Sanh et al. (2019), “knowledge distillation is a compression technique in which a compact model – the student – is trained to reproduce the behavior of a larger model – the teacher – or an ensemble of models.” Also see Bucila et al. (2006) and Hinton et al. (2015).
<a href="URL
<img width="300px" src="URL
</a>
| [
"# DistilGPT2\n\nDistilGPT2 (short for Distilled-GPT2) is an English-language model pre-trained with the supervision of the smallest version of Generative Pre-trained Transformer 2 (GPT-2). Like GPT-2, DistilGPT2 can be used to generate text. Users of this model card should also consider information about the design, training, and limitations of GPT-2.",
"## Model Details\n\n- Developed by: Hugging Face\n- Model type: Transformer-based Language Model\n- Language: English\n- License: Apache 2.0\n- Model Description: DistilGPT2 is an English-language model pre-trained with the supervision of the 124 million parameter version of GPT-2. DistilGPT2, which has 82 million parameters, was developed using knowledge distillation and was designed to be a faster, lighter version of GPT-2.\n- Resources for more information: See this repository for more about Distil\\* (a class of compressed models including Distilled-GPT2), Sanh et al. (2019) for more information about knowledge distillation and the training procedure, and this page for more about GPT-2.",
"## Uses, Limitations and Risks",
"#### Limitations and Risks\n\n<details>\n<summary>Click to expand</summary>\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nAs the developers of GPT-2 (OpenAI) note in their model card, “language models like GPT-2 reflect the biases inherent to the systems they were trained on.” Significant research has explored bias and fairness issues with models for language generation including GPT-2 (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). \n\nDistilGPT2 also suffers from persistent bias issues, as highlighted in the demonstrative examples below. Note that these examples are not a comprehensive stress-testing of the model. Readers considering using the model should consider more rigorous evaluations of the model depending on their use case and context.\n\nThe impact of model compression techniques – such as knowledge distillation – on bias and fairness issues associated with language models is an active area of research. For example: \n\n- Silva, Tambwekar and Gombolay (2021) find that distilled versions of BERT and RoBERTa consistently exhibit statistically significant bias (with regard to gender and race) with effect sizes larger than the teacher models.\n- Xu and Hu (2022) find that distilled versions of GPT-2 showed consistent reductions in toxicity and bias compared to the teacher model (see the paper for more detail on metrics used to define/measure toxicity and bias). \n- Gupta et al. (2022) find that DistilGPT2 exhibits greater gender disparities than GPT-2 and propose a technique for mitigating gender bias in distilled language models like DistilGPT2. \n\n\n\n</details>",
"#### Potential Uses\n\nSince DistilGPT2 is a distilled version of GPT-2, it is intended to be used for similar use cases with the increased functionality of being smaller and easier to run than the base model. \n\nThe developers of GPT-2 state in their model card that they envisioned GPT-2 would be used by researchers to better understand large-scale generative language models, with possible secondary use cases including: \n\n> - *Writing assistance: Grammar assistance, autocompletion (for normal prose or code)*\n> - *Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.*\n> - *Entertainment: Creation of games, chat bots, and amusing generations.*\n\nUsing DistilGPT2, the Hugging Face team built the Write With Transformers web app, which allows users to play with the model to generate text directly from their browser.",
"#### Out-of-scope Uses\n\nOpenAI states in the GPT-2 model card: \n\n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n>\n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case.",
"### How to Get Started with the Model \n\n<details>\n<summary>Click to expand</summary>\n\n*Be sure to read the sections on in-scope and out-of-scope uses and limitations of the model for further information on how to use the model.*\n\nUsing DistilGPT2 is similar to using GPT-2. DistilGPT2 can be used directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility:\n\n \n \nHere is how to use this model to get the features of a given text in PyTorch:\n\n\n\nAnd in TensorFlow:\n\n\n\n</details>",
"## Training Data\n\nDistilGPT2 was trained using OpenWebTextCorpus, an open-source reproduction of OpenAI’s WebText dataset, which was used to train GPT-2. See the OpenWebTextCorpus Dataset Card for additional information about OpenWebTextCorpus and Radford et al. (2019) for additional information about WebText.",
"## Training Procedure\n\nThe texts were tokenized using the same tokenizer as GPT-2, a byte-level version of Byte Pair Encoding (BPE). DistilGPT2 was trained using knowledge distillation, following a procedure similar to the training procedure for DistilBERT, described in more detail in Sanh et al. (2019).",
"## Evaluation Results\n\nThe creators of DistilGPT2 report that, on the WikiText-103 benchmark, GPT-2 reaches a perplexity on the test set of 16.3 compared to 21.1 for DistilGPT2 (after fine-tuning on the train set).",
"## Environmental Impact\n\n*Carbon emissions were estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). The hardware, runtime, cloud provider, and compute region were utilized to estimate the carbon impact.*\n\n- Hardware Type: 8 16GB V100\n- Hours used: 168 (1 week)\n- Cloud Provider: Azure\n- Compute Region: unavailable, assumed East US for calculations\n- Carbon Emitted *(Power consumption x Time x Carbon produced based on location of power grid)*: 149.2 kg eq. CO2",
"## Glossary\n\n-\t<a name=\"knowledge-distillation\">Knowledge Distillation</a>: As described in Sanh et al. (2019), “knowledge distillation is a compression technique in which a compact model – the student – is trained to reproduce the behavior of a larger model – the teacher – or an ensemble of models.” Also see Bucila et al. (2006) and Hinton et al. (2015).\n\n<a href=\"URL\n\t<img width=\"300px\" src=\"URL\n</a>"
] | [
"TAGS\n#transformers #pytorch #tf #jax #tflite #rust #coreml #safetensors #gpt2 #text-generation #exbert #en #dataset-openwebtext #arxiv-1910.01108 #arxiv-2201.08542 #arxiv-2203.12574 #arxiv-1910.09700 #arxiv-1503.02531 #license-apache-2.0 #model-index #co2_eq_emissions #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n",
"# DistilGPT2\n\nDistilGPT2 (short for Distilled-GPT2) is an English-language model pre-trained with the supervision of the smallest version of Generative Pre-trained Transformer 2 (GPT-2). Like GPT-2, DistilGPT2 can be used to generate text. Users of this model card should also consider information about the design, training, and limitations of GPT-2.",
"## Model Details\n\n- Developed by: Hugging Face\n- Model type: Transformer-based Language Model\n- Language: English\n- License: Apache 2.0\n- Model Description: DistilGPT2 is an English-language model pre-trained with the supervision of the 124 million parameter version of GPT-2. DistilGPT2, which has 82 million parameters, was developed using knowledge distillation and was designed to be a faster, lighter version of GPT-2.\n- Resources for more information: See this repository for more about Distil\\* (a class of compressed models including Distilled-GPT2), Sanh et al. (2019) for more information about knowledge distillation and the training procedure, and this page for more about GPT-2.",
"## Uses, Limitations and Risks",
"#### Limitations and Risks\n\n<details>\n<summary>Click to expand</summary>\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nAs the developers of GPT-2 (OpenAI) note in their model card, “language models like GPT-2 reflect the biases inherent to the systems they were trained on.” Significant research has explored bias and fairness issues with models for language generation including GPT-2 (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). \n\nDistilGPT2 also suffers from persistent bias issues, as highlighted in the demonstrative examples below. Note that these examples are not a comprehensive stress-testing of the model. Readers considering using the model should consider more rigorous evaluations of the model depending on their use case and context.\n\nThe impact of model compression techniques – such as knowledge distillation – on bias and fairness issues associated with language models is an active area of research. For example: \n\n- Silva, Tambwekar and Gombolay (2021) find that distilled versions of BERT and RoBERTa consistently exhibit statistically significant bias (with regard to gender and race) with effect sizes larger than the teacher models.\n- Xu and Hu (2022) find that distilled versions of GPT-2 showed consistent reductions in toxicity and bias compared to the teacher model (see the paper for more detail on metrics used to define/measure toxicity and bias). \n- Gupta et al. (2022) find that DistilGPT2 exhibits greater gender disparities than GPT-2 and propose a technique for mitigating gender bias in distilled language models like DistilGPT2. \n\n\n\n</details>",
"#### Potential Uses\n\nSince DistilGPT2 is a distilled version of GPT-2, it is intended to be used for similar use cases with the increased functionality of being smaller and easier to run than the base model. \n\nThe developers of GPT-2 state in their model card that they envisioned GPT-2 would be used by researchers to better understand large-scale generative language models, with possible secondary use cases including: \n\n> - *Writing assistance: Grammar assistance, autocompletion (for normal prose or code)*\n> - *Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.*\n> - *Entertainment: Creation of games, chat bots, and amusing generations.*\n\nUsing DistilGPT2, the Hugging Face team built the Write With Transformers web app, which allows users to play with the model to generate text directly from their browser.",
"#### Out-of-scope Uses\n\nOpenAI states in the GPT-2 model card: \n\n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n>\n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case.",
"### How to Get Started with the Model \n\n<details>\n<summary>Click to expand</summary>\n\n*Be sure to read the sections on in-scope and out-of-scope uses and limitations of the model for further information on how to use the model.*\n\nUsing DistilGPT2 is similar to using GPT-2. DistilGPT2 can be used directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility:\n\n \n \nHere is how to use this model to get the features of a given text in PyTorch:\n\n\n\nAnd in TensorFlow:\n\n\n\n</details>",
"## Training Data\n\nDistilGPT2 was trained using OpenWebTextCorpus, an open-source reproduction of OpenAI’s WebText dataset, which was used to train GPT-2. See the OpenWebTextCorpus Dataset Card for additional information about OpenWebTextCorpus and Radford et al. (2019) for additional information about WebText.",
"## Training Procedure\n\nThe texts were tokenized using the same tokenizer as GPT-2, a byte-level version of Byte Pair Encoding (BPE). DistilGPT2 was trained using knowledge distillation, following a procedure similar to the training procedure for DistilBERT, described in more detail in Sanh et al. (2019).",
"## Evaluation Results\n\nThe creators of DistilGPT2 report that, on the WikiText-103 benchmark, GPT-2 reaches a perplexity on the test set of 16.3 compared to 21.1 for DistilGPT2 (after fine-tuning on the train set).",
"## Environmental Impact\n\n*Carbon emissions were estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). The hardware, runtime, cloud provider, and compute region were utilized to estimate the carbon impact.*\n\n- Hardware Type: 8 16GB V100\n- Hours used: 168 (1 week)\n- Cloud Provider: Azure\n- Compute Region: unavailable, assumed East US for calculations\n- Carbon Emitted *(Power consumption x Time x Carbon produced based on location of power grid)*: 149.2 kg eq. CO2",
"## Glossary\n\n-\t<a name=\"knowledge-distillation\">Knowledge Distillation</a>: As described in Sanh et al. (2019), “knowledge distillation is a compression technique in which a compact model – the student – is trained to reproduce the behavior of a larger model – the teacher – or an ensemble of models.” Also see Bucila et al. (2006) and Hinton et al. (2015).\n\n<a href=\"URL\n\t<img width=\"300px\" src=\"URL\n</a>"
] | [
146,
96,
169,
9,
409,
216,
128,
146,
78,
81,
62,
128,
119
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #tflite #rust #coreml #safetensors #gpt2 #text-generation #exbert #en #dataset-openwebtext #arxiv-1910.01108 #arxiv-2201.08542 #arxiv-2203.12574 #arxiv-1910.09700 #arxiv-1503.02531 #license-apache-2.0 #model-index #co2_eq_emissions #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n# DistilGPT2\n\nDistilGPT2 (short for Distilled-GPT2) is an English-language model pre-trained with the supervision of the smallest version of Generative Pre-trained Transformer 2 (GPT-2). Like GPT-2, DistilGPT2 can be used to generate text. Users of this model card should also consider information about the design, training, and limitations of GPT-2.## Model Details\n\n- Developed by: Hugging Face\n- Model type: Transformer-based Language Model\n- Language: English\n- License: Apache 2.0\n- Model Description: DistilGPT2 is an English-language model pre-trained with the supervision of the 124 million parameter version of GPT-2. DistilGPT2, which has 82 million parameters, was developed using knowledge distillation and was designed to be a faster, lighter version of GPT-2.\n- Resources for more information: See this repository for more about Distil\\* (a class of compressed models including Distilled-GPT2), Sanh et al. (2019) for more information about knowledge distillation and the training procedure, and this page for more about GPT-2.## Uses, Limitations and Risks",
"passage: #### Limitations and Risks\n\n<details>\n<summary>Click to expand</summary>\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nAs the developers of GPT-2 (OpenAI) note in their model card, “language models like GPT-2 reflect the biases inherent to the systems they were trained on.” Significant research has explored bias and fairness issues with models for language generation including GPT-2 (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). \n\nDistilGPT2 also suffers from persistent bias issues, as highlighted in the demonstrative examples below. Note that these examples are not a comprehensive stress-testing of the model. Readers considering using the model should consider more rigorous evaluations of the model depending on their use case and context.\n\nThe impact of model compression techniques – such as knowledge distillation – on bias and fairness issues associated with language models is an active area of research. For example: \n\n- Silva, Tambwekar and Gombolay (2021) find that distilled versions of BERT and RoBERTa consistently exhibit statistically significant bias (with regard to gender and race) with effect sizes larger than the teacher models.\n- Xu and Hu (2022) find that distilled versions of GPT-2 showed consistent reductions in toxicity and bias compared to the teacher model (see the paper for more detail on metrics used to define/measure toxicity and bias). \n- Gupta et al. (2022) find that DistilGPT2 exhibits greater gender disparities than GPT-2 and propose a technique for mitigating gender bias in distilled language models like DistilGPT2. \n\n\n\n</details>#### Potential Uses\n\nSince DistilGPT2 is a distilled version of GPT-2, it is intended to be used for similar use cases with the increased functionality of being smaller and easier to run than the base model. \n\nThe developers of GPT-2 state in their model card that they envisioned GPT-2 would be used by researchers to better understand large-scale generative language models, with possible secondary use cases including: \n\n> - *Writing assistance: Grammar assistance, autocompletion (for normal prose or code)*\n> - *Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.*\n> - *Entertainment: Creation of games, chat bots, and amusing generations.*\n\nUsing DistilGPT2, the Hugging Face team built the Write With Transformers web app, which allows users to play with the model to generate text directly from their browser.#### Out-of-scope Uses\n\nOpenAI states in the GPT-2 model card: \n\n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n>\n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case.### How to Get Started with the Model \n\n<details>\n<summary>Click to expand</summary>\n\n*Be sure to read the sections on in-scope and out-of-scope uses and limitations of the model for further information on how to use the model.*\n\nUsing DistilGPT2 is similar to using GPT-2. DistilGPT2 can be used directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility:\n\n \n \nHere is how to use this model to get the features of a given text in PyTorch:\n\n\n\nAnd in TensorFlow:\n\n\n\n</details>"
] | [
-0.06676851212978363,
0.14231717586517334,
-0.004968755878508091,
0.05139131844043732,
0.0609169527888298,
0.03364439308643341,
0.08876774460077286,
0.07614682614803314,
-0.03127242624759674,
0.07717572152614594,
0.021495193243026733,
-0.0201365128159523,
0.10132136195898056,
0.029717354103922844,
0.061918944120407104,
-0.2533683180809021,
0.028515301644802094,
-0.057560984045267105,
-0.03088151291012764,
0.09814338386058807,
0.13317537307739258,
-0.07582437247037888,
0.09111931920051575,
0.05737507343292236,
-0.07807604968547821,
-0.030628914013504982,
-0.005812181159853935,
-0.04332558065652847,
0.08744534850120544,
0.05288785696029663,
0.08546990901231766,
0.0383831262588501,
0.07561160624027252,
-0.20186322927474976,
0.007382632233202457,
0.06682388484477997,
0.023128371685743332,
0.05984966829419136,
0.08633512258529663,
-0.011524718254804611,
0.15552929043769836,
-0.08464527130126953,
0.09210292994976044,
0.0598752498626709,
-0.11038348078727722,
-0.12989436089992523,
-0.12596964836120605,
0.051690418273210526,
0.05458352714776993,
0.018391888588666916,
-0.025132404640316963,
0.05560992658138275,
-0.0554506778717041,
-0.001099110348150134,
0.16782808303833008,
-0.17041459679603577,
-0.019251123070716858,
0.06149029731750488,
-0.01446068100631237,
0.034401990473270416,
-0.06705151498317719,
0.028238464146852493,
0.052348438650369644,
0.0024133131373673677,
0.062477514147758484,
-0.029724247753620148,
0.1544741690158844,
-0.016853326931595802,
-0.11727917194366455,
-0.07254663854837418,
0.118821881711483,
0.011393647640943527,
-0.08487538993358612,
-0.1676425039768219,
-0.017277974635362625,
0.06390827894210815,
-0.0013192566111683846,
-0.08020585775375366,
0.031189825385808945,
-0.009420995600521564,
0.09175918996334076,
-0.09129557013511658,
-0.09869442880153656,
-0.032908424735069275,
-0.044464755803346634,
0.12803731858730316,
0.03536048159003258,
0.023090723901987076,
0.0199318565428257,
0.07733370363712311,
-0.06274759769439697,
-0.08197425305843353,
-0.08304429054260254,
-0.07662159949541092,
-0.06192633509635925,
-0.013935036025941372,
-0.0015188581310212612,
-0.03626120835542679,
-0.015970446169376373,
0.09615398943424225,
-0.09163431823253632,
0.057098329067230225,
0.0047196862287819386,
0.0008465461432933807,
0.10234607756137848,
0.1025022342801094,
-0.061403170228004456,
-0.024748990312218666,
0.019455935806035995,
0.017639614641666412,
0.022693222388625145,
-0.02944118157029152,
-0.04487138241529465,
-0.027960490435361862,
0.019028790295124054,
0.0684279352426529,
-0.0037872549146413803,
0.03886478766798973,
-0.06983736157417297,
-0.032061509788036346,
0.13514894247055054,
-0.11845850199460983,
0.014081593602895737,
-0.0015109069645404816,
-0.00926770456135273,
0.05382996052503586,
0.020721236243844032,
0.01785701885819435,
-0.05279714614152908,
0.03580442816019058,
-0.06582198292016983,
-0.03154703602194786,
-0.07084742188453674,
-0.08253515511751175,
0.010261066257953644,
-0.05859111249446869,
-0.035252202302217484,
-0.11928024888038635,
-0.1839304268360138,
-0.0034982943907380104,
0.009824048727750778,
-0.05541963875293732,
-0.029100533574819565,
0.005449086427688599,
0.0022577927447855473,
-0.014545213431119919,
0.027363110333681107,
0.017238259315490723,
-0.0047874366864562035,
0.03529931604862213,
-0.04282117635011673,
0.05838048458099365,
0.021602382883429527,
0.00943985115736723,
-0.07572945952415466,
0.0789206326007843,
-0.17351150512695312,
0.13954369723796844,
-0.06512722373008728,
-0.045218050479888916,
-0.1010160744190216,
-0.08985592424869537,
-0.057837605476379395,
0.03487713634967804,
-0.005843025632202625,
0.09645209461450577,
-0.1823989450931549,
-0.035988643765449524,
0.14354407787322998,
-0.1442182958126068,
-0.030149463564157486,
0.09877637028694153,
-0.06406453996896744,
0.0993904396891594,
0.09682001918554306,
0.1130269467830658,
0.09432874619960785,
-0.0702936053276062,
-0.03440650552511215,
-0.015722032636404037,
-0.03753188997507095,
0.16352255642414093,
0.06673325598239899,
-0.061379700899124146,
0.012781533412635326,
0.012992309406399727,
-0.047787755727767944,
-0.04770548641681671,
0.006883169058710337,
-0.053574338555336,
0.0006768950261175632,
-0.03891947865486145,
0.09077470004558563,
-0.029681123793125153,
-0.05059158802032471,
-0.029081903398036957,
-0.1186242401599884,
0.0533924326300621,
0.10327683389186859,
-0.02998276986181736,
0.006837309338152409,
-0.10524997860193253,
0.04972944036126137,
-0.0181405171751976,
-0.020568551495671272,
-0.14885079860687256,
-0.03903547674417496,
0.02785913646221161,
-0.1472122073173523,
0.05124945938587189,
0.09749695658683777,
0.02880150079727173,
0.05813255161046982,
-0.047867365181446075,
0.03126933053135872,
-0.05196177959442139,
0.0004176246002316475,
-0.030443189665675163,
-0.0865560919046402,
0.01004659105092287,
-0.026694083586335182,
0.1362547129392624,
-0.11044435948133469,
0.028857681900262833,
0.1375662386417389,
0.0660102367401123,
0.01404891163110733,
-0.06284008920192719,
0.022458255290985107,
-0.022983422502875328,
-0.016801957041025162,
-0.06478731334209442,
0.0005463585257530212,
-0.006934682372957468,
-0.017530927434563637,
0.05927874892950058,
-0.1767629086971283,
-0.08863093703985214,
0.08972616493701935,
0.0670727789402008,
-0.09233705699443817,
-0.053687017410993576,
-0.027024846524000168,
0.0005675945430994034,
-0.06428089737892151,
-0.07416938990354538,
0.1882954090833664,
0.01173553615808487,
0.058355025947093964,
-0.11919420957565308,
-0.05501628667116165,
0.017594587057828903,
-0.029134945943951607,
-0.03212617710232735,
0.01654486544430256,
0.09559192508459091,
-0.11857597529888153,
0.06462118029594421,
0.05762549117207527,
0.044501692056655884,
0.10640585422515869,
0.040576040744781494,
-0.08173726499080658,
-0.03251494839787483,
-0.04046439751982689,
-0.0005822947132401168,
0.08386383950710297,
-0.01401407178491354,
0.03403916954994202,
0.05378077179193497,
0.03727719932794571,
0.030201252549886703,
-0.11279740929603577,
0.032580263912677765,
0.052981212735176086,
-0.01862613670527935,
-0.045316182076931,
-0.010145323351025581,
-0.011560741811990738,
0.08222801983356476,
0.04015151038765907,
0.09485526382923126,
-0.01082487404346466,
-0.02273561991751194,
-0.11359240114688873,
0.13389018177986145,
-0.09372377395629883,
-0.29758232831954956,
-0.09853023290634155,
0.05633366107940674,
-0.008980168029665947,
0.011690625920891762,
0.003232952207326889,
-0.0688779279589653,
-0.093848317861557,
-0.09758628904819489,
0.06045854836702347,
-0.034598324447870255,
-0.05639335513114929,
0.015789370983839035,
0.028400016948580742,
0.010798796080052853,
-0.1294889599084854,
-0.010087260976433754,
0.01623927615582943,
-0.0904049426317215,
0.01787487417459488,
0.009411148726940155,
0.07653288543224335,
0.1239091232419014,
-0.0010376553982496262,
-0.031093724071979523,
-0.030205605551600456,
0.1781521737575531,
-0.09451891481876373,
0.08517519384622574,
0.15614166855812073,
-0.05607064440846443,
0.072630375623703,
0.10227924585342407,
0.004647769033908844,
-0.0716838538646698,
0.018916916102170944,
0.05421251431107521,
-0.06293628364801407,
-0.21052588522434235,
-0.05393295735120773,
-0.019475631415843964,
-0.03414289653301239,
0.06727730482816696,
0.0390130877494812,
0.014960579574108124,
0.08808243274688721,
-0.06821613013744354,
0.02630908228456974,
0.06477909535169601,
0.0799587070941925,
0.09750013053417206,
-0.024240408092737198,
0.06541414558887482,
-0.054983969777822495,
0.0015070438385009766,
0.11240914463996887,
0.005827263928949833,
0.21647727489471436,
-0.03306450694799423,
0.16106456518173218,
0.08373837172985077,
0.06240576505661011,
0.048071134835481644,
0.02532840147614479,
-0.02449210360646248,
0.036468151956796646,
-0.05807327479124069,
-0.0548253133893013,
-0.07713361084461212,
0.09835496544837952,
0.037457119673490524,
-0.013084108941257,
0.00986568909138441,
0.015447302721440792,
0.05675407871603966,
0.09559109061956406,
0.016473393887281418,
-0.15349186956882477,
-0.04551978409290314,
0.0817713588476181,
-0.022529447451233864,
-0.08659212291240692,
0.02004195749759674,
0.08409103751182556,
-0.151429682970047,
0.08377863466739655,
0.0040148417465388775,
0.06386899203062057,
-0.09896516799926758,
-0.012501330114901066,
-0.04018907994031906,
0.08073704689741135,
-0.02162838727235794,
0.10808998346328735,
-0.18691185116767883,
0.10611271113157272,
0.01116909645497799,
0.043126631528139114,
-0.08915708214044571,
0.052315883338451385,
0.014079132117331028,
0.024338101968169212,
0.11752035468816757,
0.014994178898632526,
0.026693226769566536,
-0.036362163722515106,
-0.05894828215241432,
0.026036834344267845,
0.07872635126113892,
-0.06287500262260437,
0.06124337017536163,
-0.026015635579824448,
0.018985625356435776,
-0.022133592516183853,
-0.08525840938091278,
-0.13696256279945374,
-0.18734563887119293,
0.08907587826251984,
-0.14839652180671692,
-0.017737068235874176,
-0.09986584633588791,
-0.04057612642645836,
-0.07617654651403427,
0.1564854085445404,
-0.0948207676410675,
-0.1326785385608673,
-0.11978712677955627,
-0.0389569029211998,
0.10767348110675812,
-0.05832833796739578,
0.05323214456439018,
0.01700550690293312,
0.20415130257606506,
-0.0433167964220047,
-0.028113409876823425,
-0.004908618051558733,
-0.05285650119185448,
-0.19097477197647095,
-0.02343757450580597,
0.12928713858127594,
0.0779549777507782,
0.06587488949298859,
0.029325542971491814,
0.039443694055080414,
0.02299761399626732,
-0.13154801726341248,
0.009771419689059258,
0.17074543237686157,
0.04781322926282883,
0.013307254761457443,
0.042574282735586166,
-0.008214347064495087,
-0.08190961182117462,
-0.030131274834275246,
0.09283663332462311,
0.1729610562324524,
-0.06739933043718338,
0.14602935314178467,
0.12497660517692566,
-0.09406174719333649,
-0.20555156469345093,
0.02313077449798584,
0.05632149428129196,
0.0008945632725954056,
0.07956282794475555,
-0.19480137526988983,
-0.0032240059226751328,
0.0911603569984436,
-0.007429418154060841,
0.0077758533880114555,
-0.22023825347423553,
-0.12303222715854645,
0.03391798585653305,
0.054626576602458954,
-0.04569580778479576,
-0.0679505467414856,
-0.04721516743302345,
-0.07055693864822388,
-0.13025659322738647,
0.10376390814781189,
-0.008005473762750626,
0.01987299695611,
0.018248043954372406,
0.06930798292160034,
0.05113250017166138,
-0.03486897051334381,
0.19326552748680115,
-0.023036833852529526,
0.049335330724716187,
-0.10167790204286575,
-0.033861562609672546,
0.06543134897947311,
-0.035329725593328476,
0.08500586450099945,
0.015082462690770626,
0.029386717826128006,
-0.048791222274303436,
-0.08454953879117966,
-0.04638306051492691,
0.02131665125489235,
-0.0602584183216095,
-0.08930888772010803,
-0.09745641052722931,
0.0610760934650898,
0.050189435482025146,
-0.02583705447614193,
-0.11283093690872192,
-0.05849294364452362,
-0.09026927500963211,
0.05832148343324661,
0.22870180010795593,
0.01354217529296875,
-0.0957455188035965,
-0.017618410289287567,
-0.009203571826219559,
0.05588963255286217,
-0.16961340606212616,
0.045005906373262405,
0.0659906193614006,
0.018648630008101463,
0.13238096237182617,
-0.007638862356543541,
-0.153983473777771,
0.042405806481838226,
0.028988324105739594,
-0.052259039133787155,
-0.1849295049905777,
-0.013315850868821144,
0.05063349008560181,
-0.11135520040988922,
-0.0701286718249321,
0.10025259852409363,
-0.04602035880088806,
-0.03969159722328186,
0.003545639105141163,
0.08149005472660065,
0.011481004767119884,
0.0613381527364254,
0.04816824942827225,
0.036532606929540634,
-0.061979781836271286,
0.08121173828840256,
0.07115049660205841,
-0.05030537024140358,
0.03532110154628754,
-0.004900956526398659,
-0.08588965982198715,
-0.04078347235918045,
-0.10925902426242828,
0.02860882319509983,
0.015878327190876007,
-0.06376703083515167,
0.02459372952580452,
-0.11171276867389679,
0.007078109309077263,
0.04703817144036293,
0.015636688098311424,
0.040979161858558655,
-0.028306445106863976,
0.033823978155851364,
-0.09264121949672699,
0.05408879369497299,
0.011638070456683636,
0.039677370339632034,
-0.0771898701786995,
0.09813770651817322,
0.03333910182118416,
0.017090952023863792,
-0.009270492009818554,
-0.012179342098534107,
-0.03218585252761841,
-0.024595104157924652,
-0.1873631477355957,
0.03691153973340988,
-0.09045537561178207,
-0.0011416325578466058,
0.0007638728711754084,
-0.03358094394207001,
-0.007027926854789257,
0.025782709941267967,
-0.05227528512477875,
-0.007877709344029427,
-0.013318855315446854,
0.053397875279188156,
-0.10121937096118927,
0.017310984432697296,
0.11407013237476349,
-0.07054334133863449,
0.10690578818321228,
-0.04782133176922798,
-0.0024550645612180233,
0.03808540850877762,
-0.05229569599032402,
0.03327402472496033,
0.009766239672899246,
0.057318612933158875,
-0.02056261897087097,
-0.14254796504974365,
0.003898056223988533,
-0.020009567961096764,
-0.048579782247543335,
-0.013600746169686317,
0.005150720477104187,
-0.07429952919483185,
0.10338341444730759,
0.023631570860743523,
-0.05000346526503563,
-0.05930277705192566,
0.026563573628664017,
0.08161072432994843,
0.016388703137636185,
0.07541768997907639,
0.012309825979173183,
0.032699309289455414,
-0.12675511837005615,
-0.016384614631533623,
-0.006680742837488651,
0.05845285952091217,
-0.021174322813749313,
-0.0499492771923542,
0.04031987860798836,
-0.006619215477257967,
0.20480641722679138,
0.017218630760908127,
-0.09405495226383209,
0.040622856467962265,
0.03347090631723404,
0.011204911395907402,
0.033367712050676346,
0.06069990247488022,
0.01964542642235756,
0.0009779674001038074,
-0.019601047039031982,
-0.016048770397901535,
-0.029546072706580162,
-0.09268375486135483,
0.12372082471847534,
0.0929594337940216,
0.07009513676166534,
-0.015022795647382736,
0.005299532786011696,
-0.05769398435950279,
-0.052614375948905945,
0.11300582438707352,
-0.04025997966527939,
-0.027625204995274544,
-0.04853644594550133,
0.07875963300466537,
0.15082231163978577,
-0.14584341645240784,
0.08447620272636414,
-0.01757856085896492,
-0.07826818525791168,
-0.0842946469783783,
-0.15697260200977325,
-0.05850508436560631,
-0.009274134412407875,
0.005085715092718601,
-0.10055708885192871,
0.02891543321311474,
0.1178373172879219,
0.017349228262901306,
-0.022205762565135956,
0.08523780852556229,
-0.12075287848711014,
-0.0921473503112793,
0.021731337532401085,
0.0245213583111763,
0.02707779034972191,
0.03851839154958725,
0.008257754147052765,
0.0324159599840641,
0.09812436997890472,
0.07860402762889862,
0.06034368649125099,
0.03353992849588394,
-0.036210641264915466,
-0.03151511773467064,
-0.03213110566139221,
-0.009848643094301224,
-0.010504528880119324,
0.024651452898979187,
0.09301712363958359,
0.050907284021377563,
-0.0023698359727859497,
0.005096634849905968,
0.12881842255592346,
0.015103559009730816,
-0.08654128015041351,
-0.12778633832931519,
0.0920025110244751,
-0.018693067133426666,
0.036869730800390244,
0.05588071793317795,
-0.10822419822216034,
0.056537434458732605,
0.150160551071167,
0.15516138076782227,
-0.04041764885187149,
-0.0041053504683077335,
-0.03940583020448685,
0.01779830828309059,
0.004903099499642849,
0.0841970443725586,
-0.011061351746320724,
0.1780005395412445,
-0.06797321140766144,
0.029860885813832283,
-0.013015588745474815,
-0.015452182851731777,
-0.02848229371011257,
0.12574386596679688,
-0.043146081268787384,
0.02288014255464077,
-0.06895237416028976,
0.06992185115814209,
0.00790882296860218,
-0.22448018193244934,
0.02298067882657051,
-0.04782385379076004,
-0.10101762413978577,
0.07358364015817642,
-0.010454537346959114,
-0.005207933485507965,
0.035018280148506165,
0.007197597064077854,
-0.03335494175553322,
0.18488991260528564,
0.03766626864671707,
-0.08570396900177002,
0.020872410386800766,
0.1212761178612709,
0.035791296511888504,
0.21681763231754303,
0.015567135997116566,
0.11079487949609756,
0.08694377541542053,
0.003705541603267193,
-0.11753718554973602,
0.027503598481416702,
0.043342940509319305,
-0.0019063036888837814,
0.003307472914457321,
0.12121471762657166,
0.00564149022102356,
0.0019934531301259995,
0.09607578814029694,
-0.04793152958154678,
0.03559906780719757,
0.028352301567792892,
-0.047837793827056885,
-0.07783618569374084,
0.07852912694215775,
-0.1168951690196991,
0.12438830733299255,
0.10507602244615555,
-0.022676413878798485,
-0.0032480712980031967,
-0.05144031345844269,
0.028311120346188545,
0.00020750705152750015,
0.10499420017004013,
0.013378587551414967,
-0.12506315112113953,
-0.024331504479050636,
-0.014000562950968742,
0.046583838760852814,
-0.17241701483726501,
-0.0399862676858902,
0.035873085260391235,
-0.015011628158390522,
0.005134154111146927,
0.09378646314144135,
0.02109478786587715,
0.03037271648645401,
-0.028177030384540558,
-0.02908560261130333,
-0.02653593197464943,
0.10587306320667267,
-0.07722648233175278,
0.006484842859208584
] |
null | null | transformers |
# Model Card for DistilRoBERTa base
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training Details](#training-details)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Citation](#citation)
8. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
This model is a distilled version of the [RoBERTa-base model](https://huggingface.co/roberta-base). It follows the same training procedure as [DistilBERT](https://huggingface.co/distilbert-base-uncased).
The code for the distillation process can be found [here](https://github.com/huggingface/transformers/tree/master/examples/distillation).
This model is case-sensitive: it makes a difference between english and English.
The model has 6 layers, 768 dimension and 12 heads, totalizing 82M parameters (compared to 125M parameters for RoBERTa-base).
On average DistilRoBERTa is twice as fast as Roberta-base.
We encourage users of this model card to check out the [RoBERTa-base model card](https://huggingface.co/roberta-base) to learn more about usage, limitations and potential biases.
- **Developed by:** Victor Sanh, Lysandre Debut, Julien Chaumond, Thomas Wolf (Hugging Face)
- **Model type:** Transformer-based language model
- **Language(s) (NLP):** English
- **License:** Apache 2.0
- **Related Models:** [RoBERTa-base model card](https://huggingface.co/roberta-base)
- **Resources for more information:**
- [GitHub Repository](https://github.com/huggingface/transformers/blob/main/examples/research_projects/distillation/README.md)
- [Associated Paper](https://arxiv.org/abs/1910.01108)
# Uses
## Direct Use and Downstream Use
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?filter=roberta) to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation you should look at model like GPT2.
## Out of Scope Use
The model should not be used to intentionally create hostile or alienating environments for people. The model was not trained to be factual or true representations of people or events, and therefore using the models to generate such content is out-of-scope for the abilities of this model.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='distilroberta-base')
>>> unmasker("The man worked as a <mask>.")
[{'score': 0.1237526461482048,
'sequence': 'The man worked as a waiter.',
'token': 38233,
'token_str': ' waiter'},
{'score': 0.08968018740415573,
'sequence': 'The man worked as a waitress.',
'token': 35698,
'token_str': ' waitress'},
{'score': 0.08387645334005356,
'sequence': 'The man worked as a bartender.',
'token': 33080,
'token_str': ' bartender'},
{'score': 0.061059024184942245,
'sequence': 'The man worked as a mechanic.',
'token': 25682,
'token_str': ' mechanic'},
{'score': 0.03804653510451317,
'sequence': 'The man worked as a courier.',
'token': 37171,
'token_str': ' courier'}]
>>> unmasker("The woman worked as a <mask>.")
[{'score': 0.23149248957633972,
'sequence': 'The woman worked as a waitress.',
'token': 35698,
'token_str': ' waitress'},
{'score': 0.07563332468271255,
'sequence': 'The woman worked as a waiter.',
'token': 38233,
'token_str': ' waiter'},
{'score': 0.06983394920825958,
'sequence': 'The woman worked as a bartender.',
'token': 33080,
'token_str': ' bartender'},
{'score': 0.05411609262228012,
'sequence': 'The woman worked as a nurse.',
'token': 9008,
'token_str': ' nurse'},
{'score': 0.04995106905698776,
'sequence': 'The woman worked as a maid.',
'token': 29754,
'token_str': ' maid'}]
```
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training Details
DistilRoBERTa was pre-trained on [OpenWebTextCorpus](https://skylion007.github.io/OpenWebTextCorpus/), a reproduction of OpenAI's WebText dataset (it is ~4 times less training data than the teacher RoBERTa). See the [roberta-base model card](https://huggingface.co/roberta-base/blob/main/README.md) for further details on training.
# Evaluation
When fine-tuned on downstream tasks, this model achieves the following results (see [GitHub Repo](https://github.com/huggingface/transformers/blob/main/examples/research_projects/distillation/README.md)):
Glue test results:
| Task | MNLI | QQP | QNLI | SST-2 | CoLA | STS-B | MRPC | RTE |
|:----:|:----:|:----:|:----:|:-----:|:----:|:-----:|:----:|:----:|
| | 84.0 | 89.4 | 90.8 | 92.5 | 59.3 | 88.3 | 86.6 | 67.9 |
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Citation
```bibtex
@article{Sanh2019DistilBERTAD,
title={DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter},
author={Victor Sanh and Lysandre Debut and Julien Chaumond and Thomas Wolf},
journal={ArXiv},
year={2019},
volume={abs/1910.01108}
}
```
APA
- Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.
# How to Get Started With the Model
You can use the model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='distilroberta-base')
>>> unmasker("Hello I'm a <mask> model.")
[{'score': 0.04673689603805542,
'sequence': "Hello I'm a business model.",
'token': 265,
'token_str': ' business'},
{'score': 0.03846118599176407,
'sequence': "Hello I'm a freelance model.",
'token': 18150,
'token_str': ' freelance'},
{'score': 0.03308931365609169,
'sequence': "Hello I'm a fashion model.",
'token': 2734,
'token_str': ' fashion'},
{'score': 0.03018997237086296,
'sequence': "Hello I'm a role model.",
'token': 774,
'token_str': ' role'},
{'score': 0.02111748233437538,
'sequence': "Hello I'm a Playboy model.",
'token': 24526,
'token_str': ' Playboy'}]
```
<a href="https://huggingface.co/exbert/?model=distilroberta-base">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": "en", "license": "apache-2.0", "tags": ["exbert"], "datasets": ["openwebtext"]} | fill-mask | distilbert/distilroberta-base | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"roberta",
"fill-mask",
"exbert",
"en",
"dataset:openwebtext",
"arxiv:1910.01108",
"arxiv:1910.09700",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1910.01108",
"1910.09700"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #rust #safetensors #roberta #fill-mask #exbert #en #dataset-openwebtext #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us
| Model Card for DistilRoBERTa base
=================================
Table of Contents
=================
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training Details
5. Evaluation
6. Environmental Impact
7. Citation
8. How To Get Started With the Model
Model Details
=============
Model Description
-----------------
This model is a distilled version of the RoBERTa-base model. It follows the same training procedure as DistilBERT.
The code for the distillation process can be found here.
This model is case-sensitive: it makes a difference between english and English.
The model has 6 layers, 768 dimension and 12 heads, totalizing 82M parameters (compared to 125M parameters for RoBERTa-base).
On average DistilRoBERTa is twice as fast as Roberta-base.
We encourage users of this model card to check out the RoBERTa-base model card to learn more about usage, limitations and potential biases.
* Developed by: Victor Sanh, Lysandre Debut, Julien Chaumond, Thomas Wolf (Hugging Face)
* Model type: Transformer-based language model
* Language(s) (NLP): English
* License: Apache 2.0
* Related Models: RoBERTa-base model card
* Resources for more information:
+ GitHub Repository
+ Associated Paper
Uses
====
Direct Use and Downstream Use
-----------------------------
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation you should look at model like GPT2.
Out of Scope Use
----------------
The model should not be used to intentionally create hostile or alienating environments for people. The model was not trained to be factual or true representations of people or events, and therefore using the models to generate such content is out-of-scope for the abilities of this model.
Bias, Risks, and Limitations
============================
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
Recommendations
---------------
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Training Details
================
DistilRoBERTa was pre-trained on OpenWebTextCorpus, a reproduction of OpenAI's WebText dataset (it is ~4 times less training data than the teacher RoBERTa). See the roberta-base model card for further details on training.
Evaluation
==========
When fine-tuned on downstream tasks, this model achieves the following results (see GitHub Repo):
Glue test results:
Environmental Impact
====================
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
* Hardware Type: More information needed
* Hours used: More information needed
* Cloud Provider: More information needed
* Compute Region: More information needed
* Carbon Emitted: More information needed
APA
* Sanh, V., Debut, L., Chaumond, J., & Wolf, T. (2019). DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.
How to Get Started With the Model
=================================
You can use the model directly with a pipeline for masked language modeling:
<a href="URL
<img width="300px" src="URL
| [] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #roberta #fill-mask #exbert #en #dataset-openwebtext #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n"
] | [
91
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #roberta #fill-mask #exbert #en #dataset-openwebtext #arxiv-1910.01108 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n"
] | [
-0.09790331870317459,
0.11610547453165054,
-0.004055357538163662,
0.07993187010288239,
0.014686415903270245,
-0.0019354814430698752,
0.10702063888311386,
0.10850657522678375,
0.005632669199258089,
-0.038182877004146576,
0.17642425000667572,
0.15864622592926025,
0.002774089341983199,
0.1742527037858963,
-0.051600538194179535,
-0.11760660260915756,
0.06629472225904465,
0.0014892835170030594,
-0.031983617693185806,
0.0980370044708252,
0.1024005115032196,
-0.04841162636876106,
0.058088283985853195,
0.0006011737277731299,
-0.03773084282875061,
0.025830283761024475,
0.070754773914814,
-0.1061551421880722,
0.13501296937465668,
0.048343125730752945,
0.09249857068061829,
0.05080511048436165,
0.032849978655576706,
-0.05177564546465874,
0.03717092052102089,
0.05863061174750328,
-0.08862416446208954,
0.06969130039215088,
0.007211688905954361,
-0.007805231958627701,
0.003322862321510911,
0.017711680382490158,
0.010521364398300648,
0.03629731386899948,
-0.0876893699169159,
-0.2533336579799652,
-0.09215721487998962,
0.10277573764324188,
0.032807573676109314,
0.10011699050664902,
0.0431661494076252,
0.2264484167098999,
-0.06094002351164818,
0.0996146872639656,
0.1580422967672348,
-0.34315937757492065,
-0.027080634608864784,
0.04073406383395195,
0.05795702338218689,
-0.014403273351490498,
-0.03329668939113617,
0.014494935050606728,
0.08430175483226776,
0.007492166943848133,
0.10640834271907806,
-0.036811646074056625,
-0.19234928488731384,
0.03566749393939972,
-0.0719481110572815,
-0.058577850461006165,
0.27190837264060974,
0.02386895939707756,
0.00041339866584166884,
0.0001809756940929219,
-0.10104438662528992,
0.020152220502495766,
0.026018429547548294,
0.021597610786557198,
0.014582430943846703,
0.059858497232198715,
0.019468240439891815,
-0.02457638829946518,
-0.15334048867225647,
-0.01681552641093731,
-0.19960473477840424,
0.13845518231391907,
-0.005875770468264818,
0.09806309640407562,
-0.13183052837848663,
0.05221358686685562,
0.04542868584394455,
-0.16393564641475677,
0.030486036092042923,
-0.0706946849822998,
0.07654954493045807,
0.035399600863456726,
-0.03779996559023857,
0.014904756098985672,
0.09385120123624802,
0.24687820672988892,
0.03654872998595238,
-0.009240088984370232,
-0.021336084231734276,
0.09392429888248444,
-0.028816962614655495,
0.028463264927268028,
-0.037604641169309616,
-0.054487571120262146,
0.09974673390388489,
-0.04081009700894356,
0.09352230280637741,
-0.03195089474320412,
-0.09176679700613022,
-0.03139530494809151,
-0.008298848755657673,
0.07786092162132263,
0.12356237322092056,
0.04320354387164116,
-0.038510601967573166,
0.03876558691263199,
0.16722123324871063,
-0.07597536593675613,
-0.0011329349363222718,
-0.025234336033463478,
0.015252471901476383,
-0.06793295592069626,
0.09278254210948944,
0.01753881387412548,
0.015718383714556694,
0.05832996219396591,
-0.09766194969415665,
-0.051352038979530334,
-0.020112646743655205,
-0.07339536398649216,
0.07807786017656326,
-0.08133392781019211,
0.03840386122465134,
-0.19409307837486267,
-0.17377495765686035,
0.04813086986541748,
0.06756313145160675,
0.017258983105421066,
-0.08780597150325775,
0.07619445025920868,
-0.05727927014231682,
0.057616639882326126,
-0.06352843344211578,
0.07196567207574844,
-0.08380381762981415,
0.05594664439558983,
-0.07327006757259369,
0.08030849695205688,
-0.1372760534286499,
-0.0007411002879962325,
-0.1273254156112671,
-0.020018767565488815,
-0.033893242478370667,
-0.09837914258241653,
-0.08942554146051407,
0.16361792385578156,
-0.03148524463176727,
0.003598594106733799,
-0.055761076509952545,
0.01588481292128563,
0.028916994109749794,
0.13050061464309692,
-0.13705570995807648,
-0.019510194659233093,
0.19405707716941833,
-0.11024919152259827,
-0.20693127810955048,
0.07153373211622238,
0.022611627355217934,
0.011940067633986473,
0.01560330018401146,
0.11895856261253357,
0.005896443966776133,
-0.1579945683479309,
0.0136102931573987,
0.12137192487716675,
-0.09060678631067276,
-0.15157344937324524,
0.06791641563177109,
-0.021169330924749374,
-0.07591700553894043,
0.016197489574551582,
0.03132570907473564,
0.10286945849657059,
-0.009699709713459015,
-0.09503287076950073,
-0.0696813091635704,
-0.09337171912193298,
0.034917864948511124,
0.0011523158755153418,
0.03067990392446518,
-0.09893573820590973,
-0.058539070188999176,
-0.1422705203294754,
0.06495552510023117,
0.08268202096223831,
0.029309583827853203,
-0.07387273013591766,
0.05206243693828583,
-0.01922314614057541,
-0.00782191101461649,
-0.09783926606178284,
-0.04244624078273773,
-0.021020160987973213,
0.05591307207942009,
-0.022116342559456825,
0.10507742315530777,
0.09308575093746185,
-0.04228482022881508,
-0.0213727168738842,
-0.040334273129701614,
0.07496850192546844,
0.06893221288919449,
-0.02612069621682167,
-0.19450542330741882,
0.0368276908993721,
-0.07658731192350388,
0.033462975174188614,
-0.03164367005228996,
0.02023310959339142,
-0.011694726534187794,
0.1143409013748169,
-0.0057530831545591354,
0.057680778205394745,
-0.01914750225841999,
-0.04878058657050133,
-0.04444665089249611,
-0.019521493464708328,
0.05713566765189171,
0.05592351034283638,
-0.05915196239948273,
0.1975284218788147,
-0.06641477346420288,
0.34965622425079346,
0.1754441112279892,
-0.10078759491443634,
-0.015519336797297001,
0.09399832785129547,
-0.051908742636442184,
-0.019501294940710068,
0.017586471512913704,
-0.021556558087468147,
-0.05695938318967819,
-0.03757702559232712,
0.11156544089317322,
-0.0667804554104805,
-0.052521947771310806,
0.0031598065979778767,
-0.06427324563264847,
-0.0298193097114563,
0.032496608793735504,
0.07553637772798538,
-0.17545391619205475,
0.18674340844154358,
0.3122313320636749,
-0.05491804704070091,
0.10052897036075592,
-0.03086947090923786,
-0.017898794263601303,
-0.007643519435077906,
-0.05333029106259346,
-0.03463701531291008,
0.15124186873435974,
-0.06363936513662338,
0.023962700739502907,
0.08251466602087021,
-0.004266050178557634,
0.017188692465424538,
-0.11908712238073349,
-0.07687941193580627,
0.022285129874944687,
0.027469918131828308,
-0.052493732422590256,
0.08302327245473862,
-0.025533074513077736,
0.12998639047145844,
-0.037753425538539886,
-0.1464400738477707,
0.07359111309051514,
0.002239957917481661,
-0.06978915631771088,
0.1305360645055771,
-0.1429930478334427,
-0.21298852562904358,
-0.055488552898168564,
-0.09934012591838837,
-0.0008482226985506713,
-0.012285210192203522,
0.08876428008079529,
-0.04694458842277527,
-0.06636209040880203,
-0.03239811211824417,
-0.14851167798042297,
-0.009646310470998287,
0.05216953903436661,
0.034368231892585754,
0.03174200281500816,
0.055919963866472244,
-0.12137903273105621,
-0.03963113948702812,
0.016493994742631912,
-0.008455364964902401,
0.08652417361736298,
0.01677279733121395,
0.09082107245922089,
0.06573408097028732,
0.019847730174660683,
0.003926175180822611,
-0.02391810342669487,
0.16557443141937256,
-0.03714492544531822,
0.054301075637340546,
0.17442302405834198,
-0.025654640048742294,
0.06913751363754272,
0.17075589299201965,
0.0324123241007328,
-0.031141510233283043,
0.011986939236521721,
-0.04606552794575691,
-0.05668836832046509,
-0.2083078920841217,
-0.08106479793787003,
-0.10457220673561096,
0.05409036576747894,
0.04682821035385132,
0.07516076415777206,
0.1327270269393921,
0.0718764066696167,
-0.018449069932103157,
-0.018627403303980827,
-0.06532963365316391,
0.0430302731692791,
0.09221874177455902,
-0.03770824149250984,
0.12302356213331223,
-0.08695623278617859,
-0.044504571706056595,
0.11185053735971451,
0.0258210226893425,
0.04911345988512039,
0.06105717644095421,
-0.012876027263700962,
0.05897130072116852,
0.21999286115169525,
0.027526970952749252,
0.13463392853736877,
0.014918564818799496,
-0.06864242255687714,
-0.024945314973592758,
-0.041618287563323975,
-0.009639821946620941,
0.059111837297677994,
-0.04621303081512451,
-0.034640707075595856,
-0.0002873514895327389,
-0.10703030973672867,
0.050662051886320114,
0.12016597390174866,
0.0844932347536087,
-0.1979892998933792,
0.00113285006955266,
0.04576887935400009,
-0.0054514748044312,
-0.02597985602915287,
0.0378156378865242,
0.01970824785530567,
-0.04721861705183983,
0.10053720325231552,
-0.0029698603320866823,
0.08229134976863861,
0.12827102839946747,
0.03226165845990181,
-0.06439530104398727,
-0.0551140233874321,
-0.0101627167314291,
0.08547627180814743,
-0.2645694315433502,
0.2483881562948227,
0.007014334201812744,
-0.019471487030386925,
-0.08676901459693909,
0.007912728935480118,
0.07566651701927185,
0.11159229278564453,
0.13276037573814392,
0.03786976635456085,
-0.04538687691092491,
0.02294093929231167,
-0.07731777429580688,
0.04513278231024742,
-0.04069226235151291,
0.008240623399615288,
-0.016116974875330925,
-0.031333718448877335,
-0.027137013152241707,
0.05470480024814606,
0.19853834807872772,
-0.08371277153491974,
-0.07893915474414825,
0.04441981017589569,
0.1225338950753212,
-0.054695624858140945,
-0.07382220029830933,
-0.05728268250823021,
-0.13216359913349152,
0.14976516366004944,
-0.04652370512485504,
-0.030464917421340942,
-0.09836835414171219,
-0.08404598385095596,
0.07325197756290436,
-0.060203492641448975,
0.0718703493475914,
-0.04612918570637703,
-0.0006218850612640381,
-0.06640303134918213,
-0.15113382041454315,
0.11598893254995346,
-0.1849554181098938,
-0.05716964974999428,
-0.09493191540241241,
0.07518599182367325,
-0.0881614089012146,
0.05150871351361275,
0.008251099847257137,
0.025244900956749916,
-0.12972939014434814,
-0.06258506327867508,
0.03646126389503479,
-0.05134598910808563,
0.07814478874206543,
-0.018449271097779274,
-0.04073137789964676,
-0.12922315299510956,
0.055142492055892944,
-0.05661435425281525,
0.1559290587902069,
0.25562721490859985,
-0.1044580489397049,
0.12726765871047974,
0.16291122138500214,
-0.008981873281300068,
-0.2895442843437195,
-0.13791100680828094,
-0.1430695652961731,
-0.02958579547703266,
0.05058824270963669,
-0.06313266605138779,
0.08045338839292526,
0.016005827113986015,
-0.12339425086975098,
0.1323392689228058,
-0.1189509928226471,
-0.0842847228050232,
0.22443237900733948,
-0.01653650589287281,
0.31702756881713867,
-0.1177397072315216,
-0.023131320253014565,
-0.03315526992082596,
-0.12448056787252426,
0.0791347324848175,
-0.1374468207359314,
0.030985884368419647,
-0.014008507132530212,
-0.040081292390823364,
-0.011326768435537815,
-0.07818332314491272,
0.10568933933973312,
-0.08828085660934448,
0.037186793982982635,
-0.12724368274211884,
0.0022991003934293985,
0.12142742425203323,
-0.023831015452742577,
0.06417160481214523,
-0.15567131340503693,
0.04478071630001068,
-0.05757038667798042,
0.017909083515405655,
-0.10614155232906342,
0.09956516325473785,
-0.008517264388501644,
-0.08529087901115417,
-0.018406225368380547,
0.003114707302302122,
0.014663931913673878,
-0.045043472200632095,
0.16479669511318207,
0.05470253899693489,
0.1428409218788147,
0.1587189882993698,
0.026737211272120476,
-0.15361467003822327,
-0.018290944397449493,
-0.03735077753663063,
-0.09570294618606567,
0.09021293371915817,
-0.14933836460113525,
0.0369446724653244,
0.045660149306058884,
-0.0011724227806553245,
0.04569842666387558,
0.056334178894758224,
-0.027654703706502914,
-0.060571253299713135,
0.1585685759782791,
-0.19274728000164032,
0.0702662542462349,
0.001961737871170044,
0.10611791908740997,
-0.01582922972738743,
0.047586601227521896,
0.11534421145915985,
-0.040184617042541504,
-0.020133795216679573,
0.0014270738465711474,
0.05373721942305565,
-0.05605246499180794,
0.0675903782248497,
0.11662732064723969,
0.034861836582422256,
-0.09260410815477371,
0.08524993807077408,
-0.016846759244799614,
-0.09397287666797638,
0.0070006996393203735,
0.06510743498802185,
-0.087979756295681,
-0.11471132189035416,
0.03950877860188484,
0.04549218341708183,
-0.05435454100370407,
-0.0912056490778923,
-0.06812804937362671,
-0.0655209943652153,
0.06388912349939346,
0.14756320416927338,
0.08024991303682327,
0.04687245190143585,
0.05092216283082962,
-0.048832543194293976,
0.039277929812669754,
0.041705112904310226,
-0.03835687041282654,
0.010448557324707508,
-0.13708268105983734,
0.01054090354591608,
-0.0003636128094512969,
0.09149647504091263,
-0.055784329771995544,
0.054855115711688995,
-0.09848771244287491,
0.009684442542493343,
-0.06430202722549438,
-0.028281768783926964,
-0.05857830122113228,
-0.03395870700478554,
-0.001174888457171619,
-0.10291802138090134,
-0.06155791133642197,
0.022294506430625916,
-0.10011155903339386,
-0.01575525663793087,
0.03782577067613602,
0.02449147030711174,
-0.11161856353282928,
-0.06363912671804428,
0.06737443059682846,
-0.012690612114965916,
0.08282441645860672,
0.08172671496868134,
-0.04788541421294212,
0.04586730897426605,
-0.14205068349838257,
-0.07475913316011429,
0.05871404707431793,
0.030261285603046417,
0.03856436908245087,
0.007734052836894989,
-0.02861887589097023,
0.07183901965618134,
-0.016015266999602318,
0.016112755984067917,
0.03359382227063179,
-0.0888441875576973,
0.005868914071470499,
0.05164475366473198,
-0.10704062879085541,
-0.005984656512737274,
-0.10292825847864151,
0.13468113541603088,
-0.025073634460568428,
0.1467711329460144,
-0.023351291194558144,
0.011578534729778767,
-0.1376444399356842,
0.03657062351703644,
-0.054222483187913895,
-0.12070219218730927,
-0.09009809792041779,
-0.0012964368797838688,
-0.012718357145786285,
-0.043053269386291504,
0.1813843548297882,
-0.0013851107796654105,
-0.10774233192205429,
0.05751345679163933,
0.06010618805885315,
0.005806326866149902,
0.002921796403825283,
0.19390182197093964,
-0.0017056346405297518,
-0.02597840502858162,
-0.08561591804027557,
0.019726863130927086,
0.037288859486579895,
-0.04694565758109093,
0.062311068177223206,
0.09090177714824677,
0.1500914990901947,
0.0668409913778305,
0.04217660427093506,
-0.09814456850290298,
-0.06466765701770782,
-0.17597202956676483,
-0.029835594817996025,
0.06986060738563538,
0.017498336732387543,
0.011544264853000641,
0.18759673833847046,
0.015016410499811172,
-0.006604671478271484,
-0.04930155351758003,
0.03298754617571831,
-0.14288625121116638,
-0.10060738772153854,
-0.050867076963186264,
-0.05900631099939346,
-0.01009911485016346,
-0.03654606640338898,
0.006582240574061871,
0.0532560832798481,
0.03666367381811142,
-0.03329840674996376,
0.04002445936203003,
0.006408392917364836,
-0.03976989910006523,
0.014378502033650875,
0.02722519263625145,
-0.02671150490641594,
-0.03984714671969414,
-0.011454081162810326,
-0.0647226870059967,
0.0013573599280789495,
-0.05643392726778984,
-0.013088205829262733,
-0.03250027075409889,
0.06678471714258194,
-0.0371459499001503,
-0.0760255679488182,
-0.06546776741743088,
-0.008636857382953167,
0.02556185983121395,
0.12424898892641068,
0.02798840031027794,
0.09716660529375076,
0.07341229170560837,
0.19116848707199097,
-0.0784456804394722,
-0.1449279934167862,
-0.08397635817527771,
0.0896512046456337,
-0.022765224799513817,
0.02598525583744049,
-0.007053326815366745,
0.007566047832369804,
-0.018220560625195503,
0.23105113208293915,
0.29118800163269043,
-0.060801912099123,
0.080733522772789,
0.003483796725049615,
0.010837304405868053,
-0.010929358191788197,
0.04691561311483383,
0.12262546271085739,
0.22054891288280487,
-0.09418641775846481,
0.0036003319546580315,
-0.04905517026782036,
0.003384893760085106,
-0.10078514367341995,
0.01915622316300869,
-0.011798053048551083,
-0.07086826115846634,
-0.016247304156422615,
0.04886631667613983,
-0.03226052224636078,
0.04803423583507538,
0.003724575974047184,
-0.17316187918186188,
-0.0767972320318222,
0.008483574725687504,
0.18859875202178955,
0.047772523015737534,
0.038216594606637955,
-0.0378151573240757,
0.010850324295461178,
0.03023366443812847,
-0.027655499055981636,
-0.1482190042734146,
-0.08778412640094757,
0.08157777041196823,
-0.04095587879419327,
0.22042477130889893,
-0.024018101394176483,
0.0769975483417511,
0.10492651164531708,
0.04604928940534592,
-0.13211971521377563,
0.06682616472244263,
0.03303605690598488,
-0.09178031235933304,
-0.021407287567853928,
-0.11439376324415207,
-0.004451416898518801,
-0.06240605190396309,
0.042628198862075806,
-0.0716814175248146,
0.027876881882548332,
0.08557654172182083,
-0.022954130545258522,
-0.029127292335033417,
0.0782724916934967,
-0.04193491116166115,
0.10911652445793152,
0.012337145395576954,
-0.04957091808319092,
-0.06352150440216064,
-0.04739585518836975,
-0.02018096297979355,
0.06656044721603394,
-0.14778530597686768,
-0.07499497383832932,
-0.031333938241004944,
0.02252562716603279,
-0.00646433187648654,
0.023533465340733528,
-0.09305316209793091,
-0.053700342774391174,
-0.0948421061038971,
-0.051809582859277725,
-0.12331683188676834,
-0.021378377452492714,
0.0954902321100235,
0.009298225864768028,
0.017997603863477707,
0.02516482025384903,
0.017509404569864273,
0.015897460281848907,
-0.11896468698978424,
-0.09467003494501114
] |
null | null | transformers |
# GPT-2 Large
## Table of Contents
- [Model Details](#model-details)
- [How To Get Started With the Model](#how-to-get-started-with-the-model)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation)
- [Environmental Impact](#environmental-impact)
- [Technical Specifications](#technical-specifications)
- [Citation Information](#citation-information)
- [Model Card Authors](#model-card-author)
## Model Details
**Model Description:** GPT-2 Large is the **774M parameter** version of GPT-2, a transformer-based language model created and released by OpenAI. The model is a pretrained model on English language using a causal language modeling (CLM) objective.
- **Developed by:** OpenAI, see [associated research paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) and [GitHub repo](https://github.com/openai/gpt-2) for model developers.
- **Model Type:** Transformer-based language model
- **Language(s):** English
- **License:** [Modified MIT License](https://github.com/openai/gpt-2/blob/master/LICENSE)
- **Related Models:** [GPT-2](https://huggingface.co/gpt2), [GPT-Medium](https://huggingface.co/gpt2-medium) and [GPT-XL](https://huggingface.co/gpt2-xl)
- **Resources for more information:**
- [Research Paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)
- [OpenAI Blog Post](https://openai.com/blog/better-language-models/)
- [GitHub Repo](https://github.com/openai/gpt-2)
- [OpenAI Model Card for GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md)
- Test the full generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large
## How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
set a seed for reproducibility:
```python
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='gpt2-large')
>>> set_seed(42)
>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
[{'generated_text': "Hello, I'm a language model, I can do language modeling. In fact, this is one of the reasons I use languages. To get a"},
{'generated_text': "Hello, I'm a language model, which in its turn implements a model of how a human can reason about a language, and is in turn an"},
{'generated_text': "Hello, I'm a language model, why does this matter for you?\n\nWhen I hear new languages, I tend to start thinking in terms"},
{'generated_text': "Hello, I'm a language model, a functional language...\n\nI don't need to know anything else. If I want to understand about how"},
{'generated_text': "Hello, I'm a language model, not a toolbox.\n\nIn a nutshell, a language model is a set of attributes that define how"}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import GPT2Tokenizer, GPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2-large')
model = GPT2Model.from_pretrained('gpt2-large')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import GPT2Tokenizer, TFGPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2-large')
model = TFGPT2Model.from_pretrained('gpt2-large')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Uses
#### Direct Use
In their [model card about GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md), OpenAI wrote:
> The primary intended users of these models are AI researchers and practitioners.
>
> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.
#### Downstream Use
In their [model card about GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md), OpenAI wrote:
> Here are some secondary use cases we believe are likely:
>
> - Writing assistance: Grammar assistance, autocompletion (for normal prose or code)
> - Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.
> - Entertainment: Creation of games, chat bots, and amusing generations.
#### Misuse and Out-of-scope Use
In their [model card about GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md), OpenAI wrote:
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.
>
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
```python
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='gpt2-large')
>>> set_seed(42)
>>> generator("The man worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The man worked as a security guard in a hotel'},
{'generated_text': 'The man worked as a salesman in Mexico and in'},
{'generated_text': 'The man worked as a supervisor at the warehouse for'},
{'generated_text': "The man worked as a cleaner for the store's"},
{'generated_text': 'The man worked as a barbershop apprentice.'}]
>>> set_seed(42)
>>> generator("The woman worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The woman worked as a clerk at the bank.'},
{'generated_text': 'The woman worked as a caregiver, and her'},
{'generated_text': 'The woman worked as a customer service agent for a'},
{'generated_text': 'The woman worked as a cleaner at the store,'},
{'generated_text': 'The woman worked as a barista and was "'}]
```
This bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
## Training
#### Training Data
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web
pages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from
this dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights
40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText
[here](https://github.com/openai/gpt-2/blob/master/domains.txt).
#### Training Procedure
The model is pretrained on a very large corpus of English data in a self-supervised fashion. This
means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots
of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,
it was trained to guess the next word in sentences.
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,
shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the
predictions for the token `i` only uses the inputs from `1` to `i` but not the future tokens.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks.
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a
vocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
## Evaluation
The following evaluation information is extracted from the [associated paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf).
#### Testing Data, Factors and Metrics
The model authors write in the [associated paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) that:
> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string <UNK> which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.
#### Results
The model achieves the following results without any fine-tuning (zero-shot):
| Dataset | LAMBADA | LAMBADA | CBT-CN | CBT-NE | WikiText2 | PTB | enwiki8 | text8 | WikiText103 | 1BW |
|:--------:|:-------:|:-------:|:------:|:------:|:---------:|:------:|:-------:|:------:|:-----------:|:-----:|
| (metric) | (PPL) | (ACC) | (ACC) | (ACC) | (PPL) | (PPL) | (BPB) | (BPC) | (PPL) | (PPL) |
| | 10.87 | 60.12 | 93.45 | 88.0 | 19.93 | 40.31 | 0.97 | 1.02 | 22.05 | 44.575|
## Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** Unknown
- **Hours used:** Unknown
- **Cloud Provider:** Unknown
- **Compute Region:** Unknown
- **Carbon Emitted:** Unknown
## Technical Specifications
See the [associated paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) for details on the modeling architecture, objective, compute infrastructure, and training details.
## Citation Information
```bibtex
@article{radford2019language,
title={Language models are unsupervised multitask learners},
author={Radford, Alec and Wu, Jeffrey and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya and others},
journal={OpenAI blog},
volume={1},
number={8},
pages={9},
year={2019}
}
```
## Model Card Authors
This model card was written by the Hugging Face team. | {"language": "en", "license": "mit"} | text-generation | openai-community/gpt2-large | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"onnx",
"safetensors",
"gpt2",
"text-generation",
"en",
"arxiv:1910.09700",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1910.09700"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #rust #onnx #safetensors #gpt2 #text-generation #en #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us
| GPT-2 Large
===========
Table of Contents
-----------------
* Model Details
* How To Get Started With the Model
* Uses
* Risks, Limitations and Biases
* Training
* Evaluation
* Environmental Impact
* Technical Specifications
* Citation Information
* Model Card Authors
Model Details
-------------
Model Description: GPT-2 Large is the 774M parameter version of GPT-2, a transformer-based language model created and released by OpenAI. The model is a pretrained model on English language using a causal language modeling (CLM) objective.
* Developed by: OpenAI, see associated research paper and GitHub repo for model developers.
* Model Type: Transformer-based language model
* Language(s): English
* License: Modified MIT License
* Related Models: GPT-2, GPT-Medium and GPT-XL
* Resources for more information:
+ Research Paper
+ OpenAI Blog Post
+ GitHub Repo
+ OpenAI Model Card for GPT-2
+ Test the full generation capabilities here: URL
How to Get Started with the Model
---------------------------------
Use the code below to get started with the model. You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
set a seed for reproducibility:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
Uses
----
#### Direct Use
In their model card about GPT-2, OpenAI wrote:
>
> The primary intended users of these models are AI researchers and practitioners.
>
>
> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.
>
>
>
#### Downstream Use
In their model card about GPT-2, OpenAI wrote:
>
> Here are some secondary use cases we believe are likely:
>
>
> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)
> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.
> * Entertainment: Creation of games, chat bots, and amusing generations.
>
>
>
#### Misuse and Out-of-scope Use
In their model card about GPT-2, OpenAI wrote:
>
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.
>
>
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.
>
>
>
Risks, Limitations and Biases
-----------------------------
CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
This bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Training
--------
#### Training Data
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web
pages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from
this dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights
40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText
here.
#### Training Procedure
The model is pretrained on a very large corpus of English data in a self-supervised fashion. This
means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots
of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,
it was trained to guess the next word in sentences.
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,
shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the
predictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks.
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a
vocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
Evaluation
----------
The following evaluation information is extracted from the associated paper.
#### Testing Data, Factors and Metrics
The model authors write in the associated paper that:
>
> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.
>
>
>
#### Results
The model achieves the following results without any fine-tuning (zero-shot):
Environmental Impact
--------------------
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
* Hardware Type: Unknown
* Hours used: Unknown
* Cloud Provider: Unknown
* Compute Region: Unknown
* Carbon Emitted: Unknown
Technical Specifications
------------------------
See the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.
Model Card Authors
------------------
This model card was written by the Hugging Face team.
| [
"#### Direct Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> The primary intended users of these models are AI researchers and practitioners.\n> \n> \n> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.\n> \n> \n>",
"#### Downstream Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Here are some secondary use cases we believe are likely:\n> \n> \n> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)\n> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.\n> * Entertainment: Creation of games, chat bots, and amusing generations.\n> \n> \n>",
"#### Misuse and Out-of-scope Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n> \n> \n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.\n> \n> \n> \n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nThe training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.\n\n\nTraining\n--------",
"#### Training Data\n\n\nThe OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web\npages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from\nthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights\n40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText\nhere.",
"#### Training Procedure\n\n\nThe model is pretrained on a very large corpus of English data in a self-supervised fashion. This\nmeans it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots\nof publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,\nit was trained to guess the next word in sentences.\n\n\nMore precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,\nshifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the\npredictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.\n\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks.\n\n\nThe texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a\nvocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.\n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated paper.",
"#### Testing Data, Factors and Metrics\n\n\nThe model authors write in the associated paper that:\n\n\n\n> \n> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.\n> \n> \n>",
"#### Results\n\n\nThe model achieves the following results without any fine-tuning (zero-shot):\n\n\n\nEnvironmental Impact\n--------------------\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n\n* Hardware Type: Unknown\n* Hours used: Unknown\n* Cloud Provider: Unknown\n* Compute Region: Unknown\n* Carbon Emitted: Unknown\n\n\nTechnical Specifications\n------------------------\n\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.\n\n\nModel Card Authors\n------------------\n\n\nThis model card was written by the Hugging Face team."
] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #onnx #safetensors #gpt2 #text-generation #en #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n",
"#### Direct Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> The primary intended users of these models are AI researchers and practitioners.\n> \n> \n> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.\n> \n> \n>",
"#### Downstream Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Here are some secondary use cases we believe are likely:\n> \n> \n> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)\n> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.\n> * Entertainment: Creation of games, chat bots, and amusing generations.\n> \n> \n>",
"#### Misuse and Out-of-scope Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n> \n> \n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.\n> \n> \n> \n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nThe training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.\n\n\nTraining\n--------",
"#### Training Data\n\n\nThe OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web\npages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from\nthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights\n40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText\nhere.",
"#### Training Procedure\n\n\nThe model is pretrained on a very large corpus of English data in a self-supervised fashion. This\nmeans it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots\nof publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,\nit was trained to guess the next word in sentences.\n\n\nMore precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,\nshifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the\npredictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.\n\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks.\n\n\nThe texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a\nvocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.\n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated paper.",
"#### Testing Data, Factors and Metrics\n\n\nThe model authors write in the associated paper that:\n\n\n\n> \n> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.\n> \n> \n>",
"#### Results\n\n\nThe model achieves the following results without any fine-tuning (zero-shot):\n\n\n\nEnvironmental Impact\n--------------------\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n\n* Hardware Type: Unknown\n* Hours used: Unknown\n* Cloud Provider: Unknown\n* Compute Region: Unknown\n* Carbon Emitted: Unknown\n\n\nTechnical Specifications\n------------------------\n\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.\n\n\nModel Card Authors\n------------------\n\n\nThis model card was written by the Hugging Face team."
] | [
84,
84,
108,
417,
113,
292,
312,
138
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #onnx #safetensors #gpt2 #text-generation #en #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n#### Direct Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> The primary intended users of these models are AI researchers and practitioners.\n> \n> \n> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.\n> \n> \n>#### Downstream Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Here are some secondary use cases we believe are likely:\n> \n> \n> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)\n> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.\n> * Entertainment: Creation of games, chat bots, and amusing generations.\n> \n> \n>",
"passage: #### Misuse and Out-of-scope Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n> \n> \n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.\n> \n> \n> \n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nThe training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.\n\n\nTraining\n--------#### Training Data\n\n\nThe OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web\npages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from\nthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights\n40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText\nhere.#### Training Procedure\n\n\nThe model is pretrained on a very large corpus of English data in a self-supervised fashion. This\nmeans it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots\nof publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,\nit was trained to guess the next word in sentences.\n\n\nMore precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,\nshifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the\npredictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.\n\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks.\n\n\nThe texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a\nvocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.\n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated paper."
] | [
-0.020749324932694435,
0.07895207405090332,
-0.0024239816702902317,
0.09566338360309601,
0.06806598603725433,
0.0352255143225193,
0.10653266310691833,
0.0954359620809555,
0.05624864250421524,
0.022089259698987007,
0.07538936287164688,
0.03409411013126373,
0.07750845700502396,
0.06407083570957184,
-0.0022057753521949053,
-0.17351722717285156,
0.0320027619600296,
-0.05887347832322121,
0.05019551143050194,
0.10903702676296234,
0.11055026948451996,
0.001638319343328476,
0.05943614989519119,
0.034250713884830475,
-0.019775008782744408,
-0.11229836940765381,
-0.01206274889409542,
-0.03153719753026962,
0.1046774685382843,
0.10552828013896942,
0.036721691489219666,
-0.016494140028953552,
0.013694386929273605,
-0.18267099559307098,
0.03443242609500885,
0.05019944906234741,
-0.017516328021883965,
0.038278400897979736,
0.08231496065855026,
0.010250365361571312,
0.19640910625457764,
-0.006903257220983505,
0.019849272444844246,
0.09419460594654083,
-0.11761649698019028,
-0.143403559923172,
-0.10037142038345337,
-0.020052194595336914,
0.06926103681325912,
0.06640077382326126,
-0.06369463354349136,
0.13638894259929657,
-0.024055764079093933,
0.04351861774921417,
0.1017289012670517,
-0.1429433822631836,
-0.04097277298569679,
0.018560253083705902,
0.024802710860967636,
0.048912398517131805,
-0.06500274688005447,
0.04090443253517151,
0.026213383302092552,
0.03606456145644188,
0.028407908976078033,
-0.02285306341946125,
0.0955333411693573,
-0.05210978537797928,
-0.11210121214389801,
-0.061674728989601135,
0.1977159082889557,
0.010697642341256142,
-0.0791333019733429,
-0.21146073937416077,
-0.033053092658519745,
0.11991328001022339,
0.0109444260597229,
-0.02514341101050377,
-0.03326607495546341,
0.026994291692972183,
0.12180115282535553,
-0.11390233039855957,
-0.08452123403549194,
0.007894471287727356,
0.007172524929046631,
0.06542286276817322,
0.02652052789926529,
0.013938109390437603,
-0.037026576697826385,
0.0631546899676323,
-0.021704133599996567,
-0.0642424076795578,
-0.042840879410505295,
-0.13021260499954224,
-0.015514340251684189,
-0.007039126008749008,
-0.0386032797396183,
-0.03497341275215149,
0.0019918454345315695,
0.13111768662929535,
-0.019872412085533142,
0.02315247803926468,
-0.03703008219599724,
0.0378570556640625,
0.1320008784532547,
0.013526950031518936,
-0.06281176954507828,
0.005348574835807085,
0.08050531148910522,
0.0527072474360466,
0.049488745629787445,
-0.04498050734400749,
-0.04818534851074219,
-0.008643005974590778,
0.035188231617212296,
0.0686805471777916,
0.07616069912910461,
0.08060447126626968,
-0.05316337198019028,
-0.036126986145973206,
0.14807474613189697,
-0.06799012422561646,
-0.03101053461432457,
0.027425318956375122,
-0.02080736868083477,
-0.0032342858612537384,
0.030947208404541016,
0.012341462075710297,
-0.0541766956448555,
-0.03431655094027519,
-0.05505163222551346,
-0.023755885660648346,
-0.06675201654434204,
-0.07088892161846161,
0.051592543721199036,
0.015702515840530396,
-0.03212980180978775,
-0.10831984877586365,
-0.1282201111316681,
-0.06349789351224899,
0.05499635264277458,
-0.08003075420856476,
-0.04742356017231941,
-0.021573100239038467,
-0.07327643036842346,
0.004771281033754349,
0.02284787967801094,
-0.0014726989902555943,
-0.03786531835794449,
0.08182608336210251,
-0.0766826719045639,
0.032244645059108734,
-0.022429456934332848,
0.022454004734754562,
-0.10238553583621979,
0.021112585440278053,
-0.1392691284418106,
0.08910372108221054,
-0.016615260392427444,
-0.037725675851106644,
-0.05070927366614342,
-0.030816489830613136,
0.009403286501765251,
0.06175939738750458,
-0.04033053666353226,
0.1617506444454193,
-0.17794093489646912,
0.010267051868140697,
0.17193743586540222,
-0.12906590104103088,
-0.10118547081947327,
0.16247300803661346,
-0.0717749372124672,
0.11157737672328949,
0.08823185414075851,
0.08749660849571228,
0.009795361198484898,
-0.015367075800895691,
-0.00680040568113327,
-0.08210372924804688,
-0.041753534227609634,
0.17534932494163513,
0.06276669353246689,
-0.024388138204813004,
-0.01492611225694418,
-0.011688774451613426,
-0.03277602046728134,
0.024372268468141556,
0.01177806407213211,
-0.0598396435379982,
0.01381491869688034,
-0.023707648739218712,
0.08128765225410461,
0.025893697515130043,
-0.04758266732096672,
-0.039876505732536316,
-0.13979670405387878,
-0.13151699304580688,
0.05384485423564911,
-0.030341990292072296,
0.021507980301976204,
-0.10618172585964203,
0.0693499892950058,
0.05841802805662155,
0.06255731731653214,
-0.12768110632896423,
-0.037771180272102356,
0.00122053362429142,
-0.07923471927642822,
0.08672944456338882,
0.06806015968322754,
0.008677452802658081,
0.060490746051073074,
-0.03931843116879463,
0.026269540190696716,
-0.023469101637601852,
-0.008454524911940098,
-0.0504775308072567,
-0.15989404916763306,
0.02891724556684494,
-0.050233371555805206,
0.12642598152160645,
-0.17814603447914124,
0.028306759893894196,
0.036689162254333496,
0.0268219243735075,
-0.005907106213271618,
-0.04002813622355461,
0.04369806498289108,
-0.005880256649106741,
-0.04987560212612152,
-0.05705155432224274,
0.039047177881002426,
-0.04042857885360718,
-0.05350113660097122,
0.11195975542068481,
-0.22390052676200867,
-0.08595999330282211,
0.11275589466094971,
-0.06894949078559875,
-0.09063485264778137,
0.004811607301235199,
-0.009798916056752205,
0.01462033111602068,
-0.013625986874103546,
-0.04192294925451279,
0.14539451897144318,
0.001713210716843605,
0.05021211877465248,
-0.11403128504753113,
-0.06845346093177795,
0.01979828253388405,
-0.0688859075307846,
-0.03278249502182007,
0.04826657101511955,
0.027354110032320023,
-0.2612758278846741,
0.1056719571352005,
0.1216803789138794,
-0.0065315039828419685,
0.17552432417869568,
0.06189680099487305,
-0.05061652883887291,
-0.026953844353556633,
0.026185471564531326,
-0.01194320060312748,
0.11670870333909988,
-0.054548315703868866,
0.024894429370760918,
0.03589979559183121,
0.00945558212697506,
0.016594862565398216,
-0.09289275109767914,
-0.018759705126285553,
0.009171195328235626,
0.0015690233558416367,
-0.000030329450964927673,
0.017361801117658615,
-0.003796787466853857,
0.12788012623786926,
0.016522860154509544,
0.052298638969659805,
0.055163562297821045,
-0.04280969500541687,
-0.15059909224510193,
0.13240134716033936,
-0.08293236792087555,
-0.24419891834259033,
-0.05611475929617882,
0.037494249641895294,
-0.04834108054637909,
0.02821389213204384,
0.04074624180793762,
-0.09636121988296509,
-0.059634506702423096,
-0.12822279334068298,
0.041282813996076584,
-0.02907288819551468,
-0.08903762698173523,
-0.057109858840703964,
0.03581901639699936,
-0.008996352553367615,
-0.06712119281291962,
0.014882516115903854,
0.02831823192536831,
-0.11275357007980347,
0.06845977157354355,
0.00261688232421875,
0.07354557514190674,
0.09913443773984909,
0.02411937527358532,
-0.04086870327591896,
-0.041467178612947464,
0.19271039962768555,
-0.11510927975177765,
0.08666945993900299,
0.1139451116323471,
-0.10463772714138031,
0.05899275839328766,
0.12285436689853668,
0.01162661798298359,
-0.07710018754005432,
0.043432775884866714,
0.04282788932323456,
-0.0671013742685318,
-0.20164406299591064,
-0.0808190405368805,
-0.04633532091975212,
0.009126123040914536,
0.010844896547496319,
0.053018487989902496,
0.07590056955814362,
0.06539168953895569,
-0.12816616892814636,
0.005109748337417841,
0.11438752710819244,
0.0703795999288559,
0.12130435556173325,
-0.020884066820144653,
0.060301560908555984,
-0.03788883611559868,
0.0017457623034715652,
0.1196262389421463,
-0.024714045226573944,
0.21659380197525024,
-0.02715393528342247,
0.11574825644493103,
0.10317173600196838,
0.07556413114070892,
0.016740532591938972,
-0.01947096735239029,
0.002120488788932562,
0.041922688484191895,
-0.09211301803588867,
-0.050072431564331055,
-0.0688554048538208,
0.11482696235179901,
0.0016805604100227356,
-0.08353780955076218,
-0.010409807786345482,
-0.038295499980449677,
0.07905088365077972,
0.08564264327287674,
-0.0010080564534291625,
-0.08954664319753647,
-0.04179557040333748,
0.09504009038209915,
-0.04729069769382477,
-0.1027887612581253,
0.06324288994073868,
0.09426966309547424,
-0.15836837887763977,
0.055601559579372406,
-0.037410710006952286,
0.07248373329639435,
-0.12509264051914215,
-0.010291947983205318,
-0.02530205249786377,
-0.04120698198676109,
-0.015455015003681183,
0.099897101521492,
-0.23346269130706787,
0.14537332952022552,
0.020808205008506775,
0.04774948209524155,
-0.13677261769771576,
-0.007286664564162493,
0.06108684092760086,
-0.024747874587774277,
0.1295962780714035,
0.009954482316970825,
0.013459421694278717,
-0.0689229816198349,
-0.011789385229349136,
0.038652531802654266,
0.055595964193344116,
-0.02144947648048401,
0.07416299730539322,
-0.02754427120089531,
0.04815898835659027,
-0.0415644496679306,
0.047834381461143494,
-0.1163247674703598,
-0.18341973423957825,
0.04908396303653717,
-0.07323905825614929,
0.0009682532399892807,
-0.03994451090693474,
-0.03126579150557518,
-0.032121896743774414,
0.11455455422401428,
-0.11804677546024323,
-0.11321909725666046,
-0.08302457630634308,
-0.03285210579633713,
0.02472326159477234,
-0.029831917956471443,
0.01462986133992672,
-0.020341292023658752,
0.08084997534751892,
-0.08053379505872726,
-0.05059531331062317,
0.055795036256313324,
-0.07817774266004562,
-0.22115635871887207,
-0.04668883979320526,
0.08557182550430298,
0.12293434143066406,
0.06561699509620667,
0.0044927094131708145,
0.032372213900089264,
-0.0052696592174470425,
-0.1421978920698166,
0.05075643211603165,
0.12539145350456238,
0.041325803846120834,
-0.002223782241344452,
0.02133733034133911,
-0.07218116521835327,
-0.12237947434186935,
-0.07564547657966614,
0.059132181107997894,
0.27671676874160767,
-0.020625267177820206,
0.11722425371408463,
0.1593286693096161,
-0.0895272046327591,
-0.20433127880096436,
-0.055507417768239975,
-0.055309902876615524,
-0.037175845354795456,
0.1038714051246643,
-0.1867179274559021,
-0.04824160039424896,
0.006363227963447571,
-0.014398764818906784,
0.0643535703420639,
-0.16056042909622192,
-0.11278825998306274,
0.1162622943520546,
0.08288556337356567,
0.0528264157474041,
-0.13120117783546448,
-0.008599482476711273,
-0.01789233833551407,
-0.025721821933984756,
0.15642735362052917,
-0.058598875999450684,
0.04813997074961662,
0.008901220746338367,
0.04558274522423744,
0.027324095368385315,
-0.028053950518369675,
0.13082396984100342,
-0.08609729260206223,
0.06601101905107498,
-0.13339906930923462,
-0.011387588456273079,
0.010076036676764488,
-0.03610941767692566,
0.07321740686893463,
-0.0463239848613739,
0.003952158614993095,
-0.08304668962955475,
-0.04992657154798508,
-0.09476462006568909,
0.01890898123383522,
-0.058915264904499054,
-0.062250442802906036,
-0.09840653091669083,
0.08979755640029907,
0.04962002485990524,
0.008654581382870674,
-0.001965479925274849,
-0.05484411492943764,
0.023784860968589783,
0.07770724594593048,
0.2258600890636444,
0.055041227489709854,
-0.004254328086972237,
-0.019609786570072174,
-0.025157533586025238,
0.08089626580476761,
-0.1000557392835617,
0.0023179096169769764,
0.029863715171813965,
-0.022507332265377045,
0.13875919580459595,
0.013413596898317337,
-0.13482269644737244,
0.06317389011383057,
0.0198526568710804,
-0.13451266288757324,
-0.1792464405298233,
-0.019407572224736214,
0.07691439241170883,
-0.04929221048951149,
-0.10563653707504272,
0.11853355169296265,
-0.04099803417921066,
-0.027383670210838318,
0.007668841630220413,
0.09851697087287903,
0.0546698272228241,
-0.022221891209483147,
-0.009221849963068962,
0.02189083769917488,
-0.0626726821064949,
0.055085424333810806,
0.07315364480018616,
-0.09422193467617035,
0.11274512112140656,
0.08723121881484985,
-0.08468235284090042,
-0.06663542985916138,
-0.05996421352028847,
0.012011462822556496,
0.020488101989030838,
-0.05067979916930199,
0.05358404293656349,
-0.05095463991165161,
-0.008375094272196293,
0.05566676706075668,
0.017164034768939018,
0.04134596884250641,
-0.0022973017767071724,
0.015492459759116173,
-0.03409145399928093,
0.092246875166893,
-0.018461748957633972,
-0.04365988075733185,
-0.04082736745476723,
-0.03519424796104431,
0.053146254271268845,
-0.006879115477204323,
-0.040295686572790146,
-0.024905424565076828,
-0.07491004467010498,
-0.0017027826979756355,
-0.12453146278858185,
0.02816816419363022,
-0.11653675138950348,
0.009043200872838497,
-0.03185808286070824,
-0.024963747709989548,
-0.007518745958805084,
-0.013312527909874916,
-0.05118820071220398,
-0.01856405660510063,
-0.003670930862426758,
0.06407786905765533,
-0.1389206200838089,
-0.006149139255285263,
0.08763867616653442,
-0.06116113439202309,
0.10207638144493103,
-0.01890556327998638,
-0.06563179194927216,
0.01127977017313242,
-0.1350831538438797,
0.04534456878900528,
-0.03278012573719025,
0.009274423122406006,
-0.04341664910316467,
-0.16370722651481628,
-0.030273813754320145,
-0.0010323021560907364,
-0.0037523629143834114,
0.039561979472637177,
0.07780900597572327,
-0.06673330068588257,
0.06685787439346313,
0.07727202028036118,
-0.05561749264597893,
-0.05227486416697502,
0.016064412891864777,
0.0725899189710617,
-0.02995043620467186,
0.1251426786184311,
-0.036063771694898605,
0.06907612085342407,
-0.1487770974636078,
0.013878078199923038,
0.04682636260986328,
0.05524084344506264,
-0.027049239724874496,
-0.030477313324809074,
0.01963421329855919,
-0.02752617746591568,
0.195357546210289,
0.014473453164100647,
-0.07629241794347763,
0.06823056936264038,
0.05862627923488617,
-0.01389164850115776,
0.014584214426577091,
-0.011657255701720715,
-0.037977032363414764,
-0.03723158687353134,
-0.05456037074327469,
0.0006710430607199669,
-0.021012552082538605,
-0.1027008667588234,
0.15193675458431244,
0.05895204469561577,
0.11542198061943054,
0.013725942000746727,
-0.05062887445092201,
-0.07621195167303085,
-0.04951046034693718,
0.07011339068412781,
0.04614579677581787,
0.025434337556362152,
-0.0722646415233612,
0.09960249811410904,
0.1705588400363922,
-0.07142314314842224,
0.06388892233371735,
-0.06669042259454727,
-0.04951242730021477,
-0.09634320437908173,
-0.2114332616329193,
-0.03593912720680237,
-0.020873159170150757,
-0.0039077154360711575,
-0.08875080943107605,
0.06792787462472916,
0.08090732246637344,
0.015688009560108185,
-0.07799583673477173,
0.07787750661373138,
-0.0026642209850251675,
-0.09802263975143433,
0.03891406208276749,
0.002317748498171568,
0.02306637540459633,
0.005846837069839239,
0.017697202041745186,
0.023954130709171295,
0.015625055879354477,
0.06783223152160645,
0.11223932355642319,
-0.02009304240345955,
0.02271851897239685,
-0.08040262758731842,
-0.08382731676101685,
-0.007498785387724638,
0.038224998861551285,
0.05443599447607994,
0.23110875487327576,
0.03466453403234482,
-0.01796092838048935,
0.02532273530960083,
0.12438390403985977,
0.014011958613991737,
-0.01016570720821619,
-0.1108805388212204,
0.12200120091438293,
-0.08948524296283722,
-0.042674459517002106,
0.012131229043006897,
-0.08653496950864792,
0.07570993900299072,
0.1510888934135437,
0.1754862666130066,
-0.08834169059991837,
-0.021829213947057724,
-0.054578009992837906,
0.02076481468975544,
0.015040778554975986,
0.08509917557239532,
0.014089377596974373,
0.2548421025276184,
-0.09705909341573715,
0.0635753646492958,
-0.028298279270529747,
-0.0021736416965723038,
0.013765388168394566,
0.13197244703769684,
0.031112130731344223,
0.0223593320697546,
-0.08296369016170502,
0.10048690438270569,
-0.08433730900287628,
-0.15392495691776276,
-0.05205213651061058,
-0.030272576957941055,
-0.06611861288547516,
0.043999724090099335,
0.016357293352484703,
-0.029590751975774765,
0.068971648812294,
0.018314488232135773,
-0.0006961964536458254,
0.10978680104017258,
-0.013571587391197681,
-0.07175913453102112,
0.029521947726607323,
0.08894678950309753,
-0.05657521262764931,
0.22360220551490784,
0.022955238819122314,
0.11321548372507095,
0.09511617571115494,
-0.03855856508016586,
-0.10095164179801941,
0.03633913770318031,
0.03643419221043587,
0.03508131951093674,
0.008204402402043343,
0.19588276743888855,
0.03391633927822113,
0.062034618109464645,
0.15348586440086365,
0.002935632597655058,
0.07881176471710205,
-0.0318761020898819,
-0.07537233829498291,
-0.06354399770498276,
0.12290364503860474,
-0.12548433244228363,
0.12618719041347504,
0.10967427492141724,
-0.04449979215860367,
-0.0016376003623008728,
-0.04109920188784599,
-0.010976390913128853,
-0.03996655344963074,
0.06849147379398346,
0.000596118625253439,
-0.14556899666786194,
0.0074522364884614944,
0.025491338223218918,
0.055140458047389984,
-0.2264016568660736,
-0.01221685204654932,
-0.020703338086605072,
-0.010526100173592567,
-0.042081914842128754,
0.05593620240688324,
0.011379126459360123,
-0.008822325617074966,
-0.03307093307375908,
-0.009030169807374477,
-0.023770511150360107,
0.06361617892980576,
-0.044333867728710175,
-0.03207225352525711
] |
null | null | transformers |
# GPT-2 Medium
## Model Details
**Model Description:** GPT-2 Medium is the **355M parameter** version of GPT-2, a transformer-based language model created and released by OpenAI. The model is a pretrained model on English language using a causal language modeling (CLM) objective.
- **Developed by:** OpenAI, see [associated research paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) and [GitHub repo](https://github.com/openai/gpt-2) for model developers.
- **Model Type:** Transformer-based language model
- **Language(s):** English
- **License:** [Modified MIT License](https://github.com/openai/gpt-2/blob/master/LICENSE)
- **Related Models:** [GPT2](https://huggingface.co/gpt2), [GPT2-Large](https://huggingface.co/gpt2-large) and [GPT2-XL](https://huggingface.co/gpt2-xl)
- **Resources for more information:**
- [Research Paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)
- [OpenAI Blog Post](https://openai.com/blog/better-language-models/)
- [GitHub Repo](https://github.com/openai/gpt-2)
- [OpenAI Model Card for GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md)
- Test the full generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large
## How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
set a seed for reproducibility:
```python
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='gpt2-medium')
>>> set_seed(42)
>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
[{'generated_text': "Hello, I'm a language model, I'm a language. I'm a compiler, I'm a parser, I'm a server process. I"},
{'generated_text': "Hello, I'm a language model, and I'd like to join an existing team. What can I do to get started?\n\nI'd"},
{'generated_text': "Hello, I'm a language model, why does my code get created? Can't I just copy it? But why did my code get created when"},
{'generated_text': "Hello, I'm a language model, a functional language...\n\nI'm a functional language. Is it hard? A little, yes. But"},
{'generated_text': "Hello, I'm a language model, not an object model.\n\nIn a nutshell, I need to give me objects from which I can get"}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import GPT2Tokenizer, GPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2-medium')
model = GPT2Model.from_pretrained('gpt2-medium')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import GPT2Tokenizer, TFGPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2-medium')
model = TFGPT2Model.from_pretrained('gpt2-medium')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Uses
#### Direct Use
In their [model card about GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md), OpenAI wrote:
> The primary intended users of these models are AI researchers and practitioners.
>
> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.
#### Downstream Use
In their [model card about GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md), OpenAI wrote:
> Here are some secondary use cases we believe are likely:
>
> - Writing assistance: Grammar assistance, autocompletion (for normal prose or code)
> - Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.
> - Entertainment: Creation of games, chat bots, and amusing generations.
#### Misuse and Out-of-scope Use
In their [model card about GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md), OpenAI wrote:
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.
>
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
```python
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='gpt2-medium')
>>> set_seed(42)
>>> generator("The man worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The man worked as a security guard in a military'},
{'generated_text': 'The man worked as a salesman in Mexico and eventually'},
{'generated_text': 'The man worked as a supervisor at the department for'},
{'generated_text': 'The man worked as a cleaner for the same corporation'},
{'generated_text': 'The man worked as a barman and was involved'}]
>>> set_seed(42)
>>> generator("The woman worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The woman worked as a social worker in a children'},
{'generated_text': 'The woman worked as a marketing manager, and her'},
{'generated_text': 'The woman worked as a customer service agent in a'},
{'generated_text': 'The woman worked as a cleaner for the same corporation'},
{'generated_text': 'The woman worked as a barista and was involved'}]
```
This bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
## Training
#### Training Data
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web
pages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from
this dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights
40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText
[here](https://github.com/openai/gpt-2/blob/master/domains.txt).
#### Training Procedure
The model is pretrained on a very large corpus of English data in a self-supervised fashion. This
means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots
of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,
it was trained to guess the next word in sentences.
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,
shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the
predictions for the token `i` only uses the inputs from `1` to `i` but not the future tokens.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks.
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a
vocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
## Evaluation
The following evaluation information is extracted from the [associated paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf).
#### Testing Data, Factors and Metrics
The model authors write in the [associated paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) that:
> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string <UNK> which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.
#### Results
The model achieves the following results without any fine-tuning (zero-shot):
| Dataset | LAMBADA | LAMBADA | CBT-CN | CBT-NE | WikiText2 | PTB | enwiki8 | text8 | WikiText103 | 1BW |
|:--------:|:-------:|:-------:|:------:|:------:|:---------:|:------:|:-------:|:------:|:-----------:|:-----:|
| (metric) | (PPL) | (ACC) | (ACC) | (ACC) | (PPL) | (PPL) | (BPB) | (BPC) | (PPL) | (PPL) |
| | 15.60 | 55.48 | 92.35 | 87.1 | 22.76 | 47.33 | 1.01 | 1.06 | 26.37 | 55.72 |
## Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** Unknown
- **Hours used:** Unknown
- **Cloud Provider:** Unknown
- **Compute Region:** Unknown
- **Carbon Emitted:** Unknown
## Technical Specifications
See the [associated paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) for details on the modeling architecture, objective, compute infrastructure, and training details.
## Citation Information
```bibtex
@article{radford2019language,
title={Language models are unsupervised multitask learners},
author={Radford, Alec and Wu, Jeffrey and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya and others},
journal={OpenAI blog},
volume={1},
number={8},
pages={9},
year={2019}
}
```
## Model Card Authors
This model card was written by the Hugging Face team. | {"language": "en", "license": "mit"} | text-generation | openai-community/gpt2-medium | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"onnx",
"safetensors",
"gpt2",
"text-generation",
"en",
"arxiv:1910.09700",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1910.09700"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #rust #onnx #safetensors #gpt2 #text-generation #en #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us
| GPT-2 Medium
============
Model Details
-------------
Model Description: GPT-2 Medium is the 355M parameter version of GPT-2, a transformer-based language model created and released by OpenAI. The model is a pretrained model on English language using a causal language modeling (CLM) objective.
* Developed by: OpenAI, see associated research paper and GitHub repo for model developers.
* Model Type: Transformer-based language model
* Language(s): English
* License: Modified MIT License
* Related Models: GPT2, GPT2-Large and GPT2-XL
* Resources for more information:
+ Research Paper
+ OpenAI Blog Post
+ GitHub Repo
+ OpenAI Model Card for GPT-2
+ Test the full generation capabilities here: URL
How to Get Started with the Model
---------------------------------
Use the code below to get started with the model. You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
set a seed for reproducibility:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
Uses
----
#### Direct Use
In their model card about GPT-2, OpenAI wrote:
>
> The primary intended users of these models are AI researchers and practitioners.
>
>
> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.
>
>
>
#### Downstream Use
In their model card about GPT-2, OpenAI wrote:
>
> Here are some secondary use cases we believe are likely:
>
>
> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)
> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.
> * Entertainment: Creation of games, chat bots, and amusing generations.
>
>
>
#### Misuse and Out-of-scope Use
In their model card about GPT-2, OpenAI wrote:
>
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.
>
>
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.
>
>
>
Risks, Limitations and Biases
-----------------------------
CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
This bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Training
--------
#### Training Data
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web
pages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from
this dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights
40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText
here.
#### Training Procedure
The model is pretrained on a very large corpus of English data in a self-supervised fashion. This
means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots
of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,
it was trained to guess the next word in sentences.
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,
shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the
predictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks.
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a
vocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
Evaluation
----------
The following evaluation information is extracted from the associated paper.
#### Testing Data, Factors and Metrics
The model authors write in the associated paper that:
>
> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.
>
>
>
#### Results
The model achieves the following results without any fine-tuning (zero-shot):
Environmental Impact
--------------------
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
* Hardware Type: Unknown
* Hours used: Unknown
* Cloud Provider: Unknown
* Compute Region: Unknown
* Carbon Emitted: Unknown
Technical Specifications
------------------------
See the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.
Model Card Authors
------------------
This model card was written by the Hugging Face team.
| [
"#### Direct Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> The primary intended users of these models are AI researchers and practitioners.\n> \n> \n> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.\n> \n> \n>",
"#### Downstream Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Here are some secondary use cases we believe are likely:\n> \n> \n> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)\n> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.\n> * Entertainment: Creation of games, chat bots, and amusing generations.\n> \n> \n>",
"#### Misuse and Out-of-scope Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n> \n> \n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.\n> \n> \n> \n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nThe training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.\n\n\nTraining\n--------",
"#### Training Data\n\n\nThe OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web\npages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from\nthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights\n40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText\nhere.",
"#### Training Procedure\n\n\nThe model is pretrained on a very large corpus of English data in a self-supervised fashion. This\nmeans it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots\nof publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,\nit was trained to guess the next word in sentences.\n\n\nMore precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,\nshifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the\npredictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.\n\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks.\n\n\nThe texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a\nvocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.\n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated paper.",
"#### Testing Data, Factors and Metrics\n\n\nThe model authors write in the associated paper that:\n\n\n\n> \n> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.\n> \n> \n>",
"#### Results\n\n\nThe model achieves the following results without any fine-tuning (zero-shot):\n\n\n\nEnvironmental Impact\n--------------------\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n\n* Hardware Type: Unknown\n* Hours used: Unknown\n* Cloud Provider: Unknown\n* Compute Region: Unknown\n* Carbon Emitted: Unknown\n\n\nTechnical Specifications\n------------------------\n\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.\n\n\nModel Card Authors\n------------------\n\n\nThis model card was written by the Hugging Face team."
] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #onnx #safetensors #gpt2 #text-generation #en #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n",
"#### Direct Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> The primary intended users of these models are AI researchers and practitioners.\n> \n> \n> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.\n> \n> \n>",
"#### Downstream Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Here are some secondary use cases we believe are likely:\n> \n> \n> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)\n> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.\n> * Entertainment: Creation of games, chat bots, and amusing generations.\n> \n> \n>",
"#### Misuse and Out-of-scope Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n> \n> \n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.\n> \n> \n> \n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nThe training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.\n\n\nTraining\n--------",
"#### Training Data\n\n\nThe OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web\npages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from\nthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights\n40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText\nhere.",
"#### Training Procedure\n\n\nThe model is pretrained on a very large corpus of English data in a self-supervised fashion. This\nmeans it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots\nof publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,\nit was trained to guess the next word in sentences.\n\n\nMore precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,\nshifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the\npredictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.\n\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks.\n\n\nThe texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a\nvocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.\n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated paper.",
"#### Testing Data, Factors and Metrics\n\n\nThe model authors write in the associated paper that:\n\n\n\n> \n> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.\n> \n> \n>",
"#### Results\n\n\nThe model achieves the following results without any fine-tuning (zero-shot):\n\n\n\nEnvironmental Impact\n--------------------\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n\n* Hardware Type: Unknown\n* Hours used: Unknown\n* Cloud Provider: Unknown\n* Compute Region: Unknown\n* Carbon Emitted: Unknown\n\n\nTechnical Specifications\n------------------------\n\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.\n\n\nModel Card Authors\n------------------\n\n\nThis model card was written by the Hugging Face team."
] | [
84,
84,
108,
417,
113,
292,
312,
138
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #onnx #safetensors #gpt2 #text-generation #en #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n#### Direct Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> The primary intended users of these models are AI researchers and practitioners.\n> \n> \n> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.\n> \n> \n>#### Downstream Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Here are some secondary use cases we believe are likely:\n> \n> \n> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)\n> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.\n> * Entertainment: Creation of games, chat bots, and amusing generations.\n> \n> \n>",
"passage: #### Misuse and Out-of-scope Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n> \n> \n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.\n> \n> \n> \n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nThe training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.\n\n\nTraining\n--------#### Training Data\n\n\nThe OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web\npages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from\nthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights\n40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText\nhere.#### Training Procedure\n\n\nThe model is pretrained on a very large corpus of English data in a self-supervised fashion. This\nmeans it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots\nof publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,\nit was trained to guess the next word in sentences.\n\n\nMore precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,\nshifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the\npredictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.\n\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks.\n\n\nThe texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a\nvocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.\n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated paper."
] | [
-0.020749324932694435,
0.07895207405090332,
-0.0024239816702902317,
0.09566338360309601,
0.06806598603725433,
0.0352255143225193,
0.10653266310691833,
0.0954359620809555,
0.05624864250421524,
0.022089259698987007,
0.07538936287164688,
0.03409411013126373,
0.07750845700502396,
0.06407083570957184,
-0.0022057753521949053,
-0.17351722717285156,
0.0320027619600296,
-0.05887347832322121,
0.05019551143050194,
0.10903702676296234,
0.11055026948451996,
0.001638319343328476,
0.05943614989519119,
0.034250713884830475,
-0.019775008782744408,
-0.11229836940765381,
-0.01206274889409542,
-0.03153719753026962,
0.1046774685382843,
0.10552828013896942,
0.036721691489219666,
-0.016494140028953552,
0.013694386929273605,
-0.18267099559307098,
0.03443242609500885,
0.05019944906234741,
-0.017516328021883965,
0.038278400897979736,
0.08231496065855026,
0.010250365361571312,
0.19640910625457764,
-0.006903257220983505,
0.019849272444844246,
0.09419460594654083,
-0.11761649698019028,
-0.143403559923172,
-0.10037142038345337,
-0.020052194595336914,
0.06926103681325912,
0.06640077382326126,
-0.06369463354349136,
0.13638894259929657,
-0.024055764079093933,
0.04351861774921417,
0.1017289012670517,
-0.1429433822631836,
-0.04097277298569679,
0.018560253083705902,
0.024802710860967636,
0.048912398517131805,
-0.06500274688005447,
0.04090443253517151,
0.026213383302092552,
0.03606456145644188,
0.028407908976078033,
-0.02285306341946125,
0.0955333411693573,
-0.05210978537797928,
-0.11210121214389801,
-0.061674728989601135,
0.1977159082889557,
0.010697642341256142,
-0.0791333019733429,
-0.21146073937416077,
-0.033053092658519745,
0.11991328001022339,
0.0109444260597229,
-0.02514341101050377,
-0.03326607495546341,
0.026994291692972183,
0.12180115282535553,
-0.11390233039855957,
-0.08452123403549194,
0.007894471287727356,
0.007172524929046631,
0.06542286276817322,
0.02652052789926529,
0.013938109390437603,
-0.037026576697826385,
0.0631546899676323,
-0.021704133599996567,
-0.0642424076795578,
-0.042840879410505295,
-0.13021260499954224,
-0.015514340251684189,
-0.007039126008749008,
-0.0386032797396183,
-0.03497341275215149,
0.0019918454345315695,
0.13111768662929535,
-0.019872412085533142,
0.02315247803926468,
-0.03703008219599724,
0.0378570556640625,
0.1320008784532547,
0.013526950031518936,
-0.06281176954507828,
0.005348574835807085,
0.08050531148910522,
0.0527072474360466,
0.049488745629787445,
-0.04498050734400749,
-0.04818534851074219,
-0.008643005974590778,
0.035188231617212296,
0.0686805471777916,
0.07616069912910461,
0.08060447126626968,
-0.05316337198019028,
-0.036126986145973206,
0.14807474613189697,
-0.06799012422561646,
-0.03101053461432457,
0.027425318956375122,
-0.02080736868083477,
-0.0032342858612537384,
0.030947208404541016,
0.012341462075710297,
-0.0541766956448555,
-0.03431655094027519,
-0.05505163222551346,
-0.023755885660648346,
-0.06675201654434204,
-0.07088892161846161,
0.051592543721199036,
0.015702515840530396,
-0.03212980180978775,
-0.10831984877586365,
-0.1282201111316681,
-0.06349789351224899,
0.05499635264277458,
-0.08003075420856476,
-0.04742356017231941,
-0.021573100239038467,
-0.07327643036842346,
0.004771281033754349,
0.02284787967801094,
-0.0014726989902555943,
-0.03786531835794449,
0.08182608336210251,
-0.0766826719045639,
0.032244645059108734,
-0.022429456934332848,
0.022454004734754562,
-0.10238553583621979,
0.021112585440278053,
-0.1392691284418106,
0.08910372108221054,
-0.016615260392427444,
-0.037725675851106644,
-0.05070927366614342,
-0.030816489830613136,
0.009403286501765251,
0.06175939738750458,
-0.04033053666353226,
0.1617506444454193,
-0.17794093489646912,
0.010267051868140697,
0.17193743586540222,
-0.12906590104103088,
-0.10118547081947327,
0.16247300803661346,
-0.0717749372124672,
0.11157737672328949,
0.08823185414075851,
0.08749660849571228,
0.009795361198484898,
-0.015367075800895691,
-0.00680040568113327,
-0.08210372924804688,
-0.041753534227609634,
0.17534932494163513,
0.06276669353246689,
-0.024388138204813004,
-0.01492611225694418,
-0.011688774451613426,
-0.03277602046728134,
0.024372268468141556,
0.01177806407213211,
-0.0598396435379982,
0.01381491869688034,
-0.023707648739218712,
0.08128765225410461,
0.025893697515130043,
-0.04758266732096672,
-0.039876505732536316,
-0.13979670405387878,
-0.13151699304580688,
0.05384485423564911,
-0.030341990292072296,
0.021507980301976204,
-0.10618172585964203,
0.0693499892950058,
0.05841802805662155,
0.06255731731653214,
-0.12768110632896423,
-0.037771180272102356,
0.00122053362429142,
-0.07923471927642822,
0.08672944456338882,
0.06806015968322754,
0.008677452802658081,
0.060490746051073074,
-0.03931843116879463,
0.026269540190696716,
-0.023469101637601852,
-0.008454524911940098,
-0.0504775308072567,
-0.15989404916763306,
0.02891724556684494,
-0.050233371555805206,
0.12642598152160645,
-0.17814603447914124,
0.028306759893894196,
0.036689162254333496,
0.0268219243735075,
-0.005907106213271618,
-0.04002813622355461,
0.04369806498289108,
-0.005880256649106741,
-0.04987560212612152,
-0.05705155432224274,
0.039047177881002426,
-0.04042857885360718,
-0.05350113660097122,
0.11195975542068481,
-0.22390052676200867,
-0.08595999330282211,
0.11275589466094971,
-0.06894949078559875,
-0.09063485264778137,
0.004811607301235199,
-0.009798916056752205,
0.01462033111602068,
-0.013625986874103546,
-0.04192294925451279,
0.14539451897144318,
0.001713210716843605,
0.05021211877465248,
-0.11403128504753113,
-0.06845346093177795,
0.01979828253388405,
-0.0688859075307846,
-0.03278249502182007,
0.04826657101511955,
0.027354110032320023,
-0.2612758278846741,
0.1056719571352005,
0.1216803789138794,
-0.0065315039828419685,
0.17552432417869568,
0.06189680099487305,
-0.05061652883887291,
-0.026953844353556633,
0.026185471564531326,
-0.01194320060312748,
0.11670870333909988,
-0.054548315703868866,
0.024894429370760918,
0.03589979559183121,
0.00945558212697506,
0.016594862565398216,
-0.09289275109767914,
-0.018759705126285553,
0.009171195328235626,
0.0015690233558416367,
-0.000030329450964927673,
0.017361801117658615,
-0.003796787466853857,
0.12788012623786926,
0.016522860154509544,
0.052298638969659805,
0.055163562297821045,
-0.04280969500541687,
-0.15059909224510193,
0.13240134716033936,
-0.08293236792087555,
-0.24419891834259033,
-0.05611475929617882,
0.037494249641895294,
-0.04834108054637909,
0.02821389213204384,
0.04074624180793762,
-0.09636121988296509,
-0.059634506702423096,
-0.12822279334068298,
0.041282813996076584,
-0.02907288819551468,
-0.08903762698173523,
-0.057109858840703964,
0.03581901639699936,
-0.008996352553367615,
-0.06712119281291962,
0.014882516115903854,
0.02831823192536831,
-0.11275357007980347,
0.06845977157354355,
0.00261688232421875,
0.07354557514190674,
0.09913443773984909,
0.02411937527358532,
-0.04086870327591896,
-0.041467178612947464,
0.19271039962768555,
-0.11510927975177765,
0.08666945993900299,
0.1139451116323471,
-0.10463772714138031,
0.05899275839328766,
0.12285436689853668,
0.01162661798298359,
-0.07710018754005432,
0.043432775884866714,
0.04282788932323456,
-0.0671013742685318,
-0.20164406299591064,
-0.0808190405368805,
-0.04633532091975212,
0.009126123040914536,
0.010844896547496319,
0.053018487989902496,
0.07590056955814362,
0.06539168953895569,
-0.12816616892814636,
0.005109748337417841,
0.11438752710819244,
0.0703795999288559,
0.12130435556173325,
-0.020884066820144653,
0.060301560908555984,
-0.03788883611559868,
0.0017457623034715652,
0.1196262389421463,
-0.024714045226573944,
0.21659380197525024,
-0.02715393528342247,
0.11574825644493103,
0.10317173600196838,
0.07556413114070892,
0.016740532591938972,
-0.01947096735239029,
0.002120488788932562,
0.041922688484191895,
-0.09211301803588867,
-0.050072431564331055,
-0.0688554048538208,
0.11482696235179901,
0.0016805604100227356,
-0.08353780955076218,
-0.010409807786345482,
-0.038295499980449677,
0.07905088365077972,
0.08564264327287674,
-0.0010080564534291625,
-0.08954664319753647,
-0.04179557040333748,
0.09504009038209915,
-0.04729069769382477,
-0.1027887612581253,
0.06324288994073868,
0.09426966309547424,
-0.15836837887763977,
0.055601559579372406,
-0.037410710006952286,
0.07248373329639435,
-0.12509264051914215,
-0.010291947983205318,
-0.02530205249786377,
-0.04120698198676109,
-0.015455015003681183,
0.099897101521492,
-0.23346269130706787,
0.14537332952022552,
0.020808205008506775,
0.04774948209524155,
-0.13677261769771576,
-0.007286664564162493,
0.06108684092760086,
-0.024747874587774277,
0.1295962780714035,
0.009954482316970825,
0.013459421694278717,
-0.0689229816198349,
-0.011789385229349136,
0.038652531802654266,
0.055595964193344116,
-0.02144947648048401,
0.07416299730539322,
-0.02754427120089531,
0.04815898835659027,
-0.0415644496679306,
0.047834381461143494,
-0.1163247674703598,
-0.18341973423957825,
0.04908396303653717,
-0.07323905825614929,
0.0009682532399892807,
-0.03994451090693474,
-0.03126579150557518,
-0.032121896743774414,
0.11455455422401428,
-0.11804677546024323,
-0.11321909725666046,
-0.08302457630634308,
-0.03285210579633713,
0.02472326159477234,
-0.029831917956471443,
0.01462986133992672,
-0.020341292023658752,
0.08084997534751892,
-0.08053379505872726,
-0.05059531331062317,
0.055795036256313324,
-0.07817774266004562,
-0.22115635871887207,
-0.04668883979320526,
0.08557182550430298,
0.12293434143066406,
0.06561699509620667,
0.0044927094131708145,
0.032372213900089264,
-0.0052696592174470425,
-0.1421978920698166,
0.05075643211603165,
0.12539145350456238,
0.041325803846120834,
-0.002223782241344452,
0.02133733034133911,
-0.07218116521835327,
-0.12237947434186935,
-0.07564547657966614,
0.059132181107997894,
0.27671676874160767,
-0.020625267177820206,
0.11722425371408463,
0.1593286693096161,
-0.0895272046327591,
-0.20433127880096436,
-0.055507417768239975,
-0.055309902876615524,
-0.037175845354795456,
0.1038714051246643,
-0.1867179274559021,
-0.04824160039424896,
0.006363227963447571,
-0.014398764818906784,
0.0643535703420639,
-0.16056042909622192,
-0.11278825998306274,
0.1162622943520546,
0.08288556337356567,
0.0528264157474041,
-0.13120117783546448,
-0.008599482476711273,
-0.01789233833551407,
-0.025721821933984756,
0.15642735362052917,
-0.058598875999450684,
0.04813997074961662,
0.008901220746338367,
0.04558274522423744,
0.027324095368385315,
-0.028053950518369675,
0.13082396984100342,
-0.08609729260206223,
0.06601101905107498,
-0.13339906930923462,
-0.011387588456273079,
0.010076036676764488,
-0.03610941767692566,
0.07321740686893463,
-0.0463239848613739,
0.003952158614993095,
-0.08304668962955475,
-0.04992657154798508,
-0.09476462006568909,
0.01890898123383522,
-0.058915264904499054,
-0.062250442802906036,
-0.09840653091669083,
0.08979755640029907,
0.04962002485990524,
0.008654581382870674,
-0.001965479925274849,
-0.05484411492943764,
0.023784860968589783,
0.07770724594593048,
0.2258600890636444,
0.055041227489709854,
-0.004254328086972237,
-0.019609786570072174,
-0.025157533586025238,
0.08089626580476761,
-0.1000557392835617,
0.0023179096169769764,
0.029863715171813965,
-0.022507332265377045,
0.13875919580459595,
0.013413596898317337,
-0.13482269644737244,
0.06317389011383057,
0.0198526568710804,
-0.13451266288757324,
-0.1792464405298233,
-0.019407572224736214,
0.07691439241170883,
-0.04929221048951149,
-0.10563653707504272,
0.11853355169296265,
-0.04099803417921066,
-0.027383670210838318,
0.007668841630220413,
0.09851697087287903,
0.0546698272228241,
-0.022221891209483147,
-0.009221849963068962,
0.02189083769917488,
-0.0626726821064949,
0.055085424333810806,
0.07315364480018616,
-0.09422193467617035,
0.11274512112140656,
0.08723121881484985,
-0.08468235284090042,
-0.06663542985916138,
-0.05996421352028847,
0.012011462822556496,
0.020488101989030838,
-0.05067979916930199,
0.05358404293656349,
-0.05095463991165161,
-0.008375094272196293,
0.05566676706075668,
0.017164034768939018,
0.04134596884250641,
-0.0022973017767071724,
0.015492459759116173,
-0.03409145399928093,
0.092246875166893,
-0.018461748957633972,
-0.04365988075733185,
-0.04082736745476723,
-0.03519424796104431,
0.053146254271268845,
-0.006879115477204323,
-0.040295686572790146,
-0.024905424565076828,
-0.07491004467010498,
-0.0017027826979756355,
-0.12453146278858185,
0.02816816419363022,
-0.11653675138950348,
0.009043200872838497,
-0.03185808286070824,
-0.024963747709989548,
-0.007518745958805084,
-0.013312527909874916,
-0.05118820071220398,
-0.01856405660510063,
-0.003670930862426758,
0.06407786905765533,
-0.1389206200838089,
-0.006149139255285263,
0.08763867616653442,
-0.06116113439202309,
0.10207638144493103,
-0.01890556327998638,
-0.06563179194927216,
0.01127977017313242,
-0.1350831538438797,
0.04534456878900528,
-0.03278012573719025,
0.009274423122406006,
-0.04341664910316467,
-0.16370722651481628,
-0.030273813754320145,
-0.0010323021560907364,
-0.0037523629143834114,
0.039561979472637177,
0.07780900597572327,
-0.06673330068588257,
0.06685787439346313,
0.07727202028036118,
-0.05561749264597893,
-0.05227486416697502,
0.016064412891864777,
0.0725899189710617,
-0.02995043620467186,
0.1251426786184311,
-0.036063771694898605,
0.06907612085342407,
-0.1487770974636078,
0.013878078199923038,
0.04682636260986328,
0.05524084344506264,
-0.027049239724874496,
-0.030477313324809074,
0.01963421329855919,
-0.02752617746591568,
0.195357546210289,
0.014473453164100647,
-0.07629241794347763,
0.06823056936264038,
0.05862627923488617,
-0.01389164850115776,
0.014584214426577091,
-0.011657255701720715,
-0.037977032363414764,
-0.03723158687353134,
-0.05456037074327469,
0.0006710430607199669,
-0.021012552082538605,
-0.1027008667588234,
0.15193675458431244,
0.05895204469561577,
0.11542198061943054,
0.013725942000746727,
-0.05062887445092201,
-0.07621195167303085,
-0.04951046034693718,
0.07011339068412781,
0.04614579677581787,
0.025434337556362152,
-0.0722646415233612,
0.09960249811410904,
0.1705588400363922,
-0.07142314314842224,
0.06388892233371735,
-0.06669042259454727,
-0.04951242730021477,
-0.09634320437908173,
-0.2114332616329193,
-0.03593912720680237,
-0.020873159170150757,
-0.0039077154360711575,
-0.08875080943107605,
0.06792787462472916,
0.08090732246637344,
0.015688009560108185,
-0.07799583673477173,
0.07787750661373138,
-0.0026642209850251675,
-0.09802263975143433,
0.03891406208276749,
0.002317748498171568,
0.02306637540459633,
0.005846837069839239,
0.017697202041745186,
0.023954130709171295,
0.015625055879354477,
0.06783223152160645,
0.11223932355642319,
-0.02009304240345955,
0.02271851897239685,
-0.08040262758731842,
-0.08382731676101685,
-0.007498785387724638,
0.038224998861551285,
0.05443599447607994,
0.23110875487327576,
0.03466453403234482,
-0.01796092838048935,
0.02532273530960083,
0.12438390403985977,
0.014011958613991737,
-0.01016570720821619,
-0.1108805388212204,
0.12200120091438293,
-0.08948524296283722,
-0.042674459517002106,
0.012131229043006897,
-0.08653496950864792,
0.07570993900299072,
0.1510888934135437,
0.1754862666130066,
-0.08834169059991837,
-0.021829213947057724,
-0.054578009992837906,
0.02076481468975544,
0.015040778554975986,
0.08509917557239532,
0.014089377596974373,
0.2548421025276184,
-0.09705909341573715,
0.0635753646492958,
-0.028298279270529747,
-0.0021736416965723038,
0.013765388168394566,
0.13197244703769684,
0.031112130731344223,
0.0223593320697546,
-0.08296369016170502,
0.10048690438270569,
-0.08433730900287628,
-0.15392495691776276,
-0.05205213651061058,
-0.030272576957941055,
-0.06611861288547516,
0.043999724090099335,
0.016357293352484703,
-0.029590751975774765,
0.068971648812294,
0.018314488232135773,
-0.0006961964536458254,
0.10978680104017258,
-0.013571587391197681,
-0.07175913453102112,
0.029521947726607323,
0.08894678950309753,
-0.05657521262764931,
0.22360220551490784,
0.022955238819122314,
0.11321548372507095,
0.09511617571115494,
-0.03855856508016586,
-0.10095164179801941,
0.03633913770318031,
0.03643419221043587,
0.03508131951093674,
0.008204402402043343,
0.19588276743888855,
0.03391633927822113,
0.062034618109464645,
0.15348586440086365,
0.002935632597655058,
0.07881176471710205,
-0.0318761020898819,
-0.07537233829498291,
-0.06354399770498276,
0.12290364503860474,
-0.12548433244228363,
0.12618719041347504,
0.10967427492141724,
-0.04449979215860367,
-0.0016376003623008728,
-0.04109920188784599,
-0.010976390913128853,
-0.03996655344963074,
0.06849147379398346,
0.000596118625253439,
-0.14556899666786194,
0.0074522364884614944,
0.025491338223218918,
0.055140458047389984,
-0.2264016568660736,
-0.01221685204654932,
-0.020703338086605072,
-0.010526100173592567,
-0.042081914842128754,
0.05593620240688324,
0.011379126459360123,
-0.008822325617074966,
-0.03307093307375908,
-0.009030169807374477,
-0.023770511150360107,
0.06361617892980576,
-0.044333867728710175,
-0.03207225352525711
] |
null | null | transformers |
# GPT-2 XL
## Table of Contents
- [Model Details](#model-details)
- [How To Get Started With the Model](#how-to-get-started-with-the-model)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation)
- [Environmental Impact](#environmental-impact)
- [Technical Specifications](#technical-specifications)
- [Citation Information](#citation-information)
- [Model Card Authors](#model-card-authors)
## Model Details
**Model Description:** GPT-2 XL is the **1.5B parameter** version of GPT-2, a transformer-based language model created and released by OpenAI. The model is a pretrained model on English language using a causal language modeling (CLM) objective.
- **Developed by:** OpenAI, see [associated research paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) and [GitHub repo](https://github.com/openai/gpt-2) for model developers.
- **Model Type:** Transformer-based language model
- **Language(s):** English
- **License:** [Modified MIT License](https://github.com/openai/gpt-2/blob/master/LICENSE)
- **Related Models:** [GPT-2](https://huggingface.co/gpt2), [GPT-Medium](https://huggingface.co/gpt2-medium) and [GPT-Large](https://huggingface.co/gpt2-large)
- **Resources for more information:**
- [Research Paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)
- [OpenAI Blog Post](https://openai.com/blog/better-language-models/)
- [GitHub Repo](https://github.com/openai/gpt-2)
- [OpenAI Model Card for GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md)
- [OpenAI GPT-2 1.5B Release Blog Post](https://openai.com/blog/gpt-2-1-5b-release/)
- Test the full generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large
## How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility:
```python
from transformers import pipeline, set_seed
generator = pipeline('text-generation', model='gpt2-xl')
set_seed(42)
generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import GPT2Tokenizer, GPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2-xl')
model = GPT2Model.from_pretrained('gpt2-xl')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import GPT2Tokenizer, TFGPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2-xl')
model = TFGPT2Model.from_pretrained('gpt2-xl')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
## Uses
#### Direct Use
In their [model card about GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md), OpenAI wrote:
> The primary intended users of these models are AI researchers and practitioners.
>
> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.
#### Downstream Use
In their [model card about GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md), OpenAI wrote:
> Here are some secondary use cases we believe are likely:
>
> - Writing assistance: Grammar assistance, autocompletion (for normal prose or code)
> - Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.
> - Entertainment: Creation of games, chat bots, and amusing generations.
#### Misuse and Out-of-scope Use
In their [model card about GPT-2](https://github.com/openai/gpt-2/blob/master/model_card.md), OpenAI wrote:
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.
>
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.**
#### Biases
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
```python
from transformers import pipeline, set_seed
generator = pipeline('text-generation', model='gpt2-xl')
set_seed(42)
generator("The man worked as a", max_length=10, num_return_sequences=5)
set_seed(42)
generator("The woman worked as a", max_length=10, num_return_sequences=5)
```
This bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
#### Risks and Limitations
When they released the 1.5B parameter model, OpenAI wrote in a [blog post](https://openai.com/blog/gpt-2-1-5b-release/):
> GPT-2 can be fine-tuned for misuse. Our partners at the Middlebury Institute of International Studies’ Center on Terrorism, Extremism, and Counterterrorism (CTEC) found that extremist groups can use GPT-2 for misuse, specifically by fine-tuning GPT-2 models on four ideological positions: white supremacy, Marxism, jihadist Islamism, and anarchism. CTEC demonstrated that it’s possible to create models that can generate synthetic propaganda for these ideologies. They also show that, despite having low detection accuracy on synthetic outputs, ML-based detection methods can give experts reasonable suspicion that an actor is generating synthetic text.
The blog post further discusses the risks, limitations, and biases of the model.
## Training
#### Training Data
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web
pages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from
this dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights
40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText
[here](https://github.com/openai/gpt-2/blob/master/domains.txt).
#### Training Procedure
The model is pretrained on a very large corpus of English data in a self-supervised fashion. This
means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots
of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,
it was trained to guess the next word in sentences.
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,
shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the
predictions for the token `i` only uses the inputs from `1` to `i` but not the future tokens.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks.
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a
vocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
## Evaluation
The following evaluation information is extracted from the [associated paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf).
#### Testing Data, Factors and Metrics
The model authors write in the [associated paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) that:
> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string <UNK> which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.
#### Results
The model achieves the following results without any fine-tuning (zero-shot):
| Dataset | LAMBADA | LAMBADA | CBT-CN | CBT-NE | WikiText2 | PTB | enwiki8 | text8 | WikiText103 | 1BW |
|:--------:|:-------:|:-------:|:------:|:------:|:---------:|:------:|:-------:|:------:|:-----------:|:-----:|
| (metric) | (PPL) | (ACC) | (ACC) | (ACC) | (PPL) | (PPL) | (BPB) | (BPC) | (PPL) | (PPL) |
| | 8.63 | 63.24 | 93.30 | 89.05 | 18.34 | 35.76 | 0.93 | 0.98 | 17.48 | 42.16 |
## Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). The hardware type and hours used are based on information provided by one of the model authors on [Reddit](https://bit.ly/2Tw1x4L).
- **Hardware Type:** 32 TPUv3 chips
- **Hours used:** 168
- **Cloud Provider:** Unknown
- **Compute Region:** Unknown
- **Carbon Emitted:** Unknown
## Technical Specifications
See the [associated paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) for details on the modeling architecture, objective, and training details.
## Citation Information
```bibtex
@article{radford2019language,
title={Language models are unsupervised multitask learners},
author={Radford, Alec and Wu, Jeffrey and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya and others},
journal={OpenAI blog},
volume={1},
number={8},
pages={9},
year={2019}
}
```
## Model Card Authors
This model card was written by the Hugging Face team. | {"language": "en", "license": "mit"} | text-generation | openai-community/gpt2-xl | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"gpt2",
"text-generation",
"en",
"arxiv:1910.09700",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1910.09700"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #rust #safetensors #gpt2 #text-generation #en #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us
| GPT-2 XL
========
Table of Contents
-----------------
* Model Details
* How To Get Started With the Model
* Uses
* Risks, Limitations and Biases
* Training
* Evaluation
* Environmental Impact
* Technical Specifications
* Citation Information
* Model Card Authors
Model Details
-------------
Model Description: GPT-2 XL is the 1.5B parameter version of GPT-2, a transformer-based language model created and released by OpenAI. The model is a pretrained model on English language using a causal language modeling (CLM) objective.
* Developed by: OpenAI, see associated research paper and GitHub repo for model developers.
* Model Type: Transformer-based language model
* Language(s): English
* License: Modified MIT License
* Related Models: GPT-2, GPT-Medium and GPT-Large
* Resources for more information:
+ Research Paper
+ OpenAI Blog Post
+ GitHub Repo
+ OpenAI Model Card for GPT-2
+ OpenAI GPT-2 1.5B Release Blog Post
+ Test the full generation capabilities here: URL
How to Get Started with the Model
---------------------------------
Use the code below to get started with the model. You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
Uses
----
#### Direct Use
In their model card about GPT-2, OpenAI wrote:
>
> The primary intended users of these models are AI researchers and practitioners.
>
>
> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.
>
>
>
#### Downstream Use
In their model card about GPT-2, OpenAI wrote:
>
> Here are some secondary use cases we believe are likely:
>
>
> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)
> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.
> * Entertainment: Creation of games, chat bots, and amusing generations.
>
>
>
#### Misuse and Out-of-scope Use
In their model card about GPT-2, OpenAI wrote:
>
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.
>
>
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.
>
>
>
Risks, Limitations and Biases
-----------------------------
CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.
#### Biases
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
This bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
#### Risks and Limitations
When they released the 1.5B parameter model, OpenAI wrote in a blog post:
>
> GPT-2 can be fine-tuned for misuse. Our partners at the Middlebury Institute of International Studies’ Center on Terrorism, Extremism, and Counterterrorism (CTEC) found that extremist groups can use GPT-2 for misuse, specifically by fine-tuning GPT-2 models on four ideological positions: white supremacy, Marxism, jihadist Islamism, and anarchism. CTEC demonstrated that it’s possible to create models that can generate synthetic propaganda for these ideologies. They also show that, despite having low detection accuracy on synthetic outputs, ML-based detection methods can give experts reasonable suspicion that an actor is generating synthetic text.
>
>
>
The blog post further discusses the risks, limitations, and biases of the model.
Training
--------
#### Training Data
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web
pages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from
this dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights
40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText
here.
#### Training Procedure
The model is pretrained on a very large corpus of English data in a self-supervised fashion. This
means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots
of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,
it was trained to guess the next word in sentences.
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,
shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the
predictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks.
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a
vocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
Evaluation
----------
The following evaluation information is extracted from the associated paper.
#### Testing Data, Factors and Metrics
The model authors write in the associated paper that:
>
> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.
>
>
>
#### Results
The model achieves the following results without any fine-tuning (zero-shot):
Environmental Impact
--------------------
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). The hardware type and hours used are based on information provided by one of the model authors on Reddit.
* Hardware Type: 32 TPUv3 chips
* Hours used: 168
* Cloud Provider: Unknown
* Compute Region: Unknown
* Carbon Emitted: Unknown
Technical Specifications
------------------------
See the associated paper for details on the modeling architecture, objective, and training details.
Model Card Authors
------------------
This model card was written by the Hugging Face team.
| [
"#### Direct Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> The primary intended users of these models are AI researchers and practitioners.\n> \n> \n> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.\n> \n> \n>",
"#### Downstream Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Here are some secondary use cases we believe are likely:\n> \n> \n> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)\n> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.\n> * Entertainment: Creation of games, chat bots, and amusing generations.\n> \n> \n>",
"#### Misuse and Out-of-scope Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n> \n> \n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.\n> \n> \n> \n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.",
"#### Biases\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nThe training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"#### Risks and Limitations\n\n\nWhen they released the 1.5B parameter model, OpenAI wrote in a blog post:\n\n\n\n> \n> GPT-2 can be fine-tuned for misuse. Our partners at the Middlebury Institute of International Studies’ Center on Terrorism, Extremism, and Counterterrorism (CTEC) found that extremist groups can use GPT-2 for misuse, specifically by fine-tuning GPT-2 models on four ideological positions: white supremacy, Marxism, jihadist Islamism, and anarchism. CTEC demonstrated that it’s possible to create models that can generate synthetic propaganda for these ideologies. They also show that, despite having low detection accuracy on synthetic outputs, ML-based detection methods can give experts reasonable suspicion that an actor is generating synthetic text.\n> \n> \n> \n\n\nThe blog post further discusses the risks, limitations, and biases of the model.\n\n\nTraining\n--------",
"#### Training Data\n\n\nThe OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web\npages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from\nthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights\n40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText\nhere.",
"#### Training Procedure\n\n\nThe model is pretrained on a very large corpus of English data in a self-supervised fashion. This\nmeans it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots\nof publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,\nit was trained to guess the next word in sentences.\n\n\nMore precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,\nshifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the\npredictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.\n\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks.\n\n\nThe texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a\nvocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.\n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated paper.",
"#### Testing Data, Factors and Metrics\n\n\nThe model authors write in the associated paper that:\n\n\n\n> \n> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.\n> \n> \n>",
"#### Results\n\n\nThe model achieves the following results without any fine-tuning (zero-shot):\n\n\n\nEnvironmental Impact\n--------------------\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). The hardware type and hours used are based on information provided by one of the model authors on Reddit.\n\n\n* Hardware Type: 32 TPUv3 chips\n* Hours used: 168\n* Cloud Provider: Unknown\n* Compute Region: Unknown\n* Carbon Emitted: Unknown\n\n\nTechnical Specifications\n------------------------\n\n\nSee the associated paper for details on the modeling architecture, objective, and training details.\n\n\nModel Card Authors\n------------------\n\n\nThis model card was written by the Hugging Face team."
] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #gpt2 #text-generation #en #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n",
"#### Direct Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> The primary intended users of these models are AI researchers and practitioners.\n> \n> \n> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.\n> \n> \n>",
"#### Downstream Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Here are some secondary use cases we believe are likely:\n> \n> \n> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)\n> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.\n> * Entertainment: Creation of games, chat bots, and amusing generations.\n> \n> \n>",
"#### Misuse and Out-of-scope Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n> \n> \n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.\n> \n> \n> \n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.",
"#### Biases\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nThe training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"#### Risks and Limitations\n\n\nWhen they released the 1.5B parameter model, OpenAI wrote in a blog post:\n\n\n\n> \n> GPT-2 can be fine-tuned for misuse. Our partners at the Middlebury Institute of International Studies’ Center on Terrorism, Extremism, and Counterterrorism (CTEC) found that extremist groups can use GPT-2 for misuse, specifically by fine-tuning GPT-2 models on four ideological positions: white supremacy, Marxism, jihadist Islamism, and anarchism. CTEC demonstrated that it’s possible to create models that can generate synthetic propaganda for these ideologies. They also show that, despite having low detection accuracy on synthetic outputs, ML-based detection methods can give experts reasonable suspicion that an actor is generating synthetic text.\n> \n> \n> \n\n\nThe blog post further discusses the risks, limitations, and biases of the model.\n\n\nTraining\n--------",
"#### Training Data\n\n\nThe OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web\npages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from\nthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights\n40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText\nhere.",
"#### Training Procedure\n\n\nThe model is pretrained on a very large corpus of English data in a self-supervised fashion. This\nmeans it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots\nof publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,\nit was trained to guess the next word in sentences.\n\n\nMore precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,\nshifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the\npredictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.\n\n\nThis way, the model learns an inner representation of the English language that can then be used to extract features\nuseful for downstream tasks.\n\n\nThe texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a\nvocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.\n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated paper.",
"#### Testing Data, Factors and Metrics\n\n\nThe model authors write in the associated paper that:\n\n\n\n> \n> Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.\n> \n> \n>",
"#### Results\n\n\nThe model achieves the following results without any fine-tuning (zero-shot):\n\n\n\nEnvironmental Impact\n--------------------\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). The hardware type and hours used are based on information provided by one of the model authors on Reddit.\n\n\n* Hardware Type: 32 TPUv3 chips\n* Hours used: 168\n* Cloud Provider: Unknown\n* Compute Region: Unknown\n* Carbon Emitted: Unknown\n\n\nTechnical Specifications\n------------------------\n\n\nSee the associated paper for details on the modeling architecture, objective, and training details.\n\n\nModel Card Authors\n------------------\n\n\nThis model card was written by the Hugging Face team."
] | [
80,
84,
108,
245,
174,
212,
113,
292,
312,
156
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #gpt2 #text-generation #en #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n#### Direct Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> The primary intended users of these models are AI researchers and practitioners.\n> \n> \n> We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.\n> \n> \n>#### Downstream Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Here are some secondary use cases we believe are likely:\n> \n> \n> * Writing assistance: Grammar assistance, autocompletion (for normal prose or code)\n> * Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.\n> * Entertainment: Creation of games, chat bots, and amusing generations.\n> \n> \n>",
"passage: #### Misuse and Out-of-scope Use\n\n\nIn their model card about GPT-2, OpenAI wrote:\n\n\n\n> \n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.\n> \n> \n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.\n> \n> \n> \n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.#### Biases\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nThe training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.#### Risks and Limitations\n\n\nWhen they released the 1.5B parameter model, OpenAI wrote in a blog post:\n\n\n\n> \n> GPT-2 can be fine-tuned for misuse. Our partners at the Middlebury Institute of International Studies’ Center on Terrorism, Extremism, and Counterterrorism (CTEC) found that extremist groups can use GPT-2 for misuse, specifically by fine-tuning GPT-2 models on four ideological positions: white supremacy, Marxism, jihadist Islamism, and anarchism. CTEC demonstrated that it’s possible to create models that can generate synthetic propaganda for these ideologies. They also show that, despite having low detection accuracy on synthetic outputs, ML-based detection methods can give experts reasonable suspicion that an actor is generating synthetic text.\n> \n> \n> \n\n\nThe blog post further discusses the risks, limitations, and biases of the model.\n\n\nTraining\n--------#### Training Data\n\n\nThe OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web\npages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from\nthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights\n40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText\nhere."
] | [
-0.015147852711379528,
0.0452241450548172,
-0.0023890072479844093,
0.08761225640773773,
0.022634271532297134,
0.016378648579120636,
0.09942786395549774,
0.06827379018068314,
0.03205692023038864,
0.021898187696933746,
0.07862590253353119,
0.018169386312365532,
0.08270852267742157,
0.08775204420089722,
0.006013728212565184,
-0.14634525775909424,
0.04025019705295563,
-0.06592155992984772,
0.04250578582286835,
0.11901730298995972,
0.1238148957490921,
0.00685150409117341,
0.03820209577679634,
0.047326505184173584,
0.0012862039729952812,
-0.09432857483625412,
-0.03756082057952881,
-0.03994342312216759,
0.11587488651275635,
0.0971413180232048,
0.04939545691013336,
-0.016074003651738167,
0.015368334949016571,
-0.17965731024742126,
0.031023597344756126,
0.048899754881858826,
-0.045872919261455536,
0.028292197734117508,
0.07811473309993744,
-0.0034510083496570587,
0.18756765127182007,
-0.02216707170009613,
0.0219415295869112,
0.07238585501909256,
-0.12378203123807907,
-0.12326482683420181,
-0.08468104898929596,
0.01726566255092621,
0.07613040506839752,
0.07351040840148926,
-0.05702906847000122,
0.13146549463272095,
-0.03546352684497833,
0.04581717401742935,
0.10841589421033859,
-0.1394168585538864,
-0.0538729764521122,
0.010678719729185104,
0.055283281952142715,
0.09304310381412506,
-0.06489676237106323,
0.04255920276045799,
0.03875239938497543,
0.026959707960486412,
0.002406936138868332,
-0.00906451791524887,
0.07358891516923904,
-0.02065849117934704,
-0.13121511042118073,
-0.07609507441520691,
0.2000935673713684,
-0.013268116861581802,
-0.07501797378063202,
-0.18455509841442108,
-0.031345587223768234,
0.11356939375400543,
0.03675249591469765,
-0.06671140342950821,
-0.02648337371647358,
0.020901067182421684,
0.15489286184310913,
-0.09464985877275467,
-0.08247408270835876,
0.0019404188496991992,
-0.04273991286754608,
0.10506457090377808,
0.01981709897518158,
0.0191322173923254,
-0.026672393083572388,
0.05650438368320465,
-0.016242003068327904,
-0.06699606776237488,
-0.05384460464119911,
-0.11177704483270645,
-0.004201897419989109,
-0.021834971383213997,
-0.042675357311964035,
-0.01126992329955101,
-0.006357686128467321,
0.1441999077796936,
-0.03075750172138214,
0.022489354014396667,
-0.01829613372683525,
0.05008493363857269,
0.11676366627216339,
-0.013283569365739822,
-0.05553913116455078,
0.04904519021511078,
0.05549956485629082,
0.04480472207069397,
0.05590459704399109,
-0.04040834307670593,
-0.059151943773031235,
-0.017191529273986816,
0.01727127656340599,
0.06742142140865326,
0.04909038543701172,
0.05396062880754471,
-0.07581739127635956,
-0.010828476399183273,
0.12621736526489258,
-0.07325643301010132,
-0.04401015490293503,
0.031095480546355247,
-0.017709944397211075,
-0.03502456098794937,
0.016647083684802055,
0.021137302741408348,
-0.051988035440444946,
-0.02191971242427826,
-0.05426574498414993,
-0.008179232478141785,
-0.06215794384479523,
-0.07451361417770386,
0.058066535741090775,
0.0036253202706575394,
-0.0346745140850544,
-0.0899345874786377,
-0.08713594824075699,
-0.04288081079721451,
0.06468215584754944,
-0.07071279734373093,
-0.04278538376092911,
-0.037821803241968155,
-0.0652642548084259,
0.012936243787407875,
0.024617768824100494,
0.02045261673629284,
-0.05434586480259895,
0.058263834565877914,
-0.06359504163265228,
0.06440655887126923,
0.0029948055744171143,
-0.0012729796580970287,
-0.0852237418293953,
0.022224964573979378,
-0.07111579179763794,
0.06936662644147873,
-0.03761882707476616,
-0.04239055886864662,
-0.050601910799741745,
-0.017443478107452393,
0.020332224667072296,
0.05674000456929207,
-0.0557103157043457,
0.17347219586372375,
-0.16169600188732147,
0.0011747325770556927,
0.18786156177520752,
-0.11771206557750702,
-0.11221474409103394,
0.1520664095878601,
-0.07333569973707199,
0.09813141822814941,
0.08017751574516296,
0.09487397968769073,
-0.03717021271586418,
-0.08009853214025497,
0.023255936801433563,
-0.02733255922794342,
-0.055171459913253784,
0.1967628300189972,
0.0856235921382904,
-0.006125694140791893,
-0.007576806470751762,
-0.03517000749707222,
-0.032681338489055634,
0.011892830021679401,
0.00495214993134141,
-0.05363341420888901,
0.02460840716958046,
-0.016243543475866318,
0.10509043186903,
0.01891130581498146,
-0.06295133382081985,
-0.06238439679145813,
-0.13982509076595306,
-0.17326173186302185,
0.035615019500255585,
0.0003770390176214278,
0.00991760939359665,
-0.13014161586761475,
0.04245825856924057,
0.0506991446018219,
0.03481747955083847,
-0.10611365735530853,
-0.06881015002727509,
-0.013899227604269981,
-0.04030710831284523,
0.10244852304458618,
0.11768040060997009,
0.013095516711473465,
0.06172873452305794,
-0.027428867295384407,
0.04368408024311066,
-0.028140079230070114,
-0.00419972650706768,
-0.042693786323070526,
-0.16804850101470947,
0.04232744127511978,
-0.061087679117918015,
0.14926281571388245,
-0.1700960248708725,
0.02983919531106949,
0.09198242425918579,
0.034153714776039124,
0.0014415127225220203,
-0.0173141248524189,
0.05478457733988762,
-0.012697950936853886,
-0.04376958683133125,
-0.037093035876750946,
0.034400824457407,
-0.03746045008301735,
-0.07320316135883331,
0.10500189661979675,
-0.19120317697525024,
-0.004274280741810799,
0.09968529641628265,
-0.0717010647058487,
-0.08493229746818542,
-0.013604206964373589,
-0.017930615693330765,
0.009555916301906109,
0.023971207439899445,
-0.02881014533340931,
0.1706824004650116,
-0.01916060410439968,
0.04562516137957573,
-0.13157661259174347,
-0.10068997740745544,
0.0024339689407497644,
-0.06921960413455963,
-0.047513045370578766,
0.06409122794866562,
0.007659941911697388,
-0.2664000689983368,
0.12358133494853973,
0.15591919422149658,
-0.005745213478803635,
0.1649647057056427,
0.04907944053411484,
-0.053893402218818665,
-0.022391654551029205,
0.020540377125144005,
-0.004842976573854685,
0.10920006781816483,
-0.047526244074106216,
0.026717286556959152,
0.026809679344296455,
0.002501200884580612,
0.016479432582855225,
-0.13532209396362305,
-0.040820877999067307,
0.01706428825855255,
-0.002447109669446945,
-0.005072842352092266,
0.008356887847185135,
-0.005048068705946207,
0.1366676390171051,
0.03182663023471832,
0.020781388506293297,
0.06908481568098068,
-0.0487302765250206,
-0.14941051602363586,
0.12261787056922913,
-0.11532597243785858,
-0.2642792761325836,
-0.023351749405264854,
0.02123367041349411,
-0.024855125695466995,
0.031489256769418716,
0.019309427589178085,
-0.12100401520729065,
-0.04911654442548752,
-0.1366036832332611,
0.013587173074483871,
-0.06789523363113403,
-0.10387436300516129,
-0.018461458384990692,
0.059728749096393585,
-0.022965699434280396,
-0.08211275190114975,
0.012739031575620174,
0.02067851461470127,
-0.10762565582990646,
0.0731770247220993,
-0.021890535950660706,
0.07691951096057892,
0.1110023632645607,
0.025375250726938248,
-0.040585219860076904,
-0.042712144553661346,
0.19389104843139648,
-0.12199172377586365,
0.0618823803961277,
0.06581279635429382,
-0.12899112701416016,
0.07559984922409058,
0.14388203620910645,
0.012210558168590069,
-0.07176540791988373,
0.025907138362526894,
0.002907685935497284,
-0.04905183985829353,
-0.2091849446296692,
-0.0880555734038353,
-0.058006562292575836,
-0.005151137709617615,
-0.008960528299212456,
0.05710143595933914,
0.061764247715473175,
0.0660969614982605,
-0.12008001655340195,
-0.009457306005060673,
0.1294519603252411,
0.06730760633945465,
0.11312121897935867,
-0.01472458429634571,
0.049090415239334106,
-0.033759184181690216,
-0.008603287860751152,
0.11309950053691864,
-0.0011356426402926445,
0.17517594993114471,
-0.007215803489089012,
0.1389198899269104,
0.08502012491226196,
0.08781029284000397,
0.03188585489988327,
0.0016707926988601685,
0.011470459401607513,
0.027395494282245636,
-0.09406039118766785,
-0.043573327362537384,
-0.08858073502779007,
0.11835826933383942,
-0.021489007398486137,
-0.07843202352523804,
0.008555909618735313,
-0.05616236478090286,
0.09743152558803558,
0.01851259358227253,
0.01334331464022398,
-0.11405333876609802,
-0.034655895084142685,
0.09415510296821594,
-0.05632118880748749,
-0.10949582606554031,
0.0743519589304924,
0.09059157967567444,
-0.16127580404281616,
0.07682797312736511,
-0.02386048249900341,
0.07926882803440094,
-0.07832790166139603,
-0.014041411690413952,
-0.04641005024313927,
-0.07285160571336746,
-0.014557119458913803,
0.11908204853534698,
-0.2087813913822174,
0.1733938753604889,
0.02089972235262394,
0.033900290727615356,
-0.1660366952419281,
-0.026077670976519585,
0.0485246367752552,
-0.0017465034034103155,
0.14927813410758972,
0.005181783810257912,
0.028424188494682312,
-0.037537407130002975,
-0.007134922780096531,
0.03565441071987152,
0.07591409981250763,
-0.029577679932117462,
0.06848149001598358,
-0.026601802557706833,
0.05260162800550461,
-0.05206301808357239,
0.036980580538511276,
-0.10075543820858002,
-0.20649297535419464,
0.05194060504436493,
-0.08578135818243027,
-0.00013872981071472168,
-0.05273442715406418,
-0.04631474241614342,
-0.027972962707281113,
0.14747391641139984,
-0.1523287296295166,
-0.11884959787130356,
-0.07232241332530975,
-0.06050410866737366,
0.006787130609154701,
-0.026929520070552826,
0.020901093259453773,
-0.018082555383443832,
0.08686337620019913,
-0.09800586849451065,
-0.030211547389626503,
0.08258986473083496,
-0.09922661632299423,
-0.19836431741714478,
-0.06799393147230148,
0.12316367030143738,
0.11870835721492767,
0.08809603005647659,
0.01588144153356552,
0.044930048286914825,
-0.019982825964689255,
-0.11014498770236969,
0.0363411121070385,
0.0805211290717125,
0.04070955514907837,
0.03179832175374031,
0.057926665991544724,
-0.0619097501039505,
-0.10756593197584152,
-0.09842756390571594,
0.07942570000886917,
0.28651177883148193,
-0.015664895996451378,
0.14184588193893433,
0.12415266036987305,
-0.0864080861210823,
-0.22503778338432312,
-0.056588150560855865,
-0.04484075680375099,
-0.03953070938587189,
0.09775415062904358,
-0.15910357236862183,
-0.08480121940374374,
-0.0018174201250076294,
-0.020816480740904808,
0.08724813163280487,
-0.16846972703933716,
-0.08328589797019958,
0.09964234381914139,
0.07495395839214325,
0.014957411214709282,
-0.12879157066345215,
-0.011549361981451511,
-0.007215764373540878,
-0.04088761657476425,
0.13259096443653107,
-0.05877762287855148,
0.03341452032327652,
0.007195354904979467,
0.037499330937862396,
0.019856223836541176,
-0.018509235233068466,
0.1665329933166504,
-0.09699665009975433,
0.054102398455142975,
-0.1707403063774109,
-0.0408061146736145,
0.02252960205078125,
-0.009065643884241581,
0.03860769420862198,
-0.06139937415719032,
-0.009660349227488041,
-0.05998735874891281,
-0.0605475977063179,
-0.06844270974397659,
-0.006099279969930649,
-0.0563090443611145,
-0.06419646739959717,
-0.1325855404138565,
0.07788079977035522,
0.039794862270355225,
0.013110044412314892,
0.008676113560795784,
-0.050625335425138474,
0.041294489055871964,
0.07322891056537628,
0.2649761438369751,
0.02625105157494545,
0.024642912670969963,
-0.00011556455865502357,
-0.01767278090119362,
0.07894660532474518,
-0.08299090713262558,
-0.00855936761945486,
0.05455204099416733,
-0.02069716714322567,
0.1268944889307022,
0.02224414423108101,
-0.12532083690166473,
0.06327267736196518,
0.0464603416621685,
-0.15824073553085327,
-0.19185778498649597,
-0.030696365982294083,
0.06575527042150497,
-0.03630635887384415,
-0.10549579560756683,
0.10375440865755081,
-0.03799714520573616,
-0.025381416082382202,
0.00020170211791992188,
0.10861491411924362,
0.035767510533332825,
-0.03743889555335045,
0.007768694311380386,
0.027351314201951027,
-0.04697464406490326,
0.03804102540016174,
0.06881141662597656,
-0.11038894951343536,
0.09405095875263214,
0.11931221187114716,
-0.08587147295475006,
-0.057345375418663025,
-0.056298550218343735,
0.003514579962939024,
0.03129410743713379,
-0.057541437447071075,
0.06893021613359451,
-0.07457268983125687,
-0.010124361142516136,
0.0954868495464325,
0.02263025939464569,
0.0324271135032177,
0.015671903267502785,
0.019435930997133255,
-0.009106834419071674,
0.0859760195016861,
-0.008974052034318447,
-0.06156153976917267,
-0.029416639357805252,
-0.00886746495962143,
0.052239224314689636,
0.01819797046482563,
-0.04319528490304947,
-0.02503448724746704,
-0.07616764307022095,
0.016364287585020065,
-0.11809112131595612,
0.046773169189691544,
-0.10921439528465271,
0.011604024097323418,
-0.023802878335118294,
-0.02715306729078293,
-0.01788288913667202,
-0.005500802770256996,
-0.05672633275389671,
0.021005766466259956,
0.004863227717578411,
0.05609769746661186,
-0.1373668611049652,
-0.001180726569145918,
0.11798790097236633,
-0.05112893506884575,
0.09934477508068085,
-0.012712178751826286,
-0.07259920239448547,
0.026926113292574883,
-0.21024945378303528,
0.045994944870471954,
-0.012105293571949005,
0.023207034915685654,
-0.04583321139216423,
-0.1499081552028656,
-0.034110065549612045,
0.007279840297996998,
-0.022947091609239578,
0.03669873997569084,
0.07005226612091064,
-0.03881677985191345,
0.05371629074215889,
0.08647850900888443,
-0.07443869113922119,
-0.04172419011592865,
0.0007253922522068024,
0.08471965789794922,
-0.050949640572071075,
0.10840517282485962,
-0.02288028597831726,
0.060558706521987915,
-0.11712536960840225,
0.010594923049211502,
0.046982087194919586,
0.04840569198131561,
-0.04080855846405029,
-0.05174440145492554,
0.01938031241297722,
-0.03993254154920578,
0.22472819685935974,
0.002401454374194145,
-0.11795760691165924,
0.07703445851802826,
0.03276537358760834,
0.016855530440807343,
0.028456900268793106,
-0.015735546126961708,
-0.0272708460688591,
-0.028970768675208092,
-0.08182668685913086,
-0.03091193549335003,
-0.02702193707227707,
-0.15739339590072632,
0.14013592898845673,
0.03889263793826103,
0.1057126373052597,
0.024589763954281807,
-0.06406274437904358,
-0.06296250224113464,
-0.03147656470537186,
0.03688853606581688,
0.0755193755030632,
-0.010186746716499329,
-0.054157331585884094,
0.0954277515411377,
0.20913982391357422,
-0.07931732386350632,
0.03785354644060135,
-0.07848811149597168,
-0.04799799248576164,
-0.09216901659965515,
-0.21089854836463928,
-0.045750636607408524,
-0.011124290525913239,
0.002904978347942233,
-0.09506313502788544,
0.06334178894758224,
0.09130168706178665,
0.039639800786972046,
-0.05274561047554016,
0.1131756603717804,
-0.01858574151992798,
-0.09894911199808121,
0.02483166940510273,
-0.0027954643592238426,
0.050835467875003815,
-0.007686161901801825,
0.016561882570385933,
0.018107304349541664,
-0.022509895265102386,
0.06221074238419533,
0.11345915496349335,
-0.024814262986183167,
0.004782381467521191,
-0.0861189216375351,
-0.07100177556276321,
-0.004129319917410612,
0.04859600216150284,
0.04849740117788315,
0.22759169340133667,
0.03738288953900337,
-0.007147199474275112,
0.03628355264663696,
0.08521901816129684,
0.03161183372139931,
-0.040281135588884354,
-0.0766633152961731,
0.10717161744832993,
-0.10321061313152313,
-0.02198823355138302,
0.0410463884472847,
-0.061835795640945435,
0.06030942127108574,
0.13451610505580902,
0.18875615298748016,
-0.13950715959072113,
-0.01722632348537445,
-0.07248308509588242,
0.034368932247161865,
0.041115786880254745,
0.041208624839782715,
0.02088562399148941,
0.2896657884120941,
-0.12950801849365234,
0.040408458560705185,
-0.03589469939470291,
0.023239191621541977,
0.01448920089751482,
0.08509109169244766,
0.030026964843273163,
0.01817997358739376,
-0.09884780645370483,
0.10676589608192444,
-0.061302296817302704,
-0.12682996690273285,
-0.04964869096875191,
-0.03971565514802933,
-0.0623127780854702,
0.05596240982413292,
0.01829429157078266,
-0.03756071627140045,
0.06065238267183304,
0.03784633055329323,
-0.03473728522658348,
0.05885656923055649,
0.009904295206069946,
-0.08369709551334381,
0.04500811547040939,
0.1113552451133728,
-0.03998324275016785,
0.24369820952415466,
0.02875731885433197,
0.17115744948387146,
0.08195901662111282,
-0.02397283725440502,
-0.07633449137210846,
0.034399330615997314,
0.06517840921878815,
0.04624231904745102,
-0.015934038907289505,
0.15331636369228363,
0.04339982196688652,
0.03346981853246689,
0.16885948181152344,
-0.018103530630469322,
0.1059475764632225,
-0.006076044403016567,
-0.0640394315123558,
-0.04011755436658859,
0.12214942276477814,
-0.13255678117275238,
0.1260954737663269,
0.10786490887403488,
-0.02523648738861084,
0.005545943044126034,
-0.027707140892744064,
-0.007671889383345842,
-0.03443344682455063,
0.06067068502306938,
0.016394734382629395,
-0.1135282963514328,
-0.01614873856306076,
0.024312911555171013,
0.05337170138955116,
-0.1952269822359085,
-0.0318477638065815,
-0.05434583127498627,
0.006563650444149971,
-0.037329938262701035,
0.042833276093006134,
0.0349268764257431,
-0.026284007355570793,
-0.020945122465491295,
-0.028202373534440994,
-0.014052996411919594,
0.050882816314697266,
-0.03360466659069061,
-0.01710253767669201
] |
null | null | transformers |
# GPT-2
Test the whole generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large
Pretrained model on English language using a causal language modeling (CLM) objective. It was introduced in
[this paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)
and first released at [this page](https://openai.com/blog/better-language-models/).
Disclaimer: The team releasing GPT-2 also wrote a
[model card](https://github.com/openai/gpt-2/blob/master/model_card.md) for their model. Content from this model card
has been written by the Hugging Face team to complete the information they provided and give specific examples of bias.
## Model description
GPT-2 is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. This
means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots
of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,
it was trained to guess the next word in sentences.
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,
shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the
predictions for the token `i` only uses the inputs from `1` to `i` but not the future tokens.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks. The model is best at what it was pretrained for however, which is generating texts from a
prompt.
This is the **smallest** version of GPT-2, with 124M parameters.
**Related Models:** [GPT-Large](https://huggingface.co/gpt2-large), [GPT-Medium](https://huggingface.co/gpt2-medium) and [GPT-XL](https://huggingface.co/gpt2-xl)
## Intended uses & limitations
You can use the raw model for text generation or fine-tune it to a downstream task. See the
[model hub](https://huggingface.co/models?filter=gpt2) to look for fine-tuned versions on a task that interests you.
### How to use
You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
set a seed for reproducibility:
```python
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='gpt2')
>>> set_seed(42)
>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
[{'generated_text': "Hello, I'm a language model, a language for thinking, a language for expressing thoughts."},
{'generated_text': "Hello, I'm a language model, a compiler, a compiler library, I just want to know how I build this kind of stuff. I don"},
{'generated_text': "Hello, I'm a language model, and also have more than a few of your own, but I understand that they're going to need some help"},
{'generated_text': "Hello, I'm a language model, a system model. I want to know my language so that it might be more interesting, more user-friendly"},
{'generated_text': 'Hello, I\'m a language model, not a language model"\n\nThe concept of "no-tricks" comes in handy later with new'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import GPT2Tokenizer, GPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
model = GPT2Model.from_pretrained('gpt2')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import GPT2Tokenizer, TFGPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
model = TFGPT2Model.from_pretrained('gpt2')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot of
unfiltered content from the internet, which is far from neutral. As the openAI team themselves point out in their
[model card](https://github.com/openai/gpt-2/blob/master/model_card.md#out-of-scope-use-cases):
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases
> that require the generated text to be true.
>
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do
> not recommend that they be deployed into systems that interact with humans > unless the deployers first carry out a
> study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race,
> and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar
> levels of caution around use cases that are sensitive to biases around human attributes.
Here's an example of how the model can have biased predictions:
```python
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='gpt2')
>>> set_seed(42)
>>> generator("The White man worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The White man worked as a mannequin for'},
{'generated_text': 'The White man worked as a maniser of the'},
{'generated_text': 'The White man worked as a bus conductor by day'},
{'generated_text': 'The White man worked as a plumber at the'},
{'generated_text': 'The White man worked as a journalist. He had'}]
>>> set_seed(42)
>>> generator("The Black man worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The Black man worked as a man at a restaurant'},
{'generated_text': 'The Black man worked as a car salesman in a'},
{'generated_text': 'The Black man worked as a police sergeant at the'},
{'generated_text': 'The Black man worked as a man-eating monster'},
{'generated_text': 'The Black man worked as a slave, and was'}]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web
pages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from
this dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights
40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText
[here](https://github.com/openai/gpt-2/blob/master/domains.txt).
## Training procedure
### Preprocessing
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a
vocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
The larger model was trained on 256 cloud TPU v3 cores. The training duration was not disclosed, nor were the exact
details of training.
## Evaluation results
The model achieves the following results without any fine-tuning (zero-shot):
| Dataset | LAMBADA | LAMBADA | CBT-CN | CBT-NE | WikiText2 | PTB | enwiki8 | text8 | WikiText103 | 1BW |
|:--------:|:-------:|:-------:|:------:|:------:|:---------:|:------:|:-------:|:------:|:-----------:|:-----:|
| (metric) | (PPL) | (ACC) | (ACC) | (ACC) | (PPL) | (PPL) | (BPB) | (BPC) | (PPL) | (PPL) |
| | 35.13 | 45.99 | 87.65 | 83.4 | 29.41 | 65.85 | 1.16 | 1,17 | 37.50 | 75.20 |
### BibTeX entry and citation info
```bibtex
@article{radford2019language,
title={Language Models are Unsupervised Multitask Learners},
author={Radford, Alec and Wu, Jeff and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya},
year={2019}
}
```
<a href="https://huggingface.co/exbert/?model=gpt2">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": "en", "license": "mit", "tags": ["exbert"]} | text-generation | openai-community/gpt2 | [
"transformers",
"pytorch",
"tf",
"jax",
"tflite",
"rust",
"onnx",
"safetensors",
"gpt2",
"text-generation",
"exbert",
"en",
"doi:10.57967/hf/0039",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #tflite #rust #onnx #safetensors #gpt2 #text-generation #exbert #en #doi-10.57967/hf/0039 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us
| GPT-2
=====
Test the whole generation capabilities here: URL
Pretrained model on English language using a causal language modeling (CLM) objective. It was introduced in
this paper
and first released at this page.
Disclaimer: The team releasing GPT-2 also wrote a
model card for their model. Content from this model card
has been written by the Hugging Face team to complete the information they provided and give specific examples of bias.
Model description
-----------------
GPT-2 is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. This
means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots
of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,
it was trained to guess the next word in sentences.
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,
shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the
predictions for the token 'i' only uses the inputs from '1' to 'i' but not the future tokens.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks. The model is best at what it was pretrained for however, which is generating texts from a
prompt.
This is the smallest version of GPT-2, with 124M parameters.
Related Models: GPT-Large, GPT-Medium and GPT-XL
Intended uses & limitations
---------------------------
You can use the raw model for text generation or fine-tune it to a downstream task. See the
model hub to look for fine-tuned versions on a task that interests you.
### How to use
You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
set a seed for reproducibility:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot of
unfiltered content from the internet, which is far from neutral. As the openAI team themselves point out in their
model card:
>
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases
> that require the generated text to be true.
>
>
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do
> not recommend that they be deployed into systems that interact with humans > unless the deployers first carry out a
> study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race,
> and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar
> levels of caution around use cases that are sensitive to biases around human attributes.
>
>
>
Here's an example of how the model can have biased predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web
pages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from
this dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights
40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText
here.
Training procedure
------------------
### Preprocessing
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a
vocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
The larger model was trained on 256 cloud TPU v3 cores. The training duration was not disclosed, nor were the exact
details of training.
Evaluation results
------------------
The model achieves the following results without any fine-tuning (zero-shot):
### BibTeX entry and citation info
<a href="URL
<img width="300px" src="URL
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we\nset a seed for reproducibility:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nThe training data used for this model has not been released as a dataset one can browse. We know it contains a lot of\nunfiltered content from the internet, which is far from neutral. As the openAI team themselves point out in their\nmodel card:\n\n\n\n> \n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases\n> that require the generated text to be true.\n> \n> \n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do\n> not recommend that they be deployed into systems that interact with humans > unless the deployers first carry out a\n> study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race,\n> and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar\n> levels of caution around use cases that are sensitive to biases around human attributes.\n> \n> \n> \n\n\nHere's an example of how the model can have biased predictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web\npages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from\nthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights\n40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText\nhere.\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a\nvocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.\n\n\nThe larger model was trained on 256 cloud TPU v3 cores. The training duration was not disclosed, nor were the exact\ndetails of training.\n\n\nEvaluation results\n------------------\n\n\nThe model achieves the following results without any fine-tuning (zero-shot):",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
"TAGS\n#transformers #pytorch #tf #jax #tflite #rust #onnx #safetensors #gpt2 #text-generation #exbert #en #doi-10.57967/hf/0039 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we\nset a seed for reproducibility:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nThe training data used for this model has not been released as a dataset one can browse. We know it contains a lot of\nunfiltered content from the internet, which is far from neutral. As the openAI team themselves point out in their\nmodel card:\n\n\n\n> \n> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases\n> that require the generated text to be true.\n> \n> \n> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do\n> not recommend that they be deployed into systems that interact with humans > unless the deployers first carry out a\n> study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race,\n> and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar\n> levels of caution around use cases that are sensitive to biases around human attributes.\n> \n> \n> \n\n\nHere's an example of how the model can have biased predictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web\npages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from\nthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights\n40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText\nhere.\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a\nvocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.\n\n\nThe larger model was trained on 256 cloud TPU v3 cores. The training duration was not disclosed, nor were the exact\ndetails of training.\n\n\nEvaluation results\n------------------\n\n\nThe model achieves the following results without any fine-tuning (zero-shot):",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
95,
66,
393,
118,
30
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #tflite #rust #onnx #safetensors #gpt2 #text-generation #exbert #en #doi-10.57967/hf/0039 #license-mit #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we\nset a seed for reproducibility:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:"
] | [
-0.089153952896595,
0.037832070142030716,
-0.004567794036120176,
0.11267118901014328,
0.11629163473844528,
-0.028077507391572,
0.11178991943597794,
0.10172535479068756,
-0.012411597184836864,
0.010591533966362476,
0.19921241700649261,
0.19394180178642273,
0.0064707002602517605,
0.16327878832817078,
-0.029844393953680992,
-0.24266383051872253,
-0.015319876372814178,
0.034085024148225784,
0.0769280269742012,
0.12412051856517792,
0.09173628687858582,
-0.0859975591301918,
0.0856773853302002,
0.01494310237467289,
-0.13874556124210358,
-0.011455102823674679,
0.014283591881394386,
-0.07870903611183167,
0.09948871284723282,
0.0772315263748169,
0.014000012539327145,
0.08657556772232056,
0.026291901245713234,
-0.06000223010778427,
0.06331050395965576,
0.03426884859800339,
-0.05200861766934395,
0.11056028306484222,
0.12003817409276962,
-0.09619497507810593,
0.1211126521229744,
0.041989587247371674,
-0.0771230086684227,
0.02062384784221649,
-0.07058185338973999,
-0.03433971852064133,
-0.02862628921866417,
0.06685838103294373,
-0.01704142801463604,
0.055276766419410706,
-0.00837638322263956,
0.1260530948638916,
0.00968295056372881,
0.1379014551639557,
0.3066479563713074,
-0.29439377784729004,
-0.04636160284280777,
0.04461687430739403,
0.06363934278488159,
0.07701491564512253,
0.0008570414502173662,
0.03198579326272011,
0.010053365491330624,
0.05243154987692833,
0.2100065052509308,
-0.06928808987140656,
-0.1456911563873291,
0.0038198279216885567,
-0.1555994600057602,
-0.0033988873474299908,
0.1644921451807022,
-0.02426692470908165,
-0.02714773453772068,
-0.09189034253358841,
-0.11852850764989853,
0.0037485570646822453,
-0.03467120975255966,
-0.014913816004991531,
-0.03145809471607208,
-0.005067251622676849,
0.006066171918064356,
-0.11354027688503265,
-0.11935412138700485,
-0.075347401201725,
-0.048492323607206345,
0.11432532221078873,
0.05971039831638336,
0.06443044543266296,
-0.13732554018497467,
0.14097732305526733,
0.03954596072435379,
-0.09432375431060791,
0.029380928725004196,
-0.0922473818063736,
0.040791671723127365,
0.027237042784690857,
-0.046785324811935425,
-0.1363942176103592,
0.08814490586519241,
0.062447693198919296,
-0.054668836295604706,
-0.013676750473678112,
0.017592985183000565,
0.08695618808269501,
0.004841992165893316,
0.05775376409292221,
-0.13868370652198792,
0.07068052887916565,
0.08875562250614166,
-0.05721205472946167,
-0.05061109736561775,
-0.027985431253910065,
-0.1361425668001175,
-0.02357584424316883,
0.08720912039279938,
0.051434390246868134,
0.021973008289933205,
0.12890803813934326,
0.0042325877584517,
-0.08066778630018234,
0.05814637988805771,
-0.08919016271829605,
-0.03761332109570503,
0.03003617562353611,
-0.05391104891896248,
0.025504600256681442,
0.08796868473291397,
-0.05028609186410904,
-0.1282607913017273,
-0.016425330191850662,
-0.0758240595459938,
0.0027856051456183195,
-0.007320959586650133,
-0.1140018031001091,
-0.01775546558201313,
-0.05638229474425316,
0.010668125003576279,
-0.2105305939912796,
-0.18264240026474,
-0.00418341439217329,
0.03274044767022133,
-0.009503121487796307,
-0.05004217475652695,
-0.03858204558491707,
-0.049893539398908615,
-0.03211068734526634,
-0.03822559490799904,
0.07608799636363983,
-0.03617474436759949,
0.07982868701219559,
-0.05267232283949852,
0.09606387466192245,
-0.04448029026389122,
0.05423327907919884,
-0.08265242725610733,
-0.014620527625083923,
-0.04901457205414772,
0.06892728805541992,
-0.004000416025519371,
0.059301313012838364,
-0.07338811457157135,
-0.07466206699609756,
-0.021953003481030464,
-0.019955536350607872,
0.04666280001401901,
0.16617025434970856,
-0.12726300954818726,
-0.04862886667251587,
0.25669994950294495,
-0.057871829718351364,
-0.12110508978366852,
0.10836012661457062,
-0.03137823939323425,
0.10245947539806366,
0.07179118692874908,
0.15999522805213928,
0.11859159916639328,
-0.052795469760894775,
0.09553435444831848,
0.14340932667255402,
-0.18742507696151733,
-0.09917280077934265,
0.029208706691861153,
0.06439658254384995,
-0.07925274968147278,
0.06259790807962418,
-0.011576850898563862,
0.09281298518180847,
-0.07339608669281006,
-0.027644628658890724,
-0.022948937490582466,
-0.044862691313028336,
0.046807367354631424,
-0.009273316711187363,
0.09440161287784576,
0.031077096238732338,
-0.04086928069591522,
-0.014202199876308441,
0.020263733342289925,
-0.09730175137519836,
0.044791825115680695,
-0.02361501194536686,
0.15624646842479706,
0.006359280087053776,
0.06594637781381607,
-0.18366867303848267,
-0.002031360985711217,
0.020675508305430412,
0.07288168370723724,
0.027358902618288994,
-0.003688879543915391,
0.027895260602235794,
0.07019636034965515,
0.01983281970024109,
-0.0015794418286532164,
0.14895598590373993,
-0.0285104401409626,
-0.09332439303398132,
-0.10339487344026566,
-0.00798340979963541,
-0.039583466947078705,
-0.028163379058241844,
-0.0991077572107315,
0.034372150897979736,
-0.056002598255872726,
0.025743907317519188,
-0.024285152554512024,
0.027424586936831474,
0.041875433176755905,
-0.017369020730257034,
-0.059401217848062515,
-0.026308299973607063,
0.07757861167192459,
0.021466616541147232,
-0.09627114236354828,
0.21668942272663116,
-0.09640594571828842,
0.1496444046497345,
0.1141347736120224,
-0.08377332240343094,
-0.05498805642127991,
-0.045667797327041626,
-0.07096392661333084,
0.006859455723315477,
-0.01842469722032547,
0.04221666604280472,
0.13949863612651825,
0.008496144786477089,
0.16955170035362244,
-0.13011938333511353,
-0.04595530405640602,
0.035266902297735214,
-0.09454374015331268,
0.046068742871284485,
0.12255054712295532,
0.01725021004676819,
-0.13575510680675507,
0.059612736105918884,
0.06005388870835304,
0.0073455520905554295,
0.11471360176801682,
-0.004411095287650824,
-0.03665950149297714,
-0.007462113630026579,
0.07033758610486984,
-0.008530529215931892,
-0.026810243725776672,
-0.039676014333963394,
-0.02964266948401928,
0.0669374167919159,
-0.036206282675266266,
0.05392178148031235,
-0.08641906082630157,
-0.0016127388225868344,
0.011773446574807167,
-0.054951261729002,
0.06065399944782257,
0.06280827522277832,
-0.02824428491294384,
0.10824872553348541,
-0.04594726115465164,
-0.1053515151143074,
0.048772118985652924,
0.025672942399978638,
-0.10678934305906296,
0.217775359749794,
-0.06666254252195358,
-0.19441746175289154,
-0.07545053958892822,
-0.08363354206085205,
-0.07788345217704773,
0.027264118194580078,
0.07934767752885818,
0.005766346585005522,
0.003277774900197983,
-0.07803728431463242,
-0.009986055083572865,
-0.00951012596487999,
0.05311829596757889,
-0.10725509375333786,
-0.0315902978181839,
-0.021721990779042244,
-0.09757392108440399,
-0.03710928559303284,
-0.046832375228405,
-0.022962406277656555,
0.17989392578601837,
-0.03868749365210533,
0.06666310131549835,
0.1259697824716568,
-0.03093135356903076,
0.045887596905231476,
-0.03351641818881035,
0.16692687571048737,
0.02098795771598816,
0.08173451572656631,
0.17577815055847168,
0.009468836709856987,
0.10002920031547546,
0.011615024879574776,
0.03197663649916649,
-0.037580858916044235,
0.045209579169750214,
-0.07230788469314575,
-0.0683397501707077,
-0.19240789115428925,
-0.07839181274175644,
-0.05667874217033386,
0.08881336450576782,
0.0816037654876709,
0.06710455566644669,
0.07774655520915985,
0.10898256301879883,
0.013688324019312859,
0.06221124902367592,
0.03433728590607643,
0.07640504837036133,
0.05047250911593437,
-0.020386261865496635,
0.13082048296928406,
-0.00044546660501509905,
-0.05640244483947754,
0.08864101767539978,
-0.055206820368766785,
0.19634795188903809,
-0.05480903387069702,
0.07958975434303284,
0.09476513415575027,
0.19127409160137177,
0.03367144986987114,
0.15417678654193878,
-0.021417807787656784,
0.01394767314195633,
-0.03966665267944336,
-0.0945301502943039,
0.06483644992113113,
0.03513849899172783,
-0.08475082367658615,
-0.06190817803144455,
-0.04093442112207413,
-0.008915804326534271,
0.050088170915842056,
0.13270410895347595,
0.014581727795302868,
-0.28419262170791626,
-0.018416594713926315,
-0.03114691935479641,
-0.009948178194463253,
-0.03822769224643707,
0.04613671079277992,
0.07300245761871338,
-0.12343980371952057,
-0.0198562890291214,
-0.057855091989040375,
0.12307720631361008,
0.016245905309915543,
0.04404756426811218,
-0.012760484591126442,
0.05838121473789215,
-0.026510830968618393,
0.10847990214824677,
-0.2584241032600403,
0.15610574185848236,
-0.004882790148258209,
-0.011031944304704666,
-0.09084820002317429,
-0.014120044186711311,
0.041585322469472885,
0.04950812831521034,
0.14397606253623962,
-0.01679893769323826,
0.06780505180358887,
-0.06042487546801567,
-0.04735000804066658,
0.01644369214773178,
0.04979084059596062,
-0.007115345448255539,
0.03915650397539139,
0.020027711987495422,
-0.016039317473769188,
0.0004908101400360465,
0.0960870087146759,
-0.06596831232309341,
-0.05335773155093193,
0.025114867836236954,
0.06332866847515106,
-0.045168038457632065,
0.010024914517998695,
-0.04535490274429321,
-0.1045909896492958,
0.10286956280469894,
-0.021435029804706573,
-0.14891889691352844,
-0.0918075293302536,
0.019053349271416664,
0.018284684047102928,
-0.09719612449407578,
0.005544951651245356,
-0.03216647356748581,
0.04895588383078575,
-0.05539510399103165,
-0.19755151867866516,
0.060057107359170914,
-0.09081296622753143,
-0.0755278691649437,
-0.016561871394515038,
0.09055499732494354,
0.04857827350497246,
-0.02708955481648445,
-0.0008523267460986972,
-0.03227910399436951,
-0.12635931372642517,
-0.13871827721595764,
-0.020179126411676407,
0.009655655361711979,
0.05194054916501045,
-0.031410619616508484,
-0.06248832494020462,
-0.05701424553990364,
-0.06665993481874466,
0.06710377335548401,
0.15606237947940826,
0.11839362978935242,
-0.10657335817813873,
0.13541579246520996,
0.1496395468711853,
-0.06754820048809052,
-0.26287370920181274,
-0.14783373475074768,
0.0012072885874658823,
-0.008565414696931839,
0.05587470158934593,
-0.131614089012146,
0.09409140050411224,
-0.011628950946033001,
-0.02350585348904133,
0.09710299968719482,
-0.30546724796295166,
-0.11810281872749329,
0.15909549593925476,
0.08868888765573502,
0.20720043778419495,
-0.10614164173603058,
-0.060183871537446976,
0.0032090931199491024,
-0.004719562362879515,
0.11005251109600067,
-0.13988745212554932,
0.08356126397848129,
-0.05724962800741196,
0.06587374955415726,
0.024895647540688515,
-0.037185464054346085,
0.01901032030582428,
0.025675302371382713,
0.05493404343724251,
-0.08472700417041779,
0.04737198352813721,
0.09232197701931,
-0.01857682690024376,
0.14392642676830292,
-0.1259540170431137,
0.09945173561573029,
-0.06718499958515167,
-0.045917194336652756,
-0.07241848111152649,
0.1075545996427536,
0.01827658899128437,
-0.06491809338331223,
-0.02206948585808277,
-0.046523481607437134,
0.0351894274353981,
-0.007206005975604057,
-0.024150075390934944,
-0.01082709152251482,
0.07122011482715607,
0.2634013891220093,
-0.0030420708935707808,
-0.09511742740869522,
-0.08142133057117462,
-0.03657723590731621,
-0.030607789754867554,
0.07635050266981125,
-0.10084843635559082,
-0.023980407044291496,
0.07819633930921555,
0.020274948328733444,
0.05413464084267616,
0.07115505635738373,
-0.052834607660770416,
-0.004632240626960993,
0.028517069295048714,
-0.23601916432380676,
-0.07082012295722961,
-0.09861709922552109,
-0.1048908457159996,
0.006634596735239029,
0.07442521303892136,
0.117549829185009,
-0.09191834181547165,
-0.02665831334888935,
-0.014202840626239777,
0.007249839603900909,
-0.0271533764898777,
0.08676968514919281,
0.08651552349328995,
0.028654873371124268,
-0.10421928763389587,
0.042814623564481735,
0.06399893015623093,
0.037060126662254333,
-0.018868885934352875,
0.08933892846107483,
-0.14341047406196594,
-0.12429770082235336,
0.019681161269545555,
0.07106926292181015,
-0.058374982327222824,
-0.033443424850702286,
-0.052407171577215195,
-0.04247583448886871,
0.05994487553834915,
0.11568243056535721,
0.049350373446941376,
0.038808681070804596,
-0.036435566842556,
-0.06281305104494095,
-0.042507171630859375,
0.0889841690659523,
0.08475957065820694,
-0.007652251049876213,
-0.11108598113059998,
0.12046076357364655,
-0.02208387851715088,
0.15619158744812012,
-0.07833288609981537,
-0.023665260523557663,
-0.10251469165086746,
-0.0017019340302795172,
-0.06996630132198334,
0.0569155216217041,
-0.09162811934947968,
-0.020780518651008606,
-0.032260555773973465,
0.02283787913620472,
0.008472866378724575,
0.042365532368421555,
-0.052089106291532516,
-0.00037462430191226304,
-0.008284909650683403,
0.05972592905163765,
-0.12515008449554443,
-0.06285052746534348,
-0.033987753093242645,
-0.014386119320988655,
0.1336870938539505,
0.12167326360940933,
-0.13853807747364044,
0.02867296151816845,
-0.11470494419336319,
-0.002677990822121501,
0.041400231420993805,
0.02926727384328842,
0.005935975816100836,
0.01554947905242443,
0.016388967633247375,
0.010124465450644493,
-0.005616635084152222,
-0.008342089131474495,
-0.009286382235586643,
-0.14647744596004486,
0.05397474765777588,
-0.03225824609398842,
0.0447327196598053,
-0.09370706230401993,
0.02502540871500969,
-0.02674107439815998,
0.07806450128555298,
0.08793472498655319,
-0.09632376581430435,
0.0843302309513092,
-0.12575408816337585,
0.010282034054398537,
0.02378476969897747,
-0.14840605854988098,
-0.10061492770910263,
-0.059029869735240936,
0.038055263459682465,
-0.048573870211839676,
0.15284273028373718,
0.09315625578165054,
-0.07183922082185745,
-0.03912875056266785,
0.07788998633623123,
0.0784449353814125,
-0.020832408219575882,
0.12653464078903198,
-0.030998706817626953,
-0.026076797395944595,
-0.11264668405056,
0.10173193365335464,
0.05271532014012337,
0.009933898225426674,
0.08876533806324005,
0.04404503107070923,
-0.046193644404411316,
0.06057089567184448,
-0.0041906521655619144,
0.009903205558657646,
-0.0754643902182579,
-0.13000860810279846,
-0.038031645119190216,
0.09841076284646988,
-0.04846596717834473,
0.06257364153862,
0.13192886114120483,
0.002145184436812997,
0.04991317540407181,
0.06319616734981537,
-0.07838859409093857,
-0.11947081238031387,
-0.2546307146549225,
-0.0472973994910717,
-0.09681269526481628,
-0.050631918013095856,
-0.09121177345514297,
0.002297618892043829,
-0.01765734888613224,
0.034256644546985626,
-0.02961048297584057,
0.09759461134672165,
0.1577218919992447,
-0.11655782908201218,
0.10417230427265167,
-0.05163407325744629,
0.0019004391506314278,
-0.033467065542936325,
0.015849418938159943,
0.020230092108249664,
-0.01581997238099575,
-0.008174778893589973,
0.026548968628048897,
0.06115160137414932,
0.04013272747397423,
-0.1067628338932991,
-0.08547445386648178,
-0.03860943019390106,
0.044022087007761,
-0.018923189491033554,
0.07514028996229172,
0.03687574714422226,
-0.08059675991535187,
-0.00817811582237482,
0.20249193906784058,
-0.023679662495851517,
-0.041074011474847794,
-0.026708241552114487,
0.31818723678588867,
0.06085317209362984,
0.0006983052007853985,
0.025130610913038254,
-0.016739271581172943,
-0.04240667074918747,
0.2678506672382355,
0.2681196928024292,
-0.0467039979994297,
0.0318186916410923,
0.010663098655641079,
-0.0031940785702317953,
0.07089650630950928,
0.14679591357707977,
0.04452841356396675,
0.22014957666397095,
-0.03120872937142849,
0.051324862986803055,
-0.04246901720762253,
0.007603103294968605,
-0.1404688060283661,
0.00936126708984375,
0.06026183068752289,
-0.04423881694674492,
-0.003121710615232587,
0.08308383822441101,
-0.224844291806221,
-0.05444590374827385,
-0.08516103029251099,
0.008013305254280567,
-0.05240989848971367,
-0.03485928848385811,
-0.012185072526335716,
0.05495784804224968,
0.08878536522388458,
-0.05386921763420105,
0.06984338909387589,
0.07760888338088989,
-0.013759728521108627,
-0.12291962653398514,
0.06137672811746597,
0.04824031889438629,
-0.15344342589378357,
0.07666637748479843,
-0.020373588427901268,
0.1055794209241867,
0.053161680698394775,
0.004629812203347683,
-0.10345754772424698,
0.07642517983913422,
-0.029862551018595695,
-0.020741622895002365,
0.06586296856403351,
-0.014202837832272053,
0.037216268479824066,
-0.1573951691389084,
-0.00727832829579711,
-0.05657683312892914,
-0.011479800567030907,
-0.037654805928468704,
0.022970100864768028,
-0.08437628298997879,
0.026063378900289536,
-0.003282855497673154,
0.057882633060216904,
0.08208546787500381,
-0.07095324993133545,
-0.010219903662800789,
-0.07449208199977875,
-0.03214804828166962,
-0.004585466347634792,
-0.08997195214033127,
-0.022008299827575684,
-0.1099700927734375,
-0.041445933282375336,
-0.014462371356785297,
0.0392930842936039,
-0.23360207676887512,
0.023754199966788292,
-0.05373585969209671,
-0.02552507258951664,
-0.06820915639400482,
0.04356105253100395,
0.08866286277770996,
0.016275402158498764,
0.0075387232936918736,
0.07633747905492783,
-0.05061610788106918,
0.05636608973145485,
-0.13173265755176544,
-0.07934878766536713
] |
null | null | transformers |
# OpenAI GPT 1
## Table of Contents
- [Model Details](#model-details)
- [How To Get Started With the Model](#how-to-get-started-with-the-model)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation)
- [Environmental Impact](#environmental-impact)
- [Technical Specifications](#technical-specifications)
- [Citation Information](#citation-information)
- [Model Card Authors](#model-card-authors)
## Model Details
**Model Description:** `openai-gpt` (a.k.a. "GPT-1") is the first transformer-based language model created and released by OpenAI. The model is a causal (unidirectional) transformer pre-trained using language modeling on a large corpus with long range dependencies.
- **Developed by:** Alec Radford, Karthik Narasimhan, Tim Salimans, Ilya Sutskever. See [associated research paper](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf) and [GitHub repo](https://github.com/openai/finetune-transformer-lm) for model developers and contributors.
- **Model Type:** Transformer-based language model
- **Language(s):** English
- **License:** [MIT License](https://github.com/openai/finetune-transformer-lm/blob/master/LICENSE)
- **Related Models:** [GPT2](https://huggingface.co/gpt2), [GPT2-Medium](https://huggingface.co/gpt2-medium), [GPT2-Large](https://huggingface.co/gpt2-large) and [GPT2-XL](https://huggingface.co/gpt2-xl)
- **Resources for more information:**
- [Research Paper](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf)
- [OpenAI Blog Post](https://openai.com/blog/language-unsupervised/)
- [GitHub Repo](https://github.com/openai/finetune-transformer-lm)
- Test the full generation capabilities here: https://transformer.huggingface.co/doc/gpt
## How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
set a seed for reproducibility:
```python
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='openai-gpt')
>>> set_seed(42)
>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
[{'generated_text': "Hello, I'm a language model,'he said, when i was finished.'ah well,'said the man,'that's"},
{'generated_text': 'Hello, I\'m a language model, " she said. \n she reached the bottom of the shaft and leaned a little further out. it was'},
{'generated_text': 'Hello, I\'m a language model, " she laughed. " we call that a\'white girl.\'or as we are called by the'},
{'generated_text': 'Hello, I\'m a language model, " said mr pin. " an\'the ones with the funny hats don\'t. " the rest of'},
{'generated_text': 'Hello, I\'m a language model, was\'ere \'bout to do some more dancin \', " he said, then his voice lowered to'}]
```
Here is how to use this model in PyTorch:
```python
from transformers import OpenAIGPTTokenizer, OpenAIGPTModel
import torch
tokenizer = OpenAIGPTTokenizer.from_pretrained("openai-gpt")
model = OpenAIGPTModel.from_pretrained("openai-gpt")
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
```
and in TensorFlow:
```python
from transformers import OpenAIGPTTokenizer, TFOpenAIGPTModel
tokenizer = OpenAIGPTTokenizer.from_pretrained("openai-gpt")
model = TFOpenAIGPTModel.from_pretrained("openai-gpt")
inputs = tokenizer("Hello, my dog is cute", return_tensors="tf")
outputs = model(inputs)
last_hidden_states = outputs.last_hidden_state
```
## Uses
#### Direct Use
This model can be used for language modeling tasks.
#### Downstream Use
Potential downstream uses of this model include tasks that leverage language models. In the [associated paper](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf), the model developers discuss evaluations of the model for tasks including natural language inference (NLI), question answering, semantic similarity, and text classification.
#### Misuse and Out-of-scope Use
The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
## Risks, Limitations and Biases
#### Biases
**CONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
Predictions generated by this model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
```python
>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='openai-gpt')
>>> set_seed(42)
>>> generator("The man worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The man worked as a teacher for the college he'},
{'generated_text': 'The man worked as a janitor at the club.'},
{'generated_text': 'The man worked as a bodyguard in america. the'},
{'generated_text': 'The man worked as a clerk for one of the'},
{'generated_text': 'The man worked as a nurse, but there was'}]
>>> set_seed(42)
>>> generator("The woman worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The woman worked as a medical intern but is a'},
{'generated_text': 'The woman worked as a midwife, i know that'},
{'generated_text': 'The woman worked as a prostitute in a sex club'},
{'generated_text': 'The woman worked as a secretary for one of the'},
{'generated_text': 'The woman worked as a nurse, but she had'}]
```
This bias may also affect fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
#### Risks and Limitations
The model developers also wrote in a [blog post](https://openai.com/blog/language-unsupervised/) about risks and limitations of the model, including:
> - **Compute Requirements:** Many previous approaches to NLP tasks train relatively small models on a single GPU from scratch. Our approach requires an expensive pre-training step - 1 month on 8 GPUs. Luckily, this only has to be done once and we’re releasing our model so others can avoid it. It is also a large model (in comparison to prior work) and consequently uses more compute and memory — we used a 37-layer (12 block) Transformer architecture, and we train on sequences of up to 512 tokens. Most experiments were conducted on 4 and 8 GPU systems. The model does fine-tune to new tasks very quickly which helps mitigate the additional resource requirements.
> - **The limits and bias of learning about the world through text:** Books and text readily available on the internet do not contain complete or even accurate information about the world. Recent work ([Lucy and Gauthier, 2017](https://arxiv.org/abs/1705.11168)) has shown that certain kinds of information are difficult to learn via just text and other work ([Gururangan et al., 2018](https://arxiv.org/abs/1803.02324)) has shown that models learn and exploit biases in data distributions.
> - **Still brittle generalization:** Although our approach improves performance across a broad range of tasks, current deep learning NLP models still exhibit surprising and counterintuitive behavior - especially when evaluated in a systematic, adversarial, or out-of-distribution way. Our approach is not immune to these issues, though we have observed some indications of progress. Our approach shows improved lexical robustness over previous purely neural approaches to textual entailment. On the dataset introduced in Glockner et al. (2018) our model achieves 83.75%, performing similarly to KIM, which incorporates external knowledge via WordNet.
## Training
#### Training Data
The model developers [write](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf):
> We use the BooksCorpus dataset ([Zhu et al., 2015](https://www.cv-foundation.org/openaccess/content_iccv_2015/papers/Zhu_Aligning_Books_and_ICCV_2015_paper.pdf)) for training the language model. It contains over 7,000 unique unpublished books from a variety of genres including Adventure, Fantasy, and Romance. Crucially, it contains long stretches of contiguous text, which allows the generative model to learn to condition on long-range information.
#### Training Procedure
The model developers [write](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf):
> Our model largely follows the original transformer work [62]. We trained a 12-layer decoder-only transformer with masked self-attention heads (768 dimensional states and 12 attention heads). For the position-wise feed-forward networks, we used 3072 dimensional inner states. We used the Adam optimization scheme [27] with a max learning rate of 2.5e-4. The learning rate was increased linearly from zero over the first 2000 updates and annealed to 0 using a cosine schedule. We train for 100 epochs on minibatches of 64 randomly sampled, contiguous sequences of 512 tokens. Since layernorm [2] is used extensively throughout the model, a simple weight initialization of N (0, 0.02) was sufficient. We used a bytepair encoding (BPE) vocabulary with 40,000 merges [53] and residual, embedding, and attention dropouts with a rate of 0.1 for regularization. We also employed a modified version of L2 regularization proposed in [37], with w = 0.01 on all non bias or gain weights. For the activation function, we used the Gaussian Error Linear Unit (GELU) [18]. We used learned position embeddings instead of the sinusoidal version proposed in the original work. We use the ftfy library2 to clean the raw text in BooksCorpus, standardize some punctuation and whitespace, and use the spaCy tokenizer.
See the paper for further details and links to citations.
## Evaluation
The following evaluation information is extracted from the [associated blog post](https://openai.com/blog/language-unsupervised/). See the [associated paper](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf) for further details.
#### Testing Data, Factors and Metrics
The model developers report that the model was evaluated on the following tasks and datasets using the listed metrics:
- **Task:** Textual Entailment
- **Datasets:** [SNLI](https://huggingface.co/datasets/snli), [MNLI Matched](https://huggingface.co/datasets/glue), [MNLI Mismatched](https://huggingface.co/datasets/glue), [SciTail](https://huggingface.co/datasets/scitail), [QNLI](https://huggingface.co/datasets/glue), [RTE](https://huggingface.co/datasets/glue)
- **Metrics:** Accuracy
- **Task:** Semantic Similarity
- **Datasets:** [STS-B](https://huggingface.co/datasets/glue), [QQP](https://huggingface.co/datasets/glue), [MRPC](https://huggingface.co/datasets/glue)
- **Metrics:** Accuracy
- **Task:** Reading Comprehension
- **Datasets:** [RACE](https://huggingface.co/datasets/race)
- **Metrics:** Accuracy
- **Task:** Commonsense Reasoning
- **Datasets:** [ROCStories](https://huggingface.co/datasets/story_cloze), [COPA](https://huggingface.co/datasets/xcopa)
- **Metrics:** Accuracy
- **Task:** Sentiment Analysis
- **Datasets:** [SST-2](https://huggingface.co/datasets/glue)
- **Metrics:** Accuracy
- **Task:** Linguistic Acceptability
- **Datasets:** [CoLA](https://huggingface.co/datasets/glue)
- **Metrics:** Accuracy
- **Task:** Multi Task Benchmark
- **Datasets:** [GLUE](https://huggingface.co/datasets/glue)
- **Metrics:** Accuracy
#### Results
The model achieves the following results without any fine-tuning (zero-shot):
| Task | TE | TE | TE |TE | TE | TE | SS | SS | SS | RC | CR | CR | SA | LA | MTB |
|:--------:|:--:|:----------:|:-------------:|:-----:|:----:|:---:|:---:|:---:|:--:|:----:|:--------:|:----:|:----:|:----:|:----:|
| Dataset |SNLI|MNLI Matched|MNLI Mismatched|SciTail| QNLI | RTE |STS-B| QQP |MPRC|RACE |ROCStories|COPA | SST-2| CoLA | GLUE |
| |89.9| 82.1 | 81.4 |88.3 | 88.1 | 56.0|82.0 | 70.3|82.3|59.0 | 86.5 | 78.6 | 91.3 | 45.4 | 72.8 |
## Environmental Impact
The model developers [report that](https://openai.com/blog/language-unsupervised/):
> The total compute used to train this model was 0.96 petaflop days (pfs-days).
> 8 P600 GPU's * 30 days * 12 TFLOPS/GPU * 0.33 utilization = .96 pfs-days
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** 8 P600 GPUs
- **Hours used:** 720 hours (30 days)
- **Cloud Provider:** Unknown
- **Compute Region:** Unknown
- **Carbon Emitted:** Unknown
## Technical Specifications
See the [associated paper](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf) for details on the modeling architecture, objective, compute infrastructure, and training details.
## Citation Information
```bibtex
@article{radford2018improving,
title={Improving language understanding by generative pre-training},
author={Radford, Alec and Narasimhan, Karthik and Salimans, Tim and Sutskever, Ilya and others},
year={2018},
publisher={OpenAI}
}
```
APA:
*Radford, A., Narasimhan, K., Salimans, T., & Sutskever, I. (2018). Improving language understanding by generative pre-training.*
## Model Card Authors
This model card was written by the Hugging Face team. | {"language": "en", "license": "mit"} | text-generation | openai-community/openai-gpt | [
"transformers",
"pytorch",
"tf",
"rust",
"safetensors",
"openai-gpt",
"text-generation",
"en",
"arxiv:1705.11168",
"arxiv:1803.02324",
"arxiv:1910.09700",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1705.11168",
"1803.02324",
"1910.09700"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #rust #safetensors #openai-gpt #text-generation #en #arxiv-1705.11168 #arxiv-1803.02324 #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us
| OpenAI GPT 1
============
Table of Contents
-----------------
* Model Details
* How To Get Started With the Model
* Uses
* Risks, Limitations and Biases
* Training
* Evaluation
* Environmental Impact
* Technical Specifications
* Citation Information
* Model Card Authors
Model Details
-------------
Model Description: 'openai-gpt' (a.k.a. "GPT-1") is the first transformer-based language model created and released by OpenAI. The model is a causal (unidirectional) transformer pre-trained using language modeling on a large corpus with long range dependencies.
* Developed by: Alec Radford, Karthik Narasimhan, Tim Salimans, Ilya Sutskever. See associated research paper and GitHub repo for model developers and contributors.
* Model Type: Transformer-based language model
* Language(s): English
* License: MIT License
* Related Models: GPT2, GPT2-Medium, GPT2-Large and GPT2-XL
* Resources for more information:
+ Research Paper
+ OpenAI Blog Post
+ GitHub Repo
+ Test the full generation capabilities here: URL
How to Get Started with the Model
---------------------------------
Use the code below to get started with the model. You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
set a seed for reproducibility:
Here is how to use this model in PyTorch:
and in TensorFlow:
Uses
----
#### Direct Use
This model can be used for language modeling tasks.
#### Downstream Use
Potential downstream uses of this model include tasks that leverage language models. In the associated paper, the model developers discuss evaluations of the model for tasks including natural language inference (NLI), question answering, semantic similarity, and text classification.
#### Misuse and Out-of-scope Use
The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
Risks, Limitations and Biases
-----------------------------
#### Biases
CONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
Predictions generated by this model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
This bias may also affect fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
#### Risks and Limitations
The model developers also wrote in a blog post about risks and limitations of the model, including:
>
> * Compute Requirements: Many previous approaches to NLP tasks train relatively small models on a single GPU from scratch. Our approach requires an expensive pre-training step - 1 month on 8 GPUs. Luckily, this only has to be done once and we’re releasing our model so others can avoid it. It is also a large model (in comparison to prior work) and consequently uses more compute and memory — we used a 37-layer (12 block) Transformer architecture, and we train on sequences of up to 512 tokens. Most experiments were conducted on 4 and 8 GPU systems. The model does fine-tune to new tasks very quickly which helps mitigate the additional resource requirements.
> * The limits and bias of learning about the world through text: Books and text readily available on the internet do not contain complete or even accurate information about the world. Recent work (Lucy and Gauthier, 2017) has shown that certain kinds of information are difficult to learn via just text and other work (Gururangan et al., 2018) has shown that models learn and exploit biases in data distributions.
> * Still brittle generalization: Although our approach improves performance across a broad range of tasks, current deep learning NLP models still exhibit surprising and counterintuitive behavior - especially when evaluated in a systematic, adversarial, or out-of-distribution way. Our approach is not immune to these issues, though we have observed some indications of progress. Our approach shows improved lexical robustness over previous purely neural approaches to textual entailment. On the dataset introduced in Glockner et al. (2018) our model achieves 83.75%, performing similarly to KIM, which incorporates external knowledge via WordNet.
>
>
>
Training
--------
#### Training Data
The model developers write:
>
> We use the BooksCorpus dataset (Zhu et al., 2015) for training the language model. It contains over 7,000 unique unpublished books from a variety of genres including Adventure, Fantasy, and Romance. Crucially, it contains long stretches of contiguous text, which allows the generative model to learn to condition on long-range information.
>
>
>
#### Training Procedure
The model developers write:
>
> Our model largely follows the original transformer work [62]. We trained a 12-layer decoder-only transformer with masked self-attention heads (768 dimensional states and 12 attention heads). For the position-wise feed-forward networks, we used 3072 dimensional inner states. We used the Adam optimization scheme [27] with a max learning rate of 2.5e-4. The learning rate was increased linearly from zero over the first 2000 updates and annealed to 0 using a cosine schedule. We train for 100 epochs on minibatches of 64 randomly sampled, contiguous sequences of 512 tokens. Since layernorm [2] is used extensively throughout the model, a simple weight initialization of N (0, 0.02) was sufficient. We used a bytepair encoding (BPE) vocabulary with 40,000 merges [53] and residual, embedding, and attention dropouts with a rate of 0.1 for regularization. We also employed a modified version of L2 regularization proposed in [37], with w = 0.01 on all non bias or gain weights. For the activation function, we used the Gaussian Error Linear Unit (GELU) [18]. We used learned position embeddings instead of the sinusoidal version proposed in the original work. We use the ftfy library2 to clean the raw text in BooksCorpus, standardize some punctuation and whitespace, and use the spaCy tokenizer.
>
>
>
See the paper for further details and links to citations.
Evaluation
----------
The following evaluation information is extracted from the associated blog post. See the associated paper for further details.
#### Testing Data, Factors and Metrics
The model developers report that the model was evaluated on the following tasks and datasets using the listed metrics:
* Task: Textual Entailment
+ Datasets: SNLI, MNLI Matched, MNLI Mismatched, SciTail, QNLI, RTE
+ Metrics: Accuracy
* Task: Semantic Similarity
+ Datasets: STS-B, QQP, MRPC
+ Metrics: Accuracy
* Task: Reading Comprehension
+ Datasets: RACE
+ Metrics: Accuracy
* Task: Commonsense Reasoning
+ Datasets: ROCStories, COPA
+ Metrics: Accuracy
* Task: Sentiment Analysis
+ Datasets: SST-2
+ Metrics: Accuracy
* Task: Linguistic Acceptability
+ Datasets: CoLA
+ Metrics: Accuracy
* Task: Multi Task Benchmark
+ Datasets: GLUE
+ Metrics: Accuracy
#### Results
The model achieves the following results without any fine-tuning (zero-shot):
Environmental Impact
--------------------
The model developers report that:
>
> The total compute used to train this model was 0.96 petaflop days (pfs-days).
>
>
>
>
> 8 P600 GPU's \* 30 days \* 12 TFLOPS/GPU \* 0.33 utilization = .96 pfs-days
>
>
>
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
* Hardware Type: 8 P600 GPUs
* Hours used: 720 hours (30 days)
* Cloud Provider: Unknown
* Compute Region: Unknown
* Carbon Emitted: Unknown
Technical Specifications
------------------------
See the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.
APA:
*Radford, A., Narasimhan, K., Salimans, T., & Sutskever, I. (2018). Improving language understanding by generative pre-training.*
Model Card Authors
------------------
This model card was written by the Hugging Face team.
| [
"#### Direct Use\n\n\nThis model can be used for language modeling tasks.",
"#### Downstream Use\n\n\nPotential downstream uses of this model include tasks that leverage language models. In the associated paper, the model developers discuss evaluations of the model for tasks including natural language inference (NLI), question answering, semantic similarity, and text classification.",
"#### Misuse and Out-of-scope Use\n\n\nThe model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.\n\n\nRisks, Limitations and Biases\n-----------------------------",
"#### Biases\n\n\nCONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\nPredictions generated by this model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias may also affect fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"#### Risks and Limitations\n\n\nThe model developers also wrote in a blog post about risks and limitations of the model, including:\n\n\n\n> \n> * Compute Requirements: Many previous approaches to NLP tasks train relatively small models on a single GPU from scratch. Our approach requires an expensive pre-training step - 1 month on 8 GPUs. Luckily, this only has to be done once and we’re releasing our model so others can avoid it. It is also a large model (in comparison to prior work) and consequently uses more compute and memory — we used a 37-layer (12 block) Transformer architecture, and we train on sequences of up to 512 tokens. Most experiments were conducted on 4 and 8 GPU systems. The model does fine-tune to new tasks very quickly which helps mitigate the additional resource requirements.\n> * The limits and bias of learning about the world through text: Books and text readily available on the internet do not contain complete or even accurate information about the world. Recent work (Lucy and Gauthier, 2017) has shown that certain kinds of information are difficult to learn via just text and other work (Gururangan et al., 2018) has shown that models learn and exploit biases in data distributions.\n> * Still brittle generalization: Although our approach improves performance across a broad range of tasks, current deep learning NLP models still exhibit surprising and counterintuitive behavior - especially when evaluated in a systematic, adversarial, or out-of-distribution way. Our approach is not immune to these issues, though we have observed some indications of progress. Our approach shows improved lexical robustness over previous purely neural approaches to textual entailment. On the dataset introduced in Glockner et al. (2018) our model achieves 83.75%, performing similarly to KIM, which incorporates external knowledge via WordNet.\n> \n> \n> \n\n\nTraining\n--------",
"#### Training Data\n\n\nThe model developers write:\n\n\n\n> \n> We use the BooksCorpus dataset (Zhu et al., 2015) for training the language model. It contains over 7,000 unique unpublished books from a variety of genres including Adventure, Fantasy, and Romance. Crucially, it contains long stretches of contiguous text, which allows the generative model to learn to condition on long-range information.\n> \n> \n>",
"#### Training Procedure\n\n\nThe model developers write:\n\n\n\n> \n> Our model largely follows the original transformer work [62]. We trained a 12-layer decoder-only transformer with masked self-attention heads (768 dimensional states and 12 attention heads). For the position-wise feed-forward networks, we used 3072 dimensional inner states. We used the Adam optimization scheme [27] with a max learning rate of 2.5e-4. The learning rate was increased linearly from zero over the first 2000 updates and annealed to 0 using a cosine schedule. We train for 100 epochs on minibatches of 64 randomly sampled, contiguous sequences of 512 tokens. Since layernorm [2] is used extensively throughout the model, a simple weight initialization of N (0, 0.02) was sufficient. We used a bytepair encoding (BPE) vocabulary with 40,000 merges [53] and residual, embedding, and attention dropouts with a rate of 0.1 for regularization. We also employed a modified version of L2 regularization proposed in [37], with w = 0.01 on all non bias or gain weights. For the activation function, we used the Gaussian Error Linear Unit (GELU) [18]. We used learned position embeddings instead of the sinusoidal version proposed in the original work. We use the ftfy library2 to clean the raw text in BooksCorpus, standardize some punctuation and whitespace, and use the spaCy tokenizer.\n> \n> \n> \n\n\nSee the paper for further details and links to citations.\n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated blog post. See the associated paper for further details.",
"#### Testing Data, Factors and Metrics\n\n\nThe model developers report that the model was evaluated on the following tasks and datasets using the listed metrics:\n\n\n* Task: Textual Entailment\n\n\n\t+ Datasets: SNLI, MNLI Matched, MNLI Mismatched, SciTail, QNLI, RTE\n\t+ Metrics: Accuracy\n* Task: Semantic Similarity\n\n\n\t+ Datasets: STS-B, QQP, MRPC\n\t+ Metrics: Accuracy\n* Task: Reading Comprehension\n\n\n\t+ Datasets: RACE\n\t+ Metrics: Accuracy\n* Task: Commonsense Reasoning\n\n\n\t+ Datasets: ROCStories, COPA\n\t+ Metrics: Accuracy\n* Task: Sentiment Analysis\n\n\n\t+ Datasets: SST-2\n\t+ Metrics: Accuracy\n* Task: Linguistic Acceptability\n\n\n\t+ Datasets: CoLA\n\t+ Metrics: Accuracy\n* Task: Multi Task Benchmark\n\n\n\t+ Datasets: GLUE\n\t+ Metrics: Accuracy",
"#### Results\n\n\nThe model achieves the following results without any fine-tuning (zero-shot):\n\n\n\nEnvironmental Impact\n--------------------\n\n\nThe model developers report that:\n\n\n\n> \n> The total compute used to train this model was 0.96 petaflop days (pfs-days).\n> \n> \n> \n\n\n\n> \n> 8 P600 GPU's \\* 30 days \\* 12 TFLOPS/GPU \\* 0.33 utilization = .96 pfs-days\n> \n> \n> \n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n\n* Hardware Type: 8 P600 GPUs\n* Hours used: 720 hours (30 days)\n* Cloud Provider: Unknown\n* Compute Region: Unknown\n* Carbon Emitted: Unknown\n\n\nTechnical Specifications\n------------------------\n\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.\n\n\nAPA:\n*Radford, A., Narasimhan, K., Salimans, T., & Sutskever, I. (2018). Improving language understanding by generative pre-training.*\n\n\nModel Card Authors\n------------------\n\n\nThis model card was written by the Hugging Face team."
] | [
"TAGS\n#transformers #pytorch #tf #rust #safetensors #openai-gpt #text-generation #en #arxiv-1705.11168 #arxiv-1803.02324 #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"#### Direct Use\n\n\nThis model can be used for language modeling tasks.",
"#### Downstream Use\n\n\nPotential downstream uses of this model include tasks that leverage language models. In the associated paper, the model developers discuss evaluations of the model for tasks including natural language inference (NLI), question answering, semantic similarity, and text classification.",
"#### Misuse and Out-of-scope Use\n\n\nThe model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.\n\n\nRisks, Limitations and Biases\n-----------------------------",
"#### Biases\n\n\nCONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\nPredictions generated by this model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias may also affect fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"#### Risks and Limitations\n\n\nThe model developers also wrote in a blog post about risks and limitations of the model, including:\n\n\n\n> \n> * Compute Requirements: Many previous approaches to NLP tasks train relatively small models on a single GPU from scratch. Our approach requires an expensive pre-training step - 1 month on 8 GPUs. Luckily, this only has to be done once and we’re releasing our model so others can avoid it. It is also a large model (in comparison to prior work) and consequently uses more compute and memory — we used a 37-layer (12 block) Transformer architecture, and we train on sequences of up to 512 tokens. Most experiments were conducted on 4 and 8 GPU systems. The model does fine-tune to new tasks very quickly which helps mitigate the additional resource requirements.\n> * The limits and bias of learning about the world through text: Books and text readily available on the internet do not contain complete or even accurate information about the world. Recent work (Lucy and Gauthier, 2017) has shown that certain kinds of information are difficult to learn via just text and other work (Gururangan et al., 2018) has shown that models learn and exploit biases in data distributions.\n> * Still brittle generalization: Although our approach improves performance across a broad range of tasks, current deep learning NLP models still exhibit surprising and counterintuitive behavior - especially when evaluated in a systematic, adversarial, or out-of-distribution way. Our approach is not immune to these issues, though we have observed some indications of progress. Our approach shows improved lexical robustness over previous purely neural approaches to textual entailment. On the dataset introduced in Glockner et al. (2018) our model achieves 83.75%, performing similarly to KIM, which incorporates external knowledge via WordNet.\n> \n> \n> \n\n\nTraining\n--------",
"#### Training Data\n\n\nThe model developers write:\n\n\n\n> \n> We use the BooksCorpus dataset (Zhu et al., 2015) for training the language model. It contains over 7,000 unique unpublished books from a variety of genres including Adventure, Fantasy, and Romance. Crucially, it contains long stretches of contiguous text, which allows the generative model to learn to condition on long-range information.\n> \n> \n>",
"#### Training Procedure\n\n\nThe model developers write:\n\n\n\n> \n> Our model largely follows the original transformer work [62]. We trained a 12-layer decoder-only transformer with masked self-attention heads (768 dimensional states and 12 attention heads). For the position-wise feed-forward networks, we used 3072 dimensional inner states. We used the Adam optimization scheme [27] with a max learning rate of 2.5e-4. The learning rate was increased linearly from zero over the first 2000 updates and annealed to 0 using a cosine schedule. We train for 100 epochs on minibatches of 64 randomly sampled, contiguous sequences of 512 tokens. Since layernorm [2] is used extensively throughout the model, a simple weight initialization of N (0, 0.02) was sufficient. We used a bytepair encoding (BPE) vocabulary with 40,000 merges [53] and residual, embedding, and attention dropouts with a rate of 0.1 for regularization. We also employed a modified version of L2 regularization proposed in [37], with w = 0.01 on all non bias or gain weights. For the activation function, we used the Gaussian Error Linear Unit (GELU) [18]. We used learned position embeddings instead of the sinusoidal version proposed in the original work. We use the ftfy library2 to clean the raw text in BooksCorpus, standardize some punctuation and whitespace, and use the spaCy tokenizer.\n> \n> \n> \n\n\nSee the paper for further details and links to citations.\n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated blog post. See the associated paper for further details.",
"#### Testing Data, Factors and Metrics\n\n\nThe model developers report that the model was evaluated on the following tasks and datasets using the listed metrics:\n\n\n* Task: Textual Entailment\n\n\n\t+ Datasets: SNLI, MNLI Matched, MNLI Mismatched, SciTail, QNLI, RTE\n\t+ Metrics: Accuracy\n* Task: Semantic Similarity\n\n\n\t+ Datasets: STS-B, QQP, MRPC\n\t+ Metrics: Accuracy\n* Task: Reading Comprehension\n\n\n\t+ Datasets: RACE\n\t+ Metrics: Accuracy\n* Task: Commonsense Reasoning\n\n\n\t+ Datasets: ROCStories, COPA\n\t+ Metrics: Accuracy\n* Task: Sentiment Analysis\n\n\n\t+ Datasets: SST-2\n\t+ Metrics: Accuracy\n* Task: Linguistic Acceptability\n\n\n\t+ Datasets: CoLA\n\t+ Metrics: Accuracy\n* Task: Multi Task Benchmark\n\n\n\t+ Datasets: GLUE\n\t+ Metrics: Accuracy",
"#### Results\n\n\nThe model achieves the following results without any fine-tuning (zero-shot):\n\n\n\nEnvironmental Impact\n--------------------\n\n\nThe model developers report that:\n\n\n\n> \n> The total compute used to train this model was 0.96 petaflop days (pfs-days).\n> \n> \n> \n\n\n\n> \n> 8 P600 GPU's \\* 30 days \\* 12 TFLOPS/GPU \\* 0.33 utilization = .96 pfs-days\n> \n> \n> \n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n\n* Hardware Type: 8 P600 GPUs\n* Hours used: 720 hours (30 days)\n* Cloud Provider: Unknown\n* Compute Region: Unknown\n* Carbon Emitted: Unknown\n\n\nTechnical Specifications\n------------------------\n\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.\n\n\nAPA:\n*Radford, A., Narasimhan, K., Salimans, T., & Sutskever, I. (2018). Improving language understanding by generative pre-training.*\n\n\nModel Card Authors\n------------------\n\n\nThis model card was written by the Hugging Face team."
] | [
88,
16,
63,
65,
168,
429,
95,
391,
242,
265
] | [
"passage: TAGS\n#transformers #pytorch #tf #rust #safetensors #openai-gpt #text-generation #en #arxiv-1705.11168 #arxiv-1803.02324 #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n#### Direct Use\n\n\nThis model can be used for language modeling tasks.#### Downstream Use\n\n\nPotential downstream uses of this model include tasks that leverage language models. In the associated paper, the model developers discuss evaluations of the model for tasks including natural language inference (NLI), question answering, semantic similarity, and text classification.#### Misuse and Out-of-scope Use\n\n\nThe model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.\n\n\nRisks, Limitations and Biases\n-----------------------------#### Biases\n\n\nCONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\nPredictions generated by this model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nThis bias may also affect fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"passage: #### Risks and Limitations\n\n\nThe model developers also wrote in a blog post about risks and limitations of the model, including:\n\n\n\n> \n> * Compute Requirements: Many previous approaches to NLP tasks train relatively small models on a single GPU from scratch. Our approach requires an expensive pre-training step - 1 month on 8 GPUs. Luckily, this only has to be done once and we’re releasing our model so others can avoid it. It is also a large model (in comparison to prior work) and consequently uses more compute and memory — we used a 37-layer (12 block) Transformer architecture, and we train on sequences of up to 512 tokens. Most experiments were conducted on 4 and 8 GPU systems. The model does fine-tune to new tasks very quickly which helps mitigate the additional resource requirements.\n> * The limits and bias of learning about the world through text: Books and text readily available on the internet do not contain complete or even accurate information about the world. Recent work (Lucy and Gauthier, 2017) has shown that certain kinds of information are difficult to learn via just text and other work (Gururangan et al., 2018) has shown that models learn and exploit biases in data distributions.\n> * Still brittle generalization: Although our approach improves performance across a broad range of tasks, current deep learning NLP models still exhibit surprising and counterintuitive behavior - especially when evaluated in a systematic, adversarial, or out-of-distribution way. Our approach is not immune to these issues, though we have observed some indications of progress. Our approach shows improved lexical robustness over previous purely neural approaches to textual entailment. On the dataset introduced in Glockner et al. (2018) our model achieves 83.75%, performing similarly to KIM, which incorporates external knowledge via WordNet.\n> \n> \n> \n\n\nTraining\n--------#### Training Data\n\n\nThe model developers write:\n\n\n\n> \n> We use the BooksCorpus dataset (Zhu et al., 2015) for training the language model. It contains over 7,000 unique unpublished books from a variety of genres including Adventure, Fantasy, and Romance. Crucially, it contains long stretches of contiguous text, which allows the generative model to learn to condition on long-range information.\n> \n> \n>#### Training Procedure\n\n\nThe model developers write:\n\n\n\n> \n> Our model largely follows the original transformer work [62]. We trained a 12-layer decoder-only transformer with masked self-attention heads (768 dimensional states and 12 attention heads). For the position-wise feed-forward networks, we used 3072 dimensional inner states. We used the Adam optimization scheme [27] with a max learning rate of 2.5e-4. The learning rate was increased linearly from zero over the first 2000 updates and annealed to 0 using a cosine schedule. We train for 100 epochs on minibatches of 64 randomly sampled, contiguous sequences of 512 tokens. Since layernorm [2] is used extensively throughout the model, a simple weight initialization of N (0, 0.02) was sufficient. We used a bytepair encoding (BPE) vocabulary with 40,000 merges [53] and residual, embedding, and attention dropouts with a rate of 0.1 for regularization. We also employed a modified version of L2 regularization proposed in [37], with w = 0.01 on all non bias or gain weights. For the activation function, we used the Gaussian Error Linear Unit (GELU) [18]. We used learned position embeddings instead of the sinusoidal version proposed in the original work. We use the ftfy library2 to clean the raw text in BooksCorpus, standardize some punctuation and whitespace, and use the spaCy tokenizer.\n> \n> \n> \n\n\nSee the paper for further details and links to citations.\n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated blog post. See the associated paper for further details."
] | [
-0.07708853483200073,
0.11527907848358154,
-0.0007205852307379246,
0.06650640815496445,
0.06657902896404266,
-0.028245331719517708,
0.060649897903203964,
0.05388390272855759,
0.043075915426015854,
0.06896008551120758,
0.040524400770664215,
-0.008633563295006752,
0.06028119847178459,
0.09383957087993622,
0.03443783521652222,
-0.1963520646095276,
0.056158632040023804,
-0.08788419514894485,
0.04543037712574005,
0.07824406772851944,
0.06318975985050201,
-0.07430307567119598,
0.0662531852722168,
0.018116461113095284,
0.039890676736831665,
-0.03870351240038872,
-0.041995227336883545,
-0.024334535002708435,
0.11892151832580566,
0.05955565720796585,
0.03523603081703186,
0.01604614593088627,
0.02972523123025894,
-0.2255578637123108,
0.03474289923906326,
0.05951613187789917,
0.01594584807753563,
0.055845651775598526,
0.08604562282562256,
0.04820365458726883,
0.20534095168113708,
-0.06951285898685455,
0.041933268308639526,
0.05584891140460968,
-0.07277357578277588,
-0.07191934436559677,
-0.10001203417778015,
0.041154492646455765,
0.03626769781112671,
0.057171911001205444,
-0.03725510835647583,
0.18853351473808289,
-0.009891342371702194,
0.04074312373995781,
0.1772594004869461,
-0.1929263174533844,
-0.013614142313599586,
0.03613589331507683,
0.003933487460017204,
0.060830481350421906,
-0.06280763447284698,
0.039852324873209,
0.046414345502853394,
0.044935401529073715,
0.025067098438739777,
-0.002946825698018074,
0.0999264046549797,
-0.04976811632514,
-0.1394282579421997,
-0.054352447390556335,
0.09562556445598602,
0.02992294169962406,
-0.11401274800300598,
-0.18689490854740143,
-0.028008081018924713,
0.08211379498243332,
0.020741822198033333,
-0.06178978830575943,
-0.008604278787970543,
-0.009835891425609589,
0.08553378283977509,
-0.06761971116065979,
-0.07392078638076782,
-0.024945516139268875,
-0.04842091351747513,
0.17225605249404907,
0.05399647727608681,
0.04803701490163803,
0.0129271624609828,
0.09848326444625854,
0.008236851543188095,
-0.061371877789497375,
-0.0793704241514206,
-0.10461465269327164,
-0.03720400482416153,
-0.018930848687887192,
-0.002622358500957489,
0.03874954953789711,
0.017871573567390442,
0.06378692388534546,
-0.13309155404567719,
-0.0009171022102236748,
0.0033729691058397293,
0.02146732062101364,
0.1251729130744934,
0.03907954320311546,
-0.0625205710530281,
-0.04466494917869568,
0.0801091194152832,
0.057593997567892075,
0.06590127944946289,
-0.036541879177093506,
0.007532899267971516,
-0.05527036637067795,
0.05806975066661835,
0.08288748562335968,
0.045611828565597534,
0.04561550170183182,
-0.04328946769237518,
-0.01853478141129017,
0.15237276256084442,
-0.08690039068460464,
-0.06650595366954803,
-0.0031193215399980545,
-0.07746905088424683,
-0.013555902987718582,
0.025419600307941437,
-0.029595833271741867,
-0.0792553722858429,
-0.018178798258304596,
-0.10075438022613525,
-0.06356752663850784,
-0.06219479814171791,
-0.12969323992729187,
0.05162908881902695,
-0.01731044054031372,
-0.027090702205896378,
-0.12018030881881714,
-0.21533921360969543,
-0.03742996230721474,
-0.009022790938615799,
-0.04205123707652092,
-0.03162820637226105,
-0.01587093621492386,
-0.04387198016047478,
-0.02625999227166176,
-0.006152572110295296,
-0.012563659809529781,
-0.05140332877635956,
0.02678942307829857,
-0.07430414855480194,
0.05205627158284187,
0.07027695327997208,
-0.014797930605709553,
-0.1373155415058136,
0.046411655843257904,
-0.06995382905006409,
0.09881709516048431,
-0.042437005788087845,
-0.07244344800710678,
-0.05275232717394829,
-0.06548506766557693,
-0.05309472605586052,
0.07074140012264252,
0.04108969494700432,
0.19473904371261597,
-0.11925975233316422,
-0.006394008174538612,
0.1346779763698578,
-0.16563737392425537,
-0.11207011342048645,
0.13085372745990753,
-0.057545747607946396,
0.08255179226398468,
0.11914803087711334,
0.040265895426273346,
0.0668092742562294,
-0.030428949743509293,
-0.09811290353536606,
-0.018908530473709106,
-0.0265659149736166,
0.133041650056839,
0.016466796398162842,
-0.015033144503831863,
0.010367058217525482,
-0.007403967902064323,
-0.038216620683670044,
0.02536676824092865,
-0.04739818722009659,
-0.022638149559497833,
0.001025814563035965,
-0.0391673818230629,
0.03743843734264374,
-0.0058630602434277534,
-0.02716527134180069,
-0.015852971002459526,
-0.11138687282800674,
-0.08452826738357544,
0.10262846946716309,
-0.05104872211813927,
0.007911442779004574,
-0.10150334239006042,
0.05752754211425781,
-0.024451496079564095,
0.011923931539058685,
-0.16364341974258423,
-0.07419344782829285,
0.04731073975563049,
-0.16656026244163513,
0.06514321267604828,
0.10114383697509766,
0.015699665993452072,
0.07395995408296585,
-0.016065919771790504,
0.027049239724874496,
-0.040185876190662384,
0.0016498751938343048,
-0.05460422486066818,
-0.1480463147163391,
0.031074417755007744,
-0.05745084583759308,
0.04747980833053589,
-0.19212764501571655,
-0.016660679131746292,
0.07293163239955902,
0.054093822836875916,
0.01551384013146162,
-0.061275627464056015,
0.051201656460762024,
0.00564055610448122,
-0.04471505805850029,
-0.06502220779657364,
0.00629763025790453,
-0.016893673688173294,
-0.09466829895973206,
0.1293681412935257,
-0.20535293221473694,
-0.03389621153473854,
0.07225870341062546,
0.007050549611449242,
-0.07958921790122986,
-0.05032613128423691,
-0.026731763035058975,
-0.030274920165538788,
-0.07358123362064362,
-0.010197605937719345,
0.188126802444458,
0.03853385150432587,
0.05226027965545654,
-0.10744361579418182,
-0.010060518980026245,
0.0035579069517552853,
-0.02906089462339878,
-0.00796654261648655,
0.060611311346292496,
-0.03224708139896393,
-0.2105865478515625,
0.029365312308073044,
-0.0026839924976229668,
-0.00852998998016119,
0.12319125235080719,
0.03932105004787445,
-0.08967390656471252,
0.0014526769518852234,
-0.012145185843110085,
-0.012499939650297165,
0.1131216511130333,
-0.04414871335029602,
0.01832267828285694,
0.03209323063492775,
0.03743802383542061,
0.05486921966075897,
-0.09212538599967957,
0.022864624857902527,
0.019168097525835037,
-0.011710042133927345,
-0.04868469387292862,
0.03588712587952614,
-0.012163742445409298,
0.11933476477861404,
0.011552694253623486,
0.00757057499140501,
-0.006868311204016209,
-0.07001231610774994,
-0.12890616059303284,
0.1905589997768402,
-0.04017522931098938,
-0.23886696994304657,
-0.06426987797021866,
0.06161566451191902,
-0.04002649337053299,
0.002397221513092518,
0.0031125277746468782,
-0.044183604419231415,
-0.08940759301185608,
-0.13122163712978363,
0.049777135252952576,
-0.02354898862540722,
-0.06572716683149338,
-0.03598926588892937,
0.009860262274742126,
-0.027442825958132744,
-0.11288750171661377,
-0.0029785388614982367,
-0.01037521567195654,
-0.08407798409461975,
0.010451659560203552,
-0.010483923368155956,
0.09199010580778122,
0.1101064532995224,
0.015131848864257336,
-0.05282720923423767,
-0.02787378989160061,
0.18120218813419342,
-0.09059331566095352,
0.03812352195382118,
0.18199759721755981,
-0.04702255129814148,
0.08267638832330704,
0.06921502202749252,
0.015895122662186623,
-0.05822291225194931,
0.06090565025806427,
0.029871296137571335,
-0.06185169517993927,
-0.1993223875761032,
-0.07821144908666611,
-0.012907342053949833,
-0.005134100094437599,
0.026212692260742188,
0.04435533285140991,
0.053253646939992905,
0.06324946880340576,
-0.11811664700508118,
-0.03225812315940857,
0.04998162388801575,
0.08852609992027283,
0.10586126893758774,
-0.010266288183629513,
0.05654172971844673,
-0.041598934680223465,
-0.0000010239891707897186,
0.09876000881195068,
-0.029850158840417862,
0.25704607367515564,
-0.09348246455192566,
0.11293401569128036,
0.08921647071838379,
0.05315062776207924,
0.041128985583782196,
0.048067107796669006,
0.014111900702118874,
0.02098821848630905,
-0.07266724854707718,
-0.05194009840488434,
-0.0549655519425869,
0.0907130092382431,
-0.04436391964554787,
-0.013389352709054947,
-0.033859144896268845,
0.006201013922691345,
0.0339973047375679,
0.07717877626419067,
0.012177877128124237,
-0.12025167047977448,
-0.07665716856718063,
0.04171239957213402,
-0.06356196105480194,
-0.06921964883804321,
0.058139368891716,
0.12189990282058716,
-0.14526280760765076,
0.029316548258066177,
-0.011797265149652958,
0.07430651783943176,
-0.13735663890838623,
-0.0020166574977338314,
-0.08553335070610046,
0.04889476299285889,
-0.0522322915494442,
0.10892833024263382,
-0.17116019129753113,
0.1632990837097168,
0.008749047294259071,
0.07748986780643463,
-0.11195997893810272,
-0.024311253800988197,
0.07634754478931427,
-0.014852533116936684,
0.1134718582034111,
0.011495571583509445,
-0.018917175009846687,
-0.05806374549865723,
-0.035971567034721375,
0.03524047136306763,
0.019063511863350868,
0.01943432353436947,
0.0977102518081665,
-0.006462616380304098,
0.05057763680815697,
-0.03235667943954468,
-0.03329606354236603,
-0.15837958455085754,
-0.13922271132469177,
0.032154981046915054,
-0.08950865268707275,
-0.07098053395748138,
-0.09121406078338623,
-0.07095076143741608,
0.004323858767747879,
0.11995405703783035,
-0.09604828804731369,
-0.09342826902866364,
-0.07119616866111755,
0.041276104748249054,
0.10007571429014206,
-0.06530573964118958,
0.025856170803308487,
0.014893682673573494,
0.12126237154006958,
-0.03342403471469879,
-0.03300773352384567,
0.004872250370681286,
-0.08554735034704208,
-0.19830718636512756,
-0.026370607316493988,
0.022806286811828613,
0.15140226483345032,
0.04534450173377991,
0.0023905339185148478,
0.012124013155698776,
-0.003045830875635147,
-0.14445142447948456,
-0.0332757793366909,
0.13783296942710876,
0.018748212605714798,
0.09382122755050659,
0.031066954135894775,
-0.020089931786060333,
-0.12672585248947144,
-0.06839434057474136,
0.044120628386735916,
0.24766111373901367,
-0.03559292480349541,
0.06942079961299896,
0.1779378056526184,
-0.07866056263446808,
-0.23433610796928406,
-0.00981472060084343,
-0.014217006973922253,
-0.0018000896088778973,
0.1194024458527565,
-0.1252279132604599,
0.01797124184668064,
0.004648883827030659,
-0.016883527860045433,
0.06778547167778015,
-0.23031184077262878,
-0.10774895548820496,
0.11347045749425888,
0.08968235552310944,
0.13066117465496063,
-0.06504693627357483,
-0.008441846817731857,
0.0008788071572780609,
0.04048161208629608,
0.10932248830795288,
-0.059304676949977875,
0.047850582748651505,
0.0032220010180026293,
0.014095377177000046,
0.06148727238178253,
-0.028095649555325508,
0.14717978239059448,
-0.06852272152900696,
0.0789891928434372,
-0.07953925430774689,
0.02003319188952446,
0.009253145195543766,
-0.05033019557595253,
0.08510325849056244,
0.017411774024367332,
0.06283151358366013,
-0.029330318793654442,
-0.07792206108570099,
-0.05733063817024231,
0.05262751877307892,
-0.016366364434361458,
-0.04692205786705017,
-0.10417681932449341,
0.08990968763828278,
0.07448552548885345,
0.00297001120634377,
-0.03390549495816231,
-0.05805949121713638,
0.005364986136555672,
0.07784043997526169,
0.19537456333637238,
0.07154485583305359,
-0.006468329578638077,
0.01959439367055893,
-0.0071459743194282055,
0.06599988043308258,
-0.09860420227050781,
-0.008814966306090355,
0.07990138232707977,
0.025182686746120453,
0.06700102984905243,
0.009471342898905277,
-0.16745272278785706,
0.03158985823392868,
0.00003887573257088661,
-0.10114693641662598,
-0.15887147188186646,
-0.025230351835489273,
0.048608385026454926,
-0.0656181052327156,
-0.05073308199644089,
0.12040151655673981,
-0.08181753754615784,
0.00524603808298707,
-0.01290198601782322,
0.07070937752723694,
0.04698067158460617,
0.08272150158882141,
0.050731927156448364,
0.038462817668914795,
-0.05469288304448128,
0.12289401143789291,
0.03772259131073952,
-0.09311015158891678,
0.08320930600166321,
0.022492121905088425,
-0.08493247628211975,
-0.03510791435837746,
-0.09404445439577103,
0.03808069974184036,
-0.04103516787290573,
-0.11190780997276306,
-0.02111467719078064,
-0.024445360526442528,
-0.03279752656817436,
0.18152326345443726,
0.02863040193915367,
0.07901623100042343,
-0.038132667541503906,
0.003723321482539177,
-0.04899433255195618,
0.08771537244319916,
0.064417265355587,
-0.011122969910502434,
-0.10586206614971161,
0.04283621162176132,
0.05580451339483261,
0.030912283807992935,
-0.04425107687711716,
-0.04189314693212509,
-0.07110081613063812,
-0.009527716785669327,
-0.1644328087568283,
0.049444779753685,
-0.09445221722126007,
-0.0038892552256584167,
-0.018349412828683853,
-0.025545602664351463,
-0.021425761282444,
0.033694468438625336,
-0.02584926038980484,
0.021546324715018272,
0.0005100499838590622,
0.06588657945394516,
-0.10745706409215927,
-0.023670125752687454,
0.07559598982334137,
-0.07605814933776855,
0.08766092360019684,
-0.036912575364112854,
-0.06857326626777649,
0.04438605159521103,
-0.11650806665420532,
0.10563445836305618,
-0.00734938308596611,
0.03790101408958435,
-0.04605964943766594,
-0.12146198749542236,
-0.019188174977898598,
-0.0047776298597455025,
-0.026090925559401512,
-0.0060487426817417145,
0.03207141533493996,
-0.047965098172426224,
-0.005106285214424133,
0.042562440037727356,
-0.007409336976706982,
-0.05955497547984123,
0.03343682363629341,
0.11697767674922943,
0.03595675900578499,
0.0875430703163147,
-0.02393871359527111,
0.02841527760028839,
-0.11694929003715515,
-0.007306133396923542,
0.0288339052349329,
0.0455113910138607,
0.0035989005118608475,
-0.01222418062388897,
0.05514410883188248,
-0.005962577648460865,
0.26324260234832764,
-0.04500364512205124,
-0.032471913844347,
0.03872064873576164,
0.007365196943283081,
-0.01203925721347332,
0.0018369955942034721,
-0.005339508876204491,
-0.023985808715224266,
-0.008914783596992493,
-0.034095026552677155,
-0.006532699801027775,
-0.043890126049518585,
-0.11384508013725281,
0.1435289978981018,
0.032914016395807266,
0.0846111848950386,
0.04957620054483414,
-0.04180210828781128,
-0.0793447494506836,
0.01766192354261875,
-0.05113780125975609,
0.04275880381464958,
-0.01167774386703968,
-0.06762027740478516,
0.116097092628479,
0.15394318103790283,
-0.0513213649392128,
0.07990762591362,
-0.030957579612731934,
-0.05136346071958542,
-0.1050119549036026,
-0.16538125276565552,
-0.027378618717193604,
-0.012338061816990376,
0.015429314225912094,
-0.12574011087417603,
0.030294330790638924,
0.1626560091972351,
0.006083079148083925,
-0.06939034909009933,
0.07158713042736053,
-0.058389659970998764,
-0.10200779139995575,
0.04037241265177727,
0.0029849540442228317,
0.0473422147333622,
0.07643204182386398,
0.0076299998909235,
0.012270485982298851,
0.03542241454124451,
0.05494488403201103,
0.07878674566745758,
0.007065163925290108,
0.027923891320824623,
-0.04648372530937195,
-0.06824259459972382,
-0.012976572848856449,
0.0065923891961574554,
0.07250694930553436,
0.22391772270202637,
0.0599963515996933,
-0.04598327726125717,
-0.0032688453793525696,
0.2226259857416153,
-0.010493054054677486,
-0.002518630586564541,
-0.08236528933048248,
0.2322385609149933,
-0.0032670293003320694,
-0.02622358128428459,
0.06542369723320007,
-0.11127568781375885,
0.06204000115394592,
0.11385299265384674,
0.11894168704748154,
-0.08649750053882599,
-0.030240792781114578,
-0.041753511875867844,
-0.002928439062088728,
-0.010890552774071693,
0.07549400627613068,
0.0030494770035147667,
0.30456602573394775,
-0.07122578471899033,
0.07013630867004395,
-0.029120776802301407,
0.024786578491330147,
-0.004365632310509682,
0.09278565645217896,
0.023395558819174767,
0.04204516112804413,
-0.14048784971237183,
0.0835224986076355,
-0.0840836688876152,
-0.2482743263244629,
-0.040691569447517395,
-0.04187308996915817,
-0.06821712851524353,
0.019430004060268402,
-0.11517781019210815,
-0.0037483901251107454,
0.0806456059217453,
0.010907310992479324,
0.029893629252910614,
0.031138725578784943,
0.005138218402862549,
-0.058069273829460144,
-0.01372465305030346,
0.09723682701587677,
0.012884052470326424,
0.22593781352043152,
0.006892893463373184,
0.1509629487991333,
0.09618042409420013,
-0.022560089826583862,
-0.11058932542800903,
0.01112920232117176,
0.00908785592764616,
-0.0024831383489072323,
0.00889832153916359,
0.1366274058818817,
0.03130675479769707,
-0.006002815440297127,
0.12019605934619904,
-0.02557038515806198,
0.06393355876207352,
-0.0281910989433527,
-0.038920897990465164,
-0.09825630486011505,
0.08788071572780609,
-0.0772136002779007,
0.159007728099823,
0.07935039699077606,
-0.03652265667915344,
0.019118618220090866,
-0.02501632831990719,
-0.004700117278844118,
-0.03582817316055298,
0.0961911678314209,
0.051683858036994934,
-0.12503370642662048,
0.02883417345583439,
-0.01899680122733116,
0.02968398854136467,
-0.23687416315078735,
-0.028263913467526436,
0.024351222440600395,
-0.004447261802852154,
-0.009486782364547253,
0.06214289367198944,
0.001421031542122364,
-0.0019711381755769253,
-0.03567848727107048,
-0.026973236352205276,
-0.014989398419857025,
0.0665489137172699,
-0.08917979896068573,
-0.0682387724518776
] |
null | null | transformers |
# RoBERTa Base OpenAI Detector
## Table of Contents
- [Model Details](#model-details)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation)
- [Environmental Impact](#environmental-impact)
- [Technical Specifications](#technical-specifications)
- [Citation Information](#citation-information)
- [Model Card Authors](#model-card-author)
- [How To Get Started With the Model](#how-to-get-started-with-the-model)
## Model Details
**Model Description:** RoBERTa base OpenAI Detector is the GPT-2 output detector model, obtained by fine-tuning a RoBERTa base model with the outputs of the 1.5B-parameter GPT-2 model. The model can be used to predict if text was generated by a GPT-2 model. This model was released by OpenAI at the same time as OpenAI released the weights of the [largest GPT-2 model](https://huggingface.co/gpt2-xl), the 1.5B parameter version.
- **Developed by:** OpenAI, see [GitHub Repo](https://github.com/openai/gpt-2-output-dataset/tree/master/detector) and [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for full author list
- **Model Type:** Fine-tuned transformer-based language model
- **Language(s):** English
- **License:** MIT
- **Related Models:** [RoBERTa base](https://huggingface.co/roberta-base), [GPT-XL (1.5B parameter version)](https://huggingface.co/gpt2-xl), [GPT-Large (the 774M parameter version)](https://huggingface.co/gpt2-large), [GPT-Medium (the 355M parameter version)](https://huggingface.co/gpt2-medium) and [GPT-2 (the 124M parameter version)](https://huggingface.co/gpt2)
- **Resources for more information:**
- [Research Paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) (see, in particular, the section beginning on page 12 about Automated ML-based detection).
- [GitHub Repo](https://github.com/openai/gpt-2-output-dataset/tree/master/detector)
- [OpenAI Blog Post](https://openai.com/blog/gpt-2-1-5b-release/)
- [Explore the detector model here](https://huggingface.co/openai-detector )
## Uses
#### Direct Use
The model is a classifier that can be used to detect text generated by GPT-2 models. However, it is strongly suggested not to use it as a ChatGPT detector for the purposes of making grave allegations of academic misconduct against undergraduates and others, as this model might give inaccurate results in the case of ChatGPT-generated input.
#### Downstream Use
The model's developers have stated that they developed and released the model to help with research related to synthetic text generation, so the model could potentially be used for downstream tasks related to synthetic text generation. See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for further discussion.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model developers discuss the risk of adversaries using the model to better evade detection in their [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf), suggesting that using the model for evading detection or for supporting efforts to evade detection would be a misuse of the model.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.**
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
#### Risks and Limitations
In their [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf), the model developers discuss the risk that the model may be used by bad actors to develop capabilities for evading detection, though one purpose of releasing the model is to help improve detection research.
In a related [blog post](https://openai.com/blog/gpt-2-1-5b-release/), the model developers also discuss the limitations of automated methods for detecting synthetic text and the need to pair automated detection tools with other, non-automated approaches. They write:
> We conducted in-house detection research and developed a detection model that has detection rates of ~95% for detecting 1.5B GPT-2-generated text. We believe this is not high enough accuracy for standalone detection and needs to be paired with metadata-based approaches, human judgment, and public education to be more effective.
The model developers also [report](https://openai.com/blog/gpt-2-1-5b-release/) finding that classifying content from larger models is more difficult, suggesting that detection with automated tools like this model will be increasingly difficult as model sizes increase. The authors find that training detector models on the outputs of larger models can improve accuracy and robustness.
#### Bias
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by RoBERTa base and GPT-2 1.5B (which this model is built/fine-tuned on) can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups (see the [RoBERTa base](https://huggingface.co/roberta-base) and [GPT-2 XL](https://huggingface.co/gpt2-xl) model cards for more information). The developers of this model discuss these issues further in their [paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf).
## Training
#### Training Data
The model is a sequence classifier based on RoBERTa base (see the [RoBERTa base model card](https://huggingface.co/roberta-base) for more details on the RoBERTa base training data) and then fine-tuned using the outputs of the 1.5B GPT-2 model (available [here](https://github.com/openai/gpt-2-output-dataset)).
#### Training Procedure
The model developers write that:
> We based a sequence classifier on RoBERTaBASE (125 million parameters) and fine-tuned it to classify the outputs from the 1.5B GPT-2 model versus WebText, the dataset we used to train the GPT-2 model.
They later state:
> To develop a robust detector model that can accurately classify generated texts regardless of the sampling method, we performed an analysis of the model’s transfer performance.
See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for further details on the training procedure.
## Evaluation
The following evaluation information is extracted from the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf).
#### Testing Data, Factors and Metrics
The model is intended to be used for detecting text generated by GPT-2 models, so the model developers test the model on text datasets, measuring accuracy by:
> testing 510-token test examples comprised of 5,000 samples from the WebText dataset and 5,000 samples generated by a GPT-2 model, which were not used during the training.
#### Results
The model developers [find](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf):
> Our classifier is able to detect 1.5 billion parameter GPT-2-generated text with approximately 95% accuracy...The model’s accuracy depends on sampling methods used when generating outputs, like temperature, Top-K, and nucleus sampling ([Holtzman et al., 2019](https://arxiv.org/abs/1904.09751). Nucleus sampling outputs proved most difficult to correctly classify, but a detector trained using nucleus sampling transfers well across other sampling methods. As seen in Figure 1 [in the paper], we found consistently high accuracy when trained on nucleus sampling.
See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf), Figure 1 (on page 14) and Figure 2 (on page 16) for full results.
## Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** Unknown
- **Hours used:** Unknown
- **Cloud Provider:** Unknown
- **Compute Region:** Unknown
- **Carbon Emitted:** Unknown
## Technical Specifications
The model developers write that:
See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for further details on the modeling architecture and training details.
## Citation Information
```bibtex
@article{solaiman2019release,
title={Release strategies and the social impacts of language models},
author={Solaiman, Irene and Brundage, Miles and Clark, Jack and Askell, Amanda and Herbert-Voss, Ariel and Wu, Jeff and Radford, Alec and Krueger, Gretchen and Kim, Jong Wook and Kreps, Sarah and others},
journal={arXiv preprint arXiv:1908.09203},
year={2019}
}
```
APA:
- Solaiman, I., Brundage, M., Clark, J., Askell, A., Herbert-Voss, A., Wu, J., ... & Wang, J. (2019). Release strategies and the social impacts of language models. arXiv preprint arXiv:1908.09203.
https://huggingface.co/papers/1908.09203
## Model Card Authors
This model card was written by the team at Hugging Face.
## How to Get Started with the Model
This model can be instantiated and run with a Transformers pipeline:
```python
from transformers import pipeline
pipe = pipeline("text-classification", model="roberta-base-openai-detector")
print(pipe("Hello world! Is this content AI-generated?")) # [{'label': 'Real', 'score': 0.8036582469940186}]
``` | {"language": "en", "license": "mit", "tags": ["exbert"], "datasets": ["bookcorpus", "wikipedia"]} | text-classification | openai-community/roberta-base-openai-detector | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"roberta",
"text-classification",
"exbert",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1904.09751",
"arxiv:1910.09700",
"arxiv:1908.09203",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1904.09751",
"1910.09700",
"1908.09203"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #safetensors #roberta #text-classification #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1904.09751 #arxiv-1910.09700 #arxiv-1908.09203 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us
|
# RoBERTa Base OpenAI Detector
## Table of Contents
- Model Details
- Uses
- Risks, Limitations and Biases
- Training
- Evaluation
- Environmental Impact
- Technical Specifications
- Citation Information
- Model Card Authors
- How To Get Started With the Model
## Model Details
Model Description: RoBERTa base OpenAI Detector is the GPT-2 output detector model, obtained by fine-tuning a RoBERTa base model with the outputs of the 1.5B-parameter GPT-2 model. The model can be used to predict if text was generated by a GPT-2 model. This model was released by OpenAI at the same time as OpenAI released the weights of the largest GPT-2 model, the 1.5B parameter version.
- Developed by: OpenAI, see GitHub Repo and associated paper for full author list
- Model Type: Fine-tuned transformer-based language model
- Language(s): English
- License: MIT
- Related Models: RoBERTa base, GPT-XL (1.5B parameter version), GPT-Large (the 774M parameter version), GPT-Medium (the 355M parameter version) and GPT-2 (the 124M parameter version)
- Resources for more information:
- Research Paper (see, in particular, the section beginning on page 12 about Automated ML-based detection).
- GitHub Repo
- OpenAI Blog Post
- Explore the detector model here
## Uses
#### Direct Use
The model is a classifier that can be used to detect text generated by GPT-2 models. However, it is strongly suggested not to use it as a ChatGPT detector for the purposes of making grave allegations of academic misconduct against undergraduates and others, as this model might give inaccurate results in the case of ChatGPT-generated input.
#### Downstream Use
The model's developers have stated that they developed and released the model to help with research related to synthetic text generation, so the model could potentially be used for downstream tasks related to synthetic text generation. See the associated paper for further discussion.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model developers discuss the risk of adversaries using the model to better evade detection in their associated paper, suggesting that using the model for evading detection or for supporting efforts to evade detection would be a misuse of the model.
## Risks, Limitations and Biases
CONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
#### Risks and Limitations
In their associated paper, the model developers discuss the risk that the model may be used by bad actors to develop capabilities for evading detection, though one purpose of releasing the model is to help improve detection research.
In a related blog post, the model developers also discuss the limitations of automated methods for detecting synthetic text and the need to pair automated detection tools with other, non-automated approaches. They write:
> We conducted in-house detection research and developed a detection model that has detection rates of ~95% for detecting 1.5B GPT-2-generated text. We believe this is not high enough accuracy for standalone detection and needs to be paired with metadata-based approaches, human judgment, and public education to be more effective.
The model developers also report finding that classifying content from larger models is more difficult, suggesting that detection with automated tools like this model will be increasingly difficult as model sizes increase. The authors find that training detector models on the outputs of larger models can improve accuracy and robustness.
#### Bias
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by RoBERTa base and GPT-2 1.5B (which this model is built/fine-tuned on) can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups (see the RoBERTa base and GPT-2 XL model cards for more information). The developers of this model discuss these issues further in their paper.
## Training
#### Training Data
The model is a sequence classifier based on RoBERTa base (see the RoBERTa base model card for more details on the RoBERTa base training data) and then fine-tuned using the outputs of the 1.5B GPT-2 model (available here).
#### Training Procedure
The model developers write that:
> We based a sequence classifier on RoBERTaBASE (125 million parameters) and fine-tuned it to classify the outputs from the 1.5B GPT-2 model versus WebText, the dataset we used to train the GPT-2 model.
They later state:
> To develop a robust detector model that can accurately classify generated texts regardless of the sampling method, we performed an analysis of the model’s transfer performance.
See the associated paper for further details on the training procedure.
## Evaluation
The following evaluation information is extracted from the associated paper.
#### Testing Data, Factors and Metrics
The model is intended to be used for detecting text generated by GPT-2 models, so the model developers test the model on text datasets, measuring accuracy by:
> testing 510-token test examples comprised of 5,000 samples from the WebText dataset and 5,000 samples generated by a GPT-2 model, which were not used during the training.
#### Results
The model developers find:
> Our classifier is able to detect 1.5 billion parameter GPT-2-generated text with approximately 95% accuracy...The model’s accuracy depends on sampling methods used when generating outputs, like temperature, Top-K, and nucleus sampling (Holtzman et al., 2019. Nucleus sampling outputs proved most difficult to correctly classify, but a detector trained using nucleus sampling transfers well across other sampling methods. As seen in Figure 1 [in the paper], we found consistently high accuracy when trained on nucleus sampling.
See the associated paper, Figure 1 (on page 14) and Figure 2 (on page 16) for full results.
## Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: Unknown
- Hours used: Unknown
- Cloud Provider: Unknown
- Compute Region: Unknown
- Carbon Emitted: Unknown
## Technical Specifications
The model developers write that:
See the associated paper for further details on the modeling architecture and training details.
APA:
- Solaiman, I., Brundage, M., Clark, J., Askell, A., Herbert-Voss, A., Wu, J., ... & Wang, J. (2019). Release strategies and the social impacts of language models. arXiv preprint arXiv:1908.09203.
URL
## Model Card Authors
This model card was written by the team at Hugging Face.
## How to Get Started with the Model
This model can be instantiated and run with a Transformers pipeline:
| [
"# RoBERTa Base OpenAI Detector",
"## Table of Contents\n- Model Details\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors\n- How To Get Started With the Model",
"## Model Details\n\nModel Description: RoBERTa base OpenAI Detector is the GPT-2 output detector model, obtained by fine-tuning a RoBERTa base model with the outputs of the 1.5B-parameter GPT-2 model. The model can be used to predict if text was generated by a GPT-2 model. This model was released by OpenAI at the same time as OpenAI released the weights of the largest GPT-2 model, the 1.5B parameter version. \n\n- Developed by: OpenAI, see GitHub Repo and associated paper for full author list\n- Model Type: Fine-tuned transformer-based language model\n- Language(s): English\n- License: MIT\n- Related Models: RoBERTa base, GPT-XL (1.5B parameter version), GPT-Large (the 774M parameter version), GPT-Medium (the 355M parameter version) and GPT-2 (the 124M parameter version)\n- Resources for more information:\n - Research Paper (see, in particular, the section beginning on page 12 about Automated ML-based detection).\n - GitHub Repo\n - OpenAI Blog Post\n - Explore the detector model here",
"## Uses",
"#### Direct Use\n\nThe model is a classifier that can be used to detect text generated by GPT-2 models. However, it is strongly suggested not to use it as a ChatGPT detector for the purposes of making grave allegations of academic misconduct against undergraduates and others, as this model might give inaccurate results in the case of ChatGPT-generated input.",
"#### Downstream Use\n\nThe model's developers have stated that they developed and released the model to help with research related to synthetic text generation, so the model could potentially be used for downstream tasks related to synthetic text generation. See the associated paper for further discussion.",
"#### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model developers discuss the risk of adversaries using the model to better evade detection in their associated paper, suggesting that using the model for evading detection or for supporting efforts to evade detection would be a misuse of the model.",
"## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"#### Risks and Limitations\n\nIn their associated paper, the model developers discuss the risk that the model may be used by bad actors to develop capabilities for evading detection, though one purpose of releasing the model is to help improve detection research. \n\nIn a related blog post, the model developers also discuss the limitations of automated methods for detecting synthetic text and the need to pair automated detection tools with other, non-automated approaches. They write: \n\n> We conducted in-house detection research and developed a detection model that has detection rates of ~95% for detecting 1.5B GPT-2-generated text. We believe this is not high enough accuracy for standalone detection and needs to be paired with metadata-based approaches, human judgment, and public education to be more effective. \n\nThe model developers also report finding that classifying content from larger models is more difficult, suggesting that detection with automated tools like this model will be increasingly difficult as model sizes increase. The authors find that training detector models on the outputs of larger models can improve accuracy and robustness.",
"#### Bias\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by RoBERTa base and GPT-2 1.5B (which this model is built/fine-tuned on) can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups (see the RoBERTa base and GPT-2 XL model cards for more information). The developers of this model discuss these issues further in their paper.",
"## Training",
"#### Training Data\n\nThe model is a sequence classifier based on RoBERTa base (see the RoBERTa base model card for more details on the RoBERTa base training data) and then fine-tuned using the outputs of the 1.5B GPT-2 model (available here).",
"#### Training Procedure\n\nThe model developers write that: \n\n> We based a sequence classifier on RoBERTaBASE (125 million parameters) and fine-tuned it to classify the outputs from the 1.5B GPT-2 model versus WebText, the dataset we used to train the GPT-2 model.\n\nThey later state: \n\n> To develop a robust detector model that can accurately classify generated texts regardless of the sampling method, we performed an analysis of the model’s transfer performance.\n\nSee the associated paper for further details on the training procedure.",
"## Evaluation\n\nThe following evaluation information is extracted from the associated paper.",
"#### Testing Data, Factors and Metrics\n\nThe model is intended to be used for detecting text generated by GPT-2 models, so the model developers test the model on text datasets, measuring accuracy by: \n\n> testing 510-token test examples comprised of 5,000 samples from the WebText dataset and 5,000 samples generated by a GPT-2 model, which were not used during the training.",
"#### Results\n\nThe model developers find: \n\n> Our classifier is able to detect 1.5 billion parameter GPT-2-generated text with approximately 95% accuracy...The model’s accuracy depends on sampling methods used when generating outputs, like temperature, Top-K, and nucleus sampling (Holtzman et al., 2019. Nucleus sampling outputs proved most difficult to correctly classify, but a detector trained using nucleus sampling transfers well across other sampling methods. As seen in Figure 1 [in the paper], we found consistently high accuracy when trained on nucleus sampling. \t\n\nSee the associated paper, Figure 1 (on page 14) and Figure 2 (on page 16) for full results.",
"## Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Unknown\n- Hours used: Unknown\n- Cloud Provider: Unknown\n- Compute Region: Unknown\n- Carbon Emitted: Unknown",
"## Technical Specifications\n\nThe model developers write that: \n\nSee the associated paper for further details on the modeling architecture and training details.\n\n\n\n\n\nAPA: \n- Solaiman, I., Brundage, M., Clark, J., Askell, A., Herbert-Voss, A., Wu, J., ... & Wang, J. (2019). Release strategies and the social impacts of language models. arXiv preprint arXiv:1908.09203.\n\nURL",
"## Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"## How to Get Started with the Model \n\nThis model can be instantiated and run with a Transformers pipeline:"
] | [
"TAGS\n#transformers #pytorch #tf #jax #safetensors #roberta #text-classification #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1904.09751 #arxiv-1910.09700 #arxiv-1908.09203 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"# RoBERTa Base OpenAI Detector",
"## Table of Contents\n- Model Details\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors\n- How To Get Started With the Model",
"## Model Details\n\nModel Description: RoBERTa base OpenAI Detector is the GPT-2 output detector model, obtained by fine-tuning a RoBERTa base model with the outputs of the 1.5B-parameter GPT-2 model. The model can be used to predict if text was generated by a GPT-2 model. This model was released by OpenAI at the same time as OpenAI released the weights of the largest GPT-2 model, the 1.5B parameter version. \n\n- Developed by: OpenAI, see GitHub Repo and associated paper for full author list\n- Model Type: Fine-tuned transformer-based language model\n- Language(s): English\n- License: MIT\n- Related Models: RoBERTa base, GPT-XL (1.5B parameter version), GPT-Large (the 774M parameter version), GPT-Medium (the 355M parameter version) and GPT-2 (the 124M parameter version)\n- Resources for more information:\n - Research Paper (see, in particular, the section beginning on page 12 about Automated ML-based detection).\n - GitHub Repo\n - OpenAI Blog Post\n - Explore the detector model here",
"## Uses",
"#### Direct Use\n\nThe model is a classifier that can be used to detect text generated by GPT-2 models. However, it is strongly suggested not to use it as a ChatGPT detector for the purposes of making grave allegations of academic misconduct against undergraduates and others, as this model might give inaccurate results in the case of ChatGPT-generated input.",
"#### Downstream Use\n\nThe model's developers have stated that they developed and released the model to help with research related to synthetic text generation, so the model could potentially be used for downstream tasks related to synthetic text generation. See the associated paper for further discussion.",
"#### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model developers discuss the risk of adversaries using the model to better evade detection in their associated paper, suggesting that using the model for evading detection or for supporting efforts to evade detection would be a misuse of the model.",
"## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"#### Risks and Limitations\n\nIn their associated paper, the model developers discuss the risk that the model may be used by bad actors to develop capabilities for evading detection, though one purpose of releasing the model is to help improve detection research. \n\nIn a related blog post, the model developers also discuss the limitations of automated methods for detecting synthetic text and the need to pair automated detection tools with other, non-automated approaches. They write: \n\n> We conducted in-house detection research and developed a detection model that has detection rates of ~95% for detecting 1.5B GPT-2-generated text. We believe this is not high enough accuracy for standalone detection and needs to be paired with metadata-based approaches, human judgment, and public education to be more effective. \n\nThe model developers also report finding that classifying content from larger models is more difficult, suggesting that detection with automated tools like this model will be increasingly difficult as model sizes increase. The authors find that training detector models on the outputs of larger models can improve accuracy and robustness.",
"#### Bias\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by RoBERTa base and GPT-2 1.5B (which this model is built/fine-tuned on) can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups (see the RoBERTa base and GPT-2 XL model cards for more information). The developers of this model discuss these issues further in their paper.",
"## Training",
"#### Training Data\n\nThe model is a sequence classifier based on RoBERTa base (see the RoBERTa base model card for more details on the RoBERTa base training data) and then fine-tuned using the outputs of the 1.5B GPT-2 model (available here).",
"#### Training Procedure\n\nThe model developers write that: \n\n> We based a sequence classifier on RoBERTaBASE (125 million parameters) and fine-tuned it to classify the outputs from the 1.5B GPT-2 model versus WebText, the dataset we used to train the GPT-2 model.\n\nThey later state: \n\n> To develop a robust detector model that can accurately classify generated texts regardless of the sampling method, we performed an analysis of the model’s transfer performance.\n\nSee the associated paper for further details on the training procedure.",
"## Evaluation\n\nThe following evaluation information is extracted from the associated paper.",
"#### Testing Data, Factors and Metrics\n\nThe model is intended to be used for detecting text generated by GPT-2 models, so the model developers test the model on text datasets, measuring accuracy by: \n\n> testing 510-token test examples comprised of 5,000 samples from the WebText dataset and 5,000 samples generated by a GPT-2 model, which were not used during the training.",
"#### Results\n\nThe model developers find: \n\n> Our classifier is able to detect 1.5 billion parameter GPT-2-generated text with approximately 95% accuracy...The model’s accuracy depends on sampling methods used when generating outputs, like temperature, Top-K, and nucleus sampling (Holtzman et al., 2019. Nucleus sampling outputs proved most difficult to correctly classify, but a detector trained using nucleus sampling transfers well across other sampling methods. As seen in Figure 1 [in the paper], we found consistently high accuracy when trained on nucleus sampling. \t\n\nSee the associated paper, Figure 1 (on page 14) and Figure 2 (on page 16) for full results.",
"## Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Unknown\n- Hours used: Unknown\n- Cloud Provider: Unknown\n- Compute Region: Unknown\n- Carbon Emitted: Unknown",
"## Technical Specifications\n\nThe model developers write that: \n\nSee the associated paper for further details on the modeling architecture and training details.\n\n\n\n\n\nAPA: \n- Solaiman, I., Brundage, M., Clark, J., Askell, A., Herbert-Voss, A., Wu, J., ... & Wang, J. (2019). Release strategies and the social impacts of language models. arXiv preprint arXiv:1908.09203.\n\nURL",
"## Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"## How to Get Started with the Model \n\nThis model can be instantiated and run with a Transformers pipeline:"
] | [
100,
10,
52,
258,
3,
88,
62,
88,
74,
248,
133,
2,
64,
125,
15,
97,
175,
68,
106,
18,
26
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #safetensors #roberta #text-classification #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1904.09751 #arxiv-1910.09700 #arxiv-1908.09203 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n# RoBERTa Base OpenAI Detector## Table of Contents\n- Model Details\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors\n- How To Get Started With the Model## Model Details\n\nModel Description: RoBERTa base OpenAI Detector is the GPT-2 output detector model, obtained by fine-tuning a RoBERTa base model with the outputs of the 1.5B-parameter GPT-2 model. The model can be used to predict if text was generated by a GPT-2 model. This model was released by OpenAI at the same time as OpenAI released the weights of the largest GPT-2 model, the 1.5B parameter version. \n\n- Developed by: OpenAI, see GitHub Repo and associated paper for full author list\n- Model Type: Fine-tuned transformer-based language model\n- Language(s): English\n- License: MIT\n- Related Models: RoBERTa base, GPT-XL (1.5B parameter version), GPT-Large (the 774M parameter version), GPT-Medium (the 355M parameter version) and GPT-2 (the 124M parameter version)\n- Resources for more information:\n - Research Paper (see, in particular, the section beginning on page 12 about Automated ML-based detection).\n - GitHub Repo\n - OpenAI Blog Post\n - Explore the detector model here## Uses",
"passage: #### Direct Use\n\nThe model is a classifier that can be used to detect text generated by GPT-2 models. However, it is strongly suggested not to use it as a ChatGPT detector for the purposes of making grave allegations of academic misconduct against undergraduates and others, as this model might give inaccurate results in the case of ChatGPT-generated input.#### Downstream Use\n\nThe model's developers have stated that they developed and released the model to help with research related to synthetic text generation, so the model could potentially be used for downstream tasks related to synthetic text generation. See the associated paper for further discussion.#### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model developers discuss the risk of adversaries using the model to better evade detection in their associated paper, suggesting that using the model for evading detection or for supporting efforts to evade detection would be a misuse of the model.## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.#### Risks and Limitations\n\nIn their associated paper, the model developers discuss the risk that the model may be used by bad actors to develop capabilities for evading detection, though one purpose of releasing the model is to help improve detection research. \n\nIn a related blog post, the model developers also discuss the limitations of automated methods for detecting synthetic text and the need to pair automated detection tools with other, non-automated approaches. They write: \n\n> We conducted in-house detection research and developed a detection model that has detection rates of ~95% for detecting 1.5B GPT-2-generated text. We believe this is not high enough accuracy for standalone detection and needs to be paired with metadata-based approaches, human judgment, and public education to be more effective. \n\nThe model developers also report finding that classifying content from larger models is more difficult, suggesting that detection with automated tools like this model will be increasingly difficult as model sizes increase. The authors find that training detector models on the outputs of larger models can improve accuracy and robustness.",
"passage: #### Bias\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by RoBERTa base and GPT-2 1.5B (which this model is built/fine-tuned on) can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups (see the RoBERTa base and GPT-2 XL model cards for more information). The developers of this model discuss these issues further in their paper.## Training#### Training Data\n\nThe model is a sequence classifier based on RoBERTa base (see the RoBERTa base model card for more details on the RoBERTa base training data) and then fine-tuned using the outputs of the 1.5B GPT-2 model (available here).#### Training Procedure\n\nThe model developers write that: \n\n> We based a sequence classifier on RoBERTaBASE (125 million parameters) and fine-tuned it to classify the outputs from the 1.5B GPT-2 model versus WebText, the dataset we used to train the GPT-2 model.\n\nThey later state: \n\n> To develop a robust detector model that can accurately classify generated texts regardless of the sampling method, we performed an analysis of the model’s transfer performance.\n\nSee the associated paper for further details on the training procedure.## Evaluation\n\nThe following evaluation information is extracted from the associated paper.#### Testing Data, Factors and Metrics\n\nThe model is intended to be used for detecting text generated by GPT-2 models, so the model developers test the model on text datasets, measuring accuracy by: \n\n> testing 510-token test examples comprised of 5,000 samples from the WebText dataset and 5,000 samples generated by a GPT-2 model, which were not used during the training.#### Results\n\nThe model developers find: \n\n> Our classifier is able to detect 1.5 billion parameter GPT-2-generated text with approximately 95% accuracy...The model’s accuracy depends on sampling methods used when generating outputs, like temperature, Top-K, and nucleus sampling (Holtzman et al., 2019. Nucleus sampling outputs proved most difficult to correctly classify, but a detector trained using nucleus sampling transfers well across other sampling methods. As seen in Figure 1 [in the paper], we found consistently high accuracy when trained on nucleus sampling. \t\n\nSee the associated paper, Figure 1 (on page 14) and Figure 2 (on page 16) for full results."
] | [
-0.044608477503061295,
0.13348300755023956,
-0.003627767553552985,
0.04174646735191345,
0.05771888419985771,
-0.022296613082289696,
0.09569516032934189,
0.046411383897066116,
0.03860350325703621,
0.0692179724574089,
0.016169825568795204,
-0.005510623101145029,
0.07269171625375748,
0.09886906296014786,
0.04192030057311058,
-0.20338672399520874,
0.026031354442238808,
-0.10578183084726334,
0.056915417313575745,
0.1086098775267601,
0.11296538263559341,
-0.05338572338223457,
0.08327721059322357,
0.02921161614358425,
0.009537824429571629,
-0.0059632048942148685,
0.006473182234913111,
-0.055342789739370346,
0.06643172353506088,
0.07644840329885483,
0.0627966895699501,
-0.006384344305843115,
0.06743516772985458,
-0.13527096807956696,
0.01820913515985012,
0.06735726445913315,
0.013062350451946259,
0.05640673264861107,
0.0865645706653595,
-0.04812873527407646,
0.16962601244449615,
-0.017897922545671463,
0.08231887966394424,
0.0578729473054409,
-0.09327051043510437,
-0.0848807692527771,
-0.09707994014024734,
0.03667318448424339,
0.05834066867828369,
0.0857343077659607,
-0.0365842841565609,
0.09542646259069443,
0.01013502012938261,
0.02820475958287716,
0.08480742573738098,
-0.12920375168323517,
-0.028006011620163918,
0.012299496680498123,
-0.01350429654121399,
0.11336985975503922,
-0.051074910908937454,
0.014279426075518131,
0.0031981009524315596,
0.01678157038986683,
0.03683396056294441,
-0.004323797766119242,
0.09555566310882568,
-0.028666691854596138,
-0.13301260769367218,
-0.05075092241168022,
0.15171842277050018,
-0.004053968470543623,
-0.10653390735387802,
-0.1930696815252304,
-0.03242257237434387,
0.10998516529798508,
0.0326077826321125,
-0.02685900777578354,
0.0016337704146280885,
0.0031571693252772093,
0.04514405503869057,
-0.08334854990243912,
-0.08530976623296738,
-0.06380847841501236,
-0.050865162163972855,
0.12971746921539307,
0.005625877529382706,
0.03617280349135399,
-0.03334080055356026,
0.13257740437984467,
-0.009538552723824978,
-0.05190503969788551,
-0.06873113662004471,
-0.1036895290017128,
-0.07329487800598145,
-0.020346567034721375,
-0.02233819104731083,
-0.07868816703557968,
-0.0158307533711195,
0.14721843600273132,
-0.05490540340542793,
0.03579384461045265,
-0.010783378034830093,
-0.011238719336688519,
0.10909322649240494,
0.09924254566431046,
-0.05513899028301239,
-0.0288157407194376,
0.028309756889939308,
0.019178161397576332,
0.045230548828840256,
-0.023641223087906837,
0.002757774665951729,
-0.01972164772450924,
0.004435674753040075,
0.060503039509058,
0.04085998609662056,
0.02330215461552143,
-0.05036834999918938,
-0.05186237022280693,
0.11300445348024368,
-0.12729071080684662,
-0.019871214404702187,
0.034266021102666855,
-0.031126907095313072,
-0.009607771411538124,
0.05007469654083252,
-0.02324342168867588,
-0.039306897670030594,
-0.0008865483105182648,
-0.05522556230425835,
-0.039923448115587234,
-0.08364242315292358,
-0.11080960184335709,
-0.005414618644863367,
-0.009806390851736069,
-0.03516743704676628,
-0.11158642172813416,
-0.15064063668251038,
-0.07446715980768204,
0.019589046016335487,
-0.05327640846371651,
-0.006916710641235113,
-0.0005416721105575562,
-0.0010483082151040435,
-0.026231786236166954,
0.01590048521757126,
0.0060715451836586,
-0.012293861247599125,
0.020908571779727936,
-0.04981711506843567,
0.04751176759600639,
0.06229087710380554,
-0.005047633778303862,
-0.0980338454246521,
0.026167159900069237,
-0.16965539753437042,
0.15252870321273804,
-0.06162459775805473,
0.019996142014861107,
-0.0828934907913208,
-0.009873464703559875,
-0.04804762080311775,
0.035777196288108826,
0.0029978984966874123,
0.14617419242858887,
-0.13988402485847473,
-0.03686000034213066,
0.15528862178325653,
-0.14000773429870605,
-0.02742265723645687,
0.06854621320962906,
-0.05657867714762688,
0.11729172617197037,
0.11877745389938354,
0.06217152997851372,
0.10816553980112076,
-0.06880369782447815,
-0.0163196362555027,
-0.0259499941021204,
-0.05744917318224907,
0.17789213359355927,
0.06979084014892578,
-0.06976000219583511,
-0.10347852110862732,
-0.00008965097367763519,
-0.09498661756515503,
-0.01078805048018694,
0.010942545719444752,
-0.040085628628730774,
0.011170434765517712,
-0.01293904334306717,
-0.005609193351119757,
-0.04466809704899788,
-0.045706480741500854,
-0.006874322425574064,
-0.12097590416669846,
-0.022939005866646767,
0.09293743222951889,
-0.04929916188120842,
-0.0007808239315636456,
-0.11854705959558487,
0.042336415499448776,
-0.031181946396827698,
-0.0005288806860335171,
-0.17940926551818848,
-0.04654725268483162,
0.028273150324821472,
-0.15303634107112885,
0.07604490965604782,
0.009323853999376297,
0.04412462189793587,
0.03873689845204353,
-0.006902096327394247,
0.010793153196573257,
-0.01040920615196228,
-0.017205575481057167,
-0.044300008565187454,
-0.13048003613948822,
-0.0017169816419482231,
-0.0479976125061512,
0.13228259980678558,
-0.121762715280056,
0.01859338767826557,
0.07428399473428726,
0.04212711751461029,
0.0351865328848362,
-0.054022710770368576,
0.048944514244794846,
-0.041709188371896744,
-0.01845625787973404,
-0.05529331788420677,
-0.0030100184958428144,
-0.004407725762575865,
-0.10504579544067383,
0.07790926098823547,
-0.15961341559886932,
-0.11542979627847672,
0.05790944769978523,
0.10492667555809021,
-0.10301762819290161,
-0.03898328170180321,
-0.019248349592089653,
0.018299555405974388,
-0.07043864578008652,
-0.06555431336164474,
0.17474275827407837,
0.026592189446091652,
0.030725017189979553,
-0.09390327334403992,
-0.049067746847867966,
-0.015805857256054878,
-0.012461502104997635,
-0.012212897650897503,
0.08032495528459549,
-0.002102220430970192,
-0.14210675656795502,
0.028586596250534058,
0.004859864711761475,
0.04836972430348396,
0.12984798848628998,
0.0457516573369503,
-0.10076726227998734,
-0.017003469169139862,
-0.004449865315109491,
0.0062531977891922,
0.0401000939309597,
0.009510654024779797,
0.021146483719348907,
0.03869218751788139,
0.018996333703398705,
0.015825051814317703,
-0.06909389048814774,
0.05525706335902214,
0.04742810130119324,
-0.005417827516794205,
-0.023849615827202797,
-0.011421401984989643,
-0.01363983005285263,
0.09264131635427475,
0.028525127097964287,
0.051704760640859604,
-0.013568497262895107,
-0.05347367003560066,
-0.1315220445394516,
0.15847095847129822,
-0.05117519572377205,
-0.22139675915241241,
-0.1312718242406845,
0.03168027475476265,
-0.014602240175008774,
0.02946220338344574,
-0.000953440263401717,
-0.06251606345176697,
-0.08525314927101135,
-0.1369563788175583,
0.06201206520199776,
0.01779889687895775,
-0.04902230203151703,
-0.0265949759632349,
0.02836794964969158,
0.01754610799252987,
-0.11679168790578842,
0.0027376741636544466,
-0.0002208494843216613,
-0.09229478985071182,
0.005192674696445465,
0.013936564326286316,
0.0630134865641594,
0.1078522801399231,
0.034043218940496445,
-0.03276456147432327,
-0.003747975453734398,
0.19672836363315582,
-0.0778946802020073,
0.08017220348119736,
0.13937583565711975,
-0.06724060326814651,
0.048619791865348816,
0.08842548727989197,
0.004490882158279419,
-0.06472921371459961,
0.06519510596990585,
0.026716342195868492,
-0.04643971845507622,
-0.2186192274093628,
-0.05523077771067619,
-0.0002718499454203993,
-0.03775240480899811,
0.06525123864412308,
0.038270216435194016,
-0.009578532539308071,
0.05063314363360405,
-0.07309374213218689,
-0.03904496133327484,
0.1186889037489891,
0.07832574844360352,
0.0540754497051239,
-0.03760965168476105,
0.07697276026010513,
-0.0576603077352047,
0.009168202057480812,
0.11193180829286575,
-0.0524912066757679,
0.21623770892620087,
-0.032564450055360794,
0.099964939057827,
0.07081697881221771,
-0.017809124663472176,
0.05427723005414009,
0.03456970676779747,
-0.01760159432888031,
0.05759231373667717,
-0.044588636606931686,
-0.0753156766295433,
-0.06141627952456474,
0.08991134911775589,
-0.026081902906298637,
-0.025747979059815407,
0.008618722669780254,
-0.03719619661569595,
0.052699897438287735,
0.09574504941701889,
0.03583855554461479,
-0.14910925924777985,
-0.08738972991704941,
0.06903626024723053,
-0.06778912991285324,
-0.08770119398832321,
0.019745921716094017,
0.0790720134973526,
-0.14297133684158325,
0.039923183619976044,
-0.015473656356334686,
0.08187862485647202,
-0.12175685167312622,
-0.02068225108087063,
-0.032731279730796814,
0.07135429978370667,
-0.05202751234173775,
0.055992040783166885,
-0.0977739691734314,
0.07454241067171097,
0.007636119145900011,
0.07937505096197128,
-0.08943053334951401,
0.029884809628129005,
0.04175098240375519,
-0.0036560569424182177,
0.13858924806118011,
0.018321536481380463,
-0.05945673584938049,
-0.02001936547458172,
-0.10482460260391235,
0.04003811627626419,
0.04256410896778107,
-0.11488118767738342,
0.09618601202964783,
-0.016816409304738045,
0.011682306416332722,
-0.04906395077705383,
-0.08405932039022446,
-0.1244053766131401,
-0.16634371876716614,
0.03275514766573906,
-0.10062716156244278,
0.05097245052456856,
-0.0711701437830925,
-0.014685000292956829,
0.02099505066871643,
0.10602158308029175,
-0.20847110450267792,
-0.11635017395019531,
-0.1068422794342041,
-0.02097483165562153,
0.10259395837783813,
-0.04601691663265228,
0.030884884297847748,
0.004917840473353863,
0.14459525048732758,
-0.006649252027273178,
-0.0712200328707695,
0.019652919843792915,
-0.06965184956789017,
-0.16001653671264648,
-0.028266916051506996,
0.09182053059339523,
0.1653382033109665,
0.05060853064060211,
-0.004592066165059805,
0.0372978076338768,
-0.011563494801521301,
-0.11767110973596573,
-0.020664574578404427,
0.23581133782863617,
-0.0020987428724765778,
0.06695245951414108,
-0.013097153045237064,
-0.08265849947929382,
-0.1112070381641388,
-0.014802716672420502,
0.03250131383538246,
0.13259673118591309,
-0.018136784434318542,
0.14901868999004364,
0.1495266705751419,
-0.09222882241010666,
-0.16589410603046417,
0.006244389805942774,
0.03968842327594757,
0.044142287224531174,
0.08165691047906876,
-0.20267653465270996,
0.03286014124751091,
0.04416665434837341,
-0.0013473257422447205,
0.04618118330836296,
-0.1880704164505005,
-0.10580838471651077,
0.08694753050804138,
0.027643069624900818,
0.0058393701910972595,
-0.04776662960648537,
-0.0580337755382061,
-0.04688002169132233,
-0.05399562418460846,
0.09295660257339478,
-0.04259416088461876,
0.04224342107772827,
0.020162377506494522,
0.05970856174826622,
0.04431535676121712,
-0.01927565596997738,
0.13087652623653412,
-0.03634599223732948,
0.06568393111228943,
-0.0722876712679863,
0.005541959311813116,
0.025625118985772133,
-0.04796898365020752,
0.11724499613046646,
0.03577082231640816,
0.050280679017305374,
-0.05576899275183678,
-0.10475238412618637,
-0.04535752534866333,
0.039461858570575714,
-0.025842344388365746,
-0.05642275884747505,
-0.06073995307087898,
0.08533307164907455,
0.029140397906303406,
-0.02703218162059784,
-0.045654360204935074,
-0.10713300108909607,
-0.020547332242131233,
0.03074747323989868,
0.19896961748600006,
0.09453470259904861,
-0.015833547338843346,
0.008987651206552982,
-0.009860110469162464,
0.08464082330465317,
-0.12192428112030029,
0.03393460810184479,
0.05556454136967659,
0.01442019920796156,
0.09945724159479141,
-0.005940230097621679,
-0.16464807093143463,
0.022402828559279442,
0.022609395906329155,
-0.10439486056566238,
-0.11422684043645859,
-0.031549956649541855,
0.0534544438123703,
-0.12523923814296722,
-0.045093756169080734,
0.13640494644641876,
-0.026642225682735443,
-0.03673694655299187,
0.002175794215872884,
0.07888912409543991,
0.02093903161585331,
0.06824123114347458,
0.032972823828458786,
-0.003852762281894684,
-0.05809113383293152,
0.08312464505434036,
0.0517110638320446,
-0.056596677750349045,
0.03749186173081398,
0.039882514625787735,
-0.0912584662437439,
-0.03201351687312126,
-0.1155739426612854,
0.05292215943336487,
-0.030348531901836395,
-0.04747486114501953,
0.03476583585143089,
-0.07912015914916992,
0.017013275995850563,
0.10747983306646347,
0.022485768422484398,
0.06924521178007126,
-0.030547717586159706,
0.012157980352640152,
-0.0313669852912426,
0.07068877667188644,
0.036127518862485886,
-0.015479360707104206,
-0.056222062557935715,
0.02741989493370056,
0.02938474714756012,
-0.04219713807106018,
-0.020692452788352966,
-0.05677392706274986,
-0.08526644855737686,
-0.019806569442152977,
-0.14687739312648773,
-0.006040729582309723,
-0.06624508649110794,
0.00237318710424006,
0.01192501187324524,
0.0022545326501131058,
-0.013951425440609455,
0.033136751502752304,
-0.02668312005698681,
-0.02549443580210209,
-0.04057108238339424,
0.06503134965896606,
-0.10673234611749649,
0.01920914836227894,
0.08423646539449692,
-0.09218183159828186,
0.09993567317724228,
0.060337018221616745,
-0.01740230806171894,
0.0075647239573299885,
-0.11980577558279037,
0.05280448496341705,
-0.03426642715930939,
0.009802013635635376,
-0.0186254121363163,
-0.1931273192167282,
0.006534729618579149,
-0.015338253229856491,
-0.06413289159536362,
-0.006551289465278387,
0.07409600168466568,
-0.0648203194141388,
0.09176459163427353,
0.08752822130918503,
-0.01994975470006466,
-0.08459711074829102,
0.03416448459029198,
0.06109710410237312,
0.048175301402807236,
0.09805762767791748,
-0.019642842933535576,
0.04157448187470436,
-0.132297083735466,
-0.002246706746518612,
0.012055222876369953,
0.05824827775359154,
-0.014099937863647938,
-0.038972482085227966,
0.04802848771214485,
0.0032949072774499655,
0.1979209929704666,
0.001432037795893848,
-0.03504712134599686,
0.05562249943614006,
0.038436442613601685,
0.017861714586615562,
0.01895950548350811,
-0.011362862773239613,
0.005286660045385361,
-0.0008875590865500271,
-0.0016452124109491706,
-0.024129534140229225,
-0.03856123983860016,
-0.10864283889532089,
0.08040597289800644,
0.07360876351594925,
0.07891496270895004,
0.005246705841273069,
0.018035585060715675,
-0.012656192295253277,
-0.029269250109791756,
0.050750572234392166,
-0.009385041892528534,
-0.027679836377501488,
-0.04998616874217987,
0.07417932152748108,
0.13613300025463104,
-0.1000598892569542,
0.07585203647613525,
0.00011144889140268788,
-0.04154731705784798,
-0.11198053508996964,
-0.2251814752817154,
-0.0435185432434082,
-0.005113641265779734,
-0.003219911130145192,
-0.08619958162307739,
0.02792517840862274,
0.04971174895763397,
0.011121316812932491,
-0.020838243886828423,
0.0852142795920372,
-0.08537276834249496,
-0.11264263838529587,
0.041628021746873856,
0.012328188866376877,
0.025465860962867737,
0.061226606369018555,
0.009172255173325539,
0.06246292591094971,
0.06737586110830307,
0.0393855907022953,
0.06626001745462418,
0.025181086733937263,
0.0033990098163485527,
-0.019165821373462677,
-0.05626589432358742,
-0.028611743822693825,
-0.012841655872762203,
-0.01709953509271145,
0.14672283828258514,
0.06259874999523163,
-0.03725935518741608,
0.006945421453565359,
0.20725829899311066,
-0.04096672683954239,
-0.026851586997509003,
-0.14789517223834991,
0.18558551371097565,
-0.037322986871004105,
0.029127204790711403,
0.027138888835906982,
-0.10987880080938339,
0.051824431866407394,
0.1120360866189003,
0.11899563670158386,
-0.0458093136548996,
-0.004650929011404514,
-0.021925533190369606,
0.004204703960567713,
0.00021098989236634225,
0.04232876002788544,
-0.02632182650268078,
0.2535184323787689,
-0.03724341467022896,
0.11267928034067154,
-0.01118485163897276,
-0.009879079647362232,
0.019276395440101624,
0.09364674240350723,
-0.03416525200009346,
0.0018168120877817273,
-0.07103735953569412,
0.105455182492733,
-0.04170042276382446,
-0.2484227865934372,
0.02709643356502056,
0.018935704603791237,
-0.0708509311079979,
0.031366873532533646,
-0.024281321093440056,
-0.004376511089503765,
0.061771292239427567,
0.023889610543847084,
-0.01917768083512783,
0.1331300586462021,
0.035381849855184555,
-0.05092233791947365,
-0.05383386090397835,
0.09917708486318588,
0.010987003333866596,
0.18828345835208893,
0.01706022024154663,
0.0818856731057167,
0.06825194507837296,
-0.020991124212741852,
-0.13202106952667236,
0.04820790886878967,
0.0034120853524655104,
-0.049168091267347336,
0.011511057615280151,
0.13255657255649567,
0.01844957284629345,
0.12848491966724396,
0.07977554947137833,
0.0008846055716276169,
0.054856304079294205,
0.009203893132507801,
-0.04232414439320564,
-0.1035485565662384,
0.06957445293664932,
-0.09984298795461655,
0.12658041715621948,
0.1146865263581276,
-0.03349143639206886,
0.016461974009871483,
-0.038775473833084106,
0.024202533066272736,
0.007843288592994213,
0.0516955703496933,
0.02483769692480564,
-0.12384607642889023,
-0.014202144928276539,
0.026173586025834084,
0.047800809144973755,
-0.2368832677602768,
-0.04100995883345604,
0.014788218773901463,
-0.007199408952146769,
0.02562071941792965,
0.06099570915102959,
0.008110378868877888,
0.036743782460689545,
-0.023087212815880775,
0.04474671185016632,
0.03036843240261078,
0.0886472836136818,
-0.10092643648386002,
-0.0262137558311224
] |
null | null | transformers |
# RoBERTa base model
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1907.11692) and first released in
[this repository](https://github.com/pytorch/fairseq/tree/master/examples/roberta). This model is case-sensitive: it
makes a difference between english and English.
Disclaimer: The team releasing RoBERTa did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
RoBERTa is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means
it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts.
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model
randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict
the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one
after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to
learn a bidirectional representation of the sentence.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
## Intended uses & limitations
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task.
See the [model hub](https://huggingface.co/models?filter=roberta) to look for fine-tuned versions on a task that
interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at a model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='roberta-base')
>>> unmasker("Hello I'm a <mask> model.")
[{'sequence': "<s>Hello I'm a male model.</s>",
'score': 0.3306540250778198,
'token': 2943,
'token_str': 'Ġmale'},
{'sequence': "<s>Hello I'm a female model.</s>",
'score': 0.04655390977859497,
'token': 2182,
'token_str': 'Ġfemale'},
{'sequence': "<s>Hello I'm a professional model.</s>",
'score': 0.04232972860336304,
'token': 2038,
'token_str': 'Ġprofessional'},
{'sequence': "<s>Hello I'm a fashion model.</s>",
'score': 0.037216778844594955,
'token': 2734,
'token_str': 'Ġfashion'},
{'sequence': "<s>Hello I'm a Russian model.</s>",
'score': 0.03253649175167084,
'token': 1083,
'token_str': 'ĠRussian'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import RobertaTokenizer, RobertaModel
tokenizer = RobertaTokenizer.from_pretrained('roberta-base')
model = RobertaModel.from_pretrained('roberta-base')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import RobertaTokenizer, TFRobertaModel
tokenizer = RobertaTokenizer.from_pretrained('roberta-base')
model = TFRobertaModel.from_pretrained('roberta-base')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
The training data used for this model contains a lot of unfiltered content from the internet, which is far from
neutral. Therefore, the model can have biased predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='roberta-base')
>>> unmasker("The man worked as a <mask>.")
[{'sequence': '<s>The man worked as a mechanic.</s>',
'score': 0.08702439814805984,
'token': 25682,
'token_str': 'Ġmechanic'},
{'sequence': '<s>The man worked as a waiter.</s>',
'score': 0.0819653645157814,
'token': 38233,
'token_str': 'Ġwaiter'},
{'sequence': '<s>The man worked as a butcher.</s>',
'score': 0.073323555290699,
'token': 32364,
'token_str': 'Ġbutcher'},
{'sequence': '<s>The man worked as a miner.</s>',
'score': 0.046322137117385864,
'token': 18678,
'token_str': 'Ġminer'},
{'sequence': '<s>The man worked as a guard.</s>',
'score': 0.040150221437215805,
'token': 2510,
'token_str': 'Ġguard'}]
>>> unmasker("The Black woman worked as a <mask>.")
[{'sequence': '<s>The Black woman worked as a waitress.</s>',
'score': 0.22177888453006744,
'token': 35698,
'token_str': 'Ġwaitress'},
{'sequence': '<s>The Black woman worked as a prostitute.</s>',
'score': 0.19288744032382965,
'token': 36289,
'token_str': 'Ġprostitute'},
{'sequence': '<s>The Black woman worked as a maid.</s>',
'score': 0.06498628109693527,
'token': 29754,
'token_str': 'Ġmaid'},
{'sequence': '<s>The Black woman worked as a secretary.</s>',
'score': 0.05375480651855469,
'token': 2971,
'token_str': 'Ġsecretary'},
{'sequence': '<s>The Black woman worked as a nurse.</s>',
'score': 0.05245552211999893,
'token': 9008,
'token_str': 'Ġnurse'}]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The RoBERTa model was pretrained on the reunion of five datasets:
- [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038 unpublished books;
- [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and headers) ;
- [CC-News](https://commoncrawl.org/2016/10/news-dataset-available/), a dataset containing 63 millions English news
articles crawled between September 2016 and February 2019.
- [OpenWebText](https://github.com/jcpeterson/openwebtext), an opensource recreation of the WebText dataset used to
train GPT-2,
- [Stories](https://arxiv.org/abs/1806.02847) a dataset containing a subset of CommonCrawl data filtered to match the
story-like style of Winograd schemas.
Together these datasets weigh 160GB of text.
## Training procedure
### Preprocessing
The texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of
the model take pieces of 512 contiguous tokens that may span over documents. The beginning of a new document is marked
with `<s>` and the end of one by `</s>`
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `<mask>`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
Contrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).
### Pretraining
The model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The
optimizer used is Adam with a learning rate of 6e-4, \\(\beta_{1} = 0.9\\), \\(\beta_{2} = 0.98\\) and
\\(\epsilon = 1e-6\\), a weight decay of 0.01, learning rate warmup for 24,000 steps and linear decay of the learning
rate after.
## Evaluation results
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
| Task | MNLI | QQP | QNLI | SST-2 | CoLA | STS-B | MRPC | RTE |
|:----:|:----:|:----:|:----:|:-----:|:----:|:-----:|:----:|:----:|
| | 87.6 | 91.9 | 92.8 | 94.8 | 63.6 | 91.2 | 90.2 | 78.7 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1907-11692,
author = {Yinhan Liu and
Myle Ott and
Naman Goyal and
Jingfei Du and
Mandar Joshi and
Danqi Chen and
Omer Levy and
Mike Lewis and
Luke Zettlemoyer and
Veselin Stoyanov},
title = {RoBERTa: {A} Robustly Optimized {BERT} Pretraining Approach},
journal = {CoRR},
volume = {abs/1907.11692},
year = {2019},
url = {http://arxiv.org/abs/1907.11692},
archivePrefix = {arXiv},
eprint = {1907.11692},
timestamp = {Thu, 01 Aug 2019 08:59:33 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1907-11692.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
<a href="https://huggingface.co/exbert/?model=roberta-base">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": "en", "license": "mit", "tags": ["exbert"], "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | FacebookAI/roberta-base | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"roberta",
"fill-mask",
"exbert",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1907.11692",
"arxiv:1806.02847",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1907.11692",
"1806.02847"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #rust #safetensors #roberta #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1907.11692 #arxiv-1806.02847 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us
| RoBERTa base model
==================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model is case-sensitive: it
makes a difference between english and English.
Disclaimer: The team releasing RoBERTa did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
RoBERTa is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means
it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts.
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model
randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict
the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one
after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to
learn a bidirectional representation of the sentence.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
Intended uses & limitations
---------------------------
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task.
See the model hub to look for fine-tuned versions on a task that
interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at a model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
The training data used for this model contains a lot of unfiltered content from the internet, which is far from
neutral. Therefore, the model can have biased predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The RoBERTa model was pretrained on the reunion of five datasets:
* BookCorpus, a dataset consisting of 11,038 unpublished books;
* English Wikipedia (excluding lists, tables and headers) ;
* CC-News, a dataset containing 63 millions English news
articles crawled between September 2016 and February 2019.
* OpenWebText, an opensource recreation of the WebText dataset used to
train GPT-2,
* Stories a dataset containing a subset of CommonCrawl data filtered to match the
story-like style of Winograd schemas.
Together these datasets weigh 160GB of text.
Training procedure
------------------
### Preprocessing
The texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of
the model take pieces of 512 contiguous tokens that may span over documents. The beginning of a new document is marked
with '~~' and the end of one by '~~'
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by ''.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
Contrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).
### Pretraining
The model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The
optimizer used is Adam with a learning rate of 6e-4, \(\beta\_{1} = 0.9\), \(\beta\_{2} = 0.98\) and
\(\epsilon = 1e-6\), a weight decay of 0.01, learning rate warmup for 24,000 steps and linear decay of the learning
rate after.
Evaluation results
------------------
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
### BibTeX entry and citation info
<a href="URL
<img width="300px" src="URL
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nThe training data used for this model contains a lot of unfiltered content from the internet, which is far from\nneutral. Therefore, the model can have biased predictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe RoBERTa model was pretrained on the reunion of five datasets:\n\n\n* BookCorpus, a dataset consisting of 11,038 unpublished books;\n* English Wikipedia (excluding lists, tables and headers) ;\n* CC-News, a dataset containing 63 millions English news\narticles crawled between September 2016 and February 2019.\n* OpenWebText, an opensource recreation of the WebText dataset used to\ntrain GPT-2,\n* Stories a dataset containing a subset of CommonCrawl data filtered to match the\nstory-like style of Winograd schemas.\n\n\nTogether these datasets weigh 160GB of text.\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of\nthe model take pieces of 512 contiguous tokens that may span over documents. The beginning of a new document is marked\nwith '~~' and the end of one by '~~'\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by ''.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nContrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).",
"### Pretraining\n\n\nThe model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The\noptimizer used is Adam with a learning rate of 6e-4, \\(\\beta\\_{1} = 0.9\\), \\(\\beta\\_{2} = 0.98\\) and\n\\(\\epsilon = 1e-6\\), a weight decay of 0.01, learning rate warmup for 24,000 steps and linear decay of the learning\nrate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #roberta #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1907.11692 #arxiv-1806.02847 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nThe training data used for this model contains a lot of unfiltered content from the internet, which is far from\nneutral. Therefore, the model can have biased predictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe RoBERTa model was pretrained on the reunion of five datasets:\n\n\n* BookCorpus, a dataset consisting of 11,038 unpublished books;\n* English Wikipedia (excluding lists, tables and headers) ;\n* CC-News, a dataset containing 63 millions English news\narticles crawled between September 2016 and February 2019.\n* OpenWebText, an opensource recreation of the WebText dataset used to\ntrain GPT-2,\n* Stories a dataset containing a subset of CommonCrawl data filtered to match the\nstory-like style of Winograd schemas.\n\n\nTogether these datasets weigh 160GB of text.\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of\nthe model take pieces of 512 contiguous tokens that may span over documents. The beginning of a new document is marked\nwith '~~' and the end of one by '~~'\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by ''.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nContrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).",
"### Pretraining\n\n\nThe model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The\noptimizer used is Adam with a learning rate of 6e-4, \\(\\beta\\_{1} = 0.9\\), \\(\\beta\\_{2} = 0.98\\) and\n\\(\\epsilon = 1e-6\\), a weight decay of 0.01, learning rate warmup for 24,000 steps and linear decay of the learning\nrate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
93,
49,
217,
204,
153,
30
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #roberta #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1907.11692 #arxiv-1806.02847 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nThe training data used for this model contains a lot of unfiltered content from the internet, which is far from\nneutral. Therefore, the model can have biased predictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe RoBERTa model was pretrained on the reunion of five datasets:\n\n\n* BookCorpus, a dataset consisting of 11,038 unpublished books;\n* English Wikipedia (excluding lists, tables and headers) ;\n* CC-News, a dataset containing 63 millions English news\narticles crawled between September 2016 and February 2019.\n* OpenWebText, an opensource recreation of the WebText dataset used to\ntrain GPT-2,\n* Stories a dataset containing a subset of CommonCrawl data filtered to match the\nstory-like style of Winograd schemas.\n\n\nTogether these datasets weigh 160GB of text.\n\n\nTraining procedure\n------------------"
] | [
-0.058317605406045914,
0.26047903299331665,
-0.0023184746969491243,
0.03197763115167618,
0.03655778989195824,
0.005671156570315361,
0.07365930080413818,
0.10612142086029053,
0.0038392727728933096,
0.057376470416784286,
0.032724566757678986,
0.029793763533234596,
0.08663340657949448,
0.14607451856136322,
-0.022224510088562965,
-0.1707998514175415,
0.050108399242162704,
-0.045705173164606094,
0.00500378618016839,
0.0901913270354271,
0.0831684023141861,
-0.09422603994607925,
0.0372980460524559,
-0.02564447559416294,
-0.05482291802763939,
-0.009199850261211395,
-0.03676513582468033,
-0.04693768918514252,
0.05168890953063965,
0.07357796281576157,
0.0585860051214695,
0.021203456446528435,
0.03988735005259514,
-0.12550833821296692,
0.02437998540699482,
0.09426385909318924,
-0.012902654707431793,
0.06306766718626022,
0.08614957332611084,
-0.03260285407304764,
0.06700658798217773,
-0.1247515082359314,
0.04345656931400299,
0.04432004690170288,
-0.14265799522399902,
-0.06903143227100372,
-0.1920761615037918,
0.006279042921960354,
0.09872162342071533,
0.11939768493175507,
-0.04654090851545334,
0.13093635439872742,
-0.045857883989810944,
0.0794638842344284,
0.23566028475761414,
-0.19095632433891296,
-0.04343253746628761,
-0.01111307181417942,
-0.0009044355829246342,
-0.03395325690507889,
-0.09482388198375702,
0.026961859315633774,
0.03386262431740761,
0.023928049951791763,
0.0006568240933120251,
-0.00572524219751358,
-0.047689288854599,
-0.01841839589178562,
-0.13983465731143951,
-0.08622732013463974,
0.14122095704078674,
-0.0025569370482116938,
-0.02702256478369236,
-0.1498802751302719,
-0.05385582149028778,
0.006320384796708822,
-0.042163729667663574,
0.056894127279520035,
0.05448845773935318,
-0.027053464204072952,
0.0013052565045654774,
-0.10227206349372864,
-0.09266021102666855,
0.010793040506541729,
-0.11781308799982071,
0.08244922012090683,
0.015127935446798801,
0.06313654035329819,
-0.05154161900281906,
0.09347297996282578,
0.08283589035272598,
-0.07180032879114151,
-0.0032157867681235075,
-0.049540866166353226,
-0.13830845057964325,
-0.012541390024125576,
-0.06227167695760727,
-0.05166395381093025,
0.0020948718301951885,
0.200152188539505,
-0.08180063217878342,
-0.003721335669979453,
-0.06555414944887161,
0.020948348566889763,
0.1027071624994278,
0.028212299570441246,
-0.12249632924795151,
-0.10596147924661636,
0.040813691914081573,
0.03814644739031792,
0.035761620849370956,
-0.0020596282556653023,
0.04843716695904732,
0.018254300579428673,
0.04279622063040733,
0.043389372527599335,
0.13095468282699585,
0.03627697378396988,
-0.033100586384534836,
-0.04536847397685051,
0.11351081728935242,
-0.12378938496112823,
-0.05836320295929909,
-0.007893698289990425,
-0.09750295430421829,
0.006816029082983732,
0.0338982418179512,
0.030031651258468628,
-0.06954894214868546,
0.014584274962544441,
-0.1210765540599823,
-0.062034279108047485,
-0.026920059695839882,
-0.10452743619680405,
0.0384957380592823,
-0.12313000112771988,
-0.07221381366252899,
-0.014190871268510818,
-0.2932102680206299,
-0.1051742359995842,
0.007057645823806524,
-0.04829159006476402,
-0.054422516375780106,
-0.010995665565133095,
-0.01146168727427721,
0.01000635139644146,
0.00615670857951045,
0.14555217325687408,
-0.05092431604862213,
0.04524383321404457,
-0.05537843331694603,
0.06759259849786758,
0.05405758321285248,
0.02490152232348919,
-0.162358358502388,
-0.013839376159012318,
-0.10530667006969452,
0.11735804378986359,
-0.07137690484523773,
0.05203850939869881,
-0.08325289189815521,
-0.008221827447414398,
-0.024917544797062874,
0.004647827707231045,
0.009808454662561417,
0.167150616645813,
-0.17073239386081696,
-0.05744265019893646,
0.17240893840789795,
-0.11539281904697418,
-0.04440778121352196,
0.09673214703798294,
-0.041794415563344955,
-0.02311396226286888,
0.09865450114011765,
0.0597558431327343,
-0.00344297313131392,
0.009804541245102882,
-0.14876480400562286,
-0.07628077268600464,
-0.004004628397524357,
0.11830401420593262,
0.054971132427453995,
-0.03296447545289993,
0.040506232529878616,
0.01208269502967596,
0.004279569257050753,
-0.0007964332471601665,
-0.034922875463962555,
-0.054105859249830246,
0.026133988052606583,
-0.07074391096830368,
0.12314227223396301,
0.025414878502488136,
0.0037037786096334457,
-0.05280839651823044,
-0.0881241038441658,
-0.05780872330069542,
0.09074007719755173,
-0.0162942074239254,
0.03605545684695244,
-0.022500185295939445,
0.02320910058915615,
-0.02693641185760498,
0.011366386897861958,
-0.2105003297328949,
-0.1482962667942047,
0.017074299976229668,
0.0016400344902649522,
-0.0043975431472063065,
0.023799406364560127,
0.02580193802714348,
-0.02206886187195778,
-0.06113031134009361,
-0.014980239793658257,
0.0050998469814658165,
-0.037719715386629105,
-0.06748972833156586,
-0.14717328548431396,
0.009056689217686653,
-0.07062830775976181,
0.1711120903491974,
-0.10082843154668808,
0.0029275279957801104,
0.008973443880677223,
0.17587311565876007,
0.0360766164958477,
-0.07780048996210098,
0.12215426564216614,
-0.018035130575299263,
0.0033894546795636415,
-0.041245877742767334,
0.01857765018939972,
-0.01123687531799078,
-0.022960610687732697,
0.11511968076229095,
-0.10981776565313339,
-0.10363714396953583,
0.10573554784059525,
0.04687786474823952,
-0.04208077862858772,
0.00624221982434392,
-0.09077384322881699,
-0.03785146027803421,
-0.08871862292289734,
-0.046151187270879745,
0.122327521443367,
0.04691311717033386,
0.06681963056325912,
-0.11627187579870224,
-0.10898834466934204,
-0.0026319939643144608,
0.001732520293444395,
-0.04167480766773224,
0.09418639540672302,
-0.05799589678645134,
-0.27596887946128845,
0.10487951338291168,
-0.007488366682082415,
0.045951779931783676,
0.17027626931667328,
0.020228564739227295,
-0.08007487654685974,
0.009835630655288696,
-0.028150342404842377,
-0.014354524202644825,
0.05696665495634079,
-0.048810869455337524,
0.028416099026799202,
0.058393172919750214,
-0.0036554851103574038,
0.042056526988744736,
-0.06555147469043732,
0.032465629279613495,
-0.031190212815999985,
-0.026140335947275162,
0.030789107084274292,
0.01203934010118246,
0.05316341295838356,
0.11683037132024765,
0.03179221227765083,
0.10562865436077118,
-0.007160031236708164,
-0.061186373233795166,
-0.09463907778263092,
0.18287502229213715,
-0.08563774824142456,
-0.20604394376277924,
-0.03247452154755592,
-0.043443139642477036,
-0.05832123011350632,
-0.020591095089912415,
0.00766263622790575,
-0.03203333914279938,
-0.06910741329193115,
-0.10777373611927032,
-0.005073062144219875,
0.019856341183185577,
-0.004102886188775301,
0.03400922194123268,
0.015660103410482407,
-0.013056223280727863,
-0.12615397572517395,
0.033759891986846924,
-0.06089453771710396,
-0.08858508616685867,
0.01430098433047533,
0.023476792499423027,
0.08736330270767212,
0.03530903905630112,
0.046759627759456635,
-0.017177749425172806,
-0.057538196444511414,
0.22123025357723236,
-0.11552979052066803,
0.04310178384184837,
0.05757439509034157,
-0.012148783542215824,
0.0366976298391819,
0.08376509696245193,
-0.010938756167888641,
-0.08744727075099945,
0.04858660325407982,
0.13697023689746857,
-0.012778294272720814,
-0.2918007969856262,
-0.08867381513118744,
-0.06965374946594238,
0.02591376192867756,
0.058880001306533813,
0.03152647987008095,
-0.008407162502408028,
-0.010033588856458664,
-0.13658183813095093,
0.03319539502263069,
0.037650056183338165,
0.005167616996914148,
0.04673982039093971,
0.00875217467546463,
0.09116238355636597,
-0.06410995870828629,
0.06958278268575668,
0.13960649073123932,
-0.0279740858823061,
0.23260238766670227,
-0.09966333210468292,
0.10029774904251099,
0.08247613906860352,
-0.043582264333963394,
-0.029523596167564392,
0.0856623724102974,
-0.013830727897584438,
0.012837747111916542,
-0.021315986290574074,
-0.04632243886590004,
-0.013239416293799877,
0.049794260412454605,
0.034739553928375244,
-0.029494794085621834,
-0.04732657968997955,
-0.08332545310258865,
0.06047184392809868,
0.2514444887638092,
0.12492614984512329,
-0.11700309067964554,
-0.06008433923125267,
0.07679080963134766,
-0.06581784039735794,
-0.022187702357769012,
0.021286625415086746,
0.03355427086353302,
-0.14409135282039642,
0.12841738760471344,
-0.02093461900949478,
0.08987442404031754,
-0.1701217144727707,
-0.036634188145399094,
-0.0608329251408577,
0.013257824815809727,
-0.05989132821559906,
0.06612719595432281,
-0.17221121490001678,
0.21806776523590088,
0.020632890984416008,
0.02640768513083458,
-0.06281301379203796,
0.007934086956083775,
0.050160106271505356,
-0.10387756675481796,
0.14515464007854462,
0.015845341607928276,
-0.035697996616363525,
0.006520487368106842,
-0.14353211224079132,
-0.00507630268111825,
0.006743342615664005,
-0.062493160367012024,
0.12785813212394714,
0.012178058736026287,
-0.013924559578299522,
-0.03430997580289841,
0.03744365647435188,
-0.1196741908788681,
-0.1515105664730072,
0.07967124879360199,
-0.06710458546876907,
-0.11317191272974014,
-0.05149070918560028,
-0.07158830761909485,
-0.05340747907757759,
0.09357591718435287,
-0.11798588186502457,
-0.09648585319519043,
-0.13701577484607697,
0.13722695410251617,
0.14712929725646973,
-0.037137147039175034,
0.038559187203645706,
0.024977799504995346,
0.11353160440921783,
-0.047336287796497345,
-0.0922648161649704,
0.04684101417660713,
-0.09471585601568222,
-0.23619695007801056,
-0.037880025804042816,
0.10002242773771286,
0.09782394766807556,
0.0472252182662487,
-0.02912975288927555,
0.08091689646244049,
0.01529690157622099,
-0.04752475395798683,
0.10277089476585388,
0.08923660218715668,
0.11538869887590408,
0.11958997696638107,
-0.018695583567023277,
-0.14169709384441376,
-0.08960803598165512,
-0.01355905644595623,
0.12606333196163177,
0.21435445547103882,
-0.02731315791606903,
0.13390102982521057,
0.14786523580551147,
-0.09540855139493942,
-0.23579387366771698,
-0.00336029683239758,
0.015346342697739601,
0.02438431605696678,
0.015723761171102524,
-0.1863478720188141,
0.06824363768100739,
0.09953765571117401,
-0.023035690188407898,
0.02583293989300728,
-0.22807705402374268,
-0.10599703341722488,
0.05549657344818115,
-0.03516146540641785,
0.1230078861117363,
-0.059721413999795914,
-0.05548311769962311,
-0.005764290224760771,
-0.07986056059598923,
0.12495715171098709,
-0.133220836520195,
0.053135212510824203,
-0.0037968731485307217,
-0.014685126021504402,
0.017180858179926872,
-0.05553955212235451,
0.08163800090551376,
-0.028237493708729744,
0.0636354386806488,
-0.07935726642608643,
-0.012711078859865665,
0.09049268066883087,
-0.03675045073032379,
0.06264898926019669,
0.03445179760456085,
0.07649834454059601,
-0.11058194190263748,
-0.03616854548454285,
-0.1449335664510727,
0.04167916625738144,
-0.049520064145326614,
-0.030497463420033455,
-0.045863065868616104,
0.10156667232513428,
0.0823555737733841,
-0.003117085201665759,
0.04991187900304794,
-0.00017715603462420404,
0.09945620596408844,
0.10492934286594391,
0.1277543157339096,
0.06981274485588074,
-0.04763352498412132,
-0.060510359704494476,
-0.02337283454835415,
0.007815645076334476,
-0.09809692949056625,
0.00409353245049715,
0.07477212697267532,
0.05666181072592735,
0.08727782964706421,
0.024189982563257217,
-0.13406722247600555,
0.012563211843371391,
0.02287076972424984,
-0.16997860372066498,
-0.1050717681646347,
-0.009187188930809498,
-0.012818241491913795,
-0.1608050912618637,
-0.04560947045683861,
0.13684391975402832,
0.01993708312511444,
-0.040920086205005646,
0.0015079621225595474,
0.08293507993221283,
0.06051269546151161,
0.16620178520679474,
-0.02937236987054348,
0.04026234149932861,
-0.1326894611120224,
0.18731720745563507,
0.10355593264102936,
-0.10009780526161194,
0.03290967643260956,
0.17219246923923492,
-0.07705037295818329,
-0.05763690546154976,
-0.061143871396780014,
0.09231260418891907,
0.018620816990733147,
0.023088624700903893,
-0.05503872036933899,
-0.022334765642881393,
0.08468121290206909,
0.20058946311473846,
0.010043720714747906,
0.06505576521158218,
0.042005956172943115,
-0.024667086079716682,
-0.03672286868095398,
0.10831082612276077,
0.08704221248626709,
-0.0026504984125494957,
-0.0125778429210186,
0.03973483294248581,
-0.012270381674170494,
-0.004338415339589119,
-0.032200876623392105,
0.0014003574615344405,
-0.05979962646961212,
-0.016881823539733887,
-0.04496831074357033,
-0.029908254742622375,
-0.08619251102209091,
-0.02113797329366207,
-0.07734846323728561,
-0.027200443670153618,
-0.056069474667310715,
0.00040189194260165095,
-0.05120713636279106,
-0.030479373410344124,
-0.021481245756149292,
0.04927627742290497,
-0.1405760645866394,
-0.031706586480140686,
0.06609544903039932,
-0.05448972433805466,
0.12466523051261902,
0.04380045086145401,
0.010943627916276455,
-0.002278075786307454,
-0.029035301879048347,
-0.06916186213493347,
-0.01727716624736786,
-0.018319780007004738,
0.013678408227860928,
-0.1016424372792244,
-0.03285032510757446,
-0.01563912071287632,
-0.010839317925274372,
0.046054206788539886,
0.021901415660977364,
-0.10353648662567139,
0.035572800785303116,
0.02963065542280674,
0.0043023210018873215,
-0.05811278149485588,
0.01285062450915575,
0.1500171273946762,
0.03358292579650879,
0.1115315705537796,
-0.05315259471535683,
0.06232540309429169,
-0.1758720427751541,
0.01894114725291729,
-0.007429481018334627,
-0.06590835005044937,
-0.00276109273545444,
0.04848819598555565,
0.06747490912675858,
-0.014276809059083462,
0.19372807443141937,
-0.041198499500751495,
-0.0156424418091774,
0.08441673219203949,
0.09069091081619263,
-0.054046086966991425,
0.034194525331258774,
0.03314100578427315,
0.030662430450320244,
-0.07338052988052368,
0.014518775045871735,
0.022220706567168236,
0.0004045284877065569,
0.013141520321369171,
0.20382480323314667,
0.09530972689390182,
0.2611708343029022,
0.049222398549318314,
-0.011503537185490131,
-0.13181975483894348,
-0.04185737669467926,
0.05415724590420723,
-0.04299219325184822,
0.07186973839998245,
-0.026707539334893227,
0.032068897038698196,
0.14332637190818787,
-0.13184775412082672,
0.11159131675958633,
0.045102618634700775,
-0.028803735971450806,
-0.072120800614357,
-0.09557085484266281,
-0.034237220883369446,
0.033177223056554794,
0.004284529946744442,
-0.14682382345199585,
0.04661191254854202,
0.06599593907594681,
0.02473495528101921,
0.005751940421760082,
0.04328001290559769,
0.004953773692250252,
-0.07727409154176712,
0.09896431863307953,
0.014214515686035156,
0.011082254350185394,
0.017675139009952545,
-0.026721114292740822,
0.0458914153277874,
0.06673642992973328,
0.03906740993261337,
0.005439282860606909,
0.02244330570101738,
0.10251568257808685,
-0.013711315579712391,
-0.12907955050468445,
0.01296568289399147,
0.00968244019895792,
0.08014725893735886,
0.1192687526345253,
0.06266649812459946,
0.03687296807765961,
-0.011362345889210701,
0.2541457712650299,
-0.05072230100631714,
0.009197662584483624,
-0.1557716727256775,
0.004529806785285473,
-0.0044157058000564575,
-0.03217623010277748,
0.03323255106806755,
-0.14817826449871063,
0.0314018540084362,
0.18035414814949036,
0.17108412086963654,
-0.0027580433525145054,
-0.0004726249899249524,
0.021292760968208313,
0.00024083536118268967,
0.029939109459519386,
0.013575801625847816,
0.023661507293581963,
0.2535282373428345,
-0.06421895325183868,
-0.016083985567092896,
0.01757906563580036,
-0.052978210151195526,
-0.034951258450746536,
0.0905027985572815,
0.01682666316628456,
0.012162416242063046,
-0.049182992428541183,
0.0839056670665741,
-0.06806140393018723,
-0.18182337284088135,
-0.051421165466308594,
-0.14270833134651184,
-0.16004426777362823,
-0.033610448241233826,
-0.0137993935495615,
0.0718500092625618,
0.09306607395410538,
0.08162283152341843,
0.03427382558584213,
0.1282636672258377,
-0.006675888318568468,
-0.09994914382696152,
-0.1504366248846054,
0.06840424239635468,
0.0364714153110981,
0.21617679297924042,
-0.023076331242918968,
0.007855203002691269,
0.0908709242939949,
-0.031104132533073425,
-0.14913465082645416,
-0.035810258239507675,
0.018273409456014633,
-0.01999712362885475,
0.02850194275379181,
0.19365987181663513,
-0.025936296209692955,
0.0520942285656929,
0.1121099665760994,
-0.03833628445863724,
0.059839434921741486,
-0.014033406972885132,
-0.0362197607755661,
-0.09060785174369812,
0.11700035631656647,
-0.06264638155698776,
0.12928079068660736,
0.17849236726760864,
-0.055515121668577194,
0.045333463698625565,
-0.021118614822626114,
-0.029884781688451767,
-0.04697585105895996,
0.10263974964618683,
-0.028510164469480515,
-0.1778462678194046,
0.0635814368724823,
-0.026638614013791084,
0.025402432307600975,
-0.23502153158187866,
-0.0018201032653450966,
0.0342034175992012,
-0.06412172317504883,
-0.030951837077736855,
0.08836205303668976,
0.044768672436475754,
-0.011439463123679161,
-0.014025382697582245,
0.00004024992813356221,
0.00636360002681613,
0.06390184909105301,
-0.11193373799324036,
-0.06996972113847733
] |
null | null | transformers |
# roberta-large-mnli
## Table of Contents
- [Model Details](#model-details)
- [How To Get Started With the Model](#how-to-get-started-with-the-model)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation-results)
- [Environmental Impact](#environmental-impact)
- [Technical Specifications](#technical-specifications)
- [Citation Information](#citation-information)
- [Model Card Authors](#model-card-author)
## Model Details
**Model Description:** roberta-large-mnli is the [RoBERTa large model](https://huggingface.co/roberta-large) fine-tuned on the [Multi-Genre Natural Language Inference (MNLI)](https://huggingface.co/datasets/multi_nli) corpus. The model is a pretrained model on English language text using a masked language modeling (MLM) objective.
- **Developed by:** See [GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/roberta) for model developers
- **Model Type:** Transformer-based language model
- **Language(s):** English
- **License:** MIT
- **Parent Model:** This model is a fine-tuned version of the RoBERTa large model. Users should see the [RoBERTa large model card](https://huggingface.co/roberta-large) for relevant information.
- **Resources for more information:**
- [Research Paper](https://arxiv.org/abs/1907.11692)
- [GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/roberta)
## How to Get Started with the Model
Use the code below to get started with the model. The model can be loaded with the zero-shot-classification pipeline like so:
```python
from transformers import pipeline
classifier = pipeline('zero-shot-classification', model='roberta-large-mnli')
```
You can then use this pipeline to classify sequences into any of the class names you specify. For example:
```python
sequence_to_classify = "one day I will see the world"
candidate_labels = ['travel', 'cooking', 'dancing']
classifier(sequence_to_classify, candidate_labels)
```
## Uses
#### Direct Use
This fine-tuned model can be used for zero-shot classification tasks, including zero-shot sentence-pair classification (see the [GitHub repo](https://github.com/facebookresearch/fairseq/tree/main/examples/roberta) for examples) and zero-shot sequence classification.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). The [RoBERTa large model card](https://huggingface.co/roberta-large) notes that: "The training data used for this model contains a lot of unfiltered content from the internet, which is far from neutral."
Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
```python
sequence_to_classify = "The CEO had a strong handshake."
candidate_labels = ['male', 'female']
hypothesis_template = "This text speaks about a {} profession."
classifier(sequence_to_classify, candidate_labels, hypothesis_template=hypothesis_template)
```
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
## Training
#### Training Data
This model was fine-tuned on the [Multi-Genre Natural Language Inference (MNLI)](https://cims.nyu.edu/~sbowman/multinli/) corpus. Also see the [MNLI data card](https://huggingface.co/datasets/multi_nli) for more information.
As described in the [RoBERTa large model card](https://huggingface.co/roberta-large):
> The RoBERTa model was pretrained on the reunion of five datasets:
>
> - [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038 unpublished books;
> - [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and headers) ;
> - [CC-News](https://commoncrawl.org/2016/10/news-dataset-available/), a dataset containing 63 millions English news articles crawled between September 2016 and February 2019.
> - [OpenWebText](https://github.com/jcpeterson/openwebtext), an opensource recreation of the WebText dataset used to train GPT-2,
> - [Stories](https://arxiv.org/abs/1806.02847), a dataset containing a subset of CommonCrawl data filtered to match the story-like style of Winograd schemas.
>
> Together theses datasets weight 160GB of text.
Also see the [bookcorpus data card](https://huggingface.co/datasets/bookcorpus) and the [wikipedia data card](https://huggingface.co/datasets/wikipedia) for additional information.
#### Training Procedure
##### Preprocessing
As described in the [RoBERTa large model card](https://huggingface.co/roberta-large):
> The texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of
> the model take pieces of 512 contiguous token that may span over documents. The beginning of a new document is marked
> with `<s>` and the end of one by `</s>`
>
> The details of the masking procedure for each sentence are the following:
> - 15% of the tokens are masked.
> - In 80% of the cases, the masked tokens are replaced by `<mask>`.
> - In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
> - In the 10% remaining cases, the masked tokens are left as is.
>
> Contrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).
##### Pretraining
Also as described in the [RoBERTa large model card](https://huggingface.co/roberta-large):
> The model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The
> optimizer used is Adam with a learning rate of 4e-4, \\(\beta_{1} = 0.9\\), \\(\beta_{2} = 0.98\\) and
> \\(\epsilon = 1e-6\\), a weight decay of 0.01, learning rate warmup for 30,000 steps and linear decay of the learning
> rate after.
## Evaluation
The following evaluation information is extracted from the associated [GitHub repo for RoBERTa](https://github.com/facebookresearch/fairseq/tree/main/examples/roberta).
#### Testing Data, Factors and Metrics
The model developers report that the model was evaluated on the following tasks and datasets using the listed metrics:
- **Dataset:** Part of [GLUE (Wang et al., 2019)](https://arxiv.org/pdf/1804.07461.pdf), the General Language Understanding Evaluation benchmark, a collection of 9 datasets for evaluating natural language understanding systems. Specifically, the model was evaluated on the [Multi-Genre Natural Language Inference (MNLI)](https://cims.nyu.edu/~sbowman/multinli/) corpus. See the [GLUE data card](https://huggingface.co/datasets/glue) or [Wang et al. (2019)](https://arxiv.org/pdf/1804.07461.pdf) for further information.
- **Tasks:** NLI. [Wang et al. (2019)](https://arxiv.org/pdf/1804.07461.pdf) describe the inference task for MNLI as:
> The Multi-Genre Natural Language Inference Corpus [(Williams et al., 2018)](https://arxiv.org/abs/1704.05426) is a crowd-sourced collection of sentence pairs with textual entailment annotations. Given a premise sentence and a hypothesis sentence, the task is to predict whether the premise entails the hypothesis (entailment), contradicts the hypothesis (contradiction), or neither (neutral). The premise sentences are gathered from ten different sources, including transcribed speech, fiction, and government reports. We use the standard test set, for which we obtained private labels from the authors, and evaluate on both the matched (in-domain) and mismatched (cross-domain) sections. We also use and recommend the SNLI corpus [(Bowman et al., 2015)](https://arxiv.org/abs/1508.05326) as 550k examples of auxiliary training data.
- **Metrics:** Accuracy
- **Dataset:** [XNLI (Conneau et al., 2018)](https://arxiv.org/pdf/1809.05053.pdf), the extension of the [Multi-Genre Natural Language Inference (MNLI)](https://cims.nyu.edu/~sbowman/multinli/) corpus to 15 languages: English, French, Spanish, German, Greek, Bulgarian, Russian, Turkish, Arabic, Vietnamese, Thai, Chinese, Hindi, Swahili and Urdu. See the [XNLI data card](https://huggingface.co/datasets/xnli) or [Conneau et al. (2018)](https://arxiv.org/pdf/1809.05053.pdf) for further information.
- **Tasks:** Translate-test (e.g., the model is used to translate input sentences in other languages to the training language)
- **Metrics:** Accuracy
#### Results
GLUE test results (dev set, single model, single-task fine-tuning): 90.2 on MNLI
XNLI test results:
| Task | en | fr | es | de | el | bg | ru | tr | ar | vi | th | zh | hi | sw | ur |
|:----:|:--:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| |91.3|82.91|84.27|81.24|81.74|83.13|78.28|76.79|76.64|74.17|74.05| 77.5| 70.9|66.65|66.81|
## Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). We present the hardware type and hours used based on the [associated paper](https://arxiv.org/pdf/1907.11692.pdf).
- **Hardware Type:** 1024 V100 GPUs
- **Hours used:** 24 hours (one day)
- **Cloud Provider:** Unknown
- **Compute Region:** Unknown
- **Carbon Emitted:** Unknown
## Technical Specifications
See the [associated paper](https://arxiv.org/pdf/1907.11692.pdf) for details on the modeling architecture, objective, compute infrastructure, and training details.
## Citation Information
```bibtex
@article{liu2019roberta,
title = {RoBERTa: A Robustly Optimized BERT Pretraining Approach},
author = {Yinhan Liu and Myle Ott and Naman Goyal and Jingfei Du and
Mandar Joshi and Danqi Chen and Omer Levy and Mike Lewis and
Luke Zettlemoyer and Veselin Stoyanov},
journal={arXiv preprint arXiv:1907.11692},
year = {2019},
}
``` | {"language": ["en"], "license": "mit", "tags": ["autogenerated-modelcard"], "datasets": ["multi_nli", "wikipedia", "bookcorpus"]} | text-classification | FacebookAI/roberta-large-mnli | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"roberta",
"text-classification",
"autogenerated-modelcard",
"en",
"dataset:multi_nli",
"dataset:wikipedia",
"dataset:bookcorpus",
"arxiv:1907.11692",
"arxiv:1806.02847",
"arxiv:1804.07461",
"arxiv:1704.05426",
"arxiv:1508.05326",
"arxiv:1809.05053",
"arxiv:1910.09700",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1907.11692",
"1806.02847",
"1804.07461",
"1704.05426",
"1508.05326",
"1809.05053",
"1910.09700"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #safetensors #roberta #text-classification #autogenerated-modelcard #en #dataset-multi_nli #dataset-wikipedia #dataset-bookcorpus #arxiv-1907.11692 #arxiv-1806.02847 #arxiv-1804.07461 #arxiv-1704.05426 #arxiv-1508.05326 #arxiv-1809.05053 #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us
| roberta-large-mnli
==================
Table of Contents
-----------------
* Model Details
* How To Get Started With the Model
* Uses
* Risks, Limitations and Biases
* Training
* Evaluation
* Environmental Impact
* Technical Specifications
* Citation Information
* Model Card Authors
Model Details
-------------
Model Description: roberta-large-mnli is the RoBERTa large model fine-tuned on the Multi-Genre Natural Language Inference (MNLI) corpus. The model is a pretrained model on English language text using a masked language modeling (MLM) objective.
* Developed by: See GitHub Repo for model developers
* Model Type: Transformer-based language model
* Language(s): English
* License: MIT
* Parent Model: This model is a fine-tuned version of the RoBERTa large model. Users should see the RoBERTa large model card for relevant information.
* Resources for more information:
+ Research Paper
+ GitHub Repo
How to Get Started with the Model
---------------------------------
Use the code below to get started with the model. The model can be loaded with the zero-shot-classification pipeline like so:
You can then use this pipeline to classify sequences into any of the class names you specify. For example:
Uses
----
#### Direct Use
This fine-tuned model can be used for zero-shot classification tasks, including zero-shot sentence-pair classification (see the GitHub repo for examples) and zero-shot sequence classification.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
Risks, Limitations and Biases
-----------------------------
CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). The RoBERTa large model card notes that: "The training data used for this model contains a lot of unfiltered content from the internet, which is far from neutral."
Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Training
--------
#### Training Data
This model was fine-tuned on the Multi-Genre Natural Language Inference (MNLI) corpus. Also see the MNLI data card for more information.
As described in the RoBERTa large model card:
>
> The RoBERTa model was pretrained on the reunion of five datasets:
>
>
> * BookCorpus, a dataset consisting of 11,038 unpublished books;
> * English Wikipedia (excluding lists, tables and headers) ;
> * CC-News, a dataset containing 63 millions English news articles crawled between September 2016 and February 2019.
> * OpenWebText, an opensource recreation of the WebText dataset used to train GPT-2,
> * Stories, a dataset containing a subset of CommonCrawl data filtered to match the story-like style of Winograd schemas.
>
>
> Together theses datasets weight 160GB of text.
>
>
>
Also see the bookcorpus data card and the wikipedia data card for additional information.
#### Training Procedure
##### Preprocessing
As described in the RoBERTa large model card:
>
> The texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of
> the model take pieces of 512 contiguous token that may span over documents. The beginning of a new document is marked
> with '~~' and the end of one by '~~'
>
>
> The details of the masking procedure for each sentence are the following:
>
>
> * 15% of the tokens are masked.
> * In 80% of the cases, the masked tokens are replaced by ''.
> * In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
> * In the 10% remaining cases, the masked tokens are left as is.
>
>
> Contrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).
>
>
>
##### Pretraining
Also as described in the RoBERTa large model card:
>
> The model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The
> optimizer used is Adam with a learning rate of 4e-4, \(\beta\_{1} = 0.9\), \(\beta\_{2} = 0.98\) and
> \(\epsilon = 1e-6\), a weight decay of 0.01, learning rate warmup for 30,000 steps and linear decay of the learning
> rate after.
>
>
>
Evaluation
----------
The following evaluation information is extracted from the associated GitHub repo for RoBERTa.
#### Testing Data, Factors and Metrics
The model developers report that the model was evaluated on the following tasks and datasets using the listed metrics:
* Dataset: Part of GLUE (Wang et al., 2019), the General Language Understanding Evaluation benchmark, a collection of 9 datasets for evaluating natural language understanding systems. Specifically, the model was evaluated on the Multi-Genre Natural Language Inference (MNLI) corpus. See the GLUE data card or Wang et al. (2019) for further information.
+ Tasks: NLI. Wang et al. (2019) describe the inference task for MNLI as:
>
> The Multi-Genre Natural Language Inference Corpus (Williams et al., 2018) is a crowd-sourced collection of sentence pairs with textual entailment annotations. Given a premise sentence and a hypothesis sentence, the task is to predict whether the premise entails the hypothesis (entailment), contradicts the hypothesis (contradiction), or neither (neutral). The premise sentences are gathered from ten different sources, including transcribed speech, fiction, and government reports. We use the standard test set, for which we obtained private labels from the authors, and evaluate on both the matched (in-domain) and mismatched (cross-domain) sections. We also use and recommend the SNLI corpus (Bowman et al., 2015) as 550k examples of auxiliary training data.
>
>
>
+ Metrics: Accuracy
* Dataset: XNLI (Conneau et al., 2018), the extension of the Multi-Genre Natural Language Inference (MNLI) corpus to 15 languages: English, French, Spanish, German, Greek, Bulgarian, Russian, Turkish, Arabic, Vietnamese, Thai, Chinese, Hindi, Swahili and Urdu. See the XNLI data card or Conneau et al. (2018) for further information.
+ Tasks: Translate-test (e.g., the model is used to translate input sentences in other languages to the training language)
+ Metrics: Accuracy
#### Results
GLUE test results (dev set, single model, single-task fine-tuning): 90.2 on MNLI
XNLI test results:
Environmental Impact
--------------------
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type and hours used based on the associated paper.
* Hardware Type: 1024 V100 GPUs
* Hours used: 24 hours (one day)
* Cloud Provider: Unknown
* Compute Region: Unknown
* Carbon Emitted: Unknown
Technical Specifications
------------------------
See the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.
| [
"#### Direct Use\n\n\nThis fine-tuned model can be used for zero-shot classification tasks, including zero-shot sentence-pair classification (see the GitHub repo for examples) and zero-shot sequence classification.",
"#### Misuse and Out-of-scope Use\n\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.\n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). The RoBERTa large model card notes that: \"The training data used for this model contains a lot of unfiltered content from the internet, which is far from neutral.\"\n\n\nPredictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.\n\n\nTraining\n--------",
"#### Training Data\n\n\nThis model was fine-tuned on the Multi-Genre Natural Language Inference (MNLI) corpus. Also see the MNLI data card for more information.\n\n\nAs described in the RoBERTa large model card:\n\n\n\n> \n> The RoBERTa model was pretrained on the reunion of five datasets:\n> \n> \n> * BookCorpus, a dataset consisting of 11,038 unpublished books;\n> * English Wikipedia (excluding lists, tables and headers) ;\n> * CC-News, a dataset containing 63 millions English news articles crawled between September 2016 and February 2019.\n> * OpenWebText, an opensource recreation of the WebText dataset used to train GPT-2,\n> * Stories, a dataset containing a subset of CommonCrawl data filtered to match the story-like style of Winograd schemas.\n> \n> \n> Together theses datasets weight 160GB of text.\n> \n> \n> \n\n\nAlso see the bookcorpus data card and the wikipedia data card for additional information.",
"#### Training Procedure",
"##### Preprocessing\n\n\nAs described in the RoBERTa large model card:\n\n\n\n> \n> The texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of\n> the model take pieces of 512 contiguous token that may span over documents. The beginning of a new document is marked\n> with '~~' and the end of one by '~~'\n> \n> \n> The details of the masking procedure for each sentence are the following:\n> \n> \n> * 15% of the tokens are masked.\n> * In 80% of the cases, the masked tokens are replaced by ''.\n> * In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n> * In the 10% remaining cases, the masked tokens are left as is.\n> \n> \n> Contrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).\n> \n> \n>",
"##### Pretraining\n\n\nAlso as described in the RoBERTa large model card:\n\n\n\n> \n> The model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The\n> optimizer used is Adam with a learning rate of 4e-4, \\(\\beta\\_{1} = 0.9\\), \\(\\beta\\_{2} = 0.98\\) and\n> \\(\\epsilon = 1e-6\\), a weight decay of 0.01, learning rate warmup for 30,000 steps and linear decay of the learning\n> rate after.\n> \n> \n> \n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated GitHub repo for RoBERTa.",
"#### Testing Data, Factors and Metrics\n\n\nThe model developers report that the model was evaluated on the following tasks and datasets using the listed metrics:\n\n\n* Dataset: Part of GLUE (Wang et al., 2019), the General Language Understanding Evaluation benchmark, a collection of 9 datasets for evaluating natural language understanding systems. Specifically, the model was evaluated on the Multi-Genre Natural Language Inference (MNLI) corpus. See the GLUE data card or Wang et al. (2019) for further information.\n\n\n\t+ Tasks: NLI. Wang et al. (2019) describe the inference task for MNLI as:\n> \n> The Multi-Genre Natural Language Inference Corpus (Williams et al., 2018) is a crowd-sourced collection of sentence pairs with textual entailment annotations. Given a premise sentence and a hypothesis sentence, the task is to predict whether the premise entails the hypothesis (entailment), contradicts the hypothesis (contradiction), or neither (neutral). The premise sentences are gathered from ten different sources, including transcribed speech, fiction, and government reports. We use the standard test set, for which we obtained private labels from the authors, and evaluate on both the matched (in-domain) and mismatched (cross-domain) sections. We also use and recommend the SNLI corpus (Bowman et al., 2015) as 550k examples of auxiliary training data.\n> \n> \n> \n\n\n\t+ Metrics: Accuracy\n* Dataset: XNLI (Conneau et al., 2018), the extension of the Multi-Genre Natural Language Inference (MNLI) corpus to 15 languages: English, French, Spanish, German, Greek, Bulgarian, Russian, Turkish, Arabic, Vietnamese, Thai, Chinese, Hindi, Swahili and Urdu. See the XNLI data card or Conneau et al. (2018) for further information.\n\n\n\t+ Tasks: Translate-test (e.g., the model is used to translate input sentences in other languages to the training language)\n\t+ Metrics: Accuracy",
"#### Results\n\n\nGLUE test results (dev set, single model, single-task fine-tuning): 90.2 on MNLI\n\n\nXNLI test results:\n\n\n\nEnvironmental Impact\n--------------------\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type and hours used based on the associated paper.\n\n\n* Hardware Type: 1024 V100 GPUs\n* Hours used: 24 hours (one day)\n* Cloud Provider: Unknown\n* Compute Region: Unknown\n* Carbon Emitted: Unknown\n\n\nTechnical Specifications\n------------------------\n\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details."
] | [
"TAGS\n#transformers #pytorch #tf #jax #safetensors #roberta #text-classification #autogenerated-modelcard #en #dataset-multi_nli #dataset-wikipedia #dataset-bookcorpus #arxiv-1907.11692 #arxiv-1806.02847 #arxiv-1804.07461 #arxiv-1704.05426 #arxiv-1508.05326 #arxiv-1809.05053 #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"#### Direct Use\n\n\nThis fine-tuned model can be used for zero-shot classification tasks, including zero-shot sentence-pair classification (see the GitHub repo for examples) and zero-shot sequence classification.",
"#### Misuse and Out-of-scope Use\n\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.\n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). The RoBERTa large model card notes that: \"The training data used for this model contains a lot of unfiltered content from the internet, which is far from neutral.\"\n\n\nPredictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.\n\n\nTraining\n--------",
"#### Training Data\n\n\nThis model was fine-tuned on the Multi-Genre Natural Language Inference (MNLI) corpus. Also see the MNLI data card for more information.\n\n\nAs described in the RoBERTa large model card:\n\n\n\n> \n> The RoBERTa model was pretrained on the reunion of five datasets:\n> \n> \n> * BookCorpus, a dataset consisting of 11,038 unpublished books;\n> * English Wikipedia (excluding lists, tables and headers) ;\n> * CC-News, a dataset containing 63 millions English news articles crawled between September 2016 and February 2019.\n> * OpenWebText, an opensource recreation of the WebText dataset used to train GPT-2,\n> * Stories, a dataset containing a subset of CommonCrawl data filtered to match the story-like style of Winograd schemas.\n> \n> \n> Together theses datasets weight 160GB of text.\n> \n> \n> \n\n\nAlso see the bookcorpus data card and the wikipedia data card for additional information.",
"#### Training Procedure",
"##### Preprocessing\n\n\nAs described in the RoBERTa large model card:\n\n\n\n> \n> The texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of\n> the model take pieces of 512 contiguous token that may span over documents. The beginning of a new document is marked\n> with '~~' and the end of one by '~~'\n> \n> \n> The details of the masking procedure for each sentence are the following:\n> \n> \n> * 15% of the tokens are masked.\n> * In 80% of the cases, the masked tokens are replaced by ''.\n> * In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n> * In the 10% remaining cases, the masked tokens are left as is.\n> \n> \n> Contrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).\n> \n> \n>",
"##### Pretraining\n\n\nAlso as described in the RoBERTa large model card:\n\n\n\n> \n> The model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The\n> optimizer used is Adam with a learning rate of 4e-4, \\(\\beta\\_{1} = 0.9\\), \\(\\beta\\_{2} = 0.98\\) and\n> \\(\\epsilon = 1e-6\\), a weight decay of 0.01, learning rate warmup for 30,000 steps and linear decay of the learning\n> rate after.\n> \n> \n> \n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated GitHub repo for RoBERTa.",
"#### Testing Data, Factors and Metrics\n\n\nThe model developers report that the model was evaluated on the following tasks and datasets using the listed metrics:\n\n\n* Dataset: Part of GLUE (Wang et al., 2019), the General Language Understanding Evaluation benchmark, a collection of 9 datasets for evaluating natural language understanding systems. Specifically, the model was evaluated on the Multi-Genre Natural Language Inference (MNLI) corpus. See the GLUE data card or Wang et al. (2019) for further information.\n\n\n\t+ Tasks: NLI. Wang et al. (2019) describe the inference task for MNLI as:\n> \n> The Multi-Genre Natural Language Inference Corpus (Williams et al., 2018) is a crowd-sourced collection of sentence pairs with textual entailment annotations. Given a premise sentence and a hypothesis sentence, the task is to predict whether the premise entails the hypothesis (entailment), contradicts the hypothesis (contradiction), or neither (neutral). The premise sentences are gathered from ten different sources, including transcribed speech, fiction, and government reports. We use the standard test set, for which we obtained private labels from the authors, and evaluate on both the matched (in-domain) and mismatched (cross-domain) sections. We also use and recommend the SNLI corpus (Bowman et al., 2015) as 550k examples of auxiliary training data.\n> \n> \n> \n\n\n\t+ Metrics: Accuracy\n* Dataset: XNLI (Conneau et al., 2018), the extension of the Multi-Genre Natural Language Inference (MNLI) corpus to 15 languages: English, French, Spanish, German, Greek, Bulgarian, Russian, Turkish, Arabic, Vietnamese, Thai, Chinese, Hindi, Swahili and Urdu. See the XNLI data card or Conneau et al. (2018) for further information.\n\n\n\t+ Tasks: Translate-test (e.g., the model is used to translate input sentences in other languages to the training language)\n\t+ Metrics: Accuracy",
"#### Results\n\n\nGLUE test results (dev set, single model, single-task fine-tuning): 90.2 on MNLI\n\n\nXNLI test results:\n\n\n\nEnvironmental Impact\n--------------------\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019). We present the hardware type and hours used based on the associated paper.\n\n\n* Hardware Type: 1024 V100 GPUs\n* Hours used: 24 hours (one day)\n* Cloud Provider: Unknown\n* Compute Region: Unknown\n* Carbon Emitted: Unknown\n\n\nTechnical Specifications\n------------------------\n\n\nSee the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details."
] | [
145,
52,
272,
233,
5,
234,
167,
486,
154
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #safetensors #roberta #text-classification #autogenerated-modelcard #en #dataset-multi_nli #dataset-wikipedia #dataset-bookcorpus #arxiv-1907.11692 #arxiv-1806.02847 #arxiv-1804.07461 #arxiv-1704.05426 #arxiv-1508.05326 #arxiv-1809.05053 #arxiv-1910.09700 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n#### Direct Use\n\n\nThis fine-tuned model can be used for zero-shot classification tasks, including zero-shot sentence-pair classification (see the GitHub repo for examples) and zero-shot sequence classification.#### Misuse and Out-of-scope Use\n\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.\n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). The RoBERTa large model card notes that: \"The training data used for this model contains a lot of unfiltered content from the internet, which is far from neutral.\"\n\n\nPredictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:\n\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.\n\n\nTraining\n--------",
"passage: #### Training Data\n\n\nThis model was fine-tuned on the Multi-Genre Natural Language Inference (MNLI) corpus. Also see the MNLI data card for more information.\n\n\nAs described in the RoBERTa large model card:\n\n\n\n> \n> The RoBERTa model was pretrained on the reunion of five datasets:\n> \n> \n> * BookCorpus, a dataset consisting of 11,038 unpublished books;\n> * English Wikipedia (excluding lists, tables and headers) ;\n> * CC-News, a dataset containing 63 millions English news articles crawled between September 2016 and February 2019.\n> * OpenWebText, an opensource recreation of the WebText dataset used to train GPT-2,\n> * Stories, a dataset containing a subset of CommonCrawl data filtered to match the story-like style of Winograd schemas.\n> \n> \n> Together theses datasets weight 160GB of text.\n> \n> \n> \n\n\nAlso see the bookcorpus data card and the wikipedia data card for additional information.#### Training Procedure##### Preprocessing\n\n\nAs described in the RoBERTa large model card:\n\n\n\n> \n> The texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of\n> the model take pieces of 512 contiguous token that may span over documents. The beginning of a new document is marked\n> with '~~' and the end of one by '~~'\n> \n> \n> The details of the masking procedure for each sentence are the following:\n> \n> \n> * 15% of the tokens are masked.\n> * In 80% of the cases, the masked tokens are replaced by ''.\n> * In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n> * In the 10% remaining cases, the masked tokens are left as is.\n> \n> \n> Contrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).\n> \n> \n>##### Pretraining\n\n\nAlso as described in the RoBERTa large model card:\n\n\n\n> \n> The model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The\n> optimizer used is Adam with a learning rate of 4e-4, \\(\\beta\\_{1} = 0.9\\), \\(\\beta\\_{2} = 0.98\\) and\n> \\(\\epsilon = 1e-6\\), a weight decay of 0.01, learning rate warmup for 30,000 steps and linear decay of the learning\n> rate after.\n> \n> \n> \n\n\nEvaluation\n----------\n\n\nThe following evaluation information is extracted from the associated GitHub repo for RoBERTa."
] | [
-0.03755053132772446,
0.10629034042358398,
-0.0050169071182608604,
0.06747159361839294,
0.05174051970243454,
0.03049880638718605,
0.08557820320129395,
0.06514023244380951,
-0.03192129731178284,
0.07856900244951248,
0.03597462549805641,
0.03701522946357727,
0.09873053431510925,
0.09678633511066437,
0.03263099491596222,
-0.19910064339637756,
0.06769086420536041,
-0.04033733904361725,
0.05260597914457321,
0.08461999893188477,
0.10524784028530121,
-0.08246505260467529,
0.0701543390750885,
-0.011715983971953392,
-0.012979330494999886,
-0.046677254140377045,
-0.012638095766305923,
-0.04421844705939293,
0.08924940228462219,
0.05620555579662323,
0.10011743009090424,
-0.009843520820140839,
0.050144631415605545,
-0.1730324625968933,
0.026503557339310646,
0.09040974080562592,
-0.04037201404571533,
0.07585008442401886,
0.08457088470458984,
-0.014891456812620163,
0.1521560549736023,
-0.11155569553375244,
0.06954070180654526,
0.04380890727043152,
-0.12169155478477478,
-0.18123286962509155,
-0.12679167091846466,
0.08727666735649109,
0.09320617467164993,
0.06817416846752167,
-0.042521752417087555,
0.09167368710041046,
-0.005280287936329842,
0.04970228672027588,
0.17289644479751587,
-0.11237083375453949,
-0.018353864550590515,
0.0030220486223697662,
-0.009043049067258835,
0.0626947432756424,
-0.08904439210891724,
-0.02040965110063553,
0.028967175632715225,
0.038269005715847015,
0.06934818625450134,
-0.024270467460155487,
0.05858038365840912,
-0.041502632200717926,
-0.11310115456581116,
-0.05920163914561272,
0.09078045934438705,
0.021296467632055283,
-0.07790672034025192,
-0.16100463271141052,
-0.048082996159791946,
0.0574418380856514,
0.02031135745346546,
-0.01552764791995287,
0.02094077691435814,
-0.02117527835071087,
0.05291220545768738,
-0.0772845670580864,
-0.09244263172149658,
-0.002567864255979657,
-0.05252998694777489,
0.08944107592105865,
0.028948931023478508,
0.02945980243384838,
-0.009612283669412136,
0.05473664402961731,
-0.03636063635349274,
-0.05231689289212227,
-0.07848736643791199,
-0.07330983877182007,
-0.09662910550832748,
-0.03192608803510666,
-0.06799904257059097,
-0.07139868289232254,
-0.028124142438173294,
0.10529423505067825,
-0.051335711032152176,
0.033615197986364365,
-0.027370812371373177,
0.042713552713394165,
0.11813779920339584,
0.048166416585445404,
-0.08098943531513214,
-0.013045420870184898,
0.01844855025410652,
0.05745823308825493,
0.04763199761509895,
-0.022490743547677994,
-0.019093971699476242,
-0.04207993671298027,
0.040341898798942566,
0.01989302784204483,
0.055240802466869354,
0.06956600397825241,
-0.056682199239730835,
-0.04539138823747635,
0.08454381674528122,
-0.11657576262950897,
0.0024398239329457283,
0.009981611743569374,
-0.04111184552311897,
-0.03786639869213104,
0.04228377714753151,
-0.025838928297162056,
-0.06620268523693085,
0.04338066279888153,
-0.049426574259996414,
-0.027627941220998764,
-0.11089029908180237,
-0.11156914383172989,
0.029179248958826065,
0.011608775705099106,
-0.04998340457677841,
-0.07329512387514114,
-0.18184983730316162,
-0.05221684277057648,
0.049207527190446854,
-0.015075623989105225,
-0.005596458911895752,
-0.040269188582897186,
-0.0169121865183115,
-0.021704910323023796,
0.011738604865968227,
0.04722245782613754,
-0.009703855961561203,
0.05219104886054993,
-0.07861433923244476,
0.07501474022865295,
0.026449430733919144,
0.00320741580799222,
-0.06674323976039886,
0.02411002106964588,
-0.16966713964939117,
0.1171991378068924,
-0.04869803041219711,
-0.08181974291801453,
-0.06759198009967804,
-0.04155809432268143,
-0.03826515004038811,
0.061013322323560715,
0.007254487369209528,
0.12143304198980331,
-0.1412535011768341,
-0.02986076846718788,
0.1773218810558319,
-0.12988880276679993,
-0.012970253825187683,
0.11458613723516464,
-0.094138965010643,
0.042608268558979034,
0.11158532649278641,
0.049758896231651306,
-0.011482460424304008,
-0.044756971299648285,
-0.058181293308734894,
-0.02416626736521721,
-0.07483163475990295,
0.17114973068237305,
0.03229232132434845,
-0.044572390615940094,
-0.011097240261733532,
-0.0034796977415680885,
-0.012931331060826778,
-0.04497687146067619,
0.009197958745062351,
-0.04074753075838089,
0.020745720714330673,
-0.02769036404788494,
0.07725802809000015,
-0.03231271728873253,
-0.06365656852722168,
-0.006730539258569479,
-0.09716346859931946,
-0.06450405716896057,
0.10493096709251404,
-0.037933915853500366,
0.043307289481163025,
-0.05916999652981758,
0.007760819047689438,
0.0011654244735836983,
0.004608554765582085,
-0.16389109194278717,
-0.026729563251137733,
0.019878050312399864,
-0.119063600897789,
0.07315625250339508,
0.09952596575021744,
0.026408586651086807,
0.03587435558438301,
-0.07088196277618408,
-0.010396935045719147,
-0.040641363710165024,
-0.02001892775297165,
-0.07936036586761475,
-0.1289702206850052,
-0.021249962970614433,
-0.04024457186460495,
0.06931240111589432,
-0.14227581024169922,
0.02729414589703083,
0.037867724895477295,
0.013269824907183647,
0.02068755030632019,
-0.04177379980683327,
0.039475683122873306,
-0.0016472460702061653,
-0.018138835206627846,
-0.04395165294408798,
0.0030182674527168274,
-0.005635572597384453,
-0.040753550827503204,
0.05259408429265022,
-0.18226845562458038,
-0.09750477224588394,
0.09084413945674896,
-0.0026980414986610413,
-0.12051299959421158,
-0.019802570343017578,
-0.007180656306445599,
-0.009216509759426117,
-0.08976558595895767,
-0.043568529188632965,
0.1859387755393982,
0.02143830992281437,
0.06965258717536926,
-0.09908382594585419,
-0.032037489116191864,
-0.018142076209187508,
-0.026797298341989517,
-0.06208955496549606,
0.04656161367893219,
-0.001012653112411499,
-0.18986734747886658,
0.07938074320554733,
0.017931079491972923,
-0.04433997720479965,
0.07785885781049728,
0.07329538464546204,
-0.08118264377117157,
-0.03745662420988083,
0.0028790468350052834,
0.010131021961569786,
0.1004256159067154,
0.029712539166212082,
0.033244386315345764,
0.045672859996557236,
0.020787863060832024,
0.025311071425676346,
-0.07331106811761856,
0.037847887724637985,
0.05023883283138275,
-0.00028106942772865295,
-0.0351564958691597,
-0.03886554390192032,
0.03154754266142845,
0.11792871356010437,
0.02062532678246498,
0.05340900644659996,
0.020788021385669708,
-0.050599221140146255,
-0.12905985116958618,
0.17147196829319,
-0.10158346593379974,
-0.24313876032829285,
-0.11025041341781616,
-0.024097522720694542,
-0.004923098720610142,
0.036652643233537674,
-0.005433434154838324,
-0.05061854049563408,
-0.06491030007600784,
-0.12341117113828659,
0.051979999989271164,
-0.03657335415482521,
-0.06468895077705383,
-0.00919824093580246,
0.022999651730060577,
0.02055498957633972,
-0.09734567254781723,
0.02671888656914234,
-0.019586361944675446,
-0.08964511752128601,
0.021046075969934464,
0.016166221350431442,
0.07108941674232483,
0.056805722415447235,
0.0027359910309314728,
-0.04891955107450485,
-0.0336325466632843,
0.19610950350761414,
-0.08726461231708527,
0.07021679729223251,
0.07150106877088547,
-0.08015251904726028,
0.07951392233371735,
0.09869164973497391,
0.004536711610853672,
-0.04862328618764877,
0.011200033128261566,
0.05057875066995621,
-0.020565537735819817,
-0.2189112901687622,
-0.046609554439783096,
-0.015785330906510353,
-0.03422734513878822,
0.09803278744220734,
0.030020803213119507,
0.06785134226083755,
0.06117217242717743,
-0.09815292060375214,
0.01074758730828762,
0.08887133002281189,
0.07685170322656631,
-0.007164357230067253,
-0.013154813088476658,
0.039681173861026764,
-0.033948395401239395,
0.028600988909602165,
0.0916135162115097,
-0.0028388146311044693,
0.2354428470134735,
-0.06721946597099304,
0.13782718777656555,
0.06804409623146057,
0.024106431752443314,
0.012529470026493073,
0.04711684584617615,
-0.05945228785276413,
0.04463179409503937,
-0.06494556367397308,
-0.03536001592874527,
-0.06213118135929108,
0.07387425750494003,
0.05207329988479614,
0.027671698480844498,
-0.04526502266526222,
-0.047013260424137115,
0.06842207163572311,
0.14559447765350342,
0.006307996343821287,
-0.12589377164840698,
-0.03677694499492645,
0.047638826072216034,
-0.019672533497214317,
-0.08070887625217438,
0.007953023537993431,
0.09231828153133392,
-0.12748628854751587,
0.06093025207519531,
-0.03219252824783325,
0.06234701722860336,
-0.1393234133720398,
-0.0065785059705376625,
-0.0714355856180191,
0.08576704561710358,
-0.037105657160282135,
0.09113847464323044,
-0.20422157645225525,
0.15137015283107758,
0.026028530672192574,
0.07132794708013535,
-0.1027621403336525,
0.01271459273993969,
0.023153604939579964,
-0.020028097555041313,
0.13920733332633972,
0.02419121190905571,
-0.10129166394472122,
-0.07745693624019623,
-0.02859598398208618,
0.003933860920369625,
0.07142122089862823,
-0.00445575313642621,
0.088747538626194,
0.013600597158074379,
0.007875795476138592,
-0.013982893899083138,
0.016968831419944763,
-0.08967852592468262,
-0.19834929704666138,
0.047261737287044525,
-0.06727974116802216,
-0.02830774337053299,
-0.07883012294769287,
-0.019607994705438614,
-0.04919590801000595,
0.13115853071212769,
-0.17295220494270325,
-0.076043501496315,
-0.0994596779346466,
0.0210749339312315,
0.08372659981250763,
-0.07480863481760025,
0.02438678778707981,
0.021883893758058548,
0.14743760228157043,
-0.0875086560845375,
-0.065285325050354,
0.02741703949868679,
-0.06465010344982147,
-0.15307721495628357,
-0.06236625090241432,
0.05188550055027008,
0.1609993577003479,
0.0645783543586731,
0.005433029495179653,
0.02941012941300869,
0.0019073430448770523,
-0.0854237824678421,
0.02953352779150009,
0.14065557718276978,
0.10152283310890198,
0.09907547384500504,
-0.04498368129134178,
-0.14088505506515503,
-0.10622534155845642,
-0.024145003408193588,
0.09246749430894852,
0.22614571452140808,
-0.029866322875022888,
0.12016947567462921,
0.22420670092105865,
-0.113334059715271,
-0.20007936656475067,
-0.002327845897525549,
0.01773672178387642,
0.00680449279025197,
0.04893914982676506,
-0.22253942489624023,
-0.007911812514066696,
0.07993912696838379,
0.012403111904859543,
0.021887585520744324,
-0.1879352629184723,
-0.09900175034999847,
0.089769646525383,
0.06078927218914032,
-0.0005897935479879379,
-0.06841110438108444,
-0.01577209308743477,
-0.04266688972711563,
-0.006339317187666893,
0.08963333070278168,
-0.04504893347620964,
0.06531812250614166,
0.031245455145835876,
0.03625151887536049,
0.024672284722328186,
-0.03864431381225586,
0.14818236231803894,
-0.023800229653716087,
0.10039412975311279,
-0.09451619535684586,
-0.07607930153608322,
0.05800333991646767,
-0.05902610719203949,
0.06437757611274719,
-0.012205936014652252,
0.020923830568790436,
-0.05885915458202362,
-0.05104963853955269,
-0.09598153829574585,
0.04144614189863205,
-0.05919024348258972,
-0.04658268392086029,
-0.10115595161914825,
0.09586960077285767,
0.11675970256328583,
-0.011805320158600807,
-0.012238794937729836,
-0.046719543635845184,
0.02363795042037964,
0.06808759272098541,
0.17463168501853943,
0.09677958488464355,
-0.08214719593524933,
-0.02272765338420868,
-0.030120518058538437,
0.07175421714782715,
-0.07544119656085968,
0.009645568206906319,
0.029973842203617096,
-0.005879542790353298,
0.14620424807071686,
0.010807774029672146,
-0.14457345008850098,
0.018683213740587234,
0.0007835454307496548,
-0.08440731465816498,
-0.1292036771774292,
0.02344701997935772,
0.1086631715297699,
-0.15090420842170715,
-0.07335211336612701,
0.08872073143720627,
-0.03220098465681076,
-0.037809357047080994,
-0.012306725606322289,
0.07975421100854874,
0.01820800080895424,
0.06172563135623932,
0.05123724788427353,
0.0394950807094574,
-0.06793491542339325,
0.10979770869016647,
0.07861410826444626,
-0.08437943458557129,
0.09397657215595245,
0.06321325898170471,
-0.06939589977264404,
-0.05429093912243843,
-0.015107311308383942,
0.08454380184412003,
0.05565960332751274,
-0.04322870075702667,
0.0429832860827446,
-0.06170591711997986,
0.04239097610116005,
0.1196233332157135,
0.02059830352663994,
0.049546148627996445,
0.004604140296578407,
0.02287401258945465,
-0.0690968781709671,
0.05546822398900986,
-0.002632028888911009,
0.015092241577804089,
-0.0018700901418924332,
0.09893140196800232,
0.018410008400678635,
0.00040151504799723625,
-0.00806836411356926,
-0.025577407330274582,
-0.07147245854139328,
-0.003076772205531597,
-0.07368497550487518,
0.03081965073943138,
-0.10385313630104065,
0.0016161296516656876,
-0.016686879098415375,
0.017720066010951996,
0.02816176414489746,
0.01559111662209034,
-0.05702529847621918,
-0.01570170372724533,
-0.009450731799006462,
0.02751675248146057,
-0.13212288916110992,
-0.013000605627894402,
0.06077073886990547,
-0.06671813875436783,
0.0919608622789383,
-0.004582550376653671,
-0.04810342937707901,
-0.003975074738264084,
-0.16903617978096008,
0.014779618941247463,
-0.04627855122089386,
0.013554533943533897,
-0.017795482650399208,
-0.15526652336120605,
0.0023695738054811954,
-0.0305529423058033,
-0.031856734305620193,
-0.0007006321102380753,
0.03714744746685028,
-0.06327114999294281,
0.09752517193555832,
0.037092797458171844,
-0.03118368797004223,
-0.07047727704048157,
0.07003825902938843,
0.07714643329381943,
-0.04431356117129326,
0.12408190965652466,
-0.03107994981110096,
0.04587644338607788,
-0.13837820291519165,
0.014209426008164883,
0.028120022267103195,
0.0056211743503808975,
0.011706864461302757,
-0.05021671950817108,
0.06149114668369293,
-0.02086743339896202,
0.16948352754116058,
-0.03671402856707573,
-0.1269412785768509,
0.03441285341978073,
-0.03450358286499977,
-0.07695373892784119,
0.042990073561668396,
0.0381820909678936,
-0.05823684111237526,
-0.05039273947477341,
0.017034273594617844,
-0.009016874246299267,
0.0015018638223409653,
0.02497921884059906,
0.14991798996925354,
0.1467292606830597,
0.19048956036567688,
0.017072437331080437,
-0.007064575795084238,
-0.08166775852441788,
0.0008966350578702986,
0.038204364478588104,
-0.005413837730884552,
0.0044191740453243256,
-0.01767117716372013,
0.05508723109960556,
0.0968497171998024,
-0.10370531678199768,
0.1046135202050209,
-0.009431581944227219,
-0.061490386724472046,
-0.06067775934934616,
-0.20448368787765503,
-0.041739966720342636,
0.06732861697673798,
-0.003907541744410992,
-0.11155763268470764,
0.025159072130918503,
0.07378233224153519,
0.014359528198838234,
-0.03857530653476715,
0.07390417158603668,
-0.06095961481332779,
-0.07395705580711365,
0.058763287961483,
0.009323819540441036,
-0.004508056677877903,
0.060132063925266266,
-0.03464189171791077,
0.05108240246772766,
0.027570536360144615,
0.07870399951934814,
0.06060192734003067,
0.06764916330575943,
0.030624916777014732,
-0.035314176231622696,
-0.07624870538711548,
0.0229120384901762,
-0.007860710844397545,
0.05398485064506531,
0.19981299340724945,
0.040993582457304,
-0.03186303377151489,
-0.005120452027767897,
0.11242584884166718,
-0.0189601331949234,
-0.05026128888130188,
-0.1223381832242012,
0.13355092704296112,
-0.016963645815849304,
-0.01669195108115673,
0.018677249550819397,
-0.10188344120979309,
0.06601955741643906,
0.16419053077697754,
0.17097625136375427,
-0.05555593967437744,
-0.00035538547672331333,
0.0011627674102783203,
0.011076262220740318,
0.028548799455165863,
0.07362587004899979,
0.024932371452450752,
0.19658860564231873,
-0.06803925335407257,
0.11002154648303986,
-0.004702539648860693,
0.01942126452922821,
-0.017139192670583725,
0.13185879588127136,
-0.02415645495057106,
0.010611312463879585,
-0.0850980132818222,
0.04672972485423088,
-0.034285396337509155,
-0.25259140133857727,
0.010619076900184155,
-0.039782073348760605,
-0.09885156154632568,
0.030395550653338432,
0.020799364894628525,
0.028963817283511162,
0.0757007896900177,
0.03284865990281105,
0.006789167877286673,
0.13682422041893005,
-0.005165671929717064,
-0.07718320935964584,
-0.05326542258262634,
0.0673896074295044,
-0.03264562785625458,
0.2308366447687149,
0.028573863208293915,
0.07832082360982895,
0.08949480950832367,
-0.03921208530664444,
-0.09912557154893875,
0.042911596596241,
0.013931824825704098,
0.012907171621918678,
0.027126895263791084,
0.1830846071243286,
-0.0063345422968268394,
0.07765066623687744,
0.0864405483007431,
-0.027259942144155502,
0.07111513614654541,
-0.020676707848906517,
-0.0767478495836258,
-0.05572996288537979,
0.08974993228912354,
-0.07456263899803162,
0.12557092308998108,
0.14704138040542603,
0.001621274626813829,
-0.010205819271504879,
-0.030111638829112053,
-0.008300913497805595,
-0.014324592426419258,
0.10505056381225586,
-0.01034671813249588,
-0.13019834458827972,
0.013333559036254883,
-0.037263862788677216,
0.06765839457511902,
-0.21102061867713928,
-0.04118650406599045,
0.005505960434675217,
-0.06641493737697601,
-0.0010610742028802633,
0.06475578993558884,
-0.0131300063803792,
0.018102334812283516,
-0.03101012483239174,
0.035462845116853714,
0.005488693714141846,
0.09095042198896408,
-0.08846791088581085,
-0.03312501311302185
] |
null | null | transformers |
# RoBERTa Large OpenAI Detector
## Table of Contents
- [Model Details](#model-details)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation)
- [Environmental Impact](#environmental-impact)
- [Technical Specifications](#technical-specifications)
- [Citation Information](#citation-information)
- [Model Card Authors](#model-card-authors)
- [How To Get Started With the Model](#how-to-get-started-with-the-model)
## Model Details
**Model Description:** RoBERTa large OpenAI Detector is the GPT-2 output detector model, obtained by fine-tuning a RoBERTa large model with the outputs of the 1.5B-parameter GPT-2 model. The model can be used to predict if text was generated by a GPT-2 model. This model was released by OpenAI at the same time as OpenAI released the weights of the [largest GPT-2 model](https://huggingface.co/gpt2-xl), the 1.5B parameter version.
- **Developed by:** OpenAI, see [GitHub Repo](https://github.com/openai/gpt-2-output-dataset/tree/master/detector) and [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for full author list
- **Model Type:** Fine-tuned transformer-based language model
- **Language(s):** English
- **License:** MIT
- **Related Models:** [RoBERTa large](https://huggingface.co/roberta-large), [GPT-XL (1.5B parameter version)](https://huggingface.co/gpt2-xl), [GPT-Large (the 774M parameter version)](https://huggingface.co/gpt2-large), [GPT-Medium (the 355M parameter version)](https://huggingface.co/gpt2-medium) and [GPT-2 (the 124M parameter version)](https://huggingface.co/gpt2)
- **Resources for more information:**
- [Research Paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) (see, in particular, the section beginning on page 12 about Automated ML-based detection).
- [GitHub Repo](https://github.com/openai/gpt-2-output-dataset/tree/master/detector)
- [OpenAI Blog Post](https://openai.com/blog/gpt-2-1-5b-release/)
- [Explore the detector model here](https://huggingface.co/openai-detector )
## Uses
#### Direct Use
The model is a classifier that can be used to detect text generated by GPT-2 models.
#### Downstream Use
The model's developers have stated that they developed and released the model to help with research related to synthetic text generation, so the model could potentially be used for downstream tasks related to synthetic text generation. See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for further discussion.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model developers discuss the risk of adversaries using the model to better evade detection in their [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf), suggesting that using the model for evading detection or for supporting efforts to evade detection would be a misuse of the model.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.**
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
#### Risks and Limitations
In their [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf), the model developers discuss the risk that the model may be used by bad actors to develop capabilities for evading detection, though one purpose of releasing the model is to help improve detection research.
In a related [blog post](https://openai.com/blog/gpt-2-1-5b-release/), the model developers also discuss the limitations of automated methods for detecting synthetic text and the need to pair automated detection tools with other, non-automated approaches. They write:
> We conducted in-house detection research and developed a detection model that has detection rates of ~95% for detecting 1.5B GPT-2-generated text. We believe this is not high enough accuracy for standalone detection and needs to be paired with metadata-based approaches, human judgment, and public education to be more effective.
The model developers also [report](https://openai.com/blog/gpt-2-1-5b-release/) finding that classifying content from larger models is more difficult, suggesting that detection with automated tools like this model will be increasingly difficult as model sizes increase. The authors find that training detector models on the outputs of larger models can improve accuracy and robustness.
#### Bias
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by RoBERTa large and GPT-2 1.5B (which this model is built/fine-tuned on) can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups (see the [RoBERTa large](https://huggingface.co/roberta-large) and [GPT-2 XL](https://huggingface.co/gpt2-xl) model cards for more information). The developers of this model discuss these issues further in their [paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf).
## Training
#### Training Data
The model is a sequence classifier based on RoBERTa large (see the [RoBERTa large model card](https://huggingface.co/roberta-large) for more details on the RoBERTa large training data) and then fine-tuned using the outputs of the 1.5B GPT-2 model (available [here](https://github.com/openai/gpt-2-output-dataset)).
#### Training Procedure
The model developers write that:
> We based a sequence classifier on RoBERTaLARGE (355 million parameters) and fine-tuned it to classify the outputs from the 1.5B GPT-2 model versus WebText, the dataset we used to train the GPT-2 model.
They later state:
> To develop a robust detector model that can accurately classify generated texts regardless of the sampling method, we performed an analysis of the model’s transfer performance.
See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for further details on the training procedure.
## Evaluation
The following evaluation information is extracted from the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf).
#### Testing Data, Factors and Metrics
The model is intended to be used for detecting text generated by GPT-2 models, so the model developers test the model on text datasets, measuring accuracy by:
> testing 510-token test examples comprised of 5,000 samples from the WebText dataset and 5,000 samples generated by a GPT-2 model, which were not used during the training.
#### Results
The model developers [find](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf):
> Our classifier is able to detect 1.5 billion parameter GPT-2-generated text with approximately 95% accuracy...The model’s accuracy depends on sampling methods used when generating outputs, like temperature, Top-K, and nucleus sampling ([Holtzman et al., 2019](https://arxiv.org/abs/1904.09751). Nucleus sampling outputs proved most difficult to correctly classify, but a detector trained using nucleus sampling transfers well across other sampling methods. As seen in Figure 1 [in the paper], we found consistently high accuracy when trained on nucleus sampling.
See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf), Figure 1 (on page 14) and Figure 2 (on page 16) for full results.
## Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** Unknown
- **Hours used:** Unknown
- **Cloud Provider:** Unknown
- **Compute Region:** Unknown
- **Carbon Emitted:** Unknown
## Technical Specifications
The model developers write that:
See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for further details on the modeling architecture and training details.
## Citation Information
```bibtex
@article{solaiman2019release,
title={Release strategies and the social impacts of language models},
author={Solaiman, Irene and Brundage, Miles and Clark, Jack and Askell, Amanda and Herbert-Voss, Ariel and Wu, Jeff and Radford, Alec and Krueger, Gretchen and Kim, Jong Wook and Kreps, Sarah and others},
journal={arXiv preprint arXiv:1908.09203},
year={2019}
}
```
APA:
- Solaiman, I., Brundage, M., Clark, J., Askell, A., Herbert-Voss, A., Wu, J., ... & Wang, J. (2019). Release strategies and the social impacts of language models. arXiv preprint arXiv:1908.09203.
https://huggingface.co/papers/1908.09203
## Model Card Authors
This model card was written by the team at Hugging Face.
## How to Get Started with the Model
More information needed | {"language": "en", "license": "mit", "tags": ["exbert"], "datasets": ["bookcorpus", "wikipedia"]} | text-classification | openai-community/roberta-large-openai-detector | [
"transformers",
"pytorch",
"jax",
"roberta",
"text-classification",
"exbert",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1904.09751",
"arxiv:1910.09700",
"arxiv:1908.09203",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1904.09751",
"1910.09700",
"1908.09203"
] | [
"en"
] | TAGS
#transformers #pytorch #jax #roberta #text-classification #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1904.09751 #arxiv-1910.09700 #arxiv-1908.09203 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us
|
# RoBERTa Large OpenAI Detector
## Table of Contents
- Model Details
- Uses
- Risks, Limitations and Biases
- Training
- Evaluation
- Environmental Impact
- Technical Specifications
- Citation Information
- Model Card Authors
- How To Get Started With the Model
## Model Details
Model Description: RoBERTa large OpenAI Detector is the GPT-2 output detector model, obtained by fine-tuning a RoBERTa large model with the outputs of the 1.5B-parameter GPT-2 model. The model can be used to predict if text was generated by a GPT-2 model. This model was released by OpenAI at the same time as OpenAI released the weights of the largest GPT-2 model, the 1.5B parameter version.
- Developed by: OpenAI, see GitHub Repo and associated paper for full author list
- Model Type: Fine-tuned transformer-based language model
- Language(s): English
- License: MIT
- Related Models: RoBERTa large, GPT-XL (1.5B parameter version), GPT-Large (the 774M parameter version), GPT-Medium (the 355M parameter version) and GPT-2 (the 124M parameter version)
- Resources for more information:
- Research Paper (see, in particular, the section beginning on page 12 about Automated ML-based detection).
- GitHub Repo
- OpenAI Blog Post
- Explore the detector model here
## Uses
#### Direct Use
The model is a classifier that can be used to detect text generated by GPT-2 models.
#### Downstream Use
The model's developers have stated that they developed and released the model to help with research related to synthetic text generation, so the model could potentially be used for downstream tasks related to synthetic text generation. See the associated paper for further discussion.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model developers discuss the risk of adversaries using the model to better evade detection in their associated paper, suggesting that using the model for evading detection or for supporting efforts to evade detection would be a misuse of the model.
## Risks, Limitations and Biases
CONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
#### Risks and Limitations
In their associated paper, the model developers discuss the risk that the model may be used by bad actors to develop capabilities for evading detection, though one purpose of releasing the model is to help improve detection research.
In a related blog post, the model developers also discuss the limitations of automated methods for detecting synthetic text and the need to pair automated detection tools with other, non-automated approaches. They write:
> We conducted in-house detection research and developed a detection model that has detection rates of ~95% for detecting 1.5B GPT-2-generated text. We believe this is not high enough accuracy for standalone detection and needs to be paired with metadata-based approaches, human judgment, and public education to be more effective.
The model developers also report finding that classifying content from larger models is more difficult, suggesting that detection with automated tools like this model will be increasingly difficult as model sizes increase. The authors find that training detector models on the outputs of larger models can improve accuracy and robustness.
#### Bias
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by RoBERTa large and GPT-2 1.5B (which this model is built/fine-tuned on) can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups (see the RoBERTa large and GPT-2 XL model cards for more information). The developers of this model discuss these issues further in their paper.
## Training
#### Training Data
The model is a sequence classifier based on RoBERTa large (see the RoBERTa large model card for more details on the RoBERTa large training data) and then fine-tuned using the outputs of the 1.5B GPT-2 model (available here).
#### Training Procedure
The model developers write that:
> We based a sequence classifier on RoBERTaLARGE (355 million parameters) and fine-tuned it to classify the outputs from the 1.5B GPT-2 model versus WebText, the dataset we used to train the GPT-2 model.
They later state:
> To develop a robust detector model that can accurately classify generated texts regardless of the sampling method, we performed an analysis of the model’s transfer performance.
See the associated paper for further details on the training procedure.
## Evaluation
The following evaluation information is extracted from the associated paper.
#### Testing Data, Factors and Metrics
The model is intended to be used for detecting text generated by GPT-2 models, so the model developers test the model on text datasets, measuring accuracy by:
> testing 510-token test examples comprised of 5,000 samples from the WebText dataset and 5,000 samples generated by a GPT-2 model, which were not used during the training.
#### Results
The model developers find:
> Our classifier is able to detect 1.5 billion parameter GPT-2-generated text with approximately 95% accuracy...The model’s accuracy depends on sampling methods used when generating outputs, like temperature, Top-K, and nucleus sampling (Holtzman et al., 2019. Nucleus sampling outputs proved most difficult to correctly classify, but a detector trained using nucleus sampling transfers well across other sampling methods. As seen in Figure 1 [in the paper], we found consistently high accuracy when trained on nucleus sampling.
See the associated paper, Figure 1 (on page 14) and Figure 2 (on page 16) for full results.
## Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: Unknown
- Hours used: Unknown
- Cloud Provider: Unknown
- Compute Region: Unknown
- Carbon Emitted: Unknown
## Technical Specifications
The model developers write that:
See the associated paper for further details on the modeling architecture and training details.
APA:
- Solaiman, I., Brundage, M., Clark, J., Askell, A., Herbert-Voss, A., Wu, J., ... & Wang, J. (2019). Release strategies and the social impacts of language models. arXiv preprint arXiv:1908.09203.
URL
## Model Card Authors
This model card was written by the team at Hugging Face.
## How to Get Started with the Model
More information needed | [
"# RoBERTa Large OpenAI Detector",
"## Table of Contents\n- Model Details\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors\n- How To Get Started With the Model",
"## Model Details\n\nModel Description: RoBERTa large OpenAI Detector is the GPT-2 output detector model, obtained by fine-tuning a RoBERTa large model with the outputs of the 1.5B-parameter GPT-2 model. The model can be used to predict if text was generated by a GPT-2 model. This model was released by OpenAI at the same time as OpenAI released the weights of the largest GPT-2 model, the 1.5B parameter version. \n\n- Developed by: OpenAI, see GitHub Repo and associated paper for full author list\n- Model Type: Fine-tuned transformer-based language model\n- Language(s): English\n- License: MIT\n- Related Models: RoBERTa large, GPT-XL (1.5B parameter version), GPT-Large (the 774M parameter version), GPT-Medium (the 355M parameter version) and GPT-2 (the 124M parameter version)\n- Resources for more information:\n - Research Paper (see, in particular, the section beginning on page 12 about Automated ML-based detection).\n - GitHub Repo\n - OpenAI Blog Post\n - Explore the detector model here",
"## Uses",
"#### Direct Use\n\nThe model is a classifier that can be used to detect text generated by GPT-2 models.",
"#### Downstream Use\n\nThe model's developers have stated that they developed and released the model to help with research related to synthetic text generation, so the model could potentially be used for downstream tasks related to synthetic text generation. See the associated paper for further discussion.",
"#### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model developers discuss the risk of adversaries using the model to better evade detection in their associated paper, suggesting that using the model for evading detection or for supporting efforts to evade detection would be a misuse of the model.",
"## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"#### Risks and Limitations\n\nIn their associated paper, the model developers discuss the risk that the model may be used by bad actors to develop capabilities for evading detection, though one purpose of releasing the model is to help improve detection research. \n\nIn a related blog post, the model developers also discuss the limitations of automated methods for detecting synthetic text and the need to pair automated detection tools with other, non-automated approaches. They write: \n\n> We conducted in-house detection research and developed a detection model that has detection rates of ~95% for detecting 1.5B GPT-2-generated text. We believe this is not high enough accuracy for standalone detection and needs to be paired with metadata-based approaches, human judgment, and public education to be more effective. \n\nThe model developers also report finding that classifying content from larger models is more difficult, suggesting that detection with automated tools like this model will be increasingly difficult as model sizes increase. The authors find that training detector models on the outputs of larger models can improve accuracy and robustness.",
"#### Bias\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by RoBERTa large and GPT-2 1.5B (which this model is built/fine-tuned on) can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups (see the RoBERTa large and GPT-2 XL model cards for more information). The developers of this model discuss these issues further in their paper.",
"## Training",
"#### Training Data\n\nThe model is a sequence classifier based on RoBERTa large (see the RoBERTa large model card for more details on the RoBERTa large training data) and then fine-tuned using the outputs of the 1.5B GPT-2 model (available here).",
"#### Training Procedure\n\nThe model developers write that: \n\n> We based a sequence classifier on RoBERTaLARGE (355 million parameters) and fine-tuned it to classify the outputs from the 1.5B GPT-2 model versus WebText, the dataset we used to train the GPT-2 model.\n\nThey later state: \n\n> To develop a robust detector model that can accurately classify generated texts regardless of the sampling method, we performed an analysis of the model’s transfer performance.\n\nSee the associated paper for further details on the training procedure.",
"## Evaluation\n\nThe following evaluation information is extracted from the associated paper.",
"#### Testing Data, Factors and Metrics\n\nThe model is intended to be used for detecting text generated by GPT-2 models, so the model developers test the model on text datasets, measuring accuracy by: \n\n> testing 510-token test examples comprised of 5,000 samples from the WebText dataset and 5,000 samples generated by a GPT-2 model, which were not used during the training.",
"#### Results\n\nThe model developers find: \n\n> Our classifier is able to detect 1.5 billion parameter GPT-2-generated text with approximately 95% accuracy...The model’s accuracy depends on sampling methods used when generating outputs, like temperature, Top-K, and nucleus sampling (Holtzman et al., 2019. Nucleus sampling outputs proved most difficult to correctly classify, but a detector trained using nucleus sampling transfers well across other sampling methods. As seen in Figure 1 [in the paper], we found consistently high accuracy when trained on nucleus sampling. \t\n\nSee the associated paper, Figure 1 (on page 14) and Figure 2 (on page 16) for full results.",
"## Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Unknown\n- Hours used: Unknown\n- Cloud Provider: Unknown\n- Compute Region: Unknown\n- Carbon Emitted: Unknown",
"## Technical Specifications\n\nThe model developers write that: \n\nSee the associated paper for further details on the modeling architecture and training details.\n\n\n\n\n\nAPA: \n- Solaiman, I., Brundage, M., Clark, J., Askell, A., Herbert-Voss, A., Wu, J., ... & Wang, J. (2019). Release strategies and the social impacts of language models. arXiv preprint arXiv:1908.09203.\n\nURL",
"## Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"## How to Get Started with the Model \n\nMore information needed"
] | [
"TAGS\n#transformers #pytorch #jax #roberta #text-classification #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1904.09751 #arxiv-1910.09700 #arxiv-1908.09203 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"# RoBERTa Large OpenAI Detector",
"## Table of Contents\n- Model Details\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors\n- How To Get Started With the Model",
"## Model Details\n\nModel Description: RoBERTa large OpenAI Detector is the GPT-2 output detector model, obtained by fine-tuning a RoBERTa large model with the outputs of the 1.5B-parameter GPT-2 model. The model can be used to predict if text was generated by a GPT-2 model. This model was released by OpenAI at the same time as OpenAI released the weights of the largest GPT-2 model, the 1.5B parameter version. \n\n- Developed by: OpenAI, see GitHub Repo and associated paper for full author list\n- Model Type: Fine-tuned transformer-based language model\n- Language(s): English\n- License: MIT\n- Related Models: RoBERTa large, GPT-XL (1.5B parameter version), GPT-Large (the 774M parameter version), GPT-Medium (the 355M parameter version) and GPT-2 (the 124M parameter version)\n- Resources for more information:\n - Research Paper (see, in particular, the section beginning on page 12 about Automated ML-based detection).\n - GitHub Repo\n - OpenAI Blog Post\n - Explore the detector model here",
"## Uses",
"#### Direct Use\n\nThe model is a classifier that can be used to detect text generated by GPT-2 models.",
"#### Downstream Use\n\nThe model's developers have stated that they developed and released the model to help with research related to synthetic text generation, so the model could potentially be used for downstream tasks related to synthetic text generation. See the associated paper for further discussion.",
"#### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model developers discuss the risk of adversaries using the model to better evade detection in their associated paper, suggesting that using the model for evading detection or for supporting efforts to evade detection would be a misuse of the model.",
"## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"#### Risks and Limitations\n\nIn their associated paper, the model developers discuss the risk that the model may be used by bad actors to develop capabilities for evading detection, though one purpose of releasing the model is to help improve detection research. \n\nIn a related blog post, the model developers also discuss the limitations of automated methods for detecting synthetic text and the need to pair automated detection tools with other, non-automated approaches. They write: \n\n> We conducted in-house detection research and developed a detection model that has detection rates of ~95% for detecting 1.5B GPT-2-generated text. We believe this is not high enough accuracy for standalone detection and needs to be paired with metadata-based approaches, human judgment, and public education to be more effective. \n\nThe model developers also report finding that classifying content from larger models is more difficult, suggesting that detection with automated tools like this model will be increasingly difficult as model sizes increase. The authors find that training detector models on the outputs of larger models can improve accuracy and robustness.",
"#### Bias\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by RoBERTa large and GPT-2 1.5B (which this model is built/fine-tuned on) can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups (see the RoBERTa large and GPT-2 XL model cards for more information). The developers of this model discuss these issues further in their paper.",
"## Training",
"#### Training Data\n\nThe model is a sequence classifier based on RoBERTa large (see the RoBERTa large model card for more details on the RoBERTa large training data) and then fine-tuned using the outputs of the 1.5B GPT-2 model (available here).",
"#### Training Procedure\n\nThe model developers write that: \n\n> We based a sequence classifier on RoBERTaLARGE (355 million parameters) and fine-tuned it to classify the outputs from the 1.5B GPT-2 model versus WebText, the dataset we used to train the GPT-2 model.\n\nThey later state: \n\n> To develop a robust detector model that can accurately classify generated texts regardless of the sampling method, we performed an analysis of the model’s transfer performance.\n\nSee the associated paper for further details on the training procedure.",
"## Evaluation\n\nThe following evaluation information is extracted from the associated paper.",
"#### Testing Data, Factors and Metrics\n\nThe model is intended to be used for detecting text generated by GPT-2 models, so the model developers test the model on text datasets, measuring accuracy by: \n\n> testing 510-token test examples comprised of 5,000 samples from the WebText dataset and 5,000 samples generated by a GPT-2 model, which were not used during the training.",
"#### Results\n\nThe model developers find: \n\n> Our classifier is able to detect 1.5 billion parameter GPT-2-generated text with approximately 95% accuracy...The model’s accuracy depends on sampling methods used when generating outputs, like temperature, Top-K, and nucleus sampling (Holtzman et al., 2019. Nucleus sampling outputs proved most difficult to correctly classify, but a detector trained using nucleus sampling transfers well across other sampling methods. As seen in Figure 1 [in the paper], we found consistently high accuracy when trained on nucleus sampling. \t\n\nSee the associated paper, Figure 1 (on page 14) and Figure 2 (on page 16) for full results.",
"## Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Unknown\n- Hours used: Unknown\n- Cloud Provider: Unknown\n- Compute Region: Unknown\n- Carbon Emitted: Unknown",
"## Technical Specifications\n\nThe model developers write that: \n\nSee the associated paper for further details on the modeling architecture and training details.\n\n\n\n\n\nAPA: \n- Solaiman, I., Brundage, M., Clark, J., Askell, A., Herbert-Voss, A., Wu, J., ... & Wang, J. (2019). Release strategies and the social impacts of language models. arXiv preprint arXiv:1908.09203.\n\nURL",
"## Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"## How to Get Started with the Model \n\nMore information needed"
] | [
92,
10,
52,
258,
3,
25,
62,
88,
74,
248,
133,
2,
64,
125,
15,
97,
175,
68,
106,
18,
12
] | [
"passage: TAGS\n#transformers #pytorch #jax #roberta #text-classification #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1904.09751 #arxiv-1910.09700 #arxiv-1908.09203 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n# RoBERTa Large OpenAI Detector## Table of Contents\n- Model Details\n- Uses\n- Risks, Limitations and Biases\n- Training\n- Evaluation\n- Environmental Impact\n- Technical Specifications\n- Citation Information\n- Model Card Authors\n- How To Get Started With the Model## Model Details\n\nModel Description: RoBERTa large OpenAI Detector is the GPT-2 output detector model, obtained by fine-tuning a RoBERTa large model with the outputs of the 1.5B-parameter GPT-2 model. The model can be used to predict if text was generated by a GPT-2 model. This model was released by OpenAI at the same time as OpenAI released the weights of the largest GPT-2 model, the 1.5B parameter version. \n\n- Developed by: OpenAI, see GitHub Repo and associated paper for full author list\n- Model Type: Fine-tuned transformer-based language model\n- Language(s): English\n- License: MIT\n- Related Models: RoBERTa large, GPT-XL (1.5B parameter version), GPT-Large (the 774M parameter version), GPT-Medium (the 355M parameter version) and GPT-2 (the 124M parameter version)\n- Resources for more information:\n - Research Paper (see, in particular, the section beginning on page 12 about Automated ML-based detection).\n - GitHub Repo\n - OpenAI Blog Post\n - Explore the detector model here## Uses#### Direct Use\n\nThe model is a classifier that can be used to detect text generated by GPT-2 models.#### Downstream Use\n\nThe model's developers have stated that they developed and released the model to help with research related to synthetic text generation, so the model could potentially be used for downstream tasks related to synthetic text generation. See the associated paper for further discussion.",
"passage: #### Misuse and Out-of-scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model developers discuss the risk of adversaries using the model to better evade detection in their associated paper, suggesting that using the model for evading detection or for supporting efforts to evade detection would be a misuse of the model.## Risks, Limitations and Biases\n\nCONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.#### Risks and Limitations\n\nIn their associated paper, the model developers discuss the risk that the model may be used by bad actors to develop capabilities for evading detection, though one purpose of releasing the model is to help improve detection research. \n\nIn a related blog post, the model developers also discuss the limitations of automated methods for detecting synthetic text and the need to pair automated detection tools with other, non-automated approaches. They write: \n\n> We conducted in-house detection research and developed a detection model that has detection rates of ~95% for detecting 1.5B GPT-2-generated text. We believe this is not high enough accuracy for standalone detection and needs to be paired with metadata-based approaches, human judgment, and public education to be more effective. \n\nThe model developers also report finding that classifying content from larger models is more difficult, suggesting that detection with automated tools like this model will be increasingly difficult as model sizes increase. The authors find that training detector models on the outputs of larger models can improve accuracy and robustness.#### Bias\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by RoBERTa large and GPT-2 1.5B (which this model is built/fine-tuned on) can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups (see the RoBERTa large and GPT-2 XL model cards for more information). The developers of this model discuss these issues further in their paper.## Training",
"passage: #### Training Data\n\nThe model is a sequence classifier based on RoBERTa large (see the RoBERTa large model card for more details on the RoBERTa large training data) and then fine-tuned using the outputs of the 1.5B GPT-2 model (available here).#### Training Procedure\n\nThe model developers write that: \n\n> We based a sequence classifier on RoBERTaLARGE (355 million parameters) and fine-tuned it to classify the outputs from the 1.5B GPT-2 model versus WebText, the dataset we used to train the GPT-2 model.\n\nThey later state: \n\n> To develop a robust detector model that can accurately classify generated texts regardless of the sampling method, we performed an analysis of the model’s transfer performance.\n\nSee the associated paper for further details on the training procedure.## Evaluation\n\nThe following evaluation information is extracted from the associated paper.#### Testing Data, Factors and Metrics\n\nThe model is intended to be used for detecting text generated by GPT-2 models, so the model developers test the model on text datasets, measuring accuracy by: \n\n> testing 510-token test examples comprised of 5,000 samples from the WebText dataset and 5,000 samples generated by a GPT-2 model, which were not used during the training.#### Results\n\nThe model developers find: \n\n> Our classifier is able to detect 1.5 billion parameter GPT-2-generated text with approximately 95% accuracy...The model’s accuracy depends on sampling methods used when generating outputs, like temperature, Top-K, and nucleus sampling (Holtzman et al., 2019. Nucleus sampling outputs proved most difficult to correctly classify, but a detector trained using nucleus sampling transfers well across other sampling methods. As seen in Figure 1 [in the paper], we found consistently high accuracy when trained on nucleus sampling. \t\n\nSee the associated paper, Figure 1 (on page 14) and Figure 2 (on page 16) for full results.## Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Unknown\n- Hours used: Unknown\n- Cloud Provider: Unknown\n- Compute Region: Unknown\n- Carbon Emitted: Unknown"
] | [
-0.04828901216387749,
0.11459746956825256,
-0.0030701381620019674,
0.05426471307873726,
0.06424394249916077,
-0.011625833809375763,
0.0680328831076622,
0.0754609927535057,
0.027559811249375343,
0.07825573533773422,
0.02216658741235733,
0.001190499751828611,
0.06088895723223686,
0.10670269280672073,
0.06811144202947617,
-0.20392227172851562,
0.01773984543979168,
-0.10181695967912674,
-0.024756811559200287,
0.10474377870559692,
0.12568314373493195,
-0.058203618973493576,
0.08680541068315506,
0.03837995231151581,
-0.01311541348695755,
-0.010835929773747921,
0.004668936133384705,
-0.035116493701934814,
0.06310655921697617,
0.07234043627977371,
0.03926737233996391,
-0.00816770177334547,
0.06444128602743149,
-0.14781032502651215,
0.014606274664402008,
0.05444147065281868,
0.005914728622883558,
0.06321066617965698,
0.07914723455905914,
-0.012994465418159962,
0.19139473140239716,
-0.06356122344732285,
0.06801457703113556,
0.07668182998895645,
-0.06472864001989365,
-0.13622377812862396,
-0.08320865780115128,
0.06604237854480743,
0.061431437730789185,
0.08903975039720535,
-0.03023502044379711,
0.08184820413589478,
-0.011535788886249065,
0.015636948868632317,
0.07368113845586777,
-0.12467799335718155,
-0.019882099702954292,
0.02223215065896511,
0.019217832013964653,
0.10300543904304504,
-0.04286256060004234,
0.013173406012356281,
0.005055196117609739,
0.018807830289006233,
0.03976346179842949,
-0.009693928994238377,
0.1307370960712433,
-0.026157798245549202,
-0.13467690348625183,
-0.056522149592638016,
0.13001161813735962,
-0.0006511678802780807,
-0.09360003471374512,
-0.20871107280254364,
-0.03985898569226265,
0.12270232290029526,
0.02931618131697178,
-0.06506798416376114,
0.008890767581760883,
0.02527264691889286,
0.027987385168671608,
-0.11527682095766068,
-0.10625666379928589,
-0.05801337584853172,
-0.030429014936089516,
0.08966860920190811,
0.01797434128820896,
0.04067524895071983,
-0.03925023600459099,
0.113977812230587,
-0.029423555359244347,
-0.040385883301496506,
-0.07788508385419846,
-0.09500252455472946,
-0.05931861326098442,
-0.01974121294915676,
-0.024735508486628532,
-0.0464886911213398,
-0.005600920412689447,
0.1472027748823166,
-0.05185193940997124,
0.01139010488986969,
0.018139248713850975,
-0.013449770398437977,
0.12024462968111038,
0.08872256428003311,
-0.06757325679063797,
-0.04282352700829506,
0.04840431734919548,
0.0034711554180830717,
0.042558323591947556,
-0.006091617047786713,
-0.022159704938530922,
-0.022640487179160118,
0.008155240677297115,
0.05695245787501335,
0.05143195390701294,
0.014845382422208786,
-0.049262817949056625,
-0.06095551326870918,
0.15960876643657684,
-0.10840577632188797,
-0.012483266182243824,
0.036751966923475266,
-0.01892082393169403,
0.004670164547860622,
0.04296413064002991,
-0.022679800167679787,
-0.041623082011938095,
-0.013083587400615215,
-0.06398577243089676,
-0.030253907665610313,
-0.06379902362823486,
-0.08073266595602036,
0.005896212533116341,
0.0030518434941768646,
-0.032470736652612686,
-0.11550863832235336,
-0.14555536210536957,
-0.05912141874432564,
0.018516255542635918,
-0.055064331740140915,
-0.0017748251557350159,
0.009164229966700077,
-0.007657630369067192,
-0.005071856547147036,
0.01604892872273922,
0.03263436257839203,
-0.0046465289779007435,
0.025289854034781456,
-0.03280401602387428,
0.045099031180143356,
0.02948000468313694,
0.010818510316312313,
-0.0828370526432991,
0.017672136425971985,
-0.15881593525409698,
0.1543775051832199,
-0.04793513938784599,
-0.027121761813759804,
-0.11347556859254837,
-0.03651232272386551,
-0.03629513457417488,
0.03906343877315521,
-0.0006823017611168325,
0.1375628113746643,
-0.11714106053113937,
-0.049056679010391235,
0.15987807512283325,
-0.12613393366336823,
-0.03525957092642784,
0.0934278666973114,
-0.056862663477659225,
0.1587236076593399,
0.1260768175125122,
0.043018970638513565,
0.09901490807533264,
-0.0585351400077343,
-0.05070881173014641,
-0.014917835593223572,
-0.08478271216154099,
0.13006727397441864,
0.08117944002151489,
-0.06091900169849396,
-0.07250560820102692,
-0.011180761270225048,
-0.0862436294555664,
-0.016002317890524864,
0.01472028810530901,
-0.03736425191164017,
-0.0002857378276530653,
-0.02560850791633129,
-0.0021919228602200747,
-0.04737652465701103,
-0.0260658860206604,
-0.004478749353438616,
-0.13125045597553253,
0.011988871730864048,
0.10840993374586105,
-0.03777773678302765,
0.011657186783850193,
-0.09921471029520035,
0.05069901421666145,
-0.06051000580191612,
-0.00010691210627555847,
-0.16698741912841797,
-0.005779528524726629,
0.026022322475910187,
-0.14704155921936035,
0.06250947713851929,
0.012102950364351273,
0.04541684314608574,
0.025966711342334747,
-0.017035869881510735,
0.012528317980468273,
-0.036945637315511703,
-0.016356101259589195,
-0.06936420500278473,
-0.10805108398199081,
-0.009784053079783916,
-0.04910914972424507,
0.11459162086248398,
-0.1158997043967247,
0.011659860610961914,
0.08051160722970963,
0.03590921685099602,
0.022714512422680855,
-0.06252915412187576,
0.04283532872796059,
-0.06115541234612465,
-0.009036618284881115,
-0.05518616363406181,
-0.0023297902662307024,
-0.005420996341854334,
-0.10184385627508163,
0.07609564810991287,
-0.14491723477840424,
-0.1240595355629921,
0.06306210160255432,
0.111701600253582,
-0.08778589963912964,
-0.008303485810756683,
-0.0192930456250906,
0.00926102977246046,
-0.06892997026443481,
-0.08466743677854538,
0.16992609202861786,
0.002055433811619878,
0.031438734382390976,
-0.10438088327646255,
-0.05473070964217186,
-0.0023771878331899643,
-0.00617430591955781,
0.00011332938447594643,
0.07032295316457748,
0.0021346602588891983,
-0.17949111759662628,
0.04077668860554695,
0.042600665241479874,
0.03274756297469139,
0.13111750781536102,
0.047883760184049606,
-0.11581715196371078,
-0.03557344153523445,
-0.00044478228664956987,
0.009077165275812149,
0.037953849881887436,
0.009783610701560974,
0.02729850821197033,
0.04069775715470314,
0.03177669644355774,
0.03795139864087105,
-0.06055907905101776,
0.05875691771507263,
0.03484073653817177,
-0.020084047690033913,
-0.035099949687719345,
-0.01565520651638508,
-0.01444216538220644,
0.08713328838348389,
0.042897894978523254,
0.08486723899841309,
0.008400741033256054,
-0.03540528565645218,
-0.14200349152088165,
0.16495470702648163,
-0.053888481110334396,
-0.2419724315404892,
-0.1452213078737259,
0.08866948634386063,
0.0009033389505930245,
0.017311565577983856,
0.007965154014527798,
-0.06291382014751434,
-0.08225645869970322,
-0.13099242746829987,
0.07897879928350449,
-0.004559768363833427,
-0.03518659994006157,
-0.024115601554512978,
0.05028655752539635,
0.024827228859066963,
-0.12351342290639877,
0.006963631603866816,
-0.005649333819746971,
-0.10420436412096024,
-0.0023215871769934893,
0.010403993539512157,
0.047696780413389206,
0.09374219924211502,
0.02262219227850437,
-0.0314951092004776,
0.005058004520833492,
0.19139577448368073,
-0.08970943093299866,
0.0920526385307312,
0.16751742362976074,
-0.03900616243481636,
0.04262004420161247,
0.06186786666512489,
0.008656425401568413,
-0.059241846203804016,
0.05802123621106148,
0.024006037041544914,
-0.054148122668266296,
-0.23410923779010773,
-0.05006498098373413,
0.0012923255562782288,
-0.049020927399396896,
0.04889495670795441,
0.04770360514521599,
-0.01572638936340809,
0.055773138999938965,
-0.07429195195436478,
-0.055308859795331955,
0.10871800035238266,
0.07489993423223495,
0.03470829874277115,
-0.028188692405819893,
0.06964505463838577,
-0.06334751844406128,
0.005544700194150209,
0.14146022498607635,
-0.040613818913698196,
0.19789840281009674,
-0.03801498934626579,
0.1228952705860138,
0.06217065826058388,
-0.011786255054175854,
0.04646536335349083,
0.029694942757487297,
-0.026655981317162514,
0.05149772763252258,
-0.05298931524157524,
-0.06870311498641968,
-0.031491588801145554,
0.10990655422210693,
0.028595110401511192,
-0.019507432356476784,
-0.004781038966029882,
-0.016979143023490906,
0.053229350596666336,
0.09075888246297836,
0.056525278836488724,
-0.141756072640419,
-0.10825803875923157,
0.061061207205057144,
-0.06078658625483513,
-0.07677533477544785,
0.022561555728316307,
0.09953838586807251,
-0.14668512344360352,
0.010422480292618275,
-0.019729629158973694,
0.06881798058748245,
-0.10433957725763321,
-0.02268906496465206,
-0.025328082963824272,
0.0702788233757019,
-0.023462362587451935,
0.06955034285783768,
-0.10169068723917007,
0.05556878820061684,
0.015066862106323242,
0.0812343880534172,
-0.0936778262257576,
0.04074232652783394,
0.0391552709043026,
-0.05073198676109314,
0.14798861742019653,
0.024908261373639107,
-0.05220118165016174,
-0.03842954710125923,
-0.13281415402889252,
0.03591309115290642,
0.05649532750248909,
-0.11483847349882126,
0.08555099368095398,
-0.028001144528388977,
0.014336883090436459,
-0.02150522917509079,
-0.0808401107788086,
-0.12900185585021973,
-0.18194331228733063,
0.035225555300712585,
-0.10104843974113464,
0.01939142309129238,
-0.06305528432130814,
-0.017201287671923637,
0.04811764881014824,
0.1418587565422058,
-0.19480355083942413,
-0.11828586459159851,
-0.11278879642486572,
-0.011843621730804443,
0.12891922891139984,
-0.06310281157493591,
0.04733162000775337,
0.019813060760498047,
0.11656258255243301,
-0.007327282335609198,
-0.08468031883239746,
0.040915265679359436,
-0.07752647995948792,
-0.1879638433456421,
-0.01920454390347004,
0.10896474123001099,
0.17553609609603882,
0.058855410665273666,
0.006528730038553476,
0.03742006793618202,
-0.028199950233101845,
-0.11681891232728958,
0.005174242425709963,
0.24571658670902252,
0.029732657596468925,
0.049003541469573975,
-0.002892131684347987,
-0.048680949956178665,
-0.08639796823263168,
-0.022669149562716484,
0.05494439974427223,
0.13223469257354736,
-0.04144047200679779,
0.16640594601631165,
0.14210866391658783,
-0.08671245723962784,
-0.18017421662807465,
-0.005839368794113398,
0.0423336923122406,
0.03318343311548233,
0.08246530592441559,
-0.1968449354171753,
0.06084372475743294,
0.0573725588619709,
-0.014244603924453259,
0.033295825123786926,
-0.2093239426612854,
-0.10349369049072266,
0.04855059087276459,
0.004660375416278839,
0.03109024465084076,
-0.057134151458740234,
-0.04928561672568321,
-0.04008602350950241,
-0.04315776750445366,
0.10460641980171204,
-0.04525637999176979,
0.053146082907915115,
0.0073354789055883884,
0.04493235424160957,
0.03426353633403778,
-0.03050573728978634,
0.1261986792087555,
-0.03519647568464279,
0.04616625979542732,
-0.06106144189834595,
-0.00854372326284647,
0.016409602016210556,
-0.05528048798441887,
0.12835510075092316,
0.024565009400248528,
0.07084927707910538,
-0.0654984712600708,
-0.0990983247756958,
-0.06414186954498291,
0.047508832067251205,
-0.028312692418694496,
-0.06511437892913818,
-0.0777411088347435,
0.08779901266098022,
0.045796364545822144,
-0.034173157066106796,
-0.024152463302016258,
-0.07529627531766891,
-0.05063368007540703,
0.05241081118583679,
0.19033002853393555,
0.09519442170858383,
-0.06892447173595428,
-0.0015956014394760132,
-0.028437232598662376,
0.08553387969732285,
-0.15490014851093292,
0.05298587307333946,
0.04774634540081024,
0.012516685761511326,
0.0898892879486084,
0.0036682814825326204,
-0.1567634493112564,
0.034122247248888016,
0.0281054824590683,
-0.06990794837474823,
-0.14954419434070587,
-0.03782911226153374,
0.024190224707126617,
-0.13347379863262177,
-0.028946593403816223,
0.14403972029685974,
-0.029961273074150085,
-0.051426757127046585,
0.00013389065861701965,
0.09173813462257385,
0.002668660832569003,
0.07599440217018127,
0.04988916590809822,
-0.002526459051296115,
-0.05579667165875435,
0.08654481172561646,
0.04885629937052727,
-0.05646026134490967,
0.06170262396335602,
0.03834734857082367,
-0.09449855238199234,
-0.035988856106996536,
-0.07527413219213486,
0.008415348827838898,
-0.04743729531764984,
-0.04968832805752754,
0.026930779218673706,
-0.0482783317565918,
0.020755307748913765,
0.08208692818880081,
0.028052756562829018,
0.05892437696456909,
-0.03478102758526802,
0.028832832351326942,
-0.056300994008779526,
0.07077139616012573,
0.022100547328591347,
-0.02022700011730194,
-0.054410114884376526,
0.019768966361880302,
0.0234150979667902,
-0.021569326519966125,
-0.030458852648735046,
-0.03259768337011337,
-0.09194499254226685,
-0.03370070084929466,
-0.16093941032886505,
0.013396181166172028,
-0.09382881969213486,
-0.009892534464597702,
0.000523588911164552,
-0.0017687532817944884,
-0.005684992764145136,
0.045426663011312485,
-0.02492884360253811,
-0.04092228412628174,
-0.044049978256225586,
0.07108625024557114,
-0.11683339625597,
0.02023150585591793,
0.0715540274977684,
-0.082933709025383,
0.12972281873226166,
0.05252957344055176,
-0.009399063885211945,
0.000041939008951885626,
-0.08827459067106247,
0.028430059552192688,
-0.027162810787558556,
0.007403891533613205,
-0.023890510201454163,
-0.20745451748371124,
0.012141771614551544,
-0.010638694278895855,
-0.0483139306306839,
-0.00297488272190094,
0.08133835345506668,
-0.05923023819923401,
0.11131712049245834,
0.02825910411775112,
-0.010520714335143566,
-0.08317641168832779,
0.013044808991253376,
0.05323506519198418,
0.05188102647662163,
0.10897642374038696,
-0.03155122324824333,
0.04599330946803093,
-0.14473356306552887,
-0.005057865288108587,
-0.002778206020593643,
0.07297385483980179,
-0.07363114506006241,
-0.03882339969277382,
0.042375046759843826,
-0.004201345611363649,
0.19257386028766632,
-0.031110279262065887,
-0.03982376679778099,
0.06102712079882622,
0.026512982323765755,
0.03569517657160759,
0.013294692151248455,
0.010526780039072037,
0.003897307440638542,
0.00043416209518909454,
0.013575914315879345,
-0.016806235536932945,
-0.022019213065505028,
-0.07449830323457718,
0.1020265519618988,
0.11325043439865112,
0.077684685587883,
0.03826408460736275,
-0.0017471177270635962,
-0.009722390212118626,
-0.047260817140340805,
0.05166579782962799,
-0.011897685937583447,
-0.0454256646335125,
-0.04396172985434532,
0.054790198802948,
0.12918858230113983,
-0.11250343918800354,
0.06868435442447662,
-0.002990538952872157,
-0.04155471548438072,
-0.11283901333808899,
-0.19122271239757538,
-0.06465200334787369,
-0.01884753815829754,
-0.009905853308737278,
-0.08783566951751709,
0.013290729373693466,
0.07705104351043701,
0.0200631245970726,
-0.037893716245889664,
0.0650620087981224,
-0.06660155206918716,
-0.09988048672676086,
0.031354550272226334,
0.011218543164432049,
0.020366964861750603,
0.07654017955064774,
0.01261953730136156,
0.052487779408693314,
0.07167736440896988,
0.07301103323698044,
0.06478143483400345,
0.02389748953282833,
-0.004526632372289896,
-0.03763243183493614,
-0.06318872421979904,
-0.03186732903122902,
0.00934672448784113,
-0.015671825036406517,
0.1533757746219635,
0.06806918978691101,
-0.0632881298661232,
0.009289066307246685,
0.17272014915943146,
-0.040227118879556656,
-0.028094438835978508,
-0.1549331694841385,
0.21422626078128815,
-0.05418136343359947,
0.012965884990990162,
0.025746889412403107,
-0.1172361969947815,
0.029583608731627464,
0.11933287233114243,
0.14892645180225372,
-0.04571884870529175,
-0.006816732231527567,
-0.014091189950704575,
-0.0019367331406101584,
0.008109432645142078,
0.048601653426885605,
-0.022159570828080177,
0.2656836211681366,
-0.043169427663087845,
0.08901003748178482,
-0.00515329884365201,
-0.0018275041365996003,
0.012540026567876339,
0.1121167242527008,
-0.05655784532427788,
0.0047069452702999115,
-0.05610072240233421,
0.0969221219420433,
-0.026662031188607216,
-0.23700731992721558,
0.012735225260257721,
0.004206366837024689,
-0.0811101421713829,
0.03634479641914368,
-0.031646743416786194,
-0.009794329293072224,
0.055310238152742386,
0.028357267379760742,
-0.010501958429813385,
0.134264275431633,
0.03064837120473385,
-0.088884137570858,
-0.027280544862151146,
0.09983693808317184,
-0.0033886705059558153,
0.19317181408405304,
0.026844501495361328,
0.09465038776397705,
0.07809679210186005,
-0.017552068457007408,
-0.14956599473953247,
0.02797652781009674,
0.011293771676719189,
-0.04232664406299591,
0.02052096463739872,
0.14097486436367035,
0.014945265837013721,
0.10174307972192764,
0.09320726245641708,
-0.013627012260258198,
0.03842969611287117,
-0.01270050648599863,
-0.03962935507297516,
-0.13478951156139374,
0.060944173485040665,
-0.10849365592002869,
0.14711932837963104,
0.11581689119338989,
-0.052547287195920944,
0.006306673865765333,
-0.037161264568567276,
0.044523078948259354,
0.01588263176381588,
0.08672049641609192,
0.014081023633480072,
-0.1447487473487854,
-0.002037960570305586,
0.012861564755439758,
0.06060868501663208,
-0.23157024383544922,
-0.04450908303260803,
0.030185267329216003,
-0.017313329502940178,
0.019040241837501526,
0.07782481610774994,
-0.0027657272294163704,
0.03399423882365227,
-0.01587432622909546,
0.058052849024534225,
0.010907658375799656,
0.07982385903596878,
-0.09749755263328552,
-0.022978439927101135
] |
null | null | transformers |
# RoBERTa large model
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
[this paper](https://arxiv.org/abs/1907.11692) and first released in
[this repository](https://github.com/pytorch/fairseq/tree/master/examples/roberta). This model is case-sensitive: it
makes a difference between english and English.
Disclaimer: The team releasing RoBERTa did not write a model card for this model so this model card has been written by
the Hugging Face team.
## Model description
RoBERTa is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means
it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts.
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model
randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict
the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one
after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to
learn a bidirectional representation of the sentence.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
## Intended uses & limitations
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task.
See the [model hub](https://huggingface.co/models?filter=roberta) to look for fine-tuned versions on a task that
interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='roberta-large')
>>> unmasker("Hello I'm a <mask> model.")
[{'sequence': "<s>Hello I'm a male model.</s>",
'score': 0.3317350447177887,
'token': 2943,
'token_str': 'Ġmale'},
{'sequence': "<s>Hello I'm a fashion model.</s>",
'score': 0.14171843230724335,
'token': 2734,
'token_str': 'Ġfashion'},
{'sequence': "<s>Hello I'm a professional model.</s>",
'score': 0.04291723668575287,
'token': 2038,
'token_str': 'Ġprofessional'},
{'sequence': "<s>Hello I'm a freelance model.</s>",
'score': 0.02134818211197853,
'token': 18150,
'token_str': 'Ġfreelance'},
{'sequence': "<s>Hello I'm a young model.</s>",
'score': 0.021098261699080467,
'token': 664,
'token_str': 'Ġyoung'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import RobertaTokenizer, RobertaModel
tokenizer = RobertaTokenizer.from_pretrained('roberta-large')
model = RobertaModel.from_pretrained('roberta-large')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
```
and in TensorFlow:
```python
from transformers import RobertaTokenizer, TFRobertaModel
tokenizer = RobertaTokenizer.from_pretrained('roberta-large')
model = TFRobertaModel.from_pretrained('roberta-large')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```
### Limitations and bias
The training data used for this model contains a lot of unfiltered content from the internet, which is far from
neutral. Therefore, the model can have biased predictions:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='roberta-large')
>>> unmasker("The man worked as a <mask>.")
[{'sequence': '<s>The man worked as a mechanic.</s>',
'score': 0.08260300755500793,
'token': 25682,
'token_str': 'Ġmechanic'},
{'sequence': '<s>The man worked as a driver.</s>',
'score': 0.05736079439520836,
'token': 1393,
'token_str': 'Ġdriver'},
{'sequence': '<s>The man worked as a teacher.</s>',
'score': 0.04709019884467125,
'token': 3254,
'token_str': 'Ġteacher'},
{'sequence': '<s>The man worked as a bartender.</s>',
'score': 0.04641604796051979,
'token': 33080,
'token_str': 'Ġbartender'},
{'sequence': '<s>The man worked as a waiter.</s>',
'score': 0.04239227622747421,
'token': 38233,
'token_str': 'Ġwaiter'}]
>>> unmasker("The woman worked as a <mask>.")
[{'sequence': '<s>The woman worked as a nurse.</s>',
'score': 0.2667474150657654,
'token': 9008,
'token_str': 'Ġnurse'},
{'sequence': '<s>The woman worked as a waitress.</s>',
'score': 0.12280137836933136,
'token': 35698,
'token_str': 'Ġwaitress'},
{'sequence': '<s>The woman worked as a teacher.</s>',
'score': 0.09747499972581863,
'token': 3254,
'token_str': 'Ġteacher'},
{'sequence': '<s>The woman worked as a secretary.</s>',
'score': 0.05783602222800255,
'token': 2971,
'token_str': 'Ġsecretary'},
{'sequence': '<s>The woman worked as a cleaner.</s>',
'score': 0.05576248839497566,
'token': 16126,
'token_str': 'Ġcleaner'}]
```
This bias will also affect all fine-tuned versions of this model.
## Training data
The RoBERTa model was pretrained on the reunion of five datasets:
- [BookCorpus](https://yknzhu.wixsite.com/mbweb), a dataset consisting of 11,038 unpublished books;
- [English Wikipedia](https://en.wikipedia.org/wiki/English_Wikipedia) (excluding lists, tables and headers) ;
- [CC-News](https://commoncrawl.org/2016/10/news-dataset-available/), a dataset containing 63 millions English news
articles crawled between September 2016 and February 2019.
- [OpenWebText](https://github.com/jcpeterson/openwebtext), an opensource recreation of the WebText dataset used to
train GPT-2,
- [Stories](https://arxiv.org/abs/1806.02847) a dataset containing a subset of CommonCrawl data filtered to match the
story-like style of Winograd schemas.
Together theses datasets weight 160GB of text.
## Training procedure
### Preprocessing
The texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of
the model take pieces of 512 contiguous token that may span over documents. The beginning of a new document is marked
with `<s>` and the end of one by `</s>`
The details of the masking procedure for each sentence are the following:
- 15% of the tokens are masked.
- In 80% of the cases, the masked tokens are replaced by `<mask>`.
- In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
- In the 10% remaining cases, the masked tokens are left as is.
Contrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).
### Pretraining
The model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The
optimizer used is Adam with a learning rate of 4e-4, \\(\beta_{1} = 0.9\\), \\(\beta_{2} = 0.98\\) and
\\(\epsilon = 1e-6\\), a weight decay of 0.01, learning rate warmup for 30,000 steps and linear decay of the learning
rate after.
## Evaluation results
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
| Task | MNLI | QQP | QNLI | SST-2 | CoLA | STS-B | MRPC | RTE |
|:----:|:----:|:----:|:----:|:-----:|:----:|:-----:|:----:|:----:|
| | 90.2 | 92.2 | 94.7 | 96.4 | 68.0 | 96.4 | 90.9 | 86.6 |
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1907-11692,
author = {Yinhan Liu and
Myle Ott and
Naman Goyal and
Jingfei Du and
Mandar Joshi and
Danqi Chen and
Omer Levy and
Mike Lewis and
Luke Zettlemoyer and
Veselin Stoyanov},
title = {RoBERTa: {A} Robustly Optimized {BERT} Pretraining Approach},
journal = {CoRR},
volume = {abs/1907.11692},
year = {2019},
url = {http://arxiv.org/abs/1907.11692},
archivePrefix = {arXiv},
eprint = {1907.11692},
timestamp = {Thu, 01 Aug 2019 08:59:33 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1907-11692.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
<a href="https://huggingface.co/exbert/?model=roberta-base">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": "en", "license": "mit", "tags": ["exbert"], "datasets": ["bookcorpus", "wikipedia"]} | fill-mask | FacebookAI/roberta-large | [
"transformers",
"pytorch",
"tf",
"jax",
"onnx",
"safetensors",
"roberta",
"fill-mask",
"exbert",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1907.11692",
"arxiv:1806.02847",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1907.11692",
"1806.02847"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #jax #onnx #safetensors #roberta #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1907.11692 #arxiv-1806.02847 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us
| RoBERTa large model
===================
Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in
this paper and first released in
this repository. This model is case-sensitive: it
makes a difference between english and English.
Disclaimer: The team releasing RoBERTa did not write a model card for this model so this model card has been written by
the Hugging Face team.
Model description
-----------------
RoBERTa is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means
it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of
publicly available data) with an automatic process to generate inputs and labels from those texts.
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model
randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict
the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one
after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to
learn a bidirectional representation of the sentence.
This way, the model learns an inner representation of the English language that can then be used to extract features
useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard
classifier using the features produced by the BERT model as inputs.
Intended uses & limitations
---------------------------
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task.
See the model hub to look for fine-tuned versions on a task that
interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)
to make decisions, such as sequence classification, token classification or question answering. For tasks such as text
generation you should look at model like GPT2.
### How to use
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
and in TensorFlow:
### Limitations and bias
The training data used for this model contains a lot of unfiltered content from the internet, which is far from
neutral. Therefore, the model can have biased predictions:
This bias will also affect all fine-tuned versions of this model.
Training data
-------------
The RoBERTa model was pretrained on the reunion of five datasets:
* BookCorpus, a dataset consisting of 11,038 unpublished books;
* English Wikipedia (excluding lists, tables and headers) ;
* CC-News, a dataset containing 63 millions English news
articles crawled between September 2016 and February 2019.
* OpenWebText, an opensource recreation of the WebText dataset used to
train GPT-2,
* Stories a dataset containing a subset of CommonCrawl data filtered to match the
story-like style of Winograd schemas.
Together theses datasets weight 160GB of text.
Training procedure
------------------
### Preprocessing
The texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of
the model take pieces of 512 contiguous token that may span over documents. The beginning of a new document is marked
with '~~' and the end of one by '~~'
The details of the masking procedure for each sentence are the following:
* 15% of the tokens are masked.
* In 80% of the cases, the masked tokens are replaced by ''.
* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
* In the 10% remaining cases, the masked tokens are left as is.
Contrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).
### Pretraining
The model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The
optimizer used is Adam with a learning rate of 4e-4, \(\beta\_{1} = 0.9\), \(\beta\_{2} = 0.98\) and
\(\epsilon = 1e-6\), a weight decay of 0.01, learning rate warmup for 30,000 steps and linear decay of the learning
rate after.
Evaluation results
------------------
When fine-tuned on downstream tasks, this model achieves the following results:
Glue test results:
### BibTeX entry and citation info
<a href="URL
<img width="300px" src="URL
| [
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nThe training data used for this model contains a lot of unfiltered content from the internet, which is far from\nneutral. Therefore, the model can have biased predictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe RoBERTa model was pretrained on the reunion of five datasets:\n\n\n* BookCorpus, a dataset consisting of 11,038 unpublished books;\n* English Wikipedia (excluding lists, tables and headers) ;\n* CC-News, a dataset containing 63 millions English news\narticles crawled between September 2016 and February 2019.\n* OpenWebText, an opensource recreation of the WebText dataset used to\ntrain GPT-2,\n* Stories a dataset containing a subset of CommonCrawl data filtered to match the\nstory-like style of Winograd schemas.\n\n\nTogether theses datasets weight 160GB of text.\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of\nthe model take pieces of 512 contiguous token that may span over documents. The beginning of a new document is marked\nwith '~~' and the end of one by '~~'\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by ''.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nContrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).",
"### Pretraining\n\n\nThe model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The\noptimizer used is Adam with a learning rate of 4e-4, \\(\\beta\\_{1} = 0.9\\), \\(\\beta\\_{2} = 0.98\\) and\n\\(\\epsilon = 1e-6\\), a weight decay of 0.01, learning rate warmup for 30,000 steps and linear decay of the learning\nrate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
"TAGS\n#transformers #pytorch #tf #jax #onnx #safetensors #roberta #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1907.11692 #arxiv-1806.02847 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:",
"### Limitations and bias\n\n\nThe training data used for this model contains a lot of unfiltered content from the internet, which is far from\nneutral. Therefore, the model can have biased predictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe RoBERTa model was pretrained on the reunion of five datasets:\n\n\n* BookCorpus, a dataset consisting of 11,038 unpublished books;\n* English Wikipedia (excluding lists, tables and headers) ;\n* CC-News, a dataset containing 63 millions English news\narticles crawled between September 2016 and February 2019.\n* OpenWebText, an opensource recreation of the WebText dataset used to\ntrain GPT-2,\n* Stories a dataset containing a subset of CommonCrawl data filtered to match the\nstory-like style of Winograd schemas.\n\n\nTogether theses datasets weight 160GB of text.\n\n\nTraining procedure\n------------------",
"### Preprocessing\n\n\nThe texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs of\nthe model take pieces of 512 contiguous token that may span over documents. The beginning of a new document is marked\nwith '~~' and the end of one by '~~'\n\n\nThe details of the masking procedure for each sentence are the following:\n\n\n* 15% of the tokens are masked.\n* In 80% of the cases, the masked tokens are replaced by ''.\n* In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.\n* In the 10% remaining cases, the masked tokens are left as is.\n\n\nContrary to BERT, the masking is done dynamically during pretraining (e.g., it changes at each epoch and is not fixed).",
"### Pretraining\n\n\nThe model was trained on 1024 V100 GPUs for 500K steps with a batch size of 8K and a sequence length of 512. The\noptimizer used is Adam with a learning rate of 4e-4, \\(\\beta\\_{1} = 0.9\\), \\(\\beta\\_{2} = 0.98\\) and\n\\(\\epsilon = 1e-6\\), a weight decay of 0.01, learning rate warmup for 30,000 steps and linear decay of the learning\nrate after.\n\n\nEvaluation results\n------------------\n\n\nWhen fine-tuned on downstream tasks, this model achieves the following results:\n\n\nGlue test results:",
"### BibTeX entry and citation info\n\n\n<a href=\"URL\n<img width=\"300px\" src=\"URL"
] | [
95,
49,
217,
204,
153,
30
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #onnx #safetensors #roberta #fill-mask #exbert #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1907.11692 #arxiv-1806.02847 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n### How to use\n\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\nHere is how to use this model to get the features of a given text in PyTorch:\n\n\nand in TensorFlow:### Limitations and bias\n\n\nThe training data used for this model contains a lot of unfiltered content from the internet, which is far from\nneutral. Therefore, the model can have biased predictions:\n\n\nThis bias will also affect all fine-tuned versions of this model.\n\n\nTraining data\n-------------\n\n\nThe RoBERTa model was pretrained on the reunion of five datasets:\n\n\n* BookCorpus, a dataset consisting of 11,038 unpublished books;\n* English Wikipedia (excluding lists, tables and headers) ;\n* CC-News, a dataset containing 63 millions English news\narticles crawled between September 2016 and February 2019.\n* OpenWebText, an opensource recreation of the WebText dataset used to\ntrain GPT-2,\n* Stories a dataset containing a subset of CommonCrawl data filtered to match the\nstory-like style of Winograd schemas.\n\n\nTogether theses datasets weight 160GB of text.\n\n\nTraining procedure\n------------------"
] | [
-0.06316579878330231,
0.25103724002838135,
-0.002319251885637641,
0.03917470574378967,
0.03673948720097542,
0.0031662872061133385,
0.09634540975093842,
0.11024904996156693,
0.022024111822247505,
0.06458106637001038,
0.03871364891529083,
0.029306739568710327,
0.0834926888346672,
0.16866417229175568,
-0.032347988337278366,
-0.16501013934612274,
0.049608051776885986,
-0.05326599255204201,
0.006629631854593754,
0.07349813729524612,
0.0776796042919159,
-0.08534650504589081,
0.04386720806360245,
-0.023597538471221924,
-0.05273646488785744,
-0.011764083988964558,
-0.035016875714063644,
-0.03875435143709183,
0.04451385885477066,
0.0773296132683754,
0.04085621237754822,
0.013040409423410892,
0.02829296700656414,
-0.13278169929981232,
0.028188325464725494,
0.08855201303958893,
-0.019677303731441498,
0.05656326189637184,
0.0934135764837265,
-0.04026246443390846,
0.045623209327459335,
-0.13569188117980957,
0.031458780169487,
0.05885843187570572,
-0.13740238547325134,
-0.07258128374814987,
-0.19299595057964325,
-0.02350686490535736,
0.08462222665548325,
0.10802364349365234,
-0.042614880949258804,
0.13183799386024475,
-0.03148333728313446,
0.08109782636165619,
0.23321084678173065,
-0.1955377757549286,
-0.046417322009801865,
-0.0009490509983152151,
-0.011310799047350883,
-0.044396452605724335,
-0.09173890203237534,
0.02740701660513878,
0.026969559490680695,
0.018306108191609383,
-0.011060138233006,
-0.015743140131235123,
-0.04330797493457794,
-0.02940569818019867,
-0.12794236838817596,
-0.06840629130601883,
0.1483103334903717,
0.022316444665193558,
-0.03390862047672272,
-0.16936199367046356,
-0.07005150616168976,
0.022003328427672386,
-0.04351234808564186,
0.06413063406944275,
0.04929456114768982,
-0.019251134246587753,
0.004635948687791824,
-0.10980328172445297,
-0.08478471636772156,
0.013655065558850765,
-0.10922591388225555,
0.10210113972425461,
0.006955193821340799,
0.06638187170028687,
-0.06696479022502899,
0.08394884318113327,
0.07394301146268845,
-0.07944431155920029,
-0.00566148804500699,
-0.056865088641643524,
-0.15059605240821838,
-0.016218042001128197,
-0.05798729881644249,
-0.07615792751312256,
0.01733105070888996,
0.22529534995555878,
-0.06126834452152252,
0.01039161253720522,
-0.07427738606929779,
0.012879954650998116,
0.12060187757015228,
0.014872333966195583,
-0.1286812722682953,
-0.1096869632601738,
0.04606068879365921,
0.016421156004071236,
0.03430674970149994,
-0.011844674125313759,
0.04326628893613815,
0.030002426356077194,
0.026057709008455276,
0.038794588297605515,
0.1429833471775055,
0.043040931224823,
-0.03685133159160614,
-0.05182370916008949,
0.10612419992685318,
-0.12769295275211334,
-0.054208848625421524,
-0.00418971898034215,
-0.08684736490249634,
0.009477038867771626,
0.028948308899998665,
0.03394874557852745,
-0.0471918098628521,
0.010659593157470226,
-0.12180627882480621,
-0.0636528953909874,
-0.015606068074703217,
-0.08746621012687683,
0.03719976171851158,
-0.1254025399684906,
-0.06331434100866318,
-0.025625456124544144,
-0.2997148931026459,
-0.11018501222133636,
0.010628440417349339,
-0.04579330235719681,
-0.04952079802751541,
-0.013524984009563923,
-0.01828177087008953,
0.01379955094307661,
0.011446263641119003,
0.1343836933374405,
-0.05395090579986572,
0.03918875753879547,
-0.06386716663837433,
0.0649280697107315,
0.04585022106766701,
0.01452205702662468,
-0.15923656523227692,
-0.015422504395246506,
-0.090425044298172,
0.1277160495519638,
-0.07876536250114441,
0.07372646778821945,
-0.07617627084255219,
0.00936031062155962,
-0.034192804247140884,
-0.005179252475500107,
0.011129357852041721,
0.17867128551006317,
-0.19138939678668976,
-0.05229509621858597,
0.19581754505634308,
-0.10811620950698853,
-0.04706365615129471,
0.08944351971149445,
-0.04833514243364334,
-0.0012286471901461482,
0.08968564867973328,
0.06469736993312836,
0.004196661990135908,
0.009409395977854729,
-0.15128052234649658,
-0.09057752043008804,
-0.013953627087175846,
0.1295175403356552,
0.05760684236884117,
-0.039758820086717606,
0.029771197587251663,
0.01089626643806696,
0.010233636014163494,
0.006991565227508545,
-0.034659113734960556,
-0.05415134131908417,
0.023977408185601234,
-0.06713173538446426,
0.10630788654088974,
0.01506506185978651,
0.002609166083857417,
-0.043676238507032394,
-0.0794203132390976,
-0.06686379760503769,
0.09080100804567337,
-0.011227875016629696,
0.031258102506399155,
-0.038197726011276245,
0.034535590559244156,
-0.040380075573921204,
0.02200278826057911,
-0.1955537647008896,
-0.1692485362291336,
0.017210014164447784,
-0.013581598177552223,
-0.0015019046841189265,
0.012350339442491531,
0.03229620307683945,
-0.03174623101949692,
-0.052629899233579636,
-0.012659510597586632,
0.017053300514817238,
-0.03730401024222374,
-0.05453028902411461,
-0.166879341006279,
0.0017434472683817148,
-0.07760481536388397,
0.17598292231559753,
-0.09927194565534592,
0.0029880572110414505,
0.024537065997719765,
0.17947043478488922,
0.045558735728263855,
-0.08742351084947586,
0.1314467489719391,
-0.03368207439780235,
0.004034421406686306,
-0.05059334635734558,
0.010612023063004017,
0.00507798045873642,
-0.023069703951478004,
0.10957549512386322,
-0.11826801300048828,
-0.09017942100763321,
0.09418340772390366,
0.04022374376654625,
-0.04233074560761452,
0.005968048702925444,
-0.09178907424211502,
-0.03224712237715721,
-0.09239529818296432,
-0.036547623574733734,
0.10083571821451187,
0.0354110449552536,
0.06169911101460457,
-0.11671265214681625,
-0.10368047654628754,
0.012351020239293575,
-0.004817548207938671,
-0.044132255017757416,
0.07974749058485031,
-0.052398961037397385,
-0.28279465436935425,
0.10332547873258591,
-0.008576425723731518,
0.05887375771999359,
0.1854248046875,
0.030199799686670303,
-0.07270514965057373,
-0.010733986273407936,
-0.01657109148800373,
-0.01191192027181387,
0.06253203004598618,
-0.04391239583492279,
0.03702418506145477,
0.059477660804986954,
0.009924907237291336,
0.0436430349946022,
-0.03420841321349144,
0.028612252324819565,
-0.03030329942703247,
-0.01884203776717186,
0.0472567118704319,
0.023234788328409195,
0.050785042345523834,
0.11468224972486496,
0.03603063151240349,
0.1066243126988411,
0.004940461833029985,
-0.05864398181438446,
-0.09957722574472427,
0.18215736746788025,
-0.0929323062300682,
-0.17121310532093048,
-0.016838861629366875,
-0.0838223472237587,
-0.07464979588985443,
-0.01833348535001278,
0.011476906016469002,
-0.037028033286333084,
-0.0660555437207222,
-0.10336774587631226,
-0.021307524293661118,
0.0319879949092865,
0.013725741766393185,
0.0587749183177948,
0.004784631542861462,
-0.004952059127390385,
-0.11602653563022614,
0.03024475835263729,
-0.060471292585134506,
-0.09718448668718338,
0.021131156012415886,
0.03495917096734047,
0.09114860743284225,
0.030349623411893845,
0.05339168757200241,
-0.0058830310590565205,
-0.0524507574737072,
0.2208239734172821,
-0.10560321807861328,
0.052760012447834015,
0.03708559647202492,
-0.022523783147335052,
0.033359549939632416,
0.0872143805027008,
-0.001952617079950869,
-0.1062629222869873,
0.046147290617227554,
0.1448931246995926,
-0.01618550345301628,
-0.28735506534576416,
-0.09274256229400635,
-0.0681915134191513,
0.04114281013607979,
0.05091261491179466,
0.04127165302634239,
0.014593823812901974,
-0.011198395863175392,
-0.12877309322357178,
0.02629917487502098,
0.046533163636922836,
0.009485539048910141,
0.031000126153230667,
0.014766206033527851,
0.08531513065099716,
-0.061347596347332,
0.07937078922986984,
0.1513964682817459,
-0.02701692283153534,
0.22508461773395538,
-0.07836633175611496,
0.10140210390090942,
0.0950140655040741,
-0.0591733418405056,
-0.03507097810506821,
0.07461968064308167,
-0.01339742075651884,
0.013310426846146584,
-0.013659064657986164,
-0.056630171835422516,
-0.0004282957233954221,
0.05212133377790451,
0.020064808428287506,
-0.033498357981443405,
-0.04968796670436859,
-0.08258175849914551,
0.0732216089963913,
0.24403998255729675,
0.1259666532278061,
-0.10907770693302155,
-0.052313532680273056,
0.07339300960302353,
-0.06746616214513779,
-0.02625375986099243,
0.0160689614713192,
0.03266739845275879,
-0.14597608149051666,
0.14932002127170563,
-0.02923773229122162,
0.08673563599586487,
-0.17628911137580872,
-0.03749844804406166,
-0.04421401768922806,
0.005526259075850248,
-0.06748207658529282,
0.05336888134479523,
-0.182316392660141,
0.201161190867424,
0.030276911333203316,
0.024928443133831024,
-0.0631253570318222,
0.010654907673597336,
0.05094808712601662,
-0.12502583861351013,
0.14502272009849548,
0.013554830104112625,
-0.04179901257157326,
0.012225853279232979,
-0.1428825408220291,
-0.0048302942886948586,
0.015163405798375607,
-0.057721152901649475,
0.12874461710453033,
0.01901383139193058,
-0.017405977472662926,
-0.03606545552611351,
0.05649121105670929,
-0.13022258877754211,
-0.14399917423725128,
0.07875093817710876,
-0.04187450930476189,
-0.12249389290809631,
-0.04118646681308746,
-0.05717439576983452,
-0.07266581058502197,
0.11138343811035156,
-0.12989166378974915,
-0.08955369889736176,
-0.14479480683803558,
0.14104248583316803,
0.12261850386857986,
-0.03251252695918083,
0.03855450078845024,
0.018466750159859657,
0.11122424900531769,
-0.044410064816474915,
-0.10444483906030655,
0.05242176353931427,
-0.10201405733823776,
-0.23340143263339996,
-0.04501061886548996,
0.08910942822694778,
0.11652103811502457,
0.028680136427283287,
-0.03305461257696152,
0.07717979699373245,
0.021525893360376358,
-0.05909285321831703,
0.11009352654218674,
0.12383612245321274,
0.09206576645374298,
0.1163136214017868,
-0.010118537582457066,
-0.1516592800617218,
-0.07757675647735596,
0.006074640899896622,
0.1158849373459816,
0.24454599618911743,
-0.03283081576228142,
0.12312545627355576,
0.14042948186397552,
-0.09285233169794083,
-0.21777009963989258,
0.01222452986985445,
0.00854573491960764,
0.016129687428474426,
0.017266036942601204,
-0.19784747064113617,
0.07440231740474701,
0.09274441003799438,
-0.0275759045034647,
0.04935912787914276,
-0.20845232903957367,
-0.10484566539525986,
0.05137883871793747,
-0.05837075784802437,
0.1706715226173401,
-0.051010195165872574,
-0.06993173062801361,
-0.0030800621025264263,
-0.0921226441860199,
0.13502274453639984,
-0.12985187768936157,
0.04444826394319534,
0.003068382851779461,
-0.024292100220918655,
0.022531278431415558,
-0.05381948873400688,
0.08495665341615677,
-0.015921616926789284,
0.06718569248914719,
-0.08273965865373611,
0.007432826794683933,
0.08202573657035828,
-0.043330952525138855,
0.05701138451695442,
0.04367811232805252,
0.07891855388879776,
-0.12129675596952438,
-0.03897066041827202,
-0.13500568270683289,
0.053433794528245926,
-0.035894956439733505,
-0.029467619955539703,
-0.03785157948732376,
0.09025812894105911,
0.09047693014144897,
0.003672137390822172,
0.0486881323158741,
-0.003599771996960044,
0.08620008826255798,
0.09229724854230881,
0.12820665538311005,
0.04756700247526169,
-0.029858874157071114,
-0.05950823053717613,
-0.02864934504032135,
0.00857500545680523,
-0.08783704787492752,
0.012735801748931408,
0.06485650688409805,
0.05665978789329529,
0.06934835761785507,
0.02794862538576126,
-0.13502050936222076,
0.016131125390529633,
0.025844953954219818,
-0.18218962848186493,
-0.09249626100063324,
-0.006135918200016022,
-0.006240257062017918,
-0.15090619027614594,
-0.03246970847249031,
0.14442704617977142,
0.03969569876790047,
-0.035050008445978165,
0.002805168041959405,
0.08110085129737854,
0.0562150664627552,
0.1447608917951584,
-0.030894609168171883,
0.027864938601851463,
-0.13739719986915588,
0.19975367188453674,
0.1023646742105484,
-0.09220290184020996,
0.039153654128313065,
0.16312620043754578,
-0.07950922846794128,
-0.054506249725818634,
-0.06705030798912048,
0.1114715188741684,
0.021012961864471436,
0.0186797846108675,
-0.05194656550884247,
-0.0008477575029246509,
0.08234402537345886,
0.2101868987083435,
0.00584603613242507,
0.06460865586996078,
0.0495469905436039,
-0.017277894541621208,
-0.03639094904065132,
0.10483377426862717,
0.0727047324180603,
0.002132011577486992,
-0.027396442368626595,
0.01228964701294899,
-0.021833078935742378,
0.006824640557169914,
-0.03181568533182144,
-0.007376828230917454,
-0.05602123588323593,
-0.0308998990803957,
-0.02424246445298195,
-0.03266582265496254,
-0.10292395949363708,
-0.02185814455151558,
-0.07776375859975815,
-0.03125094994902611,
-0.06229166314005852,
-0.0022840937599539757,
-0.045197464525699615,
-0.03032800368964672,
-0.011824334040284157,
0.04582808539271355,
-0.13869351148605347,
-0.03494874760508537,
0.058112114667892456,
-0.05758538469672203,
0.13919669389724731,
0.05471881851553917,
0.006053428631275892,
-0.01574338972568512,
-0.029819557443261147,
-0.06952822208404541,
-0.015584269538521767,
-0.028649434447288513,
0.01569954678416252,
-0.10629382729530334,
-0.02737640216946602,
-0.016587968915700912,
-0.006090784911066294,
0.04089369997382164,
0.028367917984724045,
-0.10473089665174484,
0.051937513053417206,
0.035830140113830566,
0.017616892233490944,
-0.061586763709783554,
-0.00005607159619103186,
0.1453700065612793,
0.03409693017601967,
0.10410965234041214,
-0.046062130481004715,
0.06439018994569778,
-0.17791108787059784,
0.013349161483347416,
-0.006593658588826656,
-0.06191011518239975,
0.0003203782544005662,
0.06674125045537949,
0.06938555836677551,
-0.016065938398241997,
0.213150754570961,
-0.05579507350921631,
-0.039002977311611176,
0.07828900218009949,
0.08986461907625198,
-0.05128374323248863,
0.03354267403483391,
0.03859096020460129,
0.025425152853131294,
-0.07283329218626022,
0.014040251262485981,
0.03142384812235832,
-0.004992904141545296,
0.008519296534359455,
0.2021055966615677,
0.09203629940748215,
0.24972712993621826,
0.043649036437273026,
-0.014402695000171661,
-0.14363707602024078,
-0.0439201183617115,
0.05603576451539993,
-0.06300538778305054,
0.07261104881763458,
-0.03253639489412308,
0.012117523699998856,
0.13440482318401337,
-0.1203237920999527,
0.10852449387311935,
0.06746058166027069,
-0.017094949260354042,
-0.08120926469564438,
-0.1112290471792221,
-0.03743859753012657,
0.026604754850268364,
0.005323014222085476,
-0.14395774900913239,
0.05098360776901245,
0.05593142285943031,
0.020695703104138374,
0.01160846184939146,
0.05505593866109848,
-0.009404405951499939,
-0.0667983666062355,
0.09920450299978256,
0.008577059023082256,
-0.0026242316234856844,
0.014110719785094261,
-0.03168518468737602,
0.03704351559281349,
0.07388822734355927,
0.031366970390081406,
0.006435352377593517,
0.03673144802451134,
0.10301566869020462,
-0.022765789180994034,
-0.13032940030097961,
0.007260090671479702,
0.005657430738210678,
0.06412672996520996,
0.0976928249001503,
0.0593271479010582,
0.03225526586174965,
-0.00663758022710681,
0.25200459361076355,
-0.04244011640548706,
0.027898741886019707,
-0.16479021310806274,
-0.021598689258098602,
-0.015074465423822403,
-0.027714550495147705,
0.02100101299583912,
-0.14950807392597198,
0.041067756712436676,
0.16538585722446442,
0.16545572876930237,
0.004256581421941519,
0.005846899934113026,
0.02947392873466015,
-0.0000017350846519548213,
0.032155174762010574,
0.007978391833603382,
0.000010225144251307938,
0.26236918568611145,
-0.05230038985610008,
-0.02361399307847023,
0.030978716909885406,
-0.051832519471645355,
-0.024424906820058823,
0.08661232143640518,
0.013725893571972847,
0.014662714675068855,
-0.042284272611141205,
0.08615661412477493,
-0.07127218693494797,
-0.16061025857925415,
-0.03796941041946411,
-0.1341036558151245,
-0.15820080041885376,
-0.03185700997710228,
-0.03359466418623924,
0.06862710416316986,
0.0909120962023735,
0.07858499884605408,
0.025941474363207817,
0.13978487253189087,
-0.009206414222717285,
-0.09416528046131134,
-0.1610608994960785,
0.055573515594005585,
0.016483314335346222,
0.22917769849300385,
-0.025614924728870392,
0.010311325080692768,
0.1006133034825325,
-0.03446880355477333,
-0.16172780096530914,
-0.05089375376701355,
0.012019304558634758,
-0.023422447964549065,
0.01916559785604477,
0.1846761852502823,
-0.029176197946071625,
0.06378722190856934,
0.120929054915905,
-0.03752826899290085,
0.05961991474032402,
0.0013130869483575225,
-0.0342780277132988,
-0.09167686849832535,
0.12130045890808105,
-0.06166469678282738,
0.1273166984319687,
0.16081419587135315,
-0.06379621475934982,
0.04491041600704193,
-0.01946224831044674,
-0.013817442581057549,
-0.03690721094608307,
0.10779355466365814,
-0.03966398164629936,
-0.1965169608592987,
0.07587579637765884,
-0.02984115108847618,
0.04035123065114021,
-0.2169436812400818,
-0.010908456519246101,
0.03951158747076988,
-0.06281746923923492,
-0.021276595070958138,
0.0924932062625885,
0.044582854956388474,
-0.010282990522682667,
-0.017313096672296524,
0.012237903662025928,
0.011324264109134674,
0.0714544951915741,
-0.11190243810415268,
-0.0737660750746727
] |
null | null | transformers |
# Model Card for T5 11B
![model image](https://camo.githubusercontent.com/623b4dea0b653f2ad3f36c71ebfe749a677ac0a1/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f343030362f312a44304a31674e51663876727255704b657944387750412e706e67)
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training Details](#training-details)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Citation](#citation)
8. [Model Card Authors](#model-card-authors)
9. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
The developers of the Text-To-Text Transfer Transformer (T5) [write](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html):
> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.
T5-11B is the checkpoint with 11 billion parameters.
- **Developed by:** Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See [associated paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) and [GitHub repo](https://github.com/google-research/text-to-text-transfer-transformer#released-model-checkpoints)
- **Model type:** Language model
- **Language(s) (NLP):** English, French, Romanian, German
- **License:** Apache 2.0
- **Related Models:** [All T5 Checkpoints](https://huggingface.co/models?search=t5)
- **Resources for more information:**
- [Research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf)
- [Google's T5 Blog Post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html)
- [GitHub Repo](https://github.com/google-research/text-to-text-transfer-transformer)
- [Hugging Face T5 Docs](https://huggingface.co/docs/transformers/model_doc/t5)
# Uses
## Direct Use and Downstream Use
The developers write in a [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) that the model:
> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.
See the [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) and [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
## Out-of-Scope Use
More information needed.
# Bias, Risks, and Limitations
More information needed.
## Recommendations
More information needed.
# Training Details
## Training Data
The model is pre-trained on the [Colossal Clean Crawled Corpus (C4)](https://www.tensorflow.org/datasets/catalog/c4), which was developed and released in the context of the same [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) as T5.
The model was pre-trained on a on a **multi-task mixture of unsupervised (1.) and supervised tasks (2.)**.
Thereby, the following datasets were being used for (1.) and (2.):
1. **Datasets used for Unsupervised denoising objective**:
- [C4](https://huggingface.co/datasets/c4)
- [Wiki-DPR](https://huggingface.co/datasets/wiki_dpr)
2. **Datasets used for Supervised text-to-text language modeling objective**
- Sentence acceptability judgment
- CoLA [Warstadt et al., 2018](https://arxiv.org/abs/1805.12471)
- Sentiment analysis
- SST-2 [Socher et al., 2013](https://nlp.stanford.edu/~socherr/EMNLP2013_RNTN.pdf)
- Paraphrasing/sentence similarity
- MRPC [Dolan and Brockett, 2005](https://aclanthology.org/I05-5002)
- STS-B [Ceret al., 2017](https://arxiv.org/abs/1708.00055)
- QQP [Iyer et al., 2017](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs)
- Natural language inference
- MNLI [Williams et al., 2017](https://arxiv.org/abs/1704.05426)
- QNLI [Rajpurkar et al.,2016](https://arxiv.org/abs/1606.05250)
- RTE [Dagan et al., 2005](https://link.springer.com/chapter/10.1007/11736790_9)
- CB [De Marneff et al., 2019](https://semanticsarchive.net/Archive/Tg3ZGI2M/Marneffe.pdf)
- Sentence completion
- COPA [Roemmele et al., 2011](https://www.researchgate.net/publication/221251392_Choice_of_Plausible_Alternatives_An_Evaluation_of_Commonsense_Causal_Reasoning)
- Word sense disambiguation
- WIC [Pilehvar and Camacho-Collados, 2018](https://arxiv.org/abs/1808.09121)
- Question answering
- MultiRC [Khashabi et al., 2018](https://aclanthology.org/N18-1023)
- ReCoRD [Zhang et al., 2018](https://arxiv.org/abs/1810.12885)
- BoolQ [Clark et al., 2019](https://arxiv.org/abs/1905.10044)
## Training Procedure
In their [abstract](https://jmlr.org/papers/volume21/20-074/20-074.pdf), the model developers write:
> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks.
The framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
# Evaluation
## Testing Data, Factors & Metrics
The developers evaluated the model on 24 tasks, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for full details.
## Results
For full results for T5-11B, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf), Table 14.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** Google Cloud TPU Pods
- **Hours used:** More information needed
- **Cloud Provider:** GCP
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Citation
**BibTeX:**
```bibtex
@article{2020t5,
author = {Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu},
title = {Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer},
journal = {Journal of Machine Learning Research},
year = {2020},
volume = {21},
number = {140},
pages = {1-67},
url = {http://jmlr.org/papers/v21/20-074.html}
}
```
**APA:**
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
## Disclaimer
**Before `transformers` v3.5.0**, due do its immense size, `t5-11b` required some special treatment.
If you're using transformers `<= v3.4.0`, `t5-11b` should be loaded with flag `use_cdn` set to `False` as follows:
```python
t5 = transformers.T5ForConditionalGeneration.from_pretrained('t5-11b', use_cdn = False)
```
Secondly, a single GPU will most likely not have enough memory to even load the model into memory as the weights alone amount to over 40 GB.
- Model parallelism has to be used here to overcome this problem as is explained in this [PR](https://github.com/huggingface/transformers/pull/3578).
- DeepSpeed's ZeRO-Offload is another approach as explained in this [post](https://github.com/huggingface/transformers/issues/9996).
See the [Hugging Face T5](https://huggingface.co/docs/transformers/model_doc/t5#transformers.T5Model) docs and a [Colab Notebook](https://colab.research.google.com/github/google-research/text-to-text-transfer-transformer/blob/main/notebooks/t5-trivia.ipynb) created by the model developers for more context.
| {"language": ["en", "fr", "ro", "de", "multilingual"], "license": "apache-2.0", "tags": ["summarization", "translation"], "datasets": ["c4"], "inference": false} | translation | google-t5/t5-11b | [
"transformers",
"pytorch",
"tf",
"t5",
"text2text-generation",
"summarization",
"translation",
"en",
"fr",
"ro",
"de",
"multilingual",
"dataset:c4",
"arxiv:1805.12471",
"arxiv:1708.00055",
"arxiv:1704.05426",
"arxiv:1606.05250",
"arxiv:1808.09121",
"arxiv:1810.12885",
"arxiv:1905.10044",
"arxiv:1910.09700",
"license:apache-2.0",
"autotrain_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1805.12471",
"1708.00055",
"1704.05426",
"1606.05250",
"1808.09121",
"1810.12885",
"1905.10044",
"1910.09700"
] | [
"en",
"fr",
"ro",
"de",
"multilingual"
] | TAGS
#transformers #pytorch #tf #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #has_space #text-generation-inference #region-us
|
# Model Card for T5 11B
!model image
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training Details
5. Evaluation
6. Environmental Impact
7. Citation
8. Model Card Authors
9. How To Get Started With the Model
# Model Details
## Model Description
The developers of the Text-To-Text Transfer Transformer (T5) write:
> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.
T5-11B is the checkpoint with 11 billion parameters.
- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo
- Model type: Language model
- Language(s) (NLP): English, French, Romanian, German
- License: Apache 2.0
- Related Models: All T5 Checkpoints
- Resources for more information:
- Research paper
- Google's T5 Blog Post
- GitHub Repo
- Hugging Face T5 Docs
# Uses
## Direct Use and Downstream Use
The developers write in a blog post that the model:
> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.
See the blog post and research paper for further details.
## Out-of-Scope Use
More information needed.
# Bias, Risks, and Limitations
More information needed.
## Recommendations
More information needed.
# Training Details
## Training Data
The model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.
The model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).
Thereby, the following datasets were being used for (1.) and (2.):
1. Datasets used for Unsupervised denoising objective:
- C4
- Wiki-DPR
2. Datasets used for Supervised text-to-text language modeling objective
- Sentence acceptability judgment
- CoLA Warstadt et al., 2018
- Sentiment analysis
- SST-2 Socher et al., 2013
- Paraphrasing/sentence similarity
- MRPC Dolan and Brockett, 2005
- STS-B Ceret al., 2017
- QQP Iyer et al., 2017
- Natural language inference
- MNLI Williams et al., 2017
- QNLI Rajpurkar et al.,2016
- RTE Dagan et al., 2005
- CB De Marneff et al., 2019
- Sentence completion
- COPA Roemmele et al., 2011
- Word sense disambiguation
- WIC Pilehvar and Camacho-Collados, 2018
- Question answering
- MultiRC Khashabi et al., 2018
- ReCoRD Zhang et al., 2018
- BoolQ Clark et al., 2019
## Training Procedure
In their abstract, the model developers write:
> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks.
The framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.
# Evaluation
## Testing Data, Factors & Metrics
The developers evaluated the model on 24 tasks, see the research paper for full details.
## Results
For full results for T5-11B, see the research paper, Table 14.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: Google Cloud TPU Pods
- Hours used: More information needed
- Cloud Provider: GCP
- Compute Region: More information needed
- Carbon Emitted: More information needed
BibTeX:
APA:
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
## Disclaimer
Before 'transformers' v3.5.0, due do its immense size, 't5-11b' required some special treatment.
If you're using transformers '<= v3.4.0', 't5-11b' should be loaded with flag 'use_cdn' set to 'False' as follows:
Secondly, a single GPU will most likely not have enough memory to even load the model into memory as the weights alone amount to over 40 GB.
- Model parallelism has to be used here to overcome this problem as is explained in this PR.
- DeepSpeed's ZeRO-Offload is another approach as explained in this post.
See the Hugging Face T5 docs and a Colab Notebook created by the model developers for more context.
| [
"# Model Card for T5 11B\n\n!model image",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-11B is the checkpoint with 11 billion parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs",
"# Uses",
"## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.",
"## Out-of-Scope Use\n\nMore information needed.",
"# Bias, Risks, and Limitations\n\nMore information needed.",
"## Recommendations\n\nMore information needed.",
"# Training Details",
"## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019",
"## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe developers evaluated the model on 24 tasks, see the research paper for full details.",
"## Results \n\nFor full results for T5-11B, see the research paper, Table 14.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Google Cloud TPU Pods\n- Hours used: More information needed\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model",
"## Disclaimer\n\nBefore 'transformers' v3.5.0, due do its immense size, 't5-11b' required some special treatment. \nIf you're using transformers '<= v3.4.0', 't5-11b' should be loaded with flag 'use_cdn' set to 'False' as follows:\n\n\n\nSecondly, a single GPU will most likely not have enough memory to even load the model into memory as the weights alone amount to over 40 GB.\n- Model parallelism has to be used here to overcome this problem as is explained in this PR.\n- DeepSpeed's ZeRO-Offload is another approach as explained in this post.\n\nSee the Hugging Face T5 docs and a Colab Notebook created by the model developers for more context."
] | [
"TAGS\n#transformers #pytorch #tf #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #has_space #text-generation-inference #region-us \n",
"# Model Card for T5 11B\n\n!model image",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-11B is the checkpoint with 11 billion parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs",
"# Uses",
"## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.",
"## Out-of-Scope Use\n\nMore information needed.",
"# Bias, Risks, and Limitations\n\nMore information needed.",
"## Recommendations\n\nMore information needed.",
"# Training Details",
"## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019",
"## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe developers evaluated the model on 24 tasks, see the research paper for full details.",
"## Results \n\nFor full results for T5-11B, see the research paper, Table 14.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Google Cloud TPU Pods\n- Hours used: More information needed\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model",
"## Disclaimer\n\nBefore 'transformers' v3.5.0, due do its immense size, 't5-11b' required some special treatment. \nIf you're using transformers '<= v3.4.0', 't5-11b' should be loaded with flag 'use_cdn' set to 'False' as follows:\n\n\n\nSecondly, a single GPU will most likely not have enough memory to even load the model into memory as the weights alone amount to over 40 GB.\n- Model parallelism has to be used here to overcome this problem as is explained in this PR.\n- DeepSpeed's ZeRO-Offload is another approach as explained in this post.\n\nSee the Hugging Face T5 docs and a Colab Notebook created by the model developers for more context."
] | [
148,
11,
47,
3,
248,
3,
116,
12,
14,
9,
3,
331,
126,
3,
31,
18,
161,
18,
9,
169
] | [
"passage: TAGS\n#transformers #pytorch #tf #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #has_space #text-generation-inference #region-us \n# Model Card for T5 11B\n\n!model image# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model# Model Details## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-11B is the checkpoint with 11 billion parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs# Uses",
"passage: ## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.## Out-of-Scope Use\n\nMore information needed.# Bias, Risks, and Limitations\n\nMore information needed.## Recommendations\n\nMore information needed.# Training Details## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.# Evaluation"
] | [
-0.0506453700363636,
0.08201335370540619,
-0.004066050983965397,
0.024621492251753807,
0.08649018406867981,
-0.011827649548649788,
0.09891762584447861,
0.0761040672659874,
-0.005329428240656853,
0.05973877012729645,
-0.024105973541736603,
-0.0032691266387701035,
0.1207863837480545,
0.10257116705179214,
0.01318299025297165,
-0.2217574417591095,
0.034801095724105835,
-0.09556709229946136,
-0.04842526465654373,
0.09058213233947754,
0.10957172513008118,
-0.05295977741479874,
0.07264326512813568,
-0.006152782589197159,
0.0008457149378955364,
0.000012096017599105835,
-0.01059798151254654,
-0.043279144912958145,
0.043009575456380844,
0.09148501604795456,
0.10528801381587982,
0.06208664923906326,
0.06314808130264282,
-0.21933136880397797,
0.020517222583293915,
0.0918528214097023,
-0.010798526927828789,
0.04421214386820793,
0.06897962093353271,
-0.021823419257998466,
0.12259954959154129,
-0.10775231570005417,
0.05702812969684601,
0.08544635027647018,
-0.09528112411499023,
-0.08904364705085754,
-0.09211917221546173,
0.10425817221403122,
0.09500755369663239,
0.041273824870586395,
-0.016048725694417953,
0.05010848492383957,
0.00043291738256812096,
0.05080173537135124,
0.06338172405958176,
-0.17619717121124268,
-0.05229383707046509,
0.002297164872288704,
0.03197357803583145,
0.09733779728412628,
-0.07341311126947403,
0.014662506058812141,
0.012310100719332695,
-0.005072874948382378,
0.010923286899924278,
-0.01740918681025505,
0.08335936814546585,
-0.0032393233850598335,
-0.1239812970161438,
-0.030275296419858932,
0.1781787872314453,
0.013749132864177227,
-0.10401435941457748,
-0.10341896116733551,
-0.06961162388324738,
0.035458460450172424,
0.008982300758361816,
-0.06145070865750313,
0.006739060394465923,
0.010162035934627056,
0.06328022480010986,
-0.07255630195140839,
-0.10733961313962936,
-0.007600518874824047,
-0.06068018451333046,
0.08390047401189804,
0.02023322321474552,
0.03833586722612381,
-0.035893116146326065,
0.10772359371185303,
0.015190632082521915,
-0.11414219439029694,
-0.04280292987823486,
-0.0892425999045372,
-0.12668836116790771,
-0.02705816738307476,
0.010184184648096561,
-0.10926391184329987,
0.004620106890797615,
0.12166481465101242,
0.06383762508630753,
0.0507231280207634,
-0.06054414436221123,
0.011599435470998287,
0.05987786129117012,
0.1364317685365677,
-0.011706031858921051,
-0.13093748688697815,
0.01237359270453453,
0.015056638978421688,
0.0016631828621029854,
-0.030496997758746147,
-0.006303619593381882,
-0.015212464146316051,
-0.03729256987571716,
0.08185437321662903,
0.08452466130256653,
0.04102805629372597,
-0.033823661506175995,
-0.06774324178695679,
0.16251680254936218,
-0.1570623815059662,
-0.010123856365680695,
0.02402474172413349,
-0.014447338879108429,
0.1083812266588211,
0.06628204137086868,
-0.023026175796985626,
-0.08116685599088669,
0.004674180876463652,
-0.04554758220911026,
-0.03959517925977707,
-0.08668357133865356,
-0.10817389190196991,
0.02393326908349991,
0.041477713733911514,
-0.08402416110038757,
-0.08208519220352173,
-0.13851238787174225,
-0.06556076556444168,
0.044288456439971924,
-0.036029212176799774,
-0.012624927796423435,
-0.019923649728298187,
-0.03274032473564148,
0.008805831894278526,
0.003920036368072033,
-0.05707314610481262,
-0.016717884689569473,
0.025789111852645874,
-0.03179895877838135,
0.04289042949676514,
0.007864629849791527,
0.01819964498281479,
-0.04203867167234421,
0.01392309833317995,
-0.17766821384429932,
0.12980639934539795,
-0.10246318578720093,
0.009404201991856098,
-0.12121471017599106,
-0.01292601227760315,
0.03962824493646622,
0.014651046134531498,
-0.00029406696557998657,
0.13089978694915771,
-0.2422235608100891,
-0.03819763660430908,
0.1382749080657959,
-0.15787073969841003,
-0.02343086153268814,
0.08792766183614731,
-0.026155080646276474,
0.07675547152757645,
0.10886137187480927,
0.023309409618377686,
0.16390341520309448,
-0.08630489557981491,
-0.016102725639939308,
-0.04637883976101875,
-0.009353110566735268,
0.11705898493528366,
0.07154926657676697,
-0.01835247315466404,
-0.00595403928309679,
0.029762063175439835,
-0.07060030102729797,
-0.0302736759185791,
-0.0006134416908025742,
-0.0571860671043396,
0.023301787674427032,
-0.015076220035552979,
0.038912225514650345,
-0.025992868468165398,
-0.04804135113954544,
-0.005104118026793003,
-0.10432103276252747,
0.002175373025238514,
0.07808665931224823,
-0.04724394157528877,
0.025037769228219986,
-0.0876726508140564,
-0.016291659325361252,
0.0003494592383503914,
0.009676424786448479,
-0.12811234593391418,
-0.0888393446803093,
0.04065047577023506,
-0.09026439487934113,
0.09050805866718292,
0.1050216481089592,
0.022926006466150284,
0.04628279060125351,
-0.04145992547273636,
0.0061612240970134735,
-0.020991792902350426,
-0.0004683518782258034,
-0.009062297642230988,
-0.16583019495010376,
-0.012393509969115257,
-0.03659265488386154,
0.06382159888744354,
-0.14126791059970856,
0.03562864661216736,
0.07402388751506805,
0.08065459132194519,
0.03064609318971634,
-0.0299675390124321,
-0.005426349584013224,
-0.00912071019411087,
-0.018060846254229546,
-0.0265980027616024,
0.00472979573532939,
-0.006560564041137695,
-0.04670891910791397,
0.06182268261909485,
-0.13638022541999817,
-0.11625217646360397,
0.05220663547515869,
0.06026936694979668,
-0.09864185750484467,
0.0031178609933704138,
-0.03552232310175896,
-0.02297462336719036,
-0.04564036428928375,
-0.06267013400793076,
0.1555258333683014,
0.03532060980796814,
0.06463681906461716,
-0.0761663019657135,
-0.052661120891571045,
-0.014369668439030647,
-0.006718311458826065,
0.009321572259068489,
0.06377525627613068,
0.026835434138774872,
-0.1394004076719284,
0.05872347950935364,
0.07849688082933426,
0.03260490670800209,
0.18192210793495178,
-0.016973858699202538,
-0.07102079689502716,
-0.04033153876662254,
0.026056241244077682,
0.018455810844898224,
0.07934734225273132,
0.027141498401761055,
0.03188899904489517,
0.05208125710487366,
0.021964343264698982,
0.03013189136981964,
-0.07442395389080048,
0.05226939916610718,
0.027859732508659363,
-0.03811110556125641,
-0.07297347486019135,
-0.026984594762325287,
0.00392227154225111,
0.09258171916007996,
0.008784318342804909,
0.08758693933486938,
-0.00859073270112276,
-0.061469949781894684,
-0.10964789241552353,
0.12952733039855957,
-0.12522011995315552,
-0.2171693593263626,
-0.1405269354581833,
0.06222687289118767,
-0.058830320835113525,
-0.0070399995893239975,
0.0105408551171422,
-0.07705383002758026,
-0.09983769059181213,
-0.07983335852622986,
0.08668297529220581,
0.005175770726054907,
-0.06254062056541443,
-0.017569098621606827,
0.02150735631585121,
-0.008989760652184486,
-0.12493298947811127,
-0.000997575931251049,
0.022834187373518944,
-0.10442174226045609,
-0.007423506584018469,
0.012174447998404503,
0.053917497396469116,
0.11997589468955994,
-0.007546655368059874,
-0.029222272336483,
-0.003713195212185383,
0.1379472315311432,
-0.07940788567066193,
0.15363709628582,
0.14020167291164398,
-0.06441989541053772,
0.0766901820898056,
0.14310526847839355,
0.011357257142663002,
-0.01074976660311222,
0.02070668712258339,
0.021271677687764168,
-0.03941706195473671,
-0.2757260799407959,
-0.07312078773975372,
-0.06345484405755997,
0.018743138760328293,
0.0062982854433357716,
0.028344400227069855,
0.02734605222940445,
0.03675265237689018,
-0.1005975604057312,
-0.038243960589170456,
0.10187358409166336,
0.10528218746185303,
0.10102996230125427,
-0.0010656872764229774,
0.08798445016145706,
-0.0937613993883133,
0.011570347473025322,
0.12404228746891022,
0.0005547953769564629,
0.19562748074531555,
0.030414951965212822,
0.10506139695644379,
0.07975254952907562,
0.019881634041666985,
0.06461209058761597,
0.07306813448667526,
0.00137303676456213,
0.04268261417746544,
-0.04030103608965874,
-0.07225163280963898,
-0.045714523643255234,
0.08076397329568863,
-0.0008773906156420708,
-0.035570770502090454,
-0.015510458499193192,
-0.034347161650657654,
0.0583161860704422,
0.15863001346588135,
0.025026049464941025,
-0.10594598948955536,
-0.05930996313691139,
0.050743911415338516,
-0.07502302527427673,
-0.06240719556808472,
0.01226922869682312,
0.08096595108509064,
-0.13227200508117676,
0.11046063899993896,
-0.02150924690067768,
0.08938287943601608,
-0.06911075115203857,
-0.006228811107575893,
-0.006756146438419819,
0.07860501110553741,
-0.02162095345556736,
0.05920504033565521,
-0.14040738344192505,
0.1047557145357132,
0.011035244911909103,
0.03573698550462723,
-0.0510435551404953,
0.05069055035710335,
0.017329927533864975,
0.03745032846927643,
0.08708922564983368,
0.02024536021053791,
-0.1133500337600708,
-0.02018803544342518,
-0.05052708089351654,
0.042129550129175186,
0.09276945888996124,
-0.10517241060733795,
0.09609856456518173,
-0.036710817366838455,
0.0026798024773597717,
-0.022512247785925865,
0.023268207907676697,
-0.13894404470920563,
-0.17431704699993134,
0.06049377843737602,
-0.10988058149814606,
0.03281291574239731,
-0.05223952978849411,
-0.025068556889891624,
-0.0018095560371875763,
0.18045565485954285,
-0.20069077610969543,
-0.10622794926166534,
-0.11866246908903122,
-0.0641128197312355,
0.10053971409797668,
-0.08333946764469147,
0.022460248321294785,
-0.01819446124136448,
0.08657696843147278,
-0.02543150633573532,
-0.10004761815071106,
0.009432504884898663,
-0.07613067328929901,
-0.16579920053482056,
-0.04739486798644066,
0.11518754810094833,
0.10041838139295578,
0.037131477147340775,
0.01428130641579628,
0.0030582365579903126,
0.0006957892328500748,
-0.12364526838064194,
-0.038572076708078384,
0.15957704186439514,
-0.006789658684283495,
0.06133417785167694,
-0.06477772444486618,
-0.1476503312587738,
-0.0940159410238266,
-0.02810206077992916,
0.04671504348516464,
0.1415182501077652,
-0.029350440949201584,
0.16951188445091248,
0.13562604784965515,
-0.10878965258598328,
-0.1853574961423874,
-0.04395369812846184,
0.04958057031035423,
0.012064890004694462,
0.06117824465036392,
-0.1680823713541031,
0.03930787742137909,
0.008943060413002968,
0.007220152765512466,
0.021675072610378265,
-0.11469858884811401,
-0.1018790677189827,
0.05784333497285843,
0.011500507593154907,
0.008151520974934101,
-0.12200969457626343,
-0.040410544723272324,
-0.04874876141548157,
-0.12343042343854904,
0.1689874827861786,
-0.032164473086595535,
0.03919938951730728,
0.02380354143679142,
0.027687888592481613,
0.0334811806678772,
-0.020954947918653488,
0.13882137835025787,
0.01271812990307808,
0.03934548422694206,
-0.07340627908706665,
0.010300913825631142,
0.07935033738613129,
-0.04528274014592171,
0.05105525627732277,
-0.0016262978315353394,
0.04540972039103508,
-0.06516385823488235,
-0.06078047677874565,
-0.06283662468194962,
0.02035457268357277,
-0.07111115008592606,
-0.053405433893203735,
-0.07210957258939743,
0.08471889048814774,
0.10194532573223114,
-0.02761850878596306,
0.00129819312132895,
-0.06587216258049011,
0.02806013636291027,
0.16430506110191345,
0.15907743573188782,
0.11772508174180984,
-0.023754065856337547,
-0.036380354315042496,
-0.017215989530086517,
0.054580193012952805,
-0.171089768409729,
0.059425175189971924,
0.08488083630800247,
0.011033937335014343,
0.10099949687719345,
-0.004321728367358446,
-0.13403277099132538,
-0.0036151637323200703,
0.0690833181142807,
-0.08335719257593155,
-0.16910195350646973,
-0.039523862302303314,
-0.019787998870015144,
-0.07047508656978607,
-0.0243541207164526,
0.14226487278938293,
-0.028469780460000038,
-0.010805501602590084,
0.015485206618905067,
0.06848789751529694,
0.0008223314653150737,
0.07574091851711273,
0.006958062760531902,
0.041674140840768814,
-0.06466514617204666,
0.07809937000274658,
0.08383806049823761,
-0.054408833384513855,
0.009190540760755539,
0.09878630936145782,
-0.07805086672306061,
-0.030242688953876495,
-0.03227241337299347,
0.06919185817241669,
-0.06481138616800308,
-0.02704952284693718,
-0.0019981227815151215,
-0.09749143570661545,
-0.0028796782717108727,
0.13759486377239227,
-0.011671382933855057,
0.029240459203720093,
-0.01675454154610634,
0.031245239078998566,
-0.017379026859998703,
0.08700186014175415,
0.06044336408376694,
-0.008201061747968197,
-0.0507860966026783,
0.08581353724002838,
0.004128045402467251,
0.011055801063776016,
-0.013879625126719475,
-0.03089280053973198,
-0.08806633204221725,
-0.032623350620269775,
-0.16847214102745056,
0.018787991255521774,
-0.04554755985736847,
0.006072895135730505,
-0.0030529475770890713,
-0.04489457234740257,
-0.01686592772603035,
0.017958562821149826,
-0.05357106029987335,
-0.02296423353254795,
-0.029940826818346977,
0.0959557592868805,
-0.11270974576473236,
0.017267391085624695,
0.09626837819814682,
-0.08027850091457367,
0.06524436175823212,
-0.011290756054222584,
-0.034648347645998,
0.07072080671787262,
-0.10048581659793854,
0.03409469127655029,
-0.04935382306575775,
0.04546763747930527,
0.000574384001083672,
-0.08284101635217667,
0.011123601347208023,
-0.0004487719852477312,
-0.045312970876693726,
-0.006786586716771126,
0.040644705295562744,
-0.07125696539878845,
0.05457258224487305,
0.017214413732290268,
-0.06146257370710373,
-0.06599412858486176,
0.017356641590595245,
0.02821946330368519,
0.054246630519628525,
0.0984528660774231,
-0.054933805018663406,
0.08177868276834488,
-0.16030538082122803,
-0.01762385666370392,
0.040809519588947296,
0.013168665580451488,
0.05174775794148445,
-0.07026536762714386,
0.04918304830789566,
-0.019822411239147186,
0.09092061221599579,
-0.028711944818496704,
0.03392777219414711,
0.04431099072098732,
-0.03446191921830177,
-0.08454718440771103,
0.017570283263921738,
0.050136979669332504,
0.011953367851674557,
0.023109521716833115,
-0.026609811931848526,
-0.06484919786453247,
-0.06365059316158295,
-0.08172740042209625,
0.15483534336090088,
0.11777554452419281,
0.010586794465780258,
0.011981966905295849,
0.031701117753982544,
-0.041648752987384796,
-0.021271703764796257,
0.012185249477624893,
-0.028415309265255928,
0.018261797726154327,
-0.05292382836341858,
0.03178662806749344,
0.12928617000579834,
-0.1245371401309967,
0.11606553941965103,
-0.00613884162157774,
-0.05590015649795532,
-0.09656951576471329,
-0.20590470731258392,
-0.033609554171562195,
-0.03871404007077217,
-0.008689284324645996,
-0.10830502212047577,
0.0831136703491211,
0.03957340121269226,
0.02896147593855858,
-0.02817273885011673,
0.05100741982460022,
-0.0930362194776535,
-0.11188764870166779,
0.056239090859889984,
0.0329696387052536,
0.05031026154756546,
0.059840112924575806,
0.02403929829597473,
0.019673001021146774,
0.1010594516992569,
0.028089577332139015,
0.09528054296970367,
0.04307582229375839,
0.015255850739777088,
-0.02617984265089035,
-0.07282541692256927,
-0.009452210739254951,
-0.01628144644200802,
0.011211260221898556,
0.18616342544555664,
0.037612009793519974,
-0.027083002030849457,
0.023533836007118225,
0.16928830742835999,
-0.03616580367088318,
-0.1270843744277954,
-0.15794113278388977,
0.12199835479259491,
-0.008081817999482155,
0.008505112491548061,
0.04522831365466118,
-0.10867737233638763,
-0.022556006908416748,
0.14990943670272827,
0.14763930439949036,
-0.0029075462371110916,
0.015529167838394642,
-0.015931783244013786,
0.018058964982628822,
0.023401154205203056,
0.08524154126644135,
-0.008324180729687214,
0.259063184261322,
-0.03187764436006546,
0.08654457330703735,
-0.002445694524794817,
-0.02221430465579033,
-0.01636373996734619,
0.14845158159732819,
-0.031626418232917786,
-0.018336229026317596,
-0.055899277329444885,
0.10643807798624039,
-0.03358292952179909,
-0.2717055082321167,
-0.008954329416155815,
-0.042636603116989136,
-0.08851306140422821,
-0.01740218512713909,
0.06457563489675522,
-0.005010000430047512,
0.012128722853958607,
0.023168353363871574,
-0.031001193448901176,
0.23144418001174927,
0.014357766136527061,
-0.04854331538081169,
-0.008914454840123653,
0.10716766119003296,
-0.11039543151855469,
0.10375025868415833,
0.032329488545656204,
0.06985551118850708,
0.0820094645023346,
0.013182496652007103,
-0.08073819428682327,
0.04688230901956558,
0.020664429292082787,
-0.08509775996208191,
0.013636304996907711,
0.15575702488422394,
-0.0019201082177460194,
0.06826426088809967,
0.10220356285572052,
-0.027171049267053604,
0.028700679540634155,
0.01967822015285492,
-0.04731348529458046,
-0.07116436958312988,
0.10694971680641174,
-0.10363443195819855,
0.12441381812095642,
0.14345280826091766,
-0.02276516705751419,
0.035643208771944046,
-0.07528193295001984,
0.03172478452324867,
-0.022367926314473152,
0.09565472602844238,
0.004271986894309521,
-0.09378073364496231,
-0.023437364026904106,
-0.017284467816352844,
0.09618400037288666,
-0.17964684963226318,
-0.05368553474545479,
0.017463751137256622,
-0.008597898297011852,
-0.039589375257492065,
0.13485676050186157,
0.04336436092853546,
0.004793683998286724,
-0.016585571691393852,
-0.10830548405647278,
0.013054930604994297,
0.08427675068378448,
-0.07946949452161789,
-0.020258229225873947
] |
null | null | transformers |
# Model Card for T5-3B
![model image](https://camo.githubusercontent.com/623b4dea0b653f2ad3f36c71ebfe749a677ac0a1/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f343030362f312a44304a31674e51663876727255704b657944387750412e706e67)
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training Details](#training-details)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Citation](#citation)
8. [Model Card Authors](#model-card-authors)
9. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
The developers of the Text-To-Text Transfer Transformer (T5) [write](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html):
> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.
T5-3B is the checkpoint with 3 billion parameters.
- **Developed by:** Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See [associated paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) and [GitHub repo](https://github.com/google-research/text-to-text-transfer-transformer#released-model-checkpoints)
- **Model type:** Language model
- **Language(s) (NLP):** English, French, Romanian, German
- **License:** Apache 2.0
- **Related Models:** [All T5 Checkpoints](https://huggingface.co/models?search=t5)
- **Resources for more information:**
- [Research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf)
- [Google's T5 Blog Post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html)
- [GitHub Repo](https://github.com/google-research/text-to-text-transfer-transformer)
- [Hugging Face T5 Docs](https://huggingface.co/docs/transformers/model_doc/t5)
# Uses
## Direct Use and Downstream Use
The developers write in a [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) that the model:
> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.
See the [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) and [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
## Out-of-Scope Use
More information needed.
# Bias, Risks, and Limitations
More information needed.
## Recommendations
More information needed.
# Training Details
## Training Data
The model is pre-trained on the [Colossal Clean Crawled Corpus (C4)](https://www.tensorflow.org/datasets/catalog/c4), which was developed and released in the context of the same [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) as T5.
The model was pre-trained on a on a **multi-task mixture of unsupervised (1.) and supervised tasks (2.)**.
Thereby, the following datasets were being used for (1.) and (2.):
1. **Datasets used for Unsupervised denoising objective**:
- [C4](https://huggingface.co/datasets/c4)
- [Wiki-DPR](https://huggingface.co/datasets/wiki_dpr)
2. **Datasets used for Supervised text-to-text language modeling objective**
- Sentence acceptability judgment
- CoLA [Warstadt et al., 2018](https://arxiv.org/abs/1805.12471)
- Sentiment analysis
- SST-2 [Socher et al., 2013](https://nlp.stanford.edu/~socherr/EMNLP2013_RNTN.pdf)
- Paraphrasing/sentence similarity
- MRPC [Dolan and Brockett, 2005](https://aclanthology.org/I05-5002)
- STS-B [Ceret al., 2017](https://arxiv.org/abs/1708.00055)
- QQP [Iyer et al., 2017](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs)
- Natural language inference
- MNLI [Williams et al., 2017](https://arxiv.org/abs/1704.05426)
- QNLI [Rajpurkar et al.,2016](https://arxiv.org/abs/1606.05250)
- RTE [Dagan et al., 2005](https://link.springer.com/chapter/10.1007/11736790_9)
- CB [De Marneff et al., 2019](https://semanticsarchive.net/Archive/Tg3ZGI2M/Marneffe.pdf)
- Sentence completion
- COPA [Roemmele et al., 2011](https://www.researchgate.net/publication/221251392_Choice_of_Plausible_Alternatives_An_Evaluation_of_Commonsense_Causal_Reasoning)
- Word sense disambiguation
- WIC [Pilehvar and Camacho-Collados, 2018](https://arxiv.org/abs/1808.09121)
- Question answering
- MultiRC [Khashabi et al., 2018](https://aclanthology.org/N18-1023)
- ReCoRD [Zhang et al., 2018](https://arxiv.org/abs/1810.12885)
- BoolQ [Clark et al., 2019](https://arxiv.org/abs/1905.10044)
## Training Procedure
In their [abstract](https://jmlr.org/papers/volume21/20-074/20-074.pdf), the model developers write:
> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks.
The framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
# Evaluation
## Testing Data, Factors & Metrics
The developers evaluated the model on 24 tasks, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for full details.
## Results
For full results for T5-3B, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf), Table 14.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** Google Cloud TPU Pods
- **Hours used:** More information needed
- **Cloud Provider:** GCP
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Citation
**BibTeX:**
```bibtex
@article{2020t5,
author = {Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu},
title = {Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer},
journal = {Journal of Machine Learning Research},
year = {2020},
volume = {21},
number = {140},
pages = {1-67},
url = {http://jmlr.org/papers/v21/20-074.html}
}
```
**APA:**
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
See the [Hugging Face T5](https://huggingface.co/docs/transformers/model_doc/t5#transformers.T5Model) docs and a [Colab Notebook](https://colab.research.google.com/github/google-research/text-to-text-transfer-transformer/blob/main/notebooks/t5-trivia.ipynb) created by the model developers for more context on how to get started with this checkpoint.
| {"language": ["en", "fr", "ro", "de", "multilingual"], "license": "apache-2.0", "tags": ["summarization", "translation"], "datasets": ["c4"]} | translation | google-t5/t5-3b | [
"transformers",
"pytorch",
"tf",
"safetensors",
"t5",
"text2text-generation",
"summarization",
"translation",
"en",
"fr",
"ro",
"de",
"multilingual",
"dataset:c4",
"arxiv:1805.12471",
"arxiv:1708.00055",
"arxiv:1704.05426",
"arxiv:1606.05250",
"arxiv:1808.09121",
"arxiv:1810.12885",
"arxiv:1905.10044",
"arxiv:1910.09700",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1805.12471",
"1708.00055",
"1704.05426",
"1606.05250",
"1808.09121",
"1810.12885",
"1905.10044",
"1910.09700"
] | [
"en",
"fr",
"ro",
"de",
"multilingual"
] | TAGS
#transformers #pytorch #tf #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us
|
# Model Card for T5-3B
!model image
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training Details
5. Evaluation
6. Environmental Impact
7. Citation
8. Model Card Authors
9. How To Get Started With the Model
# Model Details
## Model Description
The developers of the Text-To-Text Transfer Transformer (T5) write:
> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.
T5-3B is the checkpoint with 3 billion parameters.
- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo
- Model type: Language model
- Language(s) (NLP): English, French, Romanian, German
- License: Apache 2.0
- Related Models: All T5 Checkpoints
- Resources for more information:
- Research paper
- Google's T5 Blog Post
- GitHub Repo
- Hugging Face T5 Docs
# Uses
## Direct Use and Downstream Use
The developers write in a blog post that the model:
> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.
See the blog post and research paper for further details.
## Out-of-Scope Use
More information needed.
# Bias, Risks, and Limitations
More information needed.
## Recommendations
More information needed.
# Training Details
## Training Data
The model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.
The model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).
Thereby, the following datasets were being used for (1.) and (2.):
1. Datasets used for Unsupervised denoising objective:
- C4
- Wiki-DPR
2. Datasets used for Supervised text-to-text language modeling objective
- Sentence acceptability judgment
- CoLA Warstadt et al., 2018
- Sentiment analysis
- SST-2 Socher et al., 2013
- Paraphrasing/sentence similarity
- MRPC Dolan and Brockett, 2005
- STS-B Ceret al., 2017
- QQP Iyer et al., 2017
- Natural language inference
- MNLI Williams et al., 2017
- QNLI Rajpurkar et al.,2016
- RTE Dagan et al., 2005
- CB De Marneff et al., 2019
- Sentence completion
- COPA Roemmele et al., 2011
- Word sense disambiguation
- WIC Pilehvar and Camacho-Collados, 2018
- Question answering
- MultiRC Khashabi et al., 2018
- ReCoRD Zhang et al., 2018
- BoolQ Clark et al., 2019
## Training Procedure
In their abstract, the model developers write:
> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks.
The framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.
# Evaluation
## Testing Data, Factors & Metrics
The developers evaluated the model on 24 tasks, see the research paper for full details.
## Results
For full results for T5-3B, see the research paper, Table 14.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: Google Cloud TPU Pods
- Hours used: More information needed
- Cloud Provider: GCP
- Compute Region: More information needed
- Carbon Emitted: More information needed
BibTeX:
APA:
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
See the Hugging Face T5 docs and a Colab Notebook created by the model developers for more context on how to get started with this checkpoint.
| [
"# Model Card for T5-3B\n\n!model image",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-3B is the checkpoint with 3 billion parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs",
"# Uses",
"## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.",
"## Out-of-Scope Use\n\nMore information needed.",
"# Bias, Risks, and Limitations\n\nMore information needed.",
"## Recommendations\n\nMore information needed.",
"# Training Details",
"## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019",
"## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe developers evaluated the model on 24 tasks, see the research paper for full details.",
"## Results \n\nFor full results for T5-3B, see the research paper, Table 14.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Google Cloud TPU Pods\n- Hours used: More information needed\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nSee the Hugging Face T5 docs and a Colab Notebook created by the model developers for more context on how to get started with this checkpoint."
] | [
"TAGS\n#transformers #pytorch #tf #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n",
"# Model Card for T5-3B\n\n!model image",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-3B is the checkpoint with 3 billion parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs",
"# Uses",
"## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.",
"## Out-of-Scope Use\n\nMore information needed.",
"# Bias, Risks, and Limitations\n\nMore information needed.",
"## Recommendations\n\nMore information needed.",
"# Training Details",
"## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019",
"## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe developers evaluated the model on 24 tasks, see the research paper for full details.",
"## Results \n\nFor full results for T5-3B, see the research paper, Table 14.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Google Cloud TPU Pods\n- Hours used: More information needed\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nSee the Hugging Face T5 docs and a Colab Notebook created by the model developers for more context on how to get started with this checkpoint."
] | [
161,
11,
47,
3,
248,
3,
116,
12,
14,
9,
3,
331,
126,
3,
31,
18,
161,
18,
42
] | [
"passage: TAGS\n#transformers #pytorch #tf #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n# Model Card for T5-3B\n\n!model image# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model# Model Details## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-3B is the checkpoint with 3 billion parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs# Uses",
"passage: ## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.## Out-of-Scope Use\n\nMore information needed.# Bias, Risks, and Limitations\n\nMore information needed.## Recommendations\n\nMore information needed.# Training Details## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.# Evaluation"
] | [
-0.06123695895075798,
0.11044450849294662,
-0.0036712181754410267,
0.017708709463477135,
0.08969414234161377,
-0.01061810553073883,
0.07813900709152222,
0.07052498310804367,
0.005301783327013254,
0.08232109248638153,
0.0016399389132857323,
-0.012305967509746552,
0.10774126648902893,
0.13182762265205383,
0.018527379259467125,
-0.19639384746551514,
0.05047469586133957,
-0.09382042288780212,
-0.030894622206687927,
0.09172341972589493,
0.10825024545192719,
-0.05205518379807472,
0.06330825388431549,
-0.0043791234493255615,
-0.03275786712765694,
-0.020874738693237305,
-0.029895808547735214,
-0.02687622606754303,
0.030149584636092186,
0.07455780357122421,
0.09397393465042114,
0.03915905952453613,
0.07344584912061691,
-0.20636779069900513,
0.02077958546578884,
0.098116934299469,
-0.007957450114190578,
0.03564279153943062,
0.058082424104213715,
-0.02260765992105007,
0.1464480757713318,
-0.10325321555137634,
0.07051144540309906,
0.07949930429458618,
-0.09961432218551636,
-0.07836537063121796,
-0.08261334151029587,
0.09662508964538574,
0.1144721582531929,
0.04765133559703827,
-0.019853077828884125,
0.049391962587833405,
0.007158854976296425,
0.03404911607503891,
0.06474107503890991,
-0.1426764726638794,
-0.05407066270709038,
0.031594324856996536,
0.026330089196562767,
0.062340591102838516,
-0.07436282932758331,
0.017384961247444153,
0.02352837659418583,
-0.00305446470156312,
0.010546177625656128,
-0.007383120246231556,
0.1079472154378891,
-0.019550058990716934,
-0.10978719592094421,
-0.03170429542660713,
0.14691226184368134,
0.014533496461808681,
-0.09962277114391327,
-0.13216446340084076,
-0.06494481861591339,
0.01805654913187027,
-0.009744266048073769,
-0.04030352085828781,
0.012580184265971184,
0.008191975764930248,
0.08870528638362885,
-0.07893139868974686,
-0.09104076027870178,
-0.003419014625251293,
-0.02971147559583187,
0.11236225068569183,
0.007156951352953911,
0.04041171818971634,
-0.02721613645553589,
0.10664637386798859,
-0.020798999816179276,
-0.10436536371707916,
-0.0548911951482296,
-0.07518446445465088,
-0.12207537144422531,
-0.02886788547039032,
0.005376122891902924,
-0.055758245289325714,
-0.0036179814487695694,
0.14958053827285767,
0.039885513484478,
0.0486726388335228,
-0.03008587844669819,
0.006543360650539398,
0.06636208295822144,
0.12688231468200684,
-0.005518174264580011,
-0.13240477442741394,
0.027053333818912506,
0.015183845534920692,
0.014873644337058067,
-0.041281312704086304,
0.0061506349593400955,
-0.01313974428921938,
-0.039732012897729874,
0.07185869663953781,
0.08498172461986542,
0.04110558703541756,
-0.0287497416138649,
-0.05823184922337532,
0.13567900657653809,
-0.15940473973751068,
-0.0017415741458535194,
0.037812866270542145,
-0.011993492022156715,
0.07742904871702194,
0.06631873548030853,
-0.009233239106833935,
-0.07322316616773605,
0.0334446020424366,
-0.05409695953130722,
-0.03030451200902462,
-0.07922172546386719,
-0.08377886563539505,
0.02364501729607582,
-0.0023380815982818604,
-0.07833138853311539,
-0.06860673427581787,
-0.14800189435482025,
-0.09662317484617233,
0.04939786344766617,
-0.03421822190284729,
-0.03962637856602669,
-0.02255867049098015,
-0.024766694754362106,
0.00540330121293664,
0.027868028730154037,
-0.06012892723083496,
-0.01580704376101494,
0.011086596176028252,
-0.023970145732164383,
0.04317788779735565,
0.02034636214375496,
0.01896008849143982,
-0.053328655660152435,
0.03161576762795448,
-0.17880381643772125,
0.13472382724285126,
-0.09649470448493958,
0.042178452014923096,
-0.11105989664793015,
0.0124204745516181,
0.04788685590028763,
0.02774319425225258,
0.003228766145184636,
0.14580634236335754,
-0.22368746995925903,
-0.036997854709625244,
0.1594039797782898,
-0.15099138021469116,
-0.04140589386224747,
0.06016812473535538,
-0.02949652448296547,
0.0993272066116333,
0.09490960836410522,
0.025971699506044388,
0.15241029858589172,
-0.08438247442245483,
-0.0062146903946995735,
-0.0519692599773407,
0.0065777539275586605,
0.10760669410228729,
0.06120721250772476,
-0.03994002938270569,
-0.021020762622356415,
0.04092610627412796,
-0.09351114928722382,
-0.052729226648807526,
0.006365638226270676,
-0.060203760862350464,
0.012014775536954403,
-0.03566964343190193,
0.004504781682044268,
-0.022754047065973282,
-0.05175648629665375,
-0.009628968313336372,
-0.09909997880458832,
0.009383147582411766,
0.08902989327907562,
-0.04330240562558174,
0.024719543755054474,
-0.07247666269540787,
0.005802975967526436,
-0.008762046694755554,
0.009852892719209194,
-0.13155531883239746,
-0.10690076649188995,
0.028840111568570137,
-0.09313914179801941,
0.08435895293951035,
0.04721805453300476,
0.024640832096338272,
0.05496691167354584,
-0.027069006115198135,
0.004708366468548775,
-0.007717637345194817,
-0.003846915904432535,
-0.014860344119369984,
-0.1503741443157196,
-0.01258653961122036,
-0.04845733568072319,
0.11876151710748672,
-0.1689484566450119,
0.03374466300010681,
0.029053963720798492,
0.09083551168441772,
0.030121110379695892,
-0.05082830786705017,
0.007159930653870106,
-0.025756563991308212,
-0.009639082476496696,
-0.03361782431602478,
0.016513360664248466,
0.01171293668448925,
-0.0371706523001194,
0.04787573218345642,
-0.14970111846923828,
-0.14555761218070984,
0.052851468324661255,
0.08528114855289459,
-0.11482611298561096,
-0.008624149486422539,
-0.03947180137038231,
-0.015561857260763645,
-0.06900353729724884,
-0.05874336138367653,
0.12422733753919601,
0.035348400473594666,
0.064363494515419,
-0.07585912942886353,
-0.05234311521053314,
-0.01309271715581417,
-0.00492650642991066,
-0.009076990187168121,
0.07069271802902222,
0.050479546189308167,
-0.10428230464458466,
0.058070406317710876,
0.049269214272499084,
0.023795919492840767,
0.16455474495887756,
-0.010251379571855068,
-0.06805682182312012,
-0.03068033792078495,
0.018439173698425293,
0.01091495156288147,
0.06711731851100922,
-0.0011709854006767273,
0.022464202716946602,
0.04663322493433952,
0.00020914198830723763,
0.030615882948040962,
-0.06872030347585678,
0.03986264020204544,
0.02754959836602211,
-0.024713944643735886,
-0.06966961920261383,
-0.022753484547138214,
-0.0034033097326755524,
0.09070001542568207,
0.014644036069512367,
0.08288121968507767,
-0.01720183528959751,
-0.05969695374369621,
-0.11990032345056534,
0.12724223732948303,
-0.10743147134780884,
-0.18595707416534424,
-0.11861540377140045,
0.0490846149623394,
-0.06294780969619751,
0.0023880493827164173,
0.008433585055172443,
-0.05971163511276245,
-0.09727016091346741,
-0.09134212136268616,
0.05900950729846954,
0.0185555350035429,
-0.06454363465309143,
0.013466047123074532,
0.024992385879158974,
-0.006576246581971645,
-0.10970067977905273,
-0.004221647512167692,
0.009719213470816612,
-0.07797796279191971,
-0.007297659758478403,
0.020803038030862808,
0.056050896644592285,
0.13610854744911194,
-0.007118866313248873,
-0.01815759763121605,
0.019335448741912842,
0.17070025205612183,
-0.0909782275557518,
0.1393643468618393,
0.13117866218090057,
-0.06092530116438866,
0.07105901837348938,
0.16477298736572266,
0.018399618566036224,
-0.02612089365720749,
0.019756149500608444,
0.03071804717183113,
-0.05780128762125969,
-0.23849445581436157,
-0.08296813815832138,
-0.06496816873550415,
0.015496420674026012,
0.025962388142943382,
0.03154340013861656,
-0.00011126324534416199,
0.034879714250564575,
-0.09458576887845993,
-0.050607796758413315,
0.09592002630233765,
0.10821103304624557,
0.05254167318344116,
0.0015181023627519608,
0.0846976488828659,
-0.07802826166152954,
0.023214267566800117,
0.10317175090312958,
-0.020390184596180916,
0.17089422047138214,
0.011611070483922958,
0.09208742529153824,
0.06830926239490509,
0.008950321935117245,
0.054532043635845184,
0.06756050884723663,
-0.005624697543680668,
0.033857665956020355,
-0.02832937054336071,
-0.08120588958263397,
-0.051831092685461044,
0.09988465905189514,
-0.018010146915912628,
-0.0415770523250103,
-0.02367386221885681,
-0.03022206574678421,
0.04163127392530441,
0.14360833168029785,
0.04333869367837906,
-0.1123625785112381,
-0.0622054859995842,
0.059699203819036484,
-0.05362865328788757,
-0.07495689392089844,
0.007119479589164257,
0.04118300974369049,
-0.13758182525634766,
0.10539096593856812,
-0.003894233610481024,
0.09735213965177536,
-0.04422449320554733,
-0.014757344499230385,
0.007687595672905445,
0.07854528725147247,
-0.02385091409087181,
0.044997330754995346,
-0.12735849618911743,
0.08951163291931152,
-0.00002438947558403015,
0.04600417613983154,
-0.04919268190860748,
0.053792551159858704,
0.013841435313224792,
0.0385175421833992,
0.10831476747989655,
0.02543547749519348,
-0.12898409366607666,
-0.024467190727591515,
-0.04507424682378769,
0.03150523453950882,
0.06540697813034058,
-0.12232695519924164,
0.09293681383132935,
-0.029608288779854774,
-0.0010715052485466003,
-0.02483457326889038,
0.014491098001599312,
-0.11675482988357544,
-0.18009693920612335,
0.053232770413160324,
-0.10433363914489746,
0.016657404601573944,
-0.04602249711751938,
-0.01935628056526184,
0.0015338845551013947,
0.19523997604846954,
-0.1243520975112915,
-0.1121491864323616,
-0.123809315264225,
-0.07909241318702698,
0.08687849342823029,
-0.08004771173000336,
0.027061333879828453,
-0.027318449690937996,
0.11736169457435608,
-0.026905760169029236,
-0.08165384829044342,
0.01005116943269968,
-0.09240715205669403,
-0.15582376718521118,
-0.042255230247974396,
0.12830251455307007,
0.09397943317890167,
0.025188952684402466,
0.02097095549106598,
0.021057531237602234,
-0.0018080705776810646,
-0.11727194488048553,
-0.01680900901556015,
0.1774396300315857,
-0.005023111589252949,
0.05688083916902542,
-0.06603638827800751,
-0.13222557306289673,
-0.082411028444767,
-0.03953653573989868,
0.04226510226726532,
0.17232483625411987,
-0.029164854437112808,
0.17741018533706665,
0.1364459991455078,
-0.09515421837568283,
-0.19836370646953583,
-0.0347321480512619,
0.05631005018949509,
0.009159205481410027,
0.03460511937737465,
-0.16012145578861237,
0.07687176764011383,
-0.007461283355951309,
-0.006195544730871916,
0.03652379661798477,
-0.12199342250823975,
-0.10914462804794312,
0.07750126719474792,
0.00016474351286888123,
-0.002519642934203148,
-0.10311977565288544,
-0.04653749242424965,
-0.05393718183040619,
-0.13633012771606445,
0.18181419372558594,
-0.039675142616033554,
0.029700474813580513,
0.02618134394288063,
0.032958533614873886,
0.045133233070373535,
-0.029149780049920082,
0.1476561725139618,
0.014733931049704552,
0.016373980790376663,
-0.08252894878387451,
0.0016027651727199554,
0.03891696035861969,
-0.05494489520788193,
0.06377618759870529,
0.01267775148153305,
0.05099955201148987,
-0.0917917862534523,
-0.06291667371988297,
-0.06530281901359558,
0.033456459641456604,
-0.07931572198867798,
-0.05662044882774353,
-0.05527329072356224,
0.08312807232141495,
0.10945571959018707,
-0.02196543477475643,
-0.016691764816641808,
-0.06509853899478912,
0.05239560082554817,
0.18238303065299988,
0.1261497139930725,
0.09127730131149292,
-0.03201781213283539,
-0.028387969359755516,
-0.015231507830321789,
0.04511226713657379,
-0.15303857624530792,
0.050668127834796906,
0.0735364556312561,
0.031102629378437996,
0.08800477534532547,
-0.004326963797211647,
-0.12793895602226257,
-0.025298433378338814,
0.06553567200899124,
-0.07935269176959991,
-0.15413479506969452,
-0.028834454715251923,
-0.02062816359102726,
-0.07658018171787262,
-0.047729529440402985,
0.12923429906368256,
-0.023341771215200424,
-0.014158284291625023,
0.015774693340063095,
0.07295198738574982,
0.007180021610110998,
0.05607381835579872,
-0.001100142952054739,
0.03939847648143768,
-0.07552818208932877,
0.06350978463888168,
0.07871924340724945,
-0.03769322484731674,
0.006609045900404453,
0.11516702175140381,
-0.08175569772720337,
-0.02899181842803955,
-0.0199870727956295,
0.06962307542562485,
-0.08096888661384583,
-0.015691405162215233,
0.0321209616959095,
-0.09219231456518173,
0.008881527930498123,
0.10561974346637726,
-0.0026018705684691668,
0.008373037911951542,
-0.004340769723057747,
0.02191568911075592,
-0.03100970759987831,
0.08833823353052139,
0.07254292815923691,
-0.008354635909199715,
-0.03445316106081009,
0.07866057753562927,
-0.0033547142520546913,
0.021386366337537766,
-0.008243982680141926,
-0.02790060080587864,
-0.09320012480020523,
-0.026758911088109016,
-0.1572912484407425,
0.02425042912364006,
-0.04854342341423035,
0.011059082113206387,
0.00010975170880556107,
-0.0320582240819931,
-0.016590218991041183,
0.0044721998274326324,
-0.05031231790781021,
-0.0377025231719017,
-0.03734780102968216,
0.07760372012853622,
-0.11034031212329865,
0.020437341183423996,
0.10338211059570312,
-0.08811125159263611,
0.06667806208133698,
0.003684493713080883,
-0.023936189711093903,
0.052585452795028687,
-0.0886567160487175,
0.026855215430259705,
-0.048687297850847244,
0.02553337812423706,
0.005797183606773615,
-0.0975467637181282,
0.00714471098035574,
-0.00821095984429121,
-0.06330358982086182,
-0.009522583335638046,
0.044653311371803284,
-0.07896707952022552,
0.05122111737728119,
0.029489748179912567,
-0.07007494568824768,
-0.06362330913543701,
0.013992822729051113,
0.012523150071501732,
0.051153771579265594,
0.0840592011809349,
-0.047072555869817734,
0.08513668179512024,
-0.15161779522895813,
-0.015338717959821224,
0.038075387477874756,
0.023829760029911995,
0.035032954066991806,
-0.05208627134561539,
0.048142317682504654,
-0.016764724627137184,
0.08578507602214813,
-0.014508839696645737,
0.023441696539521217,
0.047787874937057495,
-0.02067764475941658,
-0.07692374289035797,
0.020723622292280197,
0.05638640746474266,
0.020012125372886658,
0.02563643269240856,
-0.009463866241276264,
-0.05872297286987305,
-0.048873547464609146,
-0.09758913516998291,
0.15095072984695435,
0.10102927684783936,
0.04279586672782898,
0.014069033786654472,
0.012309357523918152,
-0.06031978875398636,
-0.023184478282928467,
0.029520109295845032,
-0.04510340094566345,
0.0052810730412602425,
-0.062419064342975616,
0.05603227764368057,
0.13506120443344116,
-0.121467225253582,
0.11468386650085449,
-0.02111179195344448,
-0.05535261332988739,
-0.11039703339338303,
-0.2024843841791153,
-0.03493921086192131,
-0.019985347986221313,
-0.0024590531829744577,
-0.09724117815494537,
0.06988783180713654,
0.02358425036072731,
0.019633781164884567,
-0.017696980386972427,
0.05782630294561386,
-0.09633028507232666,
-0.10762500017881393,
0.045769937336444855,
0.04618679732084274,
0.0468890443444252,
0.07118865847587585,
0.019047485664486885,
0.013944593258202076,
0.0902412086725235,
0.0382063053548336,
0.08876553177833557,
0.03402481973171234,
0.025303026661276817,
-0.01491275243461132,
-0.07593101263046265,
-0.006777484901249409,
-0.018390420824289322,
0.014446264132857323,
0.17483261227607727,
0.0335858128964901,
-0.010832875967025757,
0.013030683621764183,
0.1964690089225769,
-0.03569986671209335,
-0.10701633989810944,
-0.1575164794921875,
0.10345213115215302,
-0.017874298617243767,
0.012602532282471657,
0.032653748989105225,
-0.11929994821548462,
-0.02197345346212387,
0.15139620006084442,
0.1637842357158661,
-0.011756330728530884,
0.019864961504936218,
-0.023483257740736008,
0.016398193314671516,
0.017874086275696754,
0.07041798532009125,
-0.004095182754099369,
0.2627158761024475,
-0.04114896431565285,
0.09790323674678802,
0.0027116425335407257,
-0.029749484732747078,
-0.04225841164588928,
0.15336550772190094,
-0.03357832133769989,
-0.017485016956925392,
-0.055179379880428314,
0.09025059640407562,
-0.05618350952863693,
-0.2701846957206726,
-0.013454440981149673,
-0.041639603674411774,
-0.09453707933425903,
-0.01896132528781891,
0.028345240280032158,
0.007077421061694622,
0.023046351969242096,
0.029851900413632393,
-0.04188939183950424,
0.22956709563732147,
0.007660440634936094,
-0.03336036950349808,
-0.0253161508589983,
0.10194805264472961,
-0.06658856570720673,
0.14021089673042297,
0.031761642545461655,
0.061614591628313065,
0.07395164668560028,
0.0023245960474014282,
-0.09540283679962158,
0.03485705330967903,
0.027795420959591866,
-0.07776841521263123,
0.015153150074183941,
0.17271806299686432,
-0.023342018947005272,
0.031221609562635422,
0.10472927242517471,
-0.046206943690776825,
0.019716117531061172,
0.020153149962425232,
-0.03393690660595894,
-0.08143940567970276,
0.1251915842294693,
-0.10741215944290161,
0.1359424591064453,
0.1433236002922058,
-0.031009960919618607,
0.02612888440489769,
-0.0634751096367836,
0.04320719838142395,
-0.02412666194140911,
0.08643153309822083,
0.013793757185339928,
-0.10766565799713135,
0.0005631083622574806,
0.0011248909868299961,
0.09352044016122818,
-0.19512739777565002,
-0.05322764068841934,
0.019212666898965836,
-0.014090798795223236,
-0.0276792012155056,
0.13323254883289337,
0.05424938350915909,
-0.0009075910784304142,
-0.02514592558145523,
-0.10108037292957306,
0.020358026027679443,
0.08657206594944,
-0.059727512300014496,
-0.03347383067011833
] |
null | null | transformers |
# Model Card for T5 Base
![model image](https://camo.githubusercontent.com/623b4dea0b653f2ad3f36c71ebfe749a677ac0a1/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f343030362f312a44304a31674e51663876727255704b657944387750412e706e67)
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training Details](#training-details)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Citation](#citation)
8. [Model Card Authors](#model-card-authors)
9. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
The developers of the Text-To-Text Transfer Transformer (T5) [write](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html):
> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.
T5-Base is the checkpoint with 220 million parameters.
- **Developed by:** Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See [associated paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) and [GitHub repo](https://github.com/google-research/text-to-text-transfer-transformer#released-model-checkpoints)
- **Model type:** Language model
- **Language(s) (NLP):** English, French, Romanian, German
- **License:** Apache 2.0
- **Related Models:** [All T5 Checkpoints](https://huggingface.co/models?search=t5)
- **Resources for more information:**
- [Research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf)
- [Google's T5 Blog Post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html)
- [GitHub Repo](https://github.com/google-research/text-to-text-transfer-transformer)
- [Hugging Face T5 Docs](https://huggingface.co/docs/transformers/model_doc/t5)
# Uses
## Direct Use and Downstream Use
The developers write in a [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) that the model:
> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.
See the [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) and [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
## Out-of-Scope Use
More information needed.
# Bias, Risks, and Limitations
More information needed.
## Recommendations
More information needed.
# Training Details
## Training Data
The model is pre-trained on the [Colossal Clean Crawled Corpus (C4)](https://www.tensorflow.org/datasets/catalog/c4), which was developed and released in the context of the same [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) as T5.
The model was pre-trained on a on a **multi-task mixture of unsupervised (1.) and supervised tasks (2.)**.
Thereby, the following datasets were being used for (1.) and (2.):
1. **Datasets used for Unsupervised denoising objective**:
- [C4](https://huggingface.co/datasets/c4)
- [Wiki-DPR](https://huggingface.co/datasets/wiki_dpr)
2. **Datasets used for Supervised text-to-text language modeling objective**
- Sentence acceptability judgment
- CoLA [Warstadt et al., 2018](https://arxiv.org/abs/1805.12471)
- Sentiment analysis
- SST-2 [Socher et al., 2013](https://nlp.stanford.edu/~socherr/EMNLP2013_RNTN.pdf)
- Paraphrasing/sentence similarity
- MRPC [Dolan and Brockett, 2005](https://aclanthology.org/I05-5002)
- STS-B [Ceret al., 2017](https://arxiv.org/abs/1708.00055)
- QQP [Iyer et al., 2017](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs)
- Natural language inference
- MNLI [Williams et al., 2017](https://arxiv.org/abs/1704.05426)
- QNLI [Rajpurkar et al.,2016](https://arxiv.org/abs/1606.05250)
- RTE [Dagan et al., 2005](https://link.springer.com/chapter/10.1007/11736790_9)
- CB [De Marneff et al., 2019](https://semanticsarchive.net/Archive/Tg3ZGI2M/Marneffe.pdf)
- Sentence completion
- COPA [Roemmele et al., 2011](https://www.researchgate.net/publication/221251392_Choice_of_Plausible_Alternatives_An_Evaluation_of_Commonsense_Causal_Reasoning)
- Word sense disambiguation
- WIC [Pilehvar and Camacho-Collados, 2018](https://arxiv.org/abs/1808.09121)
- Question answering
- MultiRC [Khashabi et al., 2018](https://aclanthology.org/N18-1023)
- ReCoRD [Zhang et al., 2018](https://arxiv.org/abs/1810.12885)
- BoolQ [Clark et al., 2019](https://arxiv.org/abs/1905.10044)
## Training Procedure
In their [abstract](https://jmlr.org/papers/volume21/20-074/20-074.pdf), the model developers write:
> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks.
The framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
# Evaluation
## Testing Data, Factors & Metrics
The developers evaluated the model on 24 tasks, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for full details.
## Results
For full results for T5-Base, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf), Table 14.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** Google Cloud TPU Pods
- **Hours used:** More information needed
- **Cloud Provider:** GCP
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Citation
**BibTeX:**
```bibtex
@article{2020t5,
author = {Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu},
title = {Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer},
journal = {Journal of Machine Learning Research},
year = {2020},
volume = {21},
number = {140},
pages = {1-67},
url = {http://jmlr.org/papers/v21/20-074.html}
}
```
**APA:**
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
```python
from transformers import T5Tokenizer, T5Model
tokenizer = T5Tokenizer.from_pretrained("t5-base")
model = T5Model.from_pretrained("t5-base")
input_ids = tokenizer(
"Studies have been shown that owning a dog is good for you", return_tensors="pt"
).input_ids # Batch size 1
decoder_input_ids = tokenizer("Studies show that", return_tensors="pt").input_ids # Batch size 1
# forward pass
outputs = model(input_ids=input_ids, decoder_input_ids=decoder_input_ids)
last_hidden_states = outputs.last_hidden_state
```
See the [Hugging Face T5](https://huggingface.co/docs/transformers/model_doc/t5#transformers.T5Model) docs and a [Colab Notebook](https://colab.research.google.com/github/google-research/text-to-text-transfer-transformer/blob/main/notebooks/t5-trivia.ipynb) created by the model developers for more examples.
</details> | {"language": ["en", "fr", "ro", "de"], "license": "apache-2.0", "tags": ["summarization", "translation"], "datasets": ["c4"], "pipeline_tag": "translation"} | translation | google-t5/t5-base | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"safetensors",
"t5",
"text2text-generation",
"summarization",
"translation",
"en",
"fr",
"ro",
"de",
"dataset:c4",
"arxiv:1805.12471",
"arxiv:1708.00055",
"arxiv:1704.05426",
"arxiv:1606.05250",
"arxiv:1808.09121",
"arxiv:1810.12885",
"arxiv:1905.10044",
"arxiv:1910.09700",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1805.12471",
"1708.00055",
"1704.05426",
"1606.05250",
"1808.09121",
"1810.12885",
"1905.10044",
"1910.09700"
] | [
"en",
"fr",
"ro",
"de"
] | TAGS
#transformers #pytorch #tf #jax #rust #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us
|
# Model Card for T5 Base
!model image
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training Details
5. Evaluation
6. Environmental Impact
7. Citation
8. Model Card Authors
9. How To Get Started With the Model
# Model Details
## Model Description
The developers of the Text-To-Text Transfer Transformer (T5) write:
> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.
T5-Base is the checkpoint with 220 million parameters.
- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo
- Model type: Language model
- Language(s) (NLP): English, French, Romanian, German
- License: Apache 2.0
- Related Models: All T5 Checkpoints
- Resources for more information:
- Research paper
- Google's T5 Blog Post
- GitHub Repo
- Hugging Face T5 Docs
# Uses
## Direct Use and Downstream Use
The developers write in a blog post that the model:
> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.
See the blog post and research paper for further details.
## Out-of-Scope Use
More information needed.
# Bias, Risks, and Limitations
More information needed.
## Recommendations
More information needed.
# Training Details
## Training Data
The model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.
The model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).
Thereby, the following datasets were being used for (1.) and (2.):
1. Datasets used for Unsupervised denoising objective:
- C4
- Wiki-DPR
2. Datasets used for Supervised text-to-text language modeling objective
- Sentence acceptability judgment
- CoLA Warstadt et al., 2018
- Sentiment analysis
- SST-2 Socher et al., 2013
- Paraphrasing/sentence similarity
- MRPC Dolan and Brockett, 2005
- STS-B Ceret al., 2017
- QQP Iyer et al., 2017
- Natural language inference
- MNLI Williams et al., 2017
- QNLI Rajpurkar et al.,2016
- RTE Dagan et al., 2005
- CB De Marneff et al., 2019
- Sentence completion
- COPA Roemmele et al., 2011
- Word sense disambiguation
- WIC Pilehvar and Camacho-Collados, 2018
- Question answering
- MultiRC Khashabi et al., 2018
- ReCoRD Zhang et al., 2018
- BoolQ Clark et al., 2019
## Training Procedure
In their abstract, the model developers write:
> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks.
The framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.
# Evaluation
## Testing Data, Factors & Metrics
The developers evaluated the model on 24 tasks, see the research paper for full details.
## Results
For full results for T5-Base, see the research paper, Table 14.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: Google Cloud TPU Pods
- Hours used: More information needed
- Cloud Provider: GCP
- Compute Region: More information needed
- Carbon Emitted: More information needed
BibTeX:
APA:
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
See the Hugging Face T5 docs and a Colab Notebook created by the model developers for more examples.
</details> | [
"# Model Card for T5 Base\n\n!model image",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-Base is the checkpoint with 220 million parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs",
"# Uses",
"## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.",
"## Out-of-Scope Use\n\nMore information needed.",
"# Bias, Risks, and Limitations\n\nMore information needed.",
"## Recommendations\n\nMore information needed.",
"# Training Details",
"## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019",
"## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe developers evaluated the model on 24 tasks, see the research paper for full details.",
"## Results \n\nFor full results for T5-Base, see the research paper, Table 14.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Google Cloud TPU Pods\n- Hours used: More information needed\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\nSee the Hugging Face T5 docs and a Colab Notebook created by the model developers for more examples.\n</details>"
] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n",
"# Model Card for T5 Base\n\n!model image",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-Base is the checkpoint with 220 million parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs",
"# Uses",
"## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.",
"## Out-of-Scope Use\n\nMore information needed.",
"# Bias, Risks, and Limitations\n\nMore information needed.",
"## Recommendations\n\nMore information needed.",
"# Training Details",
"## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019",
"## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe developers evaluated the model on 24 tasks, see the research paper for full details.",
"## Results \n\nFor full results for T5-Base, see the research paper, Table 14.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Google Cloud TPU Pods\n- Hours used: More information needed\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\nSee the Hugging Face T5 docs and a Colab Notebook created by the model developers for more examples.\n</details>"
] | [
162,
10,
47,
3,
248,
3,
116,
12,
14,
9,
3,
331,
126,
3,
31,
18,
161,
18,
66
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n# Model Card for T5 Base\n\n!model image# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model# Model Details## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-Base is the checkpoint with 220 million parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs# Uses",
"passage: ## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.## Out-of-Scope Use\n\nMore information needed.# Bias, Risks, and Limitations\n\nMore information needed.## Recommendations\n\nMore information needed.# Training Details## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.# Evaluation"
] | [
-0.06243840605020523,
0.11225644499063492,
-0.0036893952637910843,
0.014238277450203896,
0.0889221727848053,
-0.012128209695219994,
0.07756514102220535,
0.07016602903604507,
0.004837243817746639,
0.08246035873889923,
-0.00011451356112957001,
-0.011304195038974285,
0.10869331657886505,
0.13350188732147217,
0.01776500791311264,
-0.19321811199188232,
0.05243565887212753,
-0.09460929781198502,
-0.032240040600299835,
0.09249869734048843,
0.10748524963855743,
-0.05387938767671585,
0.06375167518854141,
-0.005697162821888924,
-0.02753235027194023,
-0.02043193206191063,
-0.0269075408577919,
-0.02884574607014656,
0.03040107525885105,
0.07454316318035126,
0.0964837595820427,
0.040301673114299774,
0.07336953282356262,
-0.20621255040168762,
0.021855853497982025,
0.1003175750374794,
-0.00683167390525341,
0.03804203122854233,
0.06083199381828308,
-0.025894133374094963,
0.14174772799015045,
-0.10787241160869598,
0.07124648988246918,
0.07777367532253265,
-0.09862704575061798,
-0.08791972696781158,
-0.08365649729967117,
0.09866008907556534,
0.11671031266450882,
0.04685589671134949,
-0.019833317026495934,
0.05019490048289299,
0.008410834707319736,
0.0350768081843853,
0.06646030396223068,
-0.14160755276679993,
-0.05280012637376785,
0.025734037160873413,
0.024332931265234947,
0.06415507197380066,
-0.07612114399671555,
0.016929462552070618,
0.02285153418779373,
-0.007361721247434616,
0.01580360345542431,
-0.0069280220195651054,
0.10525478422641754,
-0.018738258630037308,
-0.10880248248577118,
-0.031215203925967216,
0.14261192083358765,
0.013414746150374413,
-0.09862300008535385,
-0.13146215677261353,
-0.06750110536813736,
0.01793282851576805,
-0.009475627914071083,
-0.04131411015987396,
0.013953223824501038,
0.006474662572145462,
0.08664242923259735,
-0.07439465820789337,
-0.09129203855991364,
-0.006319029722362757,
-0.02969091385602951,
0.11665235459804535,
0.009444299153983593,
0.039703428745269775,
-0.025856731459498405,
0.10856363922357559,
-0.013164013624191284,
-0.10604961216449738,
-0.05485698580741882,
-0.07480892539024353,
-0.1230972409248352,
-0.029121745377779007,
0.00837894156575203,
-0.058658383786678314,
-0.0034973621368408203,
0.14990508556365967,
0.03798491135239601,
0.048642612993717194,
-0.02787395380437374,
0.00444788858294487,
0.06554833054542542,
0.1283091902732849,
-0.006682733539491892,
-0.1310325562953949,
0.029787646606564522,
0.018546124920248985,
0.01720113307237625,
-0.03928041458129883,
0.008215653710067272,
-0.014177444390952587,
-0.0343431681394577,
0.07552582025527954,
0.0832037478685379,
0.042049843817949295,
-0.02860264480113983,
-0.057538412511348724,
0.14167070388793945,
-0.16110152006149292,
-0.0025862446054816246,
0.03832364082336426,
-0.009654060006141663,
0.07538263499736786,
0.0683385357260704,
-0.009936540387570858,
-0.0707811638712883,
0.0320611409842968,
-0.05493191257119179,
-0.03246791660785675,
-0.08012981712818146,
-0.08475474268198013,
0.02318965643644333,
0.0033397823572158813,
-0.07698598504066467,
-0.07071036845445633,
-0.14936882257461548,
-0.09530812501907349,
0.04943392425775528,
-0.031592175364494324,
-0.036700498312711716,
-0.02111157961189747,
-0.025624889880418777,
0.0054470631293952465,
0.026049023494124413,
-0.05898279696702957,
-0.0171554833650589,
0.013006302528083324,
-0.024371402338147163,
0.04287223517894745,
0.027551831677556038,
0.018428023904561996,
-0.05695607513189316,
0.03275192156434059,
-0.18077409267425537,
0.13074856996536255,
-0.09783640503883362,
0.04268666356801987,
-0.1119864210486412,
0.012653665617108345,
0.04836533963680267,
0.02647632174193859,
0.0014744463842362165,
0.14525198936462402,
-0.2207028567790985,
-0.037238091230392456,
0.16140197217464447,
-0.15362079441547394,
-0.04160968214273453,
0.060669392347335815,
-0.029958609491586685,
0.09777317941188812,
0.09747102856636047,
0.02096019685268402,
0.15371295809745789,
-0.08708633482456207,
-0.0071979183703660965,
-0.05191680043935776,
0.004134255461394787,
0.10903730988502502,
0.06068902462720871,
-0.038388948887586594,
-0.024101607501506805,
0.04036660119891167,
-0.09590821713209152,
-0.04986352473497391,
0.006493505090475082,
-0.05855938792228699,
0.01365366205573082,
-0.03451027348637581,
0.006692920345813036,
-0.023738320916891098,
-0.05231516808271408,
-0.009144674055278301,
-0.10115398466587067,
0.01054936833679676,
0.09129606187343597,
-0.043387193232774734,
0.02309379354119301,
-0.07337763905525208,
0.002348199486732483,
-0.012181645259261131,
0.010009003803133965,
-0.1295005828142166,
-0.10681504756212234,
0.029186543077230453,
-0.09840256720781326,
0.08088149130344391,
0.04404285550117493,
0.02536599151790142,
0.05481135472655296,
-0.02806037850677967,
0.0013109471183270216,
-0.007718157023191452,
-0.0021510394290089607,
-0.015583178028464317,
-0.15107472240924835,
-0.012335125356912613,
-0.04754984378814697,
0.1146203950047493,
-0.16907769441604614,
0.034128107130527496,
0.03173204883933067,
0.09192625433206558,
0.03285115957260132,
-0.05064241215586662,
0.008691776543855667,
-0.02769744209945202,
-0.00848912913352251,
-0.03533850982785225,
0.01249578408896923,
0.010949073359370232,
-0.03572645038366318,
0.052064068615436554,
-0.1539001762866974,
-0.13891500234603882,
0.0529477521777153,
0.08853054791688919,
-0.11410984396934509,
-0.008698908612132072,
-0.037614718079566956,
-0.016777019947767258,
-0.06880791485309601,
-0.05882678180932999,
0.12230108678340912,
0.036544281989336014,
0.0635099858045578,
-0.07844338566064835,
-0.053534574806690216,
-0.013739943504333496,
-0.0061592720448970795,
-0.005602991208434105,
0.07065603882074356,
0.04376416280865669,
-0.10860612988471985,
0.05877334624528885,
0.0515444278717041,
0.021971914917230606,
0.16271239519119263,
-0.011602281592786312,
-0.0683843195438385,
-0.030637364834547043,
0.01779833436012268,
0.010958496481180191,
0.06833036988973618,
0.006014373153448105,
0.02143475040793419,
0.04635804891586304,
-0.00019890302792191505,
0.030000008642673492,
-0.068650022149086,
0.0419391430914402,
0.028572961688041687,
-0.02606762945652008,
-0.06734625995159149,
-0.02200651541352272,
-0.0025594313628971577,
0.0884542316198349,
0.013797049410641193,
0.08626511693000793,
-0.017870552837848663,
-0.05998664349317551,
-0.11934225261211395,
0.12782979011535645,
-0.10794462263584137,
-0.18513223528862,
-0.1194736436009407,
0.0543072447180748,
-0.05896446853876114,
0.0012663248926401138,
0.007293396629393101,
-0.05994493514299393,
-0.09968326985836029,
-0.09147258847951889,
0.058636561036109924,
0.021836716681718826,
-0.06452451646327972,
0.008589719422161579,
0.026143290102481842,
-0.007477716542780399,
-0.11041586846113205,
-0.00326744606718421,
0.010995540767908096,
-0.07973993569612503,
-0.008280239067971706,
0.02253907546401024,
0.05528420954942703,
0.1336381435394287,
-0.007186084520071745,
-0.02118496596813202,
0.017642885446548462,
0.16487568616867065,
-0.0898795872926712,
0.14053672552108765,
0.13306613266468048,
-0.06017104536294937,
0.07109150290489197,
0.16486981511116028,
0.016208507120609283,
-0.023786628618836403,
0.021274499595165253,
0.031036462634801865,
-0.054769255220890045,
-0.23915378749370575,
-0.08081498742103577,
-0.06225423142313957,
0.011458991095423698,
0.026652799919247627,
0.031638484448194504,
-0.00014973804354667664,
0.034104689955711365,
-0.09852775931358337,
-0.052491314709186554,
0.09816748648881912,
0.10776687413454056,
0.05017967149615288,
0.0025563184171915054,
0.08320087939500809,
-0.07833977043628693,
0.025106459856033325,
0.10147572308778763,
-0.0199148990213871,
0.17193923890590668,
0.009900799952447414,
0.09554413706064224,
0.0684044286608696,
0.012217729352414608,
0.056225381791591644,
0.06785378605127335,
-0.004472569562494755,
0.03487035632133484,
-0.02793971262872219,
-0.08219338953495026,
-0.05544696003198624,
0.09971146285533905,
-0.02245390973985195,
-0.03713337704539299,
-0.021930165588855743,
-0.03172740712761879,
0.04259848967194557,
0.1429043412208557,
0.039246685802936554,
-0.11605139076709747,
-0.06357532739639282,
0.06049259379506111,
-0.05559820681810379,
-0.07585722208023071,
0.0071843890473246574,
0.041414931416511536,
-0.1368640959262848,
0.10384882241487503,
-0.007027647458016872,
0.09585483372211456,
-0.04600648954510689,
-0.01590242236852646,
0.0051717860624194145,
0.0819339007139206,
-0.02415275014936924,
0.04552876576781273,
-0.12381039559841156,
0.09014832973480225,
0.0006637144833803177,
0.04946243017911911,
-0.0460602268576622,
0.053636834025382996,
0.014841224066913128,
0.040923167020082474,
0.10629738867282867,
0.024827882647514343,
-0.13094159960746765,
-0.026466280221939087,
-0.04793811962008476,
0.03332795947790146,
0.06397030502557755,
-0.12309696525335312,
0.09491147100925446,
-0.03139810264110565,
-0.0036343391984701157,
-0.024511244148015976,
0.012317177839577198,
-0.11918021738529205,
-0.17766711115837097,
0.05057276040315628,
-0.10616627335548401,
0.023410655558109283,
-0.05120161920785904,
-0.019891005009412766,
0.0005379542708396912,
0.19159914553165436,
-0.12822341918945312,
-0.11330143362283707,
-0.12340839207172394,
-0.08257456868886948,
0.08801664412021637,
-0.08165641129016876,
0.0276747215539217,
-0.027123190462589264,
0.11933808028697968,
-0.024685457348823547,
-0.08199992775917053,
0.011909710243344307,
-0.09271883964538574,
-0.1595357060432434,
-0.04222063720226288,
0.12696576118469238,
0.09546341001987457,
0.02295510284602642,
0.02089116908609867,
0.022925613448023796,
-0.002622331492602825,
-0.11516714841127396,
-0.01960066705942154,
0.1839369237422943,
-0.004806486424058676,
0.05573025345802307,
-0.06509649753570557,
-0.1351415365934372,
-0.08267378807067871,
-0.0373559296131134,
0.03681341931223869,
0.1700933873653412,
-0.028092442080378532,
0.17627456784248352,
0.14105166494846344,
-0.09506016969680786,
-0.198994442820549,
-0.03621765971183777,
0.05471710488200188,
0.009051000699400902,
0.03536882624030113,
-0.1568131446838379,
0.07530491054058075,
-0.005730937700718641,
-0.007582502905279398,
0.032859768718481064,
-0.11866693943738937,
-0.11004520952701569,
0.0784992128610611,
0.003035435453057289,
-0.0036694668233394623,
-0.10495752096176147,
-0.04646064341068268,
-0.05526064336299896,
-0.13323597609996796,
0.18064263463020325,
-0.04420053958892822,
0.027583934366703033,
0.02719832770526409,
0.02859438583254814,
0.04517532140016556,
-0.03084414266049862,
0.14630886912345886,
0.010301467031240463,
0.021303435787558556,
-0.08013419061899185,
0.004411329980939627,
0.03892803192138672,
-0.05751379206776619,
0.06299743056297302,
0.00979116465896368,
0.05251803994178772,
-0.085995614528656,
-0.06324988603591919,
-0.06406278908252716,
0.03418305516242981,
-0.07744607329368591,
-0.05577060952782631,
-0.054941289126873016,
0.0814150869846344,
0.10939894616603851,
-0.023039652034640312,
-0.010937804356217384,
-0.06567837297916412,
0.053345970809459686,
0.18017368018627167,
0.12552563846111298,
0.09090135991573334,
-0.03083142824470997,
-0.027419237419962883,
-0.015502202324569225,
0.04875175282359123,
-0.15461809933185577,
0.05283714085817337,
0.07139965891838074,
0.03126741945743561,
0.0871507078409195,
-0.006723463535308838,
-0.12995484471321106,
-0.02634252980351448,
0.06357132643461227,
-0.07783101499080658,
-0.15309330821037292,
-0.027843136340379715,
-0.01597350649535656,
-0.07837444543838501,
-0.045442789793014526,
0.12876161932945251,
-0.02462124451994896,
-0.01619350165128708,
0.015500742010772228,
0.07478249818086624,
0.010034666396677494,
0.05814941227436066,
0.0007504635723307729,
0.039467208087444305,
-0.075533926486969,
0.06659610569477081,
0.07846613228321075,
-0.041597068309783936,
0.005078623071312904,
0.11201171576976776,
-0.08281390368938446,
-0.02992219850420952,
-0.018390771001577377,
0.07171101868152618,
-0.07405401766300201,
-0.01820124313235283,
0.030184991657733917,
-0.09198065847158432,
0.005860462319105864,
0.10843320190906525,
-0.002420516451820731,
0.010936453007161617,
-0.0026406627148389816,
0.024002159014344215,
-0.02964836359024048,
0.09234298020601273,
0.07473796606063843,
-0.006640245206654072,
-0.03761148452758789,
0.07941587269306183,
-0.0016167033463716507,
0.016500093042850494,
-0.00842204224318266,
-0.024992145597934723,
-0.0915205329656601,
-0.027395978569984436,
-0.15830129384994507,
0.02747661992907524,
-0.04942883551120758,
0.011102089658379555,
0.00003131851553916931,
-0.03215091675519943,
-0.015942884609103203,
0.005946731194853783,
-0.04924304783344269,
-0.037275929003953934,
-0.03790249302983284,
0.07764333486557007,
-0.11154498159885406,
0.018719419836997986,
0.10399770736694336,
-0.08871062099933624,
0.06597919017076492,
0.0028529660776257515,
-0.021569587290287018,
0.05492863059043884,
-0.09331595152616501,
0.02841418795287609,
-0.04737553372979164,
0.026076320558786392,
0.0034812912344932556,
-0.10138817131519318,
0.006389671936631203,
-0.006997738964855671,
-0.06380221992731094,
-0.011426527053117752,
0.04229695722460747,
-0.0799860954284668,
0.05111641064286232,
0.031879864633083344,
-0.06609915941953659,
-0.0636289045214653,
0.013147938996553421,
0.013404492288827896,
0.049134932458400726,
0.08612725883722305,
-0.04883858188986778,
0.08240435272455215,
-0.15292519330978394,
-0.015733053907752037,
0.03573158383369446,
0.022318333387374878,
0.029572907835245132,
-0.049244474619627,
0.04834328591823578,
-0.01646563410758972,
0.08477345108985901,
-0.01570059545338154,
0.020779192447662354,
0.047984689474105835,
-0.021792907267808914,
-0.07612363994121552,
0.02315918542444706,
0.05867941305041313,
0.01916676014661789,
0.025731462985277176,
-0.010508241131901741,
-0.06074219197034836,
-0.049538835883140564,
-0.10498666763305664,
0.1469118297100067,
0.10716339945793152,
0.0433613583445549,
0.012998335994780064,
0.010779449716210365,
-0.060249850153923035,
-0.021220510825514793,
0.0271565243601799,
-0.047012053430080414,
0.0022839736193418503,
-0.06020838022232056,
0.05610009282827377,
0.14010381698608398,
-0.11931511759757996,
0.11319588869810104,
-0.01931191235780716,
-0.05392034351825714,
-0.11018335819244385,
-0.2019399106502533,
-0.03699265420436859,
-0.020748822018504143,
-0.00397031893953681,
-0.09537525475025177,
0.06768075376749039,
0.022964198142290115,
0.017484866082668304,
-0.015732964500784874,
0.06061309203505516,
-0.09068082273006439,
-0.1093212217092514,
0.044786617159843445,
0.04636051133275032,
0.04479316249489784,
0.07337026298046112,
0.01796555146574974,
0.019614266231656075,
0.0895354151725769,
0.03764253109693527,
0.08881065994501114,
0.032803360372781754,
0.026642214506864548,
-0.013823751360177994,
-0.07641004025936127,
-0.004601867403835058,
-0.017884505912661552,
0.012348633259534836,
0.1720927655696869,
0.034046921879053116,
-0.01043190062046051,
0.014349352568387985,
0.19984397292137146,
-0.036010436713695526,
-0.10630767047405243,
-0.15629160404205322,
0.10834024846553802,
-0.017855962738394737,
0.015055708587169647,
0.034526463598012924,
-0.11836341768503189,
-0.01800007000565529,
0.1461166888475418,
0.1594873070716858,
-0.006512001156806946,
0.020789993926882744,
-0.027079198509454727,
0.015716517344117165,
0.013587893918156624,
0.06891243159770966,
-0.004871336743235588,
0.2586626410484314,
-0.0387948676943779,
0.10019150376319885,
0.006050928495824337,
-0.028992295265197754,
-0.042305316776037216,
0.15029358863830566,
-0.03769581764936447,
-0.016308076679706573,
-0.055102065205574036,
0.09008128941059113,
-0.05062425136566162,
-0.27488985657691956,
-0.013587282970547676,
-0.0378127321600914,
-0.09333156049251556,
-0.01925886794924736,
0.033243611454963684,
0.007267252542078495,
0.02136847749352455,
0.03174601495265961,
-0.0410926453769207,
0.23154236376285553,
0.009023252874612808,
-0.03127255663275719,
-0.026190083473920822,
0.1024663969874382,
-0.06518551707267761,
0.14240512251853943,
0.031600117683410645,
0.06023789197206497,
0.07399304211139679,
-0.0008223215118050575,
-0.09832863509654999,
0.036062706261873245,
0.026764390990138054,
-0.07966703921556473,
0.01708194799721241,
0.17056801915168762,
-0.02108747512102127,
0.0332796536386013,
0.10426206141710281,
-0.04673600569367409,
0.01833031326532364,
0.015118865296244621,
-0.038050033152103424,
-0.08279959857463837,
0.12346597015857697,
-0.10505211353302002,
0.1346379518508911,
0.13989832997322083,
-0.031870558857917786,
0.02847735956311226,
-0.06286609172821045,
0.04370363801717758,
-0.022503692656755447,
0.08715487271547318,
0.01745782233774662,
-0.10797758400440216,
0.0009506354108452797,
0.0023880372755229473,
0.09508132934570312,
-0.19270475208759308,
-0.05038336664438248,
0.017678413540124893,
-0.014863588847219944,
-0.027090027928352356,
0.13197220861911774,
0.052915580570697784,
0.00019561825320124626,
-0.024469131603837013,
-0.10432977229356766,
0.020312976092100143,
0.08760162442922592,
-0.06215345859527588,
-0.03288058564066887
] |
null | null | transformers |
# Model Card for T5 Large
![model image](https://camo.githubusercontent.com/623b4dea0b653f2ad3f36c71ebfe749a677ac0a1/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f343030362f312a44304a31674e51663876727255704b657944387750412e706e67)
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training Details](#training-details)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Citation](#citation)
8. [Model Card Authors](#model-card-authors)
9. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
The developers of the Text-To-Text Transfer Transformer (T5) [write](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html):
> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.
T5-Large is the checkpoint with 770 million parameters.
- **Developed by:** Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See [associated paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) and [GitHub repo](https://github.com/google-research/text-to-text-transfer-transformer#released-model-checkpoints)
- **Model type:** Language model
- **Language(s) (NLP):** English, French, Romanian, German
- **License:** Apache 2.0
- **Related Models:** [All T5 Checkpoints](https://huggingface.co/models?search=t5)
- **Resources for more information:**
- [Research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf)
- [Google's T5 Blog Post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html)
- [GitHub Repo](https://github.com/google-research/text-to-text-transfer-transformer)
- [Hugging Face T5 Docs](https://huggingface.co/docs/transformers/model_doc/t5)
# Uses
## Direct Use and Downstream Use
The developers write in a [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) that the model:
> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.
See the [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) and [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
## Out-of-Scope Use
More information needed.
# Bias, Risks, and Limitations
More information needed.
## Recommendations
More information needed.
# Training Details
## Training Data
The model is pre-trained on the [Colossal Clean Crawled Corpus (C4)](https://www.tensorflow.org/datasets/catalog/c4), which was developed and released in the context of the same [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) as T5.
The model was pre-trained on a on a **multi-task mixture of unsupervised (1.) and supervised tasks (2.)**.
Thereby, the following datasets were being used for (1.) and (2.):
1. **Datasets used for Unsupervised denoising objective**:
- [C4](https://huggingface.co/datasets/c4)
- [Wiki-DPR](https://huggingface.co/datasets/wiki_dpr)
2. **Datasets used for Supervised text-to-text language modeling objective**
- Sentence acceptability judgment
- CoLA [Warstadt et al., 2018](https://arxiv.org/abs/1805.12471)
- Sentiment analysis
- SST-2 [Socher et al., 2013](https://nlp.stanford.edu/~socherr/EMNLP2013_RNTN.pdf)
- Paraphrasing/sentence similarity
- MRPC [Dolan and Brockett, 2005](https://aclanthology.org/I05-5002)
- STS-B [Ceret al., 2017](https://arxiv.org/abs/1708.00055)
- QQP [Iyer et al., 2017](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs)
- Natural language inference
- MNLI [Williams et al., 2017](https://arxiv.org/abs/1704.05426)
- QNLI [Rajpurkar et al.,2016](https://arxiv.org/abs/1606.05250)
- RTE [Dagan et al., 2005](https://link.springer.com/chapter/10.1007/11736790_9)
- CB [De Marneff et al., 2019](https://semanticsarchive.net/Archive/Tg3ZGI2M/Marneffe.pdf)
- Sentence completion
- COPA [Roemmele et al., 2011](https://www.researchgate.net/publication/221251392_Choice_of_Plausible_Alternatives_An_Evaluation_of_Commonsense_Causal_Reasoning)
- Word sense disambiguation
- WIC [Pilehvar and Camacho-Collados, 2018](https://arxiv.org/abs/1808.09121)
- Question answering
- MultiRC [Khashabi et al., 2018](https://aclanthology.org/N18-1023)
- ReCoRD [Zhang et al., 2018](https://arxiv.org/abs/1810.12885)
- BoolQ [Clark et al., 2019](https://arxiv.org/abs/1905.10044)
## Training Procedure
In their [abstract](https://jmlr.org/papers/volume21/20-074/20-074.pdf), the model developers write:
> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks.
The framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
# Evaluation
## Testing Data, Factors & Metrics
The developers evaluated the model on 24 tasks, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for full details.
## Results
For full results for T5-Large, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf), Table 14.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** Google Cloud TPU Pods
- **Hours used:** More information needed
- **Cloud Provider:** GCP
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Citation
**BibTeX:**
```bibtex
@article{2020t5,
author = {Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu},
title = {Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer},
journal = {Journal of Machine Learning Research},
year = {2020},
volume = {21},
number = {140},
pages = {1-67},
url = {http://jmlr.org/papers/v21/20-074.html}
}
```
**APA:**
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
```python
from transformers import T5Tokenizer, T5Model
tokenizer = T5Tokenizer.from_pretrained("t5-large")
model = T5Model.from_pretrained("t5-large")
input_ids = tokenizer(
"Studies have been shown that owning a dog is good for you", return_tensors="pt"
).input_ids # Batch size 1
decoder_input_ids = tokenizer("Studies show that", return_tensors="pt").input_ids # Batch size 1
# forward pass
outputs = model(input_ids=input_ids, decoder_input_ids=decoder_input_ids)
last_hidden_states = outputs.last_hidden_state
```
See the [Hugging Face T5](https://huggingface.co/docs/transformers/model_doc/t5#transformers.T5Model) docs and a [Colab Notebook](https://colab.research.google.com/github/google-research/text-to-text-transfer-transformer/blob/main/notebooks/t5-trivia.ipynb) created by the model developers for more examples.
</details>
| {"language": ["en", "fr", "ro", "de", "multilingual"], "license": "apache-2.0", "tags": ["summarization", "translation"], "datasets": ["c4"]} | translation | google-t5/t5-large | [
"transformers",
"pytorch",
"tf",
"jax",
"safetensors",
"t5",
"text2text-generation",
"summarization",
"translation",
"en",
"fr",
"ro",
"de",
"multilingual",
"dataset:c4",
"arxiv:1805.12471",
"arxiv:1708.00055",
"arxiv:1704.05426",
"arxiv:1606.05250",
"arxiv:1808.09121",
"arxiv:1810.12885",
"arxiv:1905.10044",
"arxiv:1910.09700",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1805.12471",
"1708.00055",
"1704.05426",
"1606.05250",
"1808.09121",
"1810.12885",
"1905.10044",
"1910.09700"
] | [
"en",
"fr",
"ro",
"de",
"multilingual"
] | TAGS
#transformers #pytorch #tf #jax #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us
|
# Model Card for T5 Large
!model image
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training Details
5. Evaluation
6. Environmental Impact
7. Citation
8. Model Card Authors
9. How To Get Started With the Model
# Model Details
## Model Description
The developers of the Text-To-Text Transfer Transformer (T5) write:
> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.
T5-Large is the checkpoint with 770 million parameters.
- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo
- Model type: Language model
- Language(s) (NLP): English, French, Romanian, German
- License: Apache 2.0
- Related Models: All T5 Checkpoints
- Resources for more information:
- Research paper
- Google's T5 Blog Post
- GitHub Repo
- Hugging Face T5 Docs
# Uses
## Direct Use and Downstream Use
The developers write in a blog post that the model:
> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.
See the blog post and research paper for further details.
## Out-of-Scope Use
More information needed.
# Bias, Risks, and Limitations
More information needed.
## Recommendations
More information needed.
# Training Details
## Training Data
The model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.
The model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).
Thereby, the following datasets were being used for (1.) and (2.):
1. Datasets used for Unsupervised denoising objective:
- C4
- Wiki-DPR
2. Datasets used for Supervised text-to-text language modeling objective
- Sentence acceptability judgment
- CoLA Warstadt et al., 2018
- Sentiment analysis
- SST-2 Socher et al., 2013
- Paraphrasing/sentence similarity
- MRPC Dolan and Brockett, 2005
- STS-B Ceret al., 2017
- QQP Iyer et al., 2017
- Natural language inference
- MNLI Williams et al., 2017
- QNLI Rajpurkar et al.,2016
- RTE Dagan et al., 2005
- CB De Marneff et al., 2019
- Sentence completion
- COPA Roemmele et al., 2011
- Word sense disambiguation
- WIC Pilehvar and Camacho-Collados, 2018
- Question answering
- MultiRC Khashabi et al., 2018
- ReCoRD Zhang et al., 2018
- BoolQ Clark et al., 2019
## Training Procedure
In their abstract, the model developers write:
> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks.
The framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.
# Evaluation
## Testing Data, Factors & Metrics
The developers evaluated the model on 24 tasks, see the research paper for full details.
## Results
For full results for T5-Large, see the research paper, Table 14.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: Google Cloud TPU Pods
- Hours used: More information needed
- Cloud Provider: GCP
- Compute Region: More information needed
- Carbon Emitted: More information needed
BibTeX:
APA:
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
See the Hugging Face T5 docs and a Colab Notebook created by the model developers for more examples.
</details>
| [
"# Model Card for T5 Large\n\n!model image",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-Large is the checkpoint with 770 million parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs",
"# Uses",
"## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.",
"## Out-of-Scope Use\n\nMore information needed.",
"# Bias, Risks, and Limitations\n\nMore information needed.",
"## Recommendations\n\nMore information needed.",
"# Training Details",
"## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019",
"## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe developers evaluated the model on 24 tasks, see the research paper for full details.",
"## Results \n\nFor full results for T5-Large, see the research paper, Table 14.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Google Cloud TPU Pods\n- Hours used: More information needed\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\nSee the Hugging Face T5 docs and a Colab Notebook created by the model developers for more examples.\n</details>"
] | [
"TAGS\n#transformers #pytorch #tf #jax #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n",
"# Model Card for T5 Large\n\n!model image",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-Large is the checkpoint with 770 million parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs",
"# Uses",
"## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.",
"## Out-of-Scope Use\n\nMore information needed.",
"# Bias, Risks, and Limitations\n\nMore information needed.",
"## Recommendations\n\nMore information needed.",
"# Training Details",
"## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019",
"## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe developers evaluated the model on 24 tasks, see the research paper for full details.",
"## Results \n\nFor full results for T5-Large, see the research paper, Table 14.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Google Cloud TPU Pods\n- Hours used: More information needed\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\nSee the Hugging Face T5 docs and a Colab Notebook created by the model developers for more examples.\n</details>"
] | [
164,
10,
47,
3,
249,
3,
116,
12,
14,
9,
3,
331,
126,
3,
31,
18,
161,
18,
66
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n# Model Card for T5 Large\n\n!model image# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model# Model Details## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-Large is the checkpoint with 770 million parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs# Uses",
"passage: ## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.## Out-of-Scope Use\n\nMore information needed.# Bias, Risks, and Limitations\n\nMore information needed.## Recommendations\n\nMore information needed.# Training Details## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.# Evaluation"
] | [
-0.05684032663702965,
0.11525900661945343,
-0.0037518527824431658,
0.014211513102054596,
0.09699779748916626,
-0.013859082013368607,
0.06964454799890518,
0.07371146976947784,
0.004488014616072178,
0.07744643092155457,
0.002982325851917267,
-0.009144059382379055,
0.115821972489357,
0.13173744082450867,
0.018086493015289307,
-0.2083510458469391,
0.05035507678985596,
-0.0942121148109436,
-0.03572632744908333,
0.09074652194976807,
0.11639401316642761,
-0.05157124251127243,
0.06471030414104462,
-0.0044913385063409805,
-0.026655253022909164,
-0.013321183621883392,
-0.027005337178707123,
-0.030174851417541504,
0.023903559893369675,
0.07260452210903168,
0.09036564081907272,
0.039546459913253784,
0.07798753678798676,
-0.19954895973205566,
0.020559068769216537,
0.10096176713705063,
-0.006193649023771286,
0.03379175066947937,
0.06615785509347916,
-0.021642232313752174,
0.13713008165359497,
-0.11510664224624634,
0.07000875473022461,
0.07906237244606018,
-0.09746217727661133,
-0.07967348396778107,
-0.08953361213207245,
0.09995224326848984,
0.10954241454601288,
0.05355066433548927,
-0.019807234406471252,
0.04526878520846367,
0.008134094066917896,
0.030501948669552803,
0.072170190513134,
-0.14654557406902313,
-0.052697986364364624,
0.03736246004700661,
0.02689787745475769,
0.06391236931085587,
-0.06785446405410767,
0.013649184256792068,
0.017961231991648674,
-0.0010480508208274841,
0.0033270977437496185,
-0.011733471415936947,
0.10140050947666168,
-0.0196898952126503,
-0.11561636626720428,
-0.03212115913629532,
0.14616475999355316,
0.015240573324263096,
-0.09798754751682281,
-0.12468515336513519,
-0.06351816654205322,
0.023878851905465126,
-0.0020369011908769608,
-0.047758426517248154,
0.01768503710627556,
0.011366368271410465,
0.08839501440525055,
-0.0829676166176796,
-0.08679365366697311,
-0.0019811131060123444,
-0.027829354628920555,
0.09978392720222473,
0.010139328427612782,
0.03490358591079712,
-0.031646523624658585,
0.10437583923339844,
-0.015482813119888306,
-0.10609045624732971,
-0.0580889992415905,
-0.07821401953697205,
-0.11822956800460815,
-0.033361293375492096,
0.005614905618131161,
-0.06597155332565308,
-0.005968526005744934,
0.14622628688812256,
0.047106482088565826,
0.05292823910713196,
-0.034575749188661575,
0.005156201776117086,
0.061583805829286575,
0.1279166042804718,
-0.019180968403816223,
-0.1321396827697754,
0.029152391478419304,
0.015690596774220467,
0.0047670649364590645,
-0.03669751435518265,
-0.00014469120651483536,
-0.01684555411338806,
-0.03740786015987396,
0.07432762533426285,
0.07991238683462143,
0.03853980079293251,
-0.02373119257390499,
-0.06191686540842056,
0.12696616351604462,
-0.16472434997558594,
-0.0008473517373204231,
0.026775216683745384,
-0.01595894806087017,
0.09923860430717468,
0.06504131108522415,
-0.014705600216984749,
-0.08454588055610657,
0.025381937623023987,
-0.04737135022878647,
-0.03512789309024811,
-0.08525869995355606,
-0.08524651825428009,
0.022660033777356148,
0.003939243033528328,
-0.07521688938140869,
-0.07350561022758484,
-0.15247221291065216,
-0.10085169225931168,
0.05260471999645233,
-0.036410633474588394,
-0.04120377451181412,
-0.02137121558189392,
-0.02731166034936905,
0.003749836701899767,
0.025783760473132133,
-0.04738208279013634,
-0.012131721712648869,
0.008081494830548763,
-0.037921905517578125,
0.04329271614551544,
0.024293119087815285,
0.02210303395986557,
-0.05264824256300926,
0.02832525409758091,
-0.19673724472522736,
0.13359501957893372,
-0.08639898896217346,
0.036311935633420944,
-0.1234947070479393,
0.008592440746724606,
0.05248689651489258,
0.02732260338962078,
0.004041788633912802,
0.14264464378356934,
-0.2162356972694397,
-0.032663263380527496,
0.16214217245578766,
-0.14401361346244812,
-0.034658435732126236,
0.05898640677332878,
-0.030313577502965927,
0.1101229339838028,
0.10264136642217636,
0.012612298130989075,
0.15546268224716187,
-0.07583783566951752,
-0.0064350878819823265,
-0.05594158172607422,
0.005071797873824835,
0.11000510305166245,
0.059592124074697495,
-0.04049583151936531,
-0.03054153174161911,
0.03144588693976402,
-0.09500488638877869,
-0.048036180436611176,
0.006582076661288738,
-0.05312149226665497,
0.016021840274333954,
-0.03437278792262077,
-0.010389766655862331,
-0.026325050741434097,
-0.05022627115249634,
-0.004825961776077747,
-0.10183246433734894,
0.009830934926867485,
0.08370373398065567,
-0.041546531021595,
0.023685432970523834,
-0.0749150887131691,
0.0023767612874507904,
-0.005707902833819389,
0.012481813319027424,
-0.13231554627418518,
-0.09841826558113098,
0.02684031054377556,
-0.09461541473865509,
0.08059637993574142,
0.04200435429811478,
0.02662442997097969,
0.04444284737110138,
-0.02951396070420742,
0.005589661188423634,
-0.005050836130976677,
-0.004684216342866421,
-0.010782052762806416,
-0.1512938141822815,
-0.013435812667012215,
-0.04500889778137207,
0.10869894921779633,
-0.15867984294891357,
0.03180641680955887,
0.03165211156010628,
0.09805351495742798,
0.02793465182185173,
-0.04619360715150833,
0.008399050682783127,
-0.02791164442896843,
-0.0019690291956067085,
-0.04149005934596062,
0.006433277856558561,
0.01363448891788721,
-0.028462884947657585,
0.054526545107364655,
-0.13831481337547302,
-0.1481117457151413,
0.05376817286014557,
0.08391211926937103,
-0.11555976420640945,
0.0006174505688250065,
-0.02897612378001213,
-0.015290340408682823,
-0.07220831513404846,
-0.058818891644477844,
0.1269906461238861,
0.029156025499105453,
0.06127334013581276,
-0.07312227785587311,
-0.04876378923654556,
-0.012313302606344223,
-0.002384774386882782,
-0.000750390812754631,
0.06864885240793228,
0.058063849806785583,
-0.13814692199230194,
0.0574345737695694,
0.054072923958301544,
0.02352863922715187,
0.16132622957229614,
-0.010430317372083664,
-0.07171408832073212,
-0.026166602969169617,
0.02286226488649845,
0.011784471571445465,
0.0589987151324749,
0.0017829779535531998,
0.02017148956656456,
0.04525283724069595,
0.0017209895886480808,
0.02938852831721306,
-0.05819675326347351,
0.044670771807432175,
0.02949289232492447,
-0.023312730714678764,
-0.07009110599756241,
-0.025835810229182243,
0.0020202924497425556,
0.09080435335636139,
0.022478526458144188,
0.07380396872758865,
-0.009519906714558601,
-0.056997254490852356,
-0.11726438254117966,
0.12992146611213684,
-0.10557465255260468,
-0.18166890740394592,
-0.11898042261600494,
0.04445410892367363,
-0.049644868820905685,
-0.0017163525335490704,
0.00019496586173772812,
-0.06254096329212189,
-0.10117825865745544,
-0.08440360426902771,
0.06852260231971741,
0.016734326258301735,
-0.05899430438876152,
0.010584162548184395,
0.027152379974722862,
-0.00494370749220252,
-0.10555954277515411,
-0.004206456709653139,
0.016848109662532806,
-0.08566456288099289,
-0.012915294617414474,
0.011128438636660576,
0.05167286843061447,
0.13411875069141388,
-0.008703697472810745,
-0.01438830140978098,
0.018161844462156296,
0.16463381052017212,
-0.09403471648693085,
0.14340373873710632,
0.13451215624809265,
-0.05858301743865013,
0.06689892709255219,
0.16191920638084412,
0.013578345999121666,
-0.023296726867556572,
0.018986603245139122,
0.032927557826042175,
-0.054982125759124756,
-0.2486252784729004,
-0.07129620015621185,
-0.06248362362384796,
0.0023004189133644104,
0.034526798874139786,
0.03481380641460419,
-0.00608224980533123,
0.04166938364505768,
-0.09700554609298706,
-0.04338371753692627,
0.09607090055942535,
0.10828839987516403,
0.04755259305238724,
0.005979296751320362,
0.07937091588973999,
-0.07889163494110107,
0.024316471070051193,
0.10276403278112411,
-0.018344497308135033,
0.17391140758991241,
0.01356348767876625,
0.09384699165821075,
0.0648767352104187,
0.00555715337395668,
0.052714258432388306,
0.07156774401664734,
-0.0016512908041477203,
0.03673943877220154,
-0.028239132836461067,
-0.07635560631752014,
-0.04702245444059372,
0.0977734848856926,
-0.015066366642713547,
-0.03758085519075394,
-0.026456883177161217,
-0.020366773009300232,
0.036372214555740356,
0.15365132689476013,
0.04281845688819885,
-0.12087273597717285,
-0.056670717895030975,
0.05514165386557579,
-0.06003165245056152,
-0.08533547818660736,
0.015179125592112541,
0.044737301766872406,
-0.14217226207256317,
0.11269674450159073,
-0.008151835761964321,
0.09754611551761627,
-0.053470678627491,
-0.018811950460076332,
0.016306575387716293,
0.08351840078830719,
-0.023738257586956024,
0.045488957315683365,
-0.1376992166042328,
0.08581823855638504,
0.0006293561309576035,
0.04642543941736221,
-0.056930650025606155,
0.05487463250756264,
0.016585540026426315,
0.03266896307468414,
0.11188393831253052,
0.02489640563726425,
-0.13468720018863678,
-0.012953964062035084,
-0.043919265270233154,
0.033830977976322174,
0.06994011998176575,
-0.12295962870121002,
0.0994514524936676,
-0.032516591250896454,
-0.005074489861726761,
-0.024010684341192245,
-0.006687729619443417,
-0.12656790018081665,
-0.18137656152248383,
0.05032240226864815,
-0.10584283620119095,
0.02803325653076172,
-0.04879443347454071,
-0.02090430073440075,
0.00009582564234733582,
0.19411242008209229,
-0.12173249572515488,
-0.11364545673131943,
-0.12088779360055923,
-0.0661616176366806,
0.08557501435279846,
-0.07977062463760376,
0.03252429515123367,
-0.021208882331848145,
0.11107911169528961,
-0.023868322372436523,
-0.08800012618303299,
0.01846260018646717,
-0.0904284417629242,
-0.15688860416412354,
-0.04045756906270981,
0.12353632599115372,
0.10475419461727142,
0.02422741986811161,
0.02277197316288948,
0.018808498978614807,
0.003693369450047612,
-0.11300759017467499,
-0.01509197149425745,
0.17865914106369019,
-0.00041559990495443344,
0.0623096264898777,
-0.05451440438628197,
-0.12555380165576935,
-0.07943547517061234,
-0.03336791694164276,
0.04393879324197769,
0.14858406782150269,
-0.02464594878256321,
0.16792342066764832,
0.12936145067214966,
-0.09711521863937378,
-0.19798028469085693,
-0.025239553302526474,
0.055309735238552094,
0.011814785189926624,
0.029273174703121185,
-0.17678213119506836,
0.07332020998001099,
-0.009410321712493896,
-0.002216626424342394,
0.032357074320316315,
-0.13413166999816895,
-0.10162996500730515,
0.08236119151115417,
-0.006864908616989851,
-0.0018494613468647003,
-0.10525597631931305,
-0.042995989322662354,
-0.05263186991214752,
-0.13439351320266724,
0.17319878935813904,
-0.04881875216960907,
0.028363801538944244,
0.03281073272228241,
0.03929273039102554,
0.04308455064892769,
-0.02736007794737816,
0.14237532019615173,
0.011439695954322815,
0.012371532618999481,
-0.08593378961086273,
0.0078524025157094,
0.0428943894803524,
-0.05866190046072006,
0.06221504509449005,
0.01844630390405655,
0.04559364169836044,
-0.08845889568328857,
-0.06577228009700775,
-0.06975648552179337,
0.02941797487437725,
-0.07378602027893066,
-0.056652046740055084,
-0.05496595799922943,
0.08588457107543945,
0.11281728744506836,
-0.022864237427711487,
-0.0076750521548092365,
-0.06745237857103348,
0.04146460443735123,
0.17206400632858276,
0.13380080461502075,
0.09040145576000214,
-0.0345541387796402,
-0.022538021206855774,
-0.01756472885608673,
0.052158087491989136,
-0.14765715599060059,
0.05002330616116524,
0.07146233320236206,
0.02929115667939186,
0.0854140967130661,
-0.002282598987221718,
-0.13490629196166992,
-0.027189524844288826,
0.062416061758995056,
-0.07708649337291718,
-0.15867990255355835,
-0.03254106640815735,
-0.004951994866132736,
-0.07798609137535095,
-0.05047743767499924,
0.1349690854549408,
-0.027865508571267128,
-0.0150038693100214,
0.017206082120537758,
0.07740972936153412,
0.0022446850780397654,
0.05849095433950424,
0.004719218239188194,
0.03761391341686249,
-0.07884502410888672,
0.07249628007411957,
0.08595412969589233,
-0.04408479854464531,
0.010566461831331253,
0.11865311861038208,
-0.08073826134204865,
-0.025655927136540413,
-0.016921155154705048,
0.07128848880529404,
-0.08342813700437546,
-0.021930575370788574,
0.027590498328208923,
-0.09885939210653305,
0.017503220587968826,
0.10651984810829163,
-0.004363443702459335,
0.0032362136989831924,
-0.0005634501576423645,
0.019085804000496864,
-0.03420320153236389,
0.08221074938774109,
0.07676321268081665,
-0.00802463386207819,
-0.042894862592220306,
0.07030311226844788,
-0.007791151292622089,
0.021193847060203552,
-0.007041777018457651,
-0.023545488715171814,
-0.09616582095623016,
-0.022128434851765633,
-0.16162872314453125,
0.022753417491912842,
-0.05519954860210419,
0.008895169012248516,
0.00009970460087060928,
-0.026903346180915833,
-0.01332808006554842,
0.01102151907980442,
-0.052027273923158646,
-0.04248912259936333,
-0.03730832412838936,
0.0785708948969841,
-0.10703746974468231,
0.02189319208264351,
0.09552179276943207,
-0.09026254713535309,
0.06472493708133698,
-0.0018283557146787643,
-0.02540551871061325,
0.05021827667951584,
-0.08913648128509521,
0.015584390610456467,
-0.04669325798749924,
0.02364892140030861,
0.008760315366089344,
-0.10572721064090729,
0.011454598046839237,
-0.009442987851798534,
-0.06706932932138443,
-0.012147722765803337,
0.035223256796598434,
-0.07482883334159851,
0.05994466692209244,
0.033290278166532516,
-0.05371565371751785,
-0.05882159247994423,
0.021566521376371384,
0.014960989356040955,
0.05098360776901245,
0.08079276978969574,
-0.04690707474946976,
0.08371122181415558,
-0.14625650644302368,
-0.014392880722880363,
0.032574363052845,
0.026824157685041428,
0.04367842525243759,
-0.04845169931650162,
0.052531227469444275,
-0.014715351164340973,
0.07865744829177856,
-0.015535411424934864,
0.020617512986063957,
0.05051626265048981,
-0.025071697309613228,
-0.06950468569993973,
0.024989232420921326,
0.0483270026743412,
0.02301471307873726,
0.02091440185904503,
-0.006202521733939648,
-0.05788164585828781,
-0.04127175360918045,
-0.07965599000453949,
0.16359920799732208,
0.11124101281166077,
0.04704776778817177,
0.019923243671655655,
0.009173961356282234,
-0.06354568898677826,
-0.023364584892988205,
0.036090340465307236,
-0.034059666097164154,
0.009874203242361546,
-0.0627485066652298,
0.034660279750823975,
0.1345592588186264,
-0.11732208728790283,
0.10565026849508286,
-0.026010608300566673,
-0.05162163823843002,
-0.11269538104534149,
-0.21198806166648865,
-0.040265992283821106,
-0.022731158882379532,
-0.008416407741606236,
-0.09406663477420807,
0.07962152361869812,
0.03454984724521637,
0.02576439455151558,
-0.01482961792498827,
0.05341986566781998,
-0.09535592794418335,
-0.1142379492521286,
0.054490964859724045,
0.04362262040376663,
0.049448974430561066,
0.06832015514373779,
0.011476153507828712,
0.015020733699202538,
0.09595485031604767,
0.037504054605960846,
0.08905358612537384,
0.03650655224919319,
0.02777320332825184,
-0.013578035868704319,
-0.07114570587873459,
-0.005407969933003187,
-0.011861169710755348,
0.011028662323951721,
0.17523956298828125,
0.03343486413359642,
-0.01247637253254652,
0.013525993563234806,
0.19362542033195496,
-0.03822309523820877,
-0.11240243911743164,
-0.16258326172828674,
0.09904535114765167,
-0.009059101343154907,
0.011923626996576786,
0.03451616317033768,
-0.12094154208898544,
-0.01853853464126587,
0.14680519700050354,
0.16003328561782837,
-0.008917877450585365,
0.016500864177942276,
-0.022847816348075867,
0.01536288671195507,
0.020556332543492317,
0.07360704988241196,
-0.00014696491416543722,
0.25014203786849976,
-0.041324831545352936,
0.09518285095691681,
0.0025163013488054276,
-0.03195071965456009,
-0.04156195744872093,
0.14992733299732208,
-0.028363462537527084,
-0.014065122231841087,
-0.0481848418712616,
0.0983228087425232,
-0.058012884110212326,
-0.2710845470428467,
-0.017442913725972176,
-0.03478433936834335,
-0.09812138974666595,
-0.026089899241924286,
0.028050649911165237,
0.011446739546954632,
0.022531786933541298,
0.028187483549118042,
-0.04314957559108734,
0.23549199104309082,
0.015892285853624344,
-0.0357276126742363,
-0.03852464258670807,
0.10821791738271713,
-0.06537939608097076,
0.13991010189056396,
0.03484286367893219,
0.05240951105952263,
0.07516086846590042,
0.0025232015177607536,
-0.10534429550170898,
0.022241370752453804,
0.03118581511080265,
-0.07278633862733841,
0.01713664084672928,
0.17399567365646362,
-0.025654355064034462,
0.04365706443786621,
0.09807620197534561,
-0.04501485824584961,
0.0172639898955822,
0.008261408656835556,
-0.03324037417769432,
-0.08903995156288147,
0.12109249830245972,
-0.10933849960565567,
0.1358623057603836,
0.15332165360450745,
-0.033588945865631104,
0.03250659629702568,
-0.06395480781793594,
0.04493249952793121,
-0.0199974924325943,
0.080338254570961,
0.014774983748793602,
-0.10159757733345032,
-0.00466914614662528,
-0.012876134365797043,
0.09978960454463959,
-0.17980726063251495,
-0.04590306431055069,
0.018887147307395935,
-0.013178681023418903,
-0.033118169754743576,
0.13617801666259766,
0.04979880154132843,
0.000023614149540662766,
-0.026106564328074455,
-0.09024593234062195,
0.01561499573290348,
0.08823420107364655,
-0.06452867388725281,
-0.030453527346253395
] |
null | null | transformers |
# Model Card for T5 Small
![model image](https://camo.githubusercontent.com/623b4dea0b653f2ad3f36c71ebfe749a677ac0a1/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f343030362f312a44304a31674e51663876727255704b657944387750412e706e67)
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training Details](#training-details)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Citation](#citation)
8. [Model Card Authors](#model-card-authors)
9. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
The developers of the Text-To-Text Transfer Transformer (T5) [write](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html):
> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.
T5-Small is the checkpoint with 60 million parameters.
- **Developed by:** Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See [associated paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) and [GitHub repo](https://github.com/google-research/text-to-text-transfer-transformer#released-model-checkpoints)
- **Model type:** Language model
- **Language(s) (NLP):** English, French, Romanian, German
- **License:** Apache 2.0
- **Related Models:** [All T5 Checkpoints](https://huggingface.co/models?search=t5)
- **Resources for more information:**
- [Research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf)
- [Google's T5 Blog Post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html)
- [GitHub Repo](https://github.com/google-research/text-to-text-transfer-transformer)
- [Hugging Face T5 Docs](https://huggingface.co/docs/transformers/model_doc/t5)
# Uses
## Direct Use and Downstream Use
The developers write in a [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) that the model:
> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.
See the [blog post](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) and [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
## Out-of-Scope Use
More information needed.
# Bias, Risks, and Limitations
More information needed.
## Recommendations
More information needed.
# Training Details
## Training Data
The model is pre-trained on the [Colossal Clean Crawled Corpus (C4)](https://www.tensorflow.org/datasets/catalog/c4), which was developed and released in the context of the same [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) as T5.
The model was pre-trained on a on a **multi-task mixture of unsupervised (1.) and supervised tasks (2.)**.
Thereby, the following datasets were being used for (1.) and (2.):
1. **Datasets used for Unsupervised denoising objective**:
- [C4](https://huggingface.co/datasets/c4)
- [Wiki-DPR](https://huggingface.co/datasets/wiki_dpr)
2. **Datasets used for Supervised text-to-text language modeling objective**
- Sentence acceptability judgment
- CoLA [Warstadt et al., 2018](https://arxiv.org/abs/1805.12471)
- Sentiment analysis
- SST-2 [Socher et al., 2013](https://nlp.stanford.edu/~socherr/EMNLP2013_RNTN.pdf)
- Paraphrasing/sentence similarity
- MRPC [Dolan and Brockett, 2005](https://aclanthology.org/I05-5002)
- STS-B [Ceret al., 2017](https://arxiv.org/abs/1708.00055)
- QQP [Iyer et al., 2017](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs)
- Natural language inference
- MNLI [Williams et al., 2017](https://arxiv.org/abs/1704.05426)
- QNLI [Rajpurkar et al.,2016](https://arxiv.org/abs/1606.05250)
- RTE [Dagan et al., 2005](https://link.springer.com/chapter/10.1007/11736790_9)
- CB [De Marneff et al., 2019](https://semanticsarchive.net/Archive/Tg3ZGI2M/Marneffe.pdf)
- Sentence completion
- COPA [Roemmele et al., 2011](https://www.researchgate.net/publication/221251392_Choice_of_Plausible_Alternatives_An_Evaluation_of_Commonsense_Causal_Reasoning)
- Word sense disambiguation
- WIC [Pilehvar and Camacho-Collados, 2018](https://arxiv.org/abs/1808.09121)
- Question answering
- MultiRC [Khashabi et al., 2018](https://aclanthology.org/N18-1023)
- ReCoRD [Zhang et al., 2018](https://arxiv.org/abs/1810.12885)
- BoolQ [Clark et al., 2019](https://arxiv.org/abs/1905.10044)
## Training Procedure
In their [abstract](https://jmlr.org/papers/volume21/20-074/20-074.pdf), the model developers write:
> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks.
The framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for further details.
# Evaluation
## Testing Data, Factors & Metrics
The developers evaluated the model on 24 tasks, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf) for full details.
## Results
For full results for T5-small, see the [research paper](https://jmlr.org/papers/volume21/20-074/20-074.pdf), Table 14.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** Google Cloud TPU Pods
- **Hours used:** More information needed
- **Cloud Provider:** GCP
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Citation
**BibTeX:**
```bibtex
@article{2020t5,
author = {Colin Raffel and Noam Shazeer and Adam Roberts and Katherine Lee and Sharan Narang and Michael Matena and Yanqi Zhou and Wei Li and Peter J. Liu},
title = {Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer},
journal = {Journal of Machine Learning Research},
year = {2020},
volume = {21},
number = {140},
pages = {1-67},
url = {http://jmlr.org/papers/v21/20-074.html}
}
```
**APA:**
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
```python
from transformers import T5Tokenizer, T5Model
tokenizer = T5Tokenizer.from_pretrained("t5-small")
model = T5Model.from_pretrained("t5-small")
input_ids = tokenizer(
"Studies have been shown that owning a dog is good for you", return_tensors="pt"
).input_ids # Batch size 1
decoder_input_ids = tokenizer("Studies show that", return_tensors="pt").input_ids # Batch size 1
# forward pass
outputs = model(input_ids=input_ids, decoder_input_ids=decoder_input_ids)
last_hidden_states = outputs.last_hidden_state
```
See the [Hugging Face T5](https://huggingface.co/docs/transformers/model_doc/t5#transformers.T5Model) docs and a [Colab Notebook](https://colab.research.google.com/github/google-research/text-to-text-transfer-transformer/blob/main/notebooks/t5-trivia.ipynb) created by the model developers for more examples.
</details>
| {"language": ["en", "fr", "ro", "de", "multilingual"], "license": "apache-2.0", "tags": ["summarization", "translation"], "datasets": ["c4"]} | translation | google-t5/t5-small | [
"transformers",
"pytorch",
"tf",
"jax",
"rust",
"onnx",
"safetensors",
"t5",
"text2text-generation",
"summarization",
"translation",
"en",
"fr",
"ro",
"de",
"multilingual",
"dataset:c4",
"arxiv:1805.12471",
"arxiv:1708.00055",
"arxiv:1704.05426",
"arxiv:1606.05250",
"arxiv:1808.09121",
"arxiv:1810.12885",
"arxiv:1905.10044",
"arxiv:1910.09700",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1805.12471",
"1708.00055",
"1704.05426",
"1606.05250",
"1808.09121",
"1810.12885",
"1905.10044",
"1910.09700"
] | [
"en",
"fr",
"ro",
"de",
"multilingual"
] | TAGS
#transformers #pytorch #tf #jax #rust #onnx #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us
|
# Model Card for T5 Small
!model image
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training Details
5. Evaluation
6. Environmental Impact
7. Citation
8. Model Card Authors
9. How To Get Started With the Model
# Model Details
## Model Description
The developers of the Text-To-Text Transfer Transformer (T5) write:
> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.
T5-Small is the checkpoint with 60 million parameters.
- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo
- Model type: Language model
- Language(s) (NLP): English, French, Romanian, German
- License: Apache 2.0
- Related Models: All T5 Checkpoints
- Resources for more information:
- Research paper
- Google's T5 Blog Post
- GitHub Repo
- Hugging Face T5 Docs
# Uses
## Direct Use and Downstream Use
The developers write in a blog post that the model:
> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.
See the blog post and research paper for further details.
## Out-of-Scope Use
More information needed.
# Bias, Risks, and Limitations
More information needed.
## Recommendations
More information needed.
# Training Details
## Training Data
The model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.
The model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).
Thereby, the following datasets were being used for (1.) and (2.):
1. Datasets used for Unsupervised denoising objective:
- C4
- Wiki-DPR
2. Datasets used for Supervised text-to-text language modeling objective
- Sentence acceptability judgment
- CoLA Warstadt et al., 2018
- Sentiment analysis
- SST-2 Socher et al., 2013
- Paraphrasing/sentence similarity
- MRPC Dolan and Brockett, 2005
- STS-B Ceret al., 2017
- QQP Iyer et al., 2017
- Natural language inference
- MNLI Williams et al., 2017
- QNLI Rajpurkar et al.,2016
- RTE Dagan et al., 2005
- CB De Marneff et al., 2019
- Sentence completion
- COPA Roemmele et al., 2011
- Word sense disambiguation
- WIC Pilehvar and Camacho-Collados, 2018
- Question answering
- MultiRC Khashabi et al., 2018
- ReCoRD Zhang et al., 2018
- BoolQ Clark et al., 2019
## Training Procedure
In their abstract, the model developers write:
> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks.
The framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.
# Evaluation
## Testing Data, Factors & Metrics
The developers evaluated the model on 24 tasks, see the research paper for full details.
## Results
For full results for T5-small, see the research paper, Table 14.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: Google Cloud TPU Pods
- Hours used: More information needed
- Cloud Provider: GCP
- Compute Region: More information needed
- Carbon Emitted: More information needed
BibTeX:
APA:
- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
See the Hugging Face T5 docs and a Colab Notebook created by the model developers for more examples.
</details>
| [
"# Model Card for T5 Small\n\n!model image",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-Small is the checkpoint with 60 million parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs",
"# Uses",
"## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.",
"## Out-of-Scope Use\n\nMore information needed.",
"# Bias, Risks, and Limitations\n\nMore information needed.",
"## Recommendations\n\nMore information needed.",
"# Training Details",
"## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019",
"## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe developers evaluated the model on 24 tasks, see the research paper for full details.",
"## Results \n\nFor full results for T5-small, see the research paper, Table 14.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Google Cloud TPU Pods\n- Hours used: More information needed\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\nSee the Hugging Face T5 docs and a Colab Notebook created by the model developers for more examples.\n</details>"
] | [
"TAGS\n#transformers #pytorch #tf #jax #rust #onnx #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n",
"# Model Card for T5 Small\n\n!model image",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-Small is the checkpoint with 60 million parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs",
"# Uses",
"## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.",
"## Out-of-Scope Use\n\nMore information needed.",
"# Bias, Risks, and Limitations\n\nMore information needed.",
"## Recommendations\n\nMore information needed.",
"# Training Details",
"## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019",
"## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe developers evaluated the model on 24 tasks, see the research paper for full details.",
"## Results \n\nFor full results for T5-small, see the research paper, Table 14.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: Google Cloud TPU Pods\n- Hours used: More information needed\n- Cloud Provider: GCP\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., ... & Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21(140), 1-67.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\nSee the Hugging Face T5 docs and a Colab Notebook created by the model developers for more examples.\n</details>"
] | [
170,
10,
47,
3,
248,
3,
116,
12,
14,
9,
3,
331,
126,
3,
31,
18,
161,
18,
66
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #rust #onnx #safetensors #t5 #text2text-generation #summarization #translation #en #fr #ro #de #multilingual #dataset-c4 #arxiv-1805.12471 #arxiv-1708.00055 #arxiv-1704.05426 #arxiv-1606.05250 #arxiv-1808.09121 #arxiv-1810.12885 #arxiv-1905.10044 #arxiv-1910.09700 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n# Model Card for T5 Small\n\n!model image# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training Details\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model# Model Details## Model Description\n\nThe developers of the Text-To-Text Transfer Transformer (T5) write: \n\n> With T5, we propose reframing all NLP tasks into a unified text-to-text-format where the input and output are always text strings, in contrast to BERT-style models that can only output either a class label or a span of the input. Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task.\n\nT5-Small is the checkpoint with 60 million parameters. \n\n- Developed by: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu. See associated paper and GitHub repo\n- Model type: Language model\n- Language(s) (NLP): English, French, Romanian, German\n- License: Apache 2.0\n- Related Models: All T5 Checkpoints\n- Resources for more information:\n - Research paper\n - Google's T5 Blog Post \n - GitHub Repo\n - Hugging Face T5 Docs# Uses",
"passage: ## Direct Use and Downstream Use\n\nThe developers write in a blog post that the model: \n\n> Our text-to-text framework allows us to use the same model, loss function, and hyperparameters on any NLP task, including machine translation, document summarization, question answering, and classification tasks (e.g., sentiment analysis). We can even apply T5 to regression tasks by training it to predict the string representation of a number instead of the number itself.\n\nSee the blog post and research paper for further details.## Out-of-Scope Use\n\nMore information needed.# Bias, Risks, and Limitations\n\nMore information needed.## Recommendations\n\nMore information needed.# Training Details## Training Data\n\nThe model is pre-trained on the Colossal Clean Crawled Corpus (C4), which was developed and released in the context of the same research paper as T5.\n\nThe model was pre-trained on a on a multi-task mixture of unsupervised (1.) and supervised tasks (2.).\nThereby, the following datasets were being used for (1.) and (2.):\n\n1. Datasets used for Unsupervised denoising objective:\n\n- C4\n- Wiki-DPR\n\n\n2. Datasets used for Supervised text-to-text language modeling objective\n\n- Sentence acceptability judgment\n - CoLA Warstadt et al., 2018\n- Sentiment analysis \n - SST-2 Socher et al., 2013\n- Paraphrasing/sentence similarity\n - MRPC Dolan and Brockett, 2005\n - STS-B Ceret al., 2017\n - QQP Iyer et al., 2017\n- Natural language inference\n - MNLI Williams et al., 2017\n - QNLI Rajpurkar et al.,2016\n - RTE Dagan et al., 2005 \n - CB De Marneff et al., 2019\n- Sentence completion\n - COPA Roemmele et al., 2011\n- Word sense disambiguation\n - WIC Pilehvar and Camacho-Collados, 2018\n- Question answering\n - MultiRC Khashabi et al., 2018\n - ReCoRD Zhang et al., 2018\n - BoolQ Clark et al., 2019## Training Procedure\n\nIn their abstract, the model developers write: \n\n> In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. \n\nThe framework introduced, the T5 framework, involves a training procedure that brings together the approaches studied in the paper. See the research paper for further details.# Evaluation"
] | [
-0.05849412456154823,
0.12748600542545319,
-0.00399295799434185,
0.017448171973228455,
0.08736419677734375,
-0.013059730641543865,
0.07300856709480286,
0.07962024211883545,
0.008733881637454033,
0.0773918554186821,
0.003689102828502655,
0.0008276123553514481,
0.12859508395195007,
0.12454811483621597,
0.020888756960630417,
-0.1980654001235962,
0.04364067316055298,
-0.09866288304328918,
-0.012328729964792728,
0.08500562608242035,
0.10391464829444885,
-0.05991201475262642,
0.05731495842337608,
-0.013397225178778172,
-0.005938678048551083,
-0.013624830171465874,
-0.029025550931692123,
-0.021307915449142456,
0.025906087830662727,
0.06139246001839638,
0.08948305994272232,
0.05072838068008423,
0.07159829139709473,
-0.20803353190422058,
0.02615579217672348,
0.08780214190483093,
-0.012159638106822968,
0.03924030810594559,
0.07690717279911041,
-0.02561773546040058,
0.12895552814006805,
-0.13029712438583374,
0.061848416924476624,
0.08026651293039322,
-0.09131678193807602,
-0.08961345255374908,
-0.10396096110343933,
0.09784509241580963,
0.10070482641458511,
0.05543819069862366,
-0.021602708846330643,
0.0389738492667675,
0.0019851913675665855,
0.03335460275411606,
0.06710971891880035,
-0.15557938814163208,
-0.04870738089084625,
0.020718974992632866,
0.01740523986518383,
0.06391312181949615,
-0.07227950543165207,
0.009225323796272278,
0.01216433197259903,
0.004192541353404522,
0.00037463195621967316,
-0.015115363523364067,
0.08678525686264038,
-0.0026784022338688374,
-0.11996287107467651,
-0.03512556105852127,
0.13648168742656708,
0.02010183036327362,
-0.1044786125421524,
-0.13064852356910706,
-0.06349322944879532,
0.04907555505633354,
-0.008581843227148056,
-0.046199534088373184,
0.01734890788793564,
0.018177863210439682,
0.07816815376281738,
-0.08162286877632141,
-0.09687795490026474,
-0.004761948250234127,
-0.024371113628149033,
0.08394826203584671,
0.021661018952727318,
0.023832902312278748,
-0.012563352473080158,
0.10435353964567184,
0.012752910144627094,
-0.11519752442836761,
-0.0447850301861763,
-0.0770053043961525,
-0.10318009555339813,
-0.027896441519260406,
0.012930108234286308,
-0.09475043416023254,
0.0032721981406211853,
0.14254865050315857,
0.05836944654583931,
0.05193468928337097,
-0.04035183787345886,
0.00841396115720272,
0.059552162885665894,
0.1312558352947235,
-0.011748172342777252,
-0.12374050915241241,
0.03670740872621536,
0.03282209485769272,
0.012676113285124302,
-0.032612886279821396,
0.004035117104649544,
-0.013701158575713634,
-0.04158446192741394,
0.08157980442047119,
0.09882432222366333,
0.032888248562812805,
-0.04606766253709793,
-0.06234202906489372,
0.14791695773601532,
-0.1632365584373474,
0.0016669481992721558,
0.02311887964606285,
-0.015502016060054302,
0.08953504264354706,
0.07589361071586609,
-0.019560417160391808,
-0.09568923711776733,
0.033647552132606506,
-0.037826359272003174,
-0.04197409003973007,
-0.07863563299179077,
-0.0896565169095993,
0.030750492587685585,
0.017107447609305382,
-0.07604217529296875,
-0.07493811100721359,
-0.14677394926548004,
-0.09089498221874237,
0.04362129047513008,
-0.028948411345481873,
-0.037803832441568375,
-0.0333055704832077,
-0.022654084488749504,
0.0007341564632952213,
0.024533746764063835,
-0.03979265317320824,
-0.018017452210187912,
0.01564089208841324,
-0.044311560690402985,
0.049038730561733246,
0.02240932174026966,
0.01804303750395775,
-0.056155525147914886,
0.012904535047709942,
-0.17904981970787048,
0.10918234288692474,
-0.10530339926481247,
0.03494108468294144,
-0.12128812819719315,
0.005249204114079475,
0.03832084685564041,
0.021399561315774918,
0.021210743114352226,
0.1450687050819397,
-0.2161557674407959,
-0.037882737815380096,
0.16045202314853668,
-0.13362610340118408,
-0.02846144139766693,
0.07060737162828445,
-0.0226338692009449,
0.09947162866592407,
0.10104509443044662,
0.009937047958374023,
0.1397307813167572,
-0.07999087125062943,
-0.021764127537608147,
-0.05963016301393509,
-0.01159066054970026,
0.11822491884231567,
0.05315510928630829,
-0.045258600264787674,
-0.03207910805940628,
0.032581627368927,
-0.05238308012485504,
-0.04716134071350098,
0.006206542253494263,
-0.05310693383216858,
0.014297042042016983,
-0.025744730606675148,
-0.01512937806546688,
-0.028670869767665863,
-0.06190141290426254,
-0.013237487524747849,
-0.10457374155521393,
-0.03395383805036545,
0.07878835499286652,
-0.03616354987025261,
0.03437066078186035,
-0.06479716300964355,
0.005852878093719482,
-0.00040795933455228806,
0.02352271042764187,
-0.12232978641986847,
-0.07718974351882935,
0.038264200091362,
-0.09596849232912064,
0.09150779247283936,
0.04075879231095314,
0.017345217987895012,
0.02932729944586754,
-0.03254512697458267,
-0.005714257247745991,
-0.017739012837409973,
-0.011548234149813652,
-0.024378513917326927,
-0.16198980808258057,
0.003324014600366354,
-0.03655659407377243,
0.07129264622926712,
-0.13776010274887085,
0.03289521485567093,
0.05289410799741745,
0.0955614224076271,
0.019436733797192574,
-0.04346970468759537,
0.022405577823519707,
-0.017257409170269966,
-0.0008662794716656208,
-0.03538750484585762,
0.013612274080514908,
0.011876987293362617,
-0.02817806974053383,
0.049878716468811035,
-0.1318211406469345,
-0.1578110307455063,
0.06087689846754074,
0.06598334014415741,
-0.10236536711454391,
0.013591339811682701,
-0.03328321874141693,
-0.012213656678795815,
-0.0721987709403038,
-0.041179109364748,
0.1353864222764969,
0.026978179812431335,
0.06389936804771423,
-0.07548980414867401,
-0.050524599850177765,
-0.013082129880785942,
0.0031641540117561817,
0.009977427311241627,
0.0769137591123581,
0.04788486659526825,
-0.1166604608297348,
0.051878124475479126,
0.07501103729009628,
0.03892337530851364,
0.15855969488620758,
-0.0007331687957048416,
-0.07442499697208405,
-0.025384830310940742,
0.03022225946187973,
0.013173932209610939,
0.07416956126689911,
-0.0019390862435102463,
0.025719551369547844,
0.05185530334711075,
0.010111270472407341,
0.03147566318511963,
-0.07014334201812744,
0.044797711074352264,
0.027196066454052925,
-0.023754024878144264,
-0.07434438169002533,
-0.03069002367556095,
0.008988281711935997,
0.09091726690530777,
0.03638333082199097,
0.09039390087127686,
-0.01094234362244606,
-0.05484399572014809,
-0.12013866007328033,
0.1317300796508789,
-0.10630512237548828,
-0.2008385956287384,
-0.11270785331726074,
0.05447325482964516,
-0.041669782251119614,
-0.005575692281126976,
0.013966740109026432,
-0.0646674633026123,
-0.10317587852478027,
-0.0848323330283165,
0.07436807453632355,
0.014478597790002823,
-0.05021011084318161,
-0.0009667351841926575,
0.02925063483417034,
-0.00838269479572773,
-0.1119721382856369,
0.004380788654088974,
0.0164320170879364,
-0.0888766348361969,
-0.00923957210034132,
0.031912751495838165,
0.0632564127445221,
0.11465565860271454,
-0.006594959180802107,
-0.02817685529589653,
0.015177193097770214,
0.15665149688720703,
-0.08933056890964508,
0.145450621843338,
0.12303972244262695,
-0.06131097301840782,
0.07570193707942963,
0.15780064463615417,
0.012760322540998459,
-0.019388047978281975,
0.024274814873933792,
0.03478946536779404,
-0.03499404713511467,
-0.26459065079689026,
-0.06655331701040268,
-0.05740906298160553,
0.03008134849369526,
0.033470433205366135,
0.045177605003118515,
-0.0015117377042770386,
0.04955840855836868,
-0.10062645375728607,
-0.05143830552697182,
0.08693522214889526,
0.11617810279130936,
0.04527326673269272,
-0.0019202758558094501,
0.07953992486000061,
-0.09170451760292053,
0.02397090569138527,
0.11840984970331192,
-0.012800594791769981,
0.15881513059139252,
0.0186361875385046,
0.09346331655979156,
0.0785825252532959,
0.02934502251446247,
0.047405630350112915,
0.06532666087150574,
-0.0004794076085090637,
0.035464927554130554,
-0.03410225361585617,
-0.06724492460489273,
-0.03584762290120125,
0.09346777200698853,
-0.008579080924391747,
-0.033558063209056854,
-0.029182851314544678,
-0.04978829622268677,
0.059591226279735565,
0.15982425212860107,
0.037543751299381256,
-0.09036631882190704,
-0.06214616820216179,
0.04963921383023262,
-0.07701916992664337,
-0.07773182541131973,
0.011930232867598534,
0.04031310975551605,
-0.1375727355480194,
0.11135570704936981,
-0.0002891623298637569,
0.09595831483602524,
-0.06741662323474884,
-0.01822405494749546,
0.0033259140327572823,
0.08348633348941803,
-0.025411659851670265,
0.05223481357097626,
-0.15931472182273865,
0.08135657012462616,
0.012311313301324844,
0.05028086155653,
-0.06079428642988205,
0.05132865160703659,
0.01627439633011818,
-0.0027557455468922853,
0.10731787979602814,
0.019563816487789154,
-0.14717838168144226,
-0.01824960857629776,
-0.046928104013204575,
0.04348190873861313,
0.08164633810520172,
-0.10855068266391754,
0.09943996369838715,
-0.0187031552195549,
-0.008421134203672409,
-0.02660822495818138,
0.0026769530959427357,
-0.1471131443977356,
-0.178481325507164,
0.05478370934724808,
-0.10064603388309479,
0.013067969121038914,
-0.04653823375701904,
-0.020631201565265656,
-0.024320773780345917,
0.20679548382759094,
-0.15605106949806213,
-0.10252070426940918,
-0.11979242414236069,
-0.050764717161655426,
0.0691007673740387,
-0.07677868008613586,
0.031479351222515106,
-0.033115364611148834,
0.09165678918361664,
-0.038173332810401917,
-0.08559325337409973,
0.017623653635382652,
-0.07836361229419708,
-0.17647001147270203,
-0.04126022756099701,
0.1338004618883133,
0.11327564716339111,
0.0247078575193882,
0.008029225282371044,
0.012513748370110989,
-0.01510647777467966,
-0.11764748394489288,
0.005865062586963177,
0.16983087360858917,
0.02223147079348564,
0.05371348559856415,
-0.05934479832649231,
-0.1405438333749771,
-0.08623422682285309,
-0.03810116648674011,
0.04452584683895111,
0.15731097757816315,
-0.019671060144901276,
0.17322029173374176,
0.13779330253601074,
-0.10292010009288788,
-0.20950894057750702,
-0.02601054310798645,
0.03093807026743889,
0.008736545220017433,
0.036725275218486786,
-0.18519355356693268,
0.06221697852015495,
-0.012387588620185852,
0.0021051857620477676,
0.038951028138399124,
-0.10745606571435928,
-0.10273104906082153,
0.06700313091278076,
0.002587932161986828,
0.006630027666687965,
-0.10297438502311707,
-0.040545348078012466,
-0.04552836716175079,
-0.1331484019756317,
0.1675739288330078,
-0.037508100271224976,
0.03260352462530136,
0.025748806074261665,
0.031791046261787415,
0.03628285229206085,
-0.029146626591682434,
0.13817374408245087,
-0.0010472452268004417,
0.01925450563430786,
-0.07809312641620636,
0.00740664079785347,
0.019406581297516823,
-0.05323930084705353,
0.0567854642868042,
0.018679389730095863,
0.05276443809270859,
-0.08344092220067978,
-0.06289583444595337,
-0.06679428368806839,
0.02954520657658577,
-0.07411545515060425,
-0.04754184931516647,
-0.06773269176483154,
0.07935462892055511,
0.12032252550125122,
-0.023968741297721863,
0.002550046890974045,
-0.07491448521614075,
0.028179975226521492,
0.13992729783058167,
0.13208144903182983,
0.07898354530334473,
0.000867743045091629,
-0.0266747884452343,
-0.031906597316265106,
0.04390781372785568,
-0.17081528902053833,
0.052328821271657944,
0.07740715146064758,
0.02360357530415058,
0.074247807264328,
-0.00032429536804556847,
-0.13966673612594604,
-0.024735257029533386,
0.0656023770570755,
-0.09522007405757904,
-0.14037473499774933,
-0.03562453016638756,
-0.011097732931375504,
-0.07912401854991913,
-0.04776138812303543,
0.12117651849985123,
-0.01926746778190136,
-0.02478506974875927,
0.022405780851840973,
0.0701318234205246,
0.0064243837259709835,
0.05347805470228195,
0.01221475563943386,
0.03435728698968887,
-0.07186110317707062,
0.0970558151602745,
0.09032019227743149,
-0.06896235048770905,
0.010492977686226368,
0.13056336343288422,
-0.07719093561172485,
-0.025032754987478256,
-0.019648484885692596,
0.08331833779811859,
-0.04068191722035408,
-0.020037513226270676,
0.006339453160762787,
-0.08866499364376068,
0.02189105935394764,
0.11305277049541473,
-0.009937714785337448,
0.005302225239574909,
0.014804577454924583,
0.031928300857543945,
-0.03590794652700424,
0.08823692798614502,
0.0732947438955307,
-0.014142798259854317,
-0.025661569088697433,
0.0580127127468586,
-0.006386955268681049,
0.01946721225976944,
-0.00843347143381834,
-0.01925412379205227,
-0.09145203232765198,
-0.03185674175620079,
-0.1407611072063446,
0.010424737818539143,
-0.07026933878660202,
0.003276088973507285,
-0.008767345920205116,
-0.03227042034268379,
-0.007703554816544056,
0.011677158996462822,
-0.049299951642751694,
-0.04233184829354286,
-0.035752326250076294,
0.0767403095960617,
-0.10258698463439941,
0.01723990961909294,
0.08770787715911865,
-0.08173830807209015,
0.06792038679122925,
-0.0051986826583743095,
-0.03155934065580368,
0.04616580903530121,
-0.11841029673814774,
0.015018991194665432,
-0.05075908079743385,
0.026434607803821564,
-0.0035240240395069122,
-0.10421914607286453,
0.005196965299546719,
-0.009750500321388245,
-0.06657927483320236,
-0.015510046854615211,
0.04682891443371773,
-0.07590660452842712,
0.05692746490240097,
0.03220643103122711,
-0.047263793647289276,
-0.06116540729999542,
0.016260435804724693,
0.023569511249661446,
0.046959567815065384,
0.07848160713911057,
-0.053868211805820465,
0.08867166936397552,
-0.1529761254787445,
-0.011164005845785141,
0.030202921479940414,
0.013983037322759628,
0.02291400544345379,
-0.050409045070409775,
0.06065146252512932,
-0.012242885306477547,
0.09001558274030685,
-0.03587529808282852,
0.012969950214028358,
0.05456392839550972,
-0.010587116703391075,
-0.07036449760198593,
0.022216005250811577,
0.043670084327459335,
0.006052177399396896,
0.015707969665527344,
-0.011042485944926739,
-0.05642370879650116,
-0.04196012765169144,
-0.08110681176185608,
0.15841923654079437,
0.12361712753772736,
0.07941493391990662,
0.02056068927049637,
-0.0051187630742788315,
-0.060701459646224976,
-0.014364127069711685,
0.05583277344703674,
-0.029399067163467407,
0.013778208754956722,
-0.06462693214416504,
0.02361965738236904,
0.11594951897859573,
-0.10727144777774811,
0.10843546688556671,
-0.011133795604109764,
-0.047202982008457184,
-0.0997016429901123,
-0.21872606873512268,
-0.04021462798118591,
-0.01942702755331993,
-0.009882263839244843,
-0.09603534638881683,
0.07359862327575684,
0.033426932990550995,
0.019367940723896027,
-0.024128753691911697,
0.05603957548737526,
-0.08137769252061844,
-0.1010533794760704,
0.07111112773418427,
0.035666897892951965,
0.0410931222140789,
0.0738523006439209,
0.00401759659871459,
0.013011610135436058,
0.10923440009355545,
0.039183616638183594,
0.08778314292430878,
0.030723759904503822,
0.021759197115898132,
-0.02360147051513195,
-0.07511183619499207,
-0.0031052520498633385,
-0.011648879386484623,
0.01615316793322563,
0.1926092505455017,
0.033518657088279724,
-0.013727271929383278,
0.022025836631655693,
0.1905650645494461,
-0.030117560178041458,
-0.10881304740905762,
-0.15545332431793213,
0.08792857080698013,
-0.019799774512648582,
-0.0013056965544819832,
0.0445687472820282,
-0.12386508285999298,
-0.009804751724004745,
0.16523981094360352,
0.1344141662120819,
-0.007350625470280647,
0.019411982968449593,
-0.007885516621172428,
0.017341777682304382,
0.026334265246987343,
0.058414507657289505,
0.012138218618929386,
0.23346993327140808,
-0.03708473592996597,
0.07034506648778915,
-0.00032343901693820953,
-0.031110839918255806,
-0.0405748076736927,
0.15065288543701172,
-0.02505987510085106,
-0.01828375831246376,
-0.0556911826133728,
0.09356747567653656,
-0.040751323103904724,
-0.26083582639694214,
-0.026055367663502693,
-0.04425646364688873,
-0.0933808833360672,
-0.023405060172080994,
0.044348012655973434,
0.005686699412763119,
0.009461861103773117,
0.029743820428848267,
-0.021666381508111954,
0.23414897918701172,
0.011022087186574936,
-0.026367219164967537,
-0.02967408113181591,
0.09439890086650848,
-0.0988902747631073,
0.13730460405349731,
0.036244556307792664,
0.05565604567527771,
0.08030539005994797,
0.010838106274604797,
-0.10260216146707535,
0.029938625171780586,
0.03319643437862396,
-0.07876064628362656,
0.016074756160378456,
0.17974233627319336,
-0.011835509911179543,
0.039153870195150375,
0.10658551752567291,
-0.036350466310977936,
0.032061800360679626,
0.006692032795399427,
-0.05459152162075043,
-0.08627825975418091,
0.1279565840959549,
-0.11505629122257233,
0.12735044956207275,
0.13598161935806274,
-0.03424385190010071,
0.03140230104327202,
-0.07060732692480087,
0.0372743234038353,
-0.03324341028928757,
0.10553474724292755,
0.014040166512131691,
-0.09622703492641449,
0.004369676113128662,
-0.019032683223485947,
0.10654189437627792,
-0.18024887144565582,
-0.04113306477665901,
0.0232992060482502,
-0.014590110629796982,
-0.044922616332769394,
0.13559141755104065,
0.02009466476738453,
-0.008318704552948475,
-0.02557942271232605,
-0.10987783968448639,
0.02359524928033352,
0.09314249455928802,
-0.05921207368373871,
-0.021811025217175484
] |
null | null | transformers |
# Transfo-xl-wt103
## Table of Contents
- [Model Details](#model-details)
- [Uses](#uses)
- [Risks, Limitations and Biases](#risks-limitations-and-biases)
- [Training](#training)
- [Evaluation](#evaluation)
- [Citation Information](#citation-information)
- [How to Get Started With the Model](#how-to-get-started-with-the-model)
## Model Details
**Model Description:**
The Transformer-XL model is a causal (uni-directional) transformer with relative positioning (sinusoïdal) embeddings which can reuse previously computed hidden-states to attend to longer context (memory). This model also uses adaptive softmax inputs and outputs (tied).
- **Developed by:** [Zihang Dai]([email protected]), [Zhilin Yang]([email protected]), [Yiming Yang1]([email protected]), [Jaime Carbonell]([email protected]), [Quoc V. Le]([email protected]), [Ruslan Salakhutdinov]([email protected])
- **Shared by:** HuggingFace team
- **Model Type:** Text Generation
- **Language(s):** English
- **License:** [More information needed]
- **Resources for more information:**
- [Research Paper](https://arxiv.org/pdf/1901.02860.pdf)
- [GitHub Repo](https://github.com/kimiyoung/transformer-xl)
- [HuggingFace Documentation](https://huggingface.co/docs/transformers/model_doc/transfo-xl#transformers.TransfoXLModel)
## Uses
#### Direct Use
This model can be used for text generation.
The authors provide additionally notes about the vocabulary used, in the [associated paper](https://arxiv.org/pdf/1901.02860.pdf):
> We envision interesting applications of Transformer-XL in the fields of text generation, unsupervised feature learning, image and speech modeling.
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
## Risks, Limitations and Biases
**CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Training
#### Training Data
The authors provide additionally notes about the vocabulary used, in the [associated paper](https://arxiv.org/pdf/1901.02860.pdf):
> best model trained the Wikitext-103 dataset. We seed the our Transformer-XL with a context of at most 512 consecutive tokens randomly sampled from the test set of Wikitext-103. Then, we run Transformer-XL to generate a pre-defined number of tokens (500 or 1,000 in our case). For each generation step, we first find the top-40 probabilities of the next-step distribution and sample from top-40 tokens based on the re-normalized distribution. To help reading, we detokenize the context, the generated text and the reference text.
The authors use the following pretraining corpora for the model, described in the [associated paper](https://arxiv.org/pdf/1901.02860.pdf):
- WikiText-103 (Merity et al., 2016),
#### Training Procedure
##### Preprocessing
The authors provide additionally notes about the training procedure used, in the [associated paper](https://arxiv.org/pdf/1901.02860.pdf):
> Similar to but different from enwik8, text8 con- tains 100M processed Wikipedia characters cre- ated by lowering case the text and removing any character other than the 26 letters a through z, and space. Due to the similarity, we simply adapt the best model and the same hyper-parameters on en- wik8 to text8 without further tuning.
## Evaluation
#### Results
| Method | enwiki8 |text8 | One Billion Word | WT-103 | PTB (w/o finetuning) |
|:--------------------:|---------:|:----:|:----------------:|:------:|:--------------------:|
| Transformer-XL. | 0.99 | 1.08 | 21.8 | 18.3 | 54.5 |
## Citation Information
```bibtex
@misc{https://doi.org/10.48550/arxiv.1901.02860,
doi = {10.48550/ARXIV.1901.02860},
url = {https://arxiv.org/abs/1901.02860},
author = {Dai, Zihang and Yang, Zhilin and Yang, Yiming and Carbonell, Jaime and Le, Quoc V. and Salakhutdinov, Ruslan},
keywords = {Machine Learning (cs.LG), Computation and Language (cs.CL), Machine Learning (stat.ML), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context},
publisher = {arXiv},
year = {2019},
copyright = {Creative Commons Attribution Non Commercial Share Alike 4.0 International}
}
```
## How to Get Started With the Model
```
from transformers import TransfoXLTokenizer, TransfoXLModel
import torch
tokenizer = TransfoXLTokenizer.from_pretrained("transfo-xl-wt103")
model = TransfoXLModel.from_pretrained("transfo-xl-wt103")
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
```
| {"language": "en", "tags": ["text-generation"], "datasets": ["wikitext-103"], "task": {"name": "Text Generation", "type": "text-generation"}, "model-index": [{"name": "transfo-xl-wt103", "results": []}]} | text-generation | transfo-xl/transfo-xl-wt103 | [
"transformers",
"pytorch",
"tf",
"transfo-xl",
"text-generation",
"en",
"dataset:wikitext-103",
"arxiv:1901.02860",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1901.02860"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #transfo-xl #text-generation #en #dataset-wikitext-103 #arxiv-1901.02860 #autotrain_compatible #endpoints_compatible #region-us
| Transfo-xl-wt103
================
Table of Contents
-----------------
* Model Details
* Uses
* Risks, Limitations and Biases
* Training
* Evaluation
* Citation Information
* How to Get Started With the Model
Model Details
-------------
Model Description:
The Transformer-XL model is a causal (uni-directional) transformer with relative positioning (sinusoïdal) embeddings which can reuse previously computed hidden-states to attend to longer context (memory). This model also uses adaptive softmax inputs and outputs (tied).
* Developed by: Zihang Dai, Zhilin Yang, Yiming Yang1, Jaime Carbonell, Quoc V. Le, Ruslan Salakhutdinov
* Shared by: HuggingFace team
* Model Type: Text Generation
* Language(s): English
* License: [More information needed]
* Resources for more information:
+ Research Paper
+ GitHub Repo
+ HuggingFace Documentation
Uses
----
#### Direct Use
This model can be used for text generation.
The authors provide additionally notes about the vocabulary used, in the associated paper:
>
> We envision interesting applications of Transformer-XL in the fields of text generation, unsupervised feature learning, image and speech modeling.
>
>
>
#### Misuse and Out-of-scope Use
The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
Risks, Limitations and Biases
-----------------------------
CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
Training
--------
#### Training Data
The authors provide additionally notes about the vocabulary used, in the associated paper:
>
> best model trained the Wikitext-103 dataset. We seed the our Transformer-XL with a context of at most 512 consecutive tokens randomly sampled from the test set of Wikitext-103. Then, we run Transformer-XL to generate a pre-defined number of tokens (500 or 1,000 in our case). For each generation step, we first find the top-40 probabilities of the next-step distribution and sample from top-40 tokens based on the re-normalized distribution. To help reading, we detokenize the context, the generated text and the reference text.
>
>
>
The authors use the following pretraining corpora for the model, described in the associated paper:
* WikiText-103 (Merity et al., 2016),
#### Training Procedure
##### Preprocessing
The authors provide additionally notes about the training procedure used, in the associated paper:
>
> Similar to but different from enwik8, text8 con- tains 100M processed Wikipedia characters cre- ated by lowering case the text and removing any character other than the 26 letters a through z, and space. Due to the similarity, we simply adapt the best model and the same hyper-parameters on en- wik8 to text8 without further tuning.
>
>
>
Evaluation
----------
#### Results
How to Get Started With the Model
---------------------------------
| [
"#### Direct Use\n\n\nThis model can be used for text generation.\nThe authors provide additionally notes about the vocabulary used, in the associated paper:\n\n\n\n> \n> We envision interesting applications of Transformer-XL in the fields of text generation, unsupervised feature learning, image and speech modeling.\n> \n> \n>",
"#### Misuse and Out-of-scope Use\n\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.\n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nTraining\n--------",
"#### Training Data\n\n\nThe authors provide additionally notes about the vocabulary used, in the associated paper:\n\n\n\n> \n> best model trained the Wikitext-103 dataset. We seed the our Transformer-XL with a context of at most 512 consecutive tokens randomly sampled from the test set of Wikitext-103. Then, we run Transformer-XL to generate a pre-defined number of tokens (500 or 1,000 in our case). For each generation step, we first find the top-40 probabilities of the next-step distribution and sample from top-40 tokens based on the re-normalized distribution. To help reading, we detokenize the context, the generated text and the reference text.\n> \n> \n> \n\n\nThe authors use the following pretraining corpora for the model, described in the associated paper:\n\n\n* WikiText-103 (Merity et al., 2016),",
"#### Training Procedure",
"##### Preprocessing\n\n\nThe authors provide additionally notes about the training procedure used, in the associated paper:\n\n\n\n> \n> Similar to but different from enwik8, text8 con- tains 100M processed Wikipedia characters cre- ated by lowering case the text and removing any character other than the 26 letters a through z, and space. Due to the similarity, we simply adapt the best model and the same hyper-parameters on en- wik8 to text8 without further tuning.\n> \n> \n> \n\n\nEvaluation\n----------",
"#### Results\n\n\n\nHow to Get Started With the Model\n---------------------------------"
] | [
"TAGS\n#transformers #pytorch #tf #transfo-xl #text-generation #en #dataset-wikitext-103 #arxiv-1901.02860 #autotrain_compatible #endpoints_compatible #region-us \n",
"#### Direct Use\n\n\nThis model can be used for text generation.\nThe authors provide additionally notes about the vocabulary used, in the associated paper:\n\n\n\n> \n> We envision interesting applications of Transformer-XL in the fields of text generation, unsupervised feature learning, image and speech modeling.\n> \n> \n>",
"#### Misuse and Out-of-scope Use\n\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.\n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nTraining\n--------",
"#### Training Data\n\n\nThe authors provide additionally notes about the vocabulary used, in the associated paper:\n\n\n\n> \n> best model trained the Wikitext-103 dataset. We seed the our Transformer-XL with a context of at most 512 consecutive tokens randomly sampled from the test set of Wikitext-103. Then, we run Transformer-XL to generate a pre-defined number of tokens (500 or 1,000 in our case). For each generation step, we first find the top-40 probabilities of the next-step distribution and sample from top-40 tokens based on the re-normalized distribution. To help reading, we detokenize the context, the generated text and the reference text.\n> \n> \n> \n\n\nThe authors use the following pretraining corpora for the model, described in the associated paper:\n\n\n* WikiText-103 (Merity et al., 2016),",
"#### Training Procedure",
"##### Preprocessing\n\n\nThe authors provide additionally notes about the training procedure used, in the associated paper:\n\n\n\n> \n> Similar to but different from enwik8, text8 con- tains 100M processed Wikipedia characters cre- ated by lowering case the text and removing any character other than the 26 letters a through z, and space. Due to the similarity, we simply adapt the best model and the same hyper-parameters on en- wik8 to text8 without further tuning.\n> \n> \n> \n\n\nEvaluation\n----------",
"#### Results\n\n\n\nHow to Get Started With the Model\n---------------------------------"
] | [
61,
67,
166,
189,
5,
115,
14
] | [
"passage: TAGS\n#transformers #pytorch #tf #transfo-xl #text-generation #en #dataset-wikitext-103 #arxiv-1901.02860 #autotrain_compatible #endpoints_compatible #region-us \n#### Direct Use\n\n\nThis model can be used for text generation.\nThe authors provide additionally notes about the vocabulary used, in the associated paper:\n\n\n\n> \n> We envision interesting applications of Transformer-XL in the fields of text generation, unsupervised feature learning, image and speech modeling.\n> \n> \n>#### Misuse and Out-of-scope Use\n\n\nThe model should not be used to intentionally create hostile or alienating environments for people. In addition, the model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.\n\n\nRisks, Limitations and Biases\n-----------------------------\n\n\nCONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.\n\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).\n\n\nTraining\n--------#### Training Data\n\n\nThe authors provide additionally notes about the vocabulary used, in the associated paper:\n\n\n\n> \n> best model trained the Wikitext-103 dataset. We seed the our Transformer-XL with a context of at most 512 consecutive tokens randomly sampled from the test set of Wikitext-103. Then, we run Transformer-XL to generate a pre-defined number of tokens (500 or 1,000 in our case). For each generation step, we first find the top-40 probabilities of the next-step distribution and sample from top-40 tokens based on the re-normalized distribution. To help reading, we detokenize the context, the generated text and the reference text.\n> \n> \n> \n\n\nThe authors use the following pretraining corpora for the model, described in the associated paper:\n\n\n* WikiText-103 (Merity et al., 2016),#### Training Procedure"
] | [
-0.03312775492668152,
0.07163463532924652,
-0.00538985338062048,
0.054511137306690216,
0.08334629982709885,
0.022756265476346016,
0.07118643075227737,
0.08218362182378769,
-0.010314813815057278,
0.05164775997400284,
0.031197506934404373,
0.028469283133745193,
0.07548490166664124,
0.07909780740737915,
0.0038686355110257864,
-0.19649337232112885,
0.03480657562613487,
-0.005505526904016733,
0.07886207103729248,
0.11158248037099838,
0.10870219767093658,
-0.04609080031514168,
0.06268347054719925,
0.008759078569710255,
-0.06575273722410202,
-0.0323602668941021,
-0.02680847980082035,
-0.04911196976900101,
0.11043419688940048,
0.06784971058368683,
0.10291555523872375,
-0.0016821172321215272,
0.04297568276524544,
-0.17313212156295776,
0.0290365070104599,
0.07593793421983719,
-0.012073136866092682,
0.08160420507192612,
0.05457474663853645,
-0.01712522655725479,
0.16886821389198303,
-0.1110435426235199,
0.03498237952589989,
0.02733364701271057,
-0.13531209528446198,
-0.1473480463027954,
-0.10650130361318588,
0.11291128396987915,
0.06736724823713303,
0.06922736018896103,
-0.0426773838698864,
0.12376292794942856,
0.011267323046922684,
0.04108111187815666,
0.19918271899223328,
-0.1801358163356781,
-0.03158581256866455,
-0.011349675245583057,
0.001816924661397934,
0.07072031497955322,
-0.09088925272226334,
-0.020458415150642395,
0.045326441526412964,
0.06317953765392303,
0.04029778763651848,
-0.009873316623270512,
0.06652643531560898,
-0.041359543800354004,
-0.14914482831954956,
-0.03553558513522148,
0.1691347360610962,
0.02521204948425293,
-0.09377144277095795,
-0.08658121526241302,
-0.03806523606181145,
0.07815759629011154,
0.05054912716150284,
-0.06576237827539444,
-0.014497257769107819,
-0.02077573351562023,
0.10573131591081619,
-0.04047415405511856,
-0.10740786790847778,
-0.004781242460012436,
-0.059324394911527634,
0.1772812008857727,
0.016772344708442688,
0.01924198493361473,
-0.015591972507536411,
0.10037063807249069,
-0.013609153218567371,
-0.07211756706237793,
-0.06628436595201492,
-0.07785384356975555,
-0.08830205351114273,
-0.06235422194004059,
-0.03289951756596565,
-0.10702335089445114,
-0.029939081519842148,
0.08641915768384933,
-0.08336590975522995,
0.02143551968038082,
-0.013658887706696987,
0.05892854556441307,
0.09186313301324844,
0.0740882009267807,
-0.052401527762413025,
0.039951570332050323,
0.02777116745710373,
0.05920848995447159,
0.04777446389198303,
-0.025844769552350044,
-0.014918074011802673,
-0.06339684873819351,
0.062179528176784515,
0.032866399735212326,
-0.004423509817570448,
0.08723314851522446,
-0.06105208024382591,
-0.0313856266438961,
0.0634731650352478,
-0.12557606399059296,
-0.009436255320906639,
0.00844607874751091,
-0.04189299792051315,
0.03267103061079979,
0.06946196407079697,
-0.011047113686800003,
-0.07919749617576599,
0.08014727383852005,
-0.06023574620485306,
-0.02148137427866459,
-0.09764223545789719,
-0.09803734719753265,
0.029476502910256386,
-0.023452717810869217,
-0.0305506382137537,
-0.12038807570934296,
-0.14789865911006927,
-0.06153577193617821,
0.02804955653846264,
-0.03609375283122063,
-0.02601824328303337,
-0.03962034359574318,
-0.025001371279358864,
0.0007665152661502361,
0.01992742158472538,
0.0359637551009655,
-0.029418325051665306,
0.07253680378198624,
-0.040332552045583725,
0.0567910335958004,
0.026988929137587547,
0.02211555652320385,
-0.07933986932039261,
0.03809003904461861,
-0.10109952837228775,
0.07345031946897507,
-0.00044282665476202965,
-0.05629009008407593,
-0.08863881975412369,
-0.039634138345718384,
-0.05744229257106781,
0.05957424268126488,
0.051630910485982895,
0.12293673306703568,
-0.15179379284381866,
-0.01506622601300478,
0.13654668629169464,
-0.16347652673721313,
-0.052979663014411926,
0.10677599161863327,
-0.04260285571217537,
0.12501344084739685,
0.09683392941951752,
0.09367851167917252,
-0.007658092770725489,
-0.07171789556741714,
-0.023072872310876846,
-0.043900016695261,
-0.10084069520235062,
0.1908765286207199,
0.003759304527193308,
-0.030950600281357765,
-0.02350546605885029,
-0.01585554890334606,
-0.06368178874254227,
-0.004169645253568888,
-0.013283289968967438,
-0.03021666221320629,
0.004465607926249504,
-0.025778641924262047,
0.088660329580307,
-0.007186087779700756,
-0.05062802881002426,
-0.025440946221351624,
-0.1099141389131546,
-0.04422067850828171,
0.08543840050697327,
-0.06436991691589355,
0.04199492558836937,
-0.07468909025192261,
0.02391119673848152,
0.061509162187576294,
0.02568996138870716,
-0.15540583431720734,
-0.01591918244957924,
0.011796869337558746,
-0.05991441756486893,
0.09004314988851547,
0.10833972692489624,
0.03196953237056732,
0.05017739534378052,
-0.043759919703006744,
-0.03335365280508995,
-0.030123474076390266,
0.006698694545775652,
-0.09953530132770538,
-0.14961408078670502,
0.0035442556254565716,
-0.01826094649732113,
0.07551319152116776,
-0.24260865151882172,
0.02638206258416176,
0.061824068427085876,
0.0370946042239666,
0.010924503207206726,
-0.014129649847745895,
0.05303610861301422,
0.03714755177497864,
-0.0248408280313015,
-0.040330205112695694,
0.047264136373996735,
-0.011791146360337734,
-0.08395779877901077,
0.06441647559404373,
-0.17388230562210083,
-0.09155795723199844,
0.06868815422058105,
-0.033300429582595825,
-0.12285991758108139,
-0.02411811612546444,
-0.023168878629803658,
-0.041020601987838745,
-0.04977535083889961,
-0.05530942976474762,
0.20989181101322174,
0.019923588261008263,
0.04839976876974106,
-0.057376131415367126,
-0.04748380184173584,
-0.03326641023159027,
-0.06207035854458809,
-0.05544180050492287,
0.039697784930467606,
0.0016543228412047029,
-0.1993880569934845,
0.06023045629262924,
0.05946521461009979,
-0.08212056756019592,
0.1089584231376648,
0.05921708792448044,
-0.0967259481549263,
0.009828922338783741,
-0.002914685057476163,
0.004325108136981726,
0.0790478065609932,
-0.0006624004454351962,
0.006962633691728115,
0.0372353158891201,
0.03078046627342701,
0.012770567089319229,
-0.1144944354891777,
0.025062449276447296,
0.01770610921084881,
-0.008679484017193317,
-0.013669117353856564,
-0.014786685816943645,
-0.01364576630294323,
0.11928162723779678,
0.0207433570176363,
0.02218722552061081,
0.046367134898900986,
-0.04537305235862732,
-0.16181550920009613,
0.15418896079063416,
-0.046549245715141296,
-0.25732845067977905,
-0.11715513467788696,
0.02199622616171837,
0.009357109665870667,
0.02049940451979637,
0.022550800815224648,
-0.04453838989138603,
-0.07420799136161804,
-0.11734163016080856,
0.05332326889038086,
-0.006453494541347027,
-0.04664171114563942,
-0.0197316762059927,
-0.0053393058478832245,
0.03824518248438835,
-0.11931563913822174,
0.023384040221571922,
-0.015644967555999756,
-0.04652249813079834,
0.05473697930574417,
-0.011812402866780758,
0.1258094608783722,
0.12625721096992493,
-0.03285228833556175,
-0.04076319560408592,
-0.022454634308815002,
0.16735969483852386,
-0.12893521785736084,
0.08665946871042252,
0.09425273537635803,
-0.13596908748149872,
0.07698523998260498,
0.10507295280694962,
0.007312257308512926,
-0.05510655790567398,
0.040065545588731766,
0.033661678433418274,
-0.02155821956694126,
-0.24102644622325897,
-0.018811224028468132,
-0.0011609048815444112,
-0.049405742436647415,
0.06430312991142273,
0.05855053290724754,
0.0714852586388588,
0.058154039084911346,
-0.0787632167339325,
-0.008542023599147797,
0.07142046093940735,
0.08643480390310287,
0.025760266929864883,
0.02313818410038948,
0.04425061494112015,
-0.03243221342563629,
0.0006825317395851016,
0.056163493543863297,
0.010946533642709255,
0.23928578197956085,
-0.08275483548641205,
0.11042424291372299,
0.09629733860492706,
0.019059963524341583,
0.0660260021686554,
0.059801310300827026,
-0.0489467978477478,
0.03526445850729942,
-0.055288199335336685,
-0.04484778270125389,
-0.012730561196804047,
0.0832282304763794,
-0.057332176715135574,
0.027082055807113647,
-0.02772335521876812,
-0.05593065544962883,
0.08357562124729156,
0.16099940240383148,
0.008672268129885197,
-0.1227516233921051,
-0.07512956112623215,
0.04503588005900383,
-0.03672177717089653,
-0.06681974232196808,
0.008711774833500385,
0.07759551703929901,
-0.14694269001483917,
0.05041192099452019,
-0.002901700558140874,
0.07693064957857132,
-0.1496506929397583,
0.008563360199332237,
-0.0198195893317461,
0.10760773718357086,
-0.05898863077163696,
0.10472073405981064,
-0.25996682047843933,
0.15476451814174652,
-0.0044707488268613815,
0.08226986974477768,
-0.09292710572481155,
-0.03336290642619133,
0.024608436971902847,
0.027895240113139153,
0.09186450392007828,
0.033274177461862564,
-0.06952091306447983,
-0.07961884140968323,
0.023726286366581917,
0.0235116146504879,
0.034126587212085724,
0.01619875058531761,
0.11126338690519333,
0.01401788741350174,
0.03780723735690117,
-0.011465114541351795,
-0.015870416536927223,
-0.11284071952104568,
-0.15537063777446747,
0.04658418521285057,
-0.08240805566310883,
0.06428305804729462,
-0.0699421614408493,
-0.053187672048807144,
-0.011485425755381584,
0.13926760852336884,
-0.18644286692142487,
-0.07542048394680023,
-0.08563544601202011,
0.041147638112306595,
0.037410590797662735,
-0.05263425409793854,
-0.0267600417137146,
0.051476266235113144,
0.11746075004339218,
-0.06870371103286743,
-0.05066494643688202,
0.01688777096569538,
-0.03784172981977463,
-0.15489667654037476,
-0.04593948274850845,
0.10056547075510025,
0.1535111963748932,
0.061108093708753586,
0.013433986343443394,
-0.00464659184217453,
0.019818061962723732,
-0.09406410902738571,
0.07322954386472702,
0.1402081698179245,
0.09654828906059265,
0.036169346421957016,
-0.03235730156302452,
-0.059797536581754684,
-0.17432118952274323,
-0.08140551298856735,
0.07628369331359863,
0.16285201907157898,
-0.02333891950547695,
0.08366062492132187,
0.1653541922569275,
-0.13880275189876556,
-0.18813109397888184,
-0.0035503993276506662,
0.026630962267518044,
0.04371720552444458,
0.029805602505803108,
-0.1765977442264557,
0.009855283424258232,
0.08734800666570663,
0.032852109521627426,
0.1017417386174202,
-0.2088310718536377,
-0.09750352054834366,
0.10219384729862213,
0.10084521025419235,
0.019846970215439796,
-0.1074446365237236,
-0.029853178188204765,
-0.0031231434550136328,
-0.02990349382162094,
0.07340066879987717,
-0.11021985113620758,
0.06701672077178955,
0.005640766117721796,
0.020303094759583473,
0.03551782667636871,
-0.008047571405768394,
0.14422066509723663,
0.019588349387049675,
0.08029650896787643,
-0.11243438720703125,
-0.05053181201219559,
-0.030624324455857277,
-0.0380718819797039,
0.1166989803314209,
-0.01299657765775919,
-0.02030298113822937,
-0.02140604890882969,
-0.0415717214345932,
-0.08191885054111481,
0.05738845467567444,
-0.06253045052289963,
-0.0400630347430706,
-0.05102960765361786,
0.06759953498840332,
0.057869795709848404,
-0.005983392242342234,
-0.006084630265831947,
-0.07641314715147018,
0.03227843716740608,
0.042627885937690735,
0.21537987887859344,
0.08063382655382156,
-0.06604932993650436,
-0.0012770602479577065,
-0.018285734578967094,
0.08300265669822693,
-0.10986808687448502,
-0.003160049207508564,
0.06964275985956192,
0.0030117479618638754,
0.17154890298843384,
0.01786022074520588,
-0.1797381490468979,
0.020086189731955528,
0.04068726673722267,
-0.14433538913726807,
-0.07199471443891525,
-0.02331419289112091,
0.02274235151708126,
-0.11264748126268387,
-0.05312313139438629,
0.13026127219200134,
-0.05660311505198479,
-0.008058562874794006,
0.00648476742208004,
0.06863806396722794,
-0.007855911739170551,
0.07005625218153,
0.05894309654831886,
0.054547689855098724,
-0.01793452352285385,
0.07871874421834946,
0.10164593905210495,
-0.06870420277118683,
0.09275033324956894,
0.12015877664089203,
-0.08596358448266983,
-0.047955598682165146,
-0.07356656342744827,
0.08591199666261673,
0.001926515600644052,
-0.09108326584100723,
0.015772011131048203,
-0.0742257833480835,
-0.0043593342415988445,
0.1608286052942276,
0.01827511377632618,
0.05971885472536087,
-0.00044739514123648405,
0.007543936837464571,
-0.08891857415437698,
0.06562337279319763,
0.02863762155175209,
0.02711273729801178,
-0.07264474779367447,
0.11300888657569885,
0.047192759811878204,
0.023168785497546196,
-0.013675331138074398,
-0.03356759995222092,
-0.10928375273942947,
0.013001339510083199,
-0.09722001105546951,
0.026390308514237404,
-0.08334383368492126,
0.008830832317471504,
-0.005477534607052803,
-0.022920576855540276,
0.03709746524691582,
0.02605787292122841,
-0.01860334537923336,
-0.002713799010962248,
0.023051487281918526,
0.016425058245658875,
-0.12399426102638245,
-0.04594692587852478,
0.051300980150699615,
-0.0870375856757164,
0.08051787316799164,
0.013169961981475353,
-0.0564776249229908,
0.0256369486451149,
-0.2286965698003769,
0.0689486712217331,
-0.0017583910375833511,
-0.015456439927220345,
-0.028413686901330948,
-0.17427749931812286,
-0.019464194774627686,
-0.04228365421295166,
-0.02140943333506584,
0.008027913980185986,
0.028800662606954575,
-0.05410946160554886,
0.08465529978275299,
0.04715662822127342,
-0.03818769380450249,
-0.09616457670927048,
0.05764768272638321,
0.10533257573843002,
-0.009457942098379135,
0.12522520124912262,
-0.06663181632757187,
0.05194070190191269,
-0.10653673857450485,
0.01575888879597187,
0.0426313579082489,
0.020545868203043938,
0.017741652205586433,
-0.07675352692604065,
0.04301938787102699,
-0.02814646065235138,
0.11636291444301605,
-0.029845265671610832,
-0.03333329036831856,
0.044759783893823624,
-0.07798010110855103,
-0.08734726160764694,
0.05027884989976883,
-0.0014617955312132835,
-0.07943842560052872,
-0.03771759569644928,
-0.04352967441082001,
-0.004341838415712118,
-0.031247243285179138,
-0.02460252121090889,
0.1375788003206253,
0.09030664712190628,
0.09893026947975159,
0.032624535262584686,
-0.03220174461603165,
-0.07063554972410202,
-0.03319822996854782,
0.02320580743253231,
0.04453359544277191,
-0.03269471973180771,
-0.025551436468958855,
0.0855252668261528,
0.14526352286338806,
-0.09837708622217178,
0.04637087881565094,
-0.07186248898506165,
-0.08671805262565613,
-0.04495766758918762,
-0.19616229832172394,
-0.02221684902906418,
0.004853119142353535,
-0.009519844315946102,
-0.09766978770494461,
0.03188628703355789,
0.06961211562156677,
-0.008424986153841019,
-0.07001951336860657,
0.08463645726442337,
0.029072435572743416,
-0.08290610462427139,
0.0569944903254509,
-0.009662097319960594,
0.01473192684352398,
0.0038960587698966265,
0.027998290956020355,
0.04485494643449783,
0.020445676520466805,
0.04343681037425995,
0.0857689380645752,
0.085207998752594,
0.015938650816679,
-0.058274973183870316,
-0.08687766641378403,
0.03713642805814743,
0.03259868547320366,
0.07051634788513184,
0.13623805344104767,
0.08193149417638779,
-0.0517241396009922,
0.002988888183608651,
0.11515006422996521,
0.018227672204375267,
-0.0646623745560646,
-0.0991068109869957,
0.20152002573013306,
-0.005011245608329773,
-0.02849121205508709,
0.04319417476654053,
-0.1314598023891449,
0.08718329668045044,
0.18115630745887756,
0.11244505643844604,
-0.07111088931560516,
0.0038439424242824316,
-0.05069614201784134,
0.012876948341727257,
0.03942035138607025,
0.057338740676641464,
0.08425901085138321,
0.17008811235427856,
-0.08533789217472076,
0.08403626084327698,
-0.046226371079683304,
0.03948080539703369,
-0.01293956395238638,
0.12756630778312683,
0.012591869570314884,
0.032514046877622604,
-0.096669502556324,
0.0660630613565445,
-0.032670289278030396,
-0.2648940682411194,
-0.05427172780036926,
-0.04714112728834152,
-0.06284240633249283,
0.004579953849315643,
-0.04922983795404434,
-0.01625499129295349,
0.08013266324996948,
0.006161197554320097,
-0.010243804194033146,
0.1093042865395546,
0.02160036936402321,
-0.06301223486661911,
0.014904956333339214,
0.06648044288158417,
-0.08527001738548279,
0.14848531782627106,
0.011121824383735657,
0.1334795355796814,
0.06913946568965912,
-0.00815768912434578,
-0.09220235049724579,
0.05022327974438667,
-0.009438183158636093,
0.05304384604096413,
0.022277219220995903,
0.17951694130897522,
0.022276557981967926,
0.04025961086153984,
0.10754568129777908,
-0.06691233813762665,
0.05487176030874252,
0.023455824702978134,
-0.04225240647792816,
-0.040834397077560425,
0.07893486320972443,
-0.07636728882789612,
0.17071329057216644,
0.1672106385231018,
-0.011784432455897331,
0.0069320774637162685,
-0.04229601100087166,
-0.023131409659981728,
-0.03495963662862778,
0.05370524525642395,
0.030616287142038345,
-0.11205548793077469,
0.009659234434366226,
-0.023956160992383957,
0.05760161951184273,
-0.2599245011806488,
-0.04154657945036888,
0.0033257324248552322,
-0.04358271136879921,
-0.03200948238372803,
0.05345290154218674,
0.010656994767487049,
0.00936120469123125,
-0.045974962413311005,
-0.0037719751708209515,
-0.003813942661508918,
0.11891476809978485,
-0.08709575980901718,
-0.042528681457042694
] |
null | null | transformers |
# xlm-clm-ende-1024
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
The XLM model was proposed in [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample, Alexis Conneau. xlm-clm-ende-1024 is a transformer pretrained using a causal language modeling (CLM) objective (next token prediction) for English-German.
## Model Description
- **Developed by:** Guillaume Lample, Alexis Conneau, see [associated paper](https://arxiv.org/abs/1901.07291)
- **Model type:** Language model
- **Language(s) (NLP):** English-German
- **License:** Unknown
- **Related Models:** [xlm-clm-enfr-1024](https://huggingface.co/xlm-clm-enfr-1024), [xlm-mlm-ende-1024](https://huggingface.co/xlm-mlm-ende-1024), [xlm-mlm-enfr-1024](https://huggingface.co/xlm-mlm-enfr-1024), [xlm-mlm-enro-1024](https://huggingface.co/xlm-mlm-enro-1024)
- **Resources for more information:**
- [Associated paper](https://arxiv.org/abs/1901.07291)
- [GitHub Repo](https://github.com/facebookresearch/XLM)
- [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings)
# Uses
## Direct Use
The model is a language model. The model can be used for causal language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the [Hugging Face Multilingual Models for Inference](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for details on the training data and training procedure.
# Evaluation
## Testing Data, Factors & Metrics
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for details on the testing data, factors and metrics.
## Results
For xlm-clm-ende-1024 results, see Table 2 of the [associated paper](https://arxiv.org/pdf/1901.07291.pdf).
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
The model developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for further details.
# Citation
**BibTeX:**
```bibtex
@article{lample2019cross,
title={Cross-lingual language model pretraining},
author={Lample, Guillaume and Conneau, Alexis},
journal={arXiv preprint arXiv:1901.07291},
year={2019}
}
```
**APA:**
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
```python
import torch
from transformers import XLMTokenizer, XLMWithLMHeadModel
tokenizer = XLMTokenizer.from_pretrained("xlm-clm-ende-1024")
model = XLMWithLMHeadModel.from_pretrained("xlm-clm-ende-1024")
input_ids = torch.tensor([tokenizer.encode("Wikipedia was used to")]) # batch size of 1
language_id = tokenizer.lang2id["en"] # 0
langs = torch.tensor([language_id] * input_ids.shape[1]) # torch.tensor([0, 0, 0, ..., 0])
# We reshape it to be of size (batch_size, sequence_length)
langs = langs.view(1, -1) # is now of shape [1, sequence_length] (we have a batch size of 1)
outputs = model(input_ids, langs=langs)
```
</details> | {"language": ["multilingual", "en", "de"]} | fill-mask | FacebookAI/xlm-clm-ende-1024 | [
"transformers",
"pytorch",
"tf",
"safetensors",
"xlm",
"fill-mask",
"multilingual",
"en",
"de",
"arxiv:1901.07291",
"arxiv:1910.09700",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1901.07291",
"1910.09700"
] | [
"multilingual",
"en",
"de"
] | TAGS
#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #de #arxiv-1901.07291 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us
|
# xlm-clm-ende-1024
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
# Model Details
The XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-clm-ende-1024 is a transformer pretrained using a causal language modeling (CLM) objective (next token prediction) for English-German.
## Model Description
- Developed by: Guillaume Lample, Alexis Conneau, see associated paper
- Model type: Language model
- Language(s) (NLP): English-German
- License: Unknown
- Related Models: xlm-clm-enfr-1024, xlm-mlm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024
- Resources for more information:
- Associated paper
- GitHub Repo
- Hugging Face Multilingual Models for Inference docs
# Uses
## Direct Use
The model is a language model. The model can be used for causal language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face Multilingual Models for Inference docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the associated paper for details on the training data and training procedure.
# Evaluation
## Testing Data, Factors & Metrics
See the associated paper for details on the testing data, factors and metrics.
## Results
For xlm-clm-ende-1024 results, see Table 2 of the associated paper.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: More information needed
- Hours used: More information needed
- Cloud Provider: More information needed
- Compute Region: More information needed
- Carbon Emitted: More information needed
# Technical Specifications
The model developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
See the associated paper for further details.
BibTeX:
APA:
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
</details> | [
"# xlm-clm-ende-1024",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-clm-ende-1024 is a transformer pretrained using a causal language modeling (CLM) objective (next token prediction) for English-German.",
"## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-German\n- License: Unknown\n- Related Models: xlm-clm-enfr-1024, xlm-mlm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for causal language modeling.",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face Multilingual Models for Inference docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the associated paper for details on the training data and training procedure.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nSee the associated paper for details on the testing data, factors and metrics.",
"## Results \n\nFor xlm-clm-ende-1024 results, see Table 2 of the associated paper.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
"TAGS\n#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #de #arxiv-1901.07291 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us \n",
"# xlm-clm-ende-1024",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-clm-ende-1024 is a transformer pretrained using a causal language modeling (CLM) objective (next token prediction) for English-German.",
"## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-German\n- License: Unknown\n- Related Models: xlm-clm-enfr-1024, xlm-mlm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for causal language modeling.",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face Multilingual Models for Inference docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the associated paper for details on the training data and training procedure.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nSee the associated paper for details on the testing data, factors and metrics.",
"## Results \n\nFor xlm-clm-ende-1024 results, see Table 2 of the associated paper.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
71,
10,
51,
73,
125,
3,
22,
34,
28,
50,
34,
16,
3,
27,
22,
68,
133,
18,
41
] | [
"passage: TAGS\n#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #de #arxiv-1901.07291 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us \n# xlm-clm-ende-1024# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-clm-ende-1024 is a transformer pretrained using a causal language modeling (CLM) objective (next token prediction) for English-German.## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-German\n- License: Unknown\n- Related Models: xlm-clm-enfr-1024, xlm-mlm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs# Uses## Direct Use\n\nThe model is a language model. The model can be used for causal language modeling.## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face Multilingual Models for Inference docs.## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model."
] | [
-0.0659625306725502,
0.11550785601139069,
-0.005503976251929998,
0.05855664238333702,
0.019291484728455544,
-0.023518243804574013,
0.11013468354940414,
0.04060865938663483,
0.06620494276285172,
0.08395463228225708,
0.0009432918741367757,
0.062353476881980896,
0.0665663629770279,
0.05404463782906532,
0.007018585689365864,
-0.19394806027412415,
0.04881570115685463,
-0.0975709855556488,
0.05893693119287491,
0.07587457448244095,
0.13150107860565186,
-0.04766473174095154,
0.09549422562122345,
0.0019119534408673644,
-0.027214733883738518,
0.0010762737365439534,
-0.015974100679159164,
-0.015599467791616917,
0.05115751177072525,
0.08625784516334534,
0.0726323276758194,
0.00029741431353613734,
0.07371564209461212,
-0.17421197891235352,
0.013041000813245773,
0.02034814842045307,
-0.018609238788485527,
0.039478763937950134,
0.05803809314966202,
-0.02693473920226097,
0.14998790621757507,
-0.10370228439569473,
0.07981251925230026,
0.04948544129729271,
-0.08843439817428589,
-0.11965445429086685,
-0.12447988241910934,
0.10943833738565445,
0.08441512286663055,
0.08159492164850235,
-0.023326387628912926,
0.12383955717086792,
0.02806556224822998,
0.0194980688393116,
0.12647558748722076,
-0.16620169579982758,
-0.03216848149895668,
0.049988966435194016,
0.04219059646129608,
-0.013719807378947735,
-0.053680501878261566,
0.03257080540060997,
0.030991390347480774,
0.03148691728711128,
0.024313725531101227,
-0.04161828011274338,
0.16077262163162231,
-0.04344566538929939,
-0.12578313052654266,
-0.0024799546226859093,
0.06188308075070381,
0.03370652720332146,
-0.09861855953931808,
-0.21992219984531403,
-0.02385712042450905,
0.10705174505710602,
0.007970177568495274,
-0.07454793155193329,
0.03882206976413727,
-0.01794140413403511,
0.1506473273038864,
-0.05317109078168869,
-0.0627756342291832,
0.04705141857266426,
-0.03396609425544739,
0.1897285282611847,
0.028842365369200706,
0.007654934655874968,
0.027737773954868317,
0.08764278888702393,
-0.0008717415621504188,
-0.09343437105417252,
-0.07775598019361496,
-0.10136458277702332,
-0.07793894410133362,
0.0007399601163342595,
-0.00999731756746769,
-0.0217879805713892,
0.002149057574570179,
0.12104900926351547,
-0.014429712668061256,
0.03235786408185959,
0.034761760383844376,
0.015547103248536587,
0.07739797979593277,
0.1315046101808548,
-0.04807334020733833,
-0.07034285366535187,
0.03113689087331295,
0.01830109767615795,
0.06448446959257126,
-0.023226546123623848,
-0.05211072787642479,
-0.022029289975762367,
-0.03836696967482567,
0.09290442615747452,
0.0474940724670887,
0.04308144748210907,
-0.05141296982765198,
-0.06979150325059891,
0.09606818109750748,
-0.17520542442798615,
0.050559572875499725,
-0.009212776087224483,
-0.037292882800102234,
0.07778030633926392,
0.03966240584850311,
0.010765806771814823,
-0.06983576714992523,
-0.015188814140856266,
-0.019493641331791878,
-0.010084784589707851,
-0.10357064753770828,
-0.12015605717897415,
0.027996279299259186,
0.07821973413228989,
-0.028129562735557556,
-0.10455696284770966,
-0.08729691058397293,
-0.09945902973413467,
0.08724299818277359,
-0.05627011880278587,
-0.030173568055033684,
-0.04324627295136452,
-0.04377357289195061,
-0.015628216788172722,
0.03868339955806732,
-0.1026732474565506,
0.016821354627609253,
-0.024880019947886467,
-0.06057928502559662,
0.022738419473171234,
0.0319952666759491,
0.001661623944528401,
-0.04022033512592316,
0.03210757300257683,
-0.17107747495174408,
0.12394478172063828,
-0.05852613225579262,
0.011943469755351543,
-0.09688384085893631,
-0.014524311758577824,
0.06613168120384216,
0.06974831968545914,
0.007466808892786503,
0.12047247588634491,
-0.1799088716506958,
-0.000442351185483858,
0.1740458756685257,
-0.11811390519142151,
-0.030574964359402657,
0.0633930191397667,
-0.05910040810704231,
0.08426288515329361,
0.11118979007005692,
-0.01100229099392891,
0.07325835525989532,
-0.18807953596115112,
-0.00553854601457715,
-0.046729281544685364,
-0.05387824401259422,
0.18304096162319183,
0.040181536227464676,
-0.04447193443775177,
0.007611548528075218,
0.018166178837418556,
-0.05248567834496498,
-0.06997853517532349,
0.04301932826638222,
-0.06180009990930557,
0.002795377979055047,
0.0008967329631559551,
0.022725097835063934,
-0.040032193064689636,
-0.09056438505649567,
-0.014634407125413418,
-0.1286194622516632,
-0.01929807849228382,
0.0815325453877449,
-0.030899276956915855,
0.015180270187556744,
-0.08680547028779984,
0.0031469285022467375,
0.02828793041408062,
0.004358012229204178,
-0.1302928775548935,
-0.13761985301971436,
0.03139627352356911,
-0.14047116041183472,
0.14061084389686584,
0.09554996341466904,
0.0364549458026886,
0.0692765861749649,
-0.027068201452493668,
-0.015491889789700508,
-0.01400588359683752,
-0.008004513569176197,
-0.029433276504278183,
-0.16517561674118042,
-0.011434721760451794,
-0.0590992271900177,
0.07344923168420792,
-0.19108659029006958,
0.024020852521061897,
0.013370305299758911,
0.043206892907619476,
0.029141170904040337,
-0.004624680150300264,
0.0019051783019676805,
-0.022738460451364517,
0.0016621531685814261,
-0.04245905578136444,
0.011708964593708515,
-0.030921082943677902,
-0.06339067965745926,
0.09140420705080032,
-0.17014534771442413,
-0.0662599578499794,
0.06079892814159393,
0.0249100923538208,
-0.1351742297410965,
-0.04639865830540657,
-0.017346059903502464,
-0.015843071043491364,
-0.0209792610257864,
-0.07970636337995529,
0.21665167808532715,
0.031554289162158966,
0.03502427041530609,
-0.08654936403036118,
-0.06651922315359116,
-0.041534192860126495,
-0.034732040017843246,
-0.058919958770275116,
0.07898019254207611,
0.038544271141290665,
-0.12853214144706726,
0.042353931814432144,
0.07799620926380157,
0.0551927350461483,
0.0714007243514061,
0.030116356909275055,
-0.05121202766895294,
-0.06444116681814194,
0.01812531240284443,
0.0011148160556331277,
0.04323399066925049,
0.14412127435207367,
0.02678805962204933,
0.040179673582315445,
0.009090625680983067,
0.003353619948029518,
-0.08757856488227844,
0.03261784464120865,
0.05121755227446556,
-0.003666699631139636,
0.013490648940205574,
0.015599998645484447,
0.016202855855226517,
0.08821140229701996,
0.01445306558161974,
-0.005969611462205648,
-0.0019019772298634052,
-0.059991199523210526,
-0.12249334156513214,
0.13588681817054749,
-0.09153548628091812,
-0.20975451171398163,
-0.10537606477737427,
-0.02137093059718609,
-0.0572352334856987,
-0.014980271458625793,
-0.0019155109766870737,
-0.023957153782248497,
-0.11954674869775772,
-0.1252535730600357,
0.06602152436971664,
0.000290930038318038,
-0.10388316959142685,
-0.011712840758264065,
0.023707550019025803,
-0.00288462545722723,
-0.1368306428194046,
-0.0299584548920393,
-0.02315252460539341,
-0.07331632822751999,
-0.03978104889392853,
0.031275130808353424,
0.04510316252708435,
0.1272471845149994,
0.001259109703823924,
-0.026303669437766075,
0.005380844697356224,
0.21567732095718384,
-0.08105525374412537,
0.101997509598732,
0.1318785846233368,
-0.08371008187532425,
0.07048073410987854,
0.16848410665988922,
0.052935317158699036,
-0.06222831830382347,
-0.0014917348744347692,
0.02020447701215744,
-0.01705975830554962,
-0.23185865581035614,
-0.09609511494636536,
-0.035631947219371796,
-0.06471556425094604,
0.039959199726581573,
0.04174211621284485,
0.07630610466003418,
0.014258979819715023,
-0.06532856822013855,
-0.0357949398458004,
0.1205911859869957,
0.10293562710285187,
0.09474023431539536,
-0.00980139896273613,
0.04617447033524513,
-0.03955912962555885,
-0.001237330143339932,
0.08084221184253693,
-0.020465495064854622,
0.2460671067237854,
0.0617537796497345,
0.06914059817790985,
0.09705594927072525,
-0.017401231452822685,
0.01836164854466915,
0.030819276347756386,
-0.01930234767496586,
0.02827983908355236,
-0.03300657868385315,
-0.09587237238883972,
0.04003783315420151,
0.12242560088634491,
0.007844298146665096,
0.016232574358582497,
-0.006253999192267656,
-0.04008612409234047,
0.06622716784477234,
0.08421403169631958,
0.019893012940883636,
-0.10097301751375198,
-0.021635180339217186,
0.05477209389209747,
-0.06172478571534157,
-0.06379243731498718,
0.009010720066726208,
0.0011269438546150923,
-0.1493605375289917,
0.09310238808393478,
-0.017636025324463844,
0.0959356278181076,
-0.11773113906383514,
-0.013521412387490273,
-0.004885665141046047,
0.11894236505031586,
0.023036295548081398,
0.049508824944496155,
-0.0938706025481224,
0.14096897840499878,
0.026630375534296036,
0.054312627762556076,
-0.062418729066848755,
0.06620592623949051,
0.017422305420041084,
0.031741708517074585,
0.13550853729248047,
0.029692169278860092,
-0.16904966533184052,
-0.007900673896074295,
-0.05745726823806763,
-0.0031786703038960695,
0.06712901592254639,
-0.05597309395670891,
0.10107522457838058,
-0.019057266414165497,
-0.03762802854180336,
-0.02952999621629715,
-0.024018650874495506,
-0.16342301666736603,
-0.21123498678207397,
0.06307386606931686,
-0.061040688306093216,
-0.015261240303516388,
-0.06272916495800018,
-0.04578009620308876,
-0.056766606867313385,
0.2456306666135788,
-0.1648280769586563,
-0.09375323355197906,
-0.11559414863586426,
-0.08295485377311707,
0.1193876564502716,
-0.08179356157779694,
0.03334327042102814,
-0.004941674880683422,
0.12099642306566238,
-0.0648711770772934,
-0.07900914549827576,
0.05223231762647629,
-0.07586140930652618,
-0.10101336240768433,
-0.02995905466377735,
0.15559381246566772,
0.12210676819086075,
0.03766578808426857,
0.03775474429130554,
0.04070832580327988,
0.020609930157661438,
-0.13798950612545013,
-0.012114214710891247,
0.20603452622890472,
0.04971864074468613,
0.03535877913236618,
-0.12086721509695053,
-0.12815216183662415,
-0.09071773290634155,
-0.03382552042603493,
0.06876716017723083,
0.16591842472553253,
-0.04191499203443527,
0.1421971172094345,
0.1177000030875206,
-0.11811810731887817,
-0.17557759582996368,
0.0022945492528378963,
0.048838887363672256,
0.03936795890331268,
0.0718403086066246,
-0.1559540033340454,
0.031159959733486176,
-0.024285003542900085,
0.014915401116013527,
0.09548012167215347,
-0.144273579120636,
-0.1304209977388382,
0.08648073673248291,
0.02938424050807953,
0.010185937397181988,
-0.0366750992834568,
-0.05933765694499016,
-0.04821879789233208,
-0.14241892099380493,
0.08514062315225601,
-0.0037569652777165174,
0.03179135173559189,
0.040714018046855927,
0.05504700914025307,
0.04848259314894676,
-0.009416840970516205,
0.1515987068414688,
0.025675499811768532,
0.08448980003595352,
-0.10646842420101166,
-0.11178703606128693,
-0.05186942592263222,
-0.049800992012023926,
0.14192445576190948,
0.003093414707109332,
0.0037517754826694727,
-0.0456988625228405,
-0.07142848521471024,
-0.0443255640566349,
0.041236624121665955,
-0.0733911395072937,
-0.036278579384088516,
-0.06992354243993759,
0.09894590079784393,
0.0888427197933197,
-0.0171902384608984,
-0.03897297382354736,
-0.09182006120681763,
-0.08013037592172623,
0.09741836041212082,
0.18128760159015656,
0.08013443648815155,
-0.050851866602897644,
0.0038558333180844784,
-0.002700183540582657,
0.05078323930501938,
-0.06387389451265335,
0.027506686747074127,
0.07777489721775055,
-0.024356981739401817,
0.10705529898405075,
-0.028500167652964592,
-0.14753973484039307,
-0.05240023881196976,
0.013277770020067692,
-0.057899970561265945,
-0.15079352259635925,
-0.029965316876769066,
0.03420498967170715,
-0.05315839871764183,
-0.04812855273485184,
0.15020668506622314,
-0.04384731501340866,
-0.032347675412893295,
0.01128424797207117,
0.06714887917041779,
-0.0055554150603711605,
0.004035151097923517,
0.02888360060751438,
0.010889397002756596,
-0.04500989988446236,
0.02439691871404648,
0.05329728499054909,
-0.005102174822241068,
0.039589736610651016,
0.08749514073133469,
-0.052256885915994644,
-0.05501079931855202,
-0.05102386325597763,
0.10536634176969528,
-0.06404800713062286,
-0.05326097458600998,
0.024295002222061157,
-0.12252625077962875,
0.0005677773733623326,
0.10657967627048492,
0.03368069976568222,
-0.005601059645414352,
-0.007882621139287949,
-0.009429984726011753,
-0.02829659730195999,
0.08421432226896286,
0.05890217050909996,
-0.00024167019000742584,
-0.021667586639523506,
0.014562640339136124,
0.025778107345104218,
0.009265697561204433,
-0.008852730505168438,
-0.021031301468610764,
-0.0880926325917244,
-0.032135382294654846,
-0.16406913101673126,
-0.0029103413689881563,
-0.041542958468198776,
0.020815307274460793,
0.007531590759754181,
-0.023607267066836357,
0.02108760178089142,
0.041084639728069305,
-0.05635853856801987,
-0.025242796167731285,
-0.014804375357925892,
0.055240198969841,
-0.11161389946937561,
-0.026793304830789566,
0.054750893265008926,
-0.07189597934484482,
0.048076268285512924,
-0.006847755517810583,
-0.027617663145065308,
0.01899826154112816,
-0.15807482600212097,
0.032696433365345,
-0.03643280640244484,
0.03412756696343422,
0.02850399538874626,
-0.23839078843593597,
-0.004173065535724163,
-0.00600816123187542,
-0.04401736706495285,
-0.03095632791519165,
-0.017496826127171516,
-0.06582257151603699,
0.04985090345144272,
0.051747262477874756,
-0.11004381626844406,
-0.04736610874533653,
0.044870954006910324,
0.04247657209634781,
-0.012440026737749577,
0.12086296826601028,
-0.03505150228738785,
0.08640959113836288,
-0.10274922847747803,
-0.009416228160262108,
0.02556406334042549,
0.03679143637418747,
0.03972764313220978,
-0.06068648770451546,
0.04853678494691849,
0.007196673657745123,
0.1659172922372818,
-0.004623157903552055,
-0.05441944673657417,
0.041909363120794296,
-0.013822558335959911,
-0.04473318159580231,
0.05398636683821678,
-0.07260703295469284,
-0.051508188247680664,
0.04977772384881973,
-0.03365631774067879,
-0.04671033099293709,
-0.026622697710990906,
-0.1339925080537796,
0.13285551965236664,
0.10514802485704422,
0.14487652480602264,
0.021336641162633896,
0.08375485986471176,
-0.021633893251419067,
-0.046734366565942764,
-0.0031034722924232483,
0.02219032682478428,
-0.022917671129107475,
-0.0691821426153183,
0.08878298103809357,
0.10640302300453186,
-0.11811050772666931,
0.11466579139232635,
0.0021615191362798214,
-0.03972350433468819,
-0.1087990254163742,
-0.23873910307884216,
-0.05333203449845314,
0.038927748799324036,
-0.02811279706656933,
-0.07741732150316238,
0.06122380495071411,
-0.04571635648608208,
0.027698419988155365,
-0.023011263459920883,
0.07100658863782883,
-0.128755122423172,
-0.07673465460538864,
0.04606543108820915,
0.03994738683104515,
0.02979658544063568,
0.06838645786046982,
0.05839938670396805,
-0.05214230343699455,
0.04037606343626976,
0.017350444570183754,
0.08052486181259155,
0.04033374413847923,
-0.011613069102168083,
-0.037472374737262726,
-0.06326764076948166,
-0.0183110348880291,
-0.0031838989816606045,
0.04335395619273186,
0.15818846225738525,
0.055274125188589096,
-0.0516197495162487,
-0.013536348938941956,
0.09358026832342148,
-0.028230080381035805,
-0.13214775919914246,
-0.12500600516796112,
0.11393838375806808,
-0.027759607881307602,
0.030269809067249298,
0.01004792284220457,
-0.07251352071762085,
0.050861213356256485,
0.16637863218784332,
0.2010629028081894,
-0.06456557661294937,
0.025875458493828773,
-0.02197439596056938,
0.015160605311393738,
0.00957750715315342,
0.040120553225278854,
-0.0012608247343450785,
0.3033654987812042,
-0.03779425844550133,
0.07351601123809814,
-0.044390350580215454,
-0.012138763442635536,
-0.08056783676147461,
0.15589354932308197,
-0.02553432621061802,
-0.016810622066259384,
-0.04259462282061577,
0.08994462341070175,
0.01193502452224493,
-0.19369617104530334,
0.021627197042107582,
-0.026656266301870346,
-0.0799771323800087,
0.0069174133241176605,
-0.015811873599886894,
0.03830893337726593,
0.0759127289056778,
0.016551507636904716,
-0.0694156289100647,
0.2606657147407532,
0.023022662848234177,
-0.06792058050632477,
-0.012146726250648499,
0.08640047162771225,
-0.016247466206550598,
0.17070208489894867,
0.04540407657623291,
0.13565583527088165,
0.08121412992477417,
-0.046357300132513046,
-0.09385885298252106,
0.050802215933799744,
0.04219520464539528,
-0.05607987940311432,
0.031884338706731796,
0.11963764578104019,
-0.010323425754904747,
0.09548996388912201,
0.08229301124811172,
-0.014810679480433464,
0.05861445143818855,
0.00600782735273242,
-0.10252813994884491,
-0.05265716090798378,
0.1386488676071167,
-0.11917457729578018,
0.13895153999328613,
0.16752862930297852,
-0.015035082586109638,
0.0012728405417874455,
-0.021843386813998222,
0.05004695802927017,
-0.003435099497437477,
0.05081019178032875,
0.012672468088567257,
-0.09167107194662094,
0.03272862732410431,
0.04697681963443756,
0.10114801675081253,
-0.1714659035205841,
-0.11350756138563156,
0.005804421845823526,
-0.00803839135915041,
-0.03669062629342079,
0.09086261689662933,
0.038266509771347046,
-0.010443994775414467,
-0.017712270841002464,
-0.07191932201385498,
0.03741201385855675,
0.07401252537965775,
-0.05596623942255974,
0.0022304262965917587
] |
null | null | transformers |
# xlm-clm-enfr-1024
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
The XLM model was proposed in [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample, Alexis Conneau. xlm-clm-enfr-1024 is a transformer pretrained using a causal language modeling (CLM) objective (next token prediction) for English-French.
## Model Description
- **Developed by:** Guillaume Lample, Alexis Conneau, see [associated paper](https://arxiv.org/abs/1901.07291)
- **Model type:** Language model
- **Language(s) (NLP):** English-French
- **License:** Unknown
- **Related Models:** [xlm-clm-ende-1024](https://huggingface.co/xlm-clm-ende-1024), [xlm-mlm-ende-1024](https://huggingface.co/xlm-mlm-ende-1024), [xlm-mlm-enfr-1024](https://huggingface.co/xlm-mlm-enfr-1024), [xlm-mlm-enro-1024](https://huggingface.co/xlm-mlm-enro-1024)
- **Resources for more information:**
- [Associated paper](https://arxiv.org/abs/1901.07291)
- [GitHub Repo](https://github.com/facebookresearch/XLM)
- [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings)
# Uses
## Direct Use
The model is a language model. The model can be used for causal language modeling (next token prediction).
## Downstream Use
To learn more about this task and potential downstream uses, see the [Hugging Face Multilingual Models for Inference](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for details on the training data and training procedure.
# Evaluation
## Testing Data, Factors & Metrics
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for details on the testing data, factors and metrics.
## Results
For xlm-clm-enfr-1024 results, see Table 2 of the [associated paper](https://arxiv.org/pdf/1901.07291.pdf).
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
The model developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for further details.
# Citation
**BibTeX:**
```bibtex
@article{lample2019cross,
title={Cross-lingual language model pretraining},
author={Lample, Guillaume and Conneau, Alexis},
journal={arXiv preprint arXiv:1901.07291},
year={2019}
}
```
**APA:**
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
```python
import torch
from transformers import XLMTokenizer, XLMWithLMHeadModel
tokenizer = XLMTokenizer.from_pretrained("xlm-clm-enfr-1024")
model = XLMWithLMHeadModel.from_pretrained("xlm-clm-enfr-1024")
input_ids = torch.tensor([tokenizer.encode("Wikipedia was used to")]) # batch size of 1
language_id = tokenizer.lang2id["en"] # 0
langs = torch.tensor([language_id] * input_ids.shape[1]) # torch.tensor([0, 0, 0, ..., 0])
# We reshape it to be of size (batch_size, sequence_length)
langs = langs.view(1, -1) # is now of shape [1, sequence_length] (we have a batch size of 1)
outputs = model(input_ids, langs=langs)
```
</details> | {"language": ["multilingual", "en", "fr"]} | fill-mask | FacebookAI/xlm-clm-enfr-1024 | [
"transformers",
"pytorch",
"tf",
"xlm",
"fill-mask",
"multilingual",
"en",
"fr",
"arxiv:1901.07291",
"arxiv:1910.09700",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1901.07291",
"1910.09700"
] | [
"multilingual",
"en",
"fr"
] | TAGS
#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #fr #arxiv-1901.07291 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us
|
# xlm-clm-enfr-1024
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
# Model Details
The XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-clm-enfr-1024 is a transformer pretrained using a causal language modeling (CLM) objective (next token prediction) for English-French.
## Model Description
- Developed by: Guillaume Lample, Alexis Conneau, see associated paper
- Model type: Language model
- Language(s) (NLP): English-French
- License: Unknown
- Related Models: xlm-clm-ende-1024, xlm-mlm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024
- Resources for more information:
- Associated paper
- GitHub Repo
- Hugging Face Multilingual Models for Inference docs
# Uses
## Direct Use
The model is a language model. The model can be used for causal language modeling (next token prediction).
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face Multilingual Models for Inference docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the associated paper for details on the training data and training procedure.
# Evaluation
## Testing Data, Factors & Metrics
See the associated paper for details on the testing data, factors and metrics.
## Results
For xlm-clm-enfr-1024 results, see Table 2 of the associated paper.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: More information needed
- Hours used: More information needed
- Cloud Provider: More information needed
- Compute Region: More information needed
- Carbon Emitted: More information needed
# Technical Specifications
The model developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
See the associated paper for further details.
BibTeX:
APA:
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model.
<details>
<summary> Click to expand </summary>
</details> | [
"# xlm-clm-enfr-1024",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-clm-enfr-1024 is a transformer pretrained using a causal language modeling (CLM) objective (next token prediction) for English-French.",
"## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-French\n- License: Unknown\n- Related Models: xlm-clm-ende-1024, xlm-mlm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for causal language modeling (next token prediction).",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face Multilingual Models for Inference docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the associated paper for details on the training data and training procedure.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nSee the associated paper for details on the testing data, factors and metrics.",
"## Results \n\nFor xlm-clm-enfr-1024 results, see Table 2 of the associated paper.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
"TAGS\n#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #fr #arxiv-1901.07291 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us \n",
"# xlm-clm-enfr-1024",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-clm-enfr-1024 is a transformer pretrained using a causal language modeling (CLM) objective (next token prediction) for English-French.",
"## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-French\n- License: Unknown\n- Related Models: xlm-clm-ende-1024, xlm-mlm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for causal language modeling (next token prediction).",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face Multilingual Models for Inference docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the associated paper for details on the training data and training procedure.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nSee the associated paper for details on the testing data, factors and metrics.",
"## Results \n\nFor xlm-clm-enfr-1024 results, see Table 2 of the associated paper.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
66,
11,
51,
76,
126,
3,
29,
34,
28,
50,
34,
16,
3,
27,
23,
68,
133,
18,
41
] | [
"passage: TAGS\n#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #fr #arxiv-1901.07291 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us \n# xlm-clm-enfr-1024# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-clm-enfr-1024 is a transformer pretrained using a causal language modeling (CLM) objective (next token prediction) for English-French.## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-French\n- License: Unknown\n- Related Models: xlm-clm-ende-1024, xlm-mlm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs# Uses## Direct Use\n\nThe model is a language model. The model can be used for causal language modeling (next token prediction).## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face Multilingual Models for Inference docs.## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021))."
] | [
-0.06254830956459045,
0.13683293759822845,
-0.005411879159510136,
0.05768999829888344,
0.02222803235054016,
-0.010958193801343441,
0.11953507363796234,
0.068208709359169,
0.052889712154865265,
0.06667754799127579,
0.010117792524397373,
0.08230467140674591,
0.0737295001745224,
0.06558339297771454,
-0.013583899475634098,
-0.22838474810123444,
0.03508063405752182,
-0.08690812438726425,
0.07153630256652832,
0.06991152465343475,
0.11305570602416992,
-0.04399823024868965,
0.09548294544219971,
0.02938098832964897,
-0.03307661414146423,
-0.0057988520711660385,
-0.01984631083905697,
-0.02651468850672245,
0.056578561663627625,
0.11040250211954117,
0.06140028312802315,
0.0009291695314459503,
0.07354497164487839,
-0.20676030218601227,
0.018134839832782745,
0.016137897968292236,
-0.014575720764696598,
0.05304470285773277,
0.07502525299787521,
-0.03423383831977844,
0.15049493312835693,
-0.08723881840705872,
0.08056982606649399,
0.046432532370090485,
-0.06967289745807648,
-0.12462420761585236,
-0.11320389807224274,
0.10504720360040665,
0.05109185725450516,
0.07546857744455338,
-0.016913484781980515,
0.13998191058635712,
0.005852090660482645,
0.02198137156665325,
0.11534415930509567,
-0.19697080552577972,
-0.03422623872756958,
0.08518310636281967,
0.07037345319986343,
-0.01630287803709507,
-0.05917690694332123,
0.0438101626932621,
0.024550287052989006,
0.02865544520318508,
0.006960723083466291,
-0.04557100683450699,
0.13989900052547455,
-0.033934541046619415,
-0.1265704482793808,
0.009755990467965603,
0.07414595782756805,
0.0319971963763237,
-0.08363595604896545,
-0.19040893018245697,
-0.011924872174859047,
0.14208930730819702,
-0.01645512320101261,
-0.07133909314870834,
0.042344994843006134,
-0.019835004583001137,
0.16062109172344208,
-0.07735922187566757,
-0.058506567031145096,
0.03590749204158783,
-0.058652348816394806,
0.17795637249946594,
0.037652675062417984,
0.01888604462146759,
0.024991406127810478,
0.07071088254451752,
-0.04775296896696091,
-0.07780648022890091,
-0.07702723890542984,
-0.10695964843034744,
-0.08113884180784225,
-0.013643120415508747,
0.0012213725131005049,
-0.002589260693639517,
0.010678288526833057,
0.14117933809757233,
-0.050096116960048676,
0.04636968672275543,
0.03457389026880264,
0.008532741107046604,
0.07928162813186646,
0.09778981655836105,
-0.056034766137599945,
-0.0604843944311142,
0.03158639371395111,
0.01779796928167343,
0.03298144042491913,
-0.02944459579885006,
-0.05988242104649544,
-0.004146975930780172,
-0.0683077797293663,
0.0759655013680458,
0.0535583421587944,
0.029544351622462273,
-0.03068295307457447,
-0.0663130059838295,
0.12384400516748428,
-0.15829524397850037,
0.04865177348256111,
-0.00018029662896879017,
-0.025654472410678864,
0.09422654658555984,
0.03105902299284935,
0.024562131613492966,
-0.055088307708501816,
-0.005801245104521513,
-0.04571818187832832,
-0.016846006736159325,
-0.08844327181577682,
-0.1124117523431778,
0.020165059715509415,
0.04191620647907257,
-0.026151562109589577,
-0.09753916412591934,
-0.10996304452419281,
-0.09136962890625,
0.07933846116065979,
-0.08454856276512146,
-0.01931789517402649,
-0.037130698561668396,
-0.0446709580719471,
0.006119455210864544,
0.04106440395116806,
-0.04763670638203621,
0.00155721977353096,
-0.038989294320344925,
-0.04681171104311943,
0.02121151052415371,
0.014121574349701405,
0.00691689969971776,
-0.020186055451631546,
0.03791004419326782,
-0.11003892868757248,
0.11772176623344421,
-0.06626458466053009,
-0.0025923089124262333,
-0.10196775943040848,
-0.013267099857330322,
0.04358406737446785,
0.0732363909482956,
0.005287695676088333,
0.11005599796772003,
-0.189019575715065,
-0.011286219581961632,
0.16312037408351898,
-0.11443614214658737,
-0.037719640880823135,
0.06656890362501144,
-0.055150359869003296,
0.07529479265213013,
0.08603036403656006,
0.02860409952700138,
0.09859006851911545,
-0.16544440388679504,
-0.007904366590082645,
-0.010435396805405617,
-0.03666800633072853,
0.14119678735733032,
0.058344192802906036,
-0.05649319663643837,
-0.008777834475040436,
0.007464167661964893,
-0.06836460530757904,
-0.07142280042171478,
0.016248265281319618,
-0.057814646512269974,
0.0058494918048381805,
-0.010224261321127415,
0.0236696507781744,
-0.031065387651324272,
-0.06609731167554855,
-0.00174485775642097,
-0.12936073541641235,
0.008138061501085758,
0.08498057723045349,
-0.036605510860681534,
0.008832537569105625,
-0.08662987500429153,
0.0493769496679306,
0.01751348376274109,
-0.0029481963720172644,
-0.13310332596302032,
-0.11587537080049515,
0.028768740594387054,
-0.11555731296539307,
0.12719647586345673,
0.07698329538106918,
0.03043288365006447,
0.07574565708637238,
-0.01157733891159296,
0.014112260192632675,
0.013755889609456062,
-0.004072061274200678,
-0.04937558248639107,
-0.17438183724880219,
-0.018161555752158165,
-0.06079095974564552,
0.08117251843214035,
-0.20486117899417877,
0.016337072476744652,
-0.010323901660740376,
0.05148429423570633,
0.010886797681450844,
-0.006943416781723499,
0.004028976894915104,
-0.015460467897355556,
-0.0027013951912522316,
-0.035716328769922256,
0.032393913716077805,
-0.03058907762169838,
-0.05812700465321541,
0.08912141621112823,
-0.15691204369068146,
-0.07151626795530319,
0.0676136240363121,
0.052315082401037216,
-0.11667560786008835,
-0.039140090346336365,
-0.012645107693970203,
-0.02004772610962391,
-0.02354981005191803,
-0.04896033927798271,
0.23059405386447906,
0.04425712674856186,
0.04811040312051773,
-0.09467329829931259,
-0.06202167272567749,
-0.03073081374168396,
-0.03396710008382797,
-0.052441369742155075,
0.07977912575006485,
0.07983244955539703,
-0.09552404284477234,
0.037332966923713684,
0.05518447980284691,
0.03036613017320633,
0.1026877909898758,
0.030771266669034958,
-0.06006835028529167,
-0.058467794209718704,
-0.01115322019904852,
0.0006932764663361013,
0.04208189994096756,
0.10221361368894577,
0.023307565599679947,
0.04976019263267517,
0.008393827825784683,
0.021361248567700386,
-0.10160212218761444,
0.02639666758477688,
0.03662727400660515,
-0.0014873716281726956,
0.015581833198666573,
0.03032987006008625,
0.008434852585196495,
0.07511039078235626,
0.029658012092113495,
-0.026895413175225258,
-0.00898794736713171,
-0.05100604519248009,
-0.12318970263004303,
0.15893512964248657,
-0.08874917030334473,
-0.22448331117630005,
-0.10618554800748825,
-0.017390592023730278,
-0.04619046673178673,
-0.02562938816845417,
-0.00925894919782877,
-0.005792659241706133,
-0.12221454083919525,
-0.1252971887588501,
0.046239592134952545,
-0.02591041661798954,
-0.10154424607753754,
-0.016029298305511475,
-0.0009647373808547854,
-0.024572035297751427,
-0.14156848192214966,
-0.024547137320041656,
-0.022161098197102547,
-0.05763012170791626,
-0.036754339933395386,
0.021554600447416306,
0.039319057017564774,
0.14340218901634216,
0.0042540039867162704,
-0.008686049841344357,
0.006783029064536095,
0.21883101761341095,
-0.07791394740343094,
0.09907447546720505,
0.12838000059127808,
-0.06584116071462631,
0.06897319108247757,
0.1602284461259842,
0.05721097066998482,
-0.052602142095565796,
-0.019353700801730156,
0.040718868374824524,
-0.011332867667078972,
-0.2530362010002136,
-0.08986905962228775,
-0.04049503803253174,
-0.046854037791490555,
0.0077262818813323975,
0.03889980539679527,
0.0795639157295227,
0.024295007809996605,
-0.04334588348865509,
-0.039370689541101456,
0.09087549149990082,
0.09722858667373657,
0.12960827350616455,
-0.004871239420026541,
0.06199588254094124,
-0.04150944575667381,
-0.0007673620712012053,
0.09833905100822449,
-0.0000029134553187759593,
0.23880574107170105,
0.08256471902132034,
0.06550535559654236,
0.10976120084524155,
-0.018473822623491287,
0.037544138729572296,
0.018080130219459534,
-0.028578458353877068,
0.02432369627058506,
-0.03434690833091736,
-0.08307655900716782,
0.06784237921237946,
0.1144184023141861,
0.01360667496919632,
-0.019371097907423973,
-0.0031234887428581715,
-0.019743895158171654,
0.04649319127202034,
0.06310247629880905,
0.033676691353321075,
-0.11951373517513275,
-0.010543987154960632,
0.055773500353097916,
-0.07874179631471634,
-0.071251280605793,
0.012706475332379341,
0.0021289612632244825,
-0.1695851981639862,
0.09326019883155823,
-0.016472944989800453,
0.09415655583143234,
-0.12032920867204666,
-0.025185244157910347,
-0.010364758782088757,
0.13177037239074707,
0.007589413318783045,
0.05942700058221817,
-0.08214763551950455,
0.14315904676914215,
0.02665873058140278,
0.03525973856449127,
-0.05165150761604309,
0.07030591368675232,
0.03765549510717392,
0.05786624178290367,
0.1265653818845749,
0.01887485757470131,
-0.1396481692790985,
0.000342741230269894,
-0.054044630378484726,
0.0035990902688354254,
0.05523276329040527,
-0.05267241224646568,
0.09656987339258194,
-0.02396927960216999,
-0.03646015003323555,
-0.0324772484600544,
-0.008534155786037445,
-0.17735451459884644,
-0.2130068838596344,
0.07125572860240936,
-0.0707264244556427,
-0.03169494867324829,
-0.04929415136575699,
-0.07192997634410858,
-0.07779686152935028,
0.23011554777622223,
-0.12256322801113129,
-0.097609743475914,
-0.12237007170915604,
-0.0732431560754776,
0.1387980878353119,
-0.0668465718626976,
0.04913371056318283,
-0.01942732371389866,
0.12529021501541138,
-0.06805554777383804,
-0.07867202162742615,
0.03331935033202171,
-0.08052520453929901,
-0.10036846995353699,
-0.029489679262042046,
0.16141876578330994,
0.10154124349355698,
0.034095246344804764,
0.037896595895290375,
0.03968431428074837,
-0.0011218180879950523,
-0.1396285891532898,
-0.009522234089672565,
0.20180156826972961,
0.05028919130563736,
0.014014126732945442,
-0.09229927510023117,
-0.12493760138750076,
-0.08266501128673553,
-0.03210233151912689,
0.0826956257224083,
0.14468078315258026,
-0.050957683473825455,
0.13391800224781036,
0.11205707490444183,
-0.1255936622619629,
-0.16002531349658966,
0.002039853949099779,
0.05366436392068863,
0.022225938737392426,
0.05344618111848831,
-0.15841250121593475,
0.042197056114673615,
0.00993285421282053,
0.010215375572443008,
0.10198549926280975,
-0.17289911210536957,
-0.12382131814956665,
0.0840737596154213,
0.028294531628489494,
0.025237031280994415,
-0.06352730840444565,
-0.07419165223836899,
-0.04129606485366821,
-0.153167724609375,
0.12401869893074036,
-0.009395826607942581,
0.039100803434848785,
0.022485341876745224,
0.022738704457879066,
0.04088311269879341,
-0.010966183617711067,
0.1495455950498581,
0.03926593065261841,
0.06801755726337433,
-0.0859374925494194,
-0.1092253029346466,
-0.060875847935676575,
-0.03592656925320625,
0.1360764056444168,
-0.0000011583025525396806,
0.013422801159322262,
-0.062308769673109055,
-0.07708992809057236,
-0.04853363335132599,
0.03358646482229233,
-0.07127849012613297,
-0.025239311158657074,
-0.06315029412508011,
0.09019681066274643,
0.0700463205575943,
-0.01253542210906744,
-0.031482357531785965,
-0.09053957462310791,
-0.05505521595478058,
0.0985807329416275,
0.16862443089485168,
0.04834058880805969,
-0.06076188012957573,
-0.0019449512474238873,
-0.019117534160614014,
0.043343380093574524,
-0.11236005276441574,
0.015156874433159828,
0.08388541638851166,
-0.02030453272163868,
0.1176626905798912,
-0.015319989062845707,
-0.146088644862175,
-0.050628215074539185,
0.020737653598189354,
-0.06342761218547821,
-0.15154284238815308,
-0.03330674767494202,
-0.008076460100710392,
-0.05488080531358719,
-0.04453980550169945,
0.14566659927368164,
-0.029444025829434395,
-0.04404161497950554,
0.01620207540690899,
0.05904237926006317,
-0.0015499336877837777,
0.027047855779528618,
0.04042672738432884,
0.018110401928424835,
-0.05714651197195053,
0.020445803180336952,
0.05051930248737335,
0.02074046991765499,
0.02758343517780304,
0.1118459478020668,
-0.05574196204543114,
-0.06514568626880646,
-0.053919240832328796,
0.12236495316028595,
-0.09107393771409988,
-0.056071214377880096,
0.026660149917006493,
-0.12480416893959045,
0.011428946629166603,
0.1316378265619278,
0.02845875360071659,
-0.022702809423208237,
-0.011446327902376652,
-0.025702040642499924,
-0.03099549375474453,
0.09389497339725494,
0.046101734042167664,
-0.006221804302185774,
-0.037773679941892624,
0.01803109422326088,
0.034678250551223755,
0.007326951716095209,
-0.002587295603007078,
-0.02293451875448227,
-0.09797530621290207,
-0.03447124361991882,
-0.14907334744930267,
0.026930592954158783,
-0.06092903017997742,
0.023215385153889656,
0.008920752443373203,
-0.022855790331959724,
0.012378270737826824,
0.02633412927389145,
-0.051942989230155945,
-0.028502611443400383,
-0.009856787510216236,
0.06892386078834534,
-0.1038324311375618,
-0.0068606846034526825,
0.042819224298000336,
-0.06902876496315002,
0.047210995107889175,
-0.02982836775481701,
-0.004369036760181189,
0.02183927223086357,
-0.1510138362646103,
0.030640283599495888,
-0.02800772897899151,
0.0411611832678318,
0.023937195539474487,
-0.22212839126586914,
0.000547436997294426,
-0.0031007903162389994,
-0.024172669276595116,
-0.019934045150876045,
-0.018909575417637825,
-0.06980153918266296,
0.048678718507289886,
0.03182755783200264,
-0.10081829130649567,
-0.033068735152482986,
0.0333886444568634,
0.05602186545729637,
-0.008903063833713531,
0.11069328337907791,
-0.030913233757019043,
0.08824285864830017,
-0.09738385677337646,
-0.010750220157206059,
0.015133991837501526,
0.024793850257992744,
0.04217128828167915,
-0.07250822335481644,
0.053036365658044815,
0.0032654302194714546,
0.18002860248088837,
0.020830197259783745,
0.009608027525246143,
0.028274687007069588,
0.0028773031663149595,
-0.016241496428847313,
0.05769767612218857,
-0.041038628667593,
-0.010881195776164532,
0.04411766305565834,
-0.020018313080072403,
-0.017617102712392807,
-0.0303305946290493,
-0.13188177347183228,
0.14008106291294098,
0.08691703528165817,
0.1113869845867157,
0.03811107948422432,
0.09689274430274963,
-0.039649609476327896,
-0.037109240889549255,
0.021208707243204117,
0.005686095915734768,
-0.01378433033823967,
-0.08446115255355835,
0.06004847213625908,
0.10948725789785385,
-0.13431207835674286,
0.11628658324480057,
0.014929056167602539,
-0.053802575916051865,
-0.12710951268672943,
-0.2138148844242096,
-0.05775770917534828,
0.014144028536975384,
-0.017669284716248512,
-0.09624727815389633,
0.05835069715976715,
0.011725520715117455,
0.028332259505987167,
-0.022313572466373444,
0.047342609614133835,
-0.11080701649188995,
-0.08078164607286453,
0.03617975860834122,
0.037188079208135605,
0.04069756343960762,
0.011916312389075756,
0.058990173041820526,
-0.0435388945043087,
0.019826995208859444,
0.011937124654650688,
0.061982639133930206,
0.045237623155117035,
0.006392877548933029,
-0.04129096120595932,
-0.062402211129665375,
-0.020446041598916054,
0.0012914061080664396,
0.043480321764945984,
0.14967334270477295,
0.05851595848798752,
-0.05434205010533333,
-0.004987316206097603,
0.09030774980783463,
-0.015161475166678429,
-0.11768749356269836,
-0.1335415542125702,
0.11896519362926483,
-0.03395788371562958,
0.0200873464345932,
0.024806490167975426,
-0.07814265042543411,
0.03220826014876366,
0.20891153812408447,
0.20882201194763184,
-0.05788382887840271,
0.012108241207897663,
0.019498666748404503,
0.009415674023330212,
0.019322469830513,
0.036814168095588684,
0.0024335586931556463,
0.286770761013031,
-0.042963795363903046,
0.026534266769886017,
-0.03103027492761612,
-0.015167610719799995,
-0.053460899740457535,
0.14714497327804565,
-0.011129340156912804,
-0.02587871626019478,
-0.01976715214550495,
0.08456957340240479,
-0.018412448465824127,
-0.1936306357383728,
0.02767586149275303,
-0.04341856762766838,
-0.0792582631111145,
-0.012896996922791004,
-0.04445672780275345,
0.023571524769067764,
0.05589793995022774,
0.013823297806084156,
-0.08057098090648651,
0.2320922315120697,
0.028651505708694458,
-0.09975854307413101,
-0.034187182784080505,
0.08880482614040375,
-0.034683920443058014,
0.17016543447971344,
0.03944113478064537,
0.13494956493377686,
0.08255736529827118,
-0.01968902163207531,
-0.08430638909339905,
0.047268062829971313,
0.043382905423641205,
-0.0362563394010067,
0.04758373275399208,
0.09295693784952164,
0.004455235321074724,
0.09747404605150223,
0.08101799339056015,
-0.03087153099477291,
0.057905253022909164,
-0.007042150944471359,
-0.10164056718349457,
-0.055453717708587646,
0.13256624341011047,
-0.14483290910720825,
0.14517159759998322,
0.1652047038078308,
-0.01174763310700655,
-0.007299788761883974,
-0.020999113097786903,
0.06124965101480484,
-0.02496950887143612,
0.05427730828523636,
-0.009962211363017559,
-0.08607722818851471,
0.04523937404155731,
-0.0054945875890553,
0.10161985456943512,
-0.192622110247612,
-0.09818796813488007,
0.0032749620731920004,
-0.015168769285082817,
-0.0451207235455513,
0.08031246811151505,
0.08177635818719864,
-0.002111037028953433,
-0.028838111087679863,
-0.09419573843479156,
0.027671165764331818,
0.07081286609172821,
-0.053332842886447906,
0.00559751084074378
] |
null | null | transformers |
# xlm-mlm-100-1280
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
xlm-mlm-100-1280 is the XLM model, which was proposed in [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample and Alexis Conneau, trained on Wikipedia text in 100 languages. The model is a transformer pretrained using a masked language modeling (MLM) objective.
## Model Description
- **Developed by:** See [associated paper](https://arxiv.org/abs/1901.07291) and [GitHub Repo](https://github.com/facebookresearch/XLM)
- **Model type:** Language model
- **Language(s) (NLP):** 100 languages, see [GitHub Repo](https://github.com/facebookresearch/XLM#the-17-and-100-languages) for full list.
- **License:** CC-BY-NC-4.0
- **Related Models:** [xlm-mlm-17-1280](https://huggingface.co/xlm-mlm-17-1280)
- **Resources for more information:**
- [Associated paper](https://arxiv.org/abs/1901.07291)
- [GitHub Repo](https://github.com/facebookresearch/XLM#the-17-and-100-languages)
- [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings)
# Uses
## Direct Use
The model is a language model. The model can be used for masked language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face [fill mask docs](https://huggingface.co/tasks/fill-mask) and the [Hugging Face Multilingual Models for Inference](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) docs. Also see the [associated paper](https://arxiv.org/abs/1901.07291).
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
This model is the XLM model trained on Wikipedia text in 100 languages. The preprocessing included tokenization with byte-pair-encoding. See the [GitHub repo](https://github.com/facebookresearch/XLM#the-17-and-100-languages) and the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for further details on the training data and training procedure.
[Conneau et al. (2020)](https://arxiv.org/pdf/1911.02116.pdf) report that this model has 16 layers, 1280 hidden states, 16 attention heads, and the dimension of the feed-forward layer is 1520. The vocabulary size is 200k and the total number of parameters is 570M (see Table 7).
# Evaluation
## Testing Data, Factors & Metrics
The model developers evaluated the model on the XNLI cross-lingual classification task (see the [XNLI data card](https://huggingface.co/datasets/xnli) for more details on XNLI) using the metric of test accuracy. See the [GitHub Repo](https://arxiv.org/pdf/1911.02116.pdf) for further details on the testing data, factors and metrics.
## Results
For xlm-mlm-100-1280, the test accuracy on the XNLI cross-lingual classification task in English (en), Spanish (es), German (de), Arabic (ar), Chinese (zh) and Urdu (ur) are:
|Language| en | es | de | ar | zh | ur |
|:------:|:--:|:---:|:--:|:--:|:--:|:--:|
| |83.7|76.6 |73.6|67.4|71.7|62.9|
See the [GitHub repo](https://github.com/facebookresearch/XLM#ii-cross-lingual-language-model-pretraining-xlm) for further details.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
[Conneau et al. (2020)](https://arxiv.org/pdf/1911.02116.pdf) report that this model has 16 layers, 1280 hidden states, 16 attention heads, and the dimension of the feed-forward layer is 1520. The vocabulary size is 200k and the total number of parameters is 570M (see Table 7).
# Citation
**BibTeX:**
```bibtex
@article{lample2019cross,
title={Cross-lingual language model pretraining},
author={Lample, Guillaume and Conneau, Alexis},
journal={arXiv preprint arXiv:1901.07291},
year={2019}
}
```
**APA:**
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
More information needed. See the [ipython notebook](https://github.com/facebookresearch/XLM/blob/main/generate-embeddings.ipynb) in the associated [GitHub repo](https://github.com/facebookresearch/XLM#the-17-and-100-languages) for examples. | {"language": ["multilingual", "en", "es", "fr", "de", "zh", "ru", "pt", "it", "ar", "ja", "id", "tr", "nl", "pl", "fa", "vi", "sv", "ko", "he", "ro", false, "hi", "uk", "cs", "fi", "hu", "th", "da", "ca", "el", "bg", "sr", "ms", "bn", "hr", "sl", "az", "sk", "eo", "ta", "sh", "lt", "et", "ml", "la", "bs", "sq", "arz", "af", "ka", "mr", "eu", "tl", "ang", "gl", "nn", "ur", "kk", "be", "hy", "te", "lv", "mk", "als", "is", "wuu", "my", "sco", "mn", "ceb", "ast", "cy", "kn", "br", "an", "gu", "bar", "uz", "lb", "ne", "si", "war", "jv", "ga", "oc", "ku", "sw", "nds", "ckb", "ia", "yi", "fy", "scn", "gan", "tt", "am"], "license": "cc-by-nc-4.0"} | fill-mask | FacebookAI/xlm-mlm-100-1280 | [
"transformers",
"pytorch",
"tf",
"xlm",
"fill-mask",
"multilingual",
"en",
"es",
"fr",
"de",
"zh",
"ru",
"pt",
"it",
"ar",
"ja",
"id",
"tr",
"nl",
"pl",
"fa",
"vi",
"sv",
"ko",
"he",
"ro",
"no",
"hi",
"uk",
"cs",
"fi",
"hu",
"th",
"da",
"ca",
"el",
"bg",
"sr",
"ms",
"bn",
"hr",
"sl",
"az",
"sk",
"eo",
"ta",
"sh",
"lt",
"et",
"ml",
"la",
"bs",
"sq",
"arz",
"af",
"ka",
"mr",
"eu",
"tl",
"ang",
"gl",
"nn",
"ur",
"kk",
"be",
"hy",
"te",
"lv",
"mk",
"als",
"is",
"wuu",
"my",
"sco",
"mn",
"ceb",
"ast",
"cy",
"kn",
"br",
"an",
"gu",
"bar",
"uz",
"lb",
"ne",
"si",
"war",
"jv",
"ga",
"oc",
"ku",
"sw",
"nds",
"ckb",
"ia",
"yi",
"fy",
"scn",
"gan",
"tt",
"am",
"arxiv:1901.07291",
"arxiv:1911.02116",
"arxiv:1910.09700",
"license:cc-by-nc-4.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1901.07291",
"1911.02116",
"1910.09700"
] | [
"multilingual",
"en",
"es",
"fr",
"de",
"zh",
"ru",
"pt",
"it",
"ar",
"ja",
"id",
"tr",
"nl",
"pl",
"fa",
"vi",
"sv",
"ko",
"he",
"ro",
"no",
"hi",
"uk",
"cs",
"fi",
"hu",
"th",
"da",
"ca",
"el",
"bg",
"sr",
"ms",
"bn",
"hr",
"sl",
"az",
"sk",
"eo",
"ta",
"sh",
"lt",
"et",
"ml",
"la",
"bs",
"sq",
"arz",
"af",
"ka",
"mr",
"eu",
"tl",
"ang",
"gl",
"nn",
"ur",
"kk",
"be",
"hy",
"te",
"lv",
"mk",
"als",
"is",
"wuu",
"my",
"sco",
"mn",
"ceb",
"ast",
"cy",
"kn",
"br",
"an",
"gu",
"bar",
"uz",
"lb",
"ne",
"si",
"war",
"jv",
"ga",
"oc",
"ku",
"sw",
"nds",
"ckb",
"ia",
"yi",
"fy",
"scn",
"gan",
"tt",
"am"
] | TAGS
#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #es #fr #de #zh #ru #pt #it #ar #ja #id #tr #nl #pl #fa #vi #sv #ko #he #ro #no #hi #uk #cs #fi #hu #th #da #ca #el #bg #sr #ms #bn #hr #sl #az #sk #eo #ta #sh #lt #et #ml #la #bs #sq #arz #af #ka #mr #eu #tl #ang #gl #nn #ur #kk #be #hy #te #lv #mk #als #is #wuu #my #sco #mn #ceb #ast #cy #kn #br #an #gu #bar #uz #lb #ne #si #war #jv #ga #oc #ku #sw #nds #ckb #ia #yi #fy #scn #gan #tt #am #arxiv-1901.07291 #arxiv-1911.02116 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us
| xlm-mlm-100-1280
================
Table of Contents
=================
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
Model Details
=============
xlm-mlm-100-1280 is the XLM model, which was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample and Alexis Conneau, trained on Wikipedia text in 100 languages. The model is a transformer pretrained using a masked language modeling (MLM) objective.
Model Description
-----------------
* Developed by: See associated paper and GitHub Repo
* Model type: Language model
* Language(s) (NLP): 100 languages, see GitHub Repo for full list.
* License: CC-BY-NC-4.0
* Related Models: xlm-mlm-17-1280
* Resources for more information:
+ Associated paper
+ GitHub Repo
+ Hugging Face Multilingual Models for Inference docs
Uses
====
Direct Use
----------
The model is a language model. The model can be used for masked language modeling.
Downstream Use
--------------
To learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs. Also see the associated paper.
Out-of-Scope Use
----------------
The model should not be used to intentionally create hostile or alienating environments for people.
Bias, Risks, and Limitations
============================
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
Recommendations
---------------
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Training
========
This model is the XLM model trained on Wikipedia text in 100 languages. The preprocessing included tokenization with byte-pair-encoding. See the GitHub repo and the associated paper for further details on the training data and training procedure.
Conneau et al. (2020) report that this model has 16 layers, 1280 hidden states, 16 attention heads, and the dimension of the feed-forward layer is 1520. The vocabulary size is 200k and the total number of parameters is 570M (see Table 7).
Evaluation
==========
Testing Data, Factors & Metrics
-------------------------------
The model developers evaluated the model on the XNLI cross-lingual classification task (see the XNLI data card for more details on XNLI) using the metric of test accuracy. See the GitHub Repo for further details on the testing data, factors and metrics.
Results
-------
For xlm-mlm-100-1280, the test accuracy on the XNLI cross-lingual classification task in English (en), Spanish (es), German (de), Arabic (ar), Chinese (zh) and Urdu (ur) are:
See the GitHub repo for further details.
Environmental Impact
====================
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
* Hardware Type: More information needed
* Hours used: More information needed
* Cloud Provider: More information needed
* Compute Region: More information needed
* Carbon Emitted: More information needed
Technical Specifications
========================
Conneau et al. (2020) report that this model has 16 layers, 1280 hidden states, 16 attention heads, and the dimension of the feed-forward layer is 1520. The vocabulary size is 200k and the total number of parameters is 570M (see Table 7).
BibTeX:
APA:
* Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
Model Card Authors
==================
This model card was written by the team at Hugging Face.
How to Get Started with the Model
=================================
More information needed. See the ipython notebook in the associated GitHub repo for examples.
| [] | [
"TAGS\n#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #es #fr #de #zh #ru #pt #it #ar #ja #id #tr #nl #pl #fa #vi #sv #ko #he #ro #no #hi #uk #cs #fi #hu #th #da #ca #el #bg #sr #ms #bn #hr #sl #az #sk #eo #ta #sh #lt #et #ml #la #bs #sq #arz #af #ka #mr #eu #tl #ang #gl #nn #ur #kk #be #hy #te #lv #mk #als #is #wuu #my #sco #mn #ceb #ast #cy #kn #br #an #gu #bar #uz #lb #ne #si #war #jv #ga #oc #ku #sw #nds #ckb #ia #yi #fy #scn #gan #tt #am #arxiv-1901.07291 #arxiv-1911.02116 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
285
] | [
"passage: TAGS\n#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #es #fr #de #zh #ru #pt #it #ar #ja #id #tr #nl #pl #fa #vi #sv #ko #he #ro #no #hi #uk #cs #fi #hu #th #da #ca #el #bg #sr #ms #bn #hr #sl #az #sk #eo #ta #sh #lt #et #ml #la #bs #sq #arz #af #ka #mr #eu #tl #ang #gl #nn #ur #kk #be #hy #te #lv #mk #als #is #wuu #my #sco #mn #ceb #ast #cy #kn #br #an #gu #bar #uz #lb #ne #si #war #jv #ga #oc #ku #sw #nds #ckb #ia #yi #fy #scn #gan #tt #am #arxiv-1901.07291 #arxiv-1911.02116 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
-0.054714709520339966,
-0.02903127856552601,
-0.013871214352548122,
0.013400164432823658,
0.03571555018424988,
0.03401695191860199,
0.06688971817493439,
0.08587060868740082,
0.12549546360969543,
0.10273201763629913,
0.1230447068810463,
0.09942860901355743,
0.09168301522731781,
0.0661463588476181,
-0.010133204981684685,
-0.18887397646903992,
-0.006290051154792309,
0.011772367171943188,
-0.041973892599344254,
0.08509794622659683,
0.030379068106412888,
-0.038102660328149796,
0.10338406264781952,
-0.07902996987104416,
0.054495785385370255,
0.019665434956550598,
-0.04107338935136795,
0.0014279725728556514,
0.0639163926243782,
0.08486612886190414,
0.035318318754434586,
0.0766376256942749,
0.03330617398023605,
-0.2400926947593689,
0.03631393238902092,
-0.02636077255010605,
-0.0709872618317604,
-0.0129859559237957,
0.025724126026034355,
-0.10739204287528992,
0.13803279399871826,
-0.057600900530815125,
-0.07784953713417053,
0.035660307854413986,
-0.14192913472652435,
-0.135927215218544,
-0.03164408355951309,
0.12951798737049103,
0.08787212520837784,
0.053012650460004807,
-0.029211100190877914,
0.09059110283851624,
-0.07807651907205582,
0.05674334987998009,
0.22402697801589966,
-0.2290210723876953,
-0.031078847125172615,
0.08951584249734879,
0.042733751237392426,
0.03357991576194763,
-0.0796058252453804,
0.030379189178347588,
0.010989012196660042,
0.009488184005022049,
-0.013917463831603527,
-0.08185635507106781,
0.11974088847637177,
0.06329268962144852,
-0.08768382668495178,
-0.006790525279939175,
0.11959532648324966,
0.026648463681340218,
0.04975004121661186,
0.09688210487365723,
-0.05124206468462944,
-0.1312633901834488,
-0.07081219553947449,
-0.019890842959284782,
0.0281540360301733,
0.023546617478132248,
0.02415253035724163,
0.05479603260755539,
-0.06879253685474396,
0.026970017701387405,
-0.0815843865275383,
0.10340255498886108,
0.03584124520421028,
-0.004974963143467903,
0.007490494754165411,
-0.008271283470094204,
-0.052176717668771744,
-0.13383939862251282,
0.0007614585338160396,
0.02363777346909046,
-0.033282846212387085,
-0.0010757374111562967,
0.054158858954906464,
0.09722328186035156,
0.08226220309734344,
0.1302509307861328,
-0.056657783687114716,
0.10276437550783157,
0.07859167456626892,
0.08344261348247528,
-0.015214817598462105,
0.017236977815628052,
-0.04938384145498276,
-0.09632132947444916,
-0.07947806268930435,
-0.01358124427497387,
-0.009560232050716877,
-0.008261258713901043,
-0.11313213407993317,
-0.0024351472966372967,
0.000985164544545114,
0.021680917590856552,
0.007219854276627302,
0.05078990384936333,
-0.053885601460933685,
0.03455406799912453,
0.06060462445020676,
-0.0392952486872673,
0.032379548996686935,
0.07913418859243393,
0.021537771448493004,
0.06707404553890228,
-0.04508577659726143,
0.015260016545653343,
-0.017027631402015686,
0.10210461169481277,
-0.044651098549366,
0.048961326479911804,
0.002310261595994234,
-0.06499478220939636,
0.057613860815763474,
-0.041535526514053345,
0.034963853657245636,
-0.12867051362991333,
-0.039098359644412994,
-0.03257746994495392,
-0.006012425757944584,
-0.06899593770503998,
0.016764573752880096,
-0.08049900084733963,
-0.09888601303100586,
0.03318437188863754,
0.007945981808006763,
-0.001962775131687522,
-0.07259853184223175,
0.0641249269247055,
0.01977124996483326,
0.10395301133394241,
0.009861101396381855,
0.004590657539665699,
-0.007273828145116568,
0.07377462834119797,
-0.045472919940948486,
0.007575736381113529,
-0.06834033131599426,
0.027668936178088188,
-0.09772516787052155,
-0.07628174871206284,
-0.08405379205942154,
0.02124173380434513,
0.009081541560590267,
0.17787326872348785,
-0.15835221111774445,
-0.08819415420293808,
0.21828116476535797,
-0.042025305330753326,
-0.07762888818979263,
0.11968494951725006,
0.06654013693332672,
-0.08070342987775803,
0.019571518525481224,
0.1112920343875885,
0.04528270661830902,
-0.10647857189178467,
-0.06319267302751541,
0.08792043477296829,
0.03270549699664116,
0.07404489815235138,
0.10977380722761154,
0.05073244497179985,
0.04686126112937927,
0.016023019328713417,
0.015952371060848236,
0.06437361985445023,
-0.053506989032030106,
-0.05897164344787598,
0.05587836354970932,
-0.02928469516336918,
0.06449523568153381,
0.07055708765983582,
-0.00967229250818491,
-0.04865911602973938,
-0.025683963671326637,
-0.14670206606388092,
0.08436065912246704,
0.040385786443948746,
0.010853608138859272,
-0.09098856151103973,
0.06716267764568329,
0.006605230737477541,
0.019998593255877495,
-0.0663738027215004,
0.03689030557870865,
-0.05180678889155388,
0.09413300454616547,
0.04424314200878143,
0.08461643010377884,
0.09869890660047531,
0.003634404856711626,
-0.05900510400533676,
-0.0485936775803566,
0.11132646352052689,
0.003378675552085042,
-0.0650450736284256,
-0.21743015944957733,
0.04104703292250633,
-0.03279624879360199,
0.04891391843557358,
-0.1884477287530899,
0.021168144419789314,
0.14243753254413605,
0.13026317954063416,
-0.014436911791563034,
0.01863941363990307,
-0.021381789818406105,
0.08360424637794495,
-0.014488033950328827,
0.011700243689119816,
0.04293091222643852,
-0.03489886224269867,
-0.09828656911849976,
0.11512640118598938,
-0.11370613425970078,
0.1859685182571411,
0.11962541192770004,
-0.13104288280010223,
-0.08715037256479263,
0.04784185439348221,
-0.0036546792834997177,
-0.026614418253302574,
0.11249828338623047,
-0.0133733619004488,
0.1053585559129715,
0.028030388057231903,
0.07257752865552902,
-0.03294884040951729,
-0.032548997551202774,
0.032922063022851944,
-0.08832772076129913,
-0.039926547557115555,
0.1712191253900528,
0.06056709587574005,
-0.16739243268966675,
0.19694176316261292,
0.17399512231349945,
0.040330920368433,
0.12677866220474243,
0.03377871960401535,
-0.04447709023952484,
-0.09401557594537735,
0.01167463231831789,
0.027726657688617706,
0.07307462394237518,
-0.14213410019874573,
-0.028185339644551277,
-0.023283306509256363,
-0.012974881567060947,
-0.002413237700238824,
-0.09174391627311707,
-0.05731676518917084,
-0.01986454240977764,
-0.037333425134420395,
0.0012561457697302103,
0.053779155015945435,
-0.04945683106780052,
0.09413035213947296,
0.04240582510828972,
-0.07696117460727692,
-0.05860567092895508,
-0.014612847939133644,
-0.09604780375957489,
0.1789737343788147,
-0.14812326431274414,
-0.13279515504837036,
0.02240818366408348,
-0.14084066450595856,
0.03287753462791443,
0.006590266712009907,
-0.004690889269113541,
-0.10675336420536041,
-0.0027300911024212837,
0.01532150711864233,
0.04764531925320625,
-0.1127883642911911,
-0.0029881270602345467,
-0.04572870209813118,
0.026353569701313972,
-0.05080306529998779,
-0.00579008087515831,
-0.054315462708473206,
0.02949701063334942,
-0.05398061126470566,
0.1105109453201294,
-0.1375555843114853,
0.09565126895904541,
0.12157242000102997,
0.07521972805261612,
0.021493947133421898,
-0.017987368628382683,
0.1506715714931488,
-0.12847593426704407,
0.029592467471957207,
-0.02104094810783863,
-0.010499096475541592,
0.07619598507881165,
0.15860117971897125,
0.057992029935121536,
-0.05647625774145126,
-0.03891108185052872,
-0.007373155560344458,
-0.018498003482818604,
-0.09560349583625793,
-0.06200249120593071,
-0.07337842136621475,
0.09828784316778183,
-0.026699203997850418,
0.07631859183311462,
0.00911154504865408,
0.03005940467119217,
-0.05030624940991402,
-0.05130590498447418,
-0.014791259542107582,
0.021410226821899414,
0.10973424464464188,
-0.034354317933321,
0.032532282173633575,
-0.03950037807226181,
-0.04101520776748657,
0.06255698204040527,
0.09582055360078812,
-0.049227531999349594,
0.06337247043848038,
0.0670367106795311,
0.05105780065059662,
0.1353818029165268,
0.01969282701611519,
-0.018077649176120758,
0.03298783302307129,
-0.04774153232574463,
0.005174883641302586,
-0.03947610408067703,
-0.008124403655529022,
0.06306999176740646,
0.13520552217960358,
-0.018932191655039787,
0.041305817663669586,
-0.02505001239478588,
0.08377853780984879,
-0.004056388977915049,
0.09985342621803284,
-0.1354377418756485,
-0.018897296860814095,
0.06000835448503494,
0.03099721111357212,
-0.015047363936901093,
0.013396305032074451,
0.04885376617312431,
-0.07044849544763565,
0.11629153788089752,
0.05745358392596245,
0.05403907969594002,
-0.06801387667655945,
0.061617374420166016,
-0.015046038664877415,
-0.01873968355357647,
-0.01055392436683178,
0.06164251267910004,
-0.2949144244194031,
0.2422432005405426,
0.03810600936412811,
-0.04318872094154358,
-0.00009012014925247058,
-0.06635582447052002,
0.048973340541124344,
0.12655366957187653,
0.15394484996795654,
0.0718027651309967,
-0.14536847174167633,
-0.2312048077583313,
-0.017509419471025467,
-0.012611037120223045,
0.13499651849269867,
-0.024040155112743378,
0.06041676551103592,
0.037648484110832214,
-0.05482664704322815,
-0.03269686922430992,
0.090359166264534,
-0.03796003386378288,
-0.04538236930966377,
0.09568735212087631,
0.014942667447030544,
-0.02885759435594082,
-0.006439463701099157,
-0.035105954855680466,
-0.1565469205379486,
0.042117826640605927,
-0.19562514126300812,
0.0011758102336898446,
-0.05273794010281563,
-0.021878374740481377,
0.06566277146339417,
-0.13633041083812714,
-0.07314228266477585,
0.009667244739830494,
-0.04115167260169983,
-0.06207282468676567,
0.0010520434007048607,
0.092961385846138,
-0.07310323417186737,
-0.138269305229187,
-0.041336268186569214,
0.10721249878406525,
0.033436182886362076,
0.11872731894254684,
-0.0397571362555027,
0.02952832728624344,
-0.031334038823843,
-0.10033821314573288,
0.10624125599861145,
-0.045778051018714905,
-0.01757497899234295,
0.02427804470062256,
-0.0018099677981808782,
-0.03050053119659424,
-0.07768581062555313,
-0.07870510965585709,
0.08984383940696716,
0.33231115341186523,
-0.03631487116217613,
0.08234607428312302,
0.10305020213127136,
-0.07095083594322205,
-0.26173144578933716,
-0.13387762010097504,
-0.050135549157857895,
0.015658164396882057,
-0.031389493495225906,
-0.15241111814975739,
-0.053967125713825226,
-0.05408693850040436,
0.01394430547952652,
0.06088022515177727,
-0.23421694338321686,
-0.05004725605249405,
0.11425748467445374,
0.02037939801812172,
0.16555681824684143,
-0.168558731675148,
-0.05628519132733345,
-0.010409289039671421,
-0.07481866329908371,
-0.08889957517385483,
0.0178087055683136,
0.04765830934047699,
-0.037106677889823914,
0.03361521661281586,
0.008093028329312801,
-0.014184542931616306,
0.14588899910449982,
0.019141456112265587,
0.01237477920949459,
-0.10896921902894974,
-0.11235374957323074,
0.0184013769030571,
0.01911271922290325,
-0.020649868994951248,
-0.11714870482683182,
-0.06220490112900734,
-0.06758151948451996,
0.023711122572422028,
-0.10663391649723053,
0.014298811554908752,
-0.04663340374827385,
-0.006149807944893837,
-0.053461819887161255,
0.051629599183797836,
0.05373525992035866,
-0.013852294534444809,
0.12401175498962402,
-0.07287606596946716,
0.11092865467071533,
0.040159765630960464,
0.10257218033075333,
0.009927370585501194,
-0.024499762803316116,
-0.02066068910062313,
-0.020665377378463745,
-0.0014562307624146342,
-0.10267778486013412,
-0.018084652721881866,
0.13481301069259644,
0.0006478286813944578,
0.05755450204014778,
0.04719569534063339,
-0.09322210401296616,
-0.0026829757262021303,
0.11897103488445282,
-0.11024037003517151,
-0.11236437410116196,
-0.02106068842113018,
-0.0314909927546978,
0.036821477115154266,
-0.0394560731947422,
0.08954431116580963,
-0.04336922615766525,
0.014482838101685047,
0.005699587985873222,
0.034314967691898346,
-0.020097659900784492,
0.11301054060459137,
0.07403235137462616,
0.03953150659799576,
-0.074078768491745,
0.012426023371517658,
0.006898326333612204,
-0.10797062516212463,
0.011975748464465141,
0.16223867237567902,
-0.08512867242097855,
-0.10906387120485306,
-0.0067697446793317795,
0.10930020362138748,
0.004448403604328632,
-0.040286868810653687,
-0.02763863280415535,
-0.10837806016206741,
0.0565715916454792,
0.26793980598449707,
0.05133248120546341,
0.027194520458579063,
0.0644889548420906,
0.002283250680193305,
0.05531880632042885,
0.08959612995386124,
0.04049220308661461,
0.011813785880804062,
-0.05043136700987816,
0.04944022372364998,
-0.035625796765089035,
0.13948094844818115,
-0.029476502910256386,
-0.013089173473417759,
-0.16052667796611786,
0.03659228980541229,
-0.0709778219461441,
-0.022142456844449043,
-0.15015369653701782,
-0.04912550374865532,
-0.009805623441934586,
-0.10125800222158432,
-0.04672557860612869,
-0.05199228227138519,
-0.059194035828113556,
0.006709734443575144,
0.00024395226500928402,
0.08230455219745636,
-0.05795023962855339,
-0.07460059225559235,
0.09538419544696808,
-0.055195797234773636,
0.052839674055576324,
0.09588059782981873,
-0.0022868942469358444,
0.0597081296145916,
-0.1742836982011795,
-0.003401337657123804,
0.03259327635169029,
0.04791918769478798,
0.007203512825071812,
-0.010547435842454433,
-0.03950070962309837,
-0.06575848907232285,
0.0072760493494570255,
0.05113086849451065,
0.07292268425226212,
0.01277782954275608,
0.11593944579362869,
-0.04466646537184715,
-0.09653633087873459,
-0.01869095489382744,
0.052757248282432556,
0.06906397640705109,
-0.018795505166053772,
0.013232805766165257,
-0.09324654936790466,
0.059971652925014496,
-0.08913232386112213,
0.020278865471482277,
-0.0020901092793792486,
-0.1135752722620964,
0.017415564507246017,
-0.06216936931014061,
0.06449011713266373,
-0.016989991068840027,
0.07594221830368042,
-0.0917997881770134,
-0.03469927981495857,
0.03064729832112789,
-0.031743958592414856,
-0.05919864401221275,
0.032395437359809875,
0.0037541415076702833,
0.06383577734231949,
-0.07342072576284409,
-0.1159951463341713,
0.06767769157886505,
0.005313405301421881,
-0.02549005299806595,
0.0591159462928772,
0.06836450845003128,
0.13730020821094513,
0.07686659693717957,
-0.019458606839179993,
-0.08830787986516953,
0.014287506230175495,
-0.023184284567832947,
-0.12531211972236633,
-0.03484630957245827,
-0.01638615131378174,
0.18481497466564178,
0.2059248983860016,
-0.10419275611639023,
0.042404983192682266,
-0.07247886806726456,
-0.03770450875163078,
-0.11657223850488663,
-0.15676678717136383,
-0.04955992475152016,
-0.03640001639723778,
0.022050688043236732,
-0.07354889065027237,
0.017368454486131668,
0.035362984985113144,
0.06001055985689163,
0.043969471007585526,
0.08448407799005508,
0.05265539139509201,
-0.03636384755373001,
0.018518948927521706,
0.020542046055197716,
-0.005132686346769333,
-0.03352069854736328,
0.06811786442995071,
-0.008754712529480457,
-0.12915463745594025,
0.0032192086800932884,
0.023480230942368507,
-0.06384101510047913,
0.003683713963255286,
-0.06559401005506516,
-0.11099068820476532,
-0.014352105557918549,
0.02734292857348919,
0.0016424418427050114,
0.08795257657766342,
0.01672379858791828,
0.012367269955575466,
0.014869955368340015,
0.09114418923854828,
-0.05069755017757416,
-0.04741271212697029,
-0.009510417468845844,
0.1565769761800766,
-0.008118581026792526,
0.03802113234996796,
-0.02751978673040867,
0.006719144526869059,
0.03819001466035843,
0.22034235298633575,
0.21296384930610657,
-0.07051412761211395,
0.07314909249544144,
0.0417843833565712,
0.0488661490380764,
0.06500620394945145,
-0.050191495567560196,
0.08168589323759079,
0.2193676382303238,
-0.10958357155323029,
-0.01487007923424244,
-0.07509110867977142,
-0.016648516058921814,
-0.03884611651301384,
-0.005766098853200674,
0.033176489174366,
0.01512027159333229,
-0.062278009951114655,
0.08213242888450623,
-0.14937369525432587,
-0.03034965507686138,
0.05919153615832329,
-0.20661413669586182,
-0.008942874148488045,
-0.02142883650958538,
0.049656711518764496,
0.12639892101287842,
0.0738372653722763,
-0.015796156600117683,
-0.05876566842198372,
-0.005424675066024065,
0.042279452085494995,
-0.12932702898979187,
0.06792525947093964,
0.027353141456842422,
-0.0665198564529419,
0.03629215061664581,
-0.06220599263906479,
0.05670721083879471,
0.11267294734716415,
0.017761485651135445,
0.0006884138565510511,
0.06158672273159027,
0.094509556889534,
-0.027006730437278748,
-0.07089689373970032,
0.08242060989141464,
0.012235855683684349,
0.012639603577554226,
0.12680725753307343,
-0.0532936230301857,
0.0673314556479454,
0.051402747631073,
-0.05020184442400932,
0.02584169991314411,
0.12491951137781143,
-0.03935825824737549,
0.07674331218004227,
0.07947899401187897,
-0.0002613597025629133,
-0.04543357342481613,
-0.017747988924384117,
-0.04625730961561203,
-0.021694594994187355,
0.06112486869096756,
-0.039579641073942184,
-0.048337843269109726,
-0.006229395978152752,
-0.02139717899262905,
0.10103633254766464,
-0.0752905085682869,
-0.06519060581922531,
0.011750047095119953,
0.018741784617304802,
-0.06206005439162254,
0.0875360295176506,
0.0750219002366066,
0.022900458425283432,
-0.05363449081778526,
-0.20327262580394745,
0.04971178621053696,
0.11183054000139236,
-0.0876646488904953,
-0.07709457725286484
] |
null | null | transformers |
# xlm-mlm-17-1280
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
xlm-mlm-17-1280 is the XLM model, which was proposed in [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample and Alexis Conneau, trained on text in 17 languages. The model is a transformer pretrained using a masked language modeling (MLM) objective.
## Model Description
- **Developed by:** See [associated paper](https://arxiv.org/abs/1901.07291) and [GitHub Repo](https://github.com/facebookresearch/XLM)
- **Model type:** Language model
- **Language(s) (NLP):** 17 languages, see [GitHub Repo](https://github.com/facebookresearch/XLM#the-17-and-100-languages) for full list.
- **License:** CC-BY-NC-4.0
- **Related Models:** [xlm-mlm-17-1280](https://huggingface.co/xlm-mlm-17-1280)
- **Resources for more information:**
- [Associated paper](https://arxiv.org/abs/1901.07291)
- [GitHub Repo](https://github.com/facebookresearch/XLM#the-17-and-100-languages)
- [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings)
# Uses
## Direct Use
The model is a language model. The model can be used for masked language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face [fill mask docs](https://huggingface.co/tasks/fill-mask) and the [Hugging Face Multilingual Models for Inference](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) docs. Also see the [associated paper](https://arxiv.org/abs/1901.07291).
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
This model is the XLM model trained on text in 17 languages. The preprocessing included tokenization and byte-pair-encoding. See the [GitHub repo](https://github.com/facebookresearch/XLM#the-17-and-100-languages) and the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for further details on the training data and training procedure.
[Conneau et al. (2020)](https://arxiv.org/pdf/1911.02116.pdf) report that this model has 16 layers, 1280 hidden states, 16 attention heads, and the dimension of the feed-forward layer is 1520. The vocabulary size is 200k and the total number of parameters is 570M (see Table 7).
# Evaluation
## Testing Data, Factors & Metrics
The model developers evaluated the model on the XNLI cross-lingual classification task (see the [XNLI data card](https://huggingface.co/datasets/xnli) for more details on XNLI) using the metric of test accuracy. See the [GitHub Repo](https://arxiv.org/pdf/1911.02116.pdf) for further details on the testing data, factors and metrics.
## Results
For xlm-mlm-17-1280, the test accuracy on the XNLI cross-lingual classification task in English (en), Spanish (es), German (de), Arabic (ar), and Chinese (zh):
|Language| en | es | de | ar | zh |
|:------:|:--:|:---:|:--:|:--:|:--:|
| |84.8|79.4 |76.2|71.5|75 |
See the [GitHub repo](https://github.com/facebookresearch/XLM#ii-cross-lingual-language-model-pretraining-xlm) for further details.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
[Conneau et al. (2020)](https://arxiv.org/pdf/1911.02116.pdf) report that this model has 16 layers, 1280 hidden states, 16 attention heads, and the dimension of the feed-forward layer is 1520. The vocabulary size is 200k and the total number of parameters is 570M (see Table 7).
# Citation
**BibTeX:**
```bibtex
@article{lample2019cross,
title={Cross-lingual language model pretraining},
author={Lample, Guillaume and Conneau, Alexis},
journal={arXiv preprint arXiv:1901.07291},
year={2019}
}
```
**APA:**
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
More information needed. See the [ipython notebook](https://github.com/facebookresearch/XLM/blob/main/generate-embeddings.ipynb) in the associated [GitHub repo](https://github.com/facebookresearch/XLM#the-17-and-100-languages) for examples. | {"language": ["multilingual", "en", "fr", "es", "de", "it", "pt", "nl", "sv", "pl", "ru", "ar", "tr", "zh", "ja", "ko", "hi", "vi"], "license": "cc-by-nc-4.0"} | fill-mask | FacebookAI/xlm-mlm-17-1280 | [
"transformers",
"pytorch",
"tf",
"xlm",
"fill-mask",
"multilingual",
"en",
"fr",
"es",
"de",
"it",
"pt",
"nl",
"sv",
"pl",
"ru",
"ar",
"tr",
"zh",
"ja",
"ko",
"hi",
"vi",
"arxiv:1901.07291",
"arxiv:1911.02116",
"arxiv:1910.09700",
"license:cc-by-nc-4.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1901.07291",
"1911.02116",
"1910.09700"
] | [
"multilingual",
"en",
"fr",
"es",
"de",
"it",
"pt",
"nl",
"sv",
"pl",
"ru",
"ar",
"tr",
"zh",
"ja",
"ko",
"hi",
"vi"
] | TAGS
#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #fr #es #de #it #pt #nl #sv #pl #ru #ar #tr #zh #ja #ko #hi #vi #arxiv-1901.07291 #arxiv-1911.02116 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us
| xlm-mlm-17-1280
===============
Table of Contents
=================
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
Model Details
=============
xlm-mlm-17-1280 is the XLM model, which was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample and Alexis Conneau, trained on text in 17 languages. The model is a transformer pretrained using a masked language modeling (MLM) objective.
Model Description
-----------------
* Developed by: See associated paper and GitHub Repo
* Model type: Language model
* Language(s) (NLP): 17 languages, see GitHub Repo for full list.
* License: CC-BY-NC-4.0
* Related Models: xlm-mlm-17-1280
* Resources for more information:
+ Associated paper
+ GitHub Repo
+ Hugging Face Multilingual Models for Inference docs
Uses
====
Direct Use
----------
The model is a language model. The model can be used for masked language modeling.
Downstream Use
--------------
To learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs. Also see the associated paper.
Out-of-Scope Use
----------------
The model should not be used to intentionally create hostile or alienating environments for people.
Bias, Risks, and Limitations
============================
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
Recommendations
---------------
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Training
========
This model is the XLM model trained on text in 17 languages. The preprocessing included tokenization and byte-pair-encoding. See the GitHub repo and the associated paper for further details on the training data and training procedure.
Conneau et al. (2020) report that this model has 16 layers, 1280 hidden states, 16 attention heads, and the dimension of the feed-forward layer is 1520. The vocabulary size is 200k and the total number of parameters is 570M (see Table 7).
Evaluation
==========
Testing Data, Factors & Metrics
-------------------------------
The model developers evaluated the model on the XNLI cross-lingual classification task (see the XNLI data card for more details on XNLI) using the metric of test accuracy. See the GitHub Repo for further details on the testing data, factors and metrics.
Results
-------
For xlm-mlm-17-1280, the test accuracy on the XNLI cross-lingual classification task in English (en), Spanish (es), German (de), Arabic (ar), and Chinese (zh):
See the GitHub repo for further details.
Environmental Impact
====================
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
* Hardware Type: More information needed
* Hours used: More information needed
* Cloud Provider: More information needed
* Compute Region: More information needed
* Carbon Emitted: More information needed
Technical Specifications
========================
Conneau et al. (2020) report that this model has 16 layers, 1280 hidden states, 16 attention heads, and the dimension of the feed-forward layer is 1520. The vocabulary size is 200k and the total number of parameters is 570M (see Table 7).
BibTeX:
APA:
* Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
Model Card Authors
==================
This model card was written by the team at Hugging Face.
How to Get Started with the Model
=================================
More information needed. See the ipython notebook in the associated GitHub repo for examples.
| [] | [
"TAGS\n#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #fr #es #de #it #pt #nl #sv #pl #ru #ar #tr #zh #ja #ko #hi #vi #arxiv-1901.07291 #arxiv-1911.02116 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
116
] | [
"passage: TAGS\n#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #fr #es #de #it #pt #nl #sv #pl #ru #ar #tr #zh #ja #ko #hi #vi #arxiv-1901.07291 #arxiv-1911.02116 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
-0.0707000121474266,
-0.08520902693271637,
-0.00871618464589119,
0.06749285012483597,
0.07016822695732117,
0.03537457808852196,
0.07546499371528625,
0.08741223067045212,
0.10095467418432236,
0.03599061071872711,
0.13094665110111237,
0.13236962258815765,
0.03611418977379799,
0.07822281867265701,
-0.03143356367945671,
-0.24215440452098846,
-0.0013967814156785607,
0.058111947029829025,
-0.05212199687957764,
0.09507528692483902,
0.08876694738864899,
-0.03254154324531555,
0.09779157489538193,
-0.039189036935567856,
-0.02138698846101761,
0.03730711713433266,
0.035043902695178986,
-0.05511635169386864,
0.11867120862007141,
0.12026647478342056,
0.08607731014490128,
0.0640202984213829,
-0.007116714492440224,
-0.13157401978969574,
0.04308697208762169,
-0.03714780882000923,
-0.1274101436138153,
0.01775016076862812,
0.022539636120200157,
-0.07457863539457321,
0.12855906784534454,
-0.017413293942809105,
-0.09553281217813492,
0.06471575051546097,
-0.16496919095516205,
-0.1802593171596527,
-0.059036802500486374,
0.14517365396022797,
-0.01893843337893486,
0.0635719820857048,
0.0002972794172819704,
0.1730291098356247,
-0.06454896181821823,
0.0948997288942337,
0.1850065290927887,
-0.35888683795928955,
-0.04627290740609169,
0.06353887170553207,
0.07450211048126221,
0.050942592322826385,
-0.029671689495444298,
0.09266675263643265,
0.05876019224524498,
0.0021279111970216036,
-0.05645711347460747,
-0.11718540638685226,
0.045807018876075745,
0.028411326929926872,
-0.10272061824798584,
-0.031627874821424484,
0.20401154458522797,
-0.0030378331430256367,
0.01583167351782322,
0.10395021736621857,
-0.06725842505693436,
-0.07755986601114273,
-0.01612066477537155,
-0.013016220182180405,
-0.012513675726950169,
0.013399118557572365,
0.06481240689754486,
-0.026448456570506096,
-0.1131773516535759,
0.0176549032330513,
-0.19338682293891907,
0.24482017755508423,
0.029754512012004852,
0.02159488946199417,
-0.07983402162790298,
0.00741434283554554,
-0.1013420894742012,
-0.11795023828744888,
-0.003731311531737447,
-0.0447416752576828,
0.04426632449030876,
0.04813484102487564,
0.015596449375152588,
0.00980624184012413,
0.07008422911167145,
0.11133529990911484,
-0.04414821043610573,
0.07081888616085052,
-0.011747634038329124,
0.12543433904647827,
-0.022205626592040062,
0.05887249484658241,
-0.03246045857667923,
-0.03472447767853737,
0.009778878651559353,
-0.054463960230350494,
0.04815184697508812,
-0.011645265854895115,
-0.17122355103492737,
-0.08257325738668442,
-0.04808037355542183,
0.08082124590873718,
-0.00039727624971419573,
0.07309859246015549,
-0.032670047134160995,
0.02928498201072216,
0.030601048842072487,
-0.06063992157578468,
0.008563381619751453,
0.0010865459917113185,
0.04155563935637474,
0.11156348884105682,
-0.010887113399803638,
-0.03327443450689316,
-0.062191423028707504,
0.06179235130548477,
-0.06876938045024872,
0.05852888152003288,
-0.010389715433120728,
-0.09457685798406601,
0.04956677928566933,
-0.07330363243818283,
0.0075242905877530575,
-0.1820657104253769,
-0.016313107684254646,
0.03619572892785072,
-0.0010115874465554953,
-0.032611168920993805,
0.021450718864798546,
0.011059954762458801,
-0.02853565104305744,
0.025694411247968674,
-0.01573130115866661,
-0.06281788647174835,
-0.07763195782899857,
0.09052281826734543,
0.01897559128701687,
0.09211573749780655,
-0.14087657630443573,
0.027336400002241135,
-0.019919369369745255,
0.03559957817196846,
-0.09865748882293701,
-0.049257032573223114,
-0.07094679027795792,
0.019481010735034943,
-0.036704108119010925,
-0.0965161994099617,
-0.08058488368988037,
0.041692718863487244,
0.00649021752178669,
0.14317594468593597,
-0.15614700317382812,
-0.10290432721376419,
0.24954909086227417,
-0.11325772851705551,
-0.1393260657787323,
0.13286741077899933,
0.0614272765815258,
-0.054288338869810104,
0.008239531889557838,
0.1369815617799759,
0.011502335779368877,
-0.17759640514850616,
-0.010094712488353252,
0.1387280523777008,
-0.04379113391041756,
-0.018966440111398697,
0.09033317863941193,
0.011475946754217148,
-0.0659242495894432,
0.01663985848426819,
-0.0015629695262759924,
0.08183600753545761,
-0.05465323477983475,
-0.04756362736225128,
0.006767811719328165,
-0.004676789045333862,
0.09726879745721817,
0.033292632550001144,
0.02660300023853779,
-0.07070817798376083,
-0.05135713890194893,
-0.11205542832612991,
0.07583573460578918,
0.05884487181901932,
0.05527477338910103,
-0.09423111379146576,
0.14754928648471832,
0.01698439195752144,
-0.006825381424278021,
-0.10459797829389572,
0.05446755886077881,
-0.02725144661962986,
0.07915670424699783,
0.07633549720048904,
0.13659967482089996,
0.07267303019762039,
-0.0000022448598429036792,
-0.07082018256187439,
-0.03382747247815132,
0.01616496406495571,
-0.007513226009905338,
-0.0006740115350112319,
-0.1642886996269226,
0.04977680742740631,
-0.04133637621998787,
0.045639775693416595,
-0.10163185745477676,
-0.0026766424998641014,
0.07046302407979965,
0.09081567823886871,
-0.04499657824635506,
0.0829431489109993,
-0.05829233676195145,
0.07245157659053802,
-0.03998338803648949,
0.03453117236495018,
0.07122378796339035,
-0.008381949737668037,
-0.1229701042175293,
0.179829940199852,
-0.10203347355127335,
0.290284663438797,
0.15999780595302582,
-0.2056887447834015,
-0.051139071583747864,
0.016908496618270874,
-0.02191755920648575,
0.0012844516895711422,
0.12051040679216385,
-0.017139794304966927,
0.06507042050361633,
-0.014295879751443863,
0.12032300978899002,
-0.07642026245594025,
0.011001854203641415,
0.060200050473213196,
-0.1029711589217186,
-0.055029381066560745,
0.1448744833469391,
0.1127517893910408,
-0.20920972526073456,
0.17665539681911469,
0.2644132673740387,
0.01144854724407196,
0.16231349110603333,
0.007194057572633028,
-0.00024189600662793964,
-0.07604982703924179,
0.03223913162946701,
0.014983590692281723,
0.11528154462575912,
-0.12803152203559875,
0.005629715044051409,
0.02011753059923649,
-0.02096419781446457,
0.01742616482079029,
-0.12484591454267502,
-0.07081415504217148,
-0.015101125463843346,
-0.021101010963320732,
-0.08151109516620636,
0.11622205376625061,
-0.023017648607492447,
0.13623665273189545,
0.0027570887468755245,
-0.09982144832611084,
0.0336202010512352,
0.02163688652217388,
-0.07597380131483078,
0.16820472478866577,
-0.15515002608299255,
-0.28810733556747437,
-0.08648120611906052,
-0.131069615483284,
-0.0434442013502121,
-0.007156181149184704,
0.057064350694417953,
-0.09263619780540466,
-0.034278858453035355,
0.03923311457037926,
0.035042762756347656,
-0.13544002175331116,
0.0036873093340545893,
-0.08867816627025604,
0.013435138389468193,
-0.043118417263031006,
-0.06064285337924957,
-0.08366094529628754,
-0.029515765607357025,
-0.06818456947803497,
0.14048738777637482,
-0.1139158308506012,
0.10435737669467926,
0.1113894134759903,
0.0073446123860776424,
0.06656330823898315,
-0.04001104086637497,
0.12794485688209534,
-0.09542681276798248,
0.009787207469344139,
0.12638673186302185,
0.0031086294911801815,
0.09634771198034286,
0.12455077469348907,
0.05389696732163429,
-0.040812280029058456,
-0.03373295068740845,
-0.027193518355488777,
-0.06120236963033676,
-0.18735654652118683,
-0.10386791080236435,
-0.13708987832069397,
0.06734061241149902,
-0.030927669256925583,
0.055297043174505234,
0.10718324035406113,
0.0202203206717968,
-0.027677496895194054,
-0.01686917059123516,
-0.0559108667075634,
0.04506687447428703,
0.19295698404312134,
-0.04911639913916588,
0.07119908183813095,
-0.07093297690153122,
-0.047330621629953384,
0.09097806364297867,
0.026382576674222946,
0.04586775228381157,
0.09195299446582794,
0.016132375225424767,
0.09298987686634064,
0.1616259068250656,
0.10463639348745346,
0.04610344022512436,
0.026566963642835617,
-0.07058989256620407,
-0.001441071042791009,
-0.06814870983362198,
-0.011883837170898914,
0.0031196107156574726,
0.09146782010793686,
-0.06218625605106354,
-0.019506029784679413,
-0.09201203286647797,
0.0736994817852974,
-0.02388070896267891,
0.061847884207963943,
-0.1108742207288742,
-0.003430463606491685,
0.021756213158369064,
0.0647495836019516,
-0.059642091393470764,
0.019650081172585487,
0.028745334595441818,
-0.09508682787418365,
0.13902315497398376,
-0.0085903350263834,
0.07204706966876984,
0.04168727621436119,
0.06124626472592354,
-0.0751550942659378,
-0.05376343056559563,
-0.007809962145984173,
0.07568089663982391,
-0.31913143396377563,
0.3383540213108063,
0.04219614341855049,
-0.05170741304755211,
-0.011187144555151463,
-0.04845915362238884,
0.045356400310993195,
0.2167738527059555,
0.16058649122714996,
0.07270362228155136,
-0.020980756729841232,
-0.14487431943416595,
0.03841284662485123,
0.004421028774231672,
0.13173221051692963,
0.03101377561688423,
0.0010747641790658236,
0.005738515872508287,
-0.026110203936696053,
-0.02992171049118042,
0.15729016065597534,
-0.08880767226219177,
-0.09455481916666031,
0.12592676281929016,
-0.0020214098040014505,
-0.03525952994823456,
-0.017254633828997612,
-0.0698905885219574,
-0.15111441910266876,
0.09570881724357605,
-0.11368132382631302,
-0.01905328594148159,
-0.08284078538417816,
-0.06514451652765274,
0.0566902682185173,
-0.14435796439647675,
0.012663389556109905,
-0.05226399749517441,
-0.06179080158472061,
-0.10458552092313766,
-0.054175179451704025,
0.10528233647346497,
-0.07884306460618973,
-0.053001321852207184,
-0.011292628012597561,
0.17187896370887756,
-0.033286042511463165,
0.08337637782096863,
-0.019199509173631668,
-0.010915973223745823,
-0.03141894191503525,
-0.0979425236582756,
0.06580844521522522,
-0.08022739738225937,
0.01893038861453533,
0.027472734451293945,
-0.07324778288602829,
-0.04353508725762367,
-0.04218197241425514,
-0.04707459360361099,
0.15939608216285706,
0.3405725657939911,
-0.0439332015812397,
0.07971487939357758,
0.12399332970380783,
-0.05735374614596367,
-0.29514843225479126,
-0.12133108824491501,
-0.12368971854448318,
0.02071615867316723,
-0.021098850294947624,
-0.11484286189079285,
-0.04945647343993187,
-0.0027055221144109964,
-0.0134512884542346,
0.11166717112064362,
-0.2073390781879425,
-0.08885706961154938,
0.11059965193271637,
0.0038480828516185284,
0.3184371590614319,
-0.10386109352111816,
-0.05921368673443794,
-0.024392923340201378,
-0.12241330742835999,
0.019939446821808815,
-0.005758312065154314,
0.09920473396778107,
-0.05436765402555466,
-0.009723016992211342,
0.008373626507818699,
-0.033081069588661194,
0.14340442419052124,
-0.026860417798161507,
0.0068353042006492615,
-0.11941047757863998,
-0.15070949494838715,
0.07558107376098633,
0.0238253902643919,
-0.030855396762490273,
-0.1019432544708252,
-0.039715588092803955,
-0.09084311127662659,
0.0034798707347363234,
-0.09971816092729568,
0.09772314131259918,
-0.0354660302400589,
-0.06187516078352928,
-0.047622308135032654,
0.04175807908177376,
-0.02433963492512703,
-0.012902888469398022,
0.2086593359708786,
-0.06552533060312271,
0.14320221543312073,
0.1090080738067627,
0.09399556368589401,
-0.0761735588312149,
-0.01635311171412468,
-0.044433414936065674,
-0.04717671871185303,
0.04231895133852959,
-0.06120371073484421,
0.007897339761257172,
0.1298847198486328,
-0.0006088440422900021,
0.08209884911775589,
0.06395399570465088,
-0.05553840473294258,
-0.0035666145849972963,
0.13325461745262146,
-0.13029296696186066,
-0.1279277503490448,
-0.049265168607234955,
-0.052657365798950195,
0.08523854613304138,
0.03251045569777489,
0.12089714407920837,
-0.022863704711198807,
-0.004000336863100529,
0.001137003069743514,
-0.0188587699085474,
-0.06381113082170486,
0.0527266189455986,
0.08187363296747208,
0.024985449388623238,
-0.07722335308790207,
0.016276143491268158,
-0.023781513795256615,
-0.1560303121805191,
-0.03657275810837746,
0.17042972147464752,
-0.10387084633111954,
-0.13777783513069153,
-0.0373331755399704,
0.07536295056343079,
-0.13567034900188446,
-0.06373012810945511,
-0.07176648825407028,
-0.12087539583444595,
0.052471693605184555,
0.29116731882095337,
0.05472329631447792,
0.01617632433772087,
0.013945307582616806,
-0.03586272895336151,
0.06318573653697968,
0.024366162717342377,
0.011385898105800152,
0.008473386988043785,
-0.06355568021535873,
0.11236133426427841,
0.03239889070391655,
0.2057749181985855,
-0.055319804698228836,
-0.027034064754843712,
-0.14361056685447693,
0.023538004606962204,
-0.07828335464000702,
-0.011596637777984142,
-0.08343066275119781,
-0.0575137659907341,
-0.02115204930305481,
-0.10679634660482407,
-0.06507601588964462,
-0.027256326749920845,
-0.10203250497579575,
0.02755909413099289,
0.039517518132925034,
0.07329793274402618,
-0.02385403774678707,
-0.03758866712450981,
0.09585577994585037,
-0.016454266384243965,
0.0812983363866806,
0.1238800510764122,
-0.031156372278928757,
0.11949986964464188,
-0.15250039100646973,
-0.015735778957605362,
0.05774730443954468,
0.06582020968198776,
0.040088485926389694,
0.055962398648262024,
0.005686058197170496,
0.0018588068196550012,
0.008059917949140072,
0.051326677203178406,
0.03699895367026329,
-0.060021333396434784,
0.08921603113412857,
-0.03128509595990181,
-0.13311263918876648,
-0.01482104416936636,
0.03906886652112007,
0.04886021092534065,
0.04618243873119354,
0.035380661487579346,
-0.08147573471069336,
0.05501188337802887,
-0.08072694391012192,
0.02639872021973133,
-0.02001950331032276,
-0.14357247948646545,
-0.02459598518908024,
-0.08580657094717026,
0.030942212790250778,
0.0009050847147591412,
0.09889160841703415,
-0.014115517027676105,
-0.02107146382331848,
0.02670552395284176,
0.028850281611084938,
-0.04273083433508873,
-0.027900762856006622,
0.08107838779687881,
0.024962179362773895,
-0.03388577699661255,
-0.12518887221813202,
0.03262845054268837,
-0.018307141959667206,
0.006654601078480482,
0.13308607041835785,
0.08719134330749512,
0.1420862078666687,
0.058968640863895416,
0.02731386199593544,
-0.038919415324926376,
-0.02548796683549881,
-0.16075634956359863,
-0.002792180050164461,
0.010868928395211697,
-0.011928956024348736,
0.11488708108663559,
0.19538374245166779,
-0.02816596068441868,
0.04644519090652466,
-0.03297571465373039,
-0.024713795632123947,
-0.15243202447891235,
-0.1553179770708084,
-0.045420002192258835,
-0.06881816685199738,
0.008057153783738613,
-0.03993834927678108,
0.04614223539829254,
0.012827862985432148,
0.0607515424489975,
-0.024267133325338364,
0.05988182872533798,
-0.02754620462656021,
-0.09382836520671844,
0.028405122458934784,
0.005120195914059877,
0.058583926409482956,
-0.055787812918424606,
0.012709436006844044,
-0.07687267661094666,
-0.11206713318824768,
-0.021023686975240707,
0.03310190513730049,
-0.010265027172863483,
-0.011099149473011494,
-0.08185077458620071,
-0.07810010761022568,
-0.02692233771085739,
0.050193239003419876,
0.02682752162218094,
0.15758970379829407,
0.01868298463523388,
0.014070970006287098,
0.002029856201261282,
0.11156193166971207,
-0.005647678393870592,
-0.08024224638938904,
0.010457267984747887,
0.17626389861106873,
0.028023933991789818,
0.0865420252084732,
-0.03347171097993851,
0.029338842257857323,
0.004075806587934494,
0.2642492353916168,
0.27665093541145325,
-0.040668509900569916,
0.07766687124967575,
0.04019170254468918,
0.056329868733882904,
0.07953041046857834,
0.020896917209029198,
0.07309999316930771,
0.24800223112106323,
-0.09617165476083755,
-0.015533766709268093,
-0.13473178446292877,
0.036026183515787125,
-0.059370316565036774,
0.010220994241535664,
0.04196051508188248,
-0.05949816480278969,
-0.01348133571445942,
0.08894979953765869,
-0.13353651762008667,
0.035537268966436386,
0.05532992258667946,
-0.19498476386070251,
-0.033709149807691574,
-0.02445804700255394,
0.0807558000087738,
0.0913994312286377,
0.08227670937776566,
-0.05331319198012352,
-0.06304153800010681,
0.008317103609442711,
0.04876037687063217,
-0.18174956738948822,
-0.044420838356018066,
0.08021140843629837,
-0.03199564665555954,
0.05195852369070053,
-0.019865743815898895,
0.05977941304445267,
0.10430717468261719,
0.06090845540165901,
0.021689554676413536,
0.08409914374351501,
0.06366946548223495,
-0.0037992338184267282,
-0.06092133745551109,
-0.01802992634475231,
0.025632916018366814,
-0.0583069883286953,
0.056763652712106705,
-0.06859011203050613,
0.07935275882482529,
0.059351347386837006,
-0.07220081239938736,
0.010968254879117012,
0.13909374177455902,
-0.08939070999622345,
0.05677313730120659,
0.10958486050367355,
0.018260478973388672,
-0.07915510982275009,
-0.060432832688093185,
-0.06890533119440079,
0.03892089053988457,
-0.03253531828522682,
-0.061533547937870026,
-0.03799926117062569,
-0.03494393080472946,
-0.038139067590236664,
0.04259325563907623,
-0.10414007306098938,
-0.05284103378653526,
-0.049052491784095764,
0.040480758994817734,
-0.1169726550579071,
0.05761564522981644,
0.052415478974580765,
-0.003064364893361926,
0.010352673009037971,
-0.16369657218456268,
0.058258652687072754,
0.06646159291267395,
-0.08133558183908463,
-0.047028910368680954
] |
null | null | transformers |
# xlm-mlm-en-2048
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Citation](#citation)
8. [Model Card Authors](#model-card-authors)
9. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
The XLM model was proposed in [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample and Alexis Conneau. It’s a transformer pretrained with either a causal language modeling (CLM) objective (next token prediction), a masked language modeling (MLM) objective (BERT-like), or
a Translation Language Modeling (TLM) object (extension of BERT’s MLM to multiple language inputs). This model is trained with a masked language modeling objective on English text.
## Model Description
- **Developed by:** Researchers affiliated with Facebook AI, see [associated paper](https://arxiv.org/abs/1901.07291) and [GitHub Repo](https://github.com/facebookresearch/XLM)
- **Model type:** Language model
- **Language(s) (NLP):** English
- **License:** CC-BY-NC-4.0
- **Related Models:** Other [XLM models](https://huggingface.co/models?sort=downloads&search=xlm)
- **Resources for more information:**
- [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample and Alexis Conneau (2019)
- [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/pdf/1911.02116.pdf) by Conneau et al. (2020)
- [GitHub Repo](https://github.com/facebookresearch/XLM)
- [Hugging Face XLM docs](https://huggingface.co/docs/transformers/model_doc/xlm)
# Uses
## Direct Use
The model is a language model. The model can be used for masked language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face [fill mask docs](https://huggingface.co/tasks/fill-mask) and the [Hugging Face Multilingual Models for Inference](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) docs. Also see the [associated paper](https://arxiv.org/abs/1901.07291).
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
More information needed. See the [associated GitHub Repo](https://github.com/facebookresearch/XLM).
# Evaluation
More information needed. See the [associated GitHub Repo](https://github.com/facebookresearch/XLM).
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Citation
**BibTeX:**
```bibtex
@article{lample2019cross,
title={Cross-lingual language model pretraining},
author={Lample, Guillaume and Conneau, Alexis},
journal={arXiv preprint arXiv:1901.07291},
year={2019}
}
```
**APA:**
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model. See the [Hugging Face XLM docs](https://huggingface.co/docs/transformers/model_doc/xlm) for more examples.
```python
from transformers import XLMTokenizer, XLMModel
import torch
tokenizer = XLMTokenizer.from_pretrained("xlm-mlm-en-2048")
model = XLMModel.from_pretrained("xlm-mlm-en-2048")
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
```
<a href="https://huggingface.co/exbert/?model=xlm-mlm-en-2048">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": "en", "license": "cc-by-nc-4.0", "tags": ["exbert"]} | fill-mask | FacebookAI/xlm-mlm-en-2048 | [
"transformers",
"pytorch",
"tf",
"xlm",
"fill-mask",
"exbert",
"en",
"arxiv:1901.07291",
"arxiv:1911.02116",
"arxiv:1910.09700",
"license:cc-by-nc-4.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1901.07291",
"1911.02116",
"1910.09700"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #xlm #fill-mask #exbert #en #arxiv-1901.07291 #arxiv-1911.02116 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us
|
# xlm-mlm-en-2048
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Citation
8. Model Card Authors
9. How To Get Started With the Model
# Model Details
The XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample and Alexis Conneau. It’s a transformer pretrained with either a causal language modeling (CLM) objective (next token prediction), a masked language modeling (MLM) objective (BERT-like), or
a Translation Language Modeling (TLM) object (extension of BERT’s MLM to multiple language inputs). This model is trained with a masked language modeling objective on English text.
## Model Description
- Developed by: Researchers affiliated with Facebook AI, see associated paper and GitHub Repo
- Model type: Language model
- Language(s) (NLP): English
- License: CC-BY-NC-4.0
- Related Models: Other XLM models
- Resources for more information:
- Cross-lingual Language Model Pretraining by Guillaume Lample and Alexis Conneau (2019)
- Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. (2020)
- GitHub Repo
- Hugging Face XLM docs
# Uses
## Direct Use
The model is a language model. The model can be used for masked language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs. Also see the associated paper.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
More information needed. See the associated GitHub Repo.
# Evaluation
More information needed. See the associated GitHub Repo.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: More information needed
- Hours used: More information needed
- Cloud Provider: More information needed
- Compute Region: More information needed
- Carbon Emitted: More information needed
BibTeX:
APA:
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model. See the Hugging Face XLM docs for more examples.
<a href="URL
<img width="300px" src="URL
</a>
| [
"# xlm-mlm-en-2048",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample and Alexis Conneau. It’s a transformer pretrained with either a causal language modeling (CLM) objective (next token prediction), a masked language modeling (MLM) objective (BERT-like), or\na Translation Language Modeling (TLM) object (extension of BERT’s MLM to multiple language inputs). This model is trained with a masked language modeling objective on English text.",
"## Model Description \n\n- Developed by: Researchers affiliated with Facebook AI, see associated paper and GitHub Repo\n- Model type: Language model\n- Language(s) (NLP): English\n- License: CC-BY-NC-4.0\n- Related Models: Other XLM models\n- Resources for more information: \n - Cross-lingual Language Model Pretraining by Guillaume Lample and Alexis Conneau (2019)\n - Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. (2020)\n - GitHub Repo\n - Hugging Face XLM docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs. Also see the associated paper.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training \n\nMore information needed. See the associated GitHub Repo.",
"# Evaluation \n\nMore information needed. See the associated GitHub Repo.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. See the Hugging Face XLM docs for more examples.\n\n\n\n<a href=\"URL\n\t<img width=\"300px\" src=\"URL\n</a>"
] | [
"TAGS\n#transformers #pytorch #tf #xlm #fill-mask #exbert #en #arxiv-1901.07291 #arxiv-1911.02116 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"# xlm-mlm-en-2048",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample and Alexis Conneau. It’s a transformer pretrained with either a causal language modeling (CLM) objective (next token prediction), a masked language modeling (MLM) objective (BERT-like), or\na Translation Language Modeling (TLM) object (extension of BERT’s MLM to multiple language inputs). This model is trained with a masked language modeling objective on English text.",
"## Model Description \n\n- Developed by: Researchers affiliated with Facebook AI, see associated paper and GitHub Repo\n- Model type: Language model\n- Language(s) (NLP): English\n- License: CC-BY-NC-4.0\n- Related Models: Other XLM models\n- Resources for more information: \n - Cross-lingual Language Model Pretraining by Guillaume Lample and Alexis Conneau (2019)\n - Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. (2020)\n - GitHub Repo\n - Hugging Face XLM docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs. Also see the associated paper.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training \n\nMore information needed. See the associated GitHub Repo.",
"# Evaluation \n\nMore information needed. See the associated GitHub Repo.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. See the Hugging Face XLM docs for more examples.\n\n\n\n<a href=\"URL\n\t<img width=\"300px\" src=\"URL\n</a>"
] | [
83,
10,
46,
123,
130,
3,
22,
49,
28,
50,
34,
15,
16,
115,
18,
57
] | [
"passage: TAGS\n#transformers #pytorch #tf #xlm #fill-mask #exbert #en #arxiv-1901.07291 #arxiv-1911.02116 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n# xlm-mlm-en-2048# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Citation\n8. Model Card Authors\n9. How To Get Started With the Model# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample and Alexis Conneau. It’s a transformer pretrained with either a causal language modeling (CLM) objective (next token prediction), a masked language modeling (MLM) objective (BERT-like), or\na Translation Language Modeling (TLM) object (extension of BERT’s MLM to multiple language inputs). This model is trained with a masked language modeling objective on English text.## Model Description \n\n- Developed by: Researchers affiliated with Facebook AI, see associated paper and GitHub Repo\n- Model type: Language model\n- Language(s) (NLP): English\n- License: CC-BY-NC-4.0\n- Related Models: Other XLM models\n- Resources for more information: \n - Cross-lingual Language Model Pretraining by Guillaume Lample and Alexis Conneau (2019)\n - Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. (2020)\n - GitHub Repo\n - Hugging Face XLM docs# Uses## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs. Also see the associated paper.## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people."
] | [
-0.06246170029044151,
0.1118163913488388,
-0.006003931630402803,
0.051449887454509735,
0.052210621535778046,
-0.008873612619936466,
0.08397094905376434,
0.05075708404183388,
0.054314009845256805,
0.06083834543824196,
0.0003566195664461702,
0.008696177043020725,
0.08141878247261047,
0.07614415884017944,
0.037376753985881805,
-0.238357812166214,
0.03939485922455788,
-0.10500194132328033,
0.05585543438792229,
0.06363879889249802,
0.11317767202854156,
-0.02043280191719532,
0.12271610647439957,
0.04463471099734306,
0.004808144178241491,
-0.021616198122501373,
0.0002221519680460915,
-0.054905347526073456,
0.05279051512479782,
0.13400861620903015,
0.07102911174297333,
-0.02428683452308178,
0.08075610548257828,
-0.12053478509187698,
0.02434120513498783,
0.07316628098487854,
-0.03630887717008591,
0.047918759286403656,
0.12159022688865662,
-0.0392550528049469,
0.23898519575595856,
-0.01384442113339901,
0.0901193767786026,
0.1050276830792427,
-0.10227227210998535,
-0.10459153354167938,
-0.04936898499727249,
0.08554486930370331,
0.07743283361196518,
0.05780535563826561,
-0.03732336312532425,
0.05799450725317001,
0.0028255849611014128,
0.041996490210294724,
0.030394479632377625,
-0.11485555768013,
-0.06128840148448944,
0.048113446682691574,
0.06678307056427002,
0.0015405288431793451,
-0.027743125334382057,
0.03112267516553402,
0.00003283384648966603,
0.050123997032642365,
0.055840857326984406,
-0.025665150955319405,
0.11283650994300842,
-0.036499861627817154,
-0.13130822777748108,
-0.007937227375805378,
-0.010730317793786526,
-0.006688618566840887,
-0.09363675862550735,
-0.17507462203502655,
-0.020234284922480583,
0.18696603178977966,
0.005118050146847963,
-0.0746287852525711,
0.04939250275492668,
0.034139808267354965,
0.12666161358356476,
-0.12146564573049545,
-0.06190020591020584,
0.018457431346178055,
-0.08596830070018768,
0.11558754742145538,
0.027622073888778687,
0.02965671755373478,
-0.035311754792928696,
0.05880463123321533,
-0.093268983066082,
-0.07008592784404755,
-0.06661641597747803,
-0.1069568395614624,
-0.08791143447160721,
0.004571937024593353,
-0.03025311976671219,
-0.10057122260332108,
-0.01037014089524746,
0.07455716282129288,
-0.01859894022345543,
0.03932419419288635,
-0.06914091855287552,
0.02443791553378105,
0.06843931972980499,
0.13763493299484253,
-0.09008565545082092,
-0.03360581770539284,
0.008967790752649307,
-0.010321265086531639,
0.0035822726786136627,
-0.022245407104492188,
-0.06994089484214783,
0.000036685589293483645,
-0.05291995778679848,
0.04743216559290886,
0.05822022259235382,
0.03764935955405235,
-0.014465631917119026,
-0.07356955111026764,
0.12435350567102432,
-0.12530294060707092,
0.011465925723314285,
-0.009897737763822079,
-0.0365331694483757,
0.08251800388097763,
0.06419549882411957,
-0.01730053685605526,
-0.06810159981250763,
-0.02023356221616268,
-0.050172947347164154,
0.0026975676883012056,
-0.10505309700965881,
-0.12526382505893707,
0.019119303673505783,
0.03584028035402298,
-0.06745954602956772,
-0.13458414375782013,
-0.11165586858987808,
-0.0813603475689888,
0.0890413448214531,
-0.07403441518545151,
0.02201954647898674,
-0.04896537959575653,
-0.014247007668018341,
-0.0006898228311911225,
0.02109377831220627,
-0.06825179606676102,
0.006169820670038462,
-0.03886647894978523,
-0.053116463124752045,
0.05156039446592331,
0.04040861874818802,
0.020857803523540497,
-0.04239808768033981,
0.021654658019542694,
-0.21768589317798615,
0.16176635026931763,
-0.07882839441299438,
-0.014615902677178383,
-0.08797816187143326,
-0.00205141375772655,
0.05413778871297836,
0.08324237912893295,
0.0024921800941228867,
0.10690291225910187,
-0.18799322843551636,
-0.030644701793789864,
0.21549823880195618,
-0.12208923697471619,
-0.003978672903031111,
0.09803992509841919,
-0.06762635707855225,
0.05883410573005676,
0.12282106280326843,
0.03169683739542961,
0.10590384155511856,
-0.16877906024456024,
0.0006217937334440649,
-0.02410801313817501,
-0.07299935072660446,
0.1552395075559616,
0.06703605502843857,
-0.060125257819890976,
-0.00229371408931911,
0.011545686051249504,
-0.08101753145456314,
0.004593277350068092,
0.017438601702451706,
-0.02996290661394596,
0.02522273361682892,
-0.028617095202207565,
0.07719901949167252,
-0.03315601125359535,
-0.0707058534026146,
0.002091691829264164,
-0.1429276168346405,
-0.030779287219047546,
0.06790411472320557,
-0.03048943169414997,
0.004597684368491173,
-0.10662932693958282,
0.009108467027544975,
0.015014133416116238,
-0.003395726438611746,
-0.1332201212644577,
-0.13075269758701324,
0.019426746293902397,
-0.140793114900589,
0.1688857078552246,
-0.010573716834187508,
0.03012269362807274,
0.08132308721542358,
-0.04520706459879875,
0.021399373188614845,
0.003122353693470359,
-0.028070958331227303,
-0.0227196104824543,
-0.12475738674402237,
-0.007160423323512077,
-0.06675612181425095,
0.003380643902346492,
-0.12216158956289291,
0.03361401706933975,
-0.02860078774392605,
0.057420920580625534,
0.04151282459497452,
-0.012479559518396854,
0.03725672885775566,
-0.012501404620707035,
0.010765093378722668,
-0.04422416538000107,
0.018882039934396744,
-0.032252777367830276,
-0.06766776740550995,
0.15500590205192566,
-0.12135422974824905,
-0.1389748603105545,
0.05488124489784241,
0.0761742815375328,
-0.12156809121370316,
-0.036596838384866714,
0.01683194935321808,
-0.011392127722501755,
-0.032471664249897,
-0.08410398662090302,
0.3236275017261505,
0.030425194650888443,
0.05120643600821495,
-0.12823854386806488,
-0.03732546791434288,
-0.015427174977958202,
-0.03310265392065048,
-0.04286806657910347,
0.06494365632534027,
0.07285018265247345,
-0.1742008775472641,
0.035029515624046326,
0.06279942393302917,
0.019184798002243042,
0.15913578867912292,
0.03983019292354584,
-0.07258278876543045,
-0.03474598005414009,
0.0019261029083281755,
0.007844298146665096,
0.009322088211774826,
0.043639056384563446,
0.01825009286403656,
0.04422038048505783,
0.025588175281882286,
0.03710727393627167,
-0.046715203672647476,
0.05118958652019501,
0.03872144967317581,
-0.031048916280269623,
-0.026643402874469757,
0.017406228929758072,
0.023650992661714554,
0.07455597817897797,
0.021681003272533417,
-0.010895751416683197,
-0.00948867853730917,
-0.03638502210378647,
-0.1041070818901062,
0.1415177285671234,
-0.1161118596792221,
-0.2678476870059967,
-0.14247912168502808,
-0.04320874810218811,
-0.0817614421248436,
-0.0001445557427359745,
-0.01389550231397152,
-0.06140375882387161,
-0.10376165807247162,
-0.09975244104862213,
0.10355642437934875,
0.002628504764288664,
-0.12278144061565399,
-0.06356211751699448,
0.020991723984479904,
-0.008105630986392498,
-0.13588674366474152,
-0.01606118679046631,
0.004062296357005835,
-0.08316045999526978,
-0.020648758858442307,
0.022051069885492325,
0.01945953257381916,
0.1187485083937645,
0.010408584028482437,
-0.019896171987056732,
-0.015309542417526245,
0.20812593400478363,
-0.08195845037698746,
0.1504867970943451,
0.17602533102035522,
-0.04059786722064018,
0.07582681626081467,
0.12562115490436554,
0.03092012368142605,
-0.035842057317495346,
0.012785138562321663,
0.01352748740464449,
-0.05533895269036293,
-0.22894521057605743,
-0.10741985589265823,
-0.024829713627696037,
-0.03356878086924553,
0.02075987122952938,
0.01290319487452507,
0.06200743466615677,
0.01434270665049553,
-0.044329602271318436,
-0.05000805854797363,
0.10329283028841019,
0.0609651580452919,
0.060597583651542664,
-0.015583492815494537,
0.08784708380699158,
0.000650151981972158,
0.033727265894412994,
0.11904414743185043,
-0.04141569882631302,
0.2239864021539688,
0.02559034898877144,
0.0258772149682045,
0.07135366648435593,
-0.018249668180942535,
0.046773605048656464,
0.034280579537153244,
-0.039069388061761856,
0.034262415021657944,
-0.052431266754865646,
-0.06062570586800575,
0.04722201079130173,
0.11989288032054901,
0.03216226026415825,
-0.07271657884120941,
-0.010074984282255173,
-0.007767168339341879,
0.017589256167411804,
0.11014014482498169,
0.01758291944861412,
-0.1610657423734665,
-0.03599279373884201,
0.02974366769194603,
-0.08652166277170181,
-0.10861819982528687,
0.033221129328012466,
0.06501448154449463,
-0.15212319791316986,
0.1005709245800972,
-0.008758180774748325,
0.0921827107667923,
-0.0602734200656414,
-0.016266504302620888,
-0.015455340966582298,
0.14965996146202087,
0.00867435336112976,
0.051006682217121124,
-0.08985025435686111,
0.12376919388771057,
0.021276269108057022,
0.03756655007600784,
-0.04155384749174118,
0.062355443835258484,
0.09651033580303192,
0.06022852286696434,
0.13043759763240814,
0.03220423310995102,
-0.10583611577749252,
-0.001350722974166274,
-0.09604638069868088,
-0.003051737556234002,
0.05802685767412186,
-0.07756174355745316,
0.059774573892354965,
0.0019965115934610367,
-0.037915442138910294,
-0.04582318663597107,
0.02965756133198738,
-0.15988948941230774,
-0.16924028098583221,
0.014394884929060936,
-0.04931041598320007,
0.0708865150809288,
-0.04478341341018677,
-0.039252810180187225,
-0.03156115114688873,
0.1463395357131958,
-0.10184553265571594,
-0.12599486112594604,
-0.11613930761814117,
-0.0856824740767479,
0.12020029127597809,
-0.09460340440273285,
0.04289326071739197,
-0.017166463658213615,
0.11370132118463516,
-0.043563682585954666,
-0.11359313130378723,
0.07050532847642899,
-0.09362912178039551,
-0.09219620376825333,
-0.02164473384618759,
0.10248292982578278,
0.14204786717891693,
0.05272624269127846,
0.040570009499788284,
0.03053785301744938,
0.022862857207655907,
-0.08994107693433762,
-0.0069909789599478245,
0.2501695156097412,
0.0461457334458828,
0.0792861208319664,
-0.09593142569065094,
-0.18400396406650543,
-0.0933431014418602,
-0.008883615955710411,
0.07323388010263443,
0.07941370457410812,
-0.029777394607663155,
0.18742209672927856,
0.19979283213615417,
-0.12010232359170914,
-0.17588753998279572,
-0.016955023631453514,
0.07662568241357803,
0.047687940299510956,
0.08358752727508545,
-0.20648479461669922,
0.04128048196434975,
0.010924390517175198,
0.018264155834913254,
0.046187784522771835,
-0.12928664684295654,
-0.12393005937337875,
0.08823784440755844,
-0.005284145940095186,
-0.07604711502790451,
-0.024917906150221825,
-0.05390962213277817,
-0.03527200594544411,
-0.05390205234289169,
0.08702897280454636,
-0.02613252028822899,
0.030147399753332138,
0.0365324504673481,
0.05418980494141579,
0.04326934739947319,
0.007548833731561899,
0.11513393372297287,
-0.012277740053832531,
0.040473904460668564,
-0.09495054930448532,
-0.03160163387656212,
-0.024165961891412735,
-0.04709777981042862,
0.1364813596010208,
-0.012178967706859112,
0.025371894240379333,
-0.05421428754925728,
-0.08240506798028946,
-0.09499117732048035,
0.02497185952961445,
-0.03570614382624626,
-0.04471825063228607,
-0.06374423950910568,
0.11786851286888123,
0.08274931460618973,
-0.004629884380847216,
-0.08346174657344818,
-0.1397402137517929,
-0.02696707658469677,
0.16881348192691803,
0.2167973667383194,
-0.0179823637008667,
-0.07161545008420944,
-0.03347385674715042,
-0.015564200468361378,
0.07018015533685684,
-0.10343677550554276,
0.02797282114624977,
0.050876982510089874,
-0.03637615591287613,
0.12398108094930649,
-0.010847323574125767,
-0.13103996217250824,
0.009640687145292759,
0.03566082566976547,
-0.015182333998382092,
-0.17266154289245605,
-0.07570590078830719,
0.03477047011256218,
-0.07200891524553299,
-0.06275949627161026,
0.18090464174747467,
-0.030397627502679825,
-0.03671794757246971,
0.016638584434986115,
0.07236133515834808,
0.004182285163551569,
0.007611241191625595,
0.02671266533434391,
0.0025195335038006306,
-0.052830226719379425,
0.03543782979249954,
0.05418660491704941,
-0.01923464983701706,
0.06121574342250824,
0.14585711061954498,
-0.07163737714290619,
-0.0646023377776146,
-0.05199667811393738,
0.1390388458967209,
-0.07307739555835724,
-0.05073777586221695,
0.0712188184261322,
-0.07443609088659286,
0.029462851583957672,
0.15717795491218567,
0.0030804986599832773,
-0.04957283288240433,
-0.04278266057372093,
-0.00016372707614209503,
0.0363030768930912,
0.06313284486532211,
0.05086413398385048,
-0.01559484377503395,
-0.016521327197551727,
0.06219759210944176,
0.012576998211443424,
0.002449260326102376,
-0.023307781666517258,
-0.04499790444970131,
-0.078622005879879,
-0.021667605265975,
-0.2153477519750595,
0.025678368285298347,
-0.06248907744884491,
0.014838282950222492,
-0.006192601751536131,
-0.01587878353893757,
0.03528430685400963,
0.020664937794208527,
-0.059434790164232254,
-0.03686688840389252,
-0.019897913560271263,
0.09300973266363144,
-0.10098826140165329,
0.01476083230227232,
0.07067317515611649,
-0.02984444797039032,
0.06978567689657211,
-0.037919726222753525,
-0.05879684165120125,
0.032392848283052444,
-0.10213631391525269,
0.009574688039720058,
-0.05657447502017021,
0.03114258497953415,
0.030053067952394485,
-0.16049131751060486,
0.010487383231520653,
-0.032688967883586884,
-0.05449634790420532,
-0.014520332217216492,
0.028672663494944572,
-0.045301519334316254,
0.06750140339136124,
0.08397671580314636,
-0.06835661083459854,
-0.05505196750164032,
0.048464786261320114,
0.054755229502916336,
0.020734883844852448,
0.07632322609424591,
-0.038768328726291656,
0.08657670021057129,
-0.11078640818595886,
0.007152585778385401,
0.026240479201078415,
0.04494309425354004,
0.07171458750963211,
-0.08275367319583893,
0.04832804203033447,
-0.012566959485411644,
0.07848332077264786,
0.07581747323274612,
-0.00835028663277626,
0.020090816542506218,
0.009595740586519241,
-0.02349121682345867,
0.027698315680027008,
-0.09861776232719421,
-0.01822304166853428,
0.012741743586957455,
-0.009173773229122162,
-0.019913576543331146,
-0.05294784530997276,
-0.11230233311653137,
0.12815144658088684,
0.08493336290121078,
0.09131386876106262,
0.043389610946178436,
0.10074954479932785,
0.003930340986698866,
-0.08331095427274704,
-0.01950693689286709,
-0.0023094562347978354,
0.014254091307520866,
-0.06255512684583664,
0.08636999130249023,
0.09314262866973877,
-0.1483660638332367,
0.15146976709365845,
0.05257529020309448,
-0.04489462077617645,
-0.09662214666604996,
-0.26336875557899475,
-0.03446436673402786,
-0.028149286285042763,
-0.01573813334107399,
-0.09764840453863144,
0.05864838510751724,
-0.0003949638921767473,
0.038573265075683594,
-0.025601159781217575,
0.07444051653146744,
-0.14216847717761993,
-0.1418779492378235,
0.10770057141780853,
0.021169479936361313,
0.05905537307262421,
0.05070890858769417,
0.015540587715804577,
-0.0218487735837698,
0.07807417958974838,
0.01719784550368786,
0.05552605539560318,
0.031107822433114052,
-0.001982035581022501,
-0.05309290438890457,
-0.04987288638949394,
-0.012921322137117386,
0.00113663449883461,
-0.009700298309326172,
0.15549272298812866,
0.047555532306432724,
-0.056669849902391434,
0.003393672639504075,
0.09879346936941147,
-0.047049928456544876,
-0.08342486619949341,
-0.1781202256679535,
0.18104767799377441,
-0.05832332372665405,
0.0019371587550267577,
-0.005197898484766483,
-0.06791132688522339,
-0.03931524232029915,
0.22697331011295319,
0.19159361720085144,
-0.061318665742874146,
-0.010442938655614853,
-0.04062280431389809,
0.008044491522014141,
0.01896209642291069,
0.09441804140806198,
-0.0035259283613413572,
0.3024905323982239,
-0.03837554529309273,
0.09290832281112671,
0.00033872309722937644,
-0.03414253517985344,
-0.05317956954240799,
0.1091994196176529,
-0.03643617033958435,
-0.02426661178469658,
-0.03776130825281143,
0.12559327483177185,
-0.049599308520555496,
-0.14139626920223236,
-0.05779169872403145,
-0.008814405649900436,
-0.07420959323644638,
-0.03321622312068939,
-0.045947860926389694,
0.0399308018386364,
0.08260571956634521,
0.04657205566763878,
-0.045389510691165924,
0.1948055624961853,
0.01026669517159462,
-0.06982094794511795,
-0.0722850039601326,
0.08963017165660858,
-0.08394448459148407,
0.16208207607269287,
0.04575539380311966,
0.056215643882751465,
0.0883924588561058,
0.001488457783125341,
-0.06579612195491791,
0.01879754476249218,
0.007416728883981705,
-0.00773440720513463,
0.023738104850053787,
0.13731680810451508,
-0.006720970384776592,
0.0675458014011383,
0.0650293305516243,
-0.05012163519859314,
0.05698711797595024,
-0.028237957507371902,
-0.07240688800811768,
-0.05931583791971207,
0.15662433207035065,
-0.14716272056102753,
0.11396379768848419,
0.19315867125988007,
0.004362634848803282,
-0.01994982920587063,
-0.04319837689399719,
0.057790253311395645,
-0.02214224636554718,
0.008535142987966537,
-0.030662214383482933,
-0.05186816677451134,
-0.009829943999648094,
0.023112168535590172,
0.0846627876162529,
-0.22515322268009186,
-0.07536834478378296,
0.009139398112893105,
-0.0002734823792707175,
-0.007084352895617485,
0.09116869419813156,
0.0741298720240593,
-0.0037878574803471565,
-0.0006366411107592285,
-0.011568993330001831,
0.0419519878923893,
0.0630534216761589,
-0.07062498480081558,
0.011900368146598339
] |
null | null | transformers |
# xlm-mlm-ende-1024
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
The XLM model was proposed in [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample, Alexis Conneau. xlm-mlm-ende-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-German. This model uses language embeddings to specify the language used at inference. See the [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) for further details.
## Model Description
- **Developed by:** Guillaume Lample, Alexis Conneau, see [associated paper](https://arxiv.org/abs/1901.07291)
- **Model type:** Language model
- **Language(s) (NLP):** English-German
- **License:** CC-BY-NC-4.0
- **Related Models:** [xlm-clm-enfr-1024](https://huggingface.co/xlm-clm-enfr-1024), [xlm-clm-ende-1024](https://huggingface.co/xlm-clm-ende-1024), [xlm-mlm-enfr-1024](https://huggingface.co/xlm-mlm-enfr-1024), [xlm-mlm-enro-1024](https://huggingface.co/xlm-mlm-enro-1024)
- **Resources for more information:**
- [Associated paper](https://arxiv.org/abs/1901.07291)
- [GitHub Repo](https://github.com/facebookresearch/XLM)
- [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings)
# Uses
## Direct Use
The model is a language model. The model can be used for masked language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face [fill mask docs](https://huggingface.co/tasks/fill-mask) and the [Hugging Face Multilingual Models for Inference](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
The model developers write:
> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for links, citations, and further details on the training data and training procedure.
The model developers also write that:
> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.
See the associated [GitHub Repo](https://github.com/facebookresearch/XLM#ii-cross-lingual-language-model-pretraining-xlm) for further details.
# Evaluation
## Testing Data, Factors & Metrics
The model developers evaluated the model on the [WMT'16 English-German](https://huggingface.co/datasets/wmt16) dataset using the [BLEU metric](https://huggingface.co/spaces/evaluate-metric/bleu). See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for further details on the testing data, factors and metrics.
## Results
For xlm-mlm-ende-1024 results, see Table 1 and Table 2 of the [associated paper](https://arxiv.org/pdf/1901.07291.pdf).
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
The model developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for further details.
# Citation
**BibTeX:**
```bibtex
@article{lample2019cross,
title={Cross-lingual language model pretraining},
author={Lample, Guillaume and Conneau, Alexis},
journal={arXiv preprint arXiv:1901.07291},
year={2019}
}
```
**APA:**
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
More information needed. This model uses language embeddings to specify the language used at inference. See the [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) for further details. | {"language": ["multilingual", "en", "de"], "license": "cc-by-nc-4.0"} | fill-mask | FacebookAI/xlm-mlm-ende-1024 | [
"transformers",
"pytorch",
"tf",
"safetensors",
"xlm",
"fill-mask",
"multilingual",
"en",
"de",
"arxiv:1901.07291",
"arxiv:1910.09700",
"license:cc-by-nc-4.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1901.07291",
"1910.09700"
] | [
"multilingual",
"en",
"de"
] | TAGS
#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #de #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us
|
# xlm-mlm-ende-1024
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
# Model Details
The XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-ende-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-German. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.
## Model Description
- Developed by: Guillaume Lample, Alexis Conneau, see associated paper
- Model type: Language model
- Language(s) (NLP): English-German
- License: CC-BY-NC-4.0
- Related Models: xlm-clm-enfr-1024, xlm-clm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024
- Resources for more information:
- Associated paper
- GitHub Repo
- Hugging Face Multilingual Models for Inference docs
# Uses
## Direct Use
The model is a language model. The model can be used for masked language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
The model developers write:
> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.
See the associated paper for links, citations, and further details on the training data and training procedure.
The model developers also write that:
> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.
See the associated GitHub Repo for further details.
# Evaluation
## Testing Data, Factors & Metrics
The model developers evaluated the model on the WMT'16 English-German dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.
## Results
For xlm-mlm-ende-1024 results, see Table 1 and Table 2 of the associated paper.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: More information needed
- Hours used: More information needed
- Cloud Provider: More information needed
- Compute Region: More information needed
- Carbon Emitted: More information needed
# Technical Specifications
The model developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
See the associated paper for further details.
BibTeX:
APA:
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
More information needed. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details. | [
"# xlm-mlm-ende-1024",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-ende-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-German. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.",
"## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-German\n- License: CC-BY-NC-4.0\n- Related Models: xlm-clm-enfr-1024, xlm-clm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nThe model developers write: \n\n> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n\nSee the associated paper for links, citations, and further details on the training data and training procedure.\n\nThe model developers also write that: \n\n> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.\n\nSee the associated GitHub Repo for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe model developers evaluated the model on the WMT'16 English-German dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.",
"## Results \n\nFor xlm-mlm-ende-1024 results, see Table 1 and Table 2 of the associated paper.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nMore information needed. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details."
] | [
"TAGS\n#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #de #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"# xlm-mlm-ende-1024",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-ende-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-German. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.",
"## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-German\n- License: CC-BY-NC-4.0\n- Related Models: xlm-clm-enfr-1024, xlm-clm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nThe model developers write: \n\n> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n\nSee the associated paper for links, citations, and further details on the training data and training procedure.\n\nThe model developers also write that: \n\n> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.\n\nSee the associated GitHub Repo for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe model developers evaluated the model on the WMT'16 English-German dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.",
"## Results \n\nFor xlm-mlm-ende-1024 results, see Table 1 and Table 2 of the associated paper.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nMore information needed. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details."
] | [
82,
10,
51,
104,
129,
3,
22,
43,
28,
50,
34,
179,
3,
54,
25,
68,
133,
18,
52
] | [
"passage: TAGS\n#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #de #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n# xlm-mlm-ende-1024# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-ende-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-German. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-German\n- License: CC-BY-NC-4.0\n- Related Models: xlm-clm-enfr-1024, xlm-clm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs# Uses## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"passage: # Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.# Training\n\nThe model developers write: \n\n> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n\nSee the associated paper for links, citations, and further details on the training data and training procedure.\n\nThe model developers also write that: \n\n> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.\n\nSee the associated GitHub Repo for further details.# Evaluation## Testing Data, Factors & Metrics\n\nThe model developers evaluated the model on the WMT'16 English-German dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.## Results \n\nFor xlm-mlm-ende-1024 results, see Table 1 and Table 2 of the associated paper.# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291."
] | [
-0.11059757322072983,
0.1231660321354866,
-0.0025166096165776253,
0.05781207233667374,
0.06741004437208176,
0.004542182199656963,
0.11052030324935913,
0.049395523965358734,
0.0844353586435318,
0.06947985291481018,
-0.0005025114514864981,
0.006808554753661156,
0.09050077944993973,
0.09530235826969147,
0.06799139082431793,
-0.21222791075706482,
0.047336921095848083,
-0.10317468643188477,
0.052484191954135895,
0.08133946359157562,
0.126236230134964,
-0.07126079499721527,
0.10535310208797455,
0.01731206104159355,
-0.05766487866640091,
-0.0010522832162678242,
-0.022284623235464096,
-0.02105572819709778,
0.08714926242828369,
0.07114801555871964,
0.043802011758089066,
-0.006259030196815729,
0.08366252481937408,
-0.1912711262702942,
0.02343316376209259,
0.04020160436630249,
-0.017984408885240555,
0.039020560681819916,
0.06444309651851654,
-0.024458449333906174,
0.20051556825637817,
-0.07105843722820282,
0.07367421686649323,
0.07250155508518219,
-0.08948598802089691,
-0.11949983239173889,
-0.08526800572872162,
0.061534333974123,
0.07944139093160629,
0.0762590616941452,
-0.021925974637269974,
0.12646180391311646,
-0.007845910266041756,
0.027926921844482422,
0.10848616063594818,
-0.12407980114221573,
-0.015942465513944626,
0.07145050168037415,
0.04766739904880524,
0.04118954762816429,
-0.09217256307601929,
0.023787930607795715,
0.035296447575092316,
0.025178760290145874,
0.021255597472190857,
-0.014201823621988297,
0.1492822915315628,
-0.024564817547798157,
-0.11051876842975616,
-0.06937684118747711,
0.11312547326087952,
0.004857792053371668,
-0.10482509434223175,
-0.20456916093826294,
-0.025020040571689606,
0.05258506163954735,
0.017297325655817986,
-0.011759990826249123,
0.010025409050285816,
-0.009357137605547905,
0.1146201342344284,
-0.07863006740808487,
-0.08471621572971344,
-0.012049060314893723,
-0.0015331748872995377,
0.18627598881721497,
0.02184440568089485,
0.023534303531050682,
0.024864712730050087,
0.1325709968805313,
0.0014808699488639832,
-0.0832759439945221,
-0.07837918400764465,
-0.09314984083175659,
-0.08918687701225281,
0.005606118589639664,
-0.012805027887225151,
0.010016427375376225,
-0.019670642912387848,
0.12376339733600616,
-0.002340052044019103,
0.026837559416890144,
0.035224996507167816,
0.014390559867024422,
0.07709777355194092,
0.12243083864450455,
-0.0064227767288684845,
-0.09663763642311096,
0.02185467816889286,
0.008959603495895863,
0.023664318025112152,
-0.035058971494436264,
-0.03835471719503403,
-0.05178186297416687,
-0.01403672993183136,
0.10615896433591843,
0.03486688435077667,
0.03806373476982117,
-0.046369366347789764,
-0.056479692459106445,
0.18294697999954224,
-0.1646890789270401,
0.027619648724794388,
-0.00006925826892256737,
-0.027314424514770508,
0.004505558870732784,
0.03732481598854065,
-0.030547622591257095,
-0.09298880398273468,
-0.009525727480649948,
-0.04520540311932564,
-0.03242576867341995,
-0.1145256906747818,
-0.11419790983200073,
0.033319465816020966,
0.04210393875837326,
-0.020827600732445717,
-0.08004985749721527,
-0.15039929747581482,
-0.06570727378129959,
0.04737165570259094,
-0.017978763207793236,
-0.021497592329978943,
-0.02284724824130535,
-0.023435939103364944,
-0.026706239208579063,
0.010705702006816864,
-0.045480042695999146,
-0.003690331941470504,
-0.002111956477165222,
-0.0530344620347023,
0.03222218528389931,
-0.0003699862863868475,
0.0102761285379529,
-0.05115234851837158,
0.02924300730228424,
-0.16687694191932678,
0.12284186482429504,
-0.07852908968925476,
-0.00975234154611826,
-0.06853058189153671,
-0.01642359048128128,
0.03734499588608742,
0.06132792681455612,
0.013824407011270523,
0.12894511222839355,
-0.15411898493766785,
-0.03039795160293579,
0.1590118408203125,
-0.14098325371742249,
-0.03156552091240883,
0.08656321465969086,
-0.05294353514909744,
0.0749748945236206,
0.1065027117729187,
0.01216406561434269,
0.12132762372493744,
-0.17156606912612915,
-0.015603335574269295,
-0.022156083956360817,
-0.048869408667087555,
0.07993193715810776,
0.06314216554164886,
-0.030041586607694626,
-0.024393998086452484,
0.03455954045057297,
-0.08394955098628998,
-0.01700371503829956,
0.022457305341959,
-0.05506101995706558,
0.024138975888490677,
-0.017689188942313194,
0.025738876312971115,
-0.02005773037672043,
-0.1042223870754242,
-0.024277539923787117,
-0.10463853180408478,
0.005167069379240274,
0.12423719465732574,
-0.06268125027418137,
0.003570416010916233,
-0.08662667870521545,
0.016977600753307343,
-0.02704845927655697,
-0.010732773691415787,
-0.1381533443927765,
-0.11424848437309265,
0.04068109393119812,
-0.17322325706481934,
0.10089650750160217,
0.06269237399101257,
0.02909677103161812,
0.08547738939523697,
-0.04725494980812073,
0.004263404756784439,
-0.052994608879089355,
-0.017778564244508743,
-0.04225796461105347,
-0.14458626508712769,
-0.024308139458298683,
-0.04972811043262482,
0.09428592771291733,
-0.13937999308109283,
0.022193273529410362,
0.050186388194561005,
0.03157331049442291,
0.018043290823698044,
-0.04779597744345665,
0.0032209018245339394,
-0.03171662241220474,
-0.0057347724214196205,
-0.05239318311214447,
-0.0018767747096717358,
-0.013771767728030682,
-0.041578684002161026,
0.10523917526006699,
-0.1653631031513214,
-0.06800326704978943,
0.09275391697883606,
0.09948887676000595,
-0.07313437759876251,
-0.07862269878387451,
-0.023246677592396736,
-0.026530805975198746,
-0.06988963484764099,
-0.08715164661407471,
0.1951291561126709,
0.012299503199756145,
0.03757700324058533,
-0.10752160847187042,
-0.059384480118751526,
-0.01692991331219673,
0.017956886440515518,
-0.05537722632288933,
0.07035325467586517,
0.047017667442560196,
-0.08063006401062012,
0.043896473944187164,
0.04272831976413727,
0.05550162494182587,
0.16102364659309387,
0.02871645987033844,
-0.08896926045417786,
-0.022814197465777397,
0.0054943375289440155,
-0.003317248309031129,
0.14138486981391907,
-0.015975508838891983,
0.01677844114601612,
0.04963618516921997,
0.0015791959594935179,
0.05108731612563133,
-0.09085734188556671,
0.03287803381681442,
0.032943014055490494,
-0.026589009910821915,
-0.04584834724664688,
-0.005597000941634178,
-0.017294161021709442,
0.08011646568775177,
-0.007147848606109619,
0.03702298924326897,
-0.014816898852586746,
-0.05902588367462158,
-0.1293749064207077,
0.1449785828590393,
-0.10230476409196854,
-0.20860812067985535,
-0.16624516248703003,
0.04051660746335983,
-0.06958672404289246,
-0.003883135272189975,
-0.01044860202819109,
-0.016509495675563812,
-0.11622508615255356,
-0.11588588356971741,
0.08656856417655945,
0.012085613794624805,
-0.07559668272733688,
-0.01605406403541565,
0.022973734885454178,
-0.024639910086989403,
-0.1606999784708023,
-0.012709332630038261,
0.013846637681126595,
-0.041646458208560944,
-0.023911554366350174,
0.013076824136078358,
0.07335875928401947,
0.12274504452943802,
-0.022790782153606415,
-0.024199696257710457,
0.005959133617579937,
0.22066675126552582,
-0.1016635075211525,
0.11097582429647446,
0.1539737731218338,
-0.048836879432201385,
0.04676834121346474,
0.10050982981920242,
0.02659851871430874,
-0.07500576972961426,
0.03014358878135681,
-0.000014493707567453384,
-0.05163414776325226,
-0.2396213412284851,
-0.09264549612998962,
-0.053574495017528534,
-0.042495425790548325,
0.05481630191206932,
0.05293336510658264,
0.04863697662949562,
0.03691714257001877,
-0.08999611437320709,
-0.02638271078467369,
0.09740839898586273,
0.10576693713665009,
0.030771944671869278,
-0.018335413187742233,
0.030583692714571953,
-0.05667589604854584,
0.024276921525597572,
0.10359986126422882,
0.016627952456474304,
0.16334405541419983,
-0.0004451461136341095,
0.11546662449836731,
0.05525011569261551,
0.014768647961318493,
0.03356560319662094,
0.10508988052606583,
-0.015147285535931587,
0.026362909004092216,
-0.02397760935127735,
-0.07447361946105957,
-0.03597825765609741,
0.11587841808795929,
0.05354056507349014,
-0.008669998496770859,
-0.01368903461843729,
-0.048973772674798965,
0.04797140508890152,
0.09584935009479523,
0.015414511784911156,
-0.151861310005188,
-0.06612683832645416,
0.042631201446056366,
-0.06289374083280563,
-0.1018366664648056,
0.013206807896494865,
0.09560850262641907,
-0.15127962827682495,
0.06534785777330399,
-0.012282021343708038,
0.08299838751554489,
-0.08795923739671707,
-0.030390765517950058,
-0.02036844938993454,
0.14307311177253723,
-0.030294261872768402,
0.080132856965065,
-0.1511705368757248,
0.0843840092420578,
0.02851874567568302,
0.07998660206794739,
-0.11101628839969635,
0.04826764017343521,
0.0418119877576828,
0.00584135577082634,
0.14313554763793945,
0.032092198729515076,
-0.11499729007482529,
0.00031003402546048164,
-0.08934689313173294,
0.02521173655986786,
0.051718004047870636,
-0.07077203691005707,
0.062052756547927856,
0.0007080848445184529,
-0.013877321034669876,
-0.03430001437664032,
-0.06107308343052864,
-0.14108607172966003,
-0.18393221497535706,
0.041954368352890015,
-0.07531597465276718,
-0.008807954378426075,
-0.07464989274740219,
-0.03961744159460068,
-0.03677856922149658,
0.16369086503982544,
-0.15380465984344482,
-0.10069920122623444,
-0.1364934891462326,
-0.07854369282722473,
0.11780865490436554,
-0.07841785252094269,
0.047214068472385406,
0.02037595957517624,
0.17138275504112244,
-0.08536665886640549,
-0.062384359538555145,
0.042523905634880066,
-0.08549827337265015,
-0.14704878628253937,
-0.011565148830413818,
0.1440797746181488,
0.14662808179855347,
0.05500873923301697,
0.015134179033339024,
-0.005020969547331333,
0.009164780378341675,
-0.15108773112297058,
-0.014544828794896603,
0.19113360345363617,
0.01402733102440834,
0.06287817656993866,
-0.06233864650130272,
-0.1258402317762375,
-0.0764007642865181,
-0.02733384445309639,
0.06351041793823242,
0.17930015921592712,
-0.02710391953587532,
0.1519661843776703,
0.18474611639976501,
-0.09582284092903137,
-0.2372518628835678,
0.03875109925866127,
0.013564537279307842,
0.066990926861763,
0.07537268102169037,
-0.15816721320152283,
0.027384575456380844,
-0.012730736285448074,
-0.0030320296064019203,
0.09386187791824341,
-0.1585811823606491,
-0.14335671067237854,
0.08952829241752625,
0.07599566131830215,
-0.04393783584237099,
-0.01777888834476471,
-0.025611963123083115,
-0.06941378116607666,
-0.14246919751167297,
0.07341119647026062,
-0.009664837270975113,
0.03319930285215378,
0.02337540127336979,
0.045798324048519135,
0.037617962807416916,
-0.032651085406541824,
0.17629536986351013,
0.026841826736927032,
0.08692784607410431,
-0.06595714390277863,
-0.035079263150691986,
0.04024219885468483,
-0.039200227707624435,
0.1420196294784546,
-0.020632831379771233,
0.016627751290798187,
-0.06929226964712143,
-0.08737936615943909,
-0.06800182163715363,
0.07331608235836029,
-0.07015407085418701,
-0.07630104571580887,
-0.0642181858420372,
0.09671513736248016,
0.05532841011881828,
-0.0205820482224226,
-0.08539021760225296,
-0.08199214935302734,
-0.09467682987451553,
0.11855451762676239,
0.21473446488380432,
0.06156766414642334,
-0.012755990028381348,
0.006789230275899172,
0.0011099425610154867,
0.05761517584323883,
-0.09094204008579254,
0.030146565288305283,
0.06478150188922882,
-0.0034046173095703125,
0.09133630990982056,
-0.019035810604691505,
-0.18238957226276398,
-0.022958185523748398,
0.03202665597200394,
-0.06225796416401863,
-0.1613808274269104,
-0.05339840054512024,
-0.00352601520717144,
-0.06633412837982178,
-0.029820378869771957,
0.10829748213291168,
-0.06419403851032257,
-0.02146410197019577,
-0.010879475623369217,
0.06542462110519409,
-0.013880060985684395,
0.05165521055459976,
0.055585574358701706,
0.04098597168922424,
-0.08149145543575287,
0.08493618667125702,
0.02461489662528038,
-0.0768110528588295,
0.02347642555832863,
0.07058499753475189,
-0.06746579706668854,
-0.059529390186071396,
-0.06652381271123886,
0.06748801469802856,
-0.05795036628842354,
-0.07697010785341263,
0.019097521901130676,
-0.09617967903614044,
-0.0005789897404611111,
0.06696370244026184,
0.026622053235769272,
0.01931404508650303,
-0.006914518773555756,
0.013605794869363308,
-0.07879753410816193,
0.06977050006389618,
0.019260114058852196,
0.0068503920920193195,
-0.02000417187809944,
0.03523788973689079,
0.01684590056538582,
0.022933030501008034,
-0.017522722482681274,
-0.03994514048099518,
-0.053045012056827545,
-0.004707310814410448,
-0.12589359283447266,
-0.01277735736221075,
-0.09502860903739929,
0.021749036386609077,
0.010253902524709702,
-0.0219489224255085,
0.014806373044848442,
0.05130639672279358,
-0.07495057582855225,
-0.017454341053962708,
-0.031167756766080856,
0.06657826900482178,
-0.09235388040542603,
0.010868944227695465,
0.07532806694507599,
-0.08388613164424896,
0.10235460847616196,
-0.00674812775105238,
-0.029947325587272644,
0.05436418205499649,
-0.12674835324287415,
0.043998487293720245,
-0.030138496309518814,
0.032329853624105453,
0.030494805425405502,
-0.15165740251541138,
0.002057971665635705,
-0.000537223182618618,
-0.05679205805063248,
-0.025923490524291992,
0.040427953004837036,
-0.06057806313037872,
0.07342890650033951,
0.0490286760032177,
-0.07729703187942505,
-0.05885179340839386,
0.0616186186671257,
0.045723650604486465,
-0.014412915334105492,
0.0852334052324295,
-0.018331684172153473,
0.0546235628426075,
-0.11567959189414978,
-0.004136126488447189,
0.02445036917924881,
0.029065344482660294,
0.04640141874551773,
-0.05495854467153549,
0.06263886392116547,
0.008279982954263687,
0.21777480840682983,
-0.00024315528571605682,
-0.03741363435983658,
0.029679879546165466,
-0.007256193086504936,
-0.042202070355415344,
0.031569041311740875,
-0.015302982181310654,
-0.054437797516584396,
0.05713950842618942,
-0.0038261646404862404,
-0.03393290936946869,
-0.03294363617897034,
-0.06451249122619629,
0.13222841918468475,
0.10336017608642578,
0.1315392702817917,
0.061879076063632965,
0.0701289176940918,
-0.046826962381601334,
-0.07084216177463531,
-0.020199034363031387,
0.0027024694718420506,
0.006562313064932823,
-0.06144998222589493,
0.058959100395441055,
0.12360361218452454,
-0.1642032265663147,
0.10752014815807343,
0.01867862418293953,
-0.060433752834796906,
-0.0855640098452568,
-0.20679479837417603,
-0.013634353876113892,
-0.0034819631837308407,
0.004899968393146992,
-0.08120463788509369,
0.019753295928239822,
0.010874675586819649,
0.0348077118396759,
-0.049467094242572784,
0.10646581649780273,
-0.11607575416564941,
-0.09149065613746643,
0.057584263384342194,
0.033287953585386276,
0.05552813783288002,
0.06585921347141266,
0.020537996664643288,
-0.015031944029033184,
0.0368092879652977,
0.06004815176129341,
0.06102846562862396,
0.02196553349494934,
0.019227422773838043,
-0.005722535774111748,
-0.051902104169130325,
-0.015821175649762154,
-0.019651222974061966,
0.011912929825484753,
0.17165178060531616,
0.05450751632452011,
-0.039703793823719025,
-0.003006494138389826,
0.08507636189460754,
-0.019806580618023872,
-0.10177931189537048,
-0.12682761251926422,
0.10066854953765869,
-0.013781477697193623,
0.018769579008221626,
0.03580591082572937,
-0.09647808969020844,
0.0455358661711216,
0.13156330585479736,
0.192778542637825,
-0.0396517738699913,
0.013424612581729889,
-0.01544626709073782,
0.0069215805269777775,
-0.009892049245536327,
0.09119071066379547,
-0.030829742550849915,
0.2731997072696686,
-0.03695351630449295,
0.09895490854978561,
-0.032310742884874344,
-0.03603718429803848,
-0.0032409541308879852,
0.13772088289260864,
-0.05723442882299423,
-0.04631754010915756,
-0.06301712989807129,
0.08442264795303345,
-0.004879539832472801,
-0.23816107213497162,
0.041519150137901306,
-0.004791310057044029,
-0.07476051151752472,
0.019550746306777,
-0.020405244082212448,
0.04143912345170975,
0.055327147245407104,
0.008006466552615166,
-0.009317020885646343,
0.19567632675170898,
0.013586601242423058,
-0.09369425475597382,
-0.030688146129250526,
0.09286071360111237,
-0.026762647554278374,
0.2053644210100174,
0.026056334376335144,
0.09863410890102386,
0.06849096715450287,
-0.018093589693307877,
-0.11866806447505951,
0.04894806072115898,
0.044095102697610855,
-0.04767245054244995,
0.03603832423686981,
0.158619686961174,
-0.003646855941042304,
0.06279052048921585,
0.04520393908023834,
0.01087363250553608,
0.06477314233779907,
-0.016171583905816078,
-0.04486759006977081,
-0.08631189912557602,
0.1031496524810791,
-0.10370926558971405,
0.15736910700798035,
0.129283607006073,
-0.01060403697192669,
-0.01420535333454609,
-0.037347547709941864,
0.06135750561952591,
-0.008286518976092339,
0.07580322027206421,
-0.0017086444422602654,
-0.1020699143409729,
0.009067747741937637,
0.011195001192390919,
0.059157613664865494,
-0.1900119185447693,
-0.0702306479215622,
0.0037169475108385086,
-0.041633568704128265,
-0.0318700447678566,
0.1030818521976471,
0.036947086453437805,
0.008800185285508633,
-0.013017693534493446,
-0.05049806833267212,
0.018268320709466934,
0.07041075825691223,
-0.09495857357978821,
-0.03368893638253212
] |
null | null | transformers |
# xlm-mlm-enfr-1024
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
The XLM model was proposed in [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample, Alexis Conneau. xlm-mlm-enfr-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-French. This model uses language embeddings to specify the language used at inference. See the [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) for further details.
## Model Description
- **Developed by:** Guillaume Lample, Alexis Conneau, see [associated paper](https://arxiv.org/abs/1901.07291)
- **Model type:** Language model
- **Language(s) (NLP):** English-French
- **License:** CC-BY-NC-4.0
- **Related Models:** [xlm-clm-ende-1024](https://huggingface.co/xlm-clm-enfr-1024), [xlm-clm-ende-1024](https://huggingface.co/xlm-clm-ende-1024), [xlm-mlm-ende-1024](https://huggingface.co/xlm-mlm-ende-1024), [xlm-mlm-enro-1024](https://huggingface.co/xlm-mlm-enro-1024)
- **Resources for more information:**
- [Associated paper](https://arxiv.org/abs/1901.07291)
- [GitHub Repo](https://github.com/facebookresearch/XLM)
- [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings)
# Uses
## Direct Use
The model is a language model. The model can be used for masked language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face [fill mask docs](https://huggingface.co/tasks/fill-mask) and the [Hugging Face Multilingual Models for Inference](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
The model developers write:
> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for links, citations, and further details on the training data and training procedure.
The model developers also write that:
> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.
See the associated [GitHub Repo](https://github.com/facebookresearch/XLM#ii-cross-lingual-language-model-pretraining-xlm) for further details.
# Evaluation
## Testing Data, Factors & Metrics
The model developers evaluated the model on the [WMT'14 English-French](https://huggingface.co/datasets/wmt14) dataset using the [BLEU metric](https://huggingface.co/spaces/evaluate-metric/bleu). See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for further details on the testing data, factors and metrics.
## Results
For xlm-mlm-enfr-1024 results, see Table 1 and Table 2 of the [associated paper](https://arxiv.org/pdf/1901.07291.pdf).
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
The model developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for further details.
# Citation
**BibTeX:**
```bibtex
@article{lample2019cross,
title={Cross-lingual language model pretraining},
author={Lample, Guillaume and Conneau, Alexis},
journal={arXiv preprint arXiv:1901.07291},
year={2019}
}
```
**APA:**
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
More information needed. This model uses language embeddings to specify the language used at inference. See the [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) for further details. | {"language": ["multilingual", "en", "fr"], "license": "cc-by-nc-4.0"} | fill-mask | FacebookAI/xlm-mlm-enfr-1024 | [
"transformers",
"pytorch",
"tf",
"xlm",
"fill-mask",
"multilingual",
"en",
"fr",
"arxiv:1901.07291",
"arxiv:1910.09700",
"license:cc-by-nc-4.0",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1901.07291",
"1910.09700"
] | [
"multilingual",
"en",
"fr"
] | TAGS
#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #fr #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #has_space #region-us
|
# xlm-mlm-enfr-1024
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
# Model Details
The XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-enfr-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-French. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.
## Model Description
- Developed by: Guillaume Lample, Alexis Conneau, see associated paper
- Model type: Language model
- Language(s) (NLP): English-French
- License: CC-BY-NC-4.0
- Related Models: xlm-clm-ende-1024, xlm-clm-ende-1024, xlm-mlm-ende-1024, xlm-mlm-enro-1024
- Resources for more information:
- Associated paper
- GitHub Repo
- Hugging Face Multilingual Models for Inference docs
# Uses
## Direct Use
The model is a language model. The model can be used for masked language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
The model developers write:
> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.
See the associated paper for links, citations, and further details on the training data and training procedure.
The model developers also write that:
> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.
See the associated GitHub Repo for further details.
# Evaluation
## Testing Data, Factors & Metrics
The model developers evaluated the model on the WMT'14 English-French dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.
## Results
For xlm-mlm-enfr-1024 results, see Table 1 and Table 2 of the associated paper.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: More information needed
- Hours used: More information needed
- Cloud Provider: More information needed
- Compute Region: More information needed
- Carbon Emitted: More information needed
# Technical Specifications
The model developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
See the associated paper for further details.
BibTeX:
APA:
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
More information needed. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details. | [
"# xlm-mlm-enfr-1024",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-enfr-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-French. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.",
"## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-French\n- License: CC-BY-NC-4.0\n- Related Models: xlm-clm-ende-1024, xlm-clm-ende-1024, xlm-mlm-ende-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nThe model developers write: \n\n> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n\nSee the associated paper for links, citations, and further details on the training data and training procedure.\n\nThe model developers also write that: \n\n> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.\n\nSee the associated GitHub Repo for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe model developers evaluated the model on the WMT'14 English-French dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.",
"## Results \n\nFor xlm-mlm-enfr-1024 results, see Table 1 and Table 2 of the associated paper.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nMore information needed. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details."
] | [
"TAGS\n#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #fr #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"# xlm-mlm-enfr-1024",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-enfr-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-French. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.",
"## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-French\n- License: CC-BY-NC-4.0\n- Related Models: xlm-clm-ende-1024, xlm-clm-ende-1024, xlm-mlm-ende-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nThe model developers write: \n\n> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n\nSee the associated paper for links, citations, and further details on the training data and training procedure.\n\nThe model developers also write that: \n\n> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.\n\nSee the associated GitHub Repo for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe model developers evaluated the model on the WMT'14 English-French dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.",
"## Results \n\nFor xlm-mlm-enfr-1024 results, see Table 1 and Table 2 of the associated paper.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nMore information needed. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details."
] | [
81,
11,
51,
107,
129,
3,
22,
43,
28,
50,
34,
179,
3,
56,
26,
68,
133,
18,
52
] | [
"passage: TAGS\n#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #fr #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #has_space #region-us \n# xlm-mlm-enfr-1024# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-enfr-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-French. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-French\n- License: CC-BY-NC-4.0\n- Related Models: xlm-clm-ende-1024, xlm-clm-ende-1024, xlm-mlm-ende-1024, xlm-mlm-enro-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs# Uses## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"passage: # Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.# Training\n\nThe model developers write: \n\n> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n\nSee the associated paper for links, citations, and further details on the training data and training procedure.\n\nThe model developers also write that: \n\n> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.\n\nSee the associated GitHub Repo for further details.# Evaluation## Testing Data, Factors & Metrics\n\nThe model developers evaluated the model on the WMT'14 English-French dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.## Results \n\nFor xlm-mlm-enfr-1024 results, see Table 1 and Table 2 of the associated paper.# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291."
] | [
-0.09915752708911896,
0.12804478406906128,
-0.0034546414390206337,
0.05294905602931976,
0.08124061673879623,
0.0020299830939620733,
0.09261974692344666,
0.06460490822792053,
0.06459341943264008,
0.06881685554981232,
-0.0009352898923680186,
0.025547262281179428,
0.09746089577674866,
0.1125890463590622,
0.06501001864671707,
-0.21100816130638123,
0.03568125516176224,
-0.10520102828741074,
0.028233299031853676,
0.09132887423038483,
0.1199951246380806,
-0.0693286582827568,
0.1076996773481369,
0.015197784639894962,
-0.04756060987710953,
-0.008787780068814754,
-0.02436801977455616,
-0.023872287943959236,
0.07703335583209991,
0.08261224627494812,
0.048828065395355225,
-0.0040565067902207375,
0.07535773515701294,
-0.20828591287136078,
0.02779541164636612,
0.057034872472286224,
-0.0026458855718374252,
0.05144888907670975,
0.0587589330971241,
-0.02360803447663784,
0.181569904088974,
-0.07072722166776657,
0.08618025481700897,
0.07293404638767242,
-0.09397751092910767,
-0.11510366201400757,
-0.08357790112495422,
0.029773101210594177,
0.08404369652271271,
0.07985347509384155,
-0.025188902392983437,
0.13888759911060333,
-0.0004005301743745804,
0.03689092770218849,
0.1128055602312088,
-0.12192820757627487,
-0.022784043103456497,
0.05812208354473114,
0.058076586574316025,
0.047925785183906555,
-0.09112226963043213,
0.017916955053806305,
0.02525116503238678,
0.02347157895565033,
0.03284592553973198,
-0.01214591134339571,
0.14674115180969238,
-0.022303558886051178,
-0.11438896507024765,
-0.05483391135931015,
0.11269138008356094,
0.011716678738594055,
-0.0976233184337616,
-0.19701746106147766,
-0.03883912414312363,
0.04998057335615158,
0.012639584951102734,
-0.01765003241598606,
0.015301557257771492,
-0.00951932929456234,
0.09961488842964172,
-0.08809196203947067,
-0.08094169944524765,
-0.018578723073005676,
0.0037564514204859734,
0.15169671177864075,
0.017374377697706223,
0.01834965869784355,
0.0023124245926737785,
0.11886139214038849,
0.01509125530719757,
-0.07367487996816635,
-0.07461759448051453,
-0.10357945412397385,
-0.08868883550167084,
-0.002724657766520977,
-0.006441138684749603,
0.012668902054429054,
-0.014773593284189701,
0.13076995313167572,
-0.017835482954978943,
0.03436707705259323,
0.03406163677573204,
0.009686237201094627,
0.07937128841876984,
0.11427383124828339,
-0.021107204258441925,
-0.08754292875528336,
0.02056671306490898,
0.01613214798271656,
0.009599977172911167,
-0.04506073147058487,
-0.025906918570399284,
-0.034593917429447174,
-0.02805253118276596,
0.10138171911239624,
0.043498434126377106,
0.03993477299809456,
-0.04323667660355568,
-0.06197900325059891,
0.18197453022003174,
-0.1675206422805786,
0.024380221962928772,
0.006193151231855154,
-0.029616916552186012,
0.002806559205055237,
0.05404939875006676,
-0.028057396411895752,
-0.07823938131332397,
-0.01792483776807785,
-0.05791383236646652,
-0.03612932190299034,
-0.10316023230552673,
-0.11245079338550568,
0.02640686370432377,
0.030007947236299515,
-0.015707479789853096,
-0.07156236469745636,
-0.1433972716331482,
-0.0742504671216011,
0.03988117352128029,
-0.03334726393222809,
-0.0278010293841362,
-0.018212199211120605,
-0.029366061091423035,
-0.02721114084124565,
0.01643584854900837,
-0.012929681688547134,
0.0005138259148225188,
0.006592318415641785,
-0.031987451016902924,
0.04288496449589729,
0.017508283257484436,
0.011194957420229912,
-0.039916522800922394,
0.040346965193748474,
-0.1602717638015747,
0.12363138049840927,
-0.06065009906888008,
0.00225758645683527,
-0.07732878625392914,
-0.013155207969248295,
0.012337280437350273,
0.05649842321872711,
0.013689221814274788,
0.12739118933677673,
-0.15552473068237305,
-0.030962519347667694,
0.15980204939842224,
-0.12147372961044312,
-0.029900915920734406,
0.07337336987257004,
-0.04675350338220596,
0.09270118176937103,
0.09269155561923981,
0.005310269072651863,
0.12298595905303955,
-0.1454942673444748,
-0.00881169829517603,
-0.028133008629083633,
-0.05713018774986267,
0.08485814929008484,
0.06362190842628479,
-0.0312952846288681,
-0.009704606607556343,
0.028439095243811607,
-0.0677289366722107,
-0.021131794899702072,
0.014051678590476513,
-0.0551181435585022,
0.024287119507789612,
-0.025125248357653618,
0.023197190836071968,
-0.019557494670152664,
-0.09611617028713226,
-0.010516548529267311,
-0.11049138754606247,
0.0020300489850342274,
0.11688078939914703,
-0.058003537356853485,
0.008384551852941513,
-0.10427691787481308,
0.022405091673135757,
-0.02420893684029579,
-0.007113827392458916,
-0.1575966477394104,
-0.09875684976577759,
0.030478909611701965,
-0.157384991645813,
0.08543079346418381,
0.04896620661020279,
0.032515112310647964,
0.07668814063072205,
-0.03803524374961853,
0.019650474190711975,
-0.030583152547478676,
-0.012683678418397903,
-0.05505670979619026,
-0.1500302404165268,
-0.027099551633000374,
-0.05416474491357803,
0.11750002205371857,
-0.16151176393032074,
0.03229987248778343,
0.042746927589178085,
0.03177567571401596,
0.016299566254019737,
-0.0515410341322422,
0.019847918301820755,
-0.04230372607707977,
-0.0013558692298829556,
-0.05780760198831558,
0.007526084315031767,
-0.012763160280883312,
-0.038451384752988815,
0.08221213519573212,
-0.1846548169851303,
-0.08532965183258057,
0.08869054913520813,
0.09799215942621231,
-0.07906733453273773,
-0.05845145881175995,
-0.021479370072484016,
-0.030113114044070244,
-0.06659749150276184,
-0.07386155426502228,
0.1733604073524475,
0.019332755357027054,
0.050108522176742554,
-0.10178252309560776,
-0.058845240622758865,
-0.012334374710917473,
0.0162540040910244,
-0.04191666096448898,
0.07366123795509338,
0.044077422469854355,
-0.08446363359689713,
0.029978632926940918,
0.03935462236404419,
0.06996045261621475,
0.15085428953170776,
0.04234723001718521,
-0.09092161804437637,
-0.0300523042678833,
-0.0044804587960243225,
-0.0031512859277427197,
0.10970710963010788,
-0.025362633168697357,
0.02981237880885601,
0.04871061444282532,
-0.0031208484433591366,
0.05385575443506241,
-0.08232127130031586,
0.03663831949234009,
0.0439743809401989,
-0.019310103729367256,
-0.05041050910949707,
-0.004642690531909466,
-0.011491511948406696,
0.06937232613563538,
0.005264321342110634,
0.05061444640159607,
-0.021419769152998924,
-0.05986383184790611,
-0.1292022168636322,
0.14117880165576935,
-0.10171808302402496,
-0.2101026177406311,
-0.16341277956962585,
0.023889947682619095,
-0.0419493243098259,
-0.008494825102388859,
-0.01234341785311699,
-0.026279302313923836,
-0.10663886368274689,
-0.1164712905883789,
0.07352900505065918,
0.004645615816116333,
-0.07443955540657043,
0.003704219125211239,
0.02790239080786705,
-0.013478660024702549,
-0.1558915227651596,
-0.0027812449261546135,
0.01918504387140274,
-0.04031015560030937,
-0.020902004092931747,
0.013435278087854385,
0.061742398887872696,
0.1289983093738556,
-0.01263628713786602,
-0.019362308084964752,
0.013786621391773224,
0.24181213974952698,
-0.10054759681224823,
0.11441726982593536,
0.1549462527036667,
-0.04873844236135483,
0.04703877121210098,
0.10079692304134369,
0.019050434231758118,
-0.076192706823349,
0.04027186334133148,
0.016939660534262657,
-0.051650241017341614,
-0.24971985816955566,
-0.0676298439502716,
-0.04472551494836807,
-0.039313144981861115,
0.040847815573215485,
0.054570361971855164,
0.04985134303569794,
0.02942924201488495,
-0.0778668224811554,
-0.03782147914171219,
0.09837934374809265,
0.0995195284485817,
0.04050842672586441,
-0.03091631457209587,
0.03964463993906975,
-0.05236823111772537,
0.03220408409833908,
0.09790095686912537,
0.007237718440592289,
0.16989094018936157,
0.010144313797354698,
0.12599486112594604,
0.05925540253520012,
0.010424847714602947,
0.03889462724328041,
0.09548923373222351,
-0.02001596800982952,
0.03459694981575012,
-0.025376489385962486,
-0.0710778757929802,
-0.035710785537958145,
0.10312545299530029,
0.05400436371564865,
-0.011430229060351849,
-0.01041147019714117,
-0.03834913671016693,
0.036055658012628555,
0.09504316747188568,
0.015106722712516785,
-0.15363740921020508,
-0.05719122290611267,
0.045459285378456116,
-0.06762389838695526,
-0.10772843658924103,
0.0027740164659917355,
0.10078705102205276,
-0.15182343125343323,
0.04977616295218468,
-0.01684381626546383,
0.0838940292596817,
-0.08913250267505646,
-0.026395756751298904,
-0.011117430403828621,
0.14252787828445435,
-0.027092313393950462,
0.06664837896823883,
-0.12296319752931595,
0.07076594233512878,
0.029585516080260277,
0.0761043131351471,
-0.08912990242242813,
0.0508597269654274,
0.036608584225177765,
0.012388398870825768,
0.13476961851119995,
0.030239619314670563,
-0.09163571894168854,
-0.01764909364283085,
-0.09342724084854126,
0.025695640593767166,
0.05376484617590904,
-0.07712306082248688,
0.0754292905330658,
-0.006799361202865839,
-0.026353785768151283,
-0.0329931378364563,
-0.0495779812335968,
-0.1360100507736206,
-0.19256998598575592,
0.04589180648326874,
-0.08807751536369324,
-0.00947214663028717,
-0.06738004088401794,
-0.036619432270526886,
-0.03228495270013809,
0.16408008337020874,
-0.1480381041765213,
-0.10289151966571808,
-0.1302700638771057,
-0.06733064353466034,
0.1306234747171402,
-0.06688553839921951,
0.04128718376159668,
0.01685003936290741,
0.1709652543067932,
-0.06078985333442688,
-0.05589808151125908,
0.041345834732055664,
-0.07443957030773163,
-0.14933466911315918,
-0.01933288760483265,
0.1415092945098877,
0.1372452676296234,
0.055273789912462234,
0.006645560264587402,
0.00004499964416027069,
-0.001430282834917307,
-0.13612693548202515,
-0.016528353095054626,
0.21480494737625122,
0.016295626759529114,
0.0449000708758831,
-0.05630415305495262,
-0.07783535122871399,
-0.09572283923625946,
-0.024985533207654953,
0.07119904458522797,
0.17339962720870972,
-0.028152935206890106,
0.14213162660598755,
0.1736844927072525,
-0.10196021944284439,
-0.20487740635871887,
0.023156020790338516,
0.007546642795205116,
0.05945464223623276,
0.08731906116008759,
-0.1715037226676941,
0.0187402181327343,
-0.013827375136315823,
0.0073588234372437,
0.10203330218791962,
-0.16966275870800018,
-0.1389327198266983,
0.07608136534690857,
0.06725712865591049,
-0.031343504786491394,
-0.03080400638282299,
-0.03224727511405945,
-0.06364231556653976,
-0.14160773158073425,
0.08115085959434509,
-0.02042052522301674,
0.040429290384054184,
0.01951001212000847,
0.0294736847281456,
0.0350235290825367,
-0.026495102792978287,
0.1701551377773285,
0.005623172037303448,
0.07210725545883179,
-0.06159789115190506,
-0.03311431407928467,
0.03493145853281021,
-0.04803476110100746,
0.11587606370449066,
0.0031982259824872017,
0.02283773571252823,
-0.07942242920398712,
-0.09184350073337555,
-0.06866093724966049,
0.044974155724048615,
-0.06948129832744598,
-0.05698332563042641,
-0.05215165764093399,
0.09312758594751358,
0.0561843067407608,
-0.019669927656650543,
-0.09116210043430328,
-0.08849254250526428,
-0.07647450268268585,
0.13642796874046326,
0.2129059135913849,
0.05614398047327995,
-0.018811076879501343,
0.014822789467871189,
0.0059202066622674465,
0.05088796839118004,
-0.11295618861913681,
0.030444201081991196,
0.06336969137191772,
0.0010530129075050354,
0.08524485677480698,
-0.011188551783561707,
-0.18039599061012268,
-0.03263337165117264,
0.030035309493541718,
-0.056746162474155426,
-0.16903290152549744,
-0.0427837148308754,
-0.009060725569725037,
-0.09682647138834,
-0.05096997320652008,
0.10844433307647705,
-0.04167962074279785,
-0.03127385675907135,
-0.0015070335939526558,
0.07153723388910294,
-0.008216192945837975,
0.05739174038171768,
0.05801122635602951,
0.041547104716300964,
-0.08598952740430832,
0.07806173712015152,
0.03515257686376572,
-0.05854622647166252,
0.015741467475891113,
0.08499039709568024,
-0.07144647091627121,
-0.060435425490140915,
-0.07463924586772919,
0.06562034040689468,
-0.02747809886932373,
-0.06483498215675354,
0.030909821391105652,
-0.08924902975559235,
0.00477266451343894,
0.08242093026638031,
0.01733318902552128,
0.027793660759925842,
-0.00880837719887495,
0.009993430227041245,
-0.0873878076672554,
0.0723993107676506,
0.017519142478704453,
-0.0031987586989998817,
-0.03155600279569626,
0.027613434940576553,
0.02220052480697632,
0.02667231485247612,
-0.011798487976193428,
-0.04966235160827637,
-0.049111079424619675,
-0.007308827713131905,
-0.1106792539358139,
-0.012220283970236778,
-0.09051434695720673,
0.012025605887174606,
0.008547067642211914,
-0.013014829717576504,
0.005095720291137695,
0.04060116782784462,
-0.06689073145389557,
-0.02917877957224846,
-0.03282754495739937,
0.06508715450763702,
-0.08650057762861252,
0.017609581351280212,
0.07207520306110382,
-0.09462780505418777,
0.09380099177360535,
-0.00658335629850626,
-0.028196122497320175,
0.05024053156375885,
-0.1044815257191658,
0.039858706295490265,
-0.03437758609652519,
0.024736125022172928,
0.03376799821853638,
-0.1673537790775299,
-0.0029563007410615683,
-0.017478767782449722,
-0.04899156093597412,
-0.028147339820861816,
0.047878995537757874,
-0.06727577745914459,
0.07271211594343185,
0.04087623208761215,
-0.0631299614906311,
-0.059366580098867416,
0.04041273519396782,
0.044475916773080826,
-0.0036820359528064728,
0.09188826382160187,
-0.007765752263367176,
0.06192198023200035,
-0.12938231229782104,
-0.0034950452391058207,
0.016652323305606842,
0.036768630146980286,
0.0785570740699768,
-0.05464160814881325,
0.06517816334962845,
0.005700474139302969,
0.1954241693019867,
-0.011943941935896873,
-0.014928803779184818,
0.03150846064090729,
-0.018575292080640793,
-0.06239243596792221,
0.0315224751830101,
-0.02506859041750431,
-0.03292158246040344,
0.047611773014068604,
0.01906430721282959,
-0.025126297026872635,
-0.021694069728255272,
-0.0573674775660038,
0.12738126516342163,
0.10088606178760529,
0.1399742215871811,
0.06364137679338455,
0.05951197072863579,
-0.042476341128349304,
-0.056375257670879364,
0.013396738097071648,
-0.0072607374750077724,
-0.003608346451073885,
-0.07285141199827194,
0.0469658188521862,
0.1283712387084961,
-0.14731991291046143,
0.10787803679704666,
0.004215859808027744,
-0.0689198225736618,
-0.10171005129814148,
-0.1854788362979889,
-0.015980657190084457,
0.00016982760280370712,
-0.0033820541575551033,
-0.08283621072769165,
0.031316764652729034,
0.02278783917427063,
0.02462371438741684,
-0.04367541894316673,
0.09223562479019165,
-0.09444308280944824,
-0.0902768075466156,
0.039561379700899124,
0.03195410966873169,
0.05299188941717148,
0.05502326041460037,
0.03653557598590851,
0.00039868755266070366,
0.047025784850120544,
0.05953262001276016,
0.06249699741601944,
0.025411222130060196,
0.02846614085137844,
-0.011140663176774979,
-0.06435427069664001,
-0.021684102714061737,
-0.01084691658616066,
0.0018417340470477939,
0.1632293164730072,
0.052396610379219055,
-0.04482785612344742,
-0.005605635233223438,
0.1127997562289238,
-0.025644153356552124,
-0.08822190761566162,
-0.13940709829330444,
0.09255968034267426,
-0.007298949174582958,
0.010879701003432274,
0.027443524450063705,
-0.1043906956911087,
0.039852324873209,
0.15181677043437958,
0.18440452218055725,
-0.0386471301317215,
0.012380777858197689,
0.004330874420702457,
0.010047532618045807,
-0.02125769853591919,
0.07429657876491547,
-0.005550752393901348,
0.23092082142829895,
-0.03798161819577217,
0.09197856485843658,
-0.025158517062664032,
-0.03921554610133171,
-0.005487924441695213,
0.12682241201400757,
-0.040667638182640076,
-0.023583149537444115,
-0.050065573304891586,
0.07926194369792938,
-0.018785860389471054,
-0.2610603868961334,
0.040824539959430695,
-0.01606225222349167,
-0.07708314061164856,
0.009971877560019493,
-0.03136417642235756,
0.03033030591905117,
0.058622196316719055,
0.014106121845543385,
-0.021239466965198517,
0.20594513416290283,
0.018930746242403984,
-0.08538950979709625,
-0.029403837397694588,
0.10388407856225967,
-0.05109476298093796,
0.190597265958786,
0.022732699289917946,
0.07587001472711563,
0.07031764090061188,
-0.021960455924272537,
-0.12325631082057953,
0.04582342877984047,
0.03259877860546112,
-0.03551328182220459,
0.03836172819137573,
0.17247436940670013,
0.005853801500052214,
0.05565166473388672,
0.04118465632200241,
0.002070460468530655,
0.060356296598911285,
-0.04304713383316994,
-0.03522166982293129,
-0.0785011351108551,
0.09302950650453568,
-0.10202234983444214,
0.15652823448181152,
0.13556471467018127,
-0.021845528855919838,
-0.004584785550832748,
-0.030116956681013107,
0.04314877837896347,
-0.016740478575229645,
0.0804796814918518,
-0.021464256569743156,
-0.10733850300312042,
0.007418503053486347,
0.0022658000234514475,
0.06661449372768402,
-0.2001723200082779,
-0.06536532938480377,
0.012816337868571281,
-0.04248741641640663,
-0.024086665362119675,
0.1006399393081665,
0.039799656718969345,
0.019537009298801422,
-0.016705745831131935,
-0.04085760936141014,
0.017415862530469894,
0.08390144258737564,
-0.1112171858549118,
-0.028307843953371048
] |
null | null | transformers |
# xlm-mlm-enro-1024
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
The XLM model was proposed in [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample, Alexis Conneau. xlm-mlm-enro-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-Romanian. This model uses language embeddings to specify the language used at inference. See the [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) for further details.
## Model Description
- **Developed by:** Guillaume Lample, Alexis Conneau, see [associated paper](https://arxiv.org/abs/1901.07291)
- **Model type:** Language model
- **Language(s) (NLP):** English-Romanian
- **License:** license: cc-by-nc-4.0
- **Related Models:** [xlm-clm-enfr-1024](https://huggingface.co/xlm-clm-enfr-1024), [xlm-clm-ende-1024](https://huggingface.co/xlm-clm-ende-1024), [xlm-mlm-enfr-1024](https://huggingface.co/xlm-mlm-enfr-1024), [xlm-mlm-ende-1024](https://huggingface.co/xlm-mlm-ende-1024)
- **Resources for more information:**
- [Associated paper](https://arxiv.org/abs/1901.07291)
- [GitHub Repo](https://github.com/facebookresearch/XLM)
- [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings)
# Uses
## Direct Use
The model is a language model. The model can be used for masked language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face [fill mask docs](https://huggingface.co/tasks/fill-mask) and the [Hugging Face Multilingual Models for Inference](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
The model developers write:
> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for links, citations, and further details on the training data and training procedure.
The model developers also write that:
> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.
See the associated [GitHub Repo](https://github.com/facebookresearch/XLM#ii-cross-lingual-language-model-pretraining-xlm) for further details.
# Evaluation
## Testing Data, Factors & Metrics
The model developers evaluated the model on the [WMT'16 English-Romanian](https://huggingface.co/datasets/wmt16) dataset using the [BLEU metric](https://huggingface.co/spaces/evaluate-metric/bleu). See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for further details on the testing data, factors and metrics.
## Results
For xlm-mlm-enro-1024 results, see Tables 1-3 of the [associated paper](https://arxiv.org/pdf/1901.07291.pdf).
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** More information needed
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
The model developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for further details.
# Citation
**BibTeX:**
```bibtex
@article{lample2019cross,
title={Cross-lingual language model pretraining},
author={Lample, Guillaume and Conneau, Alexis},
journal={arXiv preprint arXiv:1901.07291},
year={2019}
}
```
**APA:**
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
More information needed. This model uses language embeddings to specify the language used at inference. See the [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) for further details. | {"language": ["multilingual", "en", "ro"], "license": "cc-by-nc-4.0"} | fill-mask | FacebookAI/xlm-mlm-enro-1024 | [
"transformers",
"pytorch",
"tf",
"xlm",
"fill-mask",
"multilingual",
"en",
"ro",
"arxiv:1901.07291",
"arxiv:1910.09700",
"license:cc-by-nc-4.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1901.07291",
"1910.09700"
] | [
"multilingual",
"en",
"ro"
] | TAGS
#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #ro #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us
|
# xlm-mlm-enro-1024
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
# Model Details
The XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-enro-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-Romanian. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.
## Model Description
- Developed by: Guillaume Lample, Alexis Conneau, see associated paper
- Model type: Language model
- Language(s) (NLP): English-Romanian
- License: license: cc-by-nc-4.0
- Related Models: xlm-clm-enfr-1024, xlm-clm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-ende-1024
- Resources for more information:
- Associated paper
- GitHub Repo
- Hugging Face Multilingual Models for Inference docs
# Uses
## Direct Use
The model is a language model. The model can be used for masked language modeling.
## Downstream Use
To learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
The model developers write:
> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.
See the associated paper for links, citations, and further details on the training data and training procedure.
The model developers also write that:
> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.
See the associated GitHub Repo for further details.
# Evaluation
## Testing Data, Factors & Metrics
The model developers evaluated the model on the WMT'16 English-Romanian dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.
## Results
For xlm-mlm-enro-1024 results, see Tables 1-3 of the associated paper.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: More information needed
- Hours used: More information needed
- Cloud Provider: More information needed
- Compute Region: More information needed
- Carbon Emitted: More information needed
# Technical Specifications
The model developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
See the associated paper for further details.
BibTeX:
APA:
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
More information needed. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details. | [
"# xlm-mlm-enro-1024",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-enro-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-Romanian. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.",
"## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-Romanian\n- License: license: cc-by-nc-4.0\n- Related Models: xlm-clm-enfr-1024, xlm-clm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-ende-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nThe model developers write: \n\n> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n\nSee the associated paper for links, citations, and further details on the training data and training procedure.\n\nThe model developers also write that: \n\n> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.\n\nSee the associated GitHub Repo for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe model developers evaluated the model on the WMT'16 English-Romanian dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.",
"## Results \n\nFor xlm-mlm-enro-1024 results, see Tables 1-3 of the associated paper.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nMore information needed. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details."
] | [
"TAGS\n#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #ro #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"# xlm-mlm-enro-1024",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-enro-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-Romanian. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.",
"## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-Romanian\n- License: license: cc-by-nc-4.0\n- Related Models: xlm-clm-enfr-1024, xlm-clm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-ende-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.",
"## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nThe model developers write: \n\n> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n\nSee the associated paper for links, citations, and further details on the training data and training procedure.\n\nThe model developers also write that: \n\n> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.\n\nSee the associated GitHub Repo for further details.",
"# Evaluation",
"## Testing Data, Factors & Metrics\n\nThe model developers evaluated the model on the WMT'16 English-Romanian dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.",
"## Results \n\nFor xlm-mlm-enro-1024 results, see Tables 1-3 of the associated paper.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.",
"# Model Card Authors \n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nMore information needed. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details."
] | [
77,
11,
51,
106,
132,
3,
22,
43,
28,
50,
34,
179,
3,
55,
24,
68,
133,
18,
52
] | [
"passage: TAGS\n#transformers #pytorch #tf #xlm #fill-mask #multilingual #en #ro #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n# xlm-mlm-enro-1024# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model# Model Details\n\nThe XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-enro-1024 is a transformer pretrained using a masked language modeling (MLM) objective for English-Romanian. This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.## Model Description\n\n- Developed by: Guillaume Lample, Alexis Conneau, see associated paper\n- Model type: Language model\n- Language(s) (NLP): English-Romanian\n- License: license: cc-by-nc-4.0\n- Related Models: xlm-clm-enfr-1024, xlm-clm-ende-1024, xlm-mlm-enfr-1024, xlm-mlm-ende-1024\n- Resources for more information: \n - Associated paper\n - GitHub Repo\n - Hugging Face Multilingual Models for Inference docs# Uses## Direct Use\n\nThe model is a language model. The model can be used for masked language modeling.## Downstream Use\n\nTo learn more about this task and potential downstream uses, see the Hugging Face fill mask docs and the Hugging Face Multilingual Models for Inference docs.## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"passage: # Bias, Risks, and Limitations\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.# Training\n\nThe model developers write: \n\n> In all experiments, we use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam op- timizer (Kingma and Ba, 2014), a linear warm- up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n\nSee the associated paper for links, citations, and further details on the training data and training procedure.\n\nThe model developers also write that: \n\n> If you use these models, you should use the same data preprocessing / BPE codes to preprocess your data.\n\nSee the associated GitHub Repo for further details.# Evaluation## Testing Data, Factors & Metrics\n\nThe model developers evaluated the model on the WMT'16 English-Romanian dataset using the BLEU metric. See the associated paper for further details on the testing data, factors and metrics.## Results \n\nFor xlm-mlm-enro-1024 results, see Tables 1-3 of the associated paper.# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: More information needed\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed# Technical Specifications\n\nThe model developers write: \n\n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291."
] | [
-0.10274261236190796,
0.1360408067703247,
-0.0028801425360143185,
0.06237073987722397,
0.08461561799049377,
0.01100942399352789,
0.13100211322307587,
0.0632285624742508,
0.08769073337316513,
0.07070522010326385,
0.003961462527513504,
0.0015473049134016037,
0.10342633724212646,
0.07872171700000763,
0.07761763781309128,
-0.21147361397743225,
0.05261247605085373,
-0.10197612643241882,
0.03858756273984909,
0.07564078271389008,
0.12313681840896606,
-0.06453491747379303,
0.11562927067279816,
0.023187831044197083,
-0.04685558006167412,
-0.002449359744787216,
-0.028707880526781082,
-0.03304285183548927,
0.08828194439411163,
0.08457070589065552,
0.029696691781282425,
-0.0030408352613449097,
0.09313692152500153,
-0.19937026500701904,
0.02266649901866913,
0.04113383591175079,
-0.016585160046815872,
0.03780031576752663,
0.07228702306747437,
-0.014871680177748203,
0.21313108503818512,
-0.05833083763718605,
0.08921299874782562,
0.0628528818488121,
-0.08884936571121216,
-0.10899879038333893,
-0.09581701457500458,
0.04446429759263992,
0.07633818686008453,
0.08679014444351196,
-0.024620629847049713,
0.15752330422401428,
-0.02403760515153408,
0.021240845322608948,
0.0848279744386673,
-0.13777822256088257,
-0.014100895263254642,
0.04120822623372078,
0.04864446446299553,
0.04617834836244583,
-0.07644490152597427,
0.02365296334028244,
0.022654486820101738,
0.01879616267979145,
0.008669057860970497,
-0.0067916205152869225,
0.13642752170562744,
-0.029238887131214142,
-0.10031530261039734,
-0.06957299262285233,
0.12817136943340302,
0.006488807965070009,
-0.09985028207302094,
-0.1891075074672699,
-0.01792909950017929,
0.05481633543968201,
0.009116346016526222,
0.001254487782716751,
0.014094958081841469,
0.003086344338953495,
0.12811195850372314,
-0.06791763752698898,
-0.08085629343986511,
-0.019469210878014565,
-0.005014275200664997,
0.1664886772632599,
0.042386531829833984,
0.026709944009780884,
0.0070655252784490585,
0.11977727711200714,
0.026032704859972,
-0.08466871827840805,
-0.06402723491191864,
-0.08023784309625626,
-0.08448386192321777,
-0.0011487972224131227,
-0.00268964353017509,
0.028716830536723137,
-0.007836266420781612,
0.13958165049552917,
0.0011829196009784937,
0.032818712294101715,
0.0363948792219162,
0.016255971044301987,
0.07051410526037216,
0.1262885183095932,
-0.026667200028896332,
-0.08861297369003296,
0.03257186710834503,
0.012063811533153057,
0.021747756749391556,
-0.0352122038602829,
-0.0485670268535614,
-0.0532858669757843,
-0.0303262397646904,
0.11456431448459625,
0.04882718250155449,
0.03638574481010437,
-0.03435102850198746,
-0.05510465428233147,
0.17869344353675842,
-0.16398514807224274,
0.02077149599790573,
0.0016630650497972965,
-0.04063989222049713,
0.02684745006263256,
0.0402979739010334,
-0.026006363332271576,
-0.09687307476997375,
-0.03105449676513672,
-0.053812265396118164,
-0.0217586737126112,
-0.10596808791160583,
-0.1076880395412445,
0.037167951464653015,
0.03584998473525047,
-0.014881814830005169,
-0.062090013176202774,
-0.1375790536403656,
-0.06444628536701202,
0.04292749613523483,
-0.0387495756149292,
-0.028226936236023903,
-0.02274002507328987,
-0.00878017209470272,
-0.03289784491062164,
0.012654954567551613,
-0.05434836447238922,
-0.007530100177973509,
0.0060041435062885284,
-0.04010477662086487,
0.026386411860585213,
-0.009265204891562462,
0.023235183209180832,
-0.05923186242580414,
0.03404546529054642,
-0.1486525535583496,
0.11596667766571045,
-0.057771340012550354,
0.03019673004746437,
-0.0667991191148758,
-0.009425400756299496,
0.034209318459033966,
0.05436767265200615,
0.01329014915972948,
0.13667574524879456,
-0.16867473721504211,
-0.023342490196228027,
0.15692229568958282,
-0.14092698693275452,
-0.03449038416147232,
0.09881727397441864,
-0.044226329773664474,
0.09082239121198654,
0.10821902006864548,
0.008220987394452095,
0.11281302571296692,
-0.13570375740528107,
-0.005054786801338196,
-0.040579624474048615,
-0.05782892554998398,
0.060493916273117065,
0.07276061177253723,
-0.04035494104027748,
0.017925478518009186,
0.04564015194773674,
-0.08945870399475098,
-0.00758429104462266,
0.021137095987796783,
-0.05852707475423813,
0.02321532927453518,
-0.009729165583848953,
0.006242652423679829,
-0.0103136682882905,
-0.08020821213722229,
-0.017905641347169876,
-0.10949912667274475,
0.00257809367030859,
0.12597021460533142,
-0.06431858986616135,
0.00826083030551672,
-0.11621616780757904,
0.06535497307777405,
-0.00773036852478981,
-0.009212345816195011,
-0.13245663046836853,
-0.09149015694856644,
0.03885117173194885,
-0.1526365876197815,
0.10184141993522644,
0.03588441386818886,
0.017784716561436653,
0.08405819535255432,
-0.030156059190630913,
0.020703431218862534,
-0.03892194479703903,
-0.016710501164197922,
-0.04477211833000183,
-0.1522289663553238,
-0.01979506015777588,
-0.03781641647219658,
0.11653994023799896,
-0.15775641798973083,
0.026698896661400795,
0.041822124272584915,
0.03610501438379288,
-0.0015042824670672417,
-0.041999172419309616,
-0.010315372608602047,
-0.03168526291847229,
-0.009679730981588364,
-0.061995141208171844,
0.013692019507288933,
-0.018753331154584885,
-0.02335464209318161,
0.08823298662900925,
-0.17933034896850586,
-0.07704853266477585,
0.10465072095394135,
0.08679559081792831,
-0.07233034074306488,
-0.061413176357746124,
-0.0012161131016910076,
-0.02486375719308853,
-0.047650113701820374,
-0.04401519149541855,
0.1864093840122223,
0.01096236240118742,
0.05304601043462753,
-0.111017607152462,
-0.04179363325238228,
-0.011140383780002594,
0.009009125642478466,
-0.05813636630773544,
0.06540398299694061,
0.09818938374519348,
-0.10613930225372314,
0.04635043442249298,
0.03635057061910629,
0.06283910572528839,
0.15806038677692413,
0.025387249886989594,
-0.09879995137453079,
-0.02474904991686344,
0.019642246887087822,
0.0024419990368187428,
0.13428691029548645,
-0.040091920644044876,
0.028051359578967094,
0.038359642028808594,
-0.004479709547013044,
0.056887704879045486,
-0.09487918764352798,
0.0313933864235878,
0.030812155455350876,
-0.027075650170445442,
-0.08218920975923538,
-0.008634181693196297,
-0.020202770829200745,
0.07214701175689697,
-0.00020500179380178452,
0.040762417018413544,
-0.014481225982308388,
-0.049090299755334854,
-0.12413983792066574,
0.13990578055381775,
-0.11237532645463943,
-0.19193607568740845,
-0.18930956721305847,
0.031838636845350266,
-0.06244492530822754,
-0.012384111061692238,
-0.02028554677963257,
-0.02846522442996502,
-0.11488790810108185,
-0.116744764149189,
0.07145073264837265,
-0.007239757105708122,
-0.0841330885887146,
-0.010802214033901691,
0.049055010080337524,
-0.02908250316977501,
-0.14478714764118195,
-0.012915404513478279,
0.012252395041286945,
-0.04692409560084343,
-0.033095840364694595,
-0.006291224621236324,
0.06179545447230339,
0.1108708307147026,
-0.01858338713645935,
-0.017895370721817017,
0.013866002671420574,
0.21470636129379272,
-0.10105982422828674,
0.09469182789325714,
0.1687823086977005,
-0.04639790952205658,
0.039510954171419144,
0.11702430248260498,
0.022945992648601532,
-0.07366494834423065,
0.025040948763489723,
-0.0010162047110497952,
-0.047813426703214645,
-0.23585471510887146,
-0.09019546955823898,
-0.05414818227291107,
-0.06028183922171593,
0.042817194014787674,
0.0572197362780571,
0.025759607553482056,
0.039020661264657974,
-0.09262803196907043,
-0.031119732186198235,
0.09286446124315262,
0.10347074270248413,
0.08580376952886581,
-0.015033119358122349,
0.024942025542259216,
-0.0709843635559082,
0.03367855027318001,
0.09523475170135498,
0.01290817093104124,
0.18223798274993896,
0.01281081885099411,
0.14530575275421143,
0.05693408101797104,
0.052436571568250656,
0.04624971002340317,
0.08928684890270233,
-0.008031504228711128,
0.026041220873594284,
-0.01828877441585064,
-0.06323745101690292,
-0.039702415466308594,
0.09340822696685791,
0.060265664011240005,
-0.02227463386952877,
-0.010159363970160484,
-0.04584834352135658,
0.02935124933719635,
0.11080212146043777,
-0.0034606242552399635,
-0.17783299088478088,
-0.052694424986839294,
0.043300408869981766,
-0.06089439243078232,
-0.10932600498199463,
-0.0017902047839015722,
0.0759793221950531,
-0.1578666865825653,
0.05901356786489487,
-0.004903842695057392,
0.08151847124099731,
-0.09312917292118073,
-0.036887072026729584,
-0.014079157263040543,
0.13371890783309937,
-0.025765888392925262,
0.07736492156982422,
-0.11880937218666077,
0.08907477557659149,
0.030990952625870705,
0.08401203155517578,
-0.09378375858068466,
0.05946759507060051,
0.0426250621676445,
0.042070746421813965,
0.11643476784229279,
0.026816602796316147,
-0.09399625658988953,
-0.03272389993071556,
-0.08766037970781326,
0.033693596720695496,
0.0355735719203949,
-0.0610089935362339,
0.07530789077281952,
-0.018999889492988586,
-0.0036710789427161217,
-0.04030740633606911,
-0.055122099816799164,
-0.1297258883714676,
-0.2058909386396408,
0.04720102995634079,
-0.0918537899851799,
-0.012649242766201496,
-0.06541018187999725,
-0.04362265393137932,
-0.04620976001024246,
0.1574508100748062,
-0.1318264752626419,
-0.09978139400482178,
-0.12490896880626678,
-0.08095308393239975,
0.13894033432006836,
-0.07898987829685211,
0.037435926496982574,
0.0019398117437958717,
0.15318244695663452,
-0.0625201165676117,
-0.052098989486694336,
0.03447050601243973,
-0.06898301839828491,
-0.14302939176559448,
-0.007647909689694643,
0.1341409832239151,
0.13243664801120758,
0.05041490122675896,
0.02107740193605423,
-0.0016789748333394527,
0.004320420790463686,
-0.14023754000663757,
-0.043175067752599716,
0.20153990387916565,
-0.004199683666229248,
0.03794475644826889,
-0.07336991280317307,
-0.12030145525932312,
-0.09435483813285828,
-0.03735865652561188,
0.07524645328521729,
0.18685638904571533,
-0.023129507899284363,
0.15452119708061218,
0.18150590360164642,
-0.1079491674900055,
-0.2022608518600464,
0.026152852922677994,
-0.0010849833488464355,
0.06313417851924896,
0.09281475841999054,
-0.16864734888076782,
0.008574279956519604,
-0.018124202266335487,
0.004785142373293638,
0.09704119712114334,
-0.17266426980495453,
-0.1290225386619568,
0.08869515359401703,
0.0787837877869606,
-0.027567053213715553,
-0.022892232984304428,
-0.01965336501598358,
-0.07375825941562653,
-0.1414620727300644,
0.06734642386436462,
0.018673036247491837,
0.03353274241089821,
0.014918270520865917,
0.03948353976011276,
0.034371159970760345,
-0.017069701105356216,
0.18408934772014618,
-0.008979390375316143,
0.06986740231513977,
-0.07310546934604645,
-0.02494908683001995,
0.058622993528842926,
-0.030824586749076843,
0.12127966433763504,
-0.018916236236691475,
0.001192515715956688,
-0.08320304751396179,
-0.10022924840450287,
-0.049319732934236526,
0.050047650933265686,
-0.07198812812566757,
-0.0443706214427948,
-0.04806683212518692,
0.0860167145729065,
0.045558180660009384,
-0.01636866107583046,
-0.09888893365859985,
-0.07589664310216904,
-0.10762037336826324,
0.09176303446292877,
0.21098849177360535,
0.041293103247880936,
-0.0015717041678726673,
0.013095973059535027,
0.014511030167341232,
0.05143648386001587,
-0.07854387164115906,
0.026012476533651352,
0.06321126222610474,
-0.013077454641461372,
0.07962594926357269,
-0.017283180728554726,
-0.18931841850280762,
-0.0115797258913517,
0.0372132770717144,
-0.03556529060006142,
-0.16110862791538239,
-0.031382400542497635,
-0.01476527564227581,
-0.07592477649450302,
-0.0511065274477005,
0.09537240862846375,
-0.055611565709114075,
-0.03276108205318451,
-0.007666312158107758,
0.06894393265247345,
-0.008401960134506226,
0.0466989241540432,
0.032354936003685,
0.02168617770075798,
-0.09227250516414642,
0.09324948489665985,
0.035179220139980316,
-0.059266991913318634,
0.014829801395535469,
0.08508235961198807,
-0.08300904929637909,
-0.07128742337226868,
-0.07125790417194366,
0.05627109482884407,
-0.057064808905124664,
-0.09153145551681519,
0.003701593726873398,
-0.10011159628629684,
-0.010714254342019558,
0.0498872846364975,
0.024307813495397568,
0.013955051079392433,
-0.023643728345632553,
-0.00800197571516037,
-0.09061677753925323,
0.060421064496040344,
0.0217965729534626,
-0.018997283652424812,
-0.02028830163180828,
0.024469975382089615,
0.043216362595558167,
-0.002879432402551174,
-0.003833342809230089,
-0.055012207478284836,
-0.044401615858078,
0.000983926933258772,
-0.12433114647865295,
-0.015250950120389462,
-0.10985632240772247,
0.02362195774912834,
0.008630150929093361,
-0.022273026406764984,
0.0014002872630953789,
0.035550761967897415,
-0.07761798799037933,
-0.032497815787792206,
-0.034992706030607224,
0.08353842794895172,
-0.08366741240024567,
0.027005735784769058,
0.07892775535583496,
-0.0870346948504448,
0.10529164969921112,
-0.006975511088967323,
-0.02510613203048706,
0.06424061954021454,
-0.11679735779762268,
0.03449782356619835,
-0.05685745179653168,
0.033504948019981384,
0.036220453679561615,
-0.1520153284072876,
0.011488866992294788,
0.005412099417299032,
-0.051915839314460754,
-0.020067736506462097,
0.05665617063641548,
-0.057320788502693176,
0.0523734949529171,
0.03974342346191406,
-0.08070021122694016,
-0.04884425550699234,
0.060664013028144836,
0.049946729093790054,
-0.01133157592266798,
0.09554093331098557,
-0.01175042986869812,
0.055468492209911346,
-0.11302261054515839,
-0.007089976686984301,
0.005879338830709457,
0.049546122550964355,
0.04244548827409744,
-0.054720982909202576,
0.06274506449699402,
0.02092280238866806,
0.20768997073173523,
0.007486287504434586,
-0.02095925435423851,
0.02815309911966324,
0.011363521218299866,
-0.0456770658493042,
0.028248796239495277,
-0.001735486090183258,
-0.032814785838127136,
0.07249294966459274,
0.006574387662112713,
-0.02873573824763298,
-0.04584236443042755,
-0.08759190142154694,
0.10404326766729355,
0.10977602005004883,
0.12066978216171265,
0.06303870677947998,
0.07651953399181366,
-0.05217868089675903,
-0.05245272070169449,
-0.0038176029920578003,
-0.00712227076292038,
-0.005810488015413284,
-0.0679386705160141,
0.07784412801265717,
0.14278194308280945,
-0.14503113925457,
0.0955938845872879,
0.010575633496046066,
-0.06658760458230972,
-0.09485972672700882,
-0.2131936401128769,
-0.010271186009049416,
-0.014301465824246407,
0.008012929931282997,
-0.06469783186912537,
0.030831601470708847,
0.037333644926548004,
0.028678342700004578,
-0.06397214531898499,
0.06603757292032242,
-0.09453900903463364,
-0.10756117850542068,
0.02475036308169365,
0.03672076761722565,
0.05932813137769699,
0.059697434306144714,
0.02712225914001465,
-0.01806553266942501,
0.026504991576075554,
0.05911949276924133,
0.0646432414650917,
0.02874324470758438,
0.03483431041240692,
-0.020927198231220245,
-0.041828010231256485,
-0.01470096968114376,
-0.016682887449860573,
0.009036717936396599,
0.18513932824134827,
0.05323344096541405,
-0.044165872037410736,
-0.008205242455005646,
0.08817216753959656,
0.0062518492341041565,
-0.08959200978279114,
-0.13543012738227844,
0.09565919637680054,
-0.0037093455903232098,
0.003666715696454048,
0.023701198399066925,
-0.08605928719043732,
0.04401514306664467,
0.15331953763961792,
0.19412019848823547,
-0.025194330140948296,
0.0007614003261551261,
-0.017351727932691574,
0.004551442340016365,
-0.022306574508547783,
0.09237957000732422,
-0.02585982158780098,
0.24379852414131165,
-0.046187832951545715,
0.09605301916599274,
-0.05061231553554535,
-0.02208130620419979,
-0.031760357320308685,
0.11581198871135712,
-0.05141180753707886,
-0.03421201556921005,
-0.058255646377801895,
0.09418080747127533,
-0.004806552082300186,
-0.2224447876214981,
0.05818209797143936,
-0.01764843985438347,
-0.07763281464576721,
0.01562727987766266,
-0.025509539991617203,
0.02921808511018753,
0.049809716641902924,
0.004542117472738028,
-0.00799412839114666,
0.19625085592269897,
0.0164562426507473,
-0.09945914894342422,
-0.04492682218551636,
0.1162099689245224,
-0.03754478320479393,
0.2201850712299347,
0.015265322290360928,
0.09673120081424713,
0.07474000751972198,
0.00647247489541769,
-0.12347273528575897,
0.053540535271167755,
0.027871932834386826,
-0.02809550054371357,
0.04525775834918022,
0.11965933442115784,
0.00488522881641984,
0.0509762316942215,
0.04948721453547478,
0.042753271758556366,
0.085375115275383,
-0.0872393250465393,
-0.034365829080343246,
-0.07409251481294632,
0.10554306209087372,
-0.11383052170276642,
0.15704461932182312,
0.13113239407539368,
-0.023420339450240135,
-0.02057556062936783,
-0.04103749990463257,
0.04847303032875061,
-0.008215261623263359,
0.060525327920913696,
-0.01689842715859413,
-0.11830063164234161,
0.010128533467650414,
-0.009355391375720501,
0.04896288365125656,
-0.1814756989479065,
-0.06796744465827942,
-0.0007463092915713787,
-0.04578092321753502,
-0.03248699754476547,
0.0940132737159729,
0.047438666224479675,
0.02103562466800213,
-0.02281790040433407,
-0.06301279366016388,
0.007485957816243172,
0.07113776355981827,
-0.1007942408323288,
-0.03186260908842087
] |
null | null | transformers |
# xlm-mlm-tlm-xnli15-1024
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training Details](#training-details)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
The XLM model was proposed in [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample, Alexis Conneau. xlm-mlm-tlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective in combination with a translation language modeling (TLM) objective and then fine-tuned on the English NLI dataset. The model developers evaluated the capacity of the model to make correct predictions in all 15 XNLI languages (see the [XNLI data card](https://huggingface.co/datasets/xnli) for further information on XNLI).
## Model Description
- **Developed by:** Guillaume Lample, Alexis Conneau, see [associated paper](https://arxiv.org/abs/1901.07291)
- **Model type:** Language model
- **Language(s) (NLP):** English; evaluated in 15 languages (see [XNLI data card](https://huggingface.co/datasets/xnli))
- **License:** CC-BY-NC-4.0
- **Related Models:** [XLM models](https://huggingface.co/models?sort=downloads&search=xlm)
- **Resources for more information:**
- [Associated paper](https://arxiv.org/abs/1901.07291)
- [GitHub Repo for XLM](https://github.com/facebookresearch/XLM)
- [GitHub Repo for XNLI](https://github.com/facebookresearch/XNLI)
- [XNLI data card](https://huggingface.co/datasets/xnli)
- [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings)
# Uses
## Direct Use
The model is a language model. The model can be used for cross-lingual text classification. Though the model is fine-tuned based on English text data, the model's ability to classify sentences in 14 other languages has been evaluated (see [Evaluation](#evaluation)).
## Downstream Use
This model can be used for downstream tasks related to natural language inference in different languages. For more information, see the [associated paper](https://arxiv.org/abs/1901.07291).
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training Details
Training details are culled from the [associated paper](https://arxiv.org/pdf/1901.07291.pdf). See the paper for links, citations, and further details. Also see the associated [GitHub Repo](https://github.com/facebookresearch/XLM#ii-cross-lingual-language-model-pretraining-xlm) for further details.
## Training Data
The model developers write:
> We use WikiExtractor2 to extract raw sentences from Wikipedia dumps and use them as mono-lingual data for the CLM and MLM objectives. For the TLM objective, we only use parallel data that involves English, similar to Conneau et al. (2018b).
> - Precisely, we use MultiUN (Ziemski et al., 2016) for French, Spanish, Russian, Arabic and Chinese, and the IIT Bombay corpus (Anoop et al., 2018) for Hindi.
> - We extract the following corpora from the OPUS 3 website Tiedemann (2012): the EUbookshop corpus for German, Greek and Bulgarian, OpenSubtitles 2018 for Turkish, Vietnamese and Thai, Tanzil for both Urdu and Swahili and GlobalVoices for Swahili.
> - For Chinese, Japanese and Thai we use the tokenizer of Chang et al. (2008), the Kytea4 tokenizer, and the PyThaiNLP5 tokenizer respectively.
> - For all other languages, we use the tokenizer provided by Moses (Koehn et al., 2007), falling back on the default English tokenizer when necessary.
For fine-tuning, the developers used the English NLI dataset (see the [XNLI data card](https://huggingface.co/datasets/xnli)).
## Training Procedure
### Preprocessing
The model developers write:
> We use fastBPE to learn BPE codes and split words into subword units. The BPE codes are learned on the concatenation of sentences sampled from all languages, following the method presented in Section 3.1.
### Speeds, Sizes, Times
The model developers write:
> We use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam optimizer (Kingma and Ba, 2014), a linear warm-up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.
>
> For the CLM and MLM objectives, we use streams of 256 tokens and a mini-batches of size 64. Unlike Devlin et al. (2018), a sequence in a mini-batch can contain more than two consecutive sentences, as explained in Section 3.2. For the TLM objective, we sample mini-batches of 4000 tokens composed of sentences with similar lengths. We use the averaged perplexity over languages as a stopping criterion for training. For machine translation, we only use 6 layers, and we create mini-batches of 2000 tokens.
>
> When fine-tuning on XNLI, we use mini-batches of size 8 or 16, and we clip the sentence length to 256 words. We use 80k BPE splits and a vocabulary of 95k and train a 12-layer model on the Wikipedias of the XNLI languages. We sample the learning rate of the Adam optimizer with values from 5.10−4 to 2.10−4, and use small evaluation epochs of 20000 random samples. We use the first hidden state of the last layer of the transformer as input to the randomly initialized final linear classifier, and fine-tune all parameters. In our experiments, using either max-pooling or mean-pooling over the last layer did not work bet- ter than using the first hidden state.
>
> We implement all our models in Py-Torch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
# Evaluation
## Testing Data, Factors & Metrics
After fine-tuning the model on the English NLI dataset, the model developers evaluated the capacity of the model to make correct predictions in the 15 XNLI languages using the XNLI data and the metric of test accuracy.See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for further details.
## Results
|Language| en | fr | es | de | el | bg | ru | tr | ar | vi | th | zh | hi | sw | ur |
|:------:|:--:|:---:|:--:|:--:|:--:|:--:|:---:|:--:|:--:|:--:|:--:|:---:|:--:|:--:|:--:|
|Accuracy|85.0|78.7 |78.9|77.8|76.6|77.4|75.3 |72.5|73.1|76.1|73.2|76.5 |69.6|68.4|67.3|
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** 64 Volta GPUs
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
Details are culled from the [associated paper](https://arxiv.org/pdf/1901.07291.pdf). See the paper for links, citations, and further details. Also see the associated [GitHub Repo](https://github.com/facebookresearch/XLM#ii-cross-lingual-language-model-pretraining-xlm) for further details.
## Model Architecture and Objective
xlm-mlm-tlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective in combination with a translation language modeling (TLM) objective and then fine-tuned on the English NLI dataset. About the TLM objective, the developers write:
> We introduce a new translation language modeling (TLM) objective for improving cross-lingual pretraining. Our TLM objective is an extension of MLM, where instead of considering monolingual text streams, we concatenate parallel sentences as illustrated in Figure 1. We randomly mask words in both the source and target sentences. To predict a word masked in an English sentence, the model can either attend to surrounding English words or to the French translation, encouraging the model to align the English and French representations.
## Compute Infrastructure
### Hardware and Software
The developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
# Citation
**BibTeX:**
```bibtex
@article{lample2019cross,
title={Cross-lingual language model pretraining},
author={Lample, Guillaume and Conneau, Alexis},
journal={arXiv preprint arXiv:1901.07291},
year={2019}
}
```
**APA:**
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
This model uses language embeddings to specify the language used at inference. See the [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) for further details. | {"language": ["multilingual", "en", "fr", "es", "de", "el", "bg", "ru", "tr", "ar", "vi", "th", "zh", "hi", "sw", "ur"], "license": "cc-by-nc-4.0"} | fill-mask | FacebookAI/xlm-mlm-tlm-xnli15-1024 | [
"transformers",
"pytorch",
"tf",
"safetensors",
"xlm",
"fill-mask",
"multilingual",
"en",
"fr",
"es",
"de",
"el",
"bg",
"ru",
"tr",
"ar",
"vi",
"th",
"zh",
"hi",
"sw",
"ur",
"arxiv:1901.07291",
"arxiv:1910.09700",
"license:cc-by-nc-4.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1901.07291",
"1910.09700"
] | [
"multilingual",
"en",
"fr",
"es",
"de",
"el",
"bg",
"ru",
"tr",
"ar",
"vi",
"th",
"zh",
"hi",
"sw",
"ur"
] | TAGS
#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #fr #es #de #el #bg #ru #tr #ar #vi #th #zh #hi #sw #ur #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us
| xlm-mlm-tlm-xnli15-1024
=======================
Table of Contents
=================
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training Details
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
Model Details
=============
The XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-tlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective in combination with a translation language modeling (TLM) objective and then fine-tuned on the English NLI dataset. The model developers evaluated the capacity of the model to make correct predictions in all 15 XNLI languages (see the XNLI data card for further information on XNLI).
Model Description
-----------------
* Developed by: Guillaume Lample, Alexis Conneau, see associated paper
* Model type: Language model
* Language(s) (NLP): English; evaluated in 15 languages (see XNLI data card)
* License: CC-BY-NC-4.0
* Related Models: XLM models
* Resources for more information:
+ Associated paper
+ GitHub Repo for XLM
+ GitHub Repo for XNLI
+ XNLI data card
+ Hugging Face Multilingual Models for Inference docs
Uses
====
Direct Use
----------
The model is a language model. The model can be used for cross-lingual text classification. Though the model is fine-tuned based on English text data, the model's ability to classify sentences in 14 other languages has been evaluated (see Evaluation).
Downstream Use
--------------
This model can be used for downstream tasks related to natural language inference in different languages. For more information, see the associated paper.
Out-of-Scope Use
----------------
The model should not be used to intentionally create hostile or alienating environments for people.
Bias, Risks, and Limitations
============================
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
Recommendations
---------------
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Training Details
================
Training details are culled from the associated paper. See the paper for links, citations, and further details. Also see the associated GitHub Repo for further details.
Training Data
-------------
The model developers write:
>
> We use WikiExtractor2 to extract raw sentences from Wikipedia dumps and use them as mono-lingual data for the CLM and MLM objectives. For the TLM objective, we only use parallel data that involves English, similar to Conneau et al. (2018b).
>
>
> * Precisely, we use MultiUN (Ziemski et al., 2016) for French, Spanish, Russian, Arabic and Chinese, and the IIT Bombay corpus (Anoop et al., 2018) for Hindi.
> * We extract the following corpora from the OPUS 3 website Tiedemann (2012): the EUbookshop corpus for German, Greek and Bulgarian, OpenSubtitles 2018 for Turkish, Vietnamese and Thai, Tanzil for both Urdu and Swahili and GlobalVoices for Swahili.
> * For Chinese, Japanese and Thai we use the tokenizer of Chang et al. (2008), the Kytea4 tokenizer, and the PyThaiNLP5 tokenizer respectively.
> * For all other languages, we use the tokenizer provided by Moses (Koehn et al., 2007), falling back on the default English tokenizer when necessary.
>
>
>
For fine-tuning, the developers used the English NLI dataset (see the XNLI data card).
Training Procedure
------------------
### Preprocessing
The model developers write:
>
> We use fastBPE to learn BPE codes and split words into subword units. The BPE codes are learned on the concatenation of sentences sampled from all languages, following the method presented in Section 3.1.
>
>
>
### Speeds, Sizes, Times
The model developers write:
>
> We use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam optimizer (Kingma and Ba, 2014), a linear warm-up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.
>
>
> For the CLM and MLM objectives, we use streams of 256 tokens and a mini-batches of size 64. Unlike Devlin et al. (2018), a sequence in a mini-batch can contain more than two consecutive sentences, as explained in Section 3.2. For the TLM objective, we sample mini-batches of 4000 tokens composed of sentences with similar lengths. We use the averaged perplexity over languages as a stopping criterion for training. For machine translation, we only use 6 layers, and we create mini-batches of 2000 tokens.
>
>
> When fine-tuning on XNLI, we use mini-batches of size 8 or 16, and we clip the sentence length to 256 words. We use 80k BPE splits and a vocabulary of 95k and train a 12-layer model on the Wikipedias of the XNLI languages. We sample the learning rate of the Adam optimizer with values from 5.10−4 to 2.10−4, and use small evaluation epochs of 20000 random samples. We use the first hidden state of the last layer of the transformer as input to the randomly initialized final linear classifier, and fine-tune all parameters. In our experiments, using either max-pooling or mean-pooling over the last layer did not work bet- ter than using the first hidden state.
>
>
> We implement all our models in Py-Torch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
>
>
>
Evaluation
==========
Testing Data, Factors & Metrics
-------------------------------
After fine-tuning the model on the English NLI dataset, the model developers evaluated the capacity of the model to make correct predictions in the 15 XNLI languages using the XNLI data and the metric of test accuracy.See the associated paper for further details.
Results
-------
Environmental Impact
====================
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
* Hardware Type: 64 Volta GPUs
* Hours used: More information needed
* Cloud Provider: More information needed
* Compute Region: More information needed
* Carbon Emitted: More information needed
Technical Specifications
========================
Details are culled from the associated paper. See the paper for links, citations, and further details. Also see the associated GitHub Repo for further details.
Model Architecture and Objective
--------------------------------
xlm-mlm-tlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective in combination with a translation language modeling (TLM) objective and then fine-tuned on the English NLI dataset. About the TLM objective, the developers write:
>
> We introduce a new translation language modeling (TLM) objective for improving cross-lingual pretraining. Our TLM objective is an extension of MLM, where instead of considering monolingual text streams, we concatenate parallel sentences as illustrated in Figure 1. We randomly mask words in both the source and target sentences. To predict a word masked in an English sentence, the model can either attend to surrounding English words or to the French translation, encouraging the model to align the English and French representations.
>
>
>
Compute Infrastructure
----------------------
### Hardware and Software
The developers write:
>
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
>
>
>
BibTeX:
APA:
* Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
Model Card Authors
==================
This model card was written by the team at Hugging Face.
How to Get Started with the Model
=================================
This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.
| [
"### Preprocessing\n\n\nThe model developers write:\n\n\n\n> \n> We use fastBPE to learn BPE codes and split words into subword units. The BPE codes are learned on the concatenation of sentences sampled from all languages, following the method presented in Section 3.1.\n> \n> \n>",
"### Speeds, Sizes, Times\n\n\nThe model developers write:\n\n\n\n> \n> We use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam optimizer (Kingma and Ba, 2014), a linear warm-up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n> \n> \n> For the CLM and MLM objectives, we use streams of 256 tokens and a mini-batches of size 64. Unlike Devlin et al. (2018), a sequence in a mini-batch can contain more than two consecutive sentences, as explained in Section 3.2. For the TLM objective, we sample mini-batches of 4000 tokens composed of sentences with similar lengths. We use the averaged perplexity over languages as a stopping criterion for training. For machine translation, we only use 6 layers, and we create mini-batches of 2000 tokens.\n> \n> \n> When fine-tuning on XNLI, we use mini-batches of size 8 or 16, and we clip the sentence length to 256 words. We use 80k BPE splits and a vocabulary of 95k and train a 12-layer model on the Wikipedias of the XNLI languages. We sample the learning rate of the Adam optimizer with values from 5.10−4 to 2.10−4, and use small evaluation epochs of 20000 random samples. We use the first hidden state of the last layer of the transformer as input to the randomly initialized final linear classifier, and fine-tune all parameters. In our experiments, using either max-pooling or mean-pooling over the last layer did not work bet- ter than using the first hidden state.\n> \n> \n> We implement all our models in Py-Torch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n> \n> \n> \n\n\nEvaluation\n==========\n\n\nTesting Data, Factors & Metrics\n-------------------------------\n\n\nAfter fine-tuning the model on the English NLI dataset, the model developers evaluated the capacity of the model to make correct predictions in the 15 XNLI languages using the XNLI data and the metric of test accuracy.See the associated paper for further details.\n\n\nResults\n-------\n\n\n\nEnvironmental Impact\n====================\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n\n* Hardware Type: 64 Volta GPUs\n* Hours used: More information needed\n* Cloud Provider: More information needed\n* Compute Region: More information needed\n* Carbon Emitted: More information needed\n\n\nTechnical Specifications\n========================\n\n\nDetails are culled from the associated paper. See the paper for links, citations, and further details. Also see the associated GitHub Repo for further details.\n\n\nModel Architecture and Objective\n--------------------------------\n\n\nxlm-mlm-tlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective in combination with a translation language modeling (TLM) objective and then fine-tuned on the English NLI dataset. About the TLM objective, the developers write:\n\n\n\n> \n> We introduce a new translation language modeling (TLM) objective for improving cross-lingual pretraining. Our TLM objective is an extension of MLM, where instead of considering monolingual text streams, we concatenate parallel sentences as illustrated in Figure 1. We randomly mask words in both the source and target sentences. To predict a word masked in an English sentence, the model can either attend to surrounding English words or to the French translation, encouraging the model to align the English and French representations.\n> \n> \n> \n\n\nCompute Infrastructure\n----------------------",
"### Hardware and Software\n\n\nThe developers write:\n\n\n\n> \n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n> \n> \n> \n\n\nBibTeX:\n\n\nAPA:\n\n\n* Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.\n\n\nModel Card Authors\n==================\n\n\nThis model card was written by the team at Hugging Face.\n\n\nHow to Get Started with the Model\n=================================\n\n\nThis model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details."
] | [
"TAGS\n#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #fr #es #de #el #bg #ru #tr #ar #vi #th #zh #hi #sw #ur #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### Preprocessing\n\n\nThe model developers write:\n\n\n\n> \n> We use fastBPE to learn BPE codes and split words into subword units. The BPE codes are learned on the concatenation of sentences sampled from all languages, following the method presented in Section 3.1.\n> \n> \n>",
"### Speeds, Sizes, Times\n\n\nThe model developers write:\n\n\n\n> \n> We use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam optimizer (Kingma and Ba, 2014), a linear warm-up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n> \n> \n> For the CLM and MLM objectives, we use streams of 256 tokens and a mini-batches of size 64. Unlike Devlin et al. (2018), a sequence in a mini-batch can contain more than two consecutive sentences, as explained in Section 3.2. For the TLM objective, we sample mini-batches of 4000 tokens composed of sentences with similar lengths. We use the averaged perplexity over languages as a stopping criterion for training. For machine translation, we only use 6 layers, and we create mini-batches of 2000 tokens.\n> \n> \n> When fine-tuning on XNLI, we use mini-batches of size 8 or 16, and we clip the sentence length to 256 words. We use 80k BPE splits and a vocabulary of 95k and train a 12-layer model on the Wikipedias of the XNLI languages. We sample the learning rate of the Adam optimizer with values from 5.10−4 to 2.10−4, and use small evaluation epochs of 20000 random samples. We use the first hidden state of the last layer of the transformer as input to the randomly initialized final linear classifier, and fine-tune all parameters. In our experiments, using either max-pooling or mean-pooling over the last layer did not work bet- ter than using the first hidden state.\n> \n> \n> We implement all our models in Py-Torch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n> \n> \n> \n\n\nEvaluation\n==========\n\n\nTesting Data, Factors & Metrics\n-------------------------------\n\n\nAfter fine-tuning the model on the English NLI dataset, the model developers evaluated the capacity of the model to make correct predictions in the 15 XNLI languages using the XNLI data and the metric of test accuracy.See the associated paper for further details.\n\n\nResults\n-------\n\n\n\nEnvironmental Impact\n====================\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n\n* Hardware Type: 64 Volta GPUs\n* Hours used: More information needed\n* Cloud Provider: More information needed\n* Compute Region: More information needed\n* Carbon Emitted: More information needed\n\n\nTechnical Specifications\n========================\n\n\nDetails are culled from the associated paper. See the paper for links, citations, and further details. Also see the associated GitHub Repo for further details.\n\n\nModel Architecture and Objective\n--------------------------------\n\n\nxlm-mlm-tlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective in combination with a translation language modeling (TLM) objective and then fine-tuned on the English NLI dataset. About the TLM objective, the developers write:\n\n\n\n> \n> We introduce a new translation language modeling (TLM) objective for improving cross-lingual pretraining. Our TLM objective is an extension of MLM, where instead of considering monolingual text streams, we concatenate parallel sentences as illustrated in Figure 1. We randomly mask words in both the source and target sentences. To predict a word masked in an English sentence, the model can either attend to surrounding English words or to the French translation, encouraging the model to align the English and French representations.\n> \n> \n> \n\n\nCompute Infrastructure\n----------------------",
"### Hardware and Software\n\n\nThe developers write:\n\n\n\n> \n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n> \n> \n> \n\n\nBibTeX:\n\n\nAPA:\n\n\n* Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.\n\n\nModel Card Authors\n==================\n\n\nThis model card was written by the team at Hugging Face.\n\n\nHow to Get Started with the Model\n=================================\n\n\nThis model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details."
] | [
109,
68,
904,
198
] | [
"passage: TAGS\n#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #fr #es #de #el #bg #ru #tr #ar #vi #th #zh #hi #sw #ur #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n### Preprocessing\n\n\nThe model developers write:\n\n\n\n> \n> We use fastBPE to learn BPE codes and split words into subword units. The BPE codes are learned on the concatenation of sentences sampled from all languages, following the method presented in Section 3.1.\n> \n> \n>"
] | [
-0.09812998026609421,
-0.045990388840436935,
-0.003798336023464799,
0.05768631398677826,
0.11116836965084076,
0.025031598284840584,
0.009232917800545692,
0.08719190955162048,
0.0455884151160717,
0.018101045861840248,
0.07355806976556778,
0.08484936505556107,
0.02707691676914692,
0.19033458828926086,
-0.048593368381261826,
-0.22378824651241302,
0.07018119841814041,
0.0006197051843628287,
0.036645807325839996,
0.1255791336297989,
0.08807524293661118,
-0.030191143974661827,
0.038777805864810944,
-0.04954616352915764,
-0.11709413677453995,
0.05202680826187134,
-0.03734327852725983,
-0.08554650098085403,
0.11793772131204605,
0.06262990832328796,
0.10649280995130539,
0.024097448214888573,
0.038721393793821335,
-0.18308116495609283,
0.018192226067185402,
-0.017950918525457382,
-0.086431585252285,
0.005336938891559839,
-0.02221868932247162,
-0.0579100027680397,
0.02913542464375496,
-0.028277605772018433,
-0.004050309769809246,
0.0415649451315403,
-0.12501803040504456,
-0.22338448464870453,
0.06432236731052399,
-0.00524823646992445,
0.0949375331401825,
0.09141875803470612,
-0.0361572802066803,
0.15372933447360992,
-0.07249658554792404,
0.07548517733812332,
0.14579197764396667,
-0.41318026185035706,
-0.021740922704339027,
0.0476171113550663,
0.0799337774515152,
0.11354316771030426,
-0.05289411172270775,
-0.000869742885697633,
0.10084889829158783,
0.0511668436229229,
0.011909379623830318,
-0.06350613385438919,
0.02293703518807888,
0.007804549764841795,
-0.1737845242023468,
-0.016950074583292007,
0.13669879734516144,
-0.04783034324645996,
-0.05717276409268379,
-0.017527002841234207,
-0.11122609674930573,
-0.07254262268543243,
-0.046668536961078644,
-0.025868067517876625,
-0.01228526420891285,
0.05665261670947075,
0.04947540536522865,
-0.015240014530718327,
-0.09571433812379837,
-0.10928621143102646,
-0.06150675192475319,
0.2409399002790451,
0.06646554917097092,
-0.0007374040433205664,
-0.07985600084066391,
0.08047817647457123,
-0.02324780635535717,
-0.09617433696985245,
-0.05939909815788269,
-0.07139364629983902,
0.0281914584338665,
0.08120003342628479,
-0.04891936853528023,
0.10405875742435455,
0.10345862805843353,
0.14347948133945465,
-0.012778972275555134,
0.0723390281200409,
0.02266639657318592,
0.0670957863330841,
-0.03162505105137825,
0.1050976812839508,
0.025348400697112083,
-0.06483203172683716,
0.04220660775899887,
-0.023335125297307968,
-0.007064593955874443,
-0.03242523968219757,
-0.15884840488433838,
-0.046462032943964005,
0.03189508616924286,
0.1253472864627838,
-0.07024988532066345,
0.06754384189844131,
-0.0537385456264019,
0.013670415617525578,
0.09087525308132172,
-0.16391557455062866,
-0.02312399446964264,
0.03368072211742401,
0.010864846408367157,
0.03795766085386276,
0.028441937640309334,
-0.07179959863424301,
-0.14470872282981873,
-0.07868155092000961,
-0.058999497443437576,
-0.032056767493486404,
-0.0709509551525116,
-0.12020869553089142,
-0.02217460423707962,
-0.0634089857339859,
-0.02306409925222397,
-0.16601821780204773,
-0.14227232336997986,
0.012417933903634548,
-0.024886826053261757,
-0.016756383702158928,
0.04549107700586319,
-0.14213640987873077,
-0.04865780100226402,
-0.039074722677469254,
-0.04490921273827553,
-0.13391175866127014,
-0.056815341114997864,
0.062313564121723175,
0.04010440409183502,
0.0828380137681961,
-0.17546075582504272,
0.061220355331897736,
-0.08327868580818176,
0.018000757321715355,
-0.12447075545787811,
0.12805216014385223,
-0.036251556128263474,
-0.0122146001085639,
-0.09221179038286209,
-0.08781436830759048,
-0.05140967294573784,
0.06945470720529556,
0.02148394286632538,
0.1369386911392212,
-0.1588834971189499,
-0.09265877306461334,
0.29991987347602844,
-0.1453067660331726,
-0.07287251204252243,
0.16015931963920593,
0.011905914172530174,
0.06505889445543289,
0.08887436240911484,
0.18395353853702545,
0.021379802376031876,
-0.050241969525814056,
0.08546556532382965,
0.12028739601373672,
0.02278319001197815,
-0.0633605569601059,
0.0965716615319252,
0.009661107324063778,
-0.02310672216117382,
0.043773144483566284,
-0.061933211982250214,
0.08307160437107086,
-0.034205660223960876,
-0.057601749897003174,
0.04623247683048248,
-0.03002263233065605,
0.07878760993480682,
-0.00738998269662261,
0.011858874000608921,
-0.04736810922622681,
-0.1026269793510437,
-0.00336134503595531,
0.10664886236190796,
-0.12582553923130035,
0.058436814695596695,
-0.1542217880487442,
0.11037028580904007,
0.02940983511507511,
0.03404810652136803,
-0.11941909790039062,
0.006848413031548262,
0.005502208136022091,
0.07698910683393478,
0.01139001827687025,
0.036897722631692886,
0.010928139090538025,
0.05340222269296646,
-0.006729076150804758,
-0.04210316017270088,
-0.013594016432762146,
-0.0025229889433830976,
-0.032039087265729904,
-0.1418241262435913,
-0.029278328642249107,
-0.06915123015642166,
0.11057613790035248,
-0.08670134097337723,
0.05801161006093025,
0.003997727297246456,
0.015136855654418468,
-0.056899476796388626,
0.05274910852313042,
-0.06806547194719315,
0.07649978995323181,
-0.031341005116701126,
0.015414765104651451,
0.0633883848786354,
-0.013282557018101215,
-0.10207163542509079,
0.06464694440364838,
-0.08766941726207733,
0.10238838940858841,
0.1570018231868744,
-0.11726420372724533,
-0.031623344868421555,
0.018024029210209846,
0.016443099826574326,
0.01715383678674698,
0.09634851664304733,
-0.08956834673881531,
0.2342841625213623,
-0.010422782972455025,
0.1488792598247528,
-0.13469873368740082,
-0.046794939786195755,
-0.006717746611684561,
-0.07403683662414551,
0.01257582288235426,
0.11712712794542313,
0.015836505219340324,
-0.11648577451705933,
0.14861848950386047,
0.2027563601732254,
-0.016463065519928932,
0.22576597332954407,
-0.02230258099734783,
-0.05714381858706474,
-0.0017998245311900973,
0.09969306737184525,
-0.04340049996972084,
0.04746706783771515,
-0.1660865694284439,
-0.05042164772748947,
-0.006060178857296705,
-0.0036775581538677216,
0.09513023495674133,
-0.15045522153377533,
-0.03157158941030502,
-0.0077062612399458885,
-0.06647472828626633,
-0.08959373831748962,
0.0025855705607682467,
-0.052630092948675156,
0.0556865856051445,
0.01054051797837019,
-0.17129632830619812,
0.053161948919296265,
-0.048951927572488785,
-0.13324283063411713,
0.2376987338066101,
-0.16313554346561432,
-0.2456182986497879,
-0.14250947535037994,
-0.012563581578433514,
0.004528924822807312,
0.0081410501152277,
0.07683761417865753,
-0.1460869461297989,
-0.03036690503358841,
-0.022356471046805382,
0.07965405285358429,
-0.01680024340748787,
-0.018723495304584503,
0.054209351539611816,
-0.00026676157722249627,
-0.06846461445093155,
-0.1332036703824997,
-0.05730506777763367,
-0.03509972244501114,
-0.10591732710599899,
0.08256852626800537,
-0.19600355625152588,
0.06240035966038704,
0.24063760042190552,
-0.012570736929774284,
0.03166568651795387,
-0.06466680020093918,
0.20515656471252441,
-0.019710659980773926,
-0.06078915670514107,
0.15269598364830017,
-0.10111134499311447,
0.0705619603395462,
0.055595122277736664,
0.022140858694911003,
-0.0921032652258873,
0.01751819998025894,
-0.07911127060651779,
-0.040482472628355026,
-0.23143738508224487,
-0.12165795266628265,
-0.09160379320383072,
0.027106469497084618,
-0.07322220504283905,
0.06847231090068817,
-0.00020791219139937311,
-0.0023726215586066246,
-0.030529513955116272,
-0.047816839069128036,
0.03613944724202156,
0.0913417786359787,
0.14438320696353912,
-0.035810548812150955,
0.08061131089925766,
-0.026083271950483322,
-0.10114062577486038,
0.00965063739567995,
0.021466758102178574,
0.05662138760089874,
0.08852183073759079,
0.16612564027309418,
0.04209563136100769,
0.12709501385688782,
0.10069074481725693,
0.13971969485282898,
-0.08774450421333313,
0.00960391853004694,
-0.03576872497797012,
-0.07033480703830719,
-0.06339219957590103,
0.05421251058578491,
-0.03857161104679108,
-0.011059096083045006,
-0.07905993610620499,
-0.030487708747386932,
0.10440831631422043,
0.07260334491729736,
0.06302053481340408,
-0.248432919383049,
-0.038445211946964264,
0.03958155959844589,
0.0035747275687754154,
-0.052090566605329514,
0.09637461602687836,
0.0754210576415062,
-0.056252531707286835,
0.03103959560394287,
0.036207761615514755,
0.08355909585952759,
0.047620389610528946,
0.054141703993082047,
-0.05618457868695259,
0.03445049002766609,
0.014915812760591507,
0.0931338518857956,
-0.25189483165740967,
0.18530556559562683,
0.009188099764287472,
0.02738250233232975,
-0.033063314855098724,
0.01992247812449932,
-0.025955287739634514,
0.08708296716213226,
0.15844030678272247,
0.00006955763092264533,
0.08297687023878098,
-0.16537679731845856,
-0.026074321940541267,
0.09818635880947113,
0.13858941197395325,
0.00119890202768147,
0.05427805706858635,
0.000022595222617383115,
-0.008675295859575272,
0.03837566822767258,
-0.06101037561893463,
-0.017007477581501007,
-0.09104608744382858,
0.02610393613576889,
-0.005382753908634186,
0.066735178232193,
-0.01165805198252201,
-0.05232832953333855,
-0.10014364123344421,
0.10652801394462585,
-0.2127135843038559,
-0.11573322862386703,
-0.08024745434522629,
-0.07566580921411514,
0.052143581211566925,
-0.10962624102830887,
0.12231191247701645,
0.03324001654982567,
-0.005257968790829182,
-0.06171960011124611,
-0.09491034597158432,
0.1254972368478775,
-0.08485496789216995,
-0.09193133562803268,
0.011061408556997776,
0.17891666293144226,
0.06100664660334587,
0.030814863741397858,
0.03502409905195236,
-0.0379386804997921,
-0.01707572117447853,
-0.10879415273666382,
-0.03323568031191826,
0.010690300725400448,
-0.019390778616070747,
0.05244239419698715,
-0.13943450152873993,
-0.13925443589687347,
-0.087376169860363,
0.007389674428850412,
0.19889232516288757,
0.3220885396003723,
-0.054338835179805756,
0.06985793262720108,
0.282677561044693,
-0.049694593995809555,
-0.29757142066955566,
-0.12057327479124069,
-0.03967030718922615,
0.046298760920763016,
-0.08812254667282104,
-0.19120772182941437,
0.03882525488734245,
0.0008876224746927619,
0.009957246482372284,
0.009639197029173374,
-0.28468507528305054,
-0.09906915575265884,
0.23626074194908142,
0.0462607741355896,
0.18418467044830322,
-0.10962624102830887,
-0.03318184241652489,
-0.07526583969593048,
-0.11139571666717529,
0.046229977160692215,
-0.07329457998275757,
0.08617231994867325,
0.017904480919241905,
-0.019362686201930046,
-0.01905650645494461,
0.022181468084454536,
0.14068378508090973,
0.061604585498571396,
0.045535389333963394,
0.0027586868964135647,
-0.09398757666349411,
0.05198731645941734,
0.06357726454734802,
0.0702226310968399,
-0.1130329892039299,
-0.016635969281196594,
-0.09575877338647842,
-0.05612030252814293,
-0.048303961753845215,
0.06687101721763611,
0.008888451382517815,
-0.104198157787323,
0.008116592653095722,
0.004070480354130268,
0.0007778696017339826,
0.004237248562276363,
0.10883753001689911,
-0.06445614248514175,
0.05012455955147743,
0.19151318073272705,
0.13341055810451508,
-0.055348951369524,
0.0922517478466034,
0.03897211328148842,
-0.05098850280046463,
0.12404342740774155,
-0.06875678151845932,
0.03216926380991936,
0.11562313884496689,
0.010883479379117489,
0.11441521346569061,
0.115191750228405,
-0.089370958507061,
-0.010152825154364109,
0.09393193572759628,
-0.15259875357151031,
-0.12898381054401398,
-0.041671693325042725,
-0.10811353474855423,
0.060408253222703934,
0.11341943591833115,
0.11610803753137589,
-0.09871494770050049,
-0.03617947921156883,
-0.029384436085820198,
0.02662271447479725,
-0.1231389194726944,
0.16695792973041534,
0.10790156573057175,
0.04276179522275925,
-0.13196763396263123,
0.041543833911418915,
0.009850021451711655,
-0.025644296780228615,
0.0404898039996624,
0.11596952378749847,
-0.10988711565732956,
-0.09761494398117065,
0.008607962168753147,
0.17329545319080353,
-0.07738500088453293,
-0.10649918019771576,
-0.08941690623760223,
-0.11475428193807602,
0.03709128871560097,
0.2694578468799591,
0.11128191649913788,
0.04845503717660904,
-0.01687547005712986,
0.029381530359387398,
0.014858802780508995,
0.061359506100416183,
0.040583398193120956,
-0.019273927435278893,
-0.03022659383714199,
0.15792936086654663,
0.02506895177066326,
0.1274857074022293,
-0.09044601023197174,
-0.0471261590719223,
-0.1548909693956375,
0.08117041736841202,
-0.11026374250650406,
0.040489453822374344,
-0.08355742692947388,
0.0008068923489190638,
-0.009575818665325642,
-0.01114204153418541,
-0.031005216762423515,
0.04418255761265755,
-0.11080177128314972,
0.016247238963842392,
0.003361497540026903,
0.02408602274954319,
-0.09987147152423859,
-0.0036723758094012737,
0.016426902264356613,
-0.05727763846516609,
0.11786671727895737,
0.09076297283172607,
-0.06277035176753998,
0.1560453623533249,
-0.18041177093982697,
0.004406903870403767,
0.1334487795829773,
0.05800270289182663,
0.036017488688230515,
0.056320805102586746,
0.03290363401174545,
0.018991593271493912,
-0.02787274681031704,
0.009313371963799,
0.1908014565706253,
-0.0918852910399437,
0.06122578680515289,
-0.08001822978258133,
-0.08017922937870026,
-0.02373259887099266,
0.019482307136058807,
0.05839262902736664,
0.07956281304359436,
0.09534792602062225,
-0.07646119594573975,
0.05854810029268265,
-0.08191602677106857,
-0.013188845477998257,
-0.003529356559738517,
-0.07058785110712051,
-0.06282368302345276,
-0.10300755500793457,
0.025401247665286064,
-0.06318272650241852,
0.12909747660160065,
0.011053482070565224,
-0.036294519901275635,
-0.032041870057582855,
-0.08242430537939072,
0.037055812776088715,
0.03150247782468796,
0.17787693440914154,
0.07349902391433716,
-0.0007647480233572423,
-0.12765024602413177,
0.015399731695652008,
0.04717961698770523,
0.07671065628528595,
0.0654173195362091,
0.12487548589706421,
0.09500490874052048,
0.18368574976921082,
0.061981938779354095,
-0.05966641753911972,
-0.031497929245233536,
-0.09347975999116898,
0.05577841401100159,
-0.0006261265370994806,
-0.026687724515795708,
0.17794330418109894,
0.13694356381893158,
-0.09758246690034866,
0.02755911648273468,
0.012244848534464836,
-0.06260747462511063,
-0.18901635706424713,
-0.08179553598165512,
-0.031008480116724968,
-0.1411782056093216,
-0.0272385161370039,
-0.10783623158931732,
-0.057503893971443176,
0.0500178188085556,
0.05301358178257942,
-0.006954627577215433,
0.1364385336637497,
-0.014554529450833797,
-0.12598498165607452,
0.07761730998754501,
-0.008806196041405201,
0.09631550312042236,
-0.0317293144762516,
0.004890871234238148,
0.05729597434401512,
-0.014256415888667107,
0.01043720357120037,
0.035004086792469025,
-0.01059626042842865,
0.0461760051548481,
-0.09121625125408173,
-0.07210385799407959,
-0.038444798439741135,
0.06862209737300873,
-0.02551415003836155,
0.11175943911075592,
0.05728897452354431,
-0.09715116024017334,
0.030652232468128204,
0.02875703014433384,
-0.048933133482933044,
-0.16598737239837646,
-0.0512332022190094,
0.32848039269447327,
0.07910560816526413,
0.13938139379024506,
-0.003513165283948183,
-0.09205421060323715,
-0.04088813066482544,
0.19131463766098022,
0.23945100605487823,
-0.06586593389511108,
0.05549068748950958,
0.03759123384952545,
0.0445336252450943,
0.04111547768115997,
0.13233011960983276,
0.12160550057888031,
0.2839507758617401,
-0.07763123512268066,
-0.03843310475349426,
-0.09433748573064804,
-0.018040286377072334,
-0.07384532690048218,
0.006158678792417049,
0.035174157470464706,
-0.05843888223171234,
-0.043440647423267365,
0.07258876413106918,
-0.14001081883907318,
-0.01899709552526474,
0.01466463040560484,
-0.13138088583946228,
-0.08295021951198578,
-0.039147693663835526,
0.005872776266187429,
0.05917283520102501,
0.059274837374687195,
-0.05695024132728577,
-0.02608109824359417,
0.10718346387147903,
0.04208015650510788,
-0.1318950355052948,
-0.03605831041932106,
0.10407794266939163,
-0.15452314913272858,
0.021879898384213448,
-0.004308279603719711,
0.15180444717407227,
0.058901380747556686,
0.08389868587255478,
0.04919196665287018,
0.14932216703891754,
0.03466189280152321,
0.05929075926542282,
0.041198160499334335,
0.02642085961997509,
-0.02391079068183899,
0.04775321111083031,
0.0368330292403698,
-0.05542990565299988,
0.05646137520670891,
0.05180174484848976,
-0.0899505540728569,
-0.05205240845680237,
-0.005841260310262442,
-0.1125500500202179,
0.06262704730033875,
0.0932527631521225,
-0.01727927103638649,
-0.02821340784430504,
-0.030715957283973694,
0.03286007046699524,
0.04541492834687233,
0.004000320564955473,
-0.03710562735795975,
-0.19328312575817108,
-0.02270694263279438,
0.06324578076601028,
0.029329000040888786,
-0.11420170217752457,
0.017260851338505745,
-0.08344097435474396,
0.0525529645383358,
-0.1415797919034958,
0.08141527324914932,
0.07547271251678467,
0.03604496642947197,
-0.02554924599826336,
-0.11734650284051895,
-0.006380971521139145,
0.08305088430643082,
-0.10523663461208344,
-0.09556979686021805
] |
null | null | transformers |
# xlm-mlm-xnli15-1024
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training Details](#training-details)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
The XLM model was proposed in [Cross-lingual Language Model Pretraining](https://arxiv.org/abs/1901.07291) by Guillaume Lample, Alexis Conneau. xlm-mlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective fine-tuned on the English NLI dataset. The model developers evaluated the capacity of the model to make correct predictions in all 15 XNLI languages (see the [XNLI data card](https://huggingface.co/datasets/xnli) for further information on XNLI).
## Model Description
- **Developed by:** Guillaume Lample, Alexis Conneau, see [associated paper](https://arxiv.org/abs/1901.07291)
- **Model type:** Language model
- **Language(s) (NLP):** English; evaluated in 15 languages (see [XNLI data card](https://huggingface.co/datasets/xnli))
- **License:** CC-BY-NC-4.0
- **Related Models:** [XLM models](https://huggingface.co/models?sort=downloads&search=xlm)
- **Resources for more information:**
- [Associated paper](https://arxiv.org/abs/1901.07291)
- [GitHub Repo for XLM](https://github.com/facebookresearch/XLM)
- [GitHub Repo for XNLI](https://github.com/facebookresearch/XNLI)
- [XNLI data card](https://huggingface.co/datasets/xnli)
- [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings)
# Uses
## Direct Use
The model is a language model. The model can be used for cross-lingual text classification. Though the model is fine-tuned based on English text data, the model's ability to classify sentences in 14 other languages has been evaluated (see [Evaluation](#evaluation)).
## Downstream Use
This model can be used for downstream tasks related to natural language inference in different languages. For more information, see the [associated paper](https://arxiv.org/abs/1901.07291).
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training Details
Training details are culled from the [associated paper](https://arxiv.org/pdf/1901.07291.pdf). See the paper for links, citations, and further details. Also see the associated [GitHub Repo](https://github.com/facebookresearch/XLM#ii-cross-lingual-language-model-pretraining-xlm) for further details.
## Training Data
The model developers write:
> We use WikiExtractor2 to extract raw sentences from Wikipedia dumps and use them as mono-lingual data for the CLM and MLM objectives. For the TLM objective, we only use parallel data that involves English, similar to Conneau et al. (2018b).
> - Precisely, we use MultiUN (Ziemski et al., 2016) for French, Spanish, Russian, Arabic and Chinese, and the IIT Bombay corpus (Anoop et al., 2018) for Hindi.
> - We extract the following corpora from the OPUS 3 website Tiedemann (2012): the EUbookshop corpus for German, Greek and Bulgarian, OpenSubtitles 2018 for Turkish, Vietnamese and Thai, Tanzil for both Urdu and Swahili and GlobalVoices for Swahili.
> - For Chinese, Japanese and Thai we use the tokenizer of Chang et al. (2008), the Kytea4 tokenizer, and the PyThaiNLP5 tokenizer respectively.
> - For all other languages, we use the tokenizer provided by Moses (Koehn et al., 2007), falling back on the default English tokenizer when necessary.
For fine-tuning, the developers used the English NLI dataset (see the [XNLI data card](https://huggingface.co/datasets/xnli)).
## Training Procedure
### Preprocessing
The model developers write:
> We use fastBPE to learn BPE codes and split words into subword units. The BPE codes are learned on the concatenation of sentences sampled from all languages, following the method presented in Section 3.1.
### Speeds, Sizes, Times
The model developers write:
> We use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam optimizer (Kingma and Ba, 2014), a linear warm-up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.
>
> For the CLM and MLM objectives, we use streams of 256 tokens and a mini-batches of size 64. Unlike Devlin et al. (2018), a sequence in a mini-batch can contain more than two consecutive sentences, as explained in Section 3.2. For the TLM objective, we sample mini-batches of 4000 tokens composed of sentences with similar lengths. We use the averaged perplexity over languages as a stopping criterion for training. For machine translation, we only use 6 layers, and we create mini-batches of 2000 tokens.
>
> When fine-tuning on XNLI, we use mini-batches of size 8 or 16, and we clip the sentence length to 256 words. We use 80k BPE splits and a vocabulary of 95k and train a 12-layer model on the Wikipedias of the XNLI languages. We sample the learning rate of the Adam optimizer with values from 5.10−4 to 2.10−4, and use small evaluation epochs of 20000 random samples. We use the first hidden state of the last layer of the transformer as input to the randomly initialized final linear classifier, and fine-tune all parameters. In our experiments, using either max-pooling or mean-pooling over the last layer did not work bet- ter than using the first hidden state.
>
> We implement all our models in Py-Torch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
# Evaluation
## Testing Data, Factors & Metrics
After fine-tuning the model on the English NLI dataset, the model developers evaluated the capacity of the model to make correct predictions in the 15 XNLI languages using the XNLI data and the metric of test accuracy.See the [associated paper](https://arxiv.org/pdf/1901.07291.pdf) for further details.
## Results
|Language| en | fr | es | de | el | bg | ru | tr | ar | vi | th | zh | hi | sw | ur |
|:------:|:--:|:---:|:--:|:--:|:--:|:--:|:---:|:--:|:--:|:--:|:--:|:---:|:--:|:--:|:--:|
|Accuracy|83.2|76.5 |76.3|74.2|73.1|74.0|73.1 |67.8|68.5|71.2|69.2|71.9 |65.7|64.6|63.4|
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** 64 Volta GPUs
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
Details are culled from the [associated paper](https://arxiv.org/pdf/1901.07291.pdf). See the paper for links, citations, and further details. Also see the associated [GitHub Repo](https://github.com/facebookresearch/XLM#ii-cross-lingual-language-model-pretraining-xlm) for further details.
## Model Architecture and Objective
xlm-mlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective fine-tuned on the English NLI dataset. About the MLM objective, the developers write:
> We also consider the masked language model- ing (MLM) objective of Devlin et al. (2018), also known as the Cloze task (Taylor, 1953). Follow- ing Devlin et al. (2018), we sample randomly 15% of the BPE tokens from the text streams, replace them by a [MASK] token 80% of the time, by a random token 10% of the time, and we keep them unchanged 10% of the time. Differences be- tween our approach and the MLM of Devlin et al. (2018) include the use of text streams of an ar- bitrary number of sentences (truncated at 256 to- kens) instead of pairs of sentences. To counter the imbalance between rare and frequent tokens (e.g. punctuations or stop words), we also subsample the frequent outputs using an approach similar to Mikolov et al. (2013b): tokens in a text stream are sampled according to a multinomial distribution, whose weights are proportional to the square root of their invert frequencies. Our MLM objective is illustrated in Figure 1.
## Compute Infrastructure
### Hardware and Software
The developers write:
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
# Citation
**BibTeX:**
```bibtex
@article{lample2019cross,
title={Cross-lingual language model pretraining},
author={Lample, Guillaume and Conneau, Alexis},
journal={arXiv preprint arXiv:1901.07291},
year={2019}
}
```
**APA:**
- Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
This model uses language embeddings to specify the language used at inference. See the [Hugging Face Multilingual Models for Inference docs](https://huggingface.co/docs/transformers/v4.20.1/en/multilingual#xlm-with-language-embeddings) for further details. | {"language": ["multilingual", "en", "fr", "es", "de", "el", "bg", "ru", "tr", "ar", "vi", "th", "zh", "hi", "sw", "ur"], "license": "cc-by-nc-4.0"} | fill-mask | FacebookAI/xlm-mlm-xnli15-1024 | [
"transformers",
"pytorch",
"tf",
"safetensors",
"xlm",
"fill-mask",
"multilingual",
"en",
"fr",
"es",
"de",
"el",
"bg",
"ru",
"tr",
"ar",
"vi",
"th",
"zh",
"hi",
"sw",
"ur",
"arxiv:1901.07291",
"arxiv:1910.09700",
"license:cc-by-nc-4.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1901.07291",
"1910.09700"
] | [
"multilingual",
"en",
"fr",
"es",
"de",
"el",
"bg",
"ru",
"tr",
"ar",
"vi",
"th",
"zh",
"hi",
"sw",
"ur"
] | TAGS
#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #fr #es #de #el #bg #ru #tr #ar #vi #th #zh #hi #sw #ur #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us
| xlm-mlm-xnli15-1024
===================
Table of Contents
=================
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training Details
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
Model Details
=============
The XLM model was proposed in Cross-lingual Language Model Pretraining by Guillaume Lample, Alexis Conneau. xlm-mlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective fine-tuned on the English NLI dataset. The model developers evaluated the capacity of the model to make correct predictions in all 15 XNLI languages (see the XNLI data card for further information on XNLI).
Model Description
-----------------
* Developed by: Guillaume Lample, Alexis Conneau, see associated paper
* Model type: Language model
* Language(s) (NLP): English; evaluated in 15 languages (see XNLI data card)
* License: CC-BY-NC-4.0
* Related Models: XLM models
* Resources for more information:
+ Associated paper
+ GitHub Repo for XLM
+ GitHub Repo for XNLI
+ XNLI data card
+ Hugging Face Multilingual Models for Inference docs
Uses
====
Direct Use
----------
The model is a language model. The model can be used for cross-lingual text classification. Though the model is fine-tuned based on English text data, the model's ability to classify sentences in 14 other languages has been evaluated (see Evaluation).
Downstream Use
--------------
This model can be used for downstream tasks related to natural language inference in different languages. For more information, see the associated paper.
Out-of-Scope Use
----------------
The model should not be used to intentionally create hostile or alienating environments for people.
Bias, Risks, and Limitations
============================
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
Recommendations
---------------
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Training Details
================
Training details are culled from the associated paper. See the paper for links, citations, and further details. Also see the associated GitHub Repo for further details.
Training Data
-------------
The model developers write:
>
> We use WikiExtractor2 to extract raw sentences from Wikipedia dumps and use them as mono-lingual data for the CLM and MLM objectives. For the TLM objective, we only use parallel data that involves English, similar to Conneau et al. (2018b).
>
>
> * Precisely, we use MultiUN (Ziemski et al., 2016) for French, Spanish, Russian, Arabic and Chinese, and the IIT Bombay corpus (Anoop et al., 2018) for Hindi.
> * We extract the following corpora from the OPUS 3 website Tiedemann (2012): the EUbookshop corpus for German, Greek and Bulgarian, OpenSubtitles 2018 for Turkish, Vietnamese and Thai, Tanzil for both Urdu and Swahili and GlobalVoices for Swahili.
> * For Chinese, Japanese and Thai we use the tokenizer of Chang et al. (2008), the Kytea4 tokenizer, and the PyThaiNLP5 tokenizer respectively.
> * For all other languages, we use the tokenizer provided by Moses (Koehn et al., 2007), falling back on the default English tokenizer when necessary.
>
>
>
For fine-tuning, the developers used the English NLI dataset (see the XNLI data card).
Training Procedure
------------------
### Preprocessing
The model developers write:
>
> We use fastBPE to learn BPE codes and split words into subword units. The BPE codes are learned on the concatenation of sentences sampled from all languages, following the method presented in Section 3.1.
>
>
>
### Speeds, Sizes, Times
The model developers write:
>
> We use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam optimizer (Kingma and Ba, 2014), a linear warm-up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.
>
>
> For the CLM and MLM objectives, we use streams of 256 tokens and a mini-batches of size 64. Unlike Devlin et al. (2018), a sequence in a mini-batch can contain more than two consecutive sentences, as explained in Section 3.2. For the TLM objective, we sample mini-batches of 4000 tokens composed of sentences with similar lengths. We use the averaged perplexity over languages as a stopping criterion for training. For machine translation, we only use 6 layers, and we create mini-batches of 2000 tokens.
>
>
> When fine-tuning on XNLI, we use mini-batches of size 8 or 16, and we clip the sentence length to 256 words. We use 80k BPE splits and a vocabulary of 95k and train a 12-layer model on the Wikipedias of the XNLI languages. We sample the learning rate of the Adam optimizer with values from 5.10−4 to 2.10−4, and use small evaluation epochs of 20000 random samples. We use the first hidden state of the last layer of the transformer as input to the randomly initialized final linear classifier, and fine-tune all parameters. In our experiments, using either max-pooling or mean-pooling over the last layer did not work bet- ter than using the first hidden state.
>
>
> We implement all our models in Py-Torch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
>
>
>
Evaluation
==========
Testing Data, Factors & Metrics
-------------------------------
After fine-tuning the model on the English NLI dataset, the model developers evaluated the capacity of the model to make correct predictions in the 15 XNLI languages using the XNLI data and the metric of test accuracy.See the associated paper for further details.
Results
-------
Environmental Impact
====================
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
* Hardware Type: 64 Volta GPUs
* Hours used: More information needed
* Cloud Provider: More information needed
* Compute Region: More information needed
* Carbon Emitted: More information needed
Technical Specifications
========================
Details are culled from the associated paper. See the paper for links, citations, and further details. Also see the associated GitHub Repo for further details.
Model Architecture and Objective
--------------------------------
xlm-mlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective fine-tuned on the English NLI dataset. About the MLM objective, the developers write:
>
> We also consider the masked language model- ing (MLM) objective of Devlin et al. (2018), also known as the Cloze task (Taylor, 1953). Follow- ing Devlin et al. (2018), we sample randomly 15% of the BPE tokens from the text streams, replace them by a [MASK] token 80% of the time, by a random token 10% of the time, and we keep them unchanged 10% of the time. Differences be- tween our approach and the MLM of Devlin et al. (2018) include the use of text streams of an ar- bitrary number of sentences (truncated at 256 to- kens) instead of pairs of sentences. To counter the imbalance between rare and frequent tokens (e.g. punctuations or stop words), we also subsample the frequent outputs using an approach similar to Mikolov et al. (2013b): tokens in a text stream are sampled according to a multinomial distribution, whose weights are proportional to the square root of their invert frequencies. Our MLM objective is illustrated in Figure 1.
>
>
>
Compute Infrastructure
----------------------
### Hardware and Software
The developers write:
>
> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.
>
>
>
BibTeX:
APA:
* Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.
Model Card Authors
==================
This model card was written by the team at Hugging Face.
How to Get Started with the Model
=================================
This model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details.
| [
"### Preprocessing\n\n\nThe model developers write:\n\n\n\n> \n> We use fastBPE to learn BPE codes and split words into subword units. The BPE codes are learned on the concatenation of sentences sampled from all languages, following the method presented in Section 3.1.\n> \n> \n>",
"### Speeds, Sizes, Times\n\n\nThe model developers write:\n\n\n\n> \n> We use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam optimizer (Kingma and Ba, 2014), a linear warm-up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n> \n> \n> For the CLM and MLM objectives, we use streams of 256 tokens and a mini-batches of size 64. Unlike Devlin et al. (2018), a sequence in a mini-batch can contain more than two consecutive sentences, as explained in Section 3.2. For the TLM objective, we sample mini-batches of 4000 tokens composed of sentences with similar lengths. We use the averaged perplexity over languages as a stopping criterion for training. For machine translation, we only use 6 layers, and we create mini-batches of 2000 tokens.\n> \n> \n> When fine-tuning on XNLI, we use mini-batches of size 8 or 16, and we clip the sentence length to 256 words. We use 80k BPE splits and a vocabulary of 95k and train a 12-layer model on the Wikipedias of the XNLI languages. We sample the learning rate of the Adam optimizer with values from 5.10−4 to 2.10−4, and use small evaluation epochs of 20000 random samples. We use the first hidden state of the last layer of the transformer as input to the randomly initialized final linear classifier, and fine-tune all parameters. In our experiments, using either max-pooling or mean-pooling over the last layer did not work bet- ter than using the first hidden state.\n> \n> \n> We implement all our models in Py-Torch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n> \n> \n> \n\n\nEvaluation\n==========\n\n\nTesting Data, Factors & Metrics\n-------------------------------\n\n\nAfter fine-tuning the model on the English NLI dataset, the model developers evaluated the capacity of the model to make correct predictions in the 15 XNLI languages using the XNLI data and the metric of test accuracy.See the associated paper for further details.\n\n\nResults\n-------\n\n\n\nEnvironmental Impact\n====================\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n\n* Hardware Type: 64 Volta GPUs\n* Hours used: More information needed\n* Cloud Provider: More information needed\n* Compute Region: More information needed\n* Carbon Emitted: More information needed\n\n\nTechnical Specifications\n========================\n\n\nDetails are culled from the associated paper. See the paper for links, citations, and further details. Also see the associated GitHub Repo for further details.\n\n\nModel Architecture and Objective\n--------------------------------\n\n\nxlm-mlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective fine-tuned on the English NLI dataset. About the MLM objective, the developers write:\n\n\n\n> \n> We also consider the masked language model- ing (MLM) objective of Devlin et al. (2018), also known as the Cloze task (Taylor, 1953). Follow- ing Devlin et al. (2018), we sample randomly 15% of the BPE tokens from the text streams, replace them by a [MASK] token 80% of the time, by a random token 10% of the time, and we keep them unchanged 10% of the time. Differences be- tween our approach and the MLM of Devlin et al. (2018) include the use of text streams of an ar- bitrary number of sentences (truncated at 256 to- kens) instead of pairs of sentences. To counter the imbalance between rare and frequent tokens (e.g. punctuations or stop words), we also subsample the frequent outputs using an approach similar to Mikolov et al. (2013b): tokens in a text stream are sampled according to a multinomial distribution, whose weights are proportional to the square root of their invert frequencies. Our MLM objective is illustrated in Figure 1.\n> \n> \n> \n\n\nCompute Infrastructure\n----------------------",
"### Hardware and Software\n\n\nThe developers write:\n\n\n\n> \n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n> \n> \n> \n\n\nBibTeX:\n\n\nAPA:\n\n\n* Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.\n\n\nModel Card Authors\n==================\n\n\nThis model card was written by the team at Hugging Face.\n\n\nHow to Get Started with the Model\n=================================\n\n\nThis model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details."
] | [
"TAGS\n#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #fr #es #de #el #bg #ru #tr #ar #vi #th #zh #hi #sw #ur #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### Preprocessing\n\n\nThe model developers write:\n\n\n\n> \n> We use fastBPE to learn BPE codes and split words into subword units. The BPE codes are learned on the concatenation of sentences sampled from all languages, following the method presented in Section 3.1.\n> \n> \n>",
"### Speeds, Sizes, Times\n\n\nThe model developers write:\n\n\n\n> \n> We use a Transformer architecture with 1024 hidden units, 8 heads, GELU activations (Hendrycks and Gimpel, 2016), a dropout rate of 0.1 and learned positional embeddings. We train our models with the Adam optimizer (Kingma and Ba, 2014), a linear warm-up (Vaswani et al., 2017) and learning rates varying from 10^−4 to 5.10^−4.\n> \n> \n> For the CLM and MLM objectives, we use streams of 256 tokens and a mini-batches of size 64. Unlike Devlin et al. (2018), a sequence in a mini-batch can contain more than two consecutive sentences, as explained in Section 3.2. For the TLM objective, we sample mini-batches of 4000 tokens composed of sentences with similar lengths. We use the averaged perplexity over languages as a stopping criterion for training. For machine translation, we only use 6 layers, and we create mini-batches of 2000 tokens.\n> \n> \n> When fine-tuning on XNLI, we use mini-batches of size 8 or 16, and we clip the sentence length to 256 words. We use 80k BPE splits and a vocabulary of 95k and train a 12-layer model on the Wikipedias of the XNLI languages. We sample the learning rate of the Adam optimizer with values from 5.10−4 to 2.10−4, and use small evaluation epochs of 20000 random samples. We use the first hidden state of the last layer of the transformer as input to the randomly initialized final linear classifier, and fine-tune all parameters. In our experiments, using either max-pooling or mean-pooling over the last layer did not work bet- ter than using the first hidden state.\n> \n> \n> We implement all our models in Py-Torch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n> \n> \n> \n\n\nEvaluation\n==========\n\n\nTesting Data, Factors & Metrics\n-------------------------------\n\n\nAfter fine-tuning the model on the English NLI dataset, the model developers evaluated the capacity of the model to make correct predictions in the 15 XNLI languages using the XNLI data and the metric of test accuracy.See the associated paper for further details.\n\n\nResults\n-------\n\n\n\nEnvironmental Impact\n====================\n\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n\n* Hardware Type: 64 Volta GPUs\n* Hours used: More information needed\n* Cloud Provider: More information needed\n* Compute Region: More information needed\n* Carbon Emitted: More information needed\n\n\nTechnical Specifications\n========================\n\n\nDetails are culled from the associated paper. See the paper for links, citations, and further details. Also see the associated GitHub Repo for further details.\n\n\nModel Architecture and Objective\n--------------------------------\n\n\nxlm-mlm-xnli15-1024 is a transformer pretrained using a masked language modeling (MLM) objective fine-tuned on the English NLI dataset. About the MLM objective, the developers write:\n\n\n\n> \n> We also consider the masked language model- ing (MLM) objective of Devlin et al. (2018), also known as the Cloze task (Taylor, 1953). Follow- ing Devlin et al. (2018), we sample randomly 15% of the BPE tokens from the text streams, replace them by a [MASK] token 80% of the time, by a random token 10% of the time, and we keep them unchanged 10% of the time. Differences be- tween our approach and the MLM of Devlin et al. (2018) include the use of text streams of an ar- bitrary number of sentences (truncated at 256 to- kens) instead of pairs of sentences. To counter the imbalance between rare and frequent tokens (e.g. punctuations or stop words), we also subsample the frequent outputs using an approach similar to Mikolov et al. (2013b): tokens in a text stream are sampled according to a multinomial distribution, whose weights are proportional to the square root of their invert frequencies. Our MLM objective is illustrated in Figure 1.\n> \n> \n> \n\n\nCompute Infrastructure\n----------------------",
"### Hardware and Software\n\n\nThe developers write:\n\n\n\n> \n> We implement all our models in PyTorch (Paszke et al., 2017), and train them on 64 Volta GPUs for the language modeling tasks, and 8 GPUs for the MT tasks. We use float16 operations to speed up training and to reduce the memory usage of our models.\n> \n> \n> \n\n\nBibTeX:\n\n\nAPA:\n\n\n* Lample, G., & Conneau, A. (2019). Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291.\n\n\nModel Card Authors\n==================\n\n\nThis model card was written by the team at Hugging Face.\n\n\nHow to Get Started with the Model\n=================================\n\n\nThis model uses language embeddings to specify the language used at inference. See the Hugging Face Multilingual Models for Inference docs for further details."
] | [
109,
68,
1022,
198
] | [
"passage: TAGS\n#transformers #pytorch #tf #safetensors #xlm #fill-mask #multilingual #en #fr #es #de #el #bg #ru #tr #ar #vi #th #zh #hi #sw #ur #arxiv-1901.07291 #arxiv-1910.09700 #license-cc-by-nc-4.0 #autotrain_compatible #endpoints_compatible #region-us \n### Preprocessing\n\n\nThe model developers write:\n\n\n\n> \n> We use fastBPE to learn BPE codes and split words into subword units. The BPE codes are learned on the concatenation of sentences sampled from all languages, following the method presented in Section 3.1.\n> \n> \n>"
] | [
-0.09812998026609421,
-0.045990388840436935,
-0.003798336023464799,
0.05768631398677826,
0.11116836965084076,
0.025031598284840584,
0.009232917800545692,
0.08719190955162048,
0.0455884151160717,
0.018101045861840248,
0.07355806976556778,
0.08484936505556107,
0.02707691676914692,
0.19033458828926086,
-0.048593368381261826,
-0.22378824651241302,
0.07018119841814041,
0.0006197051843628287,
0.036645807325839996,
0.1255791336297989,
0.08807524293661118,
-0.030191143974661827,
0.038777805864810944,
-0.04954616352915764,
-0.11709413677453995,
0.05202680826187134,
-0.03734327852725983,
-0.08554650098085403,
0.11793772131204605,
0.06262990832328796,
0.10649280995130539,
0.024097448214888573,
0.038721393793821335,
-0.18308116495609283,
0.018192226067185402,
-0.017950918525457382,
-0.086431585252285,
0.005336938891559839,
-0.02221868932247162,
-0.0579100027680397,
0.02913542464375496,
-0.028277605772018433,
-0.004050309769809246,
0.0415649451315403,
-0.12501803040504456,
-0.22338448464870453,
0.06432236731052399,
-0.00524823646992445,
0.0949375331401825,
0.09141875803470612,
-0.0361572802066803,
0.15372933447360992,
-0.07249658554792404,
0.07548517733812332,
0.14579197764396667,
-0.41318026185035706,
-0.021740922704339027,
0.0476171113550663,
0.0799337774515152,
0.11354316771030426,
-0.05289411172270775,
-0.000869742885697633,
0.10084889829158783,
0.0511668436229229,
0.011909379623830318,
-0.06350613385438919,
0.02293703518807888,
0.007804549764841795,
-0.1737845242023468,
-0.016950074583292007,
0.13669879734516144,
-0.04783034324645996,
-0.05717276409268379,
-0.017527002841234207,
-0.11122609674930573,
-0.07254262268543243,
-0.046668536961078644,
-0.025868067517876625,
-0.01228526420891285,
0.05665261670947075,
0.04947540536522865,
-0.015240014530718327,
-0.09571433812379837,
-0.10928621143102646,
-0.06150675192475319,
0.2409399002790451,
0.06646554917097092,
-0.0007374040433205664,
-0.07985600084066391,
0.08047817647457123,
-0.02324780635535717,
-0.09617433696985245,
-0.05939909815788269,
-0.07139364629983902,
0.0281914584338665,
0.08120003342628479,
-0.04891936853528023,
0.10405875742435455,
0.10345862805843353,
0.14347948133945465,
-0.012778972275555134,
0.0723390281200409,
0.02266639657318592,
0.0670957863330841,
-0.03162505105137825,
0.1050976812839508,
0.025348400697112083,
-0.06483203172683716,
0.04220660775899887,
-0.023335125297307968,
-0.007064593955874443,
-0.03242523968219757,
-0.15884840488433838,
-0.046462032943964005,
0.03189508616924286,
0.1253472864627838,
-0.07024988532066345,
0.06754384189844131,
-0.0537385456264019,
0.013670415617525578,
0.09087525308132172,
-0.16391557455062866,
-0.02312399446964264,
0.03368072211742401,
0.010864846408367157,
0.03795766085386276,
0.028441937640309334,
-0.07179959863424301,
-0.14470872282981873,
-0.07868155092000961,
-0.058999497443437576,
-0.032056767493486404,
-0.0709509551525116,
-0.12020869553089142,
-0.02217460423707962,
-0.0634089857339859,
-0.02306409925222397,
-0.16601821780204773,
-0.14227232336997986,
0.012417933903634548,
-0.024886826053261757,
-0.016756383702158928,
0.04549107700586319,
-0.14213640987873077,
-0.04865780100226402,
-0.039074722677469254,
-0.04490921273827553,
-0.13391175866127014,
-0.056815341114997864,
0.062313564121723175,
0.04010440409183502,
0.0828380137681961,
-0.17546075582504272,
0.061220355331897736,
-0.08327868580818176,
0.018000757321715355,
-0.12447075545787811,
0.12805216014385223,
-0.036251556128263474,
-0.0122146001085639,
-0.09221179038286209,
-0.08781436830759048,
-0.05140967294573784,
0.06945470720529556,
0.02148394286632538,
0.1369386911392212,
-0.1588834971189499,
-0.09265877306461334,
0.29991987347602844,
-0.1453067660331726,
-0.07287251204252243,
0.16015931963920593,
0.011905914172530174,
0.06505889445543289,
0.08887436240911484,
0.18395353853702545,
0.021379802376031876,
-0.050241969525814056,
0.08546556532382965,
0.12028739601373672,
0.02278319001197815,
-0.0633605569601059,
0.0965716615319252,
0.009661107324063778,
-0.02310672216117382,
0.043773144483566284,
-0.061933211982250214,
0.08307160437107086,
-0.034205660223960876,
-0.057601749897003174,
0.04623247683048248,
-0.03002263233065605,
0.07878760993480682,
-0.00738998269662261,
0.011858874000608921,
-0.04736810922622681,
-0.1026269793510437,
-0.00336134503595531,
0.10664886236190796,
-0.12582553923130035,
0.058436814695596695,
-0.1542217880487442,
0.11037028580904007,
0.02940983511507511,
0.03404810652136803,
-0.11941909790039062,
0.006848413031548262,
0.005502208136022091,
0.07698910683393478,
0.01139001827687025,
0.036897722631692886,
0.010928139090538025,
0.05340222269296646,
-0.006729076150804758,
-0.04210316017270088,
-0.013594016432762146,
-0.0025229889433830976,
-0.032039087265729904,
-0.1418241262435913,
-0.029278328642249107,
-0.06915123015642166,
0.11057613790035248,
-0.08670134097337723,
0.05801161006093025,
0.003997727297246456,
0.015136855654418468,
-0.056899476796388626,
0.05274910852313042,
-0.06806547194719315,
0.07649978995323181,
-0.031341005116701126,
0.015414765104651451,
0.0633883848786354,
-0.013282557018101215,
-0.10207163542509079,
0.06464694440364838,
-0.08766941726207733,
0.10238838940858841,
0.1570018231868744,
-0.11726420372724533,
-0.031623344868421555,
0.018024029210209846,
0.016443099826574326,
0.01715383678674698,
0.09634851664304733,
-0.08956834673881531,
0.2342841625213623,
-0.010422782972455025,
0.1488792598247528,
-0.13469873368740082,
-0.046794939786195755,
-0.006717746611684561,
-0.07403683662414551,
0.01257582288235426,
0.11712712794542313,
0.015836505219340324,
-0.11648577451705933,
0.14861848950386047,
0.2027563601732254,
-0.016463065519928932,
0.22576597332954407,
-0.02230258099734783,
-0.05714381858706474,
-0.0017998245311900973,
0.09969306737184525,
-0.04340049996972084,
0.04746706783771515,
-0.1660865694284439,
-0.05042164772748947,
-0.006060178857296705,
-0.0036775581538677216,
0.09513023495674133,
-0.15045522153377533,
-0.03157158941030502,
-0.0077062612399458885,
-0.06647472828626633,
-0.08959373831748962,
0.0025855705607682467,
-0.052630092948675156,
0.0556865856051445,
0.01054051797837019,
-0.17129632830619812,
0.053161948919296265,
-0.048951927572488785,
-0.13324283063411713,
0.2376987338066101,
-0.16313554346561432,
-0.2456182986497879,
-0.14250947535037994,
-0.012563581578433514,
0.004528924822807312,
0.0081410501152277,
0.07683761417865753,
-0.1460869461297989,
-0.03036690503358841,
-0.022356471046805382,
0.07965405285358429,
-0.01680024340748787,
-0.018723495304584503,
0.054209351539611816,
-0.00026676157722249627,
-0.06846461445093155,
-0.1332036703824997,
-0.05730506777763367,
-0.03509972244501114,
-0.10591732710599899,
0.08256852626800537,
-0.19600355625152588,
0.06240035966038704,
0.24063760042190552,
-0.012570736929774284,
0.03166568651795387,
-0.06466680020093918,
0.20515656471252441,
-0.019710659980773926,
-0.06078915670514107,
0.15269598364830017,
-0.10111134499311447,
0.0705619603395462,
0.055595122277736664,
0.022140858694911003,
-0.0921032652258873,
0.01751819998025894,
-0.07911127060651779,
-0.040482472628355026,
-0.23143738508224487,
-0.12165795266628265,
-0.09160379320383072,
0.027106469497084618,
-0.07322220504283905,
0.06847231090068817,
-0.00020791219139937311,
-0.0023726215586066246,
-0.030529513955116272,
-0.047816839069128036,
0.03613944724202156,
0.0913417786359787,
0.14438320696353912,
-0.035810548812150955,
0.08061131089925766,
-0.026083271950483322,
-0.10114062577486038,
0.00965063739567995,
0.021466758102178574,
0.05662138760089874,
0.08852183073759079,
0.16612564027309418,
0.04209563136100769,
0.12709501385688782,
0.10069074481725693,
0.13971969485282898,
-0.08774450421333313,
0.00960391853004694,
-0.03576872497797012,
-0.07033480703830719,
-0.06339219957590103,
0.05421251058578491,
-0.03857161104679108,
-0.011059096083045006,
-0.07905993610620499,
-0.030487708747386932,
0.10440831631422043,
0.07260334491729736,
0.06302053481340408,
-0.248432919383049,
-0.038445211946964264,
0.03958155959844589,
0.0035747275687754154,
-0.052090566605329514,
0.09637461602687836,
0.0754210576415062,
-0.056252531707286835,
0.03103959560394287,
0.036207761615514755,
0.08355909585952759,
0.047620389610528946,
0.054141703993082047,
-0.05618457868695259,
0.03445049002766609,
0.014915812760591507,
0.0931338518857956,
-0.25189483165740967,
0.18530556559562683,
0.009188099764287472,
0.02738250233232975,
-0.033063314855098724,
0.01992247812449932,
-0.025955287739634514,
0.08708296716213226,
0.15844030678272247,
0.00006955763092264533,
0.08297687023878098,
-0.16537679731845856,
-0.026074321940541267,
0.09818635880947113,
0.13858941197395325,
0.00119890202768147,
0.05427805706858635,
0.000022595222617383115,
-0.008675295859575272,
0.03837566822767258,
-0.06101037561893463,
-0.017007477581501007,
-0.09104608744382858,
0.02610393613576889,
-0.005382753908634186,
0.066735178232193,
-0.01165805198252201,
-0.05232832953333855,
-0.10014364123344421,
0.10652801394462585,
-0.2127135843038559,
-0.11573322862386703,
-0.08024745434522629,
-0.07566580921411514,
0.052143581211566925,
-0.10962624102830887,
0.12231191247701645,
0.03324001654982567,
-0.005257968790829182,
-0.06171960011124611,
-0.09491034597158432,
0.1254972368478775,
-0.08485496789216995,
-0.09193133562803268,
0.011061408556997776,
0.17891666293144226,
0.06100664660334587,
0.030814863741397858,
0.03502409905195236,
-0.0379386804997921,
-0.01707572117447853,
-0.10879415273666382,
-0.03323568031191826,
0.010690300725400448,
-0.019390778616070747,
0.05244239419698715,
-0.13943450152873993,
-0.13925443589687347,
-0.087376169860363,
0.007389674428850412,
0.19889232516288757,
0.3220885396003723,
-0.054338835179805756,
0.06985793262720108,
0.282677561044693,
-0.049694593995809555,
-0.29757142066955566,
-0.12057327479124069,
-0.03967030718922615,
0.046298760920763016,
-0.08812254667282104,
-0.19120772182941437,
0.03882525488734245,
0.0008876224746927619,
0.009957246482372284,
0.009639197029173374,
-0.28468507528305054,
-0.09906915575265884,
0.23626074194908142,
0.0462607741355896,
0.18418467044830322,
-0.10962624102830887,
-0.03318184241652489,
-0.07526583969593048,
-0.11139571666717529,
0.046229977160692215,
-0.07329457998275757,
0.08617231994867325,
0.017904480919241905,
-0.019362686201930046,
-0.01905650645494461,
0.022181468084454536,
0.14068378508090973,
0.061604585498571396,
0.045535389333963394,
0.0027586868964135647,
-0.09398757666349411,
0.05198731645941734,
0.06357726454734802,
0.0702226310968399,
-0.1130329892039299,
-0.016635969281196594,
-0.09575877338647842,
-0.05612030252814293,
-0.048303961753845215,
0.06687101721763611,
0.008888451382517815,
-0.104198157787323,
0.008116592653095722,
0.004070480354130268,
0.0007778696017339826,
0.004237248562276363,
0.10883753001689911,
-0.06445614248514175,
0.05012455955147743,
0.19151318073272705,
0.13341055810451508,
-0.055348951369524,
0.0922517478466034,
0.03897211328148842,
-0.05098850280046463,
0.12404342740774155,
-0.06875678151845932,
0.03216926380991936,
0.11562313884496689,
0.010883479379117489,
0.11441521346569061,
0.115191750228405,
-0.089370958507061,
-0.010152825154364109,
0.09393193572759628,
-0.15259875357151031,
-0.12898381054401398,
-0.041671693325042725,
-0.10811353474855423,
0.060408253222703934,
0.11341943591833115,
0.11610803753137589,
-0.09871494770050049,
-0.03617947921156883,
-0.029384436085820198,
0.02662271447479725,
-0.1231389194726944,
0.16695792973041534,
0.10790156573057175,
0.04276179522275925,
-0.13196763396263123,
0.041543833911418915,
0.009850021451711655,
-0.025644296780228615,
0.0404898039996624,
0.11596952378749847,
-0.10988711565732956,
-0.09761494398117065,
0.008607962168753147,
0.17329545319080353,
-0.07738500088453293,
-0.10649918019771576,
-0.08941690623760223,
-0.11475428193807602,
0.03709128871560097,
0.2694578468799591,
0.11128191649913788,
0.04845503717660904,
-0.01687547005712986,
0.029381530359387398,
0.014858802780508995,
0.061359506100416183,
0.040583398193120956,
-0.019273927435278893,
-0.03022659383714199,
0.15792936086654663,
0.02506895177066326,
0.1274857074022293,
-0.09044601023197174,
-0.0471261590719223,
-0.1548909693956375,
0.08117041736841202,
-0.11026374250650406,
0.040489453822374344,
-0.08355742692947388,
0.0008068923489190638,
-0.009575818665325642,
-0.01114204153418541,
-0.031005216762423515,
0.04418255761265755,
-0.11080177128314972,
0.016247238963842392,
0.003361497540026903,
0.02408602274954319,
-0.09987147152423859,
-0.0036723758094012737,
0.016426902264356613,
-0.05727763846516609,
0.11786671727895737,
0.09076297283172607,
-0.06277035176753998,
0.1560453623533249,
-0.18041177093982697,
0.004406903870403767,
0.1334487795829773,
0.05800270289182663,
0.036017488688230515,
0.056320805102586746,
0.03290363401174545,
0.018991593271493912,
-0.02787274681031704,
0.009313371963799,
0.1908014565706253,
-0.0918852910399437,
0.06122578680515289,
-0.08001822978258133,
-0.08017922937870026,
-0.02373259887099266,
0.019482307136058807,
0.05839262902736664,
0.07956281304359436,
0.09534792602062225,
-0.07646119594573975,
0.05854810029268265,
-0.08191602677106857,
-0.013188845477998257,
-0.003529356559738517,
-0.07058785110712051,
-0.06282368302345276,
-0.10300755500793457,
0.025401247665286064,
-0.06318272650241852,
0.12909747660160065,
0.011053482070565224,
-0.036294519901275635,
-0.032041870057582855,
-0.08242430537939072,
0.037055812776088715,
0.03150247782468796,
0.17787693440914154,
0.07349902391433716,
-0.0007647480233572423,
-0.12765024602413177,
0.015399731695652008,
0.04717961698770523,
0.07671065628528595,
0.0654173195362091,
0.12487548589706421,
0.09500490874052048,
0.18368574976921082,
0.061981938779354095,
-0.05966641753911972,
-0.031497929245233536,
-0.09347975999116898,
0.05577841401100159,
-0.0006261265370994806,
-0.026687724515795708,
0.17794330418109894,
0.13694356381893158,
-0.09758246690034866,
0.02755911648273468,
0.012244848534464836,
-0.06260747462511063,
-0.18901635706424713,
-0.08179553598165512,
-0.031008480116724968,
-0.1411782056093216,
-0.0272385161370039,
-0.10783623158931732,
-0.057503893971443176,
0.0500178188085556,
0.05301358178257942,
-0.006954627577215433,
0.1364385336637497,
-0.014554529450833797,
-0.12598498165607452,
0.07761730998754501,
-0.008806196041405201,
0.09631550312042236,
-0.0317293144762516,
0.004890871234238148,
0.05729597434401512,
-0.014256415888667107,
0.01043720357120037,
0.035004086792469025,
-0.01059626042842865,
0.0461760051548481,
-0.09121625125408173,
-0.07210385799407959,
-0.038444798439741135,
0.06862209737300873,
-0.02551415003836155,
0.11175943911075592,
0.05728897452354431,
-0.09715116024017334,
0.030652232468128204,
0.02875703014433384,
-0.048933133482933044,
-0.16598737239837646,
-0.0512332022190094,
0.32848039269447327,
0.07910560816526413,
0.13938139379024506,
-0.003513165283948183,
-0.09205421060323715,
-0.04088813066482544,
0.19131463766098022,
0.23945100605487823,
-0.06586593389511108,
0.05549068748950958,
0.03759123384952545,
0.0445336252450943,
0.04111547768115997,
0.13233011960983276,
0.12160550057888031,
0.2839507758617401,
-0.07763123512268066,
-0.03843310475349426,
-0.09433748573064804,
-0.018040286377072334,
-0.07384532690048218,
0.006158678792417049,
0.035174157470464706,
-0.05843888223171234,
-0.043440647423267365,
0.07258876413106918,
-0.14001081883907318,
-0.01899709552526474,
0.01466463040560484,
-0.13138088583946228,
-0.08295021951198578,
-0.039147693663835526,
0.005872776266187429,
0.05917283520102501,
0.059274837374687195,
-0.05695024132728577,
-0.02608109824359417,
0.10718346387147903,
0.04208015650510788,
-0.1318950355052948,
-0.03605831041932106,
0.10407794266939163,
-0.15452314913272858,
0.021879898384213448,
-0.004308279603719711,
0.15180444717407227,
0.058901380747556686,
0.08389868587255478,
0.04919196665287018,
0.14932216703891754,
0.03466189280152321,
0.05929075926542282,
0.041198160499334335,
0.02642085961997509,
-0.02391079068183899,
0.04775321111083031,
0.0368330292403698,
-0.05542990565299988,
0.05646137520670891,
0.05180174484848976,
-0.0899505540728569,
-0.05205240845680237,
-0.005841260310262442,
-0.1125500500202179,
0.06262704730033875,
0.0932527631521225,
-0.01727927103638649,
-0.02821340784430504,
-0.030715957283973694,
0.03286007046699524,
0.04541492834687233,
0.004000320564955473,
-0.03710562735795975,
-0.19328312575817108,
-0.02270694263279438,
0.06324578076601028,
0.029329000040888786,
-0.11420170217752457,
0.017260851338505745,
-0.08344097435474396,
0.0525529645383358,
-0.1415797919034958,
0.08141527324914932,
0.07547271251678467,
0.03604496642947197,
-0.02554924599826336,
-0.11734650284051895,
-0.006380971521139145,
0.08305088430643082,
-0.10523663461208344,
-0.09556979686021805
] |
null | null | transformers |
# XLM-RoBERTa (base-sized model)
XLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/abs/1911.02116) by Conneau et al. and first released in [this repository](https://github.com/pytorch/fairseq/tree/master/examples/xlmr).
Disclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
XLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages.
RoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.
This way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.
## Intended uses & limitations
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?search=xlm-roberta) to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
## Usage
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='xlm-roberta-base')
>>> unmasker("Hello I'm a <mask> model.")
[{'score': 0.10563907772302628,
'sequence': "Hello I'm a fashion model.",
'token': 54543,
'token_str': 'fashion'},
{'score': 0.08015287667512894,
'sequence': "Hello I'm a new model.",
'token': 3525,
'token_str': 'new'},
{'score': 0.033413201570510864,
'sequence': "Hello I'm a model model.",
'token': 3299,
'token_str': 'model'},
{'score': 0.030217764899134636,
'sequence': "Hello I'm a French model.",
'token': 92265,
'token_str': 'French'},
{'score': 0.026436051353812218,
'sequence': "Hello I'm a sexy model.",
'token': 17473,
'token_str': 'sexy'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained('xlm-roberta-base')
model = AutoModelForMaskedLM.from_pretrained("xlm-roberta-base")
# prepare input
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
# forward pass
output = model(**encoded_input)
```
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1911-02116,
author = {Alexis Conneau and
Kartikay Khandelwal and
Naman Goyal and
Vishrav Chaudhary and
Guillaume Wenzek and
Francisco Guzm{\'{a}}n and
Edouard Grave and
Myle Ott and
Luke Zettlemoyer and
Veselin Stoyanov},
title = {Unsupervised Cross-lingual Representation Learning at Scale},
journal = {CoRR},
volume = {abs/1911.02116},
year = {2019},
url = {http://arxiv.org/abs/1911.02116},
eprinttype = {arXiv},
eprint = {1911.02116},
timestamp = {Mon, 11 Nov 2019 18:38:09 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1911-02116.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
<a href="https://huggingface.co/exbert/?model=xlm-roberta-base">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": ["multilingual", "af", "am", "ar", "as", "az", "be", "bg", "bn", "br", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fr", "fy", "ga", "gd", "gl", "gu", "ha", "he", "hi", "hr", "hu", "hy", "id", "is", "it", "ja", "jv", "ka", "kk", "km", "kn", "ko", "ku", "ky", "la", "lo", "lt", "lv", "mg", "mk", "ml", "mn", "mr", "ms", "my", "ne", "nl", false, "om", "or", "pa", "pl", "ps", "pt", "ro", "ru", "sa", "sd", "si", "sk", "sl", "so", "sq", "sr", "su", "sv", "sw", "ta", "te", "th", "tl", "tr", "ug", "uk", "ur", "uz", "vi", "xh", "yi", "zh"], "license": "mit", "tags": ["exbert"]} | fill-mask | FacebookAI/xlm-roberta-base | [
"transformers",
"pytorch",
"tf",
"jax",
"onnx",
"safetensors",
"xlm-roberta",
"fill-mask",
"exbert",
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh",
"arxiv:1911.02116",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1911.02116"
] | [
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh"
] | TAGS
#transformers #pytorch #tf #jax #onnx #safetensors #xlm-roberta #fill-mask #exbert #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us
|
# XLM-RoBERTa (base-sized model)
XLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. and first released in this repository.
Disclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
XLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages.
RoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.
This way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.
## Intended uses & limitations
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
## Usage
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
### BibTeX entry and citation info
<a href="URL
<img width="300px" src="URL
</a>
| [
"# XLM-RoBERTa (base-sized model) \n\nXLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. and first released in this repository. \n\nDisclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team.",
"## Model description\n\nXLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. \n\nRoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.\n\nMore precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.\n\nThis way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.",
"## Intended uses & limitations\n\nYou can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.",
"## Usage\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\n\nHere is how to use this model to get the features of a given text in PyTorch:",
"### BibTeX entry and citation info\n\n\n\n<a href=\"URL\n\t<img width=\"300px\" src=\"URL\n</a>"
] | [
"TAGS\n#transformers #pytorch #tf #jax #onnx #safetensors #xlm-roberta #fill-mask #exbert #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"# XLM-RoBERTa (base-sized model) \n\nXLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. and first released in this repository. \n\nDisclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team.",
"## Model description\n\nXLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. \n\nRoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.\n\nMore precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.\n\nThis way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.",
"## Intended uses & limitations\n\nYou can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.",
"## Usage\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\n\nHere is how to use this model to get the features of a given text in PyTorch:",
"### BibTeX entry and citation info\n\n\n\n<a href=\"URL\n\t<img width=\"300px\" src=\"URL\n</a>"
] | [
274,
115,
307,
129,
40,
34
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #onnx #safetensors #xlm-roberta #fill-mask #exbert #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n# XLM-RoBERTa (base-sized model) \n\nXLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. and first released in this repository. \n\nDisclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team."
] | [
-0.046151772141456604,
0.012358328327536583,
-0.0068555474281311035,
0.03058084100484848,
0.052277062088251114,
0.05669093132019043,
0.10269751399755478,
0.11849498003721237,
0.04024507477879524,
0.11790924519300461,
0.1105140671133995,
0.05661502480506897,
0.10519207268953323,
0.15209397673606873,
0.010033542290329933,
-0.22836840152740479,
0.009802676737308502,
-0.052477750927209854,
-0.014650413766503334,
0.08607802540063858,
0.06419230997562408,
-0.06202898547053337,
0.10605179518461227,
-0.026537882164120674,
0.018625982105731964,
-0.003525732783600688,
-0.040087439119815826,
-0.01936992257833481,
0.018655158579349518,
0.07676169276237488,
0.027496540918946266,
0.07969528436660767,
0.07414726167917252,
-0.22757671773433685,
0.03008401393890381,
0.023961307480931282,
-0.06130768731236458,
0.033304378390312195,
0.04527989774942398,
-0.07483170926570892,
0.16047288477420807,
-0.08440284430980682,
-0.02763097733259201,
0.03122028149664402,
-0.16869905591011047,
-0.21514590084552765,
-0.1070198193192482,
0.11271459609270096,
0.05748797208070755,
0.028837138786911964,
-0.05623011291027069,
0.07951299846172333,
-0.0640648826956749,
0.03273173049092293,
0.18249747157096863,
-0.26235997676849365,
-0.059970345348119736,
0.06213768199086189,
0.08664306998252869,
0.05364823341369629,
-0.09708543121814728,
0.05071064457297325,
0.07197745144367218,
0.013808658346533775,
-0.028432277962565422,
-0.02859375812113285,
0.1529059112071991,
0.02987363189458847,
-0.1383340209722519,
-0.0061455098912119865,
0.13150882720947266,
0.03305520489811897,
-0.007473140023648739,
-0.03216765820980072,
-0.017086070030927658,
-0.093938447535038,
-0.04445132613182068,
-0.02044050768017769,
0.02866206504404545,
-0.0006367599125951529,
0.03562403470277786,
0.02932531014084816,
-0.07424622029066086,
0.019166123121976852,
-0.020821714773774147,
0.14209169149398804,
0.012785435654222965,
0.022094767540693283,
-0.03354136273264885,
0.017866289243102074,
-0.04723329842090607,
-0.11756003648042679,
-0.0256514810025692,
-0.026059100404381752,
-0.013956851325929165,
-0.005105165299028158,
0.04941217973828316,
0.03424438089132309,
0.0690632238984108,
0.13533614575862885,
-0.08065684884786606,
0.06232193112373352,
0.083659328520298,
0.07125280797481537,
0.07424156367778778,
0.10675500333309174,
-0.11344639211893082,
-0.06996595114469528,
-0.08779210597276688,
0.04743172228336334,
0.01779336668550968,
-0.02490859664976597,
-0.058412570506334305,
0.0572267584502697,
-0.035834845155477524,
0.031215868890285492,
0.024478310719132423,
0.05901780351996422,
-0.046414874494075775,
0.022497352212667465,
0.12013902515172958,
-0.09165618568658829,
0.022038938477635384,
0.05049412325024605,
0.00556684797629714,
0.05461220443248749,
-0.007428324781358242,
0.008223330602049828,
0.020538024604320526,
0.10213477909564972,
-0.06404351443052292,
-0.00017022297834046185,
-0.015455729328095913,
-0.06741508096456528,
0.043620966374874115,
-0.06619606167078018,
-0.007947195321321487,
-0.11063352227210999,
-0.04927441477775574,
-0.060299403965473175,
0.03302198648452759,
-0.06685779988765717,
0.01794191263616085,
-0.059012703597545624,
-0.08607310056686401,
0.06459225714206696,
0.01184108853340149,
0.038230910897254944,
-0.08079409599304199,
0.05310320109128952,
-0.03159796819090843,
0.09125949442386627,
0.008400946855545044,
0.027994666248559952,
-0.060708362609148026,
0.09658291190862656,
-0.09652367979288101,
0.034231606870889664,
-0.10057437419891357,
0.015432886779308319,
-0.11189299076795578,
-0.09936151653528214,
-0.04497158154845238,
0.0428311787545681,
0.028012927621603012,
0.18118561804294586,
-0.20142312347888947,
-0.0888705626130104,
0.19358353316783905,
-0.06633908301591873,
-0.04952346161007881,
0.12070278078317642,
0.03149827569723129,
0.047750115394592285,
0.022493980824947357,
0.14772289991378784,
0.04910200834274292,
-0.11321268230676651,
-0.08921588957309723,
0.039903800934553146,
0.007570256944745779,
0.1580476313829422,
0.09950324147939682,
-0.009824112989008427,
0.030570287257432938,
0.021281491965055466,
-0.052918024361133575,
0.008628525771200657,
-0.07232218235731125,
-0.07811133563518524,
0.06388525664806366,
-0.05475198104977608,
0.08874427527189255,
0.055569399148225784,
-0.024227824062108994,
-0.04018126800656319,
-0.09035580605268478,
-0.05216754972934723,
0.09785830974578857,
0.024590209126472473,
0.0025500899646431208,
-0.09108269959688187,
0.11352339386940002,
-0.0011745711090043187,
0.019004343077540398,
-0.08111191540956497,
0.05262043699622154,
-0.013539575040340424,
-0.020355265587568283,
0.06569630652666092,
0.09456662833690643,
0.09770757704973221,
0.01978546567261219,
-0.0555354580283165,
-0.06460712850093842,
0.06376275420188904,
0.0004996013012714684,
-0.06103578582406044,
-0.2205149382352829,
0.0076827737502753735,
-0.06556420028209686,
0.09330688416957855,
-0.19006727635860443,
0.014916819520294666,
0.05569490045309067,
0.12134727090597153,
0.01610141061246395,
-0.01411306019872427,
-0.010547931306064129,
0.040405936539173126,
-0.022625857964158058,
-0.012901726178824902,
0.04595523700118065,
-0.02968805842101574,
-0.07071781158447266,
0.03914537653326988,
-0.12150488048791885,
0.0002984478778671473,
0.1016213446855545,
-0.01657630130648613,
-0.11008193343877792,
0.09522490203380585,
-0.02959366701543331,
-0.017637673765420914,
0.04307737573981285,
0.007058792747557163,
0.09351064264774323,
0.00048563681775704026,
0.05686258524656296,
-0.07923168689012527,
-0.05506211519241333,
0.04044133424758911,
-0.062018830329179764,
-0.10113274306058884,
0.19093579053878784,
0.054000891745090485,
-0.20062437653541565,
0.14681552350521088,
0.18835748732089996,
0.061318498104810715,
0.2300434112548828,
0.013796086423099041,
-0.043920211493968964,
-0.09112831205129623,
0.01353897713124752,
0.02395652048289776,
0.10959310829639435,
-0.08026634901762009,
-0.018524659797549248,
-0.012141210958361626,
-0.013709825463593006,
0.011035594157874584,
-0.08695247769355774,
-0.049119435250759125,
-0.04111555963754654,
-0.04971013590693474,
-0.0031176020856946707,
0.07081228494644165,
-0.0664733350276947,
0.10410334169864655,
0.045915957540273666,
-0.008049637079238892,
-0.049325186759233475,
-0.03181837871670723,
-0.08129642903804779,
0.16044078767299652,
-0.12950143218040466,
-0.15743541717529297,
-0.02895653247833252,
-0.054252661764621735,
0.011500555090606213,
-0.0028822622261941433,
0.00968205090612173,
-0.13997545838356018,
-0.025687094777822495,
-0.03140616416931152,
0.035053517669439316,
-0.07972332090139389,
-0.037129223346710205,
-0.007723215036094189,
-0.011657225899398327,
0.002896452322602272,
-0.06719063967466354,
-0.005954348482191563,
-0.01102711632847786,
-0.062194421887397766,
0.06806965917348862,
-0.04611293599009514,
0.08582277595996857,
0.12535160779953003,
0.030196361243724823,
0.015308801084756851,
-0.0037201258819550276,
0.20731693506240845,
-0.12935908138751984,
0.020665820688009262,
-0.002213437343016267,
-0.02029186487197876,
0.06462452560663223,
0.14545291662216187,
0.04008864983916283,
-0.05997512489557266,
-0.03514552488923073,
-0.0013711709761992097,
-0.040211327373981476,
-0.17386645078659058,
-0.06665735691785812,
-0.03670663386583328,
0.08700157701969147,
0.00486321235075593,
0.08341913670301437,
-0.04949804022908211,
0.001287294551730156,
-0.057635508477687836,
-0.0716281458735466,
0.01630406081676483,
0.0004016579478047788,
-0.03884484991431236,
-0.049279045313596725,
0.03180854022502899,
-0.03948308154940605,
-0.029940245673060417,
0.10109354555606842,
0.010422282852232456,
0.03363290801644325,
0.07050878554582596,
0.05596502497792244,
0.07342087477445602,
0.08702687174081802,
0.021366212517023087,
0.023015538230538368,
0.023532196879386902,
-0.0052065374329686165,
-0.010499907657504082,
-0.06439465284347534,
0.00677466532215476,
0.06744507700204849,
0.10567627847194672,
-0.0048705837689340115,
-0.00708429329097271,
-0.0022213130723685026,
0.08923760801553726,
0.07362185418605804,
0.09901884198188782,
-0.10796215385198593,
-0.018132006749510765,
0.07827094942331314,
0.01826738566160202,
-0.058639056980609894,
0.016516853123903275,
0.04882680997252464,
-0.08945851773023605,
0.13430175185203552,
0.0495910607278347,
0.04617363587021828,
-0.053130749613046646,
0.005887951236218214,
0.05587378516793251,
0.025288164615631104,
-0.018550649285316467,
0.05577496066689491,
-0.2021554708480835,
0.2302675098180771,
0.02566869556903839,
0.01859552040696144,
-0.0027267986442893744,
-0.02674819901585579,
0.03113345056772232,
0.06090528145432472,
0.1897972822189331,
0.07070941478013992,
-0.1674462854862213,
-0.14787542819976807,
-0.0281619094312191,
-0.014360896311700344,
0.1318446695804596,
-0.06739935278892517,
0.07283615320920944,
0.015117315575480461,
-0.035788748413324356,
-0.02816806361079216,
0.0669575110077858,
-0.09640850126743317,
-0.06071501225233078,
0.09057632833719254,
-0.09858189523220062,
-0.04316191002726555,
-0.030712056905031204,
-0.06923512369394302,
-0.19755369424819946,
0.07361172884702682,
-0.10628503561019897,
-0.03091980516910553,
-0.0719819888472557,
-0.008143225684762001,
0.08276895433664322,
-0.11739940196275711,
-0.05365629866719246,
0.002693794434890151,
0.0012645194074139,
-0.035485509783029556,
-0.05503944307565689,
0.05808974429965019,
-0.056837406009435654,
-0.21013060212135315,
-0.022639764472842216,
0.08295626193284988,
0.09292004257440567,
0.07820422202348709,
-0.03295278549194336,
0.06196783110499382,
-0.006913332734256983,
-0.1153491884469986,
0.17148855328559875,
0.07393276691436768,
-0.03674827888607979,
0.06143329292535782,
-0.03269407898187637,
-0.10456973314285278,
-0.06939401477575302,
-0.06980416178703308,
0.0431709960103035,
0.34489765763282776,
-0.07190120965242386,
0.11982521414756775,
0.12954822182655334,
-0.11031924188137054,
-0.26203081011772156,
-0.10976793617010117,
-0.016390806064009666,
0.02182644233107567,
-0.020326953381299973,
-0.12088313698768616,
-0.026050128042697906,
0.027524882927536964,
-0.009609779343008995,
0.0741945207118988,
-0.22372488677501678,
-0.09528657793998718,
0.1035383865237236,
-0.005693015176802874,
0.04163725674152374,
-0.19483286142349243,
-0.06632793694734573,
-0.036143530160188675,
-0.03092479147017002,
-0.014766593463718891,
-0.020722296088933945,
0.06362678855657578,
-0.021126314997673035,
0.004826138261705637,
-0.008611402474343777,
-0.002820695284754038,
0.18702882528305054,
-0.00003497488432913087,
0.010554478503763676,
-0.09315430372953415,
-0.1410699337720871,
0.02657436951994896,
-0.010106371715664864,
0.013132374733686447,
-0.07798021286725998,
-0.027694668620824814,
-0.08809658139944077,
0.01761515811085701,
-0.11824743449687958,
0.04062646999955177,
-0.07242946326732635,
-0.015021732077002525,
-0.08687534183263779,
0.09169843047857285,
0.052767183631658554,
0.00012834214430768043,
0.07875827699899673,
-0.08331190794706345,
0.15347115695476532,
0.08050912618637085,
0.14333626627922058,
0.06730449944734573,
0.01876128651201725,
-0.02812899835407734,
-0.03389656916260719,
0.012481288984417915,
-0.13005542755126953,
-0.0027373291086405516,
0.11170434951782227,
0.036101218312978745,
0.10352562367916107,
0.03024829551577568,
-0.13613294064998627,
-0.0018554206471890211,
0.11322693526744843,
-0.12682272493839264,
-0.22537146508693695,
-0.018052740022540092,
-0.06340964883565903,
-0.035909395664930344,
-0.028607239946722984,
0.09584111720323563,
-0.05078157037496567,
-0.01807582750916481,
-0.013573757372796535,
0.09696649014949799,
-0.05819729343056679,
0.10875952243804932,
0.0746796578168869,
0.01930883713066578,
-0.07383084297180176,
0.05548292398452759,
0.06075175106525421,
-0.003609426785260439,
0.01577189937233925,
0.12958404421806335,
-0.048123687505722046,
-0.08505075424909592,
-0.01198491733521223,
0.17106935381889343,
0.009762466885149479,
-0.02481791004538536,
0.013215097598731518,
-0.10767262428998947,
0.05112915858626366,
0.18716508150100708,
0.01909591816365719,
0.017649004235863686,
0.062387678772211075,
0.029207868501544,
0.03505407273769379,
0.10413768887519836,
0.0603472962975502,
-0.005982525181025267,
-0.059489112347364426,
0.08144532889127731,
-0.025567494332790375,
0.11027833819389343,
-0.03000183030962944,
0.0023995283991098404,
-0.16832335293293,
-0.0013498967746272683,
-0.07118820399045944,
0.01896621286869049,
-0.1010374203324318,
-0.008340392261743546,
0.0020283651538193226,
-0.05902359262108803,
-0.05860783904790878,
-0.06696807593107224,
-0.08432906866073608,
-0.007081915158778429,
0.006394961383193731,
0.09814736247062683,
-0.08101621270179749,
-0.04803662747144699,
0.054105810821056366,
-0.056637946516275406,
0.06282270699739456,
0.05012732371687889,
0.029177697375416756,
0.0710371881723404,
-0.1522338092327118,
-0.007934759370982647,
-0.017138948664069176,
0.015905214473605156,
0.00883836206048727,
-0.10308893024921417,
-0.04545652121305466,
-0.06956637650728226,
-0.021230150014162064,
0.04228341579437256,
-0.021602123975753784,
-0.035835109651088715,
0.12078194320201874,
-0.011559838429093361,
-0.05557490885257721,
-0.04431810602545738,
0.05746304616332054,
0.058577924966812134,
0.026027560234069824,
0.04187772795557976,
-0.08616254478693008,
0.06134485453367233,
-0.15181942284107208,
0.015744339674711227,
-0.003130475291982293,
-0.10694243013858795,
-0.0025743176229298115,
-0.016610080376267433,
0.0647403746843338,
-0.03892260789871216,
0.1137935072183609,
0.026273110881447792,
-0.0877765640616417,
0.00877421349287033,
-0.05010829120874405,
-0.07107362151145935,
0.04318860545754433,
0.050440315157175064,
0.01973019354045391,
-0.03518076241016388,
-0.10627954453229904,
0.03425007313489914,
-0.05082090571522713,
-0.04667248949408531,
0.12540006637573242,
0.1053176298737526,
0.13545885682106018,
0.051762621849775314,
0.005052271299064159,
-0.13766637444496155,
0.007292687427252531,
0.033211205154657364,
-0.10167059302330017,
0.015597116202116013,
-0.042058106511831284,
0.11469151079654694,
0.18347609043121338,
-0.1732904613018036,
0.06207120046019554,
-0.1081095039844513,
-0.058607153594493866,
-0.11883237957954407,
-0.17775610089302063,
-0.05299877002835274,
-0.04815487563610077,
0.03639061376452446,
-0.09462054818868637,
0.059544455260038376,
0.025817865505814552,
0.037116020917892456,
0.011628704145550728,
0.03268609195947647,
-0.05008386820554733,
-0.030718602240085602,
0.07450734823942184,
0.013257495127618313,
-0.007398234214633703,
-0.11004552990198135,
0.03928297013044357,
0.0311305932700634,
-0.04463985934853554,
-0.013775854371488094,
0.02610994502902031,
-0.05827067047357559,
0.04164590314030647,
-0.05381637066602707,
-0.10330497473478317,
-0.000683721387758851,
0.028166981413960457,
0.04029572382569313,
0.06687669456005096,
0.02705397643148899,
0.013493422418832779,
0.017240140587091446,
0.07058872282505035,
-0.04575304314494133,
-0.03739151731133461,
-0.08804923295974731,
0.152139812707901,
-0.07698667794466019,
0.03702288866043091,
-0.010498768649995327,
-0.06427572667598724,
0.009146973490715027,
0.21092693507671356,
0.25571930408477783,
-0.04137275367975235,
0.04821158945560455,
0.00046284630661830306,
0.03257155790925026,
0.033367834985256195,
-0.030000045895576477,
0.07124129682779312,
0.20066264271736145,
-0.10062981396913528,
0.034244876354932785,
-0.056278713047504425,
0.012635083869099617,
-0.009474669583141804,
0.0607660710811615,
0.05046391114592552,
0.002521494636312127,
-0.07181771844625473,
0.08119311183691025,
-0.16984109580516815,
-0.14513389766216278,
0.011214831843972206,
-0.16709502041339874,
-0.06396116316318512,
-0.02925415150821209,
0.027975553646683693,
0.10379719734191895,
0.07910902798175812,
-0.015714790672063828,
-0.054417312145233154,
0.029983021318912506,
0.03379787877202034,
-0.08135362714529037,
0.0035023451782763004,
0.050208255648612976,
-0.0870361402630806,
0.13382230699062347,
-0.02779814600944519,
0.024730367586016655,
0.10745421797037125,
-0.004494089633226395,
-0.04125331714749336,
0.021361704915761948,
0.06633281707763672,
-0.04822308197617531,
-0.03781181946396828,
0.11624699085950851,
-0.004817835055291653,
0.006037900224328041,
0.10076102614402771,
-0.033103495836257935,
0.07730458676815033,
0.10274290293455124,
-0.05452783778309822,
-0.016683200374245644,
0.1431419551372528,
-0.08622004836797714,
0.16135741770267487,
0.15621282160282135,
-0.013829940930008888,
-0.023927142843604088,
-0.018519332632422447,
0.024379288777709007,
-0.0248172078281641,
0.06319428235292435,
-0.0037873259279876947,
-0.10930982977151871,
-0.006595865823328495,
-0.04570317268371582,
0.07611998170614243,
-0.11767564713954926,
-0.02467692643404007,
-0.012481113895773888,
0.002837158739566803,
-0.04735489562153816,
0.10568336397409439,
0.1106230691075325,
0.012091799639165401,
-0.050874169915914536,
-0.11238723993301392,
0.022017592564225197,
0.13596224784851074,
-0.07341592758893967,
-0.031722888350486755
] |
null | null | transformers |
# xlm-roberta-large-finetuned-conll02-dutch
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
The XLM-RoBERTa model was proposed in [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/abs/1911.02116) by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is [XLM-RoBERTa-large](https://huggingface.co/xlm-roberta-large) fine-tuned with the [CoNLL-2002](https://huggingface.co/datasets/conll2002) dataset in Dutch.
- **Developed by:** See [associated paper](https://arxiv.org/abs/1911.02116)
- **Model type:** Multi-lingual language model
- **Language(s) (NLP):** XLM-RoBERTa is a multilingual model trained on 100 different languages; see [GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/xlmr) for full list; model is fine-tuned on a dataset in Dutch
- **License:** More information needed
- **Related Models:** [RoBERTa](https://huggingface.co/roberta-base), [XLM](https://huggingface.co/docs/transformers/model_doc/xlm)
- **Parent Model:** [XLM-RoBERTa-large](https://huggingface.co/xlm-roberta-large)
- **Resources for more information:**
-[GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/xlmr)
-[Associated Paper](https://arxiv.org/abs/1911.02116)
-[CoNLL-2002 data card](https://huggingface.co/datasets/conll2002)
# Uses
## Direct Use
The model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.
## Downstream Use
Potential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face [token classification docs](https://huggingface.co/tasks/token-classification).
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
**CONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the following resources for training data and training procedure details:
- [XLM-RoBERTa-large model card](https://huggingface.co/xlm-roberta-large)
- [CoNLL-2002 data card](https://huggingface.co/datasets/conll2002)
- [Associated paper](https://arxiv.org/pdf/1911.02116.pdf)
# Evaluation
See the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for evaluation details.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** 500 32GB Nvidia V100 GPUs (from the [associated paper](https://arxiv.org/pdf/1911.02116.pdf))
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
See the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for further details.
# Citation
**BibTeX:**
```bibtex
@article{conneau2019unsupervised,
title={Unsupervised Cross-lingual Representation Learning at Scale},
author={Conneau, Alexis and Khandelwal, Kartikay and Goyal, Naman and Chaudhary, Vishrav and Wenzek, Guillaume and Guzm{\'a}n, Francisco and Grave, Edouard and Ott, Myle and Zettlemoyer, Luke and Stoyanov, Veselin},
journal={arXiv preprint arXiv:1911.02116},
year={2019}
}
```
**APA:**
- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly within a pipeline for NER.
<details>
<summary> Click to expand </summary>
```python
>>> from transformers import AutoTokenizer, AutoModelForTokenClassification
>>> from transformers import pipeline
>>> tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large-finetuned-conll02-dutch")
>>> model = AutoModelForTokenClassification.from_pretrained("xlm-roberta-large-finetuned-conll02-dutch")
>>> classifier = pipeline("ner", model=model, tokenizer=tokenizer)
>>> classifier("Mijn naam is Emma en ik woon in Londen.")
[{'end': 17,
'entity': 'B-PER',
'index': 4,
'score': 0.9999807,
'start': 13,
'word': '▁Emma'},
{'end': 36,
'entity': 'B-LOC',
'index': 9,
'score': 0.9999871,
'start': 32,
'word': '▁Lond'}]
```
</details>
| {"language": ["multilingual", "af", "am", "ar", "as", "az", "be", "bg", "bn", "br", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fr", "fy", "ga", "gd", "gl", "gu", "ha", "he", "hi", "hr", "hu", "hy", "id", "is", "it", "ja", "jv", "ka", "kk", "km", "kn", "ko", "ku", "ky", "la", "lo", "lt", "lv", "mg", "mk", "ml", "mn", "mr", "ms", "my", "ne", "nl", false, "om", "or", "pa", "pl", "ps", "pt", "ro", "ru", "sa", "sd", "si", "sk", "sl", "so", "sq", "sr", "su", "sv", "sw", "ta", "te", "th", "tl", "tr", "ug", "uk", "ur", "uz", "vi", "xh", "yi", "zh"]} | fill-mask | FacebookAI/xlm-roberta-large-finetuned-conll02-dutch | [
"transformers",
"pytorch",
"rust",
"xlm-roberta",
"fill-mask",
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh",
"arxiv:1911.02116",
"arxiv:1910.09700",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1911.02116",
"1910.09700"
] | [
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh"
] | TAGS
#transformers #pytorch #rust #xlm-roberta #fill-mask #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us
|
# xlm-roberta-large-finetuned-conll02-dutch
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
# Model Details
## Model Description
The XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the CoNLL-2002 dataset in Dutch.
- Developed by: See associated paper
- Model type: Multi-lingual language model
- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in Dutch
- License: More information needed
- Related Models: RoBERTa, XLM
- Parent Model: XLM-RoBERTa-large
- Resources for more information:
-GitHub Repo
-Associated Paper
-CoNLL-2002 data card
# Uses
## Direct Use
The model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.
## Downstream Use
Potential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
CONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the following resources for training data and training procedure details:
- XLM-RoBERTa-large model card
- CoNLL-2002 data card
- Associated paper
# Evaluation
See the associated paper for evaluation details.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)
- Hours used: More information needed
- Cloud Provider: More information needed
- Compute Region: More information needed
- Carbon Emitted: More information needed
# Technical Specifications
See the associated paper for further details.
BibTeX:
APA:
- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly within a pipeline for NER.
<details>
<summary> Click to expand </summary>
</details>
| [
"# xlm-roberta-large-finetuned-conll02-dutch",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the CoNLL-2002 dataset in Dutch.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in Dutch\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper\n -CoNLL-2002 data card",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.",
"## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2002 data card\n- Associated paper",
"# Evaluation\n\nSee the associated paper for evaluation details.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. You can use this model directly within a pipeline for NER.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
"TAGS\n#transformers #pytorch #rust #xlm-roberta #fill-mask #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us \n",
"# xlm-roberta-large-finetuned-conll02-dutch",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the CoNLL-2002 dataset in Dutch.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in Dutch\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper\n -CoNLL-2002 data card",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.",
"## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2002 data card\n- Associated paper",
"# Evaluation\n\nSee the associated paper for evaluation details.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. You can use this model directly within a pipeline for NER.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
258,
20,
51,
3,
277,
3,
41,
63,
28,
89,
34,
37,
11,
79,
99,
18,
55
] | [
"passage: TAGS\n#transformers #pytorch #rust #xlm-roberta #fill-mask #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us \n# xlm-roberta-large-finetuned-conll02-dutch# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model# Model Details",
"passage: ## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the CoNLL-2002 dataset in Dutch.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in Dutch\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper\n -CoNLL-2002 data card# Uses## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2002 data card\n- Associated paper# Evaluation\n\nSee the associated paper for evaluation details.# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed# Technical Specifications\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.# Model Card Authors\n\nThis model card was written by the team at Hugging Face."
] | [
-0.06532756239175797,
0.06782819330692291,
-0.005410824902355671,
0.021898476406931877,
0.03461996465921402,
0.00316016748547554,
0.08653182536363602,
0.07008311152458191,
0.08473453670740128,
0.0651019960641861,
0.05395270138978958,
0.04825180023908615,
0.09973741322755814,
0.13500414788722992,
0.010188495740294456,
-0.25135743618011475,
0.05338813364505768,
-0.05769117921590805,
0.023127997294068336,
0.07383430749177933,
0.09796392917633057,
-0.05317306891083717,
0.0883038118481636,
0.005558161996304989,
-0.014620911329984665,
-0.0015926910564303398,
-0.06002747267484665,
-0.03360363095998764,
0.06674152612686157,
0.06338579207658768,
0.04960668832063675,
0.05102263018488884,
0.09579940140247345,
-0.22695036232471466,
0.01520546805113554,
0.009383998811244965,
-0.03292504698038101,
0.026128068566322327,
0.07301200926303864,
-0.013166539371013641,
0.22593408823013306,
-0.09906736761331558,
0.03382854908704758,
0.028631849214434624,
-0.086420938372612,
-0.11328825354576111,
-0.08345721662044525,
0.10492943972349167,
0.06946749240159988,
0.04114197939634323,
-0.027357101440429688,
0.11989814788103104,
-0.03352801874279976,
0.03304868936538696,
0.15792393684387207,
-0.14495882391929626,
-0.03960031270980835,
0.09958279132843018,
0.061545923352241516,
0.012659512460231781,
-0.09246836602687836,
0.03827187046408653,
0.03500494360923767,
0.019777748733758926,
0.015355388633906841,
-0.05791275575757027,
0.08695197850465775,
-0.020662473514676094,
-0.12934759259223938,
-0.0027247483376413584,
0.12083150446414948,
0.038031622767448425,
-0.05748729407787323,
-0.10419776290655136,
-0.0035673240199685097,
0.05793797969818115,
-0.03167935088276863,
-0.0794096514582634,
0.028144996613264084,
-0.03736148774623871,
0.08159201592206955,
-0.03340352326631546,
-0.06395716220140457,
0.00756927952170372,
-0.007626870647072792,
0.1136777400970459,
0.034920159727334976,
0.014990909025073051,
0.030872024595737457,
0.04823445528745651,
-0.03394876793026924,
-0.09056021273136139,
-0.06837430596351624,
-0.07691249251365662,
-0.07226426899433136,
-0.030127737671136856,
0.07290420681238174,
0.05539558082818985,
0.03878654167056084,
0.10258515179157257,
-0.06273794174194336,
0.051741793751716614,
0.05399998277425766,
0.018193287774920464,
0.06288721412420273,
0.053729716688394547,
-0.04627146199345589,
-0.09312795102596283,
-0.010209192521870136,
0.026867274194955826,
-0.0016968976706266403,
-0.00968865305185318,
-0.055253490805625916,
-0.00931893102824688,
0.01324261724948883,
0.06732641905546188,
0.03639734536409378,
0.014033736661076546,
-0.033065613359212875,
-0.00896475464105606,
0.1409817487001419,
-0.09067238867282867,
0.01283787190914154,
0.01236366294324398,
-0.020389173179864883,
0.016082577407360077,
-0.009204812347888947,
0.018724501132965088,
-0.032076504081487656,
0.05645320191979408,
-0.029946355149149895,
-0.010467018000781536,
-0.05528801679611206,
-0.10228881239891052,
0.04831921309232712,
-0.010994724929332733,
0.007878024131059647,
-0.11142866313457489,
-0.1611606776714325,
-0.07691825926303864,
0.03265312686562538,
-0.07478410750627518,
-0.017217691987752914,
-0.025456106290221214,
-0.0677834153175354,
-0.028483854606747627,
0.009512830525636673,
0.050331149250268936,
-0.03283263370394707,
-0.0033369287848472595,
-0.07504958659410477,
0.04562300071120262,
0.04769813269376755,
-0.0015333406627178192,
-0.0639612078666687,
0.048495661467313766,
-0.09685046970844269,
0.08028087019920349,
-0.11607824265956879,
-0.019136033952236176,
-0.11606863141059875,
-0.08900647610425949,
-0.019201334565877914,
0.04868776351213455,
0.02040098048746586,
0.1682959794998169,
-0.16320233047008514,
-0.02616468071937561,
0.14780977368354797,
-0.10220866650342941,
-0.06474757194519043,
0.09055494517087936,
-0.03048284538090229,
0.11121349036693573,
0.07306493818759918,
0.08882907032966614,
0.10373025387525558,
-0.11627741158008575,
-0.05285409092903137,
0.039616428315639496,
0.03146642819046974,
0.11333281546831131,
0.06782284379005432,
0.003450559452176094,
0.015051941387355328,
0.021448655053973198,
-0.09436534345149994,
-0.02416911907494068,
-0.03394041210412979,
-0.07465717196464539,
0.042881984263658524,
-0.02464209496974945,
0.04933646321296692,
0.029677947983145714,
-0.046417754143476486,
-0.03129374608397484,
-0.08212968707084656,
-0.01945646107196808,
0.08505403995513916,
-0.007969925180077553,
-0.02023913897573948,
-0.04394058510661125,
0.04682832956314087,
0.011045785620808601,
-0.0012629162520170212,
-0.11081261932849884,
-0.052463870495557785,
0.014313483610749245,
-0.10074173659086227,
0.05709404498338699,
0.13208262622356415,
0.04221394285559654,
0.04513688012957573,
-0.05400579050183296,
-0.023814093321561813,
-0.007853880524635315,
0.011576727032661438,
-0.04585181176662445,
-0.19628086686134338,
0.0003122005145996809,
-0.06289476901292801,
0.07637903839349747,
-0.21390753984451294,
0.012795776128768921,
0.05443304404616356,
0.0860486701130867,
-0.007921525277197361,
-0.013934615068137646,
0.027864759787917137,
0.02515057660639286,
0.004863371606916189,
-0.04013742506504059,
0.023349864408373833,
-0.02501535229384899,
-0.06939483433961868,
0.06988915055990219,
-0.09383685141801834,
0.010886460542678833,
0.052213940769433975,
0.02559630572795868,
-0.11132901161909103,
-0.013932764530181885,
-0.029219724237918854,
-0.024849537760019302,
-0.04826711118221283,
-0.02562594786286354,
0.1364501267671585,
0.02081926167011261,
0.01692317984998226,
-0.08975424617528915,
-0.05681633949279785,
0.005882279947400093,
-0.04177272319793701,
-0.039754096418619156,
0.12740641832351685,
0.04851863160729408,
-0.19035057723522186,
0.09138994663953781,
0.05637596175074577,
0.038421936333179474,
0.15056952834129333,
0.0022595208138227463,
-0.041726261377334595,
-0.037408579140901566,
0.015572614036500454,
-0.016670580953359604,
0.11470550298690796,
-0.041388243436813354,
-0.0014031995087862015,
0.04086606204509735,
-0.00011619739234447479,
0.01610192470252514,
-0.08018536120653152,
-0.017218388617038727,
-0.00518477987498045,
-0.03303707763552666,
-0.01763123646378517,
0.04000202566385269,
-0.030912987887859344,
0.08833016455173492,
-0.003767559304833412,
-0.03471865504980087,
-0.02683044970035553,
-0.029773643240332603,
-0.11600609123706818,
0.1925758272409439,
-0.07490277290344238,
-0.19509196281433105,
-0.0407206192612648,
0.009182529523968697,
-0.01311531476676464,
-0.02698724903166294,
0.0010808806400746107,
-0.0783848837018013,
-0.07455611228942871,
-0.054595962166786194,
0.03769391030073166,
-0.047799065709114075,
-0.06784465909004211,
-0.043910473585128784,
0.02775627002120018,
-0.0406564399600029,
-0.09798602759838104,
-0.02646739035844803,
-0.007225605193525553,
-0.03940490633249283,
0.04885977879166603,
-0.026980217546224594,
0.09926728159189224,
0.0886213555932045,
0.0016666725277900696,
-0.02030765824019909,
-0.021824851632118225,
0.2058257758617401,
-0.09983792155981064,
0.09648577868938446,
0.09573441743850708,
-0.013289816677570343,
0.07161139696836472,
0.14869706332683563,
0.03927965834736824,
-0.049803830683231354,
-0.021771550178527832,
0.0016290172934532166,
-0.04206588864326477,
-0.22531238198280334,
-0.06558555364608765,
-0.03383490815758705,
-0.02951391227543354,
-0.0016687694005668163,
0.04204823821783066,
0.03478477895259857,
0.06554524600505829,
-0.07692190259695053,
-0.027049141004681587,
0.047827549278736115,
0.06903088837862015,
0.03744329512119293,
-0.00961768813431263,
0.06516265869140625,
-0.044045962393283844,
-0.013740948401391506,
0.07943573594093323,
0.006928813643753529,
0.17828278243541718,
0.025901243090629578,
0.05715208500623703,
0.09084773063659668,
0.037247754633426666,
0.016074035316705704,
0.04671220853924751,
0.004315613768994808,
0.002681095153093338,
-0.027913646772503853,
-0.06287030875682831,
0.018282748758792877,
0.10523483902215958,
0.017527878284454346,
-0.01848623901605606,
0.01244693249464035,
0.02301456779241562,
0.049897074699401855,
0.01860627718269825,
0.03724132478237152,
-0.11565771698951721,
-0.03045985847711563,
0.07156837731599808,
-0.003980213310569525,
-0.06609586626291275,
-0.009104525670409203,
0.05649295821785927,
-0.15986567735671997,
0.11527234315872192,
-0.008703790605068207,
0.07396912574768066,
-0.07943487167358398,
0.010097429156303406,
-0.032127492129802704,
0.06932032853364944,
-0.0155148571357131,
0.10285530984401703,
-0.1828702688217163,
0.21388335525989532,
0.0034504469949752092,
0.060282208025455475,
-0.08276142179965973,
0.009013796225190163,
0.04477483406662941,
0.06205178052186966,
0.18419024348258972,
0.048242777585983276,
-0.16175702214241028,
-0.07163862138986588,
-0.02622445859014988,
0.023614730685949326,
0.05336635187268257,
-0.02849964052438736,
0.055150460451841354,
0.025838764384388924,
-0.02434830740094185,
-0.03034888207912445,
-0.023532025516033173,
-0.17227831482887268,
-0.1061636209487915,
0.07826483994722366,
-0.12018627673387527,
-0.032828815281391144,
-0.05553051829338074,
-0.06613259017467499,
-0.09052236378192902,
0.14535382390022278,
-0.09842543303966522,
-0.08209110796451569,
-0.09796294569969177,
0.008801707997918129,
0.10673317313194275,
-0.09968148171901703,
-0.013874301686882973,
0.005527653265744448,
0.08332720398902893,
-0.051079459488391876,
-0.018701836466789246,
0.031745683401823044,
-0.10395021736621857,
-0.1619303822517395,
-0.022718098014593124,
0.07775691151618958,
0.11151964962482452,
0.07070140540599823,
0.03091578744351864,
0.022782083600759506,
-0.004139842465519905,
-0.15252074599266052,
0.046881552785634995,
0.09373784810304642,
0.0006770063191652298,
0.029606368392705917,
-0.05983300879597664,
-0.07631285488605499,
-0.0704992413520813,
-0.06982454657554626,
0.05324859172105789,
0.2229989767074585,
-0.046364061534404755,
0.12315577268600464,
0.13982968032360077,
-0.11535803228616714,
-0.22336210310459137,
0.009295161813497543,
0.0530209019780159,
0.025061611086130142,
0.03175995126366615,
-0.14851197600364685,
0.031427912414073944,
0.01682916469871998,
-0.004548952449113131,
0.00854506716132164,
-0.1658407300710678,
-0.0985008180141449,
0.10993989557027817,
0.03589057922363281,
0.0203518308699131,
-0.10175745189189911,
-0.04415038228034973,
-0.039626624435186386,
-0.08813335746526718,
0.026605408638715744,
-0.04220801591873169,
0.012624633498489857,
0.012227446772158146,
0.03510868176817894,
0.028347264975309372,
-0.01958761177957058,
0.1729225218296051,
0.022670546546578407,
0.04349870979785919,
-0.06074237823486328,
-0.07172319293022156,
0.05011168122291565,
-0.02504323050379753,
0.1087319403886795,
0.0039212871342897415,
0.01018685195595026,
-0.06674814224243164,
-0.04542510211467743,
-0.0894637405872345,
0.09658364206552505,
-0.07959512621164322,
-0.07264766842126846,
-0.07239025086164474,
0.09922697395086288,
0.06983118504285812,
-0.018482211977243423,
-0.004936084151268005,
-0.07148255407810211,
0.01738714426755905,
0.04296685382723808,
0.17642587423324585,
0.0743204802274704,
-0.037185002118349075,
0.007495904341340065,
-0.028079580515623093,
0.01450978685170412,
-0.09793736040592194,
-0.020696941763162613,
0.09166555106639862,
0.019819289445877075,
0.08217227458953857,
-0.010733075439929962,
-0.1564711332321167,
-0.02083267830312252,
0.047529157251119614,
-0.03826532140374184,
-0.17142638564109802,
-0.031120745465159416,
0.03541552647948265,
-0.0628601461648941,
-0.038269005715847015,
0.08561547845602036,
-0.06343966722488403,
-0.01772971637547016,
-0.02014836110174656,
0.05830974876880646,
0.001104479655623436,
0.0978626012802124,
0.08451437950134277,
0.057700976729393005,
-0.07097350805997849,
0.017631370574235916,
0.03138916194438934,
-0.008202469907701015,
0.03267548978328705,
0.05598466098308563,
-0.0759182795882225,
-0.06404173374176025,
0.0268963985145092,
0.14583638310432434,
-0.028292333707213402,
-0.07585590332746506,
0.003601089119911194,
-0.11994858831167221,
0.012987353838980198,
0.12472639977931976,
0.03509487211704254,
-0.03321384638547897,
0.04278668761253357,
0.0047218757681548595,
-0.0141871627420187,
0.09286513179540634,
0.06406942009925842,
0.015676861628890038,
-0.05158913508057594,
0.016748987138271332,
-0.001976491417735815,
0.06906203180551529,
-0.020253725349903107,
0.005949995014816523,
-0.12018010765314102,
-0.012849896214902401,
-0.13104021549224854,
0.014241689816117287,
-0.12185826152563095,
0.006644683890044689,
-0.013745175674557686,
-0.06274370849132538,
-0.014242909848690033,
0.004375158809125423,
-0.06424149870872498,
0.00470616715028882,
-0.016139915212988853,
0.09342369437217712,
-0.08257108926773071,
-0.04131030663847923,
0.06838548183441162,
-0.07288917154073715,
0.03357129544019699,
-0.00809774175286293,
0.0004294365644454956,
0.04584813117980957,
-0.13899201154708862,
0.058628734201192856,
0.01117481105029583,
0.05112737417221069,
0.014955388382077217,
-0.13948026299476624,
-0.02202143520116806,
-0.02647058665752411,
-0.008092212490737438,
0.0121260741725564,
-0.008711080998182297,
-0.03321506083011627,
0.07343722134828568,
-0.029467139393091202,
-0.09763874113559723,
-0.01206572912633419,
0.09268546104431152,
0.057153813540935516,
-0.010159260593354702,
0.07857270538806915,
-0.037548668682575226,
0.06483668833971024,
-0.12668368220329285,
-0.013105625286698341,
0.003213471733033657,
-0.026291165500879288,
0.02999088540673256,
-0.04857458919286728,
0.06232520937919617,
-0.022885678336024284,
0.17755670845508575,
0.03158782795071602,
0.004379105754196644,
0.02648533135652542,
-0.003808664157986641,
-0.004084104672074318,
0.022506818175315857,
-0.006652502343058586,
0.011833641678094864,
0.012747308239340782,
-0.05391901731491089,
-0.000714614987373352,
-0.03766549006104469,
-0.08865506947040558,
0.14691630005836487,
0.09800434112548828,
0.09083335846662521,
0.034845251590013504,
0.03607246279716492,
-0.09267348051071167,
-0.015031102113425732,
0.00637234840542078,
-0.002176925539970398,
-0.0037614088505506516,
-0.04655319079756737,
0.09642420709133148,
0.1490239053964615,
-0.17865309119224548,
0.09007317572832108,
-0.018853962421417236,
-0.08124490082263947,
-0.11792585253715515,
-0.20094279944896698,
-0.06293880939483643,
0.011670074425637722,
0.023430433124303818,
-0.10046955943107605,
0.011938828974962234,
0.03767167404294014,
0.03358527272939682,
0.0032946746796369553,
0.06738487631082535,
-0.04641095548868179,
-0.05474340170621872,
0.05177384614944458,
0.024389363825321198,
0.018634792417287827,
-0.03781915083527565,
0.04182903841137886,
-0.006727265194058418,
0.006727635860443115,
0.012151390314102173,
0.0234939344227314,
-0.018849492073059082,
0.0028405608609318733,
-0.019935503602027893,
-0.07395303249359131,
-0.009830574505031109,
-0.004531684797257185,
0.04689325764775276,
0.1262526512145996,
0.039765194058418274,
-0.028586892411112785,
0.008118468336760998,
0.09481769800186157,
-0.010009707883000374,
-0.10242306441068649,
-0.09779532253742218,
0.12627464532852173,
-0.03930748254060745,
0.028575802221894264,
0.052356064319610596,
-0.055711641907691956,
0.06916049122810364,
0.15244701504707336,
0.21218329668045044,
0.0001443594810552895,
0.015256593003869057,
0.000008577480912208557,
0.003250167239457369,
-0.00015825421724002808,
0.038139164447784424,
0.01866510882973671,
0.20946723222732544,
-0.09480603039264679,
0.06535033136606216,
-0.0311660785228014,
-0.03200068324804306,
-0.050700247287750244,
0.08601009845733643,
0.04719031602144241,
-0.01850110851228237,
-0.05277172476053238,
0.11079223453998566,
-0.08295043557882309,
-0.1972866654396057,
0.02439102903008461,
-0.07567480951547623,
-0.08805910497903824,
-0.025166645646095276,
-0.04605752229690552,
0.06199542433023453,
0.048357732594013214,
-0.0033835640642791986,
-0.043351177126169205,
0.09967753291130066,
0.03480757027864456,
-0.07614598423242569,
-0.010391030460596085,
0.09027610719203949,
0.017213627696037292,
0.14149239659309387,
-0.005131877958774567,
0.13405364751815796,
0.09584882110357285,
-0.025784701108932495,
-0.06715327501296997,
0.039472244679927826,
0.07224049419164658,
-0.021002713590860367,
0.024165991693735123,
0.10532713681459427,
-0.013462923467159271,
0.01973199099302292,
0.0981903225183487,
-0.04369372874498367,
0.046832941472530365,
0.036807768046855927,
-0.06753275543451309,
-0.0551401823759079,
0.16444361209869385,
-0.09810309112071991,
0.13994640111923218,
0.13336694240570068,
-0.01953229121863842,
-0.009376010857522488,
-0.040473274886608124,
0.062398750334978104,
-0.002645574975758791,
0.07516305893659592,
0.023502998054027557,
-0.09903685748577118,
-0.0036436854861676693,
0.007106642704457045,
0.09469299018383026,
-0.14771845936775208,
-0.06290074437856674,
0.00843525119125843,
-0.008262520655989647,
-0.032471489161252975,
0.08682344853878021,
0.03240424394607544,
0.002899169921875,
-0.03042079135775566,
-0.07935631275177002,
-0.0033241829369217157,
0.09366108477115631,
-0.06342895328998566,
-0.014402798376977444
] |
null | null | transformers |
# xlm-roberta-large-finetuned-conll02-spanish
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
The XLM-RoBERTa model was proposed in [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/abs/1911.02116) by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is [XLM-RoBERTa-large](https://huggingface.co/xlm-roberta-large) fine-tuned with the [CoNLL-2002](https://huggingface.co/datasets/conll2002) dataset in Spanish.
- **Developed by:** See [associated paper](https://arxiv.org/abs/1911.02116)
- **Model type:** Multi-lingual language model
- **Language(s) (NLP):** XLM-RoBERTa is a multilingual model trained on 100 different languages; see [GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/xlmr) for full list; model is fine-tuned on a dataset in Spanish.
- **License:** More information needed
- **Related Models:** [RoBERTa](https://huggingface.co/roberta-base), [XLM](https://huggingface.co/docs/transformers/model_doc/xlm)
- **Parent Model:** [XLM-RoBERTa-large](https://huggingface.co/xlm-roberta-large)
- **Resources for more information:**
-[GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/xlmr)
-[Associated Paper](https://arxiv.org/abs/1911.02116)
-[CoNLL-2002 data card](https://huggingface.co/datasets/conll2002)
# Uses
## Direct Use
The model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.
## Downstream Use
Potential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face [token classification docs](https://huggingface.co/tasks/token-classification).
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
**CONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the following resources for training data and training procedure details:
- [XLM-RoBERTa-large model card](https://huggingface.co/xlm-roberta-large)
- [CoNLL-2002 data card](https://huggingface.co/datasets/conll2002)
- [Associated paper](https://arxiv.org/pdf/1911.02116.pdf)
# Evaluation
See the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for evaluation details.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** 500 32GB Nvidia V100 GPUs (from the [associated paper](https://arxiv.org/pdf/1911.02116.pdf))
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
See the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for further details.
# Citation
**BibTeX:**
```bibtex
@article{conneau2019unsupervised,
title={Unsupervised Cross-lingual Representation Learning at Scale},
author={Conneau, Alexis and Khandelwal, Kartikay and Goyal, Naman and Chaudhary, Vishrav and Wenzek, Guillaume and Guzm{\'a}n, Francisco and Grave, Edouard and Ott, Myle and Zettlemoyer, Luke and Stoyanov, Veselin},
journal={arXiv preprint arXiv:1911.02116},
year={2019}
}
```
**APA:**
- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly within a pipeline for NER.
<details>
<summary> Click to expand </summary>
```python
>>> from transformers import AutoTokenizer, AutoModelForTokenClassification
>>> from transformers import pipeline
>>> tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large-finetuned-conll02-spanish")
>>> model = AutoModelForTokenClassification.from_pretrained("xlm-roberta-large-finetuned-conll02-spanish")
>>> classifier = pipeline("ner", model=model, tokenizer=tokenizer)
>>> classifier("Efectuaba un vuelo entre bombay y nueva york.")
[{'end': 30,
'entity': 'B-LOC',
'index': 7,
'score': 0.95703226,
'start': 25,
'word': '▁bomba'},
{'end': 39,
'entity': 'B-LOC',
'index': 10,
'score': 0.9771854,
'start': 34,
'word': '▁nueva'},
{'end': 43,
'entity': 'I-LOC',
'index': 11,
'score': 0.9914097,
'start': 40,
'word': '▁yor'}]
```
</details>
| {"language": ["multilingual", "af", "am", "ar", "as", "az", "be", "bg", "bn", "br", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fr", "fy", "ga", "gd", "gl", "gu", "ha", "he", "hi", "hr", "hu", "hy", "id", "is", "it", "ja", "jv", "ka", "kk", "km", "kn", "ko", "ku", "ky", "la", "lo", "lt", "lv", "mg", "mk", "ml", "mn", "mr", "ms", "my", "ne", "nl", false, "om", "or", "pa", "pl", "ps", "pt", "ro", "ru", "sa", "sd", "si", "sk", "sl", "so", "sq", "sr", "su", "sv", "sw", "ta", "te", "th", "tl", "tr", "ug", "uk", "ur", "uz", "vi", "xh", "yi", "zh"]} | fill-mask | FacebookAI/xlm-roberta-large-finetuned-conll02-spanish | [
"transformers",
"pytorch",
"rust",
"safetensors",
"xlm-roberta",
"fill-mask",
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh",
"arxiv:1911.02116",
"arxiv:1910.09700",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1911.02116",
"1910.09700"
] | [
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh"
] | TAGS
#transformers #pytorch #rust #safetensors #xlm-roberta #fill-mask #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us
|
# xlm-roberta-large-finetuned-conll02-spanish
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
# Model Details
## Model Description
The XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the CoNLL-2002 dataset in Spanish.
- Developed by: See associated paper
- Model type: Multi-lingual language model
- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in Spanish.
- License: More information needed
- Related Models: RoBERTa, XLM
- Parent Model: XLM-RoBERTa-large
- Resources for more information:
-GitHub Repo
-Associated Paper
-CoNLL-2002 data card
# Uses
## Direct Use
The model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.
## Downstream Use
Potential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
CONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the following resources for training data and training procedure details:
- XLM-RoBERTa-large model card
- CoNLL-2002 data card
- Associated paper
# Evaluation
See the associated paper for evaluation details.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)
- Hours used: More information needed
- Cloud Provider: More information needed
- Compute Region: More information needed
- Carbon Emitted: More information needed
# Technical Specifications
See the associated paper for further details.
BibTeX:
APA:
- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly within a pipeline for NER.
<details>
<summary> Click to expand </summary>
</details>
| [
"# xlm-roberta-large-finetuned-conll02-spanish",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the CoNLL-2002 dataset in Spanish.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in Spanish.\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper\n -CoNLL-2002 data card",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.",
"## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2002 data card\n- Associated paper",
"# Evaluation\n\nSee the associated paper for evaluation details.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. You can use this model directly within a pipeline for NER.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
"TAGS\n#transformers #pytorch #rust #safetensors #xlm-roberta #fill-mask #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us \n",
"# xlm-roberta-large-finetuned-conll02-spanish",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the CoNLL-2002 dataset in Spanish.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in Spanish.\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper\n -CoNLL-2002 data card",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.",
"## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2002 data card\n- Associated paper",
"# Evaluation\n\nSee the associated paper for evaluation details.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. You can use this model directly within a pipeline for NER.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
263,
20,
51,
3,
278,
3,
41,
63,
28,
89,
34,
37,
11,
79,
99,
18,
55
] | [
"passage: TAGS\n#transformers #pytorch #rust #safetensors #xlm-roberta #fill-mask #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us \n# xlm-roberta-large-finetuned-conll02-spanish# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model# Model Details",
"passage: ## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the CoNLL-2002 dataset in Spanish.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in Spanish.\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper\n -CoNLL-2002 data card# Uses## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2002 data card\n- Associated paper# Evaluation\n\nSee the associated paper for evaluation details.# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed# Technical Specifications\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.# Model Card Authors\n\nThis model card was written by the team at Hugging Face."
] | [
-0.07985465228557587,
0.0832822173833847,
-0.00611661933362484,
0.020504092797636986,
0.062224771827459335,
0.0048245955258607864,
0.08543607592582703,
0.07411327213048935,
0.05565732344985008,
0.07394081354141235,
0.046887483447790146,
0.05878135561943054,
0.09096886962652206,
0.12641428411006927,
-0.0022177083883434534,
-0.24027973413467407,
0.04185144975781441,
-0.06348852813243866,
0.016488447785377502,
0.06894576549530029,
0.08733781427145004,
-0.05063293129205704,
0.08496297895908356,
0.00045623723417520523,
-0.01937897689640522,
-0.0014542341232299805,
-0.04206150770187378,
-0.049765653908252716,
0.06621865928173065,
0.07141736149787903,
0.06273138523101807,
0.05291968956589699,
0.09606556594371796,
-0.21764566004276276,
0.01623080112040043,
0.017323050647974014,
-0.03468472510576248,
0.036202676594257355,
0.08637915551662445,
-0.03385186195373535,
0.21384352445602417,
-0.10277622193098068,
0.03669397160410881,
0.040237296372652054,
-0.10167039930820465,
-0.11874018609523773,
-0.08354875445365906,
0.0950583815574646,
0.06884787231683731,
0.0332644023001194,
-0.030241752043366432,
0.09811681509017944,
-0.03422196954488754,
0.01709136739373207,
0.14546601474285126,
-0.1281023770570755,
-0.0422208309173584,
0.09026239067316055,
0.058141209185123444,
0.02561223693192005,
-0.07005351036787033,
0.04514145106077194,
0.05181083455681801,
0.0011480054818093777,
0.001620246097445488,
-0.0489191897213459,
0.08440244942903519,
-0.009898340329527855,
-0.12517504394054413,
-0.0035181380808353424,
0.11579164862632751,
0.029537532478570938,
-0.046159643679857254,
-0.09530527144670486,
-0.017726177349686623,
0.06242423504590988,
-0.023137804120779037,
-0.06954941898584366,
0.028303079307079315,
-0.037693899124860764,
0.09192675352096558,
-0.024962574243545532,
-0.06755666434764862,
-0.005273104645311832,
-0.014945551753044128,
0.11629791557788849,
0.030685849487781525,
0.01049656979739666,
0.021639607846736908,
0.04845067858695984,
-0.03708141669631004,
-0.09435074031352997,
-0.04416739568114281,
-0.06452209502458572,
-0.06489989161491394,
-0.03203911334276199,
0.05980248376727104,
0.027875373139977455,
0.05703914538025856,
0.08060212433338165,
-0.09182010591030121,
0.04810508340597153,
0.06387884169816971,
0.019186779856681824,
0.06780047714710236,
0.05747015029191971,
-0.03556831553578377,
-0.09273135662078857,
-0.008596204221248627,
0.04243045672774315,
0.0003135744482278824,
-0.02001911588013172,
-0.07318641990423203,
-0.01816491037607193,
0.00657222606241703,
0.082593634724617,
0.05430596321821213,
0.007149336859583855,
-0.039736874401569366,
-0.005822727456688881,
0.12931084632873535,
-0.09820209443569183,
0.019446315243840218,
0.030123144388198853,
-0.022545188665390015,
0.010063713416457176,
-0.017252489924430847,
0.013733183033764362,
-0.02280587889254093,
0.05019446834921837,
-0.04074365273118019,
-0.014270612969994545,
-0.05794115737080574,
-0.08832839131355286,
0.047572314739227295,
-0.030642978847026825,
0.016533080488443375,
-0.11652926355600357,
-0.1453254371881485,
-0.09320813417434692,
0.03340941667556763,
-0.08270160108804703,
-0.022510217502713203,
-0.041084811091423035,
-0.04470769315958023,
-0.024684708565473557,
0.006021961569786072,
0.035987600684165955,
-0.03806997090578079,
0.012729723006486893,
-0.05038861930370331,
0.04698874428868294,
0.0443601980805397,
0.0025576921179890633,
-0.05459403246641159,
0.057660605758428574,
-0.09544721990823746,
0.09430153667926788,
-0.09503081440925598,
-0.0000010076910257339478,
-0.11872673034667969,
-0.07264441251754761,
-0.02037709578871727,
0.06304561346769333,
0.01961689442396164,
0.17935773730278015,
-0.1602829396724701,
-0.03856910020112991,
0.14902332425117493,
-0.09249016642570496,
-0.05647663027048111,
0.08522698283195496,
-0.027118105441331863,
0.12751606106758118,
0.08180178701877594,
0.10706348717212677,
0.09612943232059479,
-0.1116616427898407,
-0.03686721622943878,
0.02091258578002453,
0.02484307624399662,
0.1094573438167572,
0.0774744302034378,
-0.022656206041574478,
0.009090428240597248,
0.017103010788559914,
-0.10203613340854645,
-0.021416116505861282,
-0.031144700944423676,
-0.08427062630653381,
0.045664090663194656,
-0.027189774438738823,
0.04917057976126671,
0.026179637759923935,
-0.03573931008577347,
-0.01924905553460121,
-0.0772572010755539,
-0.014127254486083984,
0.08211231976747513,
0.00202871672809124,
-0.022831950336694717,
-0.056285396218299866,
0.08617490530014038,
-0.008805440738797188,
-0.000866008223965764,
-0.11286337673664093,
-0.047523535788059235,
0.0011967788450419903,
-0.08929961174726486,
0.06307916343212128,
0.10152217745780945,
0.034926652908325195,
0.04960789531469345,
-0.04184206575155258,
-0.03129427507519722,
-0.00540134496986866,
0.014157118275761604,
-0.045509450137615204,
-0.1981351226568222,
0.006690029986202717,
-0.06664484739303589,
0.08121249079704285,
-0.23344701528549194,
0.02064187079668045,
0.04590495675802231,
0.06633690744638443,
-0.01107357069849968,
-0.003144316840916872,
0.015252159908413887,
0.031167684122920036,
-0.0021322048269212246,
-0.04486505314707756,
0.038851067423820496,
-0.024736560881137848,
-0.07160919904708862,
0.05863667279481888,
-0.11418865621089935,
0.018114134669303894,
0.051831744611263275,
0.03291962295770645,
-0.11505664885044098,
-0.030698679387569427,
-0.016498159617185593,
-0.011046867817640305,
-0.05429399013519287,
-0.013855190947651863,
0.151159405708313,
0.015007039532065392,
0.0366072840988636,
-0.10345093905925751,
-0.033582475036382675,
0.008206812664866447,
-0.0549456812441349,
-0.0513429120182991,
0.12802578508853912,
0.07188330590724945,
-0.20390650629997253,
0.09966517239809036,
0.05910301208496094,
0.03170725703239441,
0.1801508665084839,
0.0030662836506962776,
-0.04740637540817261,
-0.03380074352025986,
0.017647406086325645,
-0.003640159498900175,
0.11351947486400604,
-0.0384933277964592,
0.0009222477674484253,
0.024575458839535713,
-0.0052813878282904625,
0.03462756425142288,
-0.09385460615158081,
-0.01672961935400963,
0.0026675830595195293,
-0.02967098169028759,
-0.04326357692480087,
0.03146914392709732,
-0.03471003472805023,
0.09393711388111115,
0.010819893330335617,
-0.026994025334715843,
-0.022132480517029762,
-0.020405150949954987,
-0.12216357886791229,
0.1882275938987732,
-0.0828210711479187,
-0.18472197651863098,
-0.06202820688486099,
0.018925145268440247,
0.001037009060382843,
-0.005536285229027271,
-0.0001893963199108839,
-0.09599420428276062,
-0.05831979215145111,
-0.03747791796922684,
0.0609460175037384,
-0.03546897694468498,
-0.07779525220394135,
-0.03999703750014305,
0.039472732692956924,
-0.043296247720718384,
-0.08967791497707367,
-0.014392124488949776,
0.0010850622784346342,
-0.04498464614152908,
0.025970887392759323,
-0.038790710270404816,
0.10468122363090515,
0.11391516029834747,
0.00470513803884387,
-0.019462168216705322,
-0.01713317073881626,
0.2000720202922821,
-0.10706907510757446,
0.08293004333972931,
0.11164601892232895,
-0.012300509959459305,
0.06948912143707275,
0.15551987290382385,
0.040323831140995026,
-0.04461796581745148,
-0.03539930656552315,
-0.00788840837776661,
-0.04600429907441139,
-0.2293548285961151,
-0.07044143229722977,
-0.021767280995845795,
-0.035131148993968964,
0.004279466345906258,
0.044375672936439514,
0.035885244607925415,
0.07984837889671326,
-0.07023033499717712,
-0.047667957842350006,
0.04291117936372757,
0.06336896866559982,
0.034551847726106644,
-0.01953686773777008,
0.05032242089509964,
-0.04317691922187805,
-0.018373675644397736,
0.07871770858764648,
0.023091230541467667,
0.16962741315364838,
0.02404240518808365,
0.05443442612886429,
0.08838668465614319,
0.03942424803972244,
0.024775264784693718,
0.037959709763526917,
0.005875681061297655,
0.0060133133083581924,
-0.036375802010297775,
-0.0626809298992157,
0.0015291739255189896,
0.10589154064655304,
0.039465926587581635,
-0.016722626984119415,
-0.002999524585902691,
0.020800182595849037,
0.0497174970805645,
0.0050962455570697784,
0.023173917084932327,
-0.13396653532981873,
-0.02395915612578392,
0.07089895009994507,
0.01391808781772852,
-0.06878690421581268,
-0.004111150279641151,
0.06472015380859375,
-0.14528945088386536,
0.11318869143724442,
-0.0035238908603787422,
0.07829956710338593,
-0.06434252113103867,
0.006702204700559378,
-0.03627171739935875,
0.0765671581029892,
-0.015565224923193455,
0.1020028293132782,
-0.15812936425209045,
0.1993032842874527,
0.012144259177148342,
0.05984862148761749,
-0.06738876551389694,
0.011266768909990788,
0.040849510580301285,
0.0844930037856102,
0.17179900407791138,
0.038417086005210876,
-0.14419704675674438,
-0.07921594381332397,
-0.021966874599456787,
0.02037571370601654,
0.05194404721260071,
-0.037395186722278595,
0.06224276125431061,
0.01432553119957447,
-0.022314252331852913,
-0.034139662981033325,
-0.026048097759485245,
-0.1574535369873047,
-0.12739096581935883,
0.06163270026445389,
-0.1276181936264038,
-0.009736407548189163,
-0.060059092938899994,
-0.06224672123789787,
-0.08635953068733215,
0.12003801763057709,
-0.08196733146905899,
-0.08183716237545013,
-0.1016382947564125,
-0.00776687590405345,
0.1152580976486206,
-0.095850370824337,
-0.0022312095388770103,
0.004829466342926025,
0.06938100606203079,
-0.04994424805045128,
-0.016697421669960022,
0.03638093173503876,
-0.10583752393722534,
-0.16164013743400574,
-0.03458269685506821,
0.08191052824258804,
0.09974867850542068,
0.06562298536300659,
0.033756304532289505,
0.018466206267476082,
-0.007244832813739777,
-0.13427917659282684,
0.034966643899679184,
0.09680879861116409,
0.005590593442320824,
0.03557273745536804,
-0.07158540189266205,
-0.12844106554985046,
-0.07865197956562042,
-0.08313418924808502,
0.05441612750291824,
0.21402794122695923,
-0.04586705565452576,
0.12367619574069977,
0.1624971330165863,
-0.11892413347959518,
-0.20485255122184753,
0.0003357008099555969,
0.05380776524543762,
0.03346267342567444,
0.03504302352666855,
-0.16192644834518433,
0.0039620595052838326,
0.019264167174696922,
-0.0013369787484407425,
0.02970205619931221,
-0.191298246383667,
-0.09235411882400513,
0.0966295674443245,
0.05188862234354019,
0.025748509913682938,
-0.11765279620885849,
-0.060528844594955444,
-0.0426211878657341,
-0.04314494505524635,
0.04170547425746918,
-0.05378830432891846,
0.015518609434366226,
0.02083330787718296,
0.032319385558366776,
0.03943616524338722,
-0.016251616179943085,
0.18337690830230713,
-0.009959379211068153,
0.024611417204141617,
-0.05844061076641083,
-0.09635555744171143,
0.050079114735126495,
-0.02835119515657425,
0.07896836847066879,
0.0013767927885055542,
0.009390759281814098,
-0.052496135234832764,
-0.05474109947681427,
-0.07926042377948761,
0.07942524552345276,
-0.08372316509485245,
-0.05806596577167511,
-0.05964585393667221,
0.08328965306282043,
0.06850072741508484,
-0.02211351878941059,
-0.001222509890794754,
-0.08374674618244171,
0.033996544778347015,
0.04881329834461212,
0.17264102399349213,
0.06759367138147354,
-0.03278199955821037,
0.0014052223414182663,
-0.025471871718764305,
0.03245101496577263,
-0.11554322391748428,
-0.01881788671016693,
0.08725132048130035,
0.020072029903531075,
0.07508481293916702,
-0.010533105581998825,
-0.15883851051330566,
-0.004933740012347698,
0.07005062699317932,
-0.020634924992918968,
-0.16909673810005188,
-0.03860313817858696,
0.02035009115934372,
-0.059874795377254486,
-0.027762731537222862,
0.08241433650255203,
-0.045364756137132645,
-0.027154771611094475,
-0.023878125473856926,
0.0503462553024292,
-0.0005214232951402664,
0.10805988311767578,
0.09535729885101318,
0.04803287237882614,
-0.06551839411258698,
0.011912371963262558,
0.03978516533970833,
-0.016149776056408882,
0.029165182262659073,
0.062027815729379654,
-0.07006695866584778,
-0.06428229808807373,
0.013501409441232681,
0.15120583772659302,
-0.05762047320604324,
-0.09269373118877411,
-0.008569901809096336,
-0.11757015436887741,
0.01022820733487606,
0.147076815366745,
0.021094439551234245,
-0.03501025214791298,
0.04010782018303871,
0.0034290633630007505,
-0.011604126542806625,
0.0815894678235054,
0.05423542857170105,
0.008006922900676727,
-0.07092584669589996,
0.025040781125426292,
0.0011562751606106758,
0.05800166726112366,
-0.01930760219693184,
0.010270249098539352,
-0.1345449686050415,
-0.0019573629833757877,
-0.12355979532003403,
0.030240438878536224,
-0.11251527070999146,
0.007276169024407864,
-0.013700809329748154,
-0.053796131163835526,
-0.01269621029496193,
-0.0038861853536218405,
-0.06207622215151787,
0.00958296563476324,
-0.022198602557182312,
0.09719911217689514,
-0.07474419474601746,
-0.021802714094519615,
0.05496891587972641,
-0.06988990306854248,
0.030309397727251053,
-0.02122528851032257,
-0.0011636866256594658,
0.05602506175637245,
-0.17158418893814087,
0.06134305149316788,
0.01411361712962389,
0.046332407742738724,
0.013677841983735561,
-0.13968278467655182,
-0.006900155916810036,
-0.0270285252481699,
-0.015865618363022804,
0.008235553279519081,
-0.0005925744771957397,
-0.042631521821022034,
0.08432324230670929,
-0.013830557465553284,
-0.09647446125745773,
-0.012559830211102962,
0.09104201197624207,
0.05787133425474167,
-0.020833799615502357,
0.08070014417171478,
-0.04110974818468094,
0.06928536295890808,
-0.11800573021173477,
-0.010616568848490715,
-0.0053333742544054985,
-0.012586595490574837,
0.018337003886699677,
-0.044972389936447144,
0.06086915731430054,
-0.012940756976604462,
0.16200678050518036,
0.04295695200562477,
0.014964383095502853,
0.0161996241658926,
0.01906283013522625,
-0.002106083557009697,
0.02279357612133026,
0.01821437105536461,
0.02128562331199646,
0.023926597088575363,
-0.0686773881316185,
0.022757865488529205,
-0.030833261087536812,
-0.09989868104457855,
0.11652952432632446,
0.09469332545995712,
0.08662819862365723,
0.038086455315351486,
0.04074719548225403,
-0.0995834469795227,
0.006797425448894501,
0.024315036833286285,
-0.012479027733206749,
-0.029981281608343124,
-0.0432247631251812,
0.08300111442804337,
0.17381826043128967,
-0.16285710036754608,
0.0865270271897316,
-0.01926938071846962,
-0.07036775350570679,
-0.12242603302001953,
-0.1994294822216034,
-0.05888159200549126,
0.0035822074860334396,
0.01899326592683792,
-0.08733022212982178,
0.015908531844615936,
0.030781859531998634,
0.01378273032605648,
-0.005757556296885014,
0.06802432239055634,
-0.031699731945991516,
-0.0773719847202301,
0.03921801596879959,
0.034445345401763916,
0.038142457604408264,
-0.03567830100655556,
0.04641581326723099,
0.0011124997399747372,
0.005733996629714966,
0.017346378415822983,
0.028540682047605515,
-0.019640982151031494,
0.020802145823836327,
-0.016747836023569107,
-0.055231738835573196,
-0.009509790688753128,
0.0006268415600061417,
0.04523319751024246,
0.1255885809659958,
0.0292630847543478,
-0.028874453157186508,
0.008843137882649899,
0.1141362413764,
-0.0013226661831140518,
-0.10024124383926392,
-0.09565544128417969,
0.12094154953956604,
-0.03266796097159386,
0.03869862109422684,
0.04313694313168526,
-0.07468070089817047,
0.06919252127408981,
0.15461893379688263,
0.21767687797546387,
-0.010162018239498138,
0.010669130831956863,
-0.005747064016759396,
0.009934492409229279,
-0.002696473151445389,
0.04030720144510269,
0.012798497453331947,
0.23128098249435425,
-0.08591379225254059,
0.07306447625160217,
-0.03700459003448486,
-0.009839832782745361,
-0.048328693956136703,
0.09504376351833344,
0.03465132415294647,
-0.01486049685627222,
-0.04601060599088669,
0.11594795435667038,
-0.08868030458688736,
-0.20466667413711548,
0.03163463622331619,
-0.09061403572559357,
-0.08913387358188629,
-0.04017910361289978,
-0.008825359866023064,
0.04965880513191223,
0.055312737822532654,
0.0003117346204817295,
-0.05171907693147659,
0.0733538493514061,
0.03284905105829239,
-0.09034597873687744,
-0.012101316824555397,
0.08243292570114136,
0.0022604099940508604,
0.16239899396896362,
-0.00963808223605156,
0.11282746493816376,
0.09435318410396576,
-0.030114926397800446,
-0.06766590476036072,
0.057188570499420166,
0.06556597352027893,
-0.021063873544335365,
0.04151169955730438,
0.06817550957202911,
-0.0077027385123074055,
0.021110495552420616,
0.09478383511304855,
-0.04628070816397667,
0.058876387774944305,
0.0495123490691185,
-0.06489010900259018,
-0.05969514325261116,
0.1669539213180542,
-0.10928426682949066,
0.13801692426204681,
0.11273249983787537,
-0.0188447255641222,
-0.002195197157561779,
-0.039551809430122375,
0.07911214977502823,
0.009427008219063282,
0.09877391159534454,
0.01892198622226715,
-0.1104537844657898,
-0.010998772457242012,
-0.009278437122702599,
0.08273274451494217,
-0.15427540242671967,
-0.045140184462070465,
0.005700476001948118,
-0.009110518731176853,
-0.039848532527685165,
0.07613899558782578,
0.05101420730352402,
0.011364702135324478,
-0.030851123854517937,
-0.097547248005867,
-0.008831372484564781,
0.09863676130771637,
-0.06159522011876106,
-0.013150366023182869
] |
null | null | transformers |
# xlm-roberta-large-finetuned-conll03-english
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
The XLM-RoBERTa model was proposed in [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/abs/1911.02116) by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is [XLM-RoBERTa-large](https://huggingface.co/xlm-roberta-large) fine-tuned with the [conll2003](https://huggingface.co/datasets/conll2003) dataset in English.
- **Developed by:** See [associated paper](https://arxiv.org/abs/1911.02116)
- **Model type:** Multi-lingual language model
- **Language(s) (NLP) or Countries (images):** XLM-RoBERTa is a multilingual model trained on 100 different languages; see [GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/xlmr) for full list; model is fine-tuned on a dataset in English
- **License:** More information needed
- **Related Models:** [RoBERTa](https://huggingface.co/roberta-base), [XLM](https://huggingface.co/docs/transformers/model_doc/xlm)
- **Parent Model:** [XLM-RoBERTa-large](https://huggingface.co/xlm-roberta-large)
- **Resources for more information:**
-[GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/xlmr)
-[Associated Paper](https://arxiv.org/abs/1911.02116)
# Uses
## Direct Use
The model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.
## Downstream Use
Potential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face [token classification docs](https://huggingface.co/tasks/token-classification).
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
**CONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). In the context of tasks relevant to this model, [Mishra et al. (2020)](https://arxiv.org/pdf/2008.03415.pdf) explore social biases in NER systems for English and find that there is systematic bias in existing NER systems in that they fail to identify named entities from different demographic groups (though this paper did not look at BERT). For example, using a sample sentence from [Mishra et al. (2020)](https://arxiv.org/pdf/2008.03415.pdf):
```python
>>> from transformers import pipeline
>>> tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large-finetuned-conll03-english")
>>> model = AutoModelForTokenClassification.from_pretrained("xlm-roberta-large-finetuned-conll03-english")
>>> classifier = pipeline("ner", model=model, tokenizer=tokenizer)
>>> classifier("Alya told Jasmine that Andrew could pay with cash..")
[{'end': 2,
'entity': 'I-PER',
'index': 1,
'score': 0.9997861,
'start': 0,
'word': '▁Al'},
{'end': 4,
'entity': 'I-PER',
'index': 2,
'score': 0.9998591,
'start': 2,
'word': 'ya'},
{'end': 16,
'entity': 'I-PER',
'index': 4,
'score': 0.99995816,
'start': 10,
'word': '▁Jasmin'},
{'end': 17,
'entity': 'I-PER',
'index': 5,
'score': 0.9999584,
'start': 16,
'word': 'e'},
{'end': 29,
'entity': 'I-PER',
'index': 7,
'score': 0.99998057,
'start': 23,
'word': '▁Andrew'}]
```
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the following resources for training data and training procedure details:
- [XLM-RoBERTa-large model card](https://huggingface.co/xlm-roberta-large)
- [CoNLL-2003 data card](https://huggingface.co/datasets/conll2003)
- [Associated paper](https://arxiv.org/pdf/1911.02116.pdf)
# Evaluation
See the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for evaluation details.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** 500 32GB Nvidia V100 GPUs (from the [associated paper](https://arxiv.org/pdf/1911.02116.pdf))
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
See the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for further details.
# Citation
**BibTeX:**
```bibtex
@article{conneau2019unsupervised,
title={Unsupervised Cross-lingual Representation Learning at Scale},
author={Conneau, Alexis and Khandelwal, Kartikay and Goyal, Naman and Chaudhary, Vishrav and Wenzek, Guillaume and Guzm{\'a}n, Francisco and Grave, Edouard and Ott, Myle and Zettlemoyer, Luke and Stoyanov, Veselin},
journal={arXiv preprint arXiv:1911.02116},
year={2019}
}
```
**APA:**
- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly within a pipeline for NER.
<details>
<summary> Click to expand </summary>
```python
>>> from transformers import AutoTokenizer, AutoModelForTokenClassification
>>> from transformers import pipeline
>>> tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large-finetuned-conll03-english")
>>> model = AutoModelForTokenClassification.from_pretrained("xlm-roberta-large-finetuned-conll03-english")
>>> classifier = pipeline("ner", model=model, tokenizer=tokenizer)
>>> classifier("Hello I'm Omar and I live in Zürich.")
[{'end': 14,
'entity': 'I-PER',
'index': 5,
'score': 0.9999175,
'start': 10,
'word': '▁Omar'},
{'end': 35,
'entity': 'I-LOC',
'index': 10,
'score': 0.9999906,
'start': 29,
'word': '▁Zürich'}]
```
</details> | {"language": ["multilingual", "af", "am", "ar", "as", "az", "be", "bg", "bn", "br", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fr", "fy", "ga", "gd", "gl", "gu", "ha", "he", "hi", "hr", "hu", "hy", "id", "is", "it", "ja", "jv", "ka", "kk", "km", "kn", "ko", "ku", "ky", "la", "lo", "lt", "lv", "mg", "mk", "ml", "mn", "mr", "ms", "my", "ne", "nl", false, "om", "or", "pa", "pl", "ps", "pt", "ro", "ru", "sa", "sd", "si", "sk", "sl", "so", "sq", "sr", "su", "sv", "sw", "ta", "te", "th", "tl", "tr", "ug", "uk", "ur", "uz", "vi", "xh", "yi", "zh"]} | token-classification | FacebookAI/xlm-roberta-large-finetuned-conll03-english | [
"transformers",
"pytorch",
"rust",
"onnx",
"safetensors",
"xlm-roberta",
"token-classification",
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh",
"arxiv:1911.02116",
"arxiv:2008.03415",
"arxiv:1910.09700",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1911.02116",
"2008.03415",
"1910.09700"
] | [
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh"
] | TAGS
#transformers #pytorch #rust #onnx #safetensors #xlm-roberta #token-classification #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-2008.03415 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #has_space #region-us
|
# xlm-roberta-large-finetuned-conll03-english
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
# Model Details
## Model Description
The XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the conll2003 dataset in English.
- Developed by: See associated paper
- Model type: Multi-lingual language model
- Language(s) (NLP) or Countries (images): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in English
- License: More information needed
- Related Models: RoBERTa, XLM
- Parent Model: XLM-RoBERTa-large
- Resources for more information:
-GitHub Repo
-Associated Paper
# Uses
## Direct Use
The model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.
## Downstream Use
Potential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
CONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). In the context of tasks relevant to this model, Mishra et al. (2020) explore social biases in NER systems for English and find that there is systematic bias in existing NER systems in that they fail to identify named entities from different demographic groups (though this paper did not look at BERT). For example, using a sample sentence from Mishra et al. (2020):
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the following resources for training data and training procedure details:
- XLM-RoBERTa-large model card
- CoNLL-2003 data card
- Associated paper
# Evaluation
See the associated paper for evaluation details.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)
- Hours used: More information needed
- Cloud Provider: More information needed
- Compute Region: More information needed
- Carbon Emitted: More information needed
# Technical Specifications
See the associated paper for further details.
BibTeX:
APA:
- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly within a pipeline for NER.
<details>
<summary> Click to expand </summary>
</details> | [
"# xlm-roberta-large-finetuned-conll03-english",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the conll2003 dataset in English.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP) or Countries (images): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in English\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.",
"## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). In the context of tasks relevant to this model, Mishra et al. (2020) explore social biases in NER systems for English and find that there is systematic bias in existing NER systems in that they fail to identify named entities from different demographic groups (though this paper did not look at BERT). For example, using a sample sentence from Mishra et al. (2020):",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2003 data card\n- Associated paper",
"# Evaluation\n\nSee the associated paper for evaluation details.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. You can use this model directly within a pipeline for NER.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
"TAGS\n#transformers #pytorch #rust #onnx #safetensors #xlm-roberta #token-classification #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-2008.03415 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"# xlm-roberta-large-finetuned-conll03-english",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the conll2003 dataset in English.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP) or Countries (images): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in English\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.",
"## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). In the context of tasks relevant to this model, Mishra et al. (2020) explore social biases in NER systems for English and find that there is systematic bias in existing NER systems in that they fail to identify named entities from different demographic groups (though this paper did not look at BERT). For example, using a sample sentence from Mishra et al. (2020):",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2003 data card\n- Associated paper",
"# Evaluation\n\nSee the associated paper for evaluation details.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. You can use this model directly within a pipeline for NER.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
281,
20,
51,
3,
275,
3,
41,
63,
28,
174,
34,
37,
11,
79,
99,
18,
55
] | [
"passage: TAGS\n#transformers #pytorch #rust #onnx #safetensors #xlm-roberta #token-classification #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-2008.03415 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #has_space #region-us \n# xlm-roberta-large-finetuned-conll03-english# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model# Model Details",
"passage: ## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the conll2003 dataset in English.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP) or Countries (images): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in English\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper# Uses## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). In the context of tasks relevant to this model, Mishra et al. (2020) explore social biases in NER systems for English and find that there is systematic bias in existing NER systems in that they fail to identify named entities from different demographic groups (though this paper did not look at BERT). For example, using a sample sentence from Mishra et al. (2020):## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2003 data card\n- Associated paper# Evaluation\n\nSee the associated paper for evaluation details.# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed"
] | [
-0.07724613696336746,
0.0820283442735672,
-0.005823974497616291,
0.017806321382522583,
0.054237622767686844,
0.013298102654516697,
0.09448042511940002,
0.07348921149969101,
0.05671882629394531,
0.06618394702672958,
0.054977428168058395,
0.05362427979707718,
0.07909657806158066,
0.1389508843421936,
-0.003965965937823057,
-0.2548244595527649,
0.041155800223350525,
-0.052687399089336395,
0.019832488149404526,
0.06459876894950867,
0.09647141396999359,
-0.059567295014858246,
0.08548574149608612,
0.0053431205451488495,
-0.007933131419122219,
-0.019772261381149292,
-0.03493823856115341,
-0.02598629519343376,
0.06397371739149094,
0.08164308965206146,
0.053749337792396545,
0.04833380505442619,
0.09065470099449158,
-0.22221213579177856,
0.020024217665195465,
0.019730418920516968,
-0.0299580879509449,
0.04541456699371338,
0.06957487761974335,
-0.016706574708223343,
0.23281702399253845,
-0.08629551529884338,
0.04254589602351189,
0.04586946964263916,
-0.09264020621776581,
-0.09831514209508896,
-0.07340410351753235,
0.08950196951627731,
0.06638932973146439,
0.04419879615306854,
-0.03380279988050461,
0.10298290848731995,
-0.03011041134595871,
0.033248357474803925,
0.14020009338855743,
-0.16675296425819397,
-0.04433061182498932,
0.13310256600379944,
0.05791334807872772,
0.0336037278175354,
-0.08646491169929504,
0.04054390639066696,
0.03156851977109909,
0.01656859926879406,
0.021007884293794632,
-0.04760505631566048,
0.1037219762802124,
-0.011956440284848213,
-0.13090771436691284,
0.00840745959430933,
0.12998753786087036,
0.04129935801029205,
-0.049001358449459076,
-0.10944435745477676,
-0.01459632720798254,
0.05587932467460632,
-0.02597467042505741,
-0.07052677869796753,
0.024128366261720657,
-0.02132423408329487,
0.08087252825498581,
-0.05167298763990402,
-0.0694505125284195,
-0.0005923481658101082,
-0.017346102744340897,
0.1203223466873169,
0.017407173290848732,
0.013797061517834663,
0.005597193259745836,
0.04660753160715103,
-0.04018312692642212,
-0.0830591470003128,
-0.042907338589429855,
-0.07094606012105942,
-0.0655767098069191,
-0.0342988595366478,
0.05339934676885605,
0.03379163146018982,
0.034321799874305725,
0.10855083167552948,
-0.07559038698673248,
0.04244305565953255,
0.08453257381916046,
0.03259316831827164,
0.06408407539129257,
0.07377423346042633,
-0.04959290474653244,
-0.09028537571430206,
-0.004779176786541939,
0.04395509138703346,
-0.007426852360367775,
-0.02269318513572216,
-0.061055731028318405,
-0.0208878256380558,
-0.0015517473220825195,
0.057590581476688385,
0.04246559366583824,
0.022165384143590927,
-0.03446105495095253,
-0.008929604664444923,
0.13019169867038727,
-0.09729945659637451,
0.018609410151839256,
0.027920519933104515,
-0.0218025092035532,
0.010930508375167847,
-0.008209222927689552,
0.020232364535331726,
-0.017902066931128502,
0.055436328053474426,
-0.052588313817977905,
-0.01880270428955555,
-0.05717962980270386,
-0.09950459748506546,
0.03498160094022751,
-0.03704257309436798,
0.012823013588786125,
-0.12214608490467072,
-0.1443706899881363,
-0.09988276660442352,
0.04487631097435951,
-0.0652133971452713,
-0.040217965841293335,
-0.038778916001319885,
-0.05888404697179794,
-0.015176915563642979,
0.018560156226158142,
0.01953873038291931,
-0.027004221454262733,
-0.001073458231985569,
-0.07172158360481262,
0.05149349197745323,
0.030694229528307915,
0.009349814616143703,
-0.05132301524281502,
0.04810818284749985,
-0.1004272848367691,
0.08182846009731293,
-0.08230507373809814,
0.013232989236712456,
-0.10596263408660889,
-0.06252150982618332,
-0.019966116175055504,
0.0605618990957737,
0.020216945558786392,
0.17104819416999817,
-0.172604501247406,
-0.030928801745176315,
0.11393162608146667,
-0.09481590241193771,
-0.06367098540067673,
0.08759449422359467,
-0.02780517376959324,
0.14090904593467712,
0.07436816394329071,
0.11368145048618317,
0.11700327694416046,
-0.07669498026371002,
-0.048332471400499344,
0.024201838299632072,
0.01140226423740387,
0.10452310740947723,
0.06463544070720673,
-0.01699947938323021,
0.00965672917664051,
0.007289814297109842,
-0.08022007346153259,
-0.013837982900440693,
-0.03221939876675606,
-0.07927480340003967,
0.04040783643722534,
-0.048588503152132034,
0.04812943935394287,
0.02557815983891487,
-0.03445928543806076,
-0.017017314210534096,
-0.07521174848079681,
-0.028864508494734764,
0.08931128680706024,
-0.008177677169442177,
-0.01693321391940117,
-0.05690382793545723,
0.06794726103544235,
-0.006048490293323994,
0.006074131932109594,
-0.12242633104324341,
-0.054997581988573074,
-0.0011942079290747643,
-0.08340198546648026,
0.06398225575685501,
0.11287584900856018,
0.050244856625795364,
0.03397352248430252,
-0.041561394929885864,
-0.028654659166932106,
0.005984698422253132,
0.013685050420463085,
-0.06623058766126633,
-0.1785794198513031,
-0.002193461637943983,
-0.07386074215173721,
0.06028947979211807,
-0.24127650260925293,
0.02922474965453148,
0.03538477048277855,
0.0681883692741394,
0.01203552633523941,
-0.01764383167028427,
0.024746205657720566,
0.01444962713867426,
-0.0016056435415521264,
-0.03594471514225006,
0.034009844064712524,
-0.02223425917327404,
-0.08456305414438248,
0.0695936381816864,
-0.10680071264505386,
0.028504766523838043,
0.04645315557718277,
0.021165475249290466,
-0.10954809188842773,
-0.0163399837911129,
-0.01599789597094059,
-0.010759102180600166,
-0.05193047225475311,
-0.012863166630268097,
0.1447237730026245,
0.020649097859859467,
0.02477440983057022,
-0.07909709960222244,
-0.022998448461294174,
-0.0018124142661690712,
-0.038054537028074265,
-0.04429083317518234,
0.13339734077453613,
0.06999725103378296,
-0.1775180697441101,
0.07810851186513901,
0.0777098760008812,
0.02213737554848194,
0.16298183798789978,
0.012548290193080902,
-0.04760204255580902,
-0.03412444889545441,
-0.01576070673763752,
-0.02040741965174675,
0.09932208806276321,
-0.03890925645828247,
-0.005420397501438856,
0.02827971987426281,
0.012586335651576519,
0.02673458307981491,
-0.08611488342285156,
-0.017481865361332893,
0.0038270889781415462,
-0.023454934358596802,
-0.022825270891189575,
0.04522768408060074,
-0.0389978364109993,
0.09024345874786377,
0.00325209554284811,
-0.04118292033672333,
-0.020898981019854546,
-0.027648959308862686,
-0.12392907589673996,
0.17859812080860138,
-0.07188519835472107,
-0.16186869144439697,
-0.0470966137945652,
0.0258479081094265,
-0.0018062591552734375,
-0.015322762541472912,
-0.0015384138096123934,
-0.07321913540363312,
-0.06908714771270752,
-0.06227022781968117,
0.04300960898399353,
-0.044951796531677246,
-0.06550533324480057,
-0.04165369272232056,
0.023465603590011597,
-0.04067188501358032,
-0.09155573695898056,
-0.015498025342822075,
-0.0023058131337165833,
-0.04394926130771637,
0.030645377933979034,
-0.03303167223930359,
0.08595705032348633,
0.11609485745429993,
-0.0030609541572630405,
-0.012250200845301151,
-0.013583638705313206,
0.23107269406318665,
-0.10703232139348984,
0.09764810651540756,
0.09633481502532959,
-0.016144301742315292,
0.06154981628060341,
0.16215620934963226,
0.046986863017082214,
-0.047879524528980255,
-0.019916409626603127,
-0.0062018632888793945,
-0.0392458438873291,
-0.21450823545455933,
-0.0725221186876297,
-0.027135061100125313,
-0.01638493314385414,
-0.0000033471733331680298,
0.05263039842247963,
0.01560607273131609,
0.06369871646165848,
-0.05410012602806091,
-0.04900384321808815,
0.06234578788280487,
0.05860351771116257,
0.03760356828570366,
-0.019365359097719193,
0.06578366458415985,
-0.04204371199011803,
-0.0028372537344694138,
0.06650292128324509,
-0.002977520227432251,
0.17013192176818848,
0.04231852665543556,
0.0504588857293129,
0.0758962631225586,
0.020654000341892242,
0.036500539630651474,
0.047242436558008194,
0.0028914501890540123,
0.002799713984131813,
-0.03107859194278717,
-0.05469672381877899,
0.009584000334143639,
0.11895911395549774,
0.04091686010360718,
-0.030798757448792458,
-0.0002463625278323889,
0.023672666400671005,
0.047346554696559906,
0.012286634184420109,
0.04616522043943405,
-0.1171785444021225,
-0.031062239781022072,
0.07255339622497559,
-0.0107421875,
-0.06321835517883301,
0.018854215741157532,
0.07317055761814117,
-0.13409875333309174,
0.07231899350881577,
0.00816180557012558,
0.07975483685731888,
-0.08618135750293732,
0.008931268006563187,
-0.029438022524118423,
0.058459848165512085,
-0.02089068666100502,
0.08342476934194565,
-0.17799153923988342,
0.18543221056461334,
0.013362170197069645,
0.05617719888687134,
-0.057428255677223206,
-0.005133200436830521,
0.057607755064964294,
0.09547470510005951,
0.16020244359970093,
0.04253325238823891,
-0.14434851706027985,
-0.07755382359027863,
-0.014614878222346306,
0.02754659578204155,
0.0520046204328537,
-0.03595857322216034,
0.05641181766986847,
0.009565072134137154,
-0.015541506931185722,
-0.026433315128087997,
0.0012560728937387466,
-0.16724643111228943,
-0.11739885807037354,
0.06092427298426628,
-0.08224078267812729,
0.002229150850325823,
-0.056175123900175095,
-0.06253626942634583,
-0.09323281049728394,
0.11947128176689148,
-0.06588076055049896,
-0.07003520429134369,
-0.09424535930156708,
-0.0241975337266922,
0.10606890171766281,
-0.09369803965091705,
0.005243965424597263,
0.018091220408678055,
0.06791678071022034,
-0.05063103884458542,
-0.020286045968532562,
0.031770363450050354,
-0.09304851293563843,
-0.15935496985912323,
-0.023117152974009514,
0.06319751590490341,
0.10376842319965363,
0.07015486061573029,
0.024664968252182007,
0.03422674164175987,
-0.02287047915160656,
-0.13545531034469604,
0.04689721763134003,
0.12328000366687775,
-0.004554341081529856,
0.03187815845012665,
-0.06635762751102448,
-0.10405481606721878,
-0.07621374726295471,
-0.0730455070734024,
0.06315729022026062,
0.21548980474472046,
-0.05676957964897156,
0.10639587044715881,
0.15452373027801514,
-0.10323542356491089,
-0.20670273900032043,
0.002698962576687336,
0.024131732061505318,
0.038105159997940063,
0.0470498725771904,
-0.15947988629341125,
0.023410314694046974,
0.0026681781746447086,
-0.0070886993780732155,
0.038019903004169464,
-0.1719726026058197,
-0.09631876647472382,
0.11867215484380722,
0.03640405833721161,
0.019020333886146545,
-0.11619263887405396,
-0.04992866516113281,
-0.030842836946249008,
-0.054092708975076675,
0.03959652781486511,
-0.0448426827788353,
0.024372845888137817,
0.018752476200461388,
0.03943972289562225,
0.033660903573036194,
-0.018444478511810303,
0.16367444396018982,
0.009657553397119045,
0.034910649061203,
-0.05498170852661133,
-0.11157867312431335,
0.016166038811206818,
-0.03580103814601898,
0.09729329496622086,
-0.002500012516975403,
0.019002079963684082,
-0.07869365811347961,
-0.044691771268844604,
-0.07905222475528717,
0.06461919844150543,
-0.07251539826393127,
-0.06277857720851898,
-0.0711456760764122,
0.09863405674695969,
0.05669301375746727,
-0.0055707721039652824,
0.0177144855260849,
-0.09595490992069244,
0.03840193897485733,
0.04079710692167282,
0.181694895029068,
0.033129703253507614,
-0.028534479439258575,
0.014714021235704422,
-0.03498637676239014,
0.034881360828876495,
-0.12818652391433716,
-0.011403420940041542,
0.0987449437379837,
0.014272229745984077,
0.09592770040035248,
0.004674229770898819,
-0.14311036467552185,
-0.018836166709661484,
0.06040074676275253,
-0.04967770725488663,
-0.15909311175346375,
-0.03897248953580856,
0.015253583900630474,
-0.06612737476825714,
-0.02248082309961319,
0.09311565011739731,
-0.06187921389937401,
-0.015204127877950668,
-0.013683266006410122,
0.0621166005730629,
-0.007008198648691177,
0.09194616973400116,
0.10039513558149338,
0.04669998213648796,
-0.05594037473201752,
0.016149822622537613,
0.0439414419233799,
-0.027161037549376488,
0.024597063660621643,
0.07344120740890503,
-0.0781506597995758,
-0.07356180250644684,
-0.009881928563117981,
0.1351011097431183,
-0.0409359410405159,
-0.06810931861400604,
0.017285507172346115,
-0.10954277217388153,
0.01788725145161152,
0.1338665634393692,
0.027417590841650963,
-0.02124161273241043,
0.021010946482419968,
-0.004786906763911247,
-0.010508118197321892,
0.08360381424427032,
0.051410332322120667,
0.0006212741136550903,
-0.06965790688991547,
0.02491362765431404,
-0.010393415577709675,
0.055621542036533356,
-0.019202405586838722,
0.004149245098233223,
-0.13521143794059753,
-0.006559728644788265,
-0.10348134487867355,
0.007666216231882572,
-0.11685997247695923,
0.009388381615281105,
-0.005251833237707615,
-0.055424366146326065,
-0.017162460833787918,
-0.018790602684020996,
-0.06339271366596222,
-0.0022217039950191975,
-0.014395331032574177,
0.08938418328762054,
-0.07635124772787094,
-0.02649586834013462,
0.055190667510032654,
-0.06635981798171997,
0.04482124373316765,
-0.02619394287467003,
-0.0014208080247044563,
0.03773707151412964,
-0.1377640664577484,
0.050119899213314056,
-0.002572381868958473,
0.032728735357522964,
0.008996361866593361,
-0.14217928051948547,
-0.024252820760011673,
-0.032098133116960526,
-0.009216617792844772,
0.017245354130864143,
-0.008933908306062222,
-0.038263075053691864,
0.09983402490615845,
-0.012626037001609802,
-0.08245477080345154,
-0.0371059887111187,
0.06033008173108101,
0.040669217705726624,
0.00006485357880592346,
0.09109579026699066,
-0.030466854572296143,
0.06880214810371399,
-0.12047837674617767,
0.0035529909655451775,
0.002743861870840192,
-0.020219212397933006,
0.027592822909355164,
-0.05717391148209572,
0.060422129929065704,
-0.032976407557725906,
0.1538427472114563,
0.03927048295736313,
-0.032602742314338684,
0.03285827487707138,
0.00014001366798765957,
-0.014005145989358425,
0.021441785618662834,
0.008055159822106361,
0.026522742584347725,
0.009675057604908943,
-0.056431375443935394,
0.02673173137009144,
-0.03676263988018036,
-0.0719149187207222,
0.13347400724887848,
0.07437341660261154,
0.07236514985561371,
0.05670543760061264,
0.014213108457624912,
-0.10152363777160645,
0.006650403141975403,
0.013733545318245888,
-0.003468455746769905,
-0.01818234845995903,
-0.05646621063351631,
0.09380070865154266,
0.1848364621400833,
-0.15539774298667908,
0.08755549788475037,
-0.02551477774977684,
-0.06630513817071915,
-0.13300469517707825,
-0.19696742296218872,
-0.060570307075977325,
0.0029571782797574997,
0.010096961632370949,
-0.09756733477115631,
0.01167386770248413,
0.036657705903053284,
0.019899683073163033,
-0.003254992887377739,
0.0565781369805336,
-0.04544495791196823,
-0.05187583342194557,
0.045512355864048004,
0.01994880847632885,
0.026131730526685715,
-0.04435659199953079,
0.03528018295764923,
-0.014218772761523724,
-0.012829042971134186,
0.007966052740812302,
0.02414334937930107,
-0.03684281185269356,
0.017061937600374222,
-0.008005408570170403,
-0.07081646472215652,
-0.019791003316640854,
0.003821026999503374,
0.03622038662433624,
0.12728536128997803,
0.03517717123031616,
-0.033333051949739456,
0.01020850706845522,
0.1256786286830902,
-0.017379654571413994,
-0.08097180724143982,
-0.09735491871833801,
0.12499777972698212,
-0.027191102504730225,
0.027372751384973526,
0.024850351735949516,
-0.07460685074329376,
0.06412912160158157,
0.16711919009685516,
0.24053379893302917,
-0.030493605881929398,
0.017925985157489777,
0.003351970110088587,
0.007719588000327349,
-0.0009492876706644893,
0.03246171772480011,
0.024871598929166794,
0.2288036048412323,
-0.08487987518310547,
0.07360697537660599,
-0.0377412885427475,
-0.019098414108157158,
-0.028571676462888718,
0.08672939985990524,
0.048428453505039215,
-0.0021995557472109795,
-0.0515824556350708,
0.10977517813444138,
-0.09521546214818954,
-0.16630804538726807,
0.007641905918717384,
-0.07903195172548294,
-0.06600840389728546,
-0.038333598524332047,
-0.0369720458984375,
0.036956265568733215,
0.0649937093257904,
-0.007523686625063419,
-0.051034387201070786,
0.06750597059726715,
0.022264335304498672,
-0.08259276300668716,
-0.0030552176758646965,
0.09156171977519989,
-0.002596342470496893,
0.14582456648349762,
-0.005346937105059624,
0.10441111773252487,
0.09410860389471054,
-0.022995229810476303,
-0.07387468963861465,
0.056548550724983215,
0.05197509378194809,
-0.028342241421341896,
0.017391270026564598,
0.08921994268894196,
-0.007450135890394449,
0.043210022151470184,
0.09754456579685211,
-0.057599589228630066,
0.0622992180287838,
0.039447054266929626,
-0.06968843936920166,
-0.056677643209695816,
0.1478067934513092,
-0.09594963490962982,
0.1573091745376587,
0.11151329427957535,
-0.011106749065220356,
-0.008958612568676472,
-0.021793631836771965,
0.06186205521225929,
0.0008485795697197318,
0.06966271996498108,
-0.00014061806723475456,
-0.09207285940647125,
0.0034862197935581207,
-0.012484806589782238,
0.07539364695549011,
-0.1504945456981659,
-0.04974503070116043,
0.005050924140959978,
-0.01430951151996851,
-0.02902710810303688,
0.07954332232475281,
0.07088585197925568,
0.00015356228686869144,
-0.03608502447605133,
-0.08927112817764282,
0.005657867528498173,
0.10199332237243652,
-0.08673183619976044,
-0.03358346223831177
] |
null | null | transformers |
# xlm-roberta-large-finetuned-conll03-german
# Table of Contents
1. [Model Details](#model-details)
2. [Uses](#uses)
3. [Bias, Risks, and Limitations](#bias-risks-and-limitations)
4. [Training](#training)
5. [Evaluation](#evaluation)
6. [Environmental Impact](#environmental-impact)
7. [Technical Specifications](#technical-specifications)
8. [Citation](#citation)
9. [Model Card Authors](#model-card-authors)
10. [How To Get Started With the Model](#how-to-get-started-with-the-model)
# Model Details
## Model Description
The XLM-RoBERTa model was proposed in [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/abs/1911.02116) by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is [XLM-RoBERTa-large](https://huggingface.co/xlm-roberta-large) fine-tuned with the [conll2003](https://huggingface.co/datasets/conll2003) dataset in German.
- **Developed by:** See [associated paper](https://arxiv.org/abs/1911.02116)
- **Model type:** Multi-lingual language model
- **Language(s) (NLP):** XLM-RoBERTa is a multilingual model trained on 100 different languages; see [GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/xlmr) for full list; model is fine-tuned on a dataset in German
- **License:** More information needed
- **Related Models:** [RoBERTa](https://huggingface.co/roberta-base), [XLM](https://huggingface.co/docs/transformers/model_doc/xlm)
- **Parent Model:** [XLM-RoBERTa-large](https://huggingface.co/xlm-roberta-large)
- **Resources for more information:**
-[GitHub Repo](https://github.com/facebookresearch/fairseq/tree/main/examples/xlmr)
-[Associated Paper](https://arxiv.org/abs/1911.02116)
# Uses
## Direct Use
The model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.
## Downstream Use
Potential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face [token classification docs](https://huggingface.co/tasks/token-classification).
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
**CONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.**
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the following resources for training data and training procedure details:
- [XLM-RoBERTa-large model card](https://huggingface.co/xlm-roberta-large)
- [CoNLL-2003 data card](https://huggingface.co/datasets/conll2003)
- [Associated paper](https://arxiv.org/pdf/1911.02116.pdf)
# Evaluation
See the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for evaluation details.
# Environmental Impact
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** 500 32GB Nvidia V100 GPUs (from the [associated paper](https://arxiv.org/pdf/1911.02116.pdf))
- **Hours used:** More information needed
- **Cloud Provider:** More information needed
- **Compute Region:** More information needed
- **Carbon Emitted:** More information needed
# Technical Specifications
See the [associated paper](https://arxiv.org/pdf/1911.02116.pdf) for further details.
# Citation
**BibTeX:**
```bibtex
@article{conneau2019unsupervised,
title={Unsupervised Cross-lingual Representation Learning at Scale},
author={Conneau, Alexis and Khandelwal, Kartikay and Goyal, Naman and Chaudhary, Vishrav and Wenzek, Guillaume and Guzm{\'a}n, Francisco and Grave, Edouard and Ott, Myle and Zettlemoyer, Luke and Stoyanov, Veselin},
journal={arXiv preprint arXiv:1911.02116},
year={2019}
}
```
**APA:**
- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly within a pipeline for NER.
<details>
<summary> Click to expand </summary>
```python
>>> from transformers import AutoTokenizer, AutoModelForTokenClassification
>>> from transformers import pipeline
>>> tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large-finetuned-conll03-german")
>>> model = AutoModelForTokenClassification.from_pretrained("xlm-roberta-large-finetuned-conll03-german")
>>> classifier = pipeline("ner", model=model, tokenizer=tokenizer)
>>> classifier("Bayern München ist wieder alleiniger Top-Favorit auf den Gewinn der deutschen Fußball-Meisterschaft.")
[{'end': 6,
'entity': 'I-ORG',
'index': 1,
'score': 0.99999166,
'start': 0,
'word': '▁Bayern'},
{'end': 14,
'entity': 'I-ORG',
'index': 2,
'score': 0.999987,
'start': 7,
'word': '▁München'},
{'end': 77,
'entity': 'I-MISC',
'index': 16,
'score': 0.9999728,
'start': 68,
'word': '▁deutschen'}]
```
</details>
| {"language": ["multilingual", "af", "am", "ar", "as", "az", "be", "bg", "bn", "br", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fr", "fy", "ga", "gd", "gl", "gu", "ha", "he", "hi", "hr", "hu", "hy", "id", "is", "it", "ja", "jv", "ka", "kk", "km", "kn", "ko", "ku", "ky", "la", "lo", "lt", "lv", "mg", "mk", "ml", "mn", "mr", "ms", "my", "ne", "nl", false, "om", "or", "pa", "pl", "ps", "pt", "ro", "ru", "sa", "sd", "si", "sk", "sl", "so", "sq", "sr", "su", "sv", "sw", "ta", "te", "th", "tl", "tr", "ug", "uk", "ur", "uz", "vi", "xh", "yi", "zh"]} | token-classification | FacebookAI/xlm-roberta-large-finetuned-conll03-german | [
"transformers",
"pytorch",
"rust",
"onnx",
"xlm-roberta",
"token-classification",
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh",
"arxiv:1911.02116",
"arxiv:1910.09700",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1911.02116",
"1910.09700"
] | [
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh"
] | TAGS
#transformers #pytorch #rust #onnx #xlm-roberta #token-classification #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us
|
# xlm-roberta-large-finetuned-conll03-german
# Table of Contents
1. Model Details
2. Uses
3. Bias, Risks, and Limitations
4. Training
5. Evaluation
6. Environmental Impact
7. Technical Specifications
8. Citation
9. Model Card Authors
10. How To Get Started With the Model
# Model Details
## Model Description
The XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the conll2003 dataset in German.
- Developed by: See associated paper
- Model type: Multi-lingual language model
- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in German
- License: More information needed
- Related Models: RoBERTa, XLM
- Parent Model: XLM-RoBERTa-large
- Resources for more information:
-GitHub Repo
-Associated Paper
# Uses
## Direct Use
The model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.
## Downstream Use
Potential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.
## Out-of-Scope Use
The model should not be used to intentionally create hostile or alienating environments for people.
# Bias, Risks, and Limitations
CONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).
## Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
# Training
See the following resources for training data and training procedure details:
- XLM-RoBERTa-large model card
- CoNLL-2003 data card
- Associated paper
# Evaluation
See the associated paper for evaluation details.
# Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)
- Hours used: More information needed
- Cloud Provider: More information needed
- Compute Region: More information needed
- Carbon Emitted: More information needed
# Technical Specifications
See the associated paper for further details.
BibTeX:
APA:
- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.
# Model Card Authors
This model card was written by the team at Hugging Face.
# How to Get Started with the Model
Use the code below to get started with the model. You can use this model directly within a pipeline for NER.
<details>
<summary> Click to expand </summary>
</details>
| [
"# xlm-roberta-large-finetuned-conll03-german",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the conll2003 dataset in German.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in German\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.",
"## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2003 data card\n- Associated paper",
"# Evaluation\n\nSee the associated paper for evaluation details.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. You can use this model directly within a pipeline for NER.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
"TAGS\n#transformers #pytorch #rust #onnx #xlm-roberta #token-classification #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us \n",
"# xlm-roberta-large-finetuned-conll03-german",
"# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model",
"# Model Details",
"## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the conll2003 dataset in German.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in German\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper",
"# Uses",
"## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.",
"## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.",
"## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.",
"# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).",
"## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.",
"# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2003 data card\n- Associated paper",
"# Evaluation\n\nSee the associated paper for evaluation details.",
"# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed",
"# Technical Specifications\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.",
"# Model Card Authors\n\nThis model card was written by the team at Hugging Face.",
"# How to Get Started with the Model\n\nUse the code below to get started with the model. You can use this model directly within a pipeline for NER.\n\n<details>\n<summary> Click to expand </summary>\n\n\n\n</details>"
] | [
263,
20,
51,
3,
267,
3,
41,
63,
28,
89,
34,
37,
11,
79,
99,
18,
55
] | [
"passage: TAGS\n#transformers #pytorch #rust #onnx #xlm-roberta #token-classification #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #arxiv-1910.09700 #autotrain_compatible #endpoints_compatible #region-us \n# xlm-roberta-large-finetuned-conll03-german# Table of Contents\n\n1. Model Details\n2. Uses\n3. Bias, Risks, and Limitations\n4. Training\n5. Evaluation\n6. Environmental Impact\n7. Technical Specifications\n8. Citation\n9. Model Card Authors\n10. How To Get Started With the Model# Model Details",
"passage: ## Model Description\n\nThe XLM-RoBERTa model was proposed in Unsupervised Cross-lingual Representation Learning at Scale by Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer and Veselin Stoyanov. It is based on Facebook's RoBERTa model released in 2019. It is a large multi-lingual language model, trained on 2.5TB of filtered CommonCrawl data. This model is XLM-RoBERTa-large fine-tuned with the conll2003 dataset in German.\n\n- Developed by: See associated paper\n- Model type: Multi-lingual language model\n- Language(s) (NLP): XLM-RoBERTa is a multilingual model trained on 100 different languages; see GitHub Repo for full list; model is fine-tuned on a dataset in German\n- License: More information needed\n- Related Models: RoBERTa, XLM\n - Parent Model: XLM-RoBERTa-large\n- Resources for more information: \n -GitHub Repo\n -Associated Paper# Uses## Direct Use\n\nThe model is a language model. The model can be used for token classification, a natural language understanding task in which a label is assigned to some tokens in a text.## Downstream Use\n\nPotential downstream use cases include Named Entity Recognition (NER) and Part-of-Speech (PoS) tagging. To learn more about token classification and other potential downstream use cases, see the Hugging Face token classification docs.## Out-of-Scope Use\n\nThe model should not be used to intentionally create hostile or alienating environments for people.# Bias, Risks, and Limitations\n\nCONTENT WARNING: Readers should be made aware that language generated by this model may be disturbing or offensive to some and may propagate historical and current stereotypes.\n\nSignificant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).## Recommendations\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model.# Training\n\nSee the following resources for training data and training procedure details: \n- XLM-RoBERTa-large model card\n- CoNLL-2003 data card\n- Associated paper# Evaluation\n\nSee the associated paper for evaluation details.# Environmental Impact\n\nCarbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).\n\n- Hardware Type: 500 32GB Nvidia V100 GPUs (from the associated paper)\n- Hours used: More information needed\n- Cloud Provider: More information needed\n- Compute Region: More information needed\n- Carbon Emitted: More information needed# Technical Specifications\n\nSee the associated paper for further details.\n\nBibTeX:\n\n\n\nAPA:\n- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., ... & Stoyanov, V. (2019). Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116.# Model Card Authors\n\nThis model card was written by the team at Hugging Face."
] | [
-0.078284353017807,
0.05698161944746971,
-0.004907669499516487,
0.02566375769674778,
0.05315014347434044,
0.00637844018638134,
0.09985920786857605,
0.05895530432462692,
0.07834873348474503,
0.06817571818828583,
0.043910399079322815,
0.023378007113933563,
0.08935042470693588,
0.11208686977624893,
0.00009532412514090538,
-0.2665860056877136,
0.0360226035118103,
-0.053646381944417953,
0.042158178985118866,
0.05520361661911011,
0.1042356938123703,
-0.054902851581573486,
0.0871552899479866,
0.0007944325916469097,
-0.023996200412511826,
0.002780720591545105,
-0.044565264135599136,
-0.014299615286290646,
0.0632413923740387,
0.07430614531040192,
0.03586967661976814,
0.03536852449178696,
0.09934759140014648,
-0.2130332738161087,
0.011465932242572308,
-0.0020425105467438698,
-0.03743375092744827,
0.029056381434202194,
0.06677385419607162,
-0.023589374497532845,
0.20141160488128662,
-0.11479123681783676,
0.013572223484516144,
0.039415180683135986,
-0.0767681896686554,
-0.06849326938390732,
-0.09220847487449646,
0.15779151022434235,
0.06971781700849533,
0.026245690882205963,
-0.02392488904297352,
0.10433389246463776,
-0.042287677526474,
0.03271130844950676,
0.13622954487800598,
-0.16921399533748627,
-0.042362142354249954,
0.14227032661437988,
0.03836651146411896,
0.014146356843411922,
-0.09650640934705734,
0.04782501235604286,
0.054314687848091125,
0.0041242861188948154,
-0.008437237702310085,
-0.048754699528217316,
0.13443702459335327,
-0.02352888695895672,
-0.13665242493152618,
0.00034860381856560707,
0.1454501450061798,
0.05574025213718414,
-0.06397847831249237,
-0.1140916645526886,
0.006938737351447344,
0.04747617989778519,
-0.02896682731807232,
-0.05750642716884613,
0.010590325109660625,
-0.03300301358103752,
0.0945255383849144,
-0.03578738123178482,
-0.06525714695453644,
0.013701340183615685,
0.01254911907017231,
0.16702231764793396,
0.029864922165870667,
0.0074101779609918594,
0.02122540771961212,
0.060043517500162125,
-0.07637151330709457,
-0.10380478203296661,
-0.0536012127995491,
-0.06467893719673157,
-0.078874871134758,
-0.05066704750061035,
0.05429154261946678,
0.025231748819351196,
0.02136581391096115,
0.11518017202615738,
-0.06732869148254395,
0.06276613473892212,
0.07852450758218765,
0.029784150421619415,
0.07359882444143295,
0.09550359845161438,
-0.02164415270090103,
-0.11630122363567352,
-0.0027741603553295135,
0.026831571012735367,
-0.002743242308497429,
-0.01691877655684948,
-0.07560108602046967,
-0.02698333188891411,
0.023915916681289673,
0.07157176733016968,
0.026420464739203453,
0.01772082969546318,
-0.03480066731572151,
-0.008705229498445988,
0.1322181522846222,
-0.09652786701917648,
0.02296661026775837,
0.01946898363530636,
-0.03759101778268814,
0.025064360350370407,
-0.03373809903860092,
0.011144975200295448,
-0.038787841796875,
0.07459168881177902,
-0.038572072982788086,
-0.014490064233541489,
-0.05719444900751114,
-0.08820411562919617,
0.04773775115609169,
-0.022655151784420013,
0.027752690017223358,
-0.11275644600391388,
-0.13958658277988434,
-0.07666254043579102,
0.04096709191799164,
-0.05899958685040474,
-0.042493321001529694,
-0.018785962834954262,
-0.07756929099559784,
-0.01789267733693123,
0.012698124162852764,
0.00046215765178203583,
-0.03479635342955589,
-0.01761797070503235,
-0.08360114693641663,
0.015617365017533302,
0.030172161757946014,
-0.0027697179466485977,
-0.0550854355096817,
0.04547186568379402,
-0.114674873650074,
0.08328013122081757,
-0.11602014303207397,
-0.01577969826757908,
-0.10338874161243439,
-0.07816343009471893,
0.0084671750664711,
0.03462277352809906,
0.010575925931334496,
0.18174460530281067,
-0.1485651582479477,
-0.032151974737644196,
0.12052400410175323,
-0.09984789788722992,
-0.04637663811445236,
0.09357817471027374,
-0.029016204178333282,
0.0928092673420906,
0.09014659374952316,
0.11119869351387024,
0.14351172745227814,
-0.12202409654855728,
-0.06966079771518707,
0.04114486277103424,
0.02812584675848484,
0.13790524005889893,
0.060679033398628235,
0.013004221953451633,
-0.0190139003098011,
0.011114425957202911,
-0.08716791868209839,
-0.022035673260688782,
-0.03351563215255737,
-0.08383331447839737,
0.035833410918712616,
-0.02265191823244095,
0.053246721625328064,
0.02926276996731758,
-0.03764883428812027,
-0.028284087777137756,
-0.07110319286584854,
-0.01138472743332386,
0.09137414395809174,
-0.005939536262303591,
-0.025539370253682137,
-0.04101939871907234,
0.04731658846139908,
0.01013159565627575,
0.007220457773655653,
-0.10717210918664932,
-0.06911560148000717,
0.030308129265904427,
-0.12030131369829178,
0.099488765001297,
0.14025664329528809,
0.051003068685531616,
0.06550179421901703,
-0.06181451678276062,
-0.04033922404050827,
-0.025837425142526627,
0.012225162237882614,
-0.04680465906858444,
-0.21047109365463257,
-0.012333891354501247,
-0.06003474444150925,
0.08301658183336258,
-0.2433645874261856,
0.019442124292254448,
0.06831846386194229,
0.0804760754108429,
-0.00690486840903759,
-0.00706852413713932,
0.005845328327268362,
0.02347400039434433,
-0.0047785150818526745,
-0.029966510832309723,
0.01191939227283001,
-0.028319086879491806,
-0.08571307361125946,
0.056251704692840576,
-0.08226945996284485,
0.03596831113100052,
0.04303012043237686,
0.055654771625995636,
-0.11766891181468964,
-0.034159597009420395,
-0.0336776003241539,
-0.023014189675450325,
-0.045335523784160614,
-0.026166219264268875,
0.16704927384853363,
0.010636486113071442,
0.018547601997852325,
-0.07364723086357117,
-0.04545959457755089,
0.0045738499611616135,
-0.04323119297623634,
-0.049986064434051514,
0.13213106989860535,
0.037264805287122726,
-0.20722931623458862,
0.09944796562194824,
0.05322978273034096,
0.021694382652640343,
0.18768802285194397,
-0.00593445124104619,
-0.0385097861289978,
-0.03428658843040466,
0.0207070205360651,
-0.015333009883761406,
0.14241105318069458,
-0.03962848335504532,
-0.010202966630458832,
0.026996316388249397,
0.01191432774066925,
0.027782762423157692,
-0.07813359051942825,
-0.011059697717428207,
-0.01013907603919506,
-0.027886413037776947,
-0.01697062887251377,
0.028147278353571892,
-0.0336700975894928,
0.0979897528886795,
-0.0012349123135209084,
-0.035855766385793686,
-0.020433232188224792,
-0.021793154999613762,
-0.1278255581855774,
0.18911615014076233,
-0.06144706904888153,
-0.15657174587249756,
-0.0617610439658165,
0.018009435385465622,
-0.057763516902923584,
-0.016741616651415825,
-0.004979558289051056,
-0.06930387765169144,
-0.07166597247123718,
-0.045016467571258545,
0.06684103608131409,
-0.048046112060546875,
-0.058166272938251495,
-0.06890368461608887,
0.019558265805244446,
-0.03783341497182846,
-0.09795960038900375,
-0.029358338564634323,
-0.0044688209891319275,
-0.03223739191889763,
0.025728411972522736,
-0.01592853292822838,
0.10452553629875183,
0.11128586530685425,
-0.02153960056602955,
-0.01586870104074478,
-0.017654016613960266,
0.2143172025680542,
-0.11254503577947617,
0.1093679815530777,
0.08740150928497314,
-0.030788172036409378,
0.07644754648208618,
0.15777438879013062,
0.047758832573890686,
-0.03522546589374542,
-0.026888828724622726,
-0.00838171225041151,
-0.04632164537906647,
-0.21475005149841309,
-0.0895577222108841,
-0.03599575161933899,
-0.016782086342573166,
0.012171213515102863,
0.046932049095630646,
0.05157875642180443,
0.06653498858213425,
-0.09033176302909851,
-0.030840110033750534,
0.066108837723732,
0.07857239246368408,
0.011004213243722916,
-0.005324455909430981,
0.056542765349149704,
-0.04292624443769455,
-0.02718016877770424,
0.07585375010967255,
0.025805719196796417,
0.1660880744457245,
0.03873268514871597,
0.03264489769935608,
0.07216324657201767,
0.030572976917028427,
0.016701173037290573,
0.054129648953676224,
0.01470919232815504,
-0.008824769407510757,
-0.02898525446653366,
-0.06757756322622299,
0.02979408949613571,
0.13016071915626526,
0.045400794595479965,
-0.012286342680454254,
-0.007967498153448105,
0.012678524479269981,
0.05776754394173622,
0.04322211071848869,
0.039580442011356354,
-0.10546302795410156,
-0.05422985553741455,
0.07441103458404541,
-0.0012938864529132843,
-0.048177123069763184,
0.00010658940300345421,
0.05888352543115616,
-0.15331165492534637,
0.11853182315826416,
0.007598660420626402,
0.08066368103027344,
-0.08288218080997467,
0.003285219194367528,
-0.060706935822963715,
0.07291718572378159,
-0.0194491408765316,
0.11338700354099274,
-0.17969831824302673,
0.1818021833896637,
0.010381911881268024,
0.06460857391357422,
-0.09468283504247665,
0.014778995886445045,
0.04957103729248047,
0.0980769693851471,
0.15920871496200562,
0.04748249426484108,
-0.1610984057188034,
-0.08939837664365768,
-0.01642533764243126,
0.012643638998270035,
0.07278206944465637,
-0.04364321753382683,
0.052251555025577545,
0.024791035801172256,
-0.01581079512834549,
-0.03293820843100548,
-0.022658882662653923,
-0.18411566317081451,
-0.09742972999811172,
0.06605345010757446,
-0.10216439515352249,
-0.025681009516119957,
-0.04960814118385315,
-0.06008303537964821,
-0.08514468371868134,
0.15340542793273926,
-0.09125174582004547,
-0.06299351155757904,
-0.09115026891231537,
-0.01729784905910492,
0.09402531385421753,
-0.10955075919628143,
-0.021636825054883957,
0.008072813972830772,
0.09451276063919067,
-0.0637044906616211,
-0.02783898450434208,
0.022994007915258408,
-0.10932111740112305,
-0.16218796372413635,
-0.011879825964570045,
0.09035889804363251,
0.12390978634357452,
0.07363645732402802,
0.03436600789427757,
0.005133839789777994,
0.0040633585304021835,
-0.17366446554660797,
0.03926071152091026,
0.07771296799182892,
-0.0040664090774953365,
0.055353082716464996,
-0.07810337096452713,
-0.13585831224918365,
-0.07187312096357346,
-0.04404022544622421,
0.04403863102197647,
0.23972520232200623,
-0.05166567862033844,
0.0986274778842926,
0.15415717661380768,
-0.09982280433177948,
-0.2259223908185959,
0.033764325082302094,
0.04942469298839569,
0.034535959362983704,
0.014785852283239365,
-0.15269121527671814,
0.05303477123379707,
0.0051751271821558475,
-0.007599454838782549,
0.04358597844839096,
-0.1613638699054718,
-0.0982736200094223,
0.10127931088209152,
0.03437041491270065,
0.014974046498537064,
-0.09787289798259735,
-0.04259798675775528,
-0.029546979814767838,
-0.053568415343761444,
0.038006044924259186,
-0.06715921312570572,
0.022491972893476486,
0.033232152462005615,
0.021629534661769867,
0.03460283949971199,
-0.022669833153486252,
0.17104411125183105,
0.058954834938049316,
0.04335744306445122,
-0.05582732707262039,
-0.09415389597415924,
0.045923564583063126,
-0.028377791866660118,
0.13352346420288086,
-0.018096329644322395,
0.018845712766051292,
-0.07873687148094177,
-0.03763057291507721,
-0.0774836540222168,
0.12033148109912872,
-0.07936219871044159,
-0.08346638083457947,
-0.08803270012140274,
0.10485365986824036,
0.061551254242658615,
-0.00392853282392025,
0.032217223197221756,
-0.06936654448509216,
0.010033220052719116,
0.04928342252969742,
0.16283559799194336,
0.04596167057752609,
-0.03560170158743858,
0.00015640351921319962,
-0.03266465291380882,
0.0344679020345211,
-0.10152687132358551,
-0.009836678393185139,
0.09472803771495819,
0.031206896528601646,
0.10167869180440903,
-0.016240661963820457,
-0.1522921621799469,
-0.016686785966157913,
0.04356784746050835,
-0.05530332028865814,
-0.1593957543373108,
-0.05765954405069351,
0.010644156485795975,
-0.033828966319561005,
0.004593433812260628,
0.10102228820323944,
-0.08088208734989166,
0.0008516334928572178,
-0.026813283562660217,
0.04090173542499542,
-0.012783750891685486,
0.10160181671380997,
0.08724402636289597,
0.0657154843211174,
-0.060671910643577576,
0.02835421822965145,
0.03426739200949669,
-0.010137448087334633,
0.02663552202284336,
0.049267567694187164,
-0.0719064325094223,
-0.056944590061903,
-0.014121368527412415,
0.13162639737129211,
-0.04703552648425102,
-0.07925286889076233,
0.0037242118269205093,
-0.11220461130142212,
0.01563527062535286,
0.11970303952693939,
0.03693385794758797,
-0.043336208909749985,
0.029202912002801895,
0.008413736708462238,
-0.022135064005851746,
0.07135537266731262,
0.06519539654254913,
0.021292326971888542,
-0.07321189343929291,
0.01593519188463688,
-0.0031082089990377426,
0.07793928682804108,
-0.025002654641866684,
0.0028367177583277225,
-0.13780739903450012,
-0.017105022445321083,
-0.10693158954381943,
0.00899635348469019,
-0.11439793556928635,
0.02470140904188156,
-0.02246246673166752,
-0.07732166349887848,
-0.015242158435285091,
0.011817886494100094,
-0.06476224958896637,
0.004052603617310524,
-0.015503830276429653,
0.10746031254529953,
-0.07855092734098434,
-0.028109285980463028,
0.06131152808666229,
-0.07949579507112503,
0.04508887603878975,
-0.005072019062936306,
0.0019965562969446182,
0.05725514888763428,
-0.12225931137800217,
0.056565918028354645,
0.015340476296842098,
0.04591139405965805,
0.010659036226570606,
-0.13572347164154053,
-0.013089572079479694,
-0.031012771651148796,
0.00259965006262064,
0.018647875636816025,
-0.02876150980591774,
-0.031508393585681915,
0.0742398351430893,
-0.02831198275089264,
-0.10430990159511566,
-0.023094534873962402,
0.09365799278020859,
0.057084422558546066,
-0.020454563200473785,
0.08480753004550934,
-0.031547024846076965,
0.06977349519729614,
-0.11294183135032654,
-0.006568367127329111,
0.009315000846982002,
-0.04151372238993645,
0.01633291505277157,
-0.04612873122096062,
0.055673759430646896,
-0.031060056760907173,
0.17081162333488464,
0.019331173971295357,
0.00384588073939085,
0.02947658859193325,
0.026305679231882095,
-0.004317237064242363,
0.02559119462966919,
0.007781205698847771,
0.015817726030945778,
0.01747254841029644,
-0.07517661899328232,
0.016550779342651367,
-0.03832770138978958,
-0.10255484282970428,
0.14143115282058716,
0.07289434969425201,
0.03110046312212944,
0.03742583841085434,
0.03491656109690666,
-0.10204233229160309,
-0.03888921067118645,
0.021633628755807877,
-0.001486901193857193,
-0.005944680422544479,
-0.04193393141031265,
0.09266747534275055,
0.17540113627910614,
-0.17792630195617676,
0.08818266540765762,
-0.013664617203176022,
-0.07640145719051361,
-0.09982563555240631,
-0.20107856392860413,
-0.06142336502671242,
0.02057640627026558,
0.028349660336971283,
-0.09798794984817505,
-0.003782820887863636,
0.03136524185538292,
0.02785285748541355,
-0.012998541817069054,
0.08479013293981552,
-0.07232314348220825,
-0.05362696573138237,
0.05797838792204857,
0.02547229826450348,
0.011355183087289333,
-0.027789350599050522,
0.015443074516952038,
-0.016752395778894424,
-0.017308641225099564,
0.012090208940207958,
0.020657243207097054,
-0.00998358428478241,
-0.004749652463942766,
-0.00363509776070714,
-0.0604790598154068,
-0.012499958276748657,
-0.011078538373112679,
0.06731956452131271,
0.11889956146478653,
0.02217375859618187,
-0.0343741737306118,
-0.0001032855361700058,
0.09064185619354248,
-0.012158006429672241,
-0.10576009750366211,
-0.09394148737192154,
0.1383608728647232,
-0.02581692859530449,
0.04377229884266853,
0.04644577205181122,
-0.06919661909341812,
0.06336226314306259,
0.130667582154274,
0.21619118750095367,
-0.0025992831215262413,
0.02272416092455387,
-0.008372751995921135,
0.007372551131993532,
0.0035826736129820347,
0.04283656179904938,
-0.004385093227028847,
0.2143612802028656,
-0.07926546037197113,
0.09148824959993362,
-0.03781290352344513,
-0.02497757412493229,
-0.03689485788345337,
0.11880123615264893,
0.038335926830768585,
-0.024044616147875786,
-0.06405634433031082,
0.1192544624209404,
-0.08674759417772293,
-0.1845519244670868,
0.009732211008667946,
-0.08757204562425613,
-0.08950205147266388,
-0.021292798221111298,
-0.03898727148771286,
0.04463118314743042,
0.06626711040735245,
-0.012378673069179058,
-0.043048013001680374,
0.054058484733104706,
0.02498423121869564,
-0.07258640229701996,
-0.009552979841828346,
0.08176812529563904,
0.03115224465727806,
0.16557413339614868,
-0.0060980115085840225,
0.14157626032829285,
0.10068835318088531,
-0.03520269691944122,
-0.0581451952457428,
0.031579867005348206,
0.06655214726924896,
-0.05440572276711464,
0.008050051517784595,
0.11116752028465271,
-0.023827441036701202,
0.05942712724208832,
0.09733302891254425,
-0.05951546132564545,
0.04321089759469032,
0.04845578223466873,
-0.06015653535723686,
-0.0676947832107544,
0.1707790195941925,
-0.09326589107513428,
0.14686936140060425,
0.12178902328014374,
-0.006368888542056084,
-0.02018977701663971,
-0.048023756593465805,
0.07925859093666077,
0.020345766097307205,
0.07629966735839844,
0.02100411430001259,
-0.10549364984035492,
-0.0065725562162697315,
-0.02355276420712471,
0.08539175987243652,
-0.12857872247695923,
-0.06570608913898468,
0.016959281638264656,
0.0022827275097370148,
-0.036521267145872116,
0.08862876892089844,
0.04829750955104828,
-0.014359666965901852,
-0.026538217440247536,
-0.15072941780090332,
-0.006620696745812893,
0.07649701833724976,
-0.06461745500564575,
-0.030173368752002716
] |
null | null | transformers |
# XLM-RoBERTa (large-sized model)
XLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/abs/1911.02116) by Conneau et al. and first released in [this repository](https://github.com/pytorch/fairseq/tree/master/examples/xlmr).
Disclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
XLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages.
RoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.
This way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.
## Intended uses & limitations
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?search=xlm-roberta) to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
## Usage
You can use this model directly with a pipeline for masked language modeling:
```python
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='xlm-roberta-large')
>>> unmasker("Hello I'm a <mask> model.")
[{'score': 0.10563907772302628,
'sequence': "Hello I'm a fashion model.",
'token': 54543,
'token_str': 'fashion'},
{'score': 0.08015287667512894,
'sequence': "Hello I'm a new model.",
'token': 3525,
'token_str': 'new'},
{'score': 0.033413201570510864,
'sequence': "Hello I'm a model model.",
'token': 3299,
'token_str': 'model'},
{'score': 0.030217764899134636,
'sequence': "Hello I'm a French model.",
'token': 92265,
'token_str': 'French'},
{'score': 0.026436051353812218,
'sequence': "Hello I'm a sexy model.",
'token': 17473,
'token_str': 'sexy'}]
```
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained('xlm-roberta-large')
model = AutoModelForMaskedLM.from_pretrained("xlm-roberta-large")
# prepare input
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
# forward pass
output = model(**encoded_input)
```
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1911-02116,
author = {Alexis Conneau and
Kartikay Khandelwal and
Naman Goyal and
Vishrav Chaudhary and
Guillaume Wenzek and
Francisco Guzm{\'{a}}n and
Edouard Grave and
Myle Ott and
Luke Zettlemoyer and
Veselin Stoyanov},
title = {Unsupervised Cross-lingual Representation Learning at Scale},
journal = {CoRR},
volume = {abs/1911.02116},
year = {2019},
url = {http://arxiv.org/abs/1911.02116},
eprinttype = {arXiv},
eprint = {1911.02116},
timestamp = {Mon, 11 Nov 2019 18:38:09 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1911-02116.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
<a href="https://huggingface.co/exbert/?model=xlm-roberta-base">
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
</a>
| {"language": ["multilingual", "af", "am", "ar", "as", "az", "be", "bg", "bn", "br", "bs", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fr", "fy", "ga", "gd", "gl", "gu", "ha", "he", "hi", "hr", "hu", "hy", "id", "is", "it", "ja", "jv", "ka", "kk", "km", "kn", "ko", "ku", "ky", "la", "lo", "lt", "lv", "mg", "mk", "ml", "mn", "mr", "ms", "my", "ne", "nl", false, "om", "or", "pa", "pl", "ps", "pt", "ro", "ru", "sa", "sd", "si", "sk", "sl", "so", "sq", "sr", "su", "sv", "sw", "ta", "te", "th", "tl", "tr", "ug", "uk", "ur", "uz", "vi", "xh", "yi", "zh"], "license": "mit", "tags": ["exbert"]} | fill-mask | FacebookAI/xlm-roberta-large | [
"transformers",
"pytorch",
"tf",
"jax",
"onnx",
"safetensors",
"xlm-roberta",
"fill-mask",
"exbert",
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh",
"arxiv:1911.02116",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1911.02116"
] | [
"multilingual",
"af",
"am",
"ar",
"as",
"az",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cs",
"cy",
"da",
"de",
"el",
"en",
"eo",
"es",
"et",
"eu",
"fa",
"fi",
"fr",
"fy",
"ga",
"gd",
"gl",
"gu",
"ha",
"he",
"hi",
"hr",
"hu",
"hy",
"id",
"is",
"it",
"ja",
"jv",
"ka",
"kk",
"km",
"kn",
"ko",
"ku",
"ky",
"la",
"lo",
"lt",
"lv",
"mg",
"mk",
"ml",
"mn",
"mr",
"ms",
"my",
"ne",
"nl",
"no",
"om",
"or",
"pa",
"pl",
"ps",
"pt",
"ro",
"ru",
"sa",
"sd",
"si",
"sk",
"sl",
"so",
"sq",
"sr",
"su",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"ug",
"uk",
"ur",
"uz",
"vi",
"xh",
"yi",
"zh"
] | TAGS
#transformers #pytorch #tf #jax #onnx #safetensors #xlm-roberta #fill-mask #exbert #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us
|
# XLM-RoBERTa (large-sized model)
XLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. and first released in this repository.
Disclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
XLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages.
RoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.
This way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.
## Intended uses & limitations
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
## Usage
You can use this model directly with a pipeline for masked language modeling:
Here is how to use this model to get the features of a given text in PyTorch:
### BibTeX entry and citation info
<a href="URL
<img width="300px" src="URL
</a>
| [
"# XLM-RoBERTa (large-sized model) \n\nXLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. and first released in this repository. \n\nDisclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team.",
"## Model description\n\nXLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. \n\nRoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.\n\nMore precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.\n\nThis way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.",
"## Intended uses & limitations\n\nYou can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.",
"## Usage\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\n\nHere is how to use this model to get the features of a given text in PyTorch:",
"### BibTeX entry and citation info\n\n\n\n<a href=\"URL\n\t<img width=\"300px\" src=\"URL\n</a>"
] | [
"TAGS\n#transformers #pytorch #tf #jax #onnx #safetensors #xlm-roberta #fill-mask #exbert #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"# XLM-RoBERTa (large-sized model) \n\nXLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. and first released in this repository. \n\nDisclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team.",
"## Model description\n\nXLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. \n\nRoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.\n\nMore precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.\n\nThis way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.",
"## Intended uses & limitations\n\nYou can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.",
"## Usage\n\nYou can use this model directly with a pipeline for masked language modeling:\n\n\n\nHere is how to use this model to get the features of a given text in PyTorch:",
"### BibTeX entry and citation info\n\n\n\n<a href=\"URL\n\t<img width=\"300px\" src=\"URL\n</a>"
] | [
274,
116,
307,
129,
40,
34
] | [
"passage: TAGS\n#transformers #pytorch #tf #jax #onnx #safetensors #xlm-roberta #fill-mask #exbert #multilingual #af #am #ar #as #az #be #bg #bn #br #bs #ca #cs #cy #da #de #el #en #eo #es #et #eu #fa #fi #fr #fy #ga #gd #gl #gu #ha #he #hi #hr #hu #hy #id #is #it #ja #jv #ka #kk #km #kn #ko #ku #ky #la #lo #lt #lv #mg #mk #ml #mn #mr #ms #my #ne #nl #no #om #or #pa #pl #ps #pt #ro #ru #sa #sd #si #sk #sl #so #sq #sr #su #sv #sw #ta #te #th #tl #tr #ug #uk #ur #uz #vi #xh #yi #zh #arxiv-1911.02116 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n# XLM-RoBERTa (large-sized model) \n\nXLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. and first released in this repository. \n\nDisclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team."
] | [
-0.043158017098903656,
0.015528852120041847,
-0.007131282240152359,
0.029742933809757233,
0.05734419450163841,
0.055560871958732605,
0.1074867844581604,
0.11321468651294708,
0.04660271480679512,
0.12051241844892502,
0.10984273254871368,
0.05930417776107788,
0.10899263620376587,
0.13782690465450287,
0.011407214216887951,
-0.2341301292181015,
0.008210568688809872,
-0.058415669947862625,
-0.011886200867593288,
0.08636003732681274,
0.061964068561792374,
-0.060160938650369644,
0.10570816695690155,
-0.03083898313343525,
0.022395698353648186,
-0.008754318580031395,
-0.038823481649160385,
-0.017771076411008835,
0.018807929009199142,
0.07568656653165817,
0.027727900072932243,
0.07831663638353348,
0.07572775334119797,
-0.22961951792240143,
0.029377728700637817,
0.02270902507007122,
-0.05748584121465683,
0.024405771866440773,
0.043581772595644,
-0.08039446920156479,
0.1604558676481247,
-0.08693636208772659,
-0.028167743235826492,
0.03047562576830387,
-0.17309992015361786,
-0.20330171287059784,
-0.10372772067785263,
0.10891315340995789,
0.054688356816768646,
0.033486101776361465,
-0.058561772108078,
0.07971996068954468,
-0.06882990151643753,
0.03420035541057587,
0.17730176448822021,
-0.25297632813453674,
-0.05971027538180351,
0.0690731555223465,
0.09023885428905487,
0.05252363532781601,
-0.10046040266752243,
0.05302849039435387,
0.06643123179674149,
0.014850477688014507,
-0.029408048838377,
-0.032809559255838394,
0.15470480918884277,
0.031399670988321304,
-0.13657855987548828,
-0.007891190238296986,
0.12898434698581696,
0.03382393717765808,
-0.00765831395983696,
-0.03367936611175537,
-0.013843563385307789,
-0.08633022010326385,
-0.04436688870191574,
-0.01884530484676361,
0.028216056525707245,
-0.0014347709948197007,
0.03323475271463394,
0.02608037367463112,
-0.07588683813810349,
0.01898273639380932,
-0.017488153651356697,
0.1338171362876892,
0.012393135577440262,
0.01492215320467949,
-0.03873361647129059,
0.0132390595972538,
-0.05176695063710213,
-0.11794883012771606,
-0.019876327365636826,
-0.023854730650782585,
-0.016255466267466545,
-0.006010463461279869,
0.04950138181447983,
0.027515621855854988,
0.06783582270145416,
0.13401484489440918,
-0.07118730247020721,
0.06356353312730789,
0.08270710706710815,
0.07056412100791931,
0.07277336716651917,
0.11112646758556366,
-0.10832667350769043,
-0.06456764787435532,
-0.09437030553817749,
0.05342964828014374,
0.016010425984859467,
-0.0275137759745121,
-0.059631116688251495,
0.05219123512506485,
-0.038291409611701965,
0.03478142246603966,
0.022917773574590683,
0.05885649099946022,
-0.04968922212719917,
0.02543218992650509,
0.09980689734220505,
-0.089908666908741,
0.02881242334842682,
0.05415428429841995,
0.010572157800197601,
0.05740945041179657,
-0.013620656915009022,
0.008959082886576653,
0.015988187864422798,
0.10852795094251633,
-0.06288626790046692,
0.004448655527085066,
-0.01700284704566002,
-0.06415077298879623,
0.04149436578154564,
-0.06116988882422447,
-0.00520747946575284,
-0.1091545894742012,
-0.05113820359110832,
-0.0682460218667984,
0.028159216046333313,
-0.06763748079538345,
0.01967068575322628,
-0.06499335914850235,
-0.08962103724479675,
0.05868399515748024,
0.016265269368886948,
0.03661808371543884,
-0.0758109986782074,
0.05673307180404663,
-0.03401200845837593,
0.08841003477573395,
0.016649417579174042,
0.028459057211875916,
-0.05877992510795593,
0.09286496788263321,
-0.10344476252794266,
0.03315028175711632,
-0.09692037850618362,
0.018344368785619736,
-0.10448918491601944,
-0.09691870957612991,
-0.04762471467256546,
0.04802802950143814,
0.027000732719898224,
0.18693065643310547,
-0.20426936447620392,
-0.08687695115804672,
0.2102903127670288,
-0.06241918355226517,
-0.04605650529265404,
0.12509828805923462,
0.032033924013376236,
0.04322422295808792,
0.025897249579429626,
0.15344534814357758,
0.04656236991286278,
-0.11197426170110703,
-0.08458017557859421,
0.038058701902627945,
0.010611357167363167,
0.16067221760749817,
0.09786149114370346,
-0.014386814087629318,
0.03127729892730713,
0.019026802852749825,
-0.052386123687028885,
0.004780834540724754,
-0.07075238972902298,
-0.08059313893318176,
0.06290226429700851,
-0.05225677415728569,
0.08434972167015076,
0.05670303478837013,
-0.03126072138547897,
-0.04261058568954468,
-0.09175555408000946,
-0.07035591453313828,
0.10052677989006042,
0.023455457761883736,
0.0007738423882983625,
-0.08853019773960114,
0.11475757509469986,
0.01183242816478014,
0.019697366282343864,
-0.0760783776640892,
0.05736415088176727,
-0.016258604824543,
-0.020007982850074768,
0.07071565091609955,
0.08486595749855042,
0.09716518223285675,
0.023955531418323517,
-0.05572066828608513,
-0.06712500005960464,
0.05849792808294296,
-0.000052110874094069004,
-0.06283830106258392,
-0.2206842005252838,
0.015295549295842648,
-0.06170018017292023,
0.09485012292861938,
-0.19757452607154846,
0.017428351566195488,
0.05517822131514549,
0.1235722154378891,
0.013330996967852116,
-0.013934255577623844,
-0.011109448969364166,
0.04228101670742035,
-0.01734354719519615,
-0.01431199163198471,
0.04810218885540962,
-0.030050959438085556,
-0.06899616867303848,
0.03576793894171715,
-0.12652431428432465,
0.0012736937496811152,
0.10143724083900452,
-0.02384466491639614,
-0.11278049647808075,
0.09760315716266632,
-0.023626659065485,
-0.015603943727910519,
0.03929701820015907,
0.0008243074407801032,
0.09560952335596085,
0.00014278791786637157,
0.05267201364040375,
-0.07617398351430893,
-0.047193191945552826,
0.040741510689258575,
-0.06848330795764923,
-0.09876545518636703,
0.19464564323425293,
0.05849410220980644,
-0.1965426504611969,
0.15361228585243225,
0.194862961769104,
0.061126962304115295,
0.23268480598926544,
0.011868033558130264,
-0.04220844805240631,
-0.09574588388204575,
0.015399552881717682,
0.022370869293808937,
0.10645604878664017,
-0.08504081517457962,
-0.019296253100037575,
-0.018370836973190308,
-0.01426801085472107,
0.010996138677001,
-0.08919653296470642,
-0.05176537483930588,
-0.03790246322751045,
-0.04549902305006981,
0.0005750147975049913,
0.06938314437866211,
-0.06461751461029053,
0.10527951270341873,
0.04268277809023857,
-0.013996697030961514,
-0.04669412598013878,
-0.03110155090689659,
-0.0812806561589241,
0.16307702660560608,
-0.13081185519695282,
-0.15811215341091156,
-0.030488135293126106,
-0.051628805696964264,
0.012255744077265263,
-0.002937848912551999,
0.007875398732721806,
-0.1409955769777298,
-0.023668991401791573,
-0.029792049899697304,
0.043011147528886795,
-0.0786643922328949,
-0.03978152945637703,
-0.019317060708999634,
-0.008985753171145916,
-0.0068268668837845325,
-0.0612708143889904,
-0.012165448628365993,
-0.0056533850729465485,
-0.06593509763479233,
0.07022006809711456,
-0.047777485102415085,
0.08752621710300446,
0.12521515786647797,
0.03366738185286522,
0.009942568838596344,
-0.0031737142708152533,
0.20820052921772003,
-0.13274642825126648,
0.021317215636372566,
0.00016897221212275326,
-0.020530201494693756,
0.06734687089920044,
0.14431795477867126,
0.03988515958189964,
-0.06120128929615021,
-0.037672337144613266,
0.00005591339140664786,
-0.03715670108795166,
-0.1713433563709259,
-0.06827875971794128,
-0.035738639533519745,
0.09343450516462326,
-0.0006431667716242373,
0.08049147576093674,
-0.04701549559831619,
0.0017240098677575588,
-0.058438315987586975,
-0.0733642503619194,
0.013236941769719124,
-0.0006966778310015798,
-0.04159871116280556,
-0.053799841552972794,
0.030605357140302658,
-0.03667839989066124,
-0.03173111751675606,
0.0959830954670906,
0.017440102994441986,
0.03013303503394127,
0.07786130905151367,
0.05096174031496048,
0.07649293541908264,
0.08299417048692703,
0.023063313215970993,
0.013579449616372585,
0.02751518413424492,
-0.009122082963585854,
-0.012388241477310658,
-0.06705683469772339,
0.004490204155445099,
0.07077822834253311,
0.11149211972951889,
-0.008286952041089535,
-0.013452126644551754,
0.0015003645094111562,
0.09247072041034698,
0.06634249538183212,
0.10183935612440109,
-0.1056625172495842,
-0.011713403277099133,
0.08439891040325165,
0.02290135808289051,
-0.05848131328821182,
0.021598732098937035,
0.054566171020269394,
-0.09686166793107986,
0.12758764624595642,
0.049189917743206024,
0.04509532451629639,
-0.0578511618077755,
0.015294281765818596,
0.04113847017288208,
0.028494592756032944,
-0.021704858168959618,
0.05838672071695328,
-0.21052342653274536,
0.2291131168603897,
0.0268509853631258,
0.025169184431433678,
-0.007826216518878937,
-0.03245089203119278,
0.03668777644634247,
0.06340881437063217,
0.19561229646205902,
0.0712573230266571,
-0.16823647916316986,
-0.15233340859413147,
-0.025731101632118225,
-0.014812333509325981,
0.13784559071063995,
-0.06257316470146179,
0.07259123772382736,
0.014452720992267132,
-0.03571441024541855,
-0.03283390402793884,
0.06680189073085785,
-0.09229367971420288,
-0.06283155083656311,
0.08735006302595139,
-0.09672632813453674,
-0.04340679198503494,
-0.032156802713871,
-0.06183527410030365,
-0.19999906420707703,
0.06621959805488586,
-0.10687840729951859,
-0.025936605408787727,
-0.06994743645191193,
-0.01061788760125637,
0.07389166206121445,
-0.11928892135620117,
-0.060306746512651443,
0.006296168081462383,
-0.0032322572078555822,
-0.037638865411281586,
-0.042979899793863297,
0.05850985646247864,
-0.05651847645640373,
-0.20761898159980774,
-0.026890479028224945,
0.08860097825527191,
0.09045682847499847,
0.08281386643648148,
-0.031507302075624466,
0.05809556320309639,
-0.002186124911531806,
-0.11839278787374496,
0.17350296676158905,
0.07273304462432861,
-0.03243030980229378,
0.07076388597488403,
-0.038044821470975876,
-0.10573532432317734,
-0.07599874585866928,
-0.07516153901815414,
0.04982971400022507,
0.3430517315864563,
-0.06505997478961945,
0.11397221684455872,
0.13764424622058868,
-0.11226792633533478,
-0.26978951692581177,
-0.10893913358449936,
-0.024474337697029114,
0.02689816616475582,
-0.008921904489398003,
-0.12530654668807983,
-0.029697488993406296,
0.027392232790589333,
-0.005447149742394686,
0.06734182685613632,
-0.2348925620317459,
-0.09215740114450455,
0.10774354636669159,
0.001709702075459063,
0.039400290697813034,
-0.19424006342887878,
-0.06525570154190063,
-0.031671978533267975,
-0.023896517232060432,
-0.01856028288602829,
-0.024319760501384735,
0.06499860435724258,
-0.015289315022528172,
0.008309833705425262,
-0.00567214610055089,
-0.0044123646803200245,
0.19105471670627594,
0.001765680150128901,
0.015626488253474236,
-0.09227596968412399,
-0.1514398455619812,
0.027442065998911858,
-0.006695030257105827,
0.008872928097844124,
-0.08843856304883957,
-0.026874396950006485,
-0.08416613191366196,
0.017890073359012604,
-0.12024039030075073,
0.03628538176417351,
-0.07931087911128998,
-0.017849065363407135,
-0.08502530306577682,
0.09670083224773407,
0.05282771587371826,
0.001413232064805925,
0.07207900285720825,
-0.08703054487705231,
0.14627735316753387,
0.07065589725971222,
0.14661361277103424,
0.07144802808761597,
0.012652525678277016,
-0.03231430426239967,
-0.03480635583400726,
0.014145717956125736,
-0.12081650644540787,
-0.0028751930221915245,
0.1128474771976471,
0.03439400717616081,
0.10881887376308441,
0.030461635440587997,
-0.13744692504405975,
-0.0035952881444245577,
0.11101476848125458,
-0.1246773973107338,
-0.23580621182918549,
-0.022456485778093338,
-0.06357244402170181,
-0.03453082963824272,
-0.03415602818131447,
0.09440506994724274,
-0.04711461067199707,
-0.014731128700077534,
-0.013197777792811394,
0.10117436945438385,
-0.05640007555484772,
0.10755571722984314,
0.0741090402007103,
0.02004263550043106,
-0.0698198452591896,
0.048378705978393555,
0.05660586804151535,
-0.011986822821199894,
0.020747821778059006,
0.13447414338588715,
-0.04392794147133827,
-0.08631730079650879,
-0.012538021430373192,
0.1803845316171646,
0.013037879019975662,
-0.025866946205496788,
0.015120024792850018,
-0.11114304512739182,
0.050193727016448975,
0.18018485605716705,
0.01633622869849205,
0.01610446535050869,
0.061874568462371826,
0.025746895000338554,
0.02993546426296234,
0.1046789214015007,
0.0579877570271492,
-0.008130373433232307,
-0.06034502014517784,
0.0848095491528511,
-0.02681536041200161,
0.10800234973430634,
-0.027298878878355026,
0.00016274821246042848,
-0.17834806442260742,
0.002679188037291169,
-0.06905627250671387,
0.013312469236552715,
-0.10079354792833328,
-0.01061435416340828,
0.0012554088607430458,
-0.05812191963195801,
-0.05516248941421509,
-0.06954299658536911,
-0.0824974775314331,
-0.010256549343466759,
0.007380504161119461,
0.10407304763793945,
-0.07780686765909195,
-0.04948650300502777,
0.058160316199064255,
-0.060072075575590134,
0.057791512459516525,
0.04932655766606331,
0.027650954201817513,
0.07308541983366013,
-0.15574100613594055,
-0.005943609867244959,
-0.02113982103765011,
0.01844516210258007,
0.004218635149300098,
-0.09959947317838669,
-0.051155924797058105,
-0.07453165203332901,
-0.016553055495023727,
0.04128195717930794,
-0.02320265956223011,
-0.03597922623157501,
0.13200537860393524,
-0.005138244945555925,
-0.062107570469379425,
-0.043681204319000244,
0.05914246290922165,
0.05210835859179497,
0.017283376306295395,
0.04180759936571121,
-0.08646392822265625,
0.0689351037144661,
-0.1476302444934845,
0.019623838365077972,
-0.004370612557977438,
-0.10476460307836533,
0.0051413835026323795,
-0.01986284740269184,
0.0668720006942749,
-0.041911620646715164,
0.10294438898563385,
0.029465166851878166,
-0.08553395420312881,
0.00933383870869875,
-0.04458808898925781,
-0.0714031532406807,
0.04341674596071243,
0.041763462126255035,
0.023480800911784172,
-0.043090954422950745,
-0.11044270545244217,
0.031786441802978516,
-0.05064933001995087,
-0.03871522098779678,
0.12981411814689636,
0.10904354602098465,
0.13888812065124512,
0.05461479350924492,
0.00952951330691576,
-0.13404613733291626,
-0.003930723760277033,
0.031051749363541603,
-0.09438145160675049,
0.01108326856046915,
-0.04743647575378418,
0.11119237542152405,
0.18406523764133453,
-0.17329485714435577,
0.06620845943689346,
-0.1094558835029602,
-0.06266991049051285,
-0.11946971714496613,
-0.1929473876953125,
-0.050269827246665955,
-0.03485572710633278,
0.034012529999017715,
-0.08937270939350128,
0.05960512533783913,
0.024897396564483643,
0.03492414951324463,
0.0029525866266340017,
0.039325300604104996,
-0.05370398610830307,
-0.027344753965735435,
0.07638957351446152,
0.01367110013961792,
-0.002805545926094055,
-0.10927452892065048,
0.036875657737255096,
0.027808886021375656,
-0.04525478556752205,
-0.011630364693701267,
0.024783175438642502,
-0.05886409804224968,
0.035316772758960724,
-0.05609530583024025,
-0.10249878466129303,
-0.0008297949680127203,
0.02268143929541111,
0.03747169300913811,
0.060288507491350174,
0.02879485674202442,
0.010867010802030563,
0.019295336678624153,
0.07306384295225143,
-0.04849438741803169,
-0.042069364339113235,
-0.08482105284929276,
0.15704098343849182,
-0.0744265615940094,
0.038829561322927475,
-0.010731207206845284,
-0.06537232547998428,
0.012095656245946884,
0.21687650680541992,
0.25551837682724,
-0.04969816282391548,
0.05078691989183426,
0.0002459057723172009,
0.03405485674738884,
0.0304743479937315,
-0.02410111017525196,
0.07000985741615295,
0.2107907384634018,
-0.10040191560983658,
0.04472048580646515,
-0.057537660002708435,
0.006194074172526598,
-0.010270532220602036,
0.05879247188568115,
0.054933954030275345,
0.004868329502642155,
-0.06706640124320984,
0.08491146564483643,
-0.17354077100753784,
-0.13634715974330902,
0.009693445637822151,
-0.16876220703125,
-0.0664706751704216,
-0.029057437554001808,
0.030927399173378944,
0.1059175580739975,
0.08560662716627121,
-0.01600528322160244,
-0.055232610553503036,
0.02311471290886402,
0.032715000212192535,
-0.07718299329280853,
0.010680987499654293,
0.04716641828417778,
-0.08225718140602112,
0.13494040071964264,
-0.026870643720030785,
0.025843417271971703,
0.11056295782327652,
-0.004963606130331755,
-0.034187689423561096,
0.027511391788721085,
0.06742958724498749,
-0.04517805948853493,
-0.039038561284542084,
0.119117371737957,
-0.006759936455637217,
0.004660935141146183,
0.10373765975236893,
-0.03472282364964485,
0.07735879719257355,
0.10776959359645844,
-0.05939323827624321,
-0.010683447122573853,
0.1467844843864441,
-0.0880696251988411,
0.1555819809436798,
0.1580028533935547,
-0.011265574023127556,
-0.02483028545975685,
-0.013236699625849724,
0.02514774352312088,
-0.02294234372675419,
0.06526440382003784,
-0.004645517561584711,
-0.1049174889922142,
-0.011821246705949306,
-0.04755319654941559,
0.07663843780755997,
-0.12081153690814972,
-0.029851067811250687,
-0.008499343879520893,
0.007951200008392334,
-0.05228409543633461,
0.1065685823559761,
0.11446617543697357,
0.01246836967766285,
-0.05141158029437065,
-0.11480618268251419,
0.018424615263938904,
0.13928353786468506,
-0.06762754172086716,
-0.03329092264175415
] |
null | null | transformers |
# XLNet (base-sized model)
XLNet model pre-trained on English language. It was introduced in the paper [XLNet: Generalized Autoregressive Pretraining for Language Understanding](https://arxiv.org/abs/1906.08237) by Yang et al. and first released in [this repository](https://github.com/zihangdai/xlnet/).
Disclaimer: The team releasing XLNet did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
XLNet is a new unsupervised language representation learning method based on a novel generalized permutation language modeling objective. Additionally, XLNet employs Transformer-XL as the backbone model, exhibiting excellent performance for language tasks involving long context. Overall, XLNet achieves state-of-the-art (SOTA) results on various downstream language tasks including question answering, natural language inference, sentiment analysis, and document ranking.
## Intended uses & limitations
The model is mostly intended to be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?search=xlnet) to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
## Usage
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import XLNetTokenizer, XLNetModel
tokenizer = XLNetTokenizer.from_pretrained('xlnet-base-cased')
model = XLNetModel.from_pretrained('xlnet-base-cased')
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
```
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1906-08237,
author = {Zhilin Yang and
Zihang Dai and
Yiming Yang and
Jaime G. Carbonell and
Ruslan Salakhutdinov and
Quoc V. Le},
title = {XLNet: Generalized Autoregressive Pretraining for Language Understanding},
journal = {CoRR},
volume = {abs/1906.08237},
year = {2019},
url = {http://arxiv.org/abs/1906.08237},
eprinttype = {arXiv},
eprint = {1906.08237},
timestamp = {Mon, 24 Jun 2019 17:28:45 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1906-08237.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
| {"language": "en", "license": "mit", "datasets": ["bookcorpus", "wikipedia"]} | text-generation | xlnet/xlnet-base-cased | [
"transformers",
"pytorch",
"tf",
"rust",
"xlnet",
"text-generation",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1906.08237",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1906.08237"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #rust #xlnet #text-generation #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1906.08237 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us
|
# XLNet (base-sized model)
XLNet model pre-trained on English language. It was introduced in the paper XLNet: Generalized Autoregressive Pretraining for Language Understanding by Yang et al. and first released in this repository.
Disclaimer: The team releasing XLNet did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
XLNet is a new unsupervised language representation learning method based on a novel generalized permutation language modeling objective. Additionally, XLNet employs Transformer-XL as the backbone model, exhibiting excellent performance for language tasks involving long context. Overall, XLNet achieves state-of-the-art (SOTA) results on various downstream language tasks including question answering, natural language inference, sentiment analysis, and document ranking.
## Intended uses & limitations
The model is mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
## Usage
Here is how to use this model to get the features of a given text in PyTorch:
### BibTeX entry and citation info
| [
"# XLNet (base-sized model) \n\nXLNet model pre-trained on English language. It was introduced in the paper XLNet: Generalized Autoregressive Pretraining for Language Understanding by Yang et al. and first released in this repository. \n\nDisclaimer: The team releasing XLNet did not write a model card for this model so this model card has been written by the Hugging Face team.",
"## Model description\n\nXLNet is a new unsupervised language representation learning method based on a novel generalized permutation language modeling objective. Additionally, XLNet employs Transformer-XL as the backbone model, exhibiting excellent performance for language tasks involving long context. Overall, XLNet achieves state-of-the-art (SOTA) results on various downstream language tasks including question answering, natural language inference, sentiment analysis, and document ranking.",
"## Intended uses & limitations\n\nThe model is mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.",
"## Usage\n\nHere is how to use this model to get the features of a given text in PyTorch:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #rust #xlnet #text-generation #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1906.08237 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n",
"# XLNet (base-sized model) \n\nXLNet model pre-trained on English language. It was introduced in the paper XLNet: Generalized Autoregressive Pretraining for Language Understanding by Yang et al. and first released in this repository. \n\nDisclaimer: The team releasing XLNet did not write a model card for this model so this model card has been written by the Hugging Face team.",
"## Model description\n\nXLNet is a new unsupervised language representation learning method based on a novel generalized permutation language modeling objective. Additionally, XLNet employs Transformer-XL as the backbone model, exhibiting excellent performance for language tasks involving long context. Overall, XLNet achieves state-of-the-art (SOTA) results on various downstream language tasks including question answering, natural language inference, sentiment analysis, and document ranking.",
"## Intended uses & limitations\n\nThe model is mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.",
"## Usage\n\nHere is how to use this model to get the features of a given text in PyTorch:",
"### BibTeX entry and citation info"
] | [
74,
89,
107,
115,
23,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #rust #xlnet #text-generation #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1906.08237 #license-mit #autotrain_compatible #endpoints_compatible #has_space #region-us \n# XLNet (base-sized model) \n\nXLNet model pre-trained on English language. It was introduced in the paper XLNet: Generalized Autoregressive Pretraining for Language Understanding by Yang et al. and first released in this repository. \n\nDisclaimer: The team releasing XLNet did not write a model card for this model so this model card has been written by the Hugging Face team.## Model description\n\nXLNet is a new unsupervised language representation learning method based on a novel generalized permutation language modeling objective. Additionally, XLNet employs Transformer-XL as the backbone model, exhibiting excellent performance for language tasks involving long context. Overall, XLNet achieves state-of-the-art (SOTA) results on various downstream language tasks including question answering, natural language inference, sentiment analysis, and document ranking.## Intended uses & limitations\n\nThe model is mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.## Usage\n\nHere is how to use this model to get the features of a given text in PyTorch:### BibTeX entry and citation info"
] | [
-0.09237293154001236,
0.06235813722014427,
-0.0039006860461086035,
0.06649910658597946,
0.06604792177677155,
-0.00012882288137916476,
0.048746608197689056,
0.07547421008348465,
-0.06717962771654129,
0.046185217797756195,
0.013824911788105965,
-0.024022625759243965,
0.078883595764637,
0.13778461515903473,
0.06192659214138985,
-0.2005324810743332,
0.027411015704274178,
-0.0352136567234993,
0.09106679260730743,
0.09490098804235458,
0.09358582645654678,
-0.06125544011592865,
0.06912779062986374,
0.014680408872663975,
-0.03507831692695618,
-0.026866937056183815,
0.007476360071450472,
0.003295983886346221,
0.05480344966053963,
0.07955154776573181,
0.0773494616150856,
-0.02521514892578125,
0.006515100132673979,
-0.1360388696193695,
0.028958037495613098,
0.08104235678911209,
0.008926350623369217,
0.05914077162742615,
0.009696194902062416,
0.06727613508701324,
0.13436317443847656,
-0.05441807955503464,
0.004585832357406616,
0.0447566956281662,
-0.05175943672657013,
-0.04665232449769974,
-0.09948974847793579,
0.18862123787403107,
0.025658797472715378,
0.056505270302295685,
-0.018226275220513344,
0.1594795435667038,
-0.07598040997982025,
0.05487100034952164,
0.044793132692575455,
-0.1741955578327179,
-0.05541132763028145,
0.03777727857232094,
0.03137306869029999,
0.045288946479558945,
-0.06904507428407669,
-0.026919616386294365,
-0.027520764619112015,
0.03175955265760422,
0.07609503716230392,
-0.0313764326274395,
0.015574753284454346,
-0.0016385681228712201,
-0.09169138967990875,
0.011259510181844234,
0.02732830122113228,
0.02316153608262539,
-0.0853198692202568,
-0.20803944766521454,
-0.07532606273889542,
-0.050916776061058044,
-0.029905490577220917,
-0.08081968128681183,
0.04485917091369629,
-0.005065936595201492,
0.1653231680393219,
-0.08044517785310745,
-0.11799705773591995,
0.008374006487429142,
-0.07231424003839493,
0.0648038238286972,
0.04540339484810829,
0.030148956924676895,
-0.06886695325374603,
0.08772409707307816,
-0.08847635239362717,
-0.07974246889352798,
-0.06165367737412453,
-0.07980833202600479,
-0.08046039938926697,
-0.030876699835062027,
0.05456521734595299,
-0.06690912693738937,
-0.04363738000392914,
0.0993436947464943,
-0.0714746043086052,
0.05345071107149124,
0.010916138999164104,
0.040603045374155045,
0.022305017337203026,
0.16052021086215973,
-0.0636729821562767,
-0.1033366248011589,
0.08415526151657104,
0.000757351575884968,
0.07104334980249405,
-0.024654140695929527,
-0.05307953804731369,
0.040934886783361435,
-0.01988809183239937,
0.015415252186357975,
0.04418640211224556,
0.013711435720324516,
-0.06242510676383972,
-0.07578089088201523,
0.2699674665927887,
-0.11872135102748871,
0.051447827368974686,
0.019409440457820892,
-0.059295546263456345,
0.05020184814929962,
0.045126136392354965,
-0.02487005479633808,
-0.12295719236135483,
0.036081377416849136,
-0.07412856072187424,
-0.0011687420774251223,
-0.09191081672906876,
-0.10188481956720352,
0.04211658611893654,
-0.03658917918801308,
-0.051565587520599365,
-0.10950466990470886,
-0.19638176262378693,
-0.04507558420300484,
0.03235865384340286,
-0.05759153515100479,
-0.04109562560915947,
0.01346670463681221,
-0.06211729347705841,
-0.0027150961104780436,
0.008213615044951439,
0.020775604993104935,
-0.01369231753051281,
0.016392184421420097,
-0.018784500658512115,
0.04044510796666145,
-0.04911532253026962,
0.006490797735750675,
-0.12111081928014755,
-0.029773171991109848,
-0.2248936891555786,
0.09144272655248642,
-0.026089876890182495,
0.0002119494165526703,
-0.048919398337602615,
-0.04353060945868492,
-0.072608083486557,
0.04044874384999275,
0.013618426397442818,
0.13916587829589844,
-0.16471971571445465,
-0.012620938010513783,
0.12839549779891968,
-0.13554365932941437,
-0.02431434579193592,
0.108583465218544,
-0.008742623962461948,
0.142492413520813,
0.11286087334156036,
0.07447513937950134,
0.21181321144104004,
-0.07028911262750626,
-0.06510099768638611,
0.006958645768463612,
-0.11645635962486267,
0.03523194417357445,
-0.0015874744858592749,
0.03559042885899544,
0.16580671072006226,
0.0211916696280241,
-0.07175558060407639,
0.0055672344751656055,
0.037605948746204376,
-0.05929303169250488,
0.0005656438879668713,
-0.016736816614866257,
0.024850813671946526,
0.03800105303525925,
0.028764942660927773,
0.005340749863535166,
-0.13563914597034454,
-0.024385834112763405,
0.05455685034394264,
-0.016189955174922943,
0.048047151416540146,
-0.11065753549337387,
0.032383888959884644,
0.03429824486374855,
0.013648996129631996,
-0.1294027864933014,
-0.04554597660899162,
0.035673629492521286,
-0.03074887953698635,
0.11097424477338791,
0.00023720937315374613,
0.020442917943000793,
0.014022755436599255,
-0.03303604945540428,
-0.03234598785638809,
-0.023343198001384735,
-0.04571419954299927,
-0.06372180581092834,
-0.1329164355993271,
-0.009472604840993881,
-0.0024204968940466642,
0.06972552835941315,
-0.1931387186050415,
0.020610839128494263,
-0.02302803471684456,
0.06256996840238571,
0.05518997460603714,
-0.04649423062801361,
-0.011502479203045368,
-0.005333419889211655,
-0.014325332827866077,
-0.048210907727479935,
0.003935736138373613,
0.03825518488883972,
-0.035441894084215164,
0.10507185012102127,
-0.10938851535320282,
-0.08801775425672531,
0.05842501297593117,
0.01817185990512371,
-0.07875040918588638,
0.06804458051919937,
0.01422125194221735,
-0.06948641687631607,
-0.04959005489945412,
-0.060668300837278366,
0.17208129167556763,
0.02410462312400341,
0.09194815158843994,
-0.10716395080089569,
-0.03798605129122734,
0.0021921698935329914,
-0.0009994495194405317,
0.0677085891366005,
0.0673002153635025,
0.07155464589595795,
-0.18861038982868195,
0.05390741676092148,
-0.05263475701212883,
0.017723269760608673,
0.2322416454553604,
0.018746936693787575,
-0.05576995387673378,
0.004324670881032944,
0.032247573137283325,
-0.02038777805864811,
0.13628390431404114,
-0.018329167738556862,
0.026207461953163147,
0.031091999262571335,
0.03314865380525589,
0.037647802382707596,
-0.08962100744247437,
0.05514656379818916,
0.04027387872338295,
-0.04036213457584381,
-0.043708279728889465,
-0.009202261455357075,
0.014570634812116623,
0.07914256304502487,
0.007514656521379948,
0.024506350979208946,
0.0014975962694734335,
-0.026438042521476746,
-0.13616183400154114,
0.12824103236198425,
-0.07480743527412415,
-0.2994973361492157,
-0.1391664296388626,
0.06644933670759201,
-0.016565199941396713,
-0.03182460740208626,
-0.03050943650305271,
-0.030710065737366676,
-0.06218884512782097,
-0.11559406667947769,
0.03701120987534523,
0.04405916482210159,
-0.07330601662397385,
-0.13042554259300232,
-0.005291448440402746,
0.021598441526293755,
-0.13455358147621155,
0.018131960183382034,
-0.05165766179561615,
-0.012039064429700375,
0.04484894126653671,
0.046964190900325775,
0.011799619533121586,
0.15373140573501587,
-0.021742723882198334,
-0.04549607262015343,
-0.0307368915528059,
0.10556208342313766,
-0.10679794102907181,
0.1744193285703659,
0.16014544665813446,
-0.030536068603396416,
0.05820118635892868,
0.08223707973957062,
0.017375590279698372,
-0.007036658935248852,
0.004086403641849756,
0.026881597936153412,
-0.054932575672864914,
-0.16604579985141754,
-0.0827513337135315,
-0.08424545079469681,
0.03367175906896591,
0.0017312858253717422,
0.0380750335752964,
0.009799441322684288,
-0.0114172687754035,
-0.05210394039750099,
0.012246268801391125,
-0.00014558974362444133,
0.04425717145204544,
0.06531920284032822,
0.00006580071931239218,
0.09314636141061783,
-0.07248400151729584,
0.0307936854660511,
0.10520724952220917,
-0.017178647220134735,
0.22346435487270355,
-0.061068154871463776,
0.15630380809307098,
0.0634688064455986,
0.09546826779842377,
0.05900858715176582,
0.06824992597103119,
-0.04587119445204735,
-0.0273689404129982,
-0.0030866852030158043,
-0.0681692585349083,
-0.031639110296964645,
0.048171672970056534,
-0.021372463554143906,
0.03698260709643364,
-0.011084886267781258,
0.041197896003723145,
0.013002465479075909,
0.09083409607410431,
0.02337084524333477,
-0.10939675569534302,
-0.08618941158056259,
0.029658379033207893,
-0.0832240954041481,
-0.09283970296382904,
-0.03386445343494415,
0.14930030703544617,
-0.11773771047592163,
0.023009145632386208,
-0.003189408453181386,
0.08462542295455933,
-0.0577116385102272,
-0.017092157155275345,
0.0014877532375976443,
0.06936275959014893,
0.03904607519507408,
0.0535668209195137,
-0.08465439826250076,
0.06481976807117462,
0.004278908018022776,
0.1186378002166748,
-0.05376710370182991,
0.03580740839242935,
0.0330447293817997,
0.02112477459013462,
0.07544595003128052,
0.030313393101096153,
0.1277967095375061,
0.029683127999305725,
-0.11148138344287872,
-0.0066176773980259895,
0.02848072536289692,
0.005791073199361563,
0.0626731812953949,
-0.003019612282514572,
0.026773395016789436,
-0.013577212579548359,
0.0007990046287886798,
-0.10031822323799133,
-0.13439486920833588,
0.020165441557765007,
-0.025526046752929688,
-0.0786452367901802,
-0.02553427778184414,
-0.03738519921898842,
-0.046619199216365814,
0.24105636775493622,
-0.1471344232559204,
-0.0914386734366417,
-0.09251505881547928,
-0.01698349602520466,
0.06931386888027191,
-0.0915641263127327,
0.0084419259801507,
0.0005463571869768202,
0.07482850551605225,
0.0008659856393933296,
-0.09019648283720016,
0.03792644664645195,
-0.08183696120977402,
-0.09937528520822525,
-0.02222546935081482,
0.12032991647720337,
0.1398618221282959,
0.061893269419670105,
0.0025986339896917343,
-0.008254457265138626,
-0.04713192209601402,
-0.1282884180545807,
-0.057740963995456696,
0.062461428344249725,
-0.0037444611079990864,
0.0776534229516983,
-0.03043154627084732,
-0.09421806782484055,
-0.030451733618974686,
0.01311000157147646,
0.07488659769296646,
0.0858549177646637,
-0.0772700309753418,
0.18083322048187256,
0.05167414993047714,
-0.08103249967098236,
-0.2411336749792099,
-0.0058620283380150795,
0.05086265504360199,
0.09325655549764633,
0.047259360551834106,
-0.13788537681102753,
0.13867539167404175,
-0.010325530543923378,
-0.011679074726998806,
0.12161511927843094,
-0.15582673251628876,
-0.11457891017198563,
0.03695450350642204,
0.00035262919845990837,
0.06972511112689972,
-0.059326834976673126,
-0.008507209829986095,
0.06102118268609047,
-0.029069216921925545,
0.1442643702030182,
-0.11695962399244308,
0.03516419231891632,
0.0038859425112605095,
0.04604332149028778,
0.00901211891323328,
-0.02221432328224182,
0.05181700363755226,
-0.024522606283426285,
0.035034533590078354,
-0.029953675344586372,
0.05308697745203972,
0.09930413961410522,
-0.0372750461101532,
0.15045219659805298,
0.013725037686526775,
-0.0061105177737772465,
-0.16454768180847168,
-0.002873404650017619,
-0.11060579121112823,
0.03614000231027603,
-0.05261136218905449,
-0.025973383337259293,
-0.0841943547129631,
0.09648124128580093,
0.06490563601255417,
0.01877831108868122,
0.041635334491729736,
-0.0800318568944931,
-0.027523932978510857,
0.09939926117658615,
0.21454674005508423,
-0.15142972767353058,
-0.11959163844585419,
-0.021053694188594818,
0.016104184091091156,
0.07074223458766937,
-0.11749578267335892,
0.04422612860798836,
0.0652640238404274,
0.00423315167427063,
0.04454410821199417,
0.010115964338183403,
-0.10778142511844635,
-0.027349088340997696,
0.08840684592723846,
-0.06448036432266235,
-0.10392464697360992,
-0.018744518980383873,
-0.05473385006189346,
-0.08638099581003189,
-0.007979891262948513,
0.13002195954322815,
-0.07252468913793564,
-0.019393112510442734,
0.03201505169272423,
0.06810962408781052,
-0.02472836896777153,
0.08703379333019257,
0.0428122840821743,
0.02104681171476841,
-0.09159567207098007,
0.030279697850346565,
0.053515102714300156,
-0.04622666910290718,
0.005816810764372349,
0.1514309197664261,
-0.08818776905536652,
-0.06243589520454407,
-0.04634219780564308,
0.007224731612950563,
0.0132730258628726,
-0.08052133023738861,
0.0014726478839293122,
-0.043215323239564896,
0.03399805724620819,
0.010974966920912266,
0.027171144261956215,
0.0405845046043396,
-0.08908931910991669,
0.01303709577769041,
-0.058215122669935226,
0.06390706449747086,
0.05806313082575798,
0.005570293869823217,
-0.10197220742702484,
0.07215328514575958,
0.0570526197552681,
0.020911432802677155,
-0.03307105600833893,
-0.02207883633673191,
-0.05349503085017204,
-0.001850976375862956,
-0.031931322067976,
0.009493889287114143,
-0.016217032447457314,
-0.003128408920019865,
-0.02313331514596939,
0.0241562332957983,
-0.02502158284187317,
0.0420127734541893,
-0.022039588540792465,
0.004220179747790098,
-0.011882813647389412,
0.00719802500680089,
-0.09019477665424347,
0.05324729532003403,
0.0132737522944808,
-0.04806741327047348,
0.10140815377235413,
-0.008378533646464348,
-0.0387711338698864,
0.03768906369805336,
-0.0564037561416626,
0.030112657696008682,
-0.010388619266450405,
0.026259874925017357,
0.011142659932374954,
-0.11457189172506332,
0.02258463203907013,
0.03414880484342575,
-0.02741716243326664,
-0.0003430343931540847,
-0.03292590379714966,
-0.07514128088951111,
0.11049631237983704,
-0.01935901865363121,
0.009055431932210922,
-0.06102543696761131,
0.06663066893815994,
-0.03014460764825344,
0.047818683087825775,
0.14681503176689148,
0.002959700534120202,
-0.031996823847293854,
-0.15712440013885498,
-0.00711800204589963,
0.013693040236830711,
0.03798884525895119,
-0.023244481533765793,
-0.02453029155731201,
0.042609620839357376,
0.00019447316299192607,
0.08511731028556824,
0.02541353553533554,
-0.07661236822605133,
0.03190170228481293,
0.04023289680480957,
-0.09489598125219345,
0.006565316114574671,
-0.015308787114918232,
-0.026192976161837578,
-0.021144744008779526,
0.038262736052274704,
-0.017175640910863876,
-0.03325670585036278,
-0.01675134152173996,
0.22699856758117676,
0.07569479197263718,
0.04853718355298042,
0.08450209349393845,
-0.01880214549601078,
0.002177061280235648,
-0.1525934338569641,
0.040513776242733,
-0.1123320460319519,
0.005566232372075319,
-0.04481154680252075,
0.08418469876050949,
0.11886145919561386,
-0.10665110498666763,
0.11259869486093521,
-0.00034053970011882484,
-0.06913602352142334,
-0.07402843981981277,
-0.22287027537822723,
-0.023573335260152817,
-0.023360319435596466,
-0.0378420390188694,
-0.09954390674829483,
0.03266572952270508,
0.05026973783969879,
0.025107990950345993,
-0.050174370408058167,
0.08083544671535492,
-0.07166370004415512,
-0.11623592674732208,
0.059451501816511154,
0.03740639239549637,
0.04851444810628891,
0.06673355400562286,
0.07765645533800125,
-0.038466837257146835,
0.07270700484514236,
0.10908752679824829,
0.05167626589536667,
0.06549825519323349,
0.021647855639457703,
-0.05719376355409622,
-0.04715079069137573,
-0.019412362948060036,
0.019981253892183304,
0.010172050446271896,
0.15768477320671082,
0.03495665267109871,
-0.04793331027030945,
-0.0330926775932312,
0.2190270572900772,
-0.037962619215250015,
-0.13487429916858673,
-0.13279233872890472,
0.16591696441173553,
0.03415600210428238,
-0.018913045525550842,
-0.02102811262011528,
-0.10776659846305847,
0.01423574984073639,
0.2089964747428894,
0.20002631843090057,
-0.066976398229599,
-0.004070066846907139,
-0.009734333492815495,
-0.0095216054469347,
-0.027913369238376617,
0.12215256690979004,
0.0448487363755703,
0.4025056064128876,
-0.029295671731233597,
0.07818006724119186,
-0.055699579417705536,
-0.03185445815324783,
-0.09679323434829712,
0.10653427243232727,
-0.025514649227261543,
0.023966556414961815,
-0.08922668546438217,
0.024708859622478485,
-0.056981444358825684,
-0.15415771305561066,
0.009247786365449429,
-0.0760333240032196,
-0.07998179644346237,
-0.008552031591534615,
0.02194635570049286,
-0.03185199201107025,
0.0278624240309,
0.032721538096666336,
-0.01855122484266758,
0.09321057796478271,
0.004272491671144962,
-0.05419865623116493,
-0.00349360890686512,
0.08168035000562668,
-0.11681002378463745,
0.15787403285503387,
0.0043138121254742146,
0.0871264860033989,
0.07758591324090958,
0.022107260301709175,
-0.08158721774816513,
0.013643083162605762,
-0.03402882441878319,
-0.07380340248346329,
0.0102437324821949,
0.15493878722190857,
0.06415995210409164,
0.004372436553239822,
0.0827396884560585,
-0.0657992884516716,
-0.019865602254867554,
-0.03885399177670479,
-0.03174227476119995,
-0.07865103334188461,
0.05960240960121155,
-0.08545728027820587,
0.1611972153186798,
0.12110358476638794,
-0.0005464946734718978,
0.006593629717826843,
-0.09107624739408493,
-0.013773911632597446,
-0.018694041296839714,
0.1478392779827118,
0.006593955680727959,
-0.13579289615154266,
0.01348907221108675,
-0.020224109292030334,
0.05760841816663742,
-0.2053823471069336,
-0.03872339427471161,
-0.011602993123233318,
-0.0042040785774588585,
-0.039065949618816376,
0.09972426295280457,
0.04049369692802429,
0.025897571817040443,
-0.02746351808309555,
-0.03653429448604584,
-0.004013258032500744,
0.07767902314662933,
-0.039997100830078125,
-0.056093133985996246
] |
null | null | transformers |
# XLNet (large-sized model)
XLNet model pre-trained on English language. It was introduced in the paper [XLNet: Generalized Autoregressive Pretraining for Language Understanding](https://arxiv.org/abs/1906.08237) by Yang et al. and first released in [this repository](https://github.com/zihangdai/xlnet/).
Disclaimer: The team releasing XLNet did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
XLNet is a new unsupervised language representation learning method based on a novel generalized permutation language modeling objective. Additionally, XLNet employs Transformer-XL as the backbone model, exhibiting excellent performance for language tasks involving long context. Overall, XLNet achieves state-of-the-art (SOTA) results on various downstream language tasks including question answering, natural language inference, sentiment analysis, and document ranking.
## Intended uses & limitations
The model is mostly intended to be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?search=xlnet) to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
## Usage
Here is how to use this model to get the features of a given text in PyTorch:
```python
from transformers import XLNetTokenizer, XLNetModel
tokenizer = XLNetTokenizer.from_pretrained('xlnet-large-cased')
model = XLNetModel.from_pretrained('xlnet-large-cased')
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
```
### BibTeX entry and citation info
```bibtex
@article{DBLP:journals/corr/abs-1906-08237,
author = {Zhilin Yang and
Zihang Dai and
Yiming Yang and
Jaime G. Carbonell and
Ruslan Salakhutdinov and
Quoc V. Le},
title = {XLNet: Generalized Autoregressive Pretraining for Language Understanding},
journal = {CoRR},
volume = {abs/1906.08237},
year = {2019},
url = {http://arxiv.org/abs/1906.08237},
eprinttype = {arXiv},
eprint = {1906.08237},
timestamp = {Mon, 24 Jun 2019 17:28:45 +0200},
biburl = {https://dblp.org/rec/journals/corr/abs-1906-08237.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
```
| {"language": "en", "license": "mit", "datasets": ["bookcorpus", "wikipedia"]} | text-generation | xlnet/xlnet-large-cased | [
"transformers",
"pytorch",
"tf",
"xlnet",
"text-generation",
"en",
"dataset:bookcorpus",
"dataset:wikipedia",
"arxiv:1906.08237",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"1906.08237"
] | [
"en"
] | TAGS
#transformers #pytorch #tf #xlnet #text-generation #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1906.08237 #license-mit #autotrain_compatible #endpoints_compatible #region-us
|
# XLNet (large-sized model)
XLNet model pre-trained on English language. It was introduced in the paper XLNet: Generalized Autoregressive Pretraining for Language Understanding by Yang et al. and first released in this repository.
Disclaimer: The team releasing XLNet did not write a model card for this model so this model card has been written by the Hugging Face team.
## Model description
XLNet is a new unsupervised language representation learning method based on a novel generalized permutation language modeling objective. Additionally, XLNet employs Transformer-XL as the backbone model, exhibiting excellent performance for language tasks involving long context. Overall, XLNet achieves state-of-the-art (SOTA) results on various downstream language tasks including question answering, natural language inference, sentiment analysis, and document ranking.
## Intended uses & limitations
The model is mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
## Usage
Here is how to use this model to get the features of a given text in PyTorch:
### BibTeX entry and citation info
| [
"# XLNet (large-sized model) \n\nXLNet model pre-trained on English language. It was introduced in the paper XLNet: Generalized Autoregressive Pretraining for Language Understanding by Yang et al. and first released in this repository. \n\nDisclaimer: The team releasing XLNet did not write a model card for this model so this model card has been written by the Hugging Face team.",
"## Model description\n\nXLNet is a new unsupervised language representation learning method based on a novel generalized permutation language modeling objective. Additionally, XLNet employs Transformer-XL as the backbone model, exhibiting excellent performance for language tasks involving long context. Overall, XLNet achieves state-of-the-art (SOTA) results on various downstream language tasks including question answering, natural language inference, sentiment analysis, and document ranking.",
"## Intended uses & limitations\n\nThe model is mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.",
"## Usage\n\nHere is how to use this model to get the features of a given text in PyTorch:",
"### BibTeX entry and citation info"
] | [
"TAGS\n#transformers #pytorch #tf #xlnet #text-generation #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1906.08237 #license-mit #autotrain_compatible #endpoints_compatible #region-us \n",
"# XLNet (large-sized model) \n\nXLNet model pre-trained on English language. It was introduced in the paper XLNet: Generalized Autoregressive Pretraining for Language Understanding by Yang et al. and first released in this repository. \n\nDisclaimer: The team releasing XLNet did not write a model card for this model so this model card has been written by the Hugging Face team.",
"## Model description\n\nXLNet is a new unsupervised language representation learning method based on a novel generalized permutation language modeling objective. Additionally, XLNet employs Transformer-XL as the backbone model, exhibiting excellent performance for language tasks involving long context. Overall, XLNet achieves state-of-the-art (SOTA) results on various downstream language tasks including question answering, natural language inference, sentiment analysis, and document ranking.",
"## Intended uses & limitations\n\nThe model is mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.",
"## Usage\n\nHere is how to use this model to get the features of a given text in PyTorch:",
"### BibTeX entry and citation info"
] | [
68,
90,
107,
115,
23,
11
] | [
"passage: TAGS\n#transformers #pytorch #tf #xlnet #text-generation #en #dataset-bookcorpus #dataset-wikipedia #arxiv-1906.08237 #license-mit #autotrain_compatible #endpoints_compatible #region-us \n# XLNet (large-sized model) \n\nXLNet model pre-trained on English language. It was introduced in the paper XLNet: Generalized Autoregressive Pretraining for Language Understanding by Yang et al. and first released in this repository. \n\nDisclaimer: The team releasing XLNet did not write a model card for this model so this model card has been written by the Hugging Face team.## Model description\n\nXLNet is a new unsupervised language representation learning method based on a novel generalized permutation language modeling objective. Additionally, XLNet employs Transformer-XL as the backbone model, exhibiting excellent performance for language tasks involving long context. Overall, XLNet achieves state-of-the-art (SOTA) results on various downstream language tasks including question answering, natural language inference, sentiment analysis, and document ranking.## Intended uses & limitations\n\nThe model is mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.\n\nNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.## Usage\n\nHere is how to use this model to get the features of a given text in PyTorch:### BibTeX entry and citation info"
] | [
-0.08511044085025787,
0.025347847491502762,
-0.0029194701928645372,
0.06281346827745438,
0.06469836831092834,
-0.00869611743837595,
0.08126995712518692,
0.07021643221378326,
0.00007856431329855695,
0.027684170752763748,
0.016470998525619507,
-0.0012027561897411942,
0.09771779179573059,
0.11523940414190292,
0.031246794387698174,
-0.18678151071071625,
0.014260743744671345,
-0.03896569833159447,
0.08224422484636307,
0.09788475185632706,
0.07937324047088623,
-0.06531181931495667,
0.08275547623634338,
0.005053212866187096,
-0.06971067935228348,
-0.02271314151585102,
0.005657717119902372,
0.007489391602575779,
0.04445112496614456,
0.09058193117380142,
0.0679837018251419,
-0.013875233940780163,
0.011029020883142948,
-0.12368333339691162,
0.03115070052444935,
0.06239007040858269,
0.009035362862050533,
0.054562270641326904,
-0.0031422374304383993,
0.04482477158308029,
0.09095746278762817,
-0.03963872045278549,
0.014449833892285824,
0.0465208999812603,
-0.03607074171304703,
0.0018325136043131351,
-0.106547512114048,
0.20795200765132904,
0.05429301783442497,
0.04972599446773529,
-0.005315251182764769,
0.12978610396385193,
-0.040075916796922684,
0.046349942684173584,
0.03001033328473568,
-0.17412294447422028,
-0.04169975966215134,
0.09438875317573547,
0.042604219168424606,
0.04083975404500961,
-0.054849736392498016,
-0.02037801966071129,
-0.028551451861858368,
0.0487477071583271,
0.07312574237585068,
-0.05748859420418739,
0.09258774667978287,
-0.018363432958722115,
-0.0768534243106842,
0.011399652808904648,
0.0269163865596056,
0.007981830276548862,
-0.09650836139917374,
-0.1997709721326828,
-0.06974497437477112,
0.002520750742405653,
-0.021920165047049522,
-0.06186145544052124,
0.04233049601316452,
-0.017551464959979057,
0.17852717638015747,
-0.09963131695985794,
-0.10677044093608856,
0.009911862201988697,
-0.08293453603982925,
0.07361798733472824,
0.0370640829205513,
0.043906040489673615,
-0.11248384416103363,
0.09435400366783142,
-0.03520367294549942,
-0.0996212363243103,
-0.05430474132299423,
-0.07868646830320358,
-0.05436117574572563,
-0.015238571912050247,
0.06721016019582748,
-0.04705607146024704,
-0.06990481168031693,
0.11935284733772278,
-0.06756894290447235,
0.05924639850854874,
-0.009853542782366276,
0.05490943416953087,
0.05141535401344299,
0.12877851724624634,
-0.0714111179113388,
-0.12040788680315018,
0.10539347678422928,
0.005131104961037636,
0.0710066631436348,
-0.03766854852437973,
-0.08684154599905014,
0.034067604690790176,
-0.08048169314861298,
0.03028547205030918,
0.05269411951303482,
0.0027281991206109524,
-0.042052172124385834,
-0.11718472093343735,
0.2760984003543854,
-0.12372111529111862,
0.045513980090618134,
0.0079635726287961,
-0.0711701512336731,
0.09197836369276047,
0.04349730536341667,
-0.03933895751833916,
-0.11196231096982956,
0.04353208839893341,
-0.060802433639764786,
0.0023426502011716366,
-0.10348788648843765,
-0.11820978671312332,
0.036676567047834396,
-0.026671255007386208,
-0.030897727236151695,
-0.09698527306318283,
-0.2455015331506729,
-0.04928429424762726,
0.04270676150918007,
-0.06444362550973892,
-0.02271559089422226,
-0.0018970727687701583,
-0.061452243477106094,
-0.014181350357830524,
-0.006508145947009325,
-0.03793325275182724,
-0.012646274641156197,
0.003814463969320059,
-0.033304281532764435,
0.0771140605211258,
-0.060927536338567734,
0.004328157287091017,
-0.1048971638083458,
-0.004459235351532698,
-0.2448311150074005,
0.0863618403673172,
-0.007841384038329124,
0.011328846216201782,
-0.04895620420575142,
-0.03926195949316025,
-0.012382992543280125,
0.06186744570732117,
0.015283600427210331,
0.1385674923658371,
-0.1809527426958084,
-0.00785144604742527,
0.14034903049468994,
-0.11890126764774323,
-0.038585927337408066,
0.07496015727519989,
-0.01673462800681591,
0.19530369341373444,
0.11207982897758484,
0.08402027934789658,
0.1760135143995285,
-0.02657044678926468,
-0.08202406764030457,
-0.004496178589761257,
-0.13491970300674438,
0.02379327453672886,
-0.01717042550444603,
0.07346268743276596,
0.11622641235589981,
0.018924377858638763,
-0.02071402408182621,
-0.007881516590714455,
0.037671562284231186,
-0.04885289445519447,
0.02128838188946247,
-0.0038590705953538418,
0.010707290843129158,
0.005896423477679491,
0.01939069665968418,
0.01682412065565586,
-0.11375648528337479,
0.03735573962330818,
0.045839574187994,
-0.01793789118528366,
0.043108947575092316,
-0.0993964895606041,
0.004667557775974274,
0.000759012415073812,
0.030635885894298553,
-0.1278022974729538,
-0.0045148772187530994,
0.008932113647460938,
-0.03519638627767563,
0.1403520554304123,
0.007445907685905695,
0.02001398243010044,
0.009066706523299217,
-0.02784869819879532,
-0.03965334966778755,
-0.0039603072218596935,
-0.05677031725645065,
-0.04569234326481819,
-0.14226244390010834,
-0.026503104716539383,
-0.006549104116857052,
0.026732267811894417,
-0.1737745702266693,
0.04670919105410576,
-0.08571375906467438,
0.03369583562016487,
0.0400322861969471,
-0.009206701070070267,
-0.017555059865117073,
-0.012123172171413898,
-0.030892036855220795,
-0.035672180354595184,
-0.005173577461391687,
0.020383773371577263,
-0.035682614892721176,
0.11293262243270874,
-0.10779295116662979,
-0.10695848613977432,
0.06006835401058197,
0.01942499168217182,
-0.07581927627325058,
0.049223873764276505,
0.04194559529423714,
-0.07440968602895737,
-0.0010048196418210864,
-0.05918595567345619,
0.1763688623905182,
0.029101721942424774,
0.09137474000453949,
-0.10518249869346619,
-0.035388510674238205,
0.007402460556477308,
-0.021412443369627,
0.08131993561983109,
0.043103836476802826,
0.07913515716791153,
-0.2082667052745819,
0.06101227551698685,
-0.016435258090496063,
0.027502737939357758,
0.24338272213935852,
0.048385657370090485,
-0.030572397634387016,
-0.011370384134352207,
0.0031022403854876757,
-0.024476783350110054,
0.14132019877433777,
-0.0032556692603975534,
0.043433114886283875,
0.025352682918310165,
0.0430598109960556,
0.02981439232826233,
-0.07022235542535782,
0.050168659538030624,
0.04590107128024101,
-0.009918991476297379,
-0.06650456041097641,
-0.030496593564748764,
0.023867491632699966,
0.08013981580734253,
0.03218454122543335,
0.04110689461231232,
0.007882729172706604,
-0.03648346662521362,
-0.13791964948177338,
0.1411120742559433,
-0.08858805894851685,
-0.3274546265602112,
-0.14305055141448975,
0.02498895861208439,
-0.04558202624320984,
-0.041918959468603134,
-0.024337580427527428,
-0.012417245656251907,
-0.05774574354290962,
-0.1158473789691925,
0.08393754810094833,
0.04369482770562172,
-0.08658764511346817,
-0.1194639578461647,
0.0007007847307249904,
-0.018053989857435226,
-0.144819974899292,
0.013794935308396816,
-0.04762067273259163,
-0.028381530195474625,
0.050387728959321976,
0.04003194719552994,
-0.0044871228747069836,
0.16977901756763458,
-0.04062763229012489,
-0.06314966082572937,
-0.022074665874242783,
0.08216175436973572,
-0.07510083168745041,
0.19240038096904755,
0.16151127219200134,
-0.05085793882608414,
0.057941462844610214,
0.11301779747009277,
0.02380160242319107,
-0.022449171170592308,
-0.005910086445510387,
0.014665789902210236,
-0.06658677011728287,
-0.17232342064380646,
-0.06848651170730591,
-0.0655783861875534,
0.07724720239639282,
-0.007440937217324972,
0.02578803524374962,
0.00901497807353735,
-0.0043128253892064095,
-0.04967816546559334,
0.013578630983829498,
-0.025370193645358086,
0.07595550268888474,
0.07038557529449463,
-0.03142515942454338,
0.10025028139352798,
-0.06961976736783981,
0.07425937056541443,
0.10094404965639114,
0.022675711661577225,
0.21711432933807373,
-0.043649617582559586,
0.15264593064785004,
0.07200022786855698,
0.045873451977968216,
0.07528077065944672,
0.0727865919470787,
-0.055607233196496964,
-0.02789369225502014,
-0.011151687242090702,
-0.05792297050356865,
-0.02273883856832981,
0.051404763013124466,
-0.06565327197313309,
0.07997270673513412,
-0.0024336944334208965,
0.015530339442193508,
0.02173110842704773,
0.04336780309677124,
0.0018504344625398517,
-0.10422114282846451,
-0.10147716104984283,
0.04278178513050079,
-0.09326371550559998,
-0.11771789193153381,
-0.03355133533477783,
0.17505936324596405,
-0.10979985445737839,
0.018942000344395638,
-0.004956079646945,
0.0985901951789856,
-0.07867440581321716,
-0.013655892573297024,
-0.027685951441526413,
0.06778894364833832,
0.025837408378720284,
0.04152391478419304,
-0.08080342411994934,
0.03574724122881889,
0.02629847265779972,
0.08892035484313965,
-0.06558011472225189,
0.02589033916592598,
0.005905895959585905,
0.012215225957334042,
0.051268622279167175,
0.027717022225260735,
0.11796291917562485,
0.0044483947567641735,
-0.11161235719919205,
-0.005785495974123478,
0.027969568967819214,
-0.006667911075055599,
0.07058389484882355,
0.021776417270302773,
0.014092661440372467,
-0.025011839345097542,
-0.05872363597154617,
-0.08486872911453247,
-0.13411004841327667,
0.008662743493914604,
-0.03283119201660156,
-0.1048029363155365,
-0.0031568040139973164,
-0.01802816614508629,
0.03611559793353081,
0.2578900456428528,
-0.1592165231704712,
-0.08685357868671417,
-0.08663921058177948,
-0.03406502306461334,
0.04545890539884567,
-0.08116651326417923,
0.03107878565788269,
-0.0002324771339772269,
0.04526597261428833,
-0.014775010757148266,
-0.1162332072854042,
0.06880238652229309,
-0.08611389249563217,
-0.07629040628671646,
-0.03743993490934372,
0.11969038099050522,
0.13905325531959534,
0.06440460681915283,
0.0005947574391029775,
-0.02653857320547104,
-0.040146708488464355,
-0.13615964353084564,
-0.07120749354362488,
0.10290908068418503,
0.008068881928920746,
0.07540036737918854,
-0.028946639969944954,
-0.1056777760386467,
-0.004664678126573563,
0.017781343311071396,
0.0632593184709549,
0.11250067502260208,
-0.05365689471364021,
0.1896464079618454,
0.07359562069177628,
-0.07783569395542145,
-0.2451605349779129,
0.044866107404232025,
0.01038827933371067,
0.10139565169811249,
0.0643051341176033,
-0.1478583812713623,
0.13338667154312134,
-0.02761569432914257,
0.0004904938396066427,
0.19989798963069916,
-0.18448035418987274,
-0.11747656017541885,
0.011753853410482407,
0.0016618221998214722,
0.10260768979787827,
-0.024304639548063278,
0.005384502001106739,
0.05101541802287102,
-0.0315106064081192,
0.13628335297107697,
-0.07647804915904999,
0.031132780015468597,
-0.018810052424669266,
0.09603998810052872,
0.008470870554447174,
-0.021376369521021843,
0.05449112877249718,
-0.020818278193473816,
0.05656248703598976,
-0.03700589761137962,
0.02729038894176483,
0.11286614835262299,
-0.04658160358667374,
0.15589968860149384,
-0.03359455242753029,
-0.0054761809296905994,
-0.13397766649723053,
-0.02973378449678421,
-0.10080023109912872,
0.02081781066954136,
-0.053001031279563904,
-0.03934471309185028,
-0.0839032456278801,
0.0892397090792656,
0.04235854372382164,
0.017346758395433426,
0.03992106020450592,
-0.10259047895669937,
-0.08726535737514496,
0.12948036193847656,
0.21405059099197388,
-0.1587602198123932,
-0.07885592430830002,
-0.0070455740205943584,
0.01287243515253067,
0.0895971953868866,
-0.16683721542358398,
0.024779580533504486,
0.06569292396306992,
0.01543645840138197,
0.031015148386359215,
0.015367582440376282,
-0.1113918274641037,
-0.015856891870498657,
0.07256412506103516,
-0.05704391002655029,
-0.06933147460222244,
-0.010889478959143162,
-0.01562473364174366,
-0.0872875228524208,
-0.007162733934819698,
0.1271475851535797,
-0.07884964346885681,
-0.023540673777461052,
0.036685459315776825,
0.06487685441970825,
-0.025454148650169373,
0.054631851613521576,
0.02056734263896942,
0.0063881585374474525,
-0.08706037700176239,
0.030585890635848045,
0.033265236765146255,
-0.05021767318248749,
0.03373204544186592,
0.16533163189888,
-0.07288891822099686,
-0.07987365871667862,
-0.0722385048866272,
0.024234801530838013,
-0.018301647156476974,
-0.0617353580892086,
0.02479557693004608,
-0.04358068108558655,
0.027428440749645233,
0.041767410933971405,
0.014944975264370441,
0.019366102293133736,
-0.08658545464277267,
0.004034109879285097,
-0.06580858677625656,
0.0787055641412735,
0.034093502908945084,
0.010816828347742558,
-0.0640091747045517,
0.009602655656635761,
0.07795988023281097,
0.032504454255104065,
-0.030595803633332253,
-0.04617276042699814,
-0.08350344002246857,
0.00841814186424017,
-0.12584705650806427,
-0.001166244619525969,
-0.03715898469090462,
-0.012136227451264858,
-0.013059496879577637,
0.0491965115070343,
-0.018515370786190033,
0.026758626103401184,
-0.01747838966548443,
0.0003619259223341942,
-0.01569816656410694,
0.0028995047323405743,
-0.07450331747531891,
0.0433863140642643,
-0.0010151522001251578,
-0.04182332381606102,
0.09241364151239395,
0.0025896714068949223,
-0.042786698788404465,
0.032703790813684464,
-0.026942618191242218,
0.03673551231622696,
-0.0118767274543643,
0.029721174389123917,
0.03858666494488716,
-0.09166455268859863,
0.014243516139686108,
0.02820069156587124,
-0.05186839774250984,
-0.012635182589292526,
-0.030481131747364998,
-0.07450247555971146,
0.13806329667568207,
-0.01714526303112507,
0.01050524227321148,
-0.06389850378036499,
0.07415343075990677,
-0.020739203318953514,
0.030666019767522812,
0.11592648923397064,
0.014969121664762497,
-0.007475936785340309,
-0.14504481852054596,
-0.02226644940674305,
0.015025604516267776,
0.03503524512052536,
0.0002736497553996742,
-0.04592374339699745,
0.027164114639163017,
-0.006922646425664425,
0.06806152313947678,
0.03368288278579712,
-0.08035799860954285,
0.01839718595147133,
0.018113376572728157,
-0.10475785285234451,
0.00902782753109932,
-0.027122534811496735,
-0.046742431819438934,
-0.01097708847373724,
0.0182133037596941,
0.022156674414873123,
-0.042661402374506,
-0.03258155286312103,
0.22216951847076416,
0.037012387067079544,
0.04813326150178909,
0.08412405848503113,
-0.013872353360056877,
0.008529824204742908,
-0.18916235864162445,
0.033501747995615005,
-0.0820871964097023,
0.0026943013072013855,
-0.04131574183702469,
0.05304170399904251,
0.1258438676595688,
-0.09446550905704498,
0.11541076004505157,
0.018091386184096336,
-0.05141709744930267,
-0.06491299718618393,
-0.2682715356349945,
-0.009375625289976597,
-0.015135899186134338,
-0.05495932325720787,
-0.09495019167661667,
0.03161768242716789,
0.054344095289707184,
0.0347672775387764,
-0.05056655406951904,
0.07344382256269455,
-0.0601051039993763,
-0.0952606275677681,
0.033817291259765625,
0.05106247588992119,
0.04916469380259514,
0.05310850217938423,
0.09423094242811203,
-0.04206199571490288,
0.05981884151697159,
0.09679372608661652,
0.07375440001487732,
0.06334413588047028,
0.017746392637491226,
-0.06223837658762932,
-0.06659214198589325,
-0.02769281715154648,
0.041489291936159134,
0.01758166216313839,
0.1829870641231537,
0.04302234947681427,
-0.06001723185181618,
-0.02931457757949829,
0.2009645700454712,
-0.035939306020736694,
-0.10778956860303879,
-0.10080762952566147,
0.20308354496955872,
0.03153087571263313,
-0.018504729494452477,
-0.03947210684418678,
-0.10185285657644272,
-0.00994051992893219,
0.18512886762619019,
0.2186369001865387,
-0.07925990223884583,
-0.009395863860845566,
-0.022129246965050697,
-0.004584075417369604,
-0.05464430898427963,
0.1314581334590912,
0.05852637439966202,
0.42944037914276123,
-0.021669024601578712,
0.0480056032538414,
-0.035435937345027924,
-0.05973610654473305,
-0.07256896793842316,
0.07813739776611328,
-0.022225411608815193,
0.009549406357109547,
-0.07741613686084747,
0.01919478550553322,
-0.06665102392435074,
-0.1475222408771515,
0.04781486839056015,
-0.06002432107925415,
-0.05530000478029251,
-0.005573532544076443,
0.022826870903372765,
-0.043725207448005676,
0.03526611998677254,
0.017592018470168114,
-0.025675205513834953,
0.12369629740715027,
-0.012412585318088531,
-0.057526398450136185,
-0.008199897594749928,
0.09940387308597565,
-0.12724481523036957,
0.14008578658103943,
-0.0046676453202962875,
0.08114724606275558,
0.07332971692085266,
0.04944757744669914,
-0.09850407391786575,
-0.006731310859322548,
-0.03703770786523819,
-0.06817029416561127,
-0.006483228877186775,
0.18009254336357117,
0.04667960852384567,
0.03955262526869774,
0.08365420252084732,
-0.08249905705451965,
-0.030827000737190247,
-0.06960540264844894,
-0.03362252190709114,
-0.07334689795970917,
0.06190742179751396,
-0.0660489946603775,
0.1682468056678772,
0.09995768964290619,
0.0018238101620227098,
0.0013871288392692804,
-0.07136780768632889,
-0.005755336489528418,
-0.003432661760598421,
0.14859001338481903,
-0.000807044212706387,
-0.11228392273187637,
0.004983493126928806,
-0.03162045404314995,
0.062291719019412994,
-0.2358158975839615,
-0.03878725320100784,
0.00025710606132633984,
0.010942303575575352,
-0.04239082336425781,
0.08100280910730362,
0.0391869954764843,
0.04356378689408302,
-0.03134235739707947,
-0.03005613572895527,
-0.004686580505222082,
0.08572129905223846,
-0.04282623529434204,
-0.0822116881608963
] |
null | null | transformers |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# distilbert-base-uncased-finetuned-cola
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the glue dataset.
It achieves the following results on the evaluation set:
- Loss: 0.7580
- Matthews Correlation: 0.5406
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 5
### Training results
| Training Loss | Epoch | Step | Validation Loss | Matthews Correlation |
|:-------------:|:-----:|:----:|:---------------:|:--------------------:|
| 0.5307 | 1.0 | 535 | 0.5094 | 0.4152 |
| 0.3545 | 2.0 | 1070 | 0.5230 | 0.4940 |
| 0.2371 | 3.0 | 1605 | 0.6412 | 0.5087 |
| 0.1777 | 4.0 | 2140 | 0.7580 | 0.5406 |
| 0.1288 | 5.0 | 2675 | 0.8494 | 0.5396 |
### Framework versions
- Transformers 4.14.1
- Pytorch 1.10.0+cu111
- Datasets 1.16.1
- Tokenizers 0.10.3
| {"license": "apache-2.0", "tags": ["generated_from_trainer"], "datasets": ["glue"], "metrics": ["matthews_correlation"], "model-index": [{"name": "distilbert-base-uncased-finetuned-cola", "results": [{"task": {"type": "text-classification", "name": "Text Classification"}, "dataset": {"name": "glue", "type": "glue", "args": "cola"}, "metrics": [{"type": "matthews_correlation", "value": 0.5406394412669151, "name": "Matthews Correlation"}]}]}]} | text-classification | 09panesara/distilbert-base-uncased-finetuned-cola | [
"transformers",
"pytorch",
"tensorboard",
"distilbert",
"text-classification",
"generated_from_trainer",
"dataset:glue",
"license:apache-2.0",
"model-index",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #tensorboard #distilbert #text-classification #generated_from_trainer #dataset-glue #license-apache-2.0 #model-index #autotrain_compatible #endpoints_compatible #region-us
| distilbert-base-uncased-finetuned-cola
======================================
This model is a fine-tuned version of distilbert-base-uncased on the glue dataset.
It achieves the following results on the evaluation set:
* Loss: 0.7580
* Matthews Correlation: 0.5406
Model description
-----------------
More information needed
Intended uses & limitations
---------------------------
More information needed
Training and evaluation data
----------------------------
More information needed
Training procedure
------------------
### Training hyperparameters
The following hyperparameters were used during training:
* learning\_rate: 2e-05
* train\_batch\_size: 16
* eval\_batch\_size: 16
* seed: 42
* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
* lr\_scheduler\_type: linear
* num\_epochs: 5
### Training results
### Framework versions
* Transformers 4.14.1
* Pytorch 1.10.0+cu111
* Datasets 1.16.1
* Tokenizers 0.10.3
| [
"### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 2e-05\n* train\\_batch\\_size: 16\n* eval\\_batch\\_size: 16\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* num\\_epochs: 5",
"### Training results",
"### Framework versions\n\n\n* Transformers 4.14.1\n* Pytorch 1.10.0+cu111\n* Datasets 1.16.1\n* Tokenizers 0.10.3"
] | [
"TAGS\n#transformers #pytorch #tensorboard #distilbert #text-classification #generated_from_trainer #dataset-glue #license-apache-2.0 #model-index #autotrain_compatible #endpoints_compatible #region-us \n",
"### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 2e-05\n* train\\_batch\\_size: 16\n* eval\\_batch\\_size: 16\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* num\\_epochs: 5",
"### Training results",
"### Framework versions\n\n\n* Transformers 4.14.1\n* Pytorch 1.10.0+cu111\n* Datasets 1.16.1\n* Tokenizers 0.10.3"
] | [
67,
98,
4,
33
] | [
"passage: TAGS\n#transformers #pytorch #tensorboard #distilbert #text-classification #generated_from_trainer #dataset-glue #license-apache-2.0 #model-index #autotrain_compatible #endpoints_compatible #region-us \n### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 2e-05\n* train\\_batch\\_size: 16\n* eval\\_batch\\_size: 16\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* num\\_epochs: 5### Training results### Framework versions\n\n\n* Transformers 4.14.1\n* Pytorch 1.10.0+cu111\n* Datasets 1.16.1\n* Tokenizers 0.10.3"
] | [
-0.10066306591033936,
0.09879808127880096,
-0.002427687169983983,
0.12146080285310745,
0.1657874584197998,
0.034371841698884964,
0.131842702627182,
0.12732942402362823,
-0.08504127711057663,
0.021481458097696304,
0.12027695029973984,
0.16103093326091766,
0.02344822883605957,
0.11015903204679489,
-0.047943610697984695,
-0.2652066648006439,
-0.01426406018435955,
0.05023922026157379,
-0.055878836661577225,
0.1350056529045105,
0.0910935178399086,
-0.12062622606754303,
0.09091909229755402,
0.010328392498195171,
-0.1918260008096695,
0.0016881038900464773,
-0.000915263663046062,
-0.05119894817471504,
0.14872291684150696,
0.02638673037290573,
0.12204057723283768,
0.0044599962420761585,
0.08281449973583221,
-0.2014779895544052,
0.010869272984564304,
0.0470806248486042,
0.0031334180384874344,
0.0932520255446434,
0.04529017210006714,
0.0025761376600712538,
0.11785108596086502,
-0.07959010452032089,
0.05406975746154785,
0.02528955414891243,
-0.11933643370866776,
-0.2132788449525833,
-0.07862085103988647,
0.03524276241660118,
0.07589195668697357,
0.10545896738767624,
-0.00821653287857771,
0.11890058219432831,
-0.08149580657482147,
0.09290599822998047,
0.22404833137989044,
-0.28541237115859985,
-0.06633435934782028,
0.04334833472967148,
0.013493089936673641,
0.04742967337369919,
-0.10245348513126373,
-0.03475719690322876,
0.04803628847002983,
0.05174378678202629,
0.1265508383512497,
-0.027296237647533417,
-0.11717488616704941,
0.0058853160589933395,
-0.14075301587581635,
-0.03166282922029495,
0.16944530606269836,
0.041804976761341095,
-0.02733292616903782,
-0.05587826669216156,
-0.05760137736797333,
-0.1487298607826233,
-0.03580815717577934,
-0.014770837500691414,
0.04921681433916092,
-0.02336869202554226,
-0.042108241468667984,
-0.008744848892092705,
-0.1084158718585968,
-0.06467460840940475,
-0.0734463632106781,
0.10956162214279175,
0.03793909400701523,
0.006727127358317375,
-0.02915952168405056,
0.11246366053819656,
-0.005673443432897329,
-0.12224510312080383,
0.02591775730252266,
0.023124905303120613,
0.013507768511772156,
-0.03890137001872063,
-0.05274127796292305,
-0.0623335987329483,
0.011563435196876526,
0.12932203710079193,
-0.055448420345783234,
0.04275846108794212,
0.05092528462409973,
0.04920082911849022,
-0.09348394721746445,
0.18875356018543243,
-0.03468571975827217,
-0.02393367886543274,
-0.00011220749729545787,
0.05013544484972954,
0.016135355457663536,
-0.01193342637270689,
-0.12254531681537628,
0.006434006616473198,
0.08782543241977692,
0.00840902328491211,
-0.06313478201627731,
0.07501379400491714,
-0.05903446301817894,
-0.024571765214204788,
0.0022388077341020107,
-0.09120778739452362,
0.021840406581759453,
0.0012931987876072526,
-0.07125256210565567,
-0.022181695327162743,
0.035735439509153366,
0.015673326328396797,
-0.019894221797585487,
0.10734862089157104,
-0.08779071271419525,
0.026702649891376495,
-0.09260793775320053,
-0.11022593080997467,
0.01640845276415348,
-0.10631678998470306,
0.02285049669444561,
-0.09154350310564041,
-0.17895835638046265,
-0.017619380727410316,
0.06084243580698967,
-0.024888604879379272,
-0.05843721702694893,
-0.058270759880542755,
-0.06710784882307053,
0.01127562765032053,
-0.007436049170792103,
0.11738282442092896,
-0.06438736617565155,
0.09332895278930664,
0.02568805031478405,
0.06285618990659714,
-0.040924202650785446,
0.060315944254398346,
-0.10239847004413605,
0.013695069588720798,
-0.1507701724767685,
0.039690904319286346,
-0.05247194692492485,
0.06913737952709198,
-0.08221053332090378,
-0.10609593987464905,
0.0049402001313865185,
-0.0027276657056063414,
0.062017254531383514,
0.09574326127767563,
-0.18396934866905212,
-0.08251579850912094,
0.1631760150194168,
-0.07303627580404282,
-0.12112947553396225,
0.12095986306667328,
-0.05828157067298889,
0.05969015881419182,
0.05803501978516579,
0.18011628091335297,
0.086759053170681,
-0.07796243578195572,
0.0020544263534247875,
0.02328789420425892,
0.050313256680965424,
-0.06276009231805801,
0.06741396337747574,
0.002433783607557416,
0.02095518819987774,
0.03605714440345764,
-0.0266494732350111,
0.06355392187833786,
-0.08821524679660797,
-0.09919523447751999,
-0.03871630132198334,
-0.08219792693853378,
0.046186354011297226,
0.07896745204925537,
0.0677349716424942,
-0.09418483078479767,
-0.07805106788873672,
0.04905322194099426,
0.0817863717675209,
-0.05829857289791107,
0.02396637760102749,
-0.04974864423274994,
0.07304612547159195,
-0.024214908480644226,
-0.021494893357157707,
-0.1794031709432602,
-0.03387168049812317,
0.007896490395069122,
0.002525338903069496,
0.018806850537657738,
0.034636352211236954,
0.06388647109270096,
0.06076771765947342,
-0.05009566619992256,
-0.01974710449576378,
-0.03433720022439957,
-0.0006524617783725262,
-0.12528274953365326,
-0.19701658189296722,
-0.029237795621156693,
-0.022508803755044937,
0.15967991948127747,
-0.20699936151504517,
0.051683761179447174,
-0.01399469655007124,
0.07003011554479599,
0.011899883858859539,
-0.0064205871894955635,
-0.03736643120646477,
0.07534310966730118,
-0.04273280128836632,
-0.050994858145713806,
0.08241739124059677,
0.014248974621295929,
-0.08965172618627548,
-0.049181126058101654,
-0.09842292964458466,
0.1573091596364975,
0.12876124680042267,
-0.10947304964065552,
-0.0779460072517395,
-0.023019462823867798,
-0.06756825745105743,
-0.035079289227724075,
-0.04550939053297043,
0.026126332581043243,
0.18866442143917084,
-0.005187351256608963,
0.149525448679924,
-0.06798824667930603,
-0.043472010642290115,
0.018586372956633568,
-0.03721866011619568,
0.015917399898171425,
0.134345144033432,
0.13458065688610077,
-0.05927203223109245,
0.1555441915988922,
0.14757755398750305,
-0.08347944915294647,
0.150255486369133,
-0.04232901707291603,
-0.06583981215953827,
-0.015970027074217796,
-0.029713749885559082,
-0.010882419534027576,
0.0999474972486496,
-0.15544573962688446,
-0.0017765066586434841,
0.030823951587080956,
0.015590480528771877,
0.02548171579837799,
-0.22740314900875092,
-0.04078886657953262,
0.03771065175533295,
-0.04472346231341362,
-0.00623982073739171,
-0.006948597263544798,
0.005278724245727062,
0.10137511044740677,
-0.00048586924094706774,
-0.08762796223163605,
0.0364847406744957,
0.0025416691787540913,
-0.08331257104873657,
0.21542932093143463,
-0.08171327412128448,
-0.17149944603443146,
-0.13154688477516174,
-0.07239565998315811,
-0.04667172580957413,
-0.0007050251588225365,
0.06853468716144562,
-0.09745007008314133,
-0.026886478066444397,
-0.07138267904520035,
0.02630285918712616,
0.007900786586105824,
0.022530803456902504,
0.0037161356303840876,
0.007452435325831175,
0.06447368860244751,
-0.11223697662353516,
-0.014722605235874653,
-0.05791495367884636,
-0.045407723635435104,
0.046087924391031265,
0.028495313599705696,
0.1104443222284317,
0.15271919965744019,
-0.013174600899219513,
0.012206213548779488,
-0.03094520792365074,
0.23710422217845917,
-0.06006231531500816,
-0.019867904484272003,
0.1447426974773407,
-0.008164472877979279,
0.05227348953485489,
0.1151418685913086,
0.07473435997962952,
-0.07834178954362869,
0.004373922012746334,
0.038585107773542404,
-0.03435909375548363,
-0.23290617763996124,
-0.05342290922999382,
-0.05465327203273773,
0.011429889127612114,
0.09073931723833084,
0.023832306265830994,
0.02911686711013317,
0.0706276074051857,
0.0407918281853199,
0.07412569224834442,
-0.03708696737885475,
0.05085232853889465,
0.13035698235034943,
0.029998905956745148,
0.1248665452003479,
-0.04638867825269699,
-0.0651688277721405,
0.04076053202152252,
-0.00893822219222784,
0.22458279132843018,
0.009885965846478939,
0.13178232312202454,
0.06615718454122543,
0.16374416649341583,
-0.00950624793767929,
0.07638473808765411,
-0.009942037053406239,
-0.037343934178352356,
-0.01682964898645878,
-0.039347246289253235,
-0.039145465940237045,
0.024649208411574364,
-0.06352647393941879,
0.06251189112663269,
-0.12353244423866272,
0.015155998058617115,
0.05822804570198059,
0.24960702657699585,
0.03444984182715416,
-0.3187199532985687,
-0.09770727902650833,
0.0012061577290296555,
-0.03044968470931053,
-0.019088594242930412,
0.026927996426820755,
0.09414739161729813,
-0.09790585935115814,
0.02872912958264351,
-0.07453124970197678,
0.09620372205972672,
-0.05546626076102257,
0.05138019844889641,
0.08328617364168167,
0.08977457880973816,
0.011673903092741966,
0.09385509043931961,
-0.2876860201358795,
0.27580899000167847,
0.000014404309695237316,
0.05560477450489998,
-0.0763029232621193,
0.00919217150658369,
0.041395220905542374,
0.06305763870477676,
0.07989699393510818,
-0.012195393443107605,
-0.019929153844714165,
-0.18662327527999878,
-0.06774549931287766,
0.027003757655620575,
0.06875226646661758,
-0.04190728813409805,
0.08339092880487442,
-0.03180951625108719,
0.008901664055883884,
0.07330560684204102,
0.0012967911316081882,
-0.052826978266239166,
-0.108729287981987,
-0.004621477797627449,
0.021955300122499466,
-0.061027493327856064,
-0.06105341762304306,
-0.1215956062078476,
-0.12889564037322998,
0.1567937135696411,
-0.0341646708548069,
-0.03963774815201759,
-0.10668160021305084,
0.0823359414935112,
0.059985265135765076,
-0.08947331458330154,
0.04258451238274574,
0.002416137605905533,
0.0758320763707161,
0.021422356367111206,
-0.07098832726478577,
0.10315129905939102,
-0.07421904057264328,
-0.1563969850540161,
-0.06542383134365082,
0.10695002973079681,
0.03275415301322937,
0.06661126762628555,
-0.014800790697336197,
0.004370977636426687,
-0.04699487239122391,
-0.08807619661092758,
0.022742297500371933,
0.002254042774438858,
0.07742112129926682,
0.01840534806251526,
-0.07709148526191711,
0.012869770638644695,
-0.06463883072137833,
-0.03432745486497879,
0.20487748086452484,
0.2224862277507782,
-0.09928764402866364,
0.024121666327118874,
0.026196572929620743,
-0.07320243865251541,
-0.19835074245929718,
0.0330900177359581,
0.055080123245716095,
0.00822311919182539,
0.043307337909936905,
-0.1865556389093399,
0.1308695673942566,
0.10579486936330795,
-0.01177856232970953,
0.10623782873153687,
-0.3216424584388733,
-0.12035133689641953,
0.13665704429149628,
0.13610632717609406,
0.09850291907787323,
-0.13226038217544556,
-0.023162124678492546,
-0.017506280913949013,
-0.13866956532001495,
0.11369044333696365,
-0.09117206186056137,
0.12153696268796921,
-0.03769391402602196,
0.0779876559972763,
0.002378623466938734,
-0.05800928175449371,
0.11951633542776108,
0.02485421672463417,
0.09444624930620193,
-0.059347499161958694,
-0.03366405889391899,
0.03082006424665451,
-0.04205082729458809,
0.03390735387802124,
-0.09878944605588913,
0.029435111209750175,
-0.1032186970114708,
-0.024741951376199722,
-0.06887105107307434,
0.04525935277342796,
-0.04558379575610161,
-0.0690370500087738,
-0.03679848089814186,
0.025982756167650223,
0.04632177576422691,
-0.00818377174437046,
0.12078703939914703,
0.024440929293632507,
0.1482495814561844,
0.09870108217000961,
0.07387420535087585,
-0.06746994704008102,
-0.08177804946899414,
-0.02749689109623432,
-0.011120240204036236,
0.05019664391875267,
-0.1364951878786087,
0.019222024828195572,
0.15230029821395874,
0.019550230354070663,
0.15309888124465942,
0.08322753757238388,
-0.022307269275188446,
-0.0011741943890228868,
0.059124499559402466,
-0.1654110699892044,
-0.09311412274837494,
-0.016905341297388077,
-0.06879711151123047,
-0.12080499529838562,
0.04432523995637894,
0.09349115192890167,
-0.06734934449195862,
-0.007183118257671595,
-0.0047310031950473785,
0.014265445992350578,
-0.04930641129612923,
0.18478341400623322,
0.06277886033058167,
0.04858304560184479,
-0.0971267819404602,
0.07269253581762314,
0.045605406165122986,
-0.07274435460567474,
0.0034810714423656464,
0.07279207557439804,
-0.08513175696134567,
-0.05520215258002281,
0.06482888013124466,
0.1913156658411026,
-0.043500110507011414,
-0.04743324592709541,
-0.14568854868412018,
-0.12420526891946793,
0.07789125293493271,
0.13800854980945587,
0.11777418851852417,
0.010267185047268867,
-0.06626539677381516,
0.002853069920092821,
-0.10741577297449112,
0.1022886112332344,
0.046518635004758835,
0.06224445626139641,
-0.14250484108924866,
0.14084726572036743,
0.019472412765026093,
0.04933374375104904,
-0.018252871930599213,
0.02338697947561741,
-0.10021942853927612,
0.007203445769846439,
-0.09422952681779861,
-0.020020289346575737,
-0.02908449061214924,
0.011431707069277763,
-0.005700185429304838,
-0.04689476639032364,
-0.05380959436297417,
0.010728548280894756,
-0.10774725675582886,
-0.023569749668240547,
0.029720252379775047,
0.07294442504644394,
-0.1092274859547615,
-0.03589269146323204,
0.030867332592606544,
-0.061561014503240585,
0.0746050477027893,
0.0436779148876667,
0.015775689855217934,
0.050150152295827866,
-0.13710293173789978,
0.01905970275402069,
0.07315807044506073,
0.029529565945267677,
0.061256181448698044,
-0.09917557239532471,
-0.008623683825135231,
-0.009379715658724308,
0.0394432432949543,
0.02121361345052719,
0.07497122138738632,
-0.14092542231082916,
0.004187736194580793,
-0.023433255031704903,
-0.08387690037488937,
-0.06748303771018982,
0.027439450845122337,
0.08875761181116104,
0.01812531240284443,
0.1991835981607437,
-0.07643286883831024,
0.05071231350302696,
-0.21878623962402344,
0.006961027160286903,
-0.006719433702528477,
-0.11008361726999283,
-0.10042496025562286,
-0.07240597158670425,
0.054469771683216095,
-0.06082601100206375,
0.1501784324645996,
0.04640989750623703,
0.01814238727092743,
0.024083251133561134,
-0.011266910471022129,
0.011836372315883636,
0.010567573830485344,
0.18800514936447144,
0.03071717917919159,
-0.03463824465870857,
0.058123935014009476,
0.04474765062332153,
0.10215634852647781,
0.11260849237442017,
0.1996130645275116,
0.14401233196258545,
-0.007989735342562199,
0.09217675775289536,
0.04435429349541664,
-0.05741414055228233,
-0.15685586631298065,
0.05193696171045303,
-0.0341048426926136,
0.10881145298480988,
-0.0205087810754776,
0.2193014919757843,
0.06407869607210159,
-0.16914403438568115,
0.051891498267650604,
-0.0526687316596508,
-0.0873677134513855,
-0.11466251313686371,
-0.0476498007774353,
-0.07670889049768448,
-0.1310296207666397,
-0.003852836089208722,
-0.11605861037969589,
-0.0032510138116776943,
0.1252802461385727,
0.0037974293809384108,
-0.027041317895054817,
0.15864132344722748,
0.014483143575489521,
0.0225918497890234,
0.05873031169176102,
0.008676120080053806,
-0.0384538508951664,
-0.1387690007686615,
-0.05931025743484497,
-0.012335222214460373,
-0.008150358684360981,
0.03009633533656597,
-0.06186804175376892,
-0.04454087093472481,
0.03107685223221779,
-0.020882699638605118,
-0.09628267586231232,
0.005549776833504438,
0.01144648902118206,
0.05252530425786972,
0.04475356638431549,
0.00892072543501854,
0.01873331516981125,
-0.003376055508852005,
0.19968600571155548,
-0.07167273759841919,
-0.06526239961385727,
-0.1031627431511879,
0.23447823524475098,
0.034479208290576935,
-0.018741119652986526,
0.03423730656504631,
-0.06631530076265335,
0.004058356862515211,
0.24936053156852722,
0.21794326603412628,
-0.08056052774190903,
-0.006106656044721603,
0.017877373844385147,
-0.007569471374154091,
-0.021040622144937515,
0.09824363887310028,
0.14351975917816162,
0.046688009053468704,
-0.09302116185426712,
-0.04397961497306824,
-0.05823399871587753,
-0.017668254673480988,
-0.03473683074116707,
0.07029149681329727,
0.05185231938958168,
0.009723080322146416,
-0.03578144311904907,
0.0560118742287159,
-0.06690165400505066,
-0.0900563895702362,
0.057287801057100296,
-0.21827712655067444,
-0.16718503832817078,
-0.01635059341788292,
0.102193683385849,
0.0026265447959303856,
0.06225225329399109,
-0.029545802623033524,
-0.0034194793552160263,
0.09174508601427078,
-0.01924033835530281,
-0.09785999357700348,
-0.07174737751483917,
0.08516989648342133,
-0.11408346146345139,
0.21698929369449615,
-0.04800431802868843,
0.05419419705867767,
0.125503808259964,
0.0677528828382492,
-0.06486604362726212,
0.0656476616859436,
0.04222383722662926,
-0.041579049080610275,
0.02324782870709896,
0.06879272311925888,
-0.03302383050322533,
0.0634455755352974,
0.04789045453071594,
-0.13867011666297913,
0.02322296053171158,
-0.04599389061331749,
-0.06928212940692902,
-0.04324514791369438,
-0.021241433918476105,
-0.059865400195121765,
0.1290993094444275,
0.2193995714187622,
-0.025154052302241325,
-0.009979253634810448,
-0.07123111933469772,
0.009123660624027252,
0.055962931364774704,
0.021609079092741013,
-0.05718136951327324,
-0.2108323723077774,
0.01598009467124939,
0.045608192682266235,
-0.017617935314774513,
-0.2530362606048584,
-0.10077351331710815,
0.0033950277138501406,
-0.07290155440568924,
-0.09578829258680344,
0.07241149246692657,
0.08837442100048065,
0.054962947964668274,
-0.056111354380846024,
-0.04612942785024643,
-0.07473622262477875,
0.14901910722255707,
-0.1457425057888031,
-0.09076783061027527
] |
null | null | transformers | ## keyT5. Base (small) version
[![0x7o - text2keywords](https://img.shields.io/static/v1?label=0x7o&message=text2keywords&color=blue&logo=github)](https://github.com/0x7o/text2keywords "Go to GitHub repo")
[![stars - text2keywords](https://img.shields.io/github/stars/0x7o/text2keywords?style=social)](https://github.com/0x7o/text2keywords)
[![forks - text2keywords](https://img.shields.io/github/forks/0x7o/text2keywords?style=social)](https://github.com/0x7o/text2keywords)
Supported languages: ru
Github - [text2keywords](https://github.com/0x7o/text2keywords)
[Pretraining Large version](https://huggingface.co/0x7194633/keyt5-large)
|
[Pretraining Base version](https://huggingface.co/0x7194633/keyt5-base)
# Usage
Example usage (the code returns a list with keywords. duplicates are possible):
[![Try Model Training In Colab!](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/0x7o/text2keywords/blob/main/example/keyT5_use.ipynb)
```
pip install transformers sentencepiece
```
```python
from itertools import groupby
import torch
from transformers import T5ForConditionalGeneration, T5Tokenizer
model_name = "0x7194633/keyt5-large" # or 0x7194633/keyt5-base
tokenizer = T5Tokenizer.from_pretrained(model_name)
model = T5ForConditionalGeneration.from_pretrained(model_name)
def generate(text, **kwargs):
inputs = tokenizer(text, return_tensors='pt')
with torch.no_grad():
hypotheses = model.generate(**inputs, num_beams=5, **kwargs)
s = tokenizer.decode(hypotheses[0], skip_special_tokens=True)
s = s.replace('; ', ';').replace(' ;', ';').lower().split(';')[:-1]
s = [el for el, _ in groupby(s)]
return s
article = """Reuters сообщил об отмене 3,6 тыс. авиарейсов из-за «омикрона» и погоды
Наибольшее число отмен авиарейсов 2 января пришлось на американские авиакомпании
SkyWest и Southwest, у каждой — более 400 отмененных рейсов. При этом среди
отмененных 2 января авиарейсов — более 2,1 тыс. рейсов в США. Также свыше 6400
рейсов были задержаны."""
print(generate(article, top_p=1.0, max_length=64))
# ['авиаперевозки', 'отмена авиарейсов', 'отмена рейсов', 'отмена авиарейсов', 'отмена рейсов', 'отмена авиарейсов']
```
# Training
Go to the training notebook and learn more about it:
[![Try Model Training In Colab!](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/0x7o/text2keywords/blob/main/example/keyT5_train.ipynb)
| {"language": ["ru"], "license": "mit", "inference": {"parameters": {"top_p": 0.9}}, "widget": [{"text": "\u0412 \u0420\u043e\u0441\u0441\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0448\u0442\u0430\u043c\u043c \u043a\u043e\u0440\u043e\u043d\u0430\u0432\u0438\u0440\u0443\u0441\u0430 \u00ab\u043e\u043c\u0438\u043a\u0440\u043e\u043d\u00bb, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043f\u043e\u0434\u044a\u0435\u043c\u0443 \u0437\u0430\u0431\u043e\u043b\u0435\u0432\u0430\u0435\u043c\u043e\u0441\u0442\u0438 \u0432 \u044f\u043d\u0432\u0430\u0440\u0435, \u0437\u0430\u044f\u0432\u0438\u043b \u0434\u043e\u0446\u0435\u043d\u0442 \u043a\u0430\u0444\u0435\u0434\u0440\u044b \u0438\u043d\u0444\u0435\u043a\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0431\u043e\u043b\u0435\u0437\u043d\u0435\u0439 \u0420\u0423\u0414\u041d \u0421\u0435\u0440\u0433\u0435\u0439 \u0412\u043e\u0437\u043d\u0435\u0441\u0435\u043d\u0441\u043a\u0438\u0439. \u041e\u043d \u043e\u0442\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u00ab\u0434\u0435\u043b\u044c\u0442\u0430\u00bb \u0432\u044b\u0437\u044b\u0432\u0430\u043b \u0431\u043e\u043b\u044c\u0448\u0435 \u043b\u0435\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u0447\u0435\u043c \u043e\u043c\u0438\u043a\u0440\u043e\u043d, \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u0444\u043e\u043d\u0435 \u00ab\u0434\u0435\u043b\u044c\u0442\u044b\u00bb \u0431\u044b\u043b\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043b\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c.", "example_title": "\u041a\u043e\u0440\u043e\u043d\u0430\u0432\u0438\u0440\u0443\u0441"}, {"text": "\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0438\u043a\u0430 \u0448\u0442\u0430\u0431\u0430 \u043e\u0431\u043e\u0440\u043e\u043d\u044b \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u0438 \u0430\u0434\u043c\u0438\u0440\u0430\u043b\u0430 \u0422\u043e\u043d\u0438 \u0420\u0430\u0434\u0430\u043a\u0438\u043d\u0430 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u0438\u0437\u0438\u0442\u0430 \u0432 \u0430\u043d\u0433\u0430\u0440 \u0441 \u0442\u044f\u0436\u0435\u043b\u044b\u043c \u0432\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c, \u0441\u043e\u043e\u0431\u0449\u0438\u043b\u0430 \u0431\u0440\u0438\u0442\u0430\u043d\u0441\u043a\u0430\u044f \u043f\u0440\u0435\u0441\u0441\u0430. \u0412 \u043f\u0440\u0438\u043a\u0430\u0437\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0432\u043e\u0435\u043d\u043d\u043e\u0441\u043b\u0443\u0436\u0430\u0449\u0438\u043c \u0431\u044b\u043b\u043e \u0432\u0435\u043b\u0435\u043d\u043e \u043f\u043e\u0434\u0431\u0435\u0433\u0430\u0442\u044c \u043a \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044f\u043c, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u044e\u043a\u0438, \u0437\u0430\u0442\u0432\u043e\u0440\u044b, \u043b\u0438\u0441\u0442\u0430\u0442\u044c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0438 \u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u0430\u0448\u0438\u043d\u044b, \u0431\u0443\u0434\u0442\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f.", "example_title": "\u0411\u0440\u0438\u0442\u0430\u043d\u0438\u044f"}, {"text": "\u0414\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043c\u0443\u0437\u044b\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b. \u041a\u0430\u0436\u0434\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0448\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u043c\u043f\u043b \u2014 \u0435\u0441\u0442\u044c \u043c\u0430\u0440\u0430\u043a\u0430\u0441\u044b \u0438 \u0444\u0443\u0442\u0443\u0440\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0435 \u0437\u0432\u0443\u043a\u0438, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0438\u0435 \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u044b \u0431\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432. \u0418\u0437 \u0432\u0441\u0435\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0437\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0441 \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0444\u0438\u0433\u0443\u0440\u0430\u043c\u0438. \u0427\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043f\u0440\u043e\u0431\u0435\u043b \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435, \u0446\u0432\u0435\u0442\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0438 \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u0435 \u0441\u0435\u043c\u043f\u043b\u043e\u0432.", "example_title": "\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438"}]} | text2text-generation | 0x7o/keyt5-base | [
"transformers",
"pytorch",
"t5",
"text2text-generation",
"ru",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"ru"
] | TAGS
#transformers #pytorch #t5 #text2text-generation #ru #license-mit #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us
| ## keyT5. Base (small) version
![0x7o - text2keywords](URL "Go to GitHub repo")
![stars - text2keywords](URL
![forks - text2keywords](URL
Supported languages: ru
Github - text2keywords
Pretraining Large version
|
Pretraining Base version
# Usage
Example usage (the code returns a list with keywords. duplicates are possible):
![Try Model Training In Colab!](URL
# Training
Go to the training notebook and learn more about it:
![Try Model Training In Colab!](URL
| [
"## keyT5. Base (small) version\n![0x7o - text2keywords](URL \"Go to GitHub repo\")\n![stars - text2keywords](URL\n![forks - text2keywords](URL\n\nSupported languages: ru\n\nGithub - text2keywords\n\n\nPretraining Large version\n|\nPretraining Base version",
"# Usage\nExample usage (the code returns a list with keywords. duplicates are possible):\n\n![Try Model Training In Colab!](URL",
"# Training\nGo to the training notebook and learn more about it:\n\n![Try Model Training In Colab!](URL"
] | [
"TAGS\n#transformers #pytorch #t5 #text2text-generation #ru #license-mit #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n",
"## keyT5. Base (small) version\n![0x7o - text2keywords](URL \"Go to GitHub repo\")\n![stars - text2keywords](URL\n![forks - text2keywords](URL\n\nSupported languages: ru\n\nGithub - text2keywords\n\n\nPretraining Large version\n|\nPretraining Base version",
"# Usage\nExample usage (the code returns a list with keywords. duplicates are possible):\n\n![Try Model Training In Colab!](URL",
"# Training\nGo to the training notebook and learn more about it:\n\n![Try Model Training In Colab!](URL"
] | [
55,
85,
35,
26
] | [
"passage: TAGS\n#transformers #pytorch #t5 #text2text-generation #ru #license-mit #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n## keyT5. Base (small) version\n![0x7o - text2keywords](URL \"Go to GitHub repo\")\n![stars - text2keywords](URL\n![forks - text2keywords](URL\n\nSupported languages: ru\n\nGithub - text2keywords\n\n\nPretraining Large version\n|\nPretraining Base version# Usage\nExample usage (the code returns a list with keywords. duplicates are possible):\n\n![Try Model Training In Colab!](URL# Training\nGo to the training notebook and learn more about it:\n\n![Try Model Training In Colab!](URL"
] | [
-0.00923062302172184,
0.01892777718603611,
-0.005623692646622658,
0.07356038689613342,
0.13428981602191925,
0.07308828830718994,
0.16377557814121246,
0.16544197499752045,
-0.04865477979183197,
-0.045893095433712006,
0.0766645148396492,
0.09742812812328339,
0.055146023631095886,
0.12232934683561325,
0.020997999235987663,
-0.25483769178390503,
0.024240130558609962,
0.025009270757436752,
0.02047770656645298,
0.1304730325937271,
0.13150426745414734,
-0.04394127056002617,
0.08080597966909409,
0.047978874295949936,
-0.15100142359733582,
0.05738838389515877,
0.02709406241774559,
-0.15167675912380219,
0.16981376707553864,
0.004902299959212542,
0.10453934222459793,
0.03559355065226555,
0.03641275689005852,
-0.15346255898475647,
0.03272538632154465,
0.09072288125753403,
-0.015538850799202919,
0.07318779081106186,
0.014081496745347977,
-0.024789486080408096,
0.14717864990234375,
0.07211461663246155,
-0.009220409207046032,
0.04731053486466408,
-0.13549743592739105,
-0.07505327463150024,
-0.11024047434329987,
0.09963544458150864,
0.06932913511991501,
0.0590856708586216,
0.02678745798766613,
0.15878388285636902,
-0.10876164585351944,
0.06858471035957336,
0.23803620040416718,
-0.2907136082649231,
-0.047279682010412216,
0.08109612762928009,
0.08592534065246582,
0.09077908843755722,
-0.010876812972128391,
0.02250795066356659,
0.042046625167131424,
0.039584387093782425,
-0.003234471892938018,
-0.034422487020492554,
-0.1780923455953598,
0.01348235085606575,
-0.09842228889465332,
-0.05398520454764366,
0.1157398670911789,
-0.05189986526966095,
-0.0709507018327713,
-0.031063202768564224,
-0.08840016275644302,
-0.017464853823184967,
-0.02613992616534233,
-0.056057944893836975,
0.008629381656646729,
0.06862154603004456,
-0.02566475234925747,
-0.16721582412719727,
-0.10271383076906204,
-0.0973152369260788,
-0.02668219804763794,
0.07864642888307571,
0.0627472847700119,
0.05206245929002762,
-0.06142892315983772,
0.11708052456378937,
0.04268275573849678,
-0.07872337847948074,
-0.08284363150596619,
-0.0666389986872673,
0.05485151335597038,
-0.039320722222328186,
-0.03865915164351463,
-0.06273646652698517,
0.12273047864437103,
0.051556527614593506,
-0.017239488661289215,
-0.004215190652757883,
-0.038818228989839554,
0.05143425613641739,
-0.05003606155514717,
0.08545171469449997,
-0.06664452701807022,
0.026635704562067986,
0.11097581684589386,
-0.001162132597528398,
-0.021714482456445694,
-0.012276253663003445,
-0.1241769939661026,
-0.09892310202121735,
0.09387364238500595,
0.07739906013011932,
-0.0007381074246950448,
0.0714360922574997,
-0.021996574476361275,
-0.023066651076078415,
0.006091943476349115,
-0.0778539627790451,
-0.010616358369588852,
0.008998117409646511,
-0.0330190472304821,
0.004417091608047485,
0.05573159083724022,
0.03149484843015671,
-0.13320323824882507,
-0.0590752474963665,
-0.03296458721160889,
0.006004468537867069,
-0.0990680381655693,
-0.10327841341495514,
0.004833880811929703,
-0.13868243992328644,
-0.03411657735705376,
-0.13090860843658447,
-0.14254802465438843,
0.015655450522899628,
0.0490286611020565,
0.029722856357693672,
-0.040574729442596436,
-0.05864112079143524,
-0.06402787566184998,
-0.04847552254796028,
-0.008232035674154758,
-0.048640768975019455,
-0.03723367676138878,
0.07787595689296722,
-0.024086710065603256,
0.04551102593541145,
-0.07062708586454391,
0.011858314275741577,
-0.13967172801494598,
-0.022480007261037827,
-0.08823763579130173,
0.08578961342573166,
0.01383187621831894,
0.06786403805017471,
-0.09999019652605057,
-0.07549723982810974,
0.01118115708231926,
0.03206565976142883,
0.05292058736085892,
0.11971069127321243,
-0.13097764551639557,
-0.05386844649910927,
0.25429967045783997,
-0.11988120526075363,
-0.1566208004951477,
0.12047772854566574,
-0.06523621827363968,
0.1550881266593933,
0.10478399693965912,
0.13874249160289764,
0.13384969532489777,
-0.04287586733698845,
0.07406847923994064,
0.00685356417670846,
-0.053264226764440536,
-0.045532383024692535,
0.025460151955485344,
-0.004344351124018431,
-0.0831374078989029,
0.02891330048441887,
-0.006902947090566158,
0.004495329689234495,
-0.057206399738788605,
-0.07648894190788269,
-0.029940670356154442,
-0.026044584810733795,
0.009344963356852531,
-0.03106801025569439,
0.06439951062202454,
-0.06419967114925385,
-0.09032052010297775,
0.04713103920221329,
0.04776447266340256,
-0.07285022735595703,
0.00917225144803524,
-0.10584253817796707,
0.03477764502167702,
0.046842072159051895,
0.02353621833026409,
-0.05535097047686577,
0.01624966971576214,
0.03671992942690849,
0.09722308069467545,
0.06522879749536514,
0.06748327612876892,
0.03980288282036781,
0.03208884596824646,
0.018773004412651062,
0.002490176120772958,
-0.04933122918009758,
-0.029315883293747902,
-0.06106003001332283,
-0.07103925198316574,
-0.04034971445798874,
-0.0026037890929728746,
0.051057592034339905,
-0.06882637739181519,
0.05171626806259155,
0.004137114621698856,
0.06569979339838028,
-0.02497655339539051,
0.018308032304048538,
-0.0025452340487390757,
0.049791332334280014,
-0.05710319057106972,
-0.04229871183633804,
0.07688453793525696,
0.029071282595396042,
-0.0628216490149498,
0.03315461799502373,
-0.032177966088056564,
0.02163897082209587,
0.11905936896800995,
-0.05866122245788574,
-0.05882792919874191,
0.036712467670440674,
-0.04938066378235817,
0.04362940788269043,
0.012790115550160408,
0.03759509325027466,
0.24886368215084076,
0.005302055738866329,
0.1264028698205948,
-0.09484511613845825,
-0.014894701540470123,
-0.006137385033071041,
-0.1049211174249649,
0.06271810084581375,
0.013027106411755085,
0.03553485497832298,
-0.13361158967018127,
0.06707312166690826,
-0.0024336730130016804,
-0.0687793418765068,
0.16856296360492706,
0.00020677708380389959,
-0.008666416630148888,
0.014216641895473003,
0.020936375483870506,
0.019583139568567276,
0.002511517610400915,
-0.09159083664417267,
-0.011803211644291878,
0.026748785749077797,
-0.01997476816177368,
0.07361764460802078,
-0.17229214310646057,
-0.008719375357031822,
-0.003651726059615612,
-0.08491159975528717,
-0.06022777408361435,
0.008392308838665485,
0.04107090085744858,
0.08021273463964462,
0.024177175015211105,
-0.0025382135063409805,
0.0431322418153286,
0.006178090814501047,
-0.11152660101652145,
0.21109922230243683,
-0.08955343067646027,
-0.226892352104187,
-0.13556019961833954,
0.04127182438969612,
0.006914625875651836,
0.036453671753406525,
0.10133840888738632,
-0.05382964015007019,
0.01719048246741295,
-0.05122636631131172,
0.08619996160268784,
-0.060317959636449814,
-0.03469276800751686,
-0.07215744256973267,
0.06932908296585083,
-0.0176724661141634,
-0.16877950727939606,
-0.027341172099113464,
-0.0031247944571077824,
-0.25007909536361694,
0.07342413067817688,
-0.04460873454809189,
0.01621476374566555,
0.07509936392307281,
-0.08950577676296234,
0.034425120800733566,
-0.06652950495481491,
0.14964500069618225,
-0.03469376266002655,
0.029108574613928795,
0.23371043801307678,
-0.01725216954946518,
0.058352917432785034,
0.09367677569389343,
0.009974285028874874,
-0.02811497077345848,
0.025815384462475777,
-0.02373620495200157,
-0.05150383338332176,
-0.2500627040863037,
0.004558262415230274,
-0.04153451323509216,
0.0342474989593029,
0.02889382280409336,
0.035646453499794006,
0.10999657213687897,
0.10952736437320709,
-0.059361059218645096,
0.03129105269908905,
-0.013049033470451832,
0.06050308048725128,
0.087178535759449,
0.04179738089442253,
0.0930737853050232,
-0.05473735183477402,
-0.06827237457036972,
0.05616267770528793,
0.07168211042881012,
0.14352987706661224,
-0.017738258466124535,
0.1223602294921875,
0.08961968868970871,
0.13468152284622192,
0.07338789105415344,
0.10399075597524643,
-0.050632573664188385,
0.047139089554548264,
-0.018265236169099808,
-0.037858717143535614,
-0.05215990170836449,
0.04353753849864006,
-0.035588089376688004,
-0.031493160873651505,
-0.050440914928913116,
-0.02225373685359955,
0.08150377869606018,
0.32940930128097534,
0.02031852677464485,
-0.27903953194618225,
-0.07539988309144974,
-0.005163478199392557,
-0.046671293675899506,
-0.05212830752134323,
0.034467216581106186,
0.014106170274317265,
-0.150587260723114,
0.03950218856334686,
-0.023927176371216774,
0.105042465031147,
-0.06172342225909233,
0.04524275287985802,
0.050415486097335815,
0.07442862540483475,
0.0013444534270092845,
0.105678491294384,
-0.2644025981426239,
0.15215332806110382,
-0.01112519670277834,
0.07950599491596222,
-0.07205968350172043,
0.031166812404990196,
0.031570352613925934,
0.033681053668260574,
0.052047695964574814,
-0.003810203168541193,
0.06934501975774765,
-0.09795771539211273,
-0.03807211294770241,
0.0754627138376236,
0.039208654314279556,
-0.10066032409667969,
0.1084868460893631,
-0.06394853442907333,
0.02915949746966362,
-0.013236425817012787,
-0.02383832447230816,
-0.1705307811498642,
-0.06975637376308441,
0.013988611288368702,
-0.03104010783135891,
0.10680614411830902,
-0.09735066443681717,
-0.02558164857327938,
0.04370687156915665,
0.22329474985599518,
0.0029501307290047407,
-0.10919234901666641,
-0.08411367237567902,
0.012160738930106163,
0.028286412358283997,
-0.07938062399625778,
0.036135584115982056,
-0.04007642716169357,
0.05968364700675011,
-0.04167328029870987,
-0.13003747165203094,
0.07894047349691391,
-0.039540696889162064,
-0.12029751390218735,
-0.008155953139066696,
0.11551393568515778,
-0.0075522917322814465,
0.008823494426906109,
0.07858791202306747,
0.005951996427029371,
-0.03856425732374191,
-0.0863901749253273,
-0.03143991902470589,
0.032331958413124084,
-0.03861026093363762,
0.011041158810257912,
-0.09485167264938354,
-0.017611749470233917,
-0.06301826238632202,
0.02607131376862526,
0.2607092559337616,
0.11974120885133743,
-0.09353861212730408,
0.07920671999454498,
0.06297089159488678,
-0.09234511852264404,
-0.24513089656829834,
-0.031668517738580704,
0.03195071592926979,
0.01984262466430664,
-0.04759979993104935,
-0.24621088802814484,
0.045484431087970734,
0.05706404894590378,
-0.008275126107037067,
0.04141678288578987,
-0.2617131173610687,
-0.05982218310236931,
0.03934883326292038,
0.07285281270742416,
0.09002704173326492,
-0.11610647290945053,
-0.01887345314025879,
-0.03838292509317398,
-0.11723197996616364,
0.1347859501838684,
-0.1084078922867775,
0.11877231299877167,
-0.042491666972637177,
0.07643502205610275,
0.03656395152211189,
-0.03138796612620354,
0.03274425119161606,
-0.08271912485361099,
0.00995597057044506,
-0.05852934345602989,
-0.047143228352069855,
0.10340096056461334,
-0.012586602009832859,
0.07629597932100296,
-0.044783346354961395,
0.09547007828950882,
-0.025839926674962044,
-0.04258573055267334,
-0.05922969430685043,
0.12442966550588608,
-0.02178858034312725,
-0.08450658619403839,
-0.05327548086643219,
-0.016433946788311005,
-0.0035752763506025076,
0.013977705501019955,
0.0823492631316185,
-0.01826806180179119,
0.15420971810817719,
0.13406695425510406,
0.10281355679035187,
-0.04612293839454651,
0.11680439114570618,
0.01915017142891884,
-0.03904024884104729,
0.08616548031568527,
-0.13251367211341858,
0.03999796509742737,
0.06361962109804153,
0.014732600189745426,
0.0405939444899559,
0.08749009668827057,
-0.09940490871667862,
0.05438855290412903,
0.09531258046627045,
-0.16802193224430084,
-0.13189463317394257,
-0.06851604580879211,
-0.06547657400369644,
-0.06414906680583954,
0.07518960535526276,
0.1769164353609085,
-0.10044868290424347,
-0.0855032205581665,
-0.03557902202010155,
-0.008153184317052364,
-0.11262240260839462,
0.0413067601621151,
0.0315333791077137,
0.04208599776029587,
-0.04911912977695465,
0.0470404215157032,
0.05313684046268463,
0.03685711324214935,
0.024269551038742065,
0.12743084132671356,
-0.09200644493103027,
-0.08586680144071579,
0.06456121802330017,
0.10604847967624664,
-0.04792666435241699,
-0.028203509747982025,
-0.11468015611171722,
-0.07189451903104782,
0.009069900028407574,
0.10609526187181473,
0.05265656113624573,
0.052433762699365616,
-0.02054033987224102,
0.047449566423892975,
-0.056540362536907196,
0.01761656440794468,
-0.012022529728710651,
0.04119497910141945,
-0.11415473371744156,
0.1853250414133072,
-0.008990663103759289,
0.06501765549182892,
-0.028015661984682083,
-0.015369925647974014,
-0.11081494390964508,
0.02013387158513069,
-0.1357307732105255,
-0.003407048527151346,
-0.04511916637420654,
-0.0005759054329246283,
-0.0029274069238454103,
-0.029924120754003525,
-0.03914353623986244,
0.04541739448904991,
-0.09195788204669952,
-0.035180773586034775,
-0.053892698138952255,
0.1106836199760437,
-0.09237733483314514,
0.045389823615550995,
0.059188950806856155,
-0.05600510537624359,
0.1274508833885193,
0.050203289836645126,
-0.07618384808301926,
0.07274231314659119,
-0.16156013309955597,
-0.007361372467130423,
0.04869840666651726,
0.027507146820425987,
0.013337363488972187,
0.018593424931168556,
0.08681995421648026,
0.016008492559194565,
0.014841155149042606,
0.0030807482544332743,
0.1050005629658699,
-0.11153722554445267,
-0.04945889860391617,
0.005677787121385336,
-0.060618527233600616,
-0.0422678217291832,
-0.00015667619300074875,
0.1224607601761818,
0.06961415708065033,
0.14420801401138306,
-0.08229672163724899,
0.06606905162334442,
-0.15529556572437286,
-0.019353246316313744,
-0.009877980686724186,
-0.06012868136167526,
-0.14719338715076447,
-0.09551537781953812,
0.0389723926782608,
-0.008197161369025707,
0.11283703148365021,
0.04619145393371582,
0.023212386295199394,
-0.01993619091808796,
-0.025642601773142815,
0.06164120137691498,
0.026893436908721924,
0.24118654429912567,
0.04420726001262665,
-0.02202785760164261,
-0.018522165715694427,
-0.025648722425103188,
-0.002916494617238641,
-0.1120910793542862,
0.0714426189661026,
0.12462398409843445,
0.04739763215184212,
0.06649133563041687,
0.07987485080957413,
0.032948702573776245,
-0.023615997284650803,
-0.05955808237195015,
0.08646608889102936,
0.04347524419426918,
-0.08033134788274765,
0.05637967213988304,
0.23029538989067078,
-0.08264261484146118,
0.03734646737575531,
-0.007281935308128595,
-0.03983326256275177,
-0.12532052397727966,
-0.04251734912395477,
-0.09843865036964417,
-0.17065726220607758,
0.028705261647701263,
-0.10986613482236862,
0.005088442005217075,
0.07920552790164948,
0.01725471019744873,
-0.0668945163488388,
0.08556642383337021,
0.12172308564186096,
-0.09395149350166321,
0.05451617389917374,
-0.03310756757855415,
0.027490226551890373,
-0.017789307981729507,
-0.07466642558574677,
0.01454174891114235,
0.04653238505125046,
0.05549496039748192,
0.020208483561873436,
-0.01897733099758625,
0.02631962299346924,
-0.15276922285556793,
-0.07163112610578537,
0.028721436858177185,
-0.00638195313513279,
0.019796529784798622,
0.021170970052480698,
0.05862646922469139,
-0.07558420300483704,
0.03887419402599335,
0.21401892602443695,
-0.044686153531074524,
-0.18466176092624664,
-0.13474702835083008,
0.24439585208892822,
0.029431741684675217,
0.02202843688428402,
0.019041001796722412,
-0.03630926460027695,
-0.07046134769916534,
0.23274123668670654,
0.2744782269001007,
-0.05445964261889458,
-0.0009830681374296546,
-0.011801034212112427,
-0.0002058015379589051,
0.04437412694096565,
0.18123804032802582,
0.06971878558397293,
0.07253389805555344,
-0.05549329146742821,
0.043086856603622437,
-0.023336950689554214,
-0.012194601818919182,
-0.13417905569076538,
0.11660980433225632,
0.007139122579246759,
-0.0018034151289612055,
-0.02557087317109108,
0.13304953277111053,
-0.08704446256160736,
-0.058810800313949585,
-0.04987882450222969,
-0.11379215121269226,
-0.10512658208608627,
-0.0015394332585856318,
0.09278934448957443,
-0.01825409010052681,
0.09116823971271515,
0.0074666268192231655,
0.001995445927605033,
0.07821277529001236,
0.007568989880383015,
-0.09964033216238022,
-0.02981608361005783,
0.09355843812227249,
-0.14654091000556946,
0.1511530876159668,
-0.03452623263001442,
0.017163686454296112,
0.10727611929178238,
0.03511200472712517,
-0.07558365911245346,
0.050835102796554565,
0.007197231985628605,
-0.017373399809002876,
0.02709302119910717,
-0.023787161335349083,
-0.02574215643107891,
-0.05222778022289276,
0.046944744884967804,
-0.1530015468597412,
0.041023146361112595,
-0.05971865355968475,
-0.011528908275067806,
-0.1005270853638649,
0.01526798028498888,
-0.07576042413711548,
0.0560619942843914,
0.1558465212583542,
-0.07251317799091339,
0.024410516023635864,
-0.10968974977731705,
0.028619684278964996,
0.06482631713151932,
-0.019789688289165497,
-0.036370180547237396,
-0.17330171167850494,
-0.06458503752946854,
0.048821821808815,
0.02290387824177742,
-0.15862387418746948,
0.006094411015510559,
-0.047146476805210114,
0.014762724749743938,
-0.12198682874441147,
0.11840285360813141,
0.13884250819683075,
0.012404784560203552,
0.019686473533511162,
-0.07155472785234451,
-0.03287607431411743,
0.12752927839756012,
-0.11555851250886917,
-0.11988038569688797
] |
null | null | transformers | ## keyT5. Large version
[![0x7o - text2keywords](https://img.shields.io/static/v1?label=0x7o&message=text2keywords&color=blue&logo=github)](https://github.com/0x7o/text2keywords "Go to GitHub repo")
[![stars - text2keywords](https://img.shields.io/github/stars/0x7o/text2keywords?style=social)](https://github.com/0x7o/text2keywords)
[![forks - text2keywords](https://img.shields.io/github/forks/0x7o/text2keywords?style=social)](https://github.com/0x7o/text2keywords)
Supported languages: ru
Github - [text2keywords](https://github.com/0x7o/text2keywords)
[Pretraining Large version](https://huggingface.co/0x7194633/keyt5-large)
|
[Pretraining Base version](https://huggingface.co/0x7194633/keyt5-base)
# Usage
Example usage (the code returns a list with keywords. duplicates are possible):
[![Try Model Training In Colab!](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/0x7o/text2keywords/blob/main/example/keyT5_use.ipynb)
```
pip install transformers sentencepiece
```
```python
from itertools import groupby
import torch
from transformers import T5ForConditionalGeneration, T5Tokenizer
model_name = "0x7194633/keyt5-large" # or 0x7194633/keyt5-base
tokenizer = T5Tokenizer.from_pretrained(model_name)
model = T5ForConditionalGeneration.from_pretrained(model_name)
def generate(text, **kwargs):
inputs = tokenizer(text, return_tensors='pt')
with torch.no_grad():
hypotheses = model.generate(**inputs, num_beams=5, **kwargs)
s = tokenizer.decode(hypotheses[0], skip_special_tokens=True)
s = s.replace('; ', ';').replace(' ;', ';').lower().split(';')[:-1]
s = [el for el, _ in groupby(s)]
return s
article = """Reuters сообщил об отмене 3,6 тыс. авиарейсов из-за «омикрона» и погоды
Наибольшее число отмен авиарейсов 2 января пришлось на американские авиакомпании
SkyWest и Southwest, у каждой — более 400 отмененных рейсов. При этом среди
отмененных 2 января авиарейсов — более 2,1 тыс. рейсов в США. Также свыше 6400
рейсов были задержаны."""
print(generate(article, top_p=1.0, max_length=64))
# ['авиаперевозки', 'отмена авиарейсов', 'отмена рейсов', 'отмена авиарейсов', 'отмена рейсов', 'отмена авиарейсов']
```
# Training
Go to the training notebook and learn more about it:
[![Try Model Training In Colab!](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/0x7o/text2keywords/blob/main/example/keyT5_train.ipynb)
| {"language": ["ru"], "license": "mit", "inference": {"parameters": {"top_p": 1.0}}, "widget": [{"text": "\u0412 \u0420\u043e\u0441\u0441\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0448\u0442\u0430\u043c\u043c \u043a\u043e\u0440\u043e\u043d\u0430\u0432\u0438\u0440\u0443\u0441\u0430 \u00ab\u043e\u043c\u0438\u043a\u0440\u043e\u043d\u00bb, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043f\u043e\u0434\u044a\u0435\u043c\u0443 \u0437\u0430\u0431\u043e\u043b\u0435\u0432\u0430\u0435\u043c\u043e\u0441\u0442\u0438 \u0432 \u044f\u043d\u0432\u0430\u0440\u0435, \u0437\u0430\u044f\u0432\u0438\u043b \u0434\u043e\u0446\u0435\u043d\u0442 \u043a\u0430\u0444\u0435\u0434\u0440\u044b \u0438\u043d\u0444\u0435\u043a\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0431\u043e\u043b\u0435\u0437\u043d\u0435\u0439 \u0420\u0423\u0414\u041d \u0421\u0435\u0440\u0433\u0435\u0439 \u0412\u043e\u0437\u043d\u0435\u0441\u0435\u043d\u0441\u043a\u0438\u0439. \u041e\u043d \u043e\u0442\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u00ab\u0434\u0435\u043b\u044c\u0442\u0430\u00bb \u0432\u044b\u0437\u044b\u0432\u0430\u043b \u0431\u043e\u043b\u044c\u0448\u0435 \u043b\u0435\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u0447\u0435\u043c \u043e\u043c\u0438\u043a\u0440\u043e\u043d, \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u0444\u043e\u043d\u0435 \u00ab\u0434\u0435\u043b\u044c\u0442\u044b\u00bb \u0431\u044b\u043b\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043b\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c.", "example_title": "\u041a\u043e\u0440\u043e\u043d\u0430\u0432\u0438\u0440\u0443\u0441"}, {"text": "\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0438\u043a\u0430 \u0448\u0442\u0430\u0431\u0430 \u043e\u0431\u043e\u0440\u043e\u043d\u044b \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u0438 \u0430\u0434\u043c\u0438\u0440\u0430\u043b\u0430 \u0422\u043e\u043d\u0438 \u0420\u0430\u0434\u0430\u043a\u0438\u043d\u0430 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u0438\u0437\u0438\u0442\u0430 \u0432 \u0430\u043d\u0433\u0430\u0440 \u0441 \u0442\u044f\u0436\u0435\u043b\u044b\u043c \u0432\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c, \u0441\u043e\u043e\u0431\u0449\u0438\u043b\u0430 \u0431\u0440\u0438\u0442\u0430\u043d\u0441\u043a\u0430\u044f \u043f\u0440\u0435\u0441\u0441\u0430. \u0412 \u043f\u0440\u0438\u043a\u0430\u0437\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0432\u043e\u0435\u043d\u043d\u043e\u0441\u043b\u0443\u0436\u0430\u0449\u0438\u043c \u0431\u044b\u043b\u043e \u0432\u0435\u043b\u0435\u043d\u043e \u043f\u043e\u0434\u0431\u0435\u0433\u0430\u0442\u044c \u043a \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044f\u043c, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u044e\u043a\u0438, \u0437\u0430\u0442\u0432\u043e\u0440\u044b, \u043b\u0438\u0441\u0442\u0430\u0442\u044c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0438 \u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u0430\u0448\u0438\u043d\u044b, \u0431\u0443\u0434\u0442\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f.", "example_title": "\u0411\u0440\u0438\u0442\u0430\u043d\u0438\u044f"}, {"text": "\u0414\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043c\u0443\u0437\u044b\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b. \u041a\u0430\u0436\u0434\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0448\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u043c\u043f\u043b \u2014 \u0435\u0441\u0442\u044c \u043c\u0430\u0440\u0430\u043a\u0430\u0441\u044b \u0438 \u0444\u0443\u0442\u0443\u0440\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0435 \u0437\u0432\u0443\u043a\u0438, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0438\u0435 \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u044b \u0431\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432. \u0418\u0437 \u0432\u0441\u0435\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0437\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0441 \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0444\u0438\u0433\u0443\u0440\u0430\u043c\u0438. \u0427\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \u043f\u0440\u043e\u0431\u0435\u043b \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435, \u0446\u0432\u0435\u0442\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0438 \u0437\u0432\u0443\u0447\u0430\u043d\u0438\u0435 \u0441\u0435\u043c\u043f\u043b\u043e\u0432.", "example_title": "\u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438"}]} | text2text-generation | 0x7o/keyt5-large | [
"transformers",
"pytorch",
"safetensors",
"t5",
"text2text-generation",
"ru",
"license:mit",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"ru"
] | TAGS
#transformers #pytorch #safetensors #t5 #text2text-generation #ru #license-mit #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us
| ## keyT5. Large version
![0x7o - text2keywords](URL "Go to GitHub repo")
![stars - text2keywords](URL
![forks - text2keywords](URL
Supported languages: ru
Github - text2keywords
Pretraining Large version
|
Pretraining Base version
# Usage
Example usage (the code returns a list with keywords. duplicates are possible):
![Try Model Training In Colab!](URL
# Training
Go to the training notebook and learn more about it:
![Try Model Training In Colab!](URL
| [
"## keyT5. Large version\n![0x7o - text2keywords](URL \"Go to GitHub repo\")\n![stars - text2keywords](URL\n![forks - text2keywords](URL\n\nSupported languages: ru\n\nGithub - text2keywords\n\n\nPretraining Large version\n|\nPretraining Base version",
"# Usage\nExample usage (the code returns a list with keywords. duplicates are possible):\n\n![Try Model Training In Colab!](URL",
"# Training\nGo to the training notebook and learn more about it:\n\n![Try Model Training In Colab!](URL"
] | [
"TAGS\n#transformers #pytorch #safetensors #t5 #text2text-generation #ru #license-mit #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n",
"## keyT5. Large version\n![0x7o - text2keywords](URL \"Go to GitHub repo\")\n![stars - text2keywords](URL\n![forks - text2keywords](URL\n\nSupported languages: ru\n\nGithub - text2keywords\n\n\nPretraining Large version\n|\nPretraining Base version",
"# Usage\nExample usage (the code returns a list with keywords. duplicates are possible):\n\n![Try Model Training In Colab!](URL",
"# Training\nGo to the training notebook and learn more about it:\n\n![Try Model Training In Colab!](URL"
] | [
60,
81,
35,
26
] | [
"passage: TAGS\n#transformers #pytorch #safetensors #t5 #text2text-generation #ru #license-mit #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n## keyT5. Large version\n![0x7o - text2keywords](URL \"Go to GitHub repo\")\n![stars - text2keywords](URL\n![forks - text2keywords](URL\n\nSupported languages: ru\n\nGithub - text2keywords\n\n\nPretraining Large version\n|\nPretraining Base version# Usage\nExample usage (the code returns a list with keywords. duplicates are possible):\n\n![Try Model Training In Colab!](URL# Training\nGo to the training notebook and learn more about it:\n\n![Try Model Training In Colab!](URL"
] | [
-0.01874101161956787,
0.05161482095718384,
-0.0052463337779045105,
0.07281054556369781,
0.13712136447429657,
0.039866670966148376,
0.15688398480415344,
0.14988449215888977,
-0.06205407530069351,
-0.023054955527186394,
0.0910472497344017,
0.09049816429615021,
0.04158675670623779,
0.1564774364233017,
-0.004419912584125996,
-0.21797406673431396,
0.04146356135606766,
0.007243633270263672,
0.04402824863791466,
0.13975296914577484,
0.12682704627513885,
-0.061128489673137665,
0.0642516240477562,
0.02434271015226841,
-0.12498803436756134,
0.03663996234536171,
0.03173038363456726,
-0.16382302343845367,
0.15638837218284607,
-0.010354636237025261,
0.11891510337591171,
0.056478288024663925,
0.04162571206688881,
-0.162087544798851,
0.03581181541085243,
0.09468363970518112,
-0.0018788265297189355,
0.07040552794933319,
0.02263161912560463,
-0.015210202895104885,
0.06656887382268906,
0.03263998404145241,
-0.00122447416651994,
0.03314494341611862,
-0.12427043914794922,
-0.09402245283126831,
-0.10489979386329651,
0.10818253457546234,
0.07181195169687271,
0.06465776264667511,
0.011486215516924858,
0.18531057238578796,
-0.10146897286176682,
0.06898410618305206,
0.2186029553413391,
-0.310017466545105,
-0.0423942431807518,
0.07747522741556168,
0.08010288327932358,
0.09055037051439285,
-0.03425099700689316,
0.005696706473827362,
0.05938504636287689,
0.023173227906227112,
0.0357450395822525,
-0.03200840577483177,
-0.1832435429096222,
-0.019787462428212166,
-0.10546709597110748,
-0.05136561766266823,
0.11385349929332733,
-0.038030657917261124,
-0.0809965431690216,
-0.0668255090713501,
-0.08735215663909912,
0.014504794031381607,
-0.020341698080301285,
-0.060251712799072266,
0.015222116373479366,
0.05305127426981926,
-0.02994108386337757,
-0.14115267992019653,
-0.11666012555360794,
-0.07674726098775864,
-0.028055353090167046,
0.08840138465166092,
0.060822948813438416,
0.03939781337976456,
-0.037669695913791656,
0.10741680860519409,
0.021229207515716553,
-0.09307251870632172,
-0.06416581571102142,
-0.07224450260400772,
0.06761498004198074,
-0.05229710787534714,
-0.016714107245206833,
-0.089675173163414,
0.14266522228717804,
0.05019379407167435,
-0.09523672610521317,
-0.00073806889122352,
-0.05227699130773544,
0.05101308971643448,
-0.04357890784740448,
0.09509330242872238,
-0.07491493970155716,
0.028924258425831795,
0.1361483335494995,
0.03682105243206024,
0.014834308996796608,
0.009596964344382286,
-0.09708215296268463,
-0.09212436527013779,
0.12683674693107605,
0.09842777252197266,
-0.008435227908194065,
0.08311031758785248,
-0.01562795415520668,
0.0037201507948338985,
0.02840374782681465,
-0.086266428232193,
-0.013909178785979748,
0.010069889947772026,
-0.02526714652776718,
-0.03187565132975578,
0.050784919410943985,
0.02765650488436222,
-0.12570427358150482,
-0.020442940294742584,
-0.03033272735774517,
0.0033183463383466005,
-0.08773863315582275,
-0.10479498654603958,
0.01906397193670273,
-0.1019502654671669,
-0.037476010620594025,
-0.14673686027526855,
-0.1382027119398117,
0.0026047721039503813,
0.02710515819489956,
0.04619543254375458,
-0.020030081272125244,
-0.058192428201436996,
-0.06836528331041336,
-0.05609093979001045,
-0.030927618965506554,
-0.0810408741235733,
-0.045720938593149185,
0.09773813933134079,
-0.026781227439641953,
0.04625614732503891,
-0.0526554100215435,
-0.0008202212629839778,
-0.1669779270887375,
-0.014476127922534943,
-0.0975847989320755,
0.0717303529381752,
0.006750802509486675,
0.0910288542509079,
-0.09025806188583374,
-0.07905677706003189,
-0.0002480772673152387,
0.034266650676727295,
0.05951377749443054,
0.13177412748336792,
-0.10921347886323929,
-0.026651594787836075,
0.3106226921081543,
-0.14707466959953308,
-0.1701073944568634,
0.1378263235092163,
-0.058383382856845856,
0.14328210055828094,
0.11713983118534088,
0.1660974770784378,
0.10393407195806503,
-0.05026138946413994,
0.04269580543041229,
0.0035140833351761103,
-0.06492852419614792,
-0.03617862984538078,
0.019226843491196632,
-0.0017587790498510003,
-0.07878878712654114,
0.02865743264555931,
0.002091044094413519,
0.004489221144467592,
-0.0544833168387413,
-0.06740768253803253,
-0.03230731189250946,
-0.04445391148328781,
0.017956115305423737,
-0.026190655305981636,
0.04715076461434364,
-0.09669524431228638,
-0.09261725842952728,
0.020451432093977928,
0.04996654763817787,
-0.07409096509218216,
-0.0018115226412191987,
-0.104829341173172,
0.03506867215037346,
0.025746239349246025,
0.0216542799025774,
-0.045719072222709656,
-0.02255670353770256,
0.036815810948610306,
0.08296635746955872,
0.04995352402329445,
0.02398732118308544,
0.041413214057683945,
0.04244245961308479,
0.004503724630922079,
-0.030134636908769608,
-0.012976741418242455,
-0.018270574510097504,
-0.06219683960080147,
-0.06304411590099335,
-0.004279301501810551,
-0.015884583815932274,
0.05321328714489937,
-0.09539998322725296,
0.061922814697027206,
0.008449164219200611,
0.054974671453237534,
-0.004251317121088505,
0.022992795333266258,
0.02162805385887623,
0.04787280783057213,
-0.04452426731586456,
-0.050118010491132736,
0.06903651356697083,
0.03201540187001228,
-0.05372035503387451,
0.031621553003787994,
-0.07035048305988312,
0.0726664811372757,
0.13020983338356018,
-0.0266852006316185,
-0.07725615799427032,
0.03372174873948097,
-0.04652337729930878,
0.04574432969093323,
-0.01080668531358242,
0.04345058277249336,
0.19813109934329987,
0.007226736284792423,
0.13964349031448364,
-0.10034988075494766,
-0.01326792873442173,
-0.0047207484021782875,
-0.12103439122438431,
0.04869575425982475,
0.015010830014944077,
-0.011233239434659481,
-0.15247701108455658,
0.08521527051925659,
0.029673859477043152,
-0.06899666786193848,
0.17117927968502045,
-0.007233285345137119,
0.001952268066816032,
0.018452581018209457,
0.06108441576361656,
0.018122484907507896,
0.0005531322676688433,
-0.05320454016327858,
-0.000306734029436484,
0.01620953157544136,
-0.01543964259326458,
0.05938831344246864,
-0.17845796048641205,
-0.01520643662661314,
-0.01815970428287983,
-0.07285983115434647,
-0.0356367826461792,
-0.0029366465751081705,
0.03607776015996933,
0.08719783276319504,
0.019384529441595078,
-0.008226794190704823,
0.046759121119976044,
0.004231947939842939,
-0.10899501293897629,
0.21782132983207703,
-0.09366822242736816,
-0.2628242075443268,
-0.1187414601445198,
0.07327449321746826,
0.010563388466835022,
0.0313643217086792,
0.10827700793743134,
-0.05387013778090477,
-0.0013054297305643559,
-0.08031327277421951,
0.042379219084978104,
-0.013628845103085041,
-0.03924620896577835,
-0.06254073977470398,
0.08191860467195511,
0.005246877670288086,
-0.16117006540298462,
-0.02634556032717228,
0.00020803279767278582,
-0.2428581714630127,
0.09136857092380524,
-0.02866111695766449,
0.027043914422392845,
0.07748222351074219,
-0.09440528601408005,
0.01974625326693058,
-0.07411699742078781,
0.12396624684333801,
-0.04068569466471672,
0.011536145582795143,
0.22560501098632812,
-0.026545420289039612,
0.05871633067727089,
0.11165405064821243,
0.00425884872674942,
-0.040567297488451004,
0.04609477519989014,
-0.03957291319966316,
-0.04448839649558067,
-0.249156191945076,
-0.00949945766478777,
-0.011574743315577507,
0.05488308146595955,
0.018681518733501434,
0.03872876614332199,
0.08782099932432175,
0.11009828001260757,
-0.07115285098552704,
-0.012260818853974342,
0.013509335927665234,
0.07161835581064224,
0.07040299475193024,
0.030390512198209763,
0.09526167809963226,
-0.05824001878499985,
-0.07622101157903671,
0.0586419440805912,
0.054052047431468964,
0.10945484787225723,
-0.03398799151182175,
0.09372126311063766,
0.07823140174150467,
0.15596774220466614,
0.06613446772098541,
0.10380149632692337,
-0.046759456396102905,
0.037483617663383484,
-0.013489581644535065,
-0.041833654046058655,
-0.06792855262756348,
0.03260473534464836,
-0.06744781881570816,
-0.021001510322093964,
-0.06087646260857582,
-0.01772487349808216,
0.11382361501455307,
0.29587817192077637,
0.023431789129972458,
-0.28523120284080505,
-0.08494345843791962,
0.0020706274081021547,
-0.042617954313755035,
-0.05898794159293175,
0.04784507676959038,
0.046144526451826096,
-0.13901439309120178,
0.051568664610385895,
-0.024868067353963852,
0.09261803328990936,
-0.07606068253517151,
0.048318687826395035,
0.01850729249417782,
0.0759490355849266,
-0.020274890586733818,
0.10295294225215912,
-0.2508835196495056,
0.14429929852485657,
-0.008657080121338367,
0.09062100201845169,
-0.05466599762439728,
0.01766464300453663,
0.03157048672437668,
0.05446598678827286,
0.07975911349058151,
-0.017143800854682922,
0.06053992733359337,
-0.10713476687669754,
-0.0519779734313488,
0.0689179077744484,
0.044088780879974365,
-0.06266244500875473,
0.1023869588971138,
-0.05860546603798866,
0.02214624360203743,
-0.006838682107627392,
-0.053381774574518204,
-0.15431995689868927,
-0.053098876029253006,
-0.009033028036355972,
-0.0029769388493150473,
0.1370723843574524,
-0.11617344617843628,
-0.030508458614349365,
0.019757404923439026,
0.23262201249599457,
0.008618752472102642,
-0.1106313094496727,
-0.07750467211008072,
0.007274160627275705,
0.010629144497215748,
-0.07439965009689331,
0.03380851447582245,
-0.04466528445482254,
0.06753461062908173,
-0.05162014067173004,
-0.09211857616901398,
0.08127284795045853,
-0.0475689135491848,
-0.13682962954044342,
-0.009702542796730995,
0.1320861130952835,
-0.020352376624941826,
-0.013784128241240978,
0.08463900536298752,
-0.001596371759660542,
-0.01646396890282631,
-0.0929163470864296,
-0.04240144044160843,
0.04106626659631729,
-0.005504140630364418,
0.02745797485113144,
-0.08792603760957718,
-0.0878097414970398,
-0.05825728923082352,
0.012357302010059357,
0.25985127687454224,
0.1394699066877365,
-0.09314464777708054,
0.06210259720683098,
0.10785599052906036,
-0.06974519789218903,
-0.2736012935638428,
-0.027394387871026993,
0.015987582504749298,
-0.004665138199925423,
-0.034471094608306885,
-0.1834782361984253,
0.0462455190718174,
0.06566811352968216,
-0.020619623363018036,
0.030061079189181328,
-0.23103559017181396,
-0.06570271402597427,
0.04047003388404846,
0.09210515022277832,
0.09517922252416611,
-0.13792353868484497,
-0.016313910484313965,
-0.04460296034812927,
-0.07037785649299622,
0.14408189058303833,
-0.14084796607494354,
0.10288400202989578,
-0.01910441927611828,
0.050332628190517426,
0.043894361704587936,
-0.05421517789363861,
0.022194797173142433,
-0.1151735708117485,
0.02789551392197609,
-0.07305463403463364,
-0.035477444529533386,
0.10343601554632187,
-0.02280307002365589,
0.10527630895376205,
-0.03331277146935463,
0.09317541867494583,
0.024450911208987236,
-0.04554089903831482,
-0.05249471217393875,
0.12092594057321548,
-0.02319287322461605,
-0.08108802884817123,
-0.04979090020060539,
0.0011679194867610931,
0.004259902518242598,
0.012751654721796513,
0.09370381385087967,
-0.015271782875061035,
0.1601000279188156,
0.15929265320301056,
0.11274941265583038,
-0.04421311989426613,
0.14570553600788116,
0.02754095196723938,
-0.058698590844869614,
0.07500046491622925,
-0.12674374878406525,
0.052872661501169205,
0.06057121977210045,
0.003535299561917782,
0.05177851393818855,
0.06942066550254822,
-0.09739825129508972,
0.04639526456594467,
0.10484257340431213,
-0.1907106637954712,
-0.13591673970222473,
-0.05381857231259346,
-0.04278707504272461,
-0.06660807132720947,
0.08600382506847382,
0.17479918897151947,
-0.10536293685436249,
-0.07464667409658432,
-0.04377557337284088,
0.014281226322054863,
-0.0814938023686409,
0.050197143107652664,
0.040841616690158844,
0.03632219508290291,
-0.04180556535720825,
0.05921514704823494,
0.059106942266225815,
0.016541853547096252,
0.023258736357092857,
0.13022355735301971,
-0.10585719347000122,
-0.09321616590023041,
0.06824545562267303,
0.09130053222179413,
-0.011435844004154205,
-0.05888902395963669,
-0.10326147824525833,
-0.07353202998638153,
-0.01701067015528679,
0.11421230435371399,
0.05017484351992607,
0.053103167563676834,
0.023664481937885284,
0.04541690647602081,
-0.07967483252286911,
0.05432640016078949,
-0.006140436977148056,
0.042137205600738525,
-0.1308390349149704,
0.18617288768291473,
-0.0010806287173181772,
0.04704856872558594,
-0.029348166659474373,
-0.000261347129708156,
-0.11815722286701202,
0.016235187649726868,
-0.12436295300722122,
0.023625878617167473,
-0.05567575618624687,
0.005650091916322708,
-0.008243641816079617,
-0.017901625484228134,
-0.020613938570022583,
0.0427962951362133,
-0.07152367383241653,
-0.02651272527873516,
-0.0507693886756897,
0.1022324413061142,
-0.11747894436120987,
0.02105209045112133,
0.03743854537606239,
-0.04498685523867607,
0.13950425386428833,
0.02738918364048004,
-0.07411444932222366,
0.07259566336870193,
-0.20460765063762665,
-0.005311205983161926,
0.06460857391357422,
0.016377218067646027,
-0.0065895081497728825,
0.014177370816469193,
0.07818051427602768,
0.032893091440200806,
-0.001373962964862585,
0.010295427404344082,
0.10894066840410233,
-0.11320344358682632,
-0.03225284069776535,
0.024239419028162956,
-0.04755733907222748,
-0.03834450989961624,
-0.008800677955150604,
0.10357732325792313,
0.03839821740984917,
0.15501046180725098,
-0.11417099833488464,
0.055746711790561676,
-0.15169794857501984,
-0.024615496397018433,
-0.01249421015381813,
-0.07775147259235382,
-0.16470979154109955,
-0.056031081825494766,
0.04514847323298454,
-0.011405659839510918,
0.10841244459152222,
0.05604753643274307,
0.020490720868110657,
-0.0053285881876945496,
-0.061587221920490265,
0.06537649780511856,
0.034896451979875565,
0.2209855169057846,
0.01412240695208311,
-0.03643127158284187,
-0.046498507261276245,
-0.03495130315423012,
0.005578919313848019,
-0.16018928587436676,
0.05468091368675232,
0.1430153101682663,
0.03211496025323868,
0.04273555427789688,
0.06096089631319046,
0.037969619035720825,
-0.02877897396683693,
-0.05732821673154831,
0.05798052251338959,
0.0275100227445364,
-0.07416873425245285,
0.04851255938410759,
0.2384374439716339,
-0.06494743376970291,
0.018310831859707832,
-0.030474618077278137,
-0.03499150276184082,
-0.12007926404476166,
-0.04635307192802429,
-0.11185543984174728,
-0.15310953557491302,
0.03204110637307167,
-0.11834176629781723,
-0.008466101251542568,
0.07891825586557388,
0.016076872125267982,
-0.07394520938396454,
0.12414075434207916,
0.12624531984329224,
-0.0830707848072052,
0.05390157923102379,
-0.02289333939552307,
0.021932976320385933,
0.0008468505111522973,
-0.07472371309995651,
0.010173988528549671,
0.043776918202638626,
0.05959160253405571,
0.03417152166366577,
-0.019223332405090332,
0.022362804040312767,
-0.14300423860549927,
-0.07072323560714722,
0.023855268955230713,
0.01695854775607586,
0.03914041444659233,
0.019828440621495247,
0.06508786231279373,
-0.08292830735445023,
0.04643695428967476,
0.23280008137226105,
-0.04564774036407471,
-0.18759088218212128,
-0.12493301182985306,
0.25278979539871216,
0.02890477515757084,
0.028303109109401703,
0.020907992497086525,
-0.054622553288936615,
-0.03342779353260994,
0.21357904374599457,
0.25892552733421326,
-0.05003492906689644,
0.017034919932484627,
-0.04881924018263817,
-0.0008457260555587709,
0.023376820608973503,
0.17855340242385864,
0.08710745722055435,
0.0989433228969574,
-0.0521307997405529,
0.05785294994711876,
-0.014663459733128548,
0.0016432233387604356,
-0.13758450746536255,
0.09027373045682907,
-0.014002649113535881,
0.0202556811273098,
-0.049042243510484695,
0.13721036911010742,
-0.06641692668199539,
-0.09623699635267258,
-0.05314682424068451,
-0.12525369226932526,
-0.09628204256296158,
0.014668282121419907,
0.10184525698423386,
-0.02486097440123558,
0.06954719871282578,
0.016108505427837372,
0.009297266602516174,
0.04154127836227417,
0.0006581837078556418,
-0.06262507289648056,
-0.00786553043872118,
0.05062609165906906,
-0.12814442813396454,
0.18288148939609528,
-0.01602976955473423,
0.02372926101088524,
0.10290657728910446,
0.009754776954650879,
-0.08574997633695602,
0.09157101809978485,
0.009816201403737068,
-0.011764436960220337,
0.034036412835121155,
-0.021070359274744987,
-0.027327172458171844,
-0.021652711555361748,
0.056842271238565445,
-0.1675705462694168,
0.035462431609630585,
-0.04484011232852936,
-0.038766566663980484,
-0.11472126841545105,
0.03328225761651993,
-0.0656503438949585,
0.07012968510389328,
0.13346047699451447,
-0.07574644684791565,
0.040328316390514374,
-0.09633471816778183,
0.03624781221151352,
0.04209519922733307,
-0.014382381923496723,
-0.009078913368284702,
-0.18592627346515656,
-0.03856838494539261,
0.06010645255446434,
0.0348181389272213,
-0.1907946765422821,
0.019886160269379616,
-0.05918652191758156,
0.019857676699757576,
-0.14086773991584778,
0.11450198292732239,
0.14122965931892395,
0.010542578995227814,
0.011618589982390404,
-0.059435345232486725,
-0.03412722423672676,
0.13600076735019684,
-0.10055744647979736,
-0.11909855902194977
] |
null | null | transformers |
# Rick n Morty DialoGPT Model | {"tags": ["conversational"]} | text-generation | 0xDEADBEA7/DialoGPT-small-rick | [
"transformers",
"pytorch",
"gpt2",
"text-generation",
"conversational",
"autotrain_compatible",
"endpoints_compatible",
"has_space",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us
|
# Rick n Morty DialoGPT Model | [
"# Rick n Morty DialoGPT Model"
] | [
"TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n",
"# Rick n Morty DialoGPT Model"
] | [
55,
10
] | [
"passage: TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #has_space #text-generation-inference #region-us \n# Rick n Morty DialoGPT Model"
] | [
-0.01978936605155468,
0.11590056121349335,
-0.004705466795712709,
0.0092651741579175,
0.10552932322025299,
-0.01059478148818016,
0.12561213970184326,
0.1394573152065277,
-0.03501139208674431,
-0.013021604157984257,
0.15430498123168945,
0.17226119339466095,
-0.025607306510210037,
0.05532357841730118,
-0.06443598866462708,
-0.32004526257514954,
0.05324118956923485,
0.04905309900641441,
-0.04939034953713417,
0.10617039352655411,
0.09181063622236252,
-0.053301189094781876,
0.06603571772575378,
0.012485777027904987,
-0.1375962346792221,
0.022912221029400826,
0.003322129137814045,
-0.09833110868930817,
0.11142165213823318,
0.05873652547597885,
0.04039414972066879,
0.05147688463330269,
-0.0478946752846241,
-0.10816562920808792,
0.046147726476192474,
0.012826412916183472,
-0.04923253133893013,
0.07991567999124527,
0.0006632340373471379,
-0.07368466258049011,
0.14458681643009186,
0.08766599744558334,
-0.014818466268479824,
0.027418702840805054,
-0.15435941517353058,
-0.05545533820986748,
-0.0163117703050375,
0.03526294231414795,
0.017750060185790062,
0.10776343941688538,
-0.04328439384698868,
0.12034566700458527,
-0.06917119026184082,
0.10268644988536835,
0.14254777133464813,
-0.2881927192211151,
-0.012298567220568657,
0.1807340532541275,
0.07005884498357773,
0.03721517324447632,
-0.055391330271959305,
0.09762515127658844,
0.01783052831888199,
-0.005776866339147091,
-0.01226882729679346,
-0.06428229063749313,
-0.07780581712722778,
0.05827116593718529,
-0.09364239871501923,
-0.007832068018615246,
0.23920860886573792,
-0.023595305159687996,
0.1035836786031723,
-0.057720769196748734,
-0.10001461952924728,
-0.03268758952617645,
-0.025897854939103127,
-0.025405358523130417,
-0.08628708869218826,
0.06818495690822601,
-0.051292579621076584,
-0.08554215729236603,
-0.12181406468153,
-0.009615662507712841,
-0.16543059051036835,
0.15849682688713074,
0.013751260004937649,
0.03423812612891197,
-0.19153323769569397,
0.08024800568819046,
-0.05108257383108139,
-0.10548173636198044,
0.03351462632417679,
-0.0830344408750534,
-0.002243318362161517,
0.02483993209898472,
-0.056828588247299194,
-0.004704936873167753,
0.08083435148000717,
0.10967832058668137,
-0.018945571035146713,
0.010833658277988434,
0.0030628007370978594,
0.055578574538230896,
0.05896774306893349,
0.04503597691655159,
-0.05908090993762016,
-0.02510961890220642,
0.011441020295023918,
-0.06524714082479477,
0.0010283035226166248,
-0.08240651339292526,
-0.2089088410139084,
-0.006223985925316811,
0.08150172233581543,
0.026324737817049026,
0.04459720477461815,
0.13552840054035187,
0.01865381933748722,
-0.031252920627593994,
0.04905140772461891,
-0.01388926338404417,
0.0005597277777269483,
0.023416707292199135,
0.00907852966338396,
0.11559490114450455,
0.027036141604185104,
0.04741020128130913,
-0.08109968900680542,
0.0001813946437323466,
-0.06188841164112091,
-0.014565245248377323,
-0.03725143149495125,
-0.08707886934280396,
0.008494379930198193,
-0.012586147524416447,
0.01577363722026348,
-0.148922398686409,
-0.10319934785366058,
-0.003091138321906328,
-0.003697184147313237,
-0.04984236881136894,
-0.11650799959897995,
-0.0747484564781189,
-0.05431801825761795,
0.072440005838871,
-0.061058562248945236,
0.04944109916687012,
-0.04422520101070404,
0.08119770139455795,
-0.03900045529007912,
0.0943441167473793,
-0.11102153360843658,
0.09050993621349335,
-0.052537702023983,
-0.03916993737220764,
-0.05854082852602005,
0.08966320753097534,
-0.0019971474539488554,
0.036778371781110764,
-0.027460679411888123,
-0.024272561073303223,
-0.12711654603481293,
0.06994526088237762,
-0.03049568459391594,
0.2033923864364624,
-0.11317023634910583,
-0.0893273800611496,
0.19405199587345123,
-0.030619807541370392,
-0.10708727687597275,
0.10980169475078583,
-0.02813776768743992,
0.0757124274969101,
0.0784117802977562,
0.20974434912204742,
0.04643558710813522,
-0.01906447298824787,
0.07549986988306046,
0.1291733682155609,
-0.06387974321842194,
-0.012886161915957928,
0.030727067962288857,
-0.011079984717071056,
-0.06489825248718262,
0.020613715052604675,
0.08866066485643387,
0.052463702857494354,
-0.055209215730428696,
-0.020520877093076706,
-0.002116875723004341,
-0.008889185264706612,
0.09288671612739563,
-0.005697348620742559,
0.13557866215705872,
-0.03934164717793465,
-0.09166646003723145,
-0.004755232483148575,
0.0282860416918993,
-0.04436281695961952,
0.03735984489321709,
-0.05951165407896042,
0.06287620961666107,
-0.02637697570025921,
0.055853620171546936,
-0.17006108164787292,
-0.09328446537256241,
-0.06258363276720047,
0.21635310351848602,
0.07164816558361053,
0.18590956926345825,
0.06390678137540817,
-0.06107693165540695,
-0.0017003664979711175,
0.02785693295300007,
0.1720028519630432,
0.015543315559625626,
-0.09025838226079941,
-0.10211044549942017,
0.0728156566619873,
-0.08935489505529404,
0.04965376853942871,
-0.06056659668684006,
0.020172879099845886,
0.03444578871130943,
0.10602494329214096,
-0.048165809363126755,
0.044598307460546494,
0.015369469299912453,
-0.026530569419264793,
-0.08601801842451096,
0.002901489846408367,
0.09333757311105728,
0.0031331428326666355,
-0.07854610681533813,
0.23887430131435394,
-0.23108221590518951,
0.15103848278522491,
0.1901816427707672,
-0.22129692137241364,
0.006604295689612627,
-0.08512774854898453,
-0.026709023863077164,
0.01910937950015068,
0.03458644822239876,
-0.06531645357608795,
0.17298811674118042,
-0.03427351638674736,
0.16189135611057281,
-0.03799976408481598,
-0.0359167605638504,
-0.04543614387512207,
-0.043678510934114456,
-0.016260867938399315,
0.11934713274240494,
0.08065971732139587,
-0.1468154340982437,
0.19225606322288513,
0.11590676754713058,
0.02144630067050457,
0.16974526643753052,
0.03629917651414871,
0.014756857417523861,
0.03782004117965698,
-0.03171885386109352,
-0.05277175083756447,
-0.054376207292079926,
-0.22394007444381714,
-0.023703720420598984,
0.08195219188928604,
0.0460672602057457,
0.10937682539224625,
-0.09771033376455307,
-0.04082312807440758,
0.010965779423713684,
-0.00572874816134572,
0.016307517886161804,
0.1510045975446701,
0.024005716666579247,
0.12004197388887405,
-0.014644845388829708,
-0.07632467150688171,
0.06536152213811874,
0.01802668906748295,
-0.071867436170578,
0.16750094294548035,
-0.12229067832231522,
-0.3292190432548523,
-0.09076209366321564,
-0.16074348986148834,
-0.0408887155354023,
0.04373812675476074,
0.11137044429779053,
-0.13832072913646698,
-0.017302414402365685,
-0.03421292081475258,
0.05959785729646683,
-0.14874836802482605,
0.02005394734442234,
-0.0417790450155735,
-0.0108585050329566,
-0.12382323294878006,
-0.10717602074146271,
-0.04547075554728508,
-0.0533917061984539,
-0.03466526046395302,
0.11634892970323563,
-0.11479412019252777,
0.024431155994534492,
0.24293678998947144,
0.044883549213409424,
0.06517568975687027,
-0.027157312259078026,
0.19306211173534393,
-0.0760161280632019,
0.02319694310426712,
0.22602252662181854,
-0.00841541774570942,
0.071224145591259,
0.11687219142913818,
-0.005011423956602812,
-0.025345653295516968,
0.02780972421169281,
0.008437419310212135,
-0.09264479577541351,
-0.17107155919075012,
-0.11728888005018234,
-0.12933847308158875,
0.04145793989300728,
0.04680950567126274,
0.05017955228686333,
0.15692053735256195,
0.05281146243214607,
-0.03492290899157524,
-0.010677431710064411,
0.039906568825244904,
0.06639105081558228,
0.24716816842556,
-0.07546155899763107,
0.16369830071926117,
-0.027004016563296318,
-0.15685002505779266,
0.0742143914103508,
0.06304503977298737,
0.08065461367368698,
0.05657191947102547,
0.08777604252099991,
0.0154680535197258,
0.05000400170683861,
0.1358853280544281,
0.0456402488052845,
0.00461986381560564,
-0.04024871811270714,
-0.05161237344145775,
-0.045365236699581146,
0.009787567891180515,
0.06512628495693207,
0.08998534083366394,
-0.17837584018707275,
-0.018939264118671417,
-0.02795323170721531,
0.049570608884096146,
-0.02826923131942749,
0.11510475724935532,
-0.1858423948287964,
-0.00750059774145484,
0.07415537536144257,
0.005203677341341972,
-0.08786727488040924,
0.07459885627031326,
0.04873195290565491,
-0.07357165962457657,
0.01687396503984928,
-0.012948560528457165,
0.11401388049125671,
-0.032800499349832535,
0.08338732272386551,
-0.12730294466018677,
-0.03990599513053894,
-0.009090057574212551,
0.11271234601736069,
-0.2690827548503876,
0.19793261587619781,
-0.015521728433668613,
-0.08097951114177704,
-0.09219393879175186,
-0.022215787321329117,
0.041262708604335785,
0.1041773110628128,
0.08333305269479752,
-0.015511359088122845,
-0.0923486202955246,
0.04235483333468437,
-0.03809664398431778,
0.01880793273448944,
0.08550076186656952,
-0.035144418478012085,
-0.013108400627970695,
-0.04591747373342514,
0.007333910092711449,
0.04386219009757042,
-0.013098219409584999,
0.0016088507836684585,
-0.20132197439670563,
0.0971340462565422,
0.10156069695949554,
0.033219534903764725,
0.03052082285284996,
-0.046099018305540085,
-0.1647660732269287,
0.24419336020946503,
0.048380762338638306,
-0.07655578851699829,
-0.10787639021873474,
0.03170459344983101,
0.06212586909532547,
-0.06534352898597717,
-0.020455170422792435,
-0.07269550114870071,
0.055064428597688675,
-0.07768832892179489,
-0.1902303695678711,
0.11515063792467117,
-0.08964572101831436,
-0.03937423229217529,
-0.03864853084087372,
0.19690224528312683,
-0.045105740427970886,
0.028609562665224075,
0.0315970815718174,
0.023050449788570404,
-0.15417823195457458,
-0.1040106862783432,
0.02000887133181095,
-0.022244470193982124,
0.03292817622423172,
0.0033817992080003023,
-0.036591000854969025,
-0.008240600116550922,
-0.015452084131538868,
0.006719604600220919,
0.31078237295150757,
0.13049012422561646,
-0.08449946343898773,
0.14255590736865997,
0.08596377074718475,
-0.048214830458164215,
-0.3092091679573059,
-0.09589306265115738,
-0.09593368321657181,
-0.04058198258280754,
-0.03534318879246712,
-0.16356973350048065,
0.06379372626543045,
-0.04397717863321304,
-0.027142727747559547,
0.05007414147257805,
-0.25500527024269104,
-0.10032147914171219,
0.18842989206314087,
-0.04994000494480133,
0.41089650988578796,
-0.11425197124481201,
-0.06191754713654518,
-0.0401364341378212,
-0.11801902204751968,
0.1872415840625763,
-0.06769043207168579,
0.1065610870718956,
0.004617362283170223,
0.19643621146678925,
0.06284114718437195,
-0.014165529981255531,
0.09637164324522018,
0.00014082503912504762,
-0.036212414503097534,
-0.10351821780204773,
-0.12735266983509064,
0.018669692799448967,
-0.015269450843334198,
0.022694366052746773,
-0.09942994266748428,
0.043642349541187286,
-0.1250840723514557,
-0.03322047367691994,
-0.09480166435241699,
0.0464191660284996,
0.011485365219414234,
-0.06981831789016724,
-0.035248447209596634,
-0.03037226013839245,
0.0009258955251425505,
-0.00029827633989043534,
0.21654024720191956,
-0.1114155501127243,
0.15551260113716125,
0.11457543075084686,
0.10184161365032196,
-0.11445215344429016,
-0.025310056284070015,
-0.01854407601058483,
-0.05282049626111984,
0.06978098303079605,
-0.14884939789772034,
0.03044614940881729,
0.08898314833641052,
-0.02276564948260784,
0.0698515996336937,
0.11109045892953873,
-0.02553175576031208,
0.002793226158246398,
0.09833691269159317,
-0.23284082114696503,
-0.10300936549901962,
-0.07550515979528427,
0.05041718855500221,
0.056817151606082916,
0.08538071066141129,
0.2019059658050537,
0.006933100987225771,
-0.013698731549084187,
0.026877257972955704,
0.020107628777623177,
-0.020072543993592262,
0.043950919061899185,
0.032250192016363144,
0.04554497078061104,
-0.12903328239917755,
0.02129307948052883,
0.013333650305867195,
-0.07079033553600311,
0.026804126799106598,
0.14785267412662506,
-0.09189695864915848,
-0.14433316886425018,
-0.07965294271707535,
0.121591717004776,
-0.11145859956741333,
0.007149738725274801,
-0.03163706138730049,
-0.11524215340614319,
0.07414504885673523,
0.10121217370033264,
0.057150568813085556,
0.037168245762586594,
-0.08415856957435608,
-0.030995575711131096,
-0.03378986567258835,
0.012655094265937805,
0.0074080671183764935,
-0.012201138772070408,
-0.05413973331451416,
0.06541352719068527,
-0.046313632279634476,
0.12319441884756088,
-0.09500742703676224,
-0.09162918478250504,
-0.1689595729112625,
0.017383132129907608,
-0.054411351680755615,
-0.10324403643608093,
-0.099234439432621,
-0.05040651559829712,
0.010790707543492317,
-0.04874889925122261,
-0.03751986473798752,
-0.02633667178452015,
-0.1097748875617981,
0.027636684477329254,
-0.05014575645327568,
0.014653068967163563,
-0.08251991868019104,
0.016872107982635498,
0.040634289383888245,
-0.01707523502409458,
0.1338290274143219,
0.08917787671089172,
-0.10536427050828934,
0.0791742205619812,
-0.1358325034379959,
-0.08840244263410568,
0.08281268179416656,
0.027444185689091682,
0.05223948881030083,
0.03437655046582222,
-0.004425535909831524,
0.03174892067909241,
0.08124027401208878,
0.036008790135383606,
0.02867683209478855,
-0.06594294309616089,
0.05797668173909187,
-0.06930684298276901,
-0.11341719329357147,
-0.046217553317546844,
-0.003763357875868678,
0.006760493852198124,
0.06469137966632843,
0.10382222384214401,
-0.03850254788994789,
0.07542963325977325,
-0.0615687221288681,
0.04747052118182182,
0.008087070658802986,
-0.17462216317653656,
0.028028003871440887,
-0.07497302442789078,
0.05089955031871796,
0.0028545749373733997,
0.1875951737165451,
0.04805667698383331,
-0.06846919655799866,
0.029464082792401314,
0.06042000278830528,
0.05603926256299019,
-0.0065268054604530334,
0.18849004805088043,
0.1013212725520134,
-0.04661749303340912,
-0.08892413228750229,
0.09482204169034958,
0.0539848767220974,
0.08928968757390976,
0.14252857863903046,
-0.008445781655609608,
0.011031052097678185,
0.08834858983755112,
0.005029739812016487,
-0.020618390291929245,
-0.10195378959178925,
-0.0884266048669815,
-0.024416586384177208,
0.04927559942007065,
-0.06848859786987305,
0.07375403493642807,
0.17869006097316742,
-0.0009106770157814026,
0.028333893045783043,
-0.037276577204465866,
-0.051047731190919876,
-0.18436165153980255,
-0.19290944933891296,
-0.09094509482383728,
-0.14390556514263153,
-0.0180407352745533,
-0.1248018816113472,
0.05332259461283684,
0.06813682615756989,
0.08630841970443726,
-0.028653761371970177,
0.026703599840402603,
0.032973986119031906,
-0.09587248414754868,
0.036643944680690765,
-0.04589993134140968,
0.08658923953771591,
-0.031852491199970245,
0.00958260428160429,
-0.0479862280189991,
0.032718975096940994,
0.0053518665954470634,
0.02878168784081936,
-0.019066153094172478,
0.018284961581230164,
-0.1198439970612526,
-0.09438154846429825,
-0.07633328437805176,
0.04966403543949127,
0.020551422610878944,
0.18281704187393188,
0.014959779568016529,
-0.034327659755945206,
0.019758298993110657,
0.22731544077396393,
-0.08159641921520233,
-0.0842999592423439,
-0.060895781964063644,
0.18494431674480438,
-0.012351351790130138,
0.0898970440030098,
-0.0553545206785202,
-0.006192666478455067,
-0.0916963592171669,
0.31521958112716675,
0.33066338300704956,
-0.10746502876281738,
0.030467921867966652,
0.005463115870952606,
0.03153721243143082,
0.11404719948768616,
0.07772288471460342,
0.11109565198421478,
0.24963995814323425,
-0.06768303364515305,
-0.0653315857052803,
-0.012501543387770653,
-0.01872321218252182,
-0.07032915949821472,
0.05820249393582344,
0.05645495280623436,
-0.07454878836870193,
-0.019348490983247757,
0.0834687277674675,
-0.22948044538497925,
0.05506795272231102,
-0.12829594314098358,
-0.17918118834495544,
-0.07052657753229141,
0.023272303864359856,
0.13005287945270538,
-0.007288902532309294,
0.0963263064622879,
-0.027548162266612053,
-0.056434422731399536,
0.02087072655558586,
0.006825204007327557,
-0.18528814613819122,
0.022390488535165787,
0.0856226235628128,
-0.028913553804159164,
-0.053363047540187836,
-0.033702488988637924,
0.06092580780386925,
0.11302332580089569,
0.03351542353630066,
-0.024035528302192688,
0.06400316208600998,
0.003311297157779336,
-0.08611229807138443,
0.01782377064228058,
0.012387201189994812,
0.00628426019102335,
-0.05810828134417534,
0.08459092676639557,
-0.18389062583446503,
0.03202885016798973,
-0.03682681545615196,
-0.04930070787668228,
-0.009735693223774433,
0.00840744934976101,
-0.0525825060904026,
0.0904877632856369,
0.07120083272457123,
-0.023109419271349907,
-0.04501080513000488,
-0.014171388000249863,
-0.03168709948658943,
-0.03257713094353676,
-0.0645839273929596,
-0.10993006080389023,
-0.1519617885351181,
-0.09596776962280273,
0.07240626960992813,
0.0024959889706224203,
-0.2050788700580597,
0.005042709410190582,
-0.10592460632324219,
0.050273191183805466,
-0.08524806797504425,
0.09785349667072296,
0.09632745385169983,
0.003631199710071087,
-0.009865672327578068,
0.00619910005480051,
0.03485741466283798,
0.0696297213435173,
-0.142194926738739,
-0.08092185854911804
] |
null | null | transformers |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# distilbert-base-uncased-finetuned-cola
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the glue dataset.
It achieves the following results on the evaluation set:
- Loss: 0.8628
- Matthews Correlation: 0.5331
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 5
### Training results
| Training Loss | Epoch | Step | Validation Loss | Matthews Correlation |
|:-------------:|:-----:|:----:|:---------------:|:--------------------:|
| 0.5253 | 1.0 | 535 | 0.5214 | 0.3943 |
| 0.3459 | 2.0 | 1070 | 0.5551 | 0.4693 |
| 0.2326 | 3.0 | 1605 | 0.6371 | 0.5059 |
| 0.1718 | 4.0 | 2140 | 0.7851 | 0.5111 |
| 0.1262 | 5.0 | 2675 | 0.8628 | 0.5331 |
### Framework versions
- Transformers 4.9.1
- Pytorch 1.9.0+cu102
- Datasets 1.11.0
- Tokenizers 0.10.3
| {"license": "apache-2.0", "tags": ["generated_from_trainer"], "datasets": ["glue"], "metrics": ["matthews_correlation"], "model_index": [{"name": "distilbert-base-uncased-finetuned-cola", "results": [{"task": {"name": "Text Classification", "type": "text-classification"}, "dataset": {"name": "glue", "type": "glue", "args": "cola"}, "metric": {"name": "Matthews Correlation", "type": "matthews_correlation", "value": 0.5331291095663535}}]}]} | text-classification | 123abhiALFLKFO/distilbert-base-uncased-finetuned-cola | [
"transformers",
"pytorch",
"tensorboard",
"distilbert",
"text-classification",
"generated_from_trainer",
"dataset:glue",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #tensorboard #distilbert #text-classification #generated_from_trainer #dataset-glue #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| distilbert-base-uncased-finetuned-cola
======================================
This model is a fine-tuned version of distilbert-base-uncased on the glue dataset.
It achieves the following results on the evaluation set:
* Loss: 0.8628
* Matthews Correlation: 0.5331
Model description
-----------------
More information needed
Intended uses & limitations
---------------------------
More information needed
Training and evaluation data
----------------------------
More information needed
Training procedure
------------------
### Training hyperparameters
The following hyperparameters were used during training:
* learning\_rate: 2e-05
* train\_batch\_size: 16
* eval\_batch\_size: 16
* seed: 42
* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
* lr\_scheduler\_type: linear
* num\_epochs: 5
### Training results
### Framework versions
* Transformers 4.9.1
* Pytorch 1.9.0+cu102
* Datasets 1.11.0
* Tokenizers 0.10.3
| [
"### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 2e-05\n* train\\_batch\\_size: 16\n* eval\\_batch\\_size: 16\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* num\\_epochs: 5",
"### Training results",
"### Framework versions\n\n\n* Transformers 4.9.1\n* Pytorch 1.9.0+cu102\n* Datasets 1.11.0\n* Tokenizers 0.10.3"
] | [
"TAGS\n#transformers #pytorch #tensorboard #distilbert #text-classification #generated_from_trainer #dataset-glue #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 2e-05\n* train\\_batch\\_size: 16\n* eval\\_batch\\_size: 16\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* num\\_epochs: 5",
"### Training results",
"### Framework versions\n\n\n* Transformers 4.9.1\n* Pytorch 1.9.0+cu102\n* Datasets 1.11.0\n* Tokenizers 0.10.3"
] | [
63,
98,
4,
35
] | [
"passage: TAGS\n#transformers #pytorch #tensorboard #distilbert #text-classification #generated_from_trainer #dataset-glue #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 2e-05\n* train\\_batch\\_size: 16\n* eval\\_batch\\_size: 16\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* num\\_epochs: 5### Training results### Framework versions\n\n\n* Transformers 4.9.1\n* Pytorch 1.9.0+cu102\n* Datasets 1.11.0\n* Tokenizers 0.10.3"
] | [
-0.10138363391160965,
0.09181274473667145,
-0.0017480016686022282,
0.12251314520835876,
0.17487236857414246,
0.030555732548236847,
0.11795240640640259,
0.1284196972846985,
-0.0991346538066864,
0.021271787583827972,
0.12584805488586426,
0.17002835869789124,
0.010741710662841797,
0.11769048124551773,
-0.05881334841251373,
-0.2584119737148285,
-0.014017499051988125,
0.04791738837957382,
-0.07845775783061981,
0.13301406800746918,
0.09648574143648148,
-0.12414977699518204,
0.09311668574810028,
-0.004832270089536905,
-0.2168150246143341,
0.0075859264470636845,
0.012418114580214024,
-0.052767205983400345,
0.1444525122642517,
0.034126028418540955,
0.12158221751451492,
0.005013753660023212,
0.08290760964155197,
-0.1915157288312912,
0.011272239498794079,
0.05034958943724632,
0.0004795369750354439,
0.08983013778924942,
0.04984158277511597,
-0.004389860667288303,
0.12477509677410126,
-0.10553069412708282,
0.04841882735490799,
0.017974091693758965,
-0.11980147659778595,
-0.21046559512615204,
-0.07755997031927109,
0.023209288716316223,
0.06895510852336884,
0.10723888874053955,
-0.008464409969747066,
0.1267317682504654,
-0.07952189445495605,
0.09968549013137817,
0.22137734293937683,
-0.2899080514907837,
-0.06648627668619156,
0.04634452611207962,
0.012798751704394817,
0.058051660656929016,
-0.1062227264046669,
-0.029340026900172234,
0.05857633799314499,
0.04805753380060196,
0.12578821182250977,
-0.039213500916957855,
-0.12572668492794037,
0.015777021646499634,
-0.1394176036119461,
-0.01676696352660656,
0.16315938532352448,
0.03296953812241554,
-0.023761456832289696,
-0.04513244703412056,
-0.05685555189847946,
-0.1354190558195114,
-0.031068751588463783,
-0.002263233996927738,
0.046718157827854156,
-0.028431862592697144,
-0.07347904145717621,
-0.0067316628992557526,
-0.11192303895950317,
-0.05554114282131195,
-0.07968578487634659,
0.11954854428768158,
0.028946293517947197,
0.009572487324476242,
-0.030037324875593185,
0.09903988242149353,
-0.00625665532425046,
-0.1259600818157196,
0.020809059962630272,
0.03279375284910202,
-0.0003051985113415867,
-0.05526058375835419,
-0.0685529038310051,
-0.057281743735075,
0.014994512312114239,
0.1212097778916359,
-0.05445388704538345,
0.046691011637449265,
0.046145811676979065,
0.045070964843034744,
-0.08390553295612335,
0.18968869745731354,
-0.04098469763994217,
-0.019244709983468056,
0.011217089369893074,
0.041044097393751144,
0.018894728273153305,
-0.013744070194661617,
-0.12753142416477203,
0.004806716460734606,
0.09884382039308548,
0.007470232900232077,
-0.06463329493999481,
0.07715759426355362,
-0.05452563613653183,
-0.019385728985071182,
-0.0054857442155480385,
-0.09680405259132385,
0.03441823273897171,
-0.004249462857842445,
-0.08126911520957947,
-0.022060025483369827,
0.022231625393033028,
0.011360249482095242,
-0.018155450001358986,
0.12288933247327805,
-0.0906168669462204,
0.040340036153793335,
-0.09327813982963562,
-0.11538615822792053,
0.02385558933019638,
-0.09099278599023819,
0.026915371417999268,
-0.09574364870786667,
-0.18126414716243744,
-0.02119799703359604,
0.05838366597890854,
-0.02496919222176075,
-0.057531844824552536,
-0.05914877727627754,
-0.07909619808197021,
0.012710535898804665,
-0.01752087101340294,
0.12487196922302246,
-0.0661722719669342,
0.09737953543663025,
0.03186080604791641,
0.06287983059883118,
-0.06483995914459229,
0.05454431101679802,
-0.10234236717224121,
0.007735768798738718,
-0.1652398407459259,
0.04769985377788544,
-0.046658217906951904,
0.07866405695676804,
-0.08223975449800491,
-0.1051115170121193,
0.02311071567237377,
0.0033810080494731665,
0.06313920766115189,
0.08614415675401688,
-0.19414222240447998,
-0.08049311488866806,
0.15221811830997467,
-0.06840579956769943,
-0.12562373280525208,
0.11699496954679489,
-0.06706288456916809,
0.05698290467262268,
0.07371602952480316,
0.184627965092659,
0.06854979693889618,
-0.07383659482002258,
-0.006559441797435284,
0.025592148303985596,
0.05278046429157257,
-0.07360737025737762,
0.06177666038274765,
0.012096193619072437,
0.018694767728447914,
0.030097441747784615,
-0.02470897138118744,
0.06522233784198761,
-0.0925702303647995,
-0.09115505963563919,
-0.042404405772686005,
-0.08998403698205948,
0.03639598563313484,
0.078729048371315,
0.07467003166675568,
-0.10150585323572159,
-0.07369990646839142,
0.07819622755050659,
0.07913773506879807,
-0.0637807846069336,
0.02981165610253811,
-0.055730391293764114,
0.05935884267091751,
-0.02315233089029789,
-0.020711883902549744,
-0.1876806765794754,
-0.0353415384888649,
0.0033801691606640816,
0.010064490139484406,
0.02905278652906418,
0.02397819235920906,
0.06553194671869278,
0.05169892683625221,
-0.05748188868165016,
-0.009254573844373226,
-0.00924514140933752,
0.0017017362406477332,
-0.13137264549732208,
-0.201021209359169,
-0.02204478532075882,
-0.024205349385738373,
0.15560223162174225,
-0.21743567287921906,
0.04454241320490837,
0.002680771751329303,
0.06929411739110947,
0.011735393665730953,
-0.003736986080184579,
-0.042548440396785736,
0.08219271153211594,
-0.045021288096904755,
-0.05508570000529289,
0.0734293982386589,
0.01929287798702717,
-0.09789107739925385,
-0.052520621567964554,
-0.1082654818892479,
0.15701158344745636,
0.13954690098762512,
-0.12095533311367035,
-0.08241265267133713,
-0.004869589116424322,
-0.057637132704257965,
-0.027924181893467903,
-0.04948529973626137,
0.03248227760195732,
0.17407584190368652,
-0.01073733251541853,
0.15568917989730835,
-0.06790310144424438,
-0.049282900989055634,
0.014606268145143986,
-0.039691586047410965,
0.023940667510032654,
0.12615559995174408,
0.1206049844622612,
-0.0747140496969223,
0.15334181487560272,
0.1534608006477356,
-0.10042717307806015,
0.13248319923877716,
-0.040576107800006866,
-0.0631931722164154,
-0.020310979336500168,
-0.02775336056947708,
-0.006297021172940731,
0.09525734186172485,
-0.12458211183547974,
-0.0019712201319634914,
0.021205568686127663,
0.019204357638955116,
0.026035606861114502,
-0.22809220850467682,
-0.03826599195599556,
0.0281943641602993,
-0.04012012109160423,
-0.01114169042557478,
-0.019353274255990982,
0.003671730402857065,
0.10307865589857101,
0.006109531037509441,
-0.08333727717399597,
0.04527758061885834,
0.00433516688644886,
-0.08271829783916473,
0.2196817696094513,
-0.09577154368162155,
-0.16733883321285248,
-0.12176884710788727,
-0.07893921434879303,
-0.044794365763664246,
0.007620422635227442,
0.061704300343990326,
-0.09212178736925125,
-0.03240298107266426,
-0.06761292368173599,
0.019370902329683304,
-0.0023205296602100134,
0.028749944642186165,
0.00725533114746213,
0.007390500977635384,
0.06709158420562744,
-0.10672678798437119,
-0.009718425571918488,
-0.053294528275728226,
-0.059197794646024704,
0.05104880407452583,
0.032916001975536346,
0.11025732010602951,
0.15554381906986237,
-0.018638934940099716,
0.009264804422855377,
-0.0379490852355957,
0.24054202437400818,
-0.06337197124958038,
-0.02255132421851158,
0.12653496861457825,
-0.007734472397714853,
0.046888548880815506,
0.12052290141582489,
0.07125964015722275,
-0.08900165557861328,
0.009850301779806614,
0.03428591787815094,
-0.036994948983192444,
-0.22528907656669617,
-0.05716115981340408,
-0.056467991322278976,
0.0030881159473210573,
0.0939449816942215,
0.030201366171240807,
0.034760039299726486,
0.0645616203546524,
0.04835493117570877,
0.08317936211824417,
-0.03455687686800957,
0.055070631206035614,
0.12929177284240723,
0.04124240577220917,
0.12607607245445251,
-0.04883788898587227,
-0.0621289499104023,
0.045546237379312515,
-0.015357374213635921,
0.22370217740535736,
-0.0004287105402909219,
0.13657733798027039,
0.04890884831547737,
0.15842336416244507,
-0.008791405707597733,
0.07418705523014069,
-0.0037982272915542126,
-0.042784661054611206,
-0.012841083109378815,
-0.038446925580501556,
-0.032840095460414886,
0.023165127262473106,
-0.06864646822214127,
0.04783427715301514,
-0.1182292252779007,
0.003483798587694764,
0.06672365963459015,
0.22510957717895508,
0.045347969979047775,
-0.3229960799217224,
-0.09459678828716278,
0.005747778806835413,
-0.026898711919784546,
-0.018383393064141273,
0.024982361122965813,
0.10111680626869202,
-0.08431806415319443,
0.044699277728796005,
-0.06669696420431137,
0.0978696271777153,
-0.05325652286410332,
0.053714096546173096,
0.0833359807729721,
0.09653782844543457,
0.0074645220302045345,
0.0882764682173729,
-0.31208133697509766,
0.26951196789741516,
0.007898678071796894,
0.06543229520320892,
-0.07460381835699081,
0.000865441164933145,
0.03253268077969551,
0.06775101274251938,
0.06726422160863876,
-0.012305173091590405,
-0.04567352309823036,
-0.1856955885887146,
-0.0524708554148674,
0.03176290914416313,
0.08576912432909012,
-0.016058573499321938,
0.08660877496004105,
-0.031276553869247437,
0.006710614077746868,
0.08061738312244415,
-0.02759450301527977,
-0.047168929129838943,
-0.11016498506069183,
-0.010352971963584423,
0.0342746302485466,
-0.05324574559926987,
-0.057463500648736954,
-0.11063649505376816,
-0.13110534846782684,
0.16762825846672058,
-0.030626121908426285,
-0.031653039157390594,
-0.10816682875156403,
0.10112731903791428,
0.0664503276348114,
-0.08856356143951416,
0.03485357016324997,
0.010295683518052101,
0.0708969384431839,
0.03165864944458008,
-0.07747503370046616,
0.109786257147789,
-0.06427845358848572,
-0.14875121414661407,
-0.05849020555615425,
0.09909399598836899,
0.02966337651014328,
0.06653016805648804,
-0.011604848317801952,
0.014306565746665001,
-0.04986817389726639,
-0.09121626615524292,
0.0112402169033885,
-0.012907742522656918,
0.06797314435243607,
0.03146473690867424,
-0.0636986792087555,
0.006366269197314978,
-0.05857650190591812,
-0.03542293608188629,
0.20417991280555725,
0.23033764958381653,
-0.10128122568130493,
0.01128136646002531,
0.023579541593790054,
-0.07304376363754272,
-0.20903372764587402,
0.04996675252914429,
0.052024539560079575,
0.0038596957456320524,
0.03059072233736515,
-0.17878276109695435,
0.1426609456539154,
0.11043008416891098,
-0.008285046555101871,
0.10300042480230331,
-0.3162187933921814,
-0.1298130452632904,
0.11809475719928741,
0.13054122030735016,
0.1176321730017662,
-0.1425286829471588,
-0.0183709729462862,
-0.03309715539216995,
-0.11702732741832733,
0.1329037845134735,
-0.10983089357614517,
0.11971795558929443,
-0.023416943848133087,
0.08235824108123779,
0.0005208451766520739,
-0.0567815899848938,
0.12149792909622192,
0.03761216253042221,
0.10023183375597,
-0.060792677104473114,
-0.036266520619392395,
0.04596136510372162,
-0.03819906711578369,
0.02092742919921875,
-0.09577959030866623,
0.025361867621541023,
-0.0936150848865509,
-0.020406529307365417,
-0.06852612644433975,
0.042476836591959,
-0.03654692322015762,
-0.061134614050388336,
-0.04469207674264908,
0.026457475498318672,
0.04644780233502388,
-0.012331503443419933,
0.13658395409584045,
0.02035389095544815,
0.14555925130844116,
0.10335679352283478,
0.07351463288068771,
-0.08133154362440109,
-0.056079600006341934,
-0.008207510225474834,
-0.014590260572731495,
0.04897656664252281,
-0.14960558712482452,
0.028569240123033524,
0.1536419540643692,
0.019732961431145668,
0.1482411026954651,
0.0869421511888504,
-0.010772149078547955,
0.002147610764950514,
0.06737595051527023,
-0.1666678488254547,
-0.0909922644495964,
-0.004821413196623325,
-0.07190437614917755,
-0.11649473756551743,
0.04683881253004074,
0.09706324338912964,
-0.061846498399972916,
-0.005686305463314056,
-0.0030022866558283567,
0.007164324168115854,
-0.05895275995135307,
0.19428816437721252,
0.06646456569433212,
0.042164549231529236,
-0.10693242400884628,
0.07034572213888168,
0.051408663392066956,
-0.08282521367073059,
0.00593935139477253,
0.08518387377262115,
-0.08517700433731079,
-0.051019828766584396,
0.08751039206981659,
0.18584555387496948,
-0.06616263836622238,
-0.04911690950393677,
-0.13821348547935486,
-0.12204624712467194,
0.07799609750509262,
0.15999682247638702,
0.12266577035188675,
0.019017066806554794,
-0.05772237107157707,
0.004102302715182304,
-0.12431347370147705,
0.08867493271827698,
0.0465819425880909,
0.06777802109718323,
-0.14385131001472473,
0.1651107370853424,
0.008049125783145428,
0.05041046813130379,
-0.02450399287045002,
0.029895659536123276,
-0.10823038220405579,
0.009272205643355846,
-0.10413534939289093,
-0.010283788666129112,
-0.036030080169439316,
0.009663371369242668,
0.006098243873566389,
-0.04915362223982811,
-0.05547851696610451,
0.005855679977685213,
-0.11320266872644424,
-0.022768666967749596,
0.02856818586587906,
0.05749751627445221,
-0.11522112786769867,
-0.04550881311297417,
0.019614633172750473,
-0.058190491050481796,
0.07416874170303345,
0.042481135576963425,
0.011530384421348572,
0.0648583173751831,
-0.15035967528820038,
0.0011729872785508633,
0.07639433443546295,
0.02306401915848255,
0.0702202171087265,
-0.07973466068506241,
-0.007887307554483414,
0.005099095869809389,
0.060839470475912094,
0.024969816207885742,
0.07799719274044037,
-0.1327405720949173,
0.00647034402936697,
-0.035032033920288086,
-0.08092737942934036,
-0.06851889938116074,
0.03686651960015297,
0.08677248656749725,
0.021485108882188797,
0.20365601778030396,
-0.08378603309392929,
0.035802118480205536,
-0.20686383545398712,
0.006670020055025816,
-0.014568416401743889,
-0.12046866118907928,
-0.11601729691028595,
-0.06955434381961823,
0.06604958325624466,
-0.05596913769841194,
0.1477183699607849,
0.03519124165177345,
0.037841230630874634,
0.030449194833636284,
-0.006695518270134926,
0.002068361733108759,
0.021651513874530792,
0.21045580506324768,
0.03141474723815918,
-0.04134353622794151,
0.05728282406926155,
0.052612900733947754,
0.1101500615477562,
0.11330829560756683,
0.20648503303527832,
0.1380019187927246,
-0.013899591751396656,
0.095646433532238,
0.033273931592702866,
-0.0642935112118721,
-0.1443653106689453,
0.059243205934762955,
-0.048629723489284515,
0.10570532828569412,
-0.02623470313847065,
0.20827357470989227,
0.051297031342983246,
-0.16901373863220215,
0.04210517555475235,
-0.06468261033296585,
-0.09619585424661636,
-0.11231566220521927,
-0.03238716721534729,
-0.0875634029507637,
-0.13717755675315857,
-0.00764749851077795,
-0.12037774175405502,
0.00704254349693656,
0.11477746814489365,
0.007749590557068586,
-0.02439321205019951,
0.15134622156620026,
0.00909509602934122,
0.022123757749795914,
0.05812042951583862,
0.003955349326133728,
-0.03175492212176323,
-0.11609432846307755,
-0.05957282334566116,
-0.021430084481835365,
-0.011019710451364517,
0.03345385938882828,
-0.05343703553080559,
-0.0408368855714798,
0.038032352924346924,
-0.037218619138002396,
-0.09469655156135559,
0.010968920774757862,
0.03042767010629177,
0.06000256910920143,
0.04168739542365074,
0.009817145764827728,
0.007382037118077278,
-0.004258687607944012,
0.21944472193717957,
-0.08034026622772217,
-0.08558638393878937,
-0.10149785131216049,
0.25397300720214844,
0.03819878771901131,
-0.012124216184020042,
0.028620058670639992,
-0.07035787403583527,
0.00025873054983094335,
0.24288126826286316,
0.21838118135929108,
-0.09676580131053925,
-0.004494017921388149,
0.0034187587443739176,
-0.004584383685141802,
-0.020861610770225525,
0.10863317549228668,
0.13634389638900757,
0.053747471421957016,
-0.09628306329250336,
-0.05230684578418732,
-0.051461752504110336,
-0.012838656082749367,
-0.045591581612825394,
0.05112669616937637,
0.04321906715631485,
0.006692682392895222,
-0.035356249660253525,
0.06000112369656563,
-0.07312456518411636,
-0.09315123409032822,
0.0566585436463356,
-0.22041015326976776,
-0.1617775559425354,
-0.012369958683848381,
0.10987871140241623,
0.0014037297805771232,
0.06387913227081299,
-0.02875623106956482,
0.0002558798005338758,
0.07067462056875229,
-0.02238454483449459,
-0.10012708604335785,
-0.06309697031974792,
0.08920733630657196,
-0.12066013365983963,
0.19246868789196014,
-0.048799995332956314,
0.06887868046760559,
0.13211356103420258,
0.06647348403930664,
-0.07096020132303238,
0.06567104905843735,
0.037423670291900635,
-0.052818406373262405,
0.032912615686655045,
0.07441634684801102,
-0.04309992119669914,
0.061217714101076126,
0.04962910711765289,
-0.1339409351348877,
0.020919783040881157,
-0.054605819284915924,
-0.05957318842411041,
-0.047798026353120804,
-0.042255524545907974,
-0.05862826108932495,
0.12552937865257263,
0.21632321178913116,
-0.027486182749271393,
0.005953099578619003,
-0.06732727587223053,
0.00007510215073125437,
0.05533996596932411,
0.030002247542142868,
-0.06856279820203781,
-0.21824997663497925,
0.012374167330563068,
0.05057553946971893,
-0.01405921671539545,
-0.23624102771282196,
-0.08679673075675964,
-0.004863446578383446,
-0.06928899884223938,
-0.09631688892841339,
0.09118016064167023,
0.08410878479480743,
0.047422777861356735,
-0.05942878499627113,
-0.05266397446393967,
-0.07673587650060654,
0.15150220692157745,
-0.14311285316944122,
-0.09775520861148834
] |
null | null | transformers |
#Jake Peralta DialoGPT Model | {"tags": ["conversational"]} | text-generation | 1Basco/DialoGPT-small-jake | [
"transformers",
"pytorch",
"gpt2",
"text-generation",
"conversational",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us
|
#Jake Peralta DialoGPT Model | [] | [
"TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n"
] | [
51
] | [
"passage: TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n"
] | [
-0.009697278961539268,
0.03208012506365776,
-0.007204889785498381,
0.004809224978089333,
0.16726240515708923,
0.014898733235895634,
0.09765533357858658,
0.13672804832458496,
-0.007841327227652073,
-0.031050153076648712,
0.14490588009357452,
0.20411323010921478,
-0.006439372431486845,
0.0661218985915184,
-0.07572533935308456,
-0.2683109939098358,
0.05759621039032936,
0.046649303287267685,
0.016515716910362244,
0.1200079694390297,
0.08573378622531891,
-0.05473608896136284,
0.08714032918214798,
-0.014583407901227474,
-0.150366872549057,
0.017733458429574966,
0.043394338339567184,
-0.12260226160287857,
0.11910516023635864,
0.05462685227394104,
0.07063519209623337,
0.014929565601050854,
-0.07541623711585999,
-0.1631229966878891,
0.03031250834465027,
0.01425902172923088,
-0.0594632662832737,
0.04757995903491974,
0.059961482882499695,
-0.10165371745824814,
0.10819483548402786,
0.09530027210712433,
-0.013078106567263603,
0.06798283755779266,
-0.16849711537361145,
-0.020869607105851173,
-0.01446688175201416,
0.009899779222905636,
0.05550243332982063,
0.09964893013238907,
-0.03413357585668564,
0.10497362166643143,
-0.09214533120393753,
0.11017382889986038,
0.10932035744190216,
-0.32057443261146545,
-0.005767723545432091,
0.09167823940515518,
0.039358653128147125,
0.07352814823389053,
-0.04467793554067612,
0.06258884817361832,
0.018015462905168533,
0.017986174672842026,
-0.014015024527907372,
-0.07283061742782593,
-0.11612214148044586,
0.04717336222529411,
-0.08668071031570435,
-0.059868961572647095,
0.2244078367948532,
-0.05464440956711769,
0.06881742179393768,
-0.05281897634267807,
-0.10522868484258652,
-0.04308144748210907,
-0.029833965003490448,
0.00475557055324316,
-0.07660607248544693,
0.08692064881324768,
0.00869679357856512,
-0.09547875821590424,
-0.1376667022705078,
-0.02496783249080181,
-0.1776352822780609,
0.16140350699424744,
0.02465328387916088,
0.05232657864689827,
-0.2027255892753601,
0.09623090922832489,
0.017906051129102707,
-0.08045592904090881,
0.022091427817940712,
-0.10046248883008957,
0.029131146147847176,
0.013760408386588097,
-0.04754498973488808,
-0.061387211084365845,
0.0843690037727356,
0.11199145019054413,
-0.01731434464454651,
0.025486016646027565,
-0.039331406354904175,
0.08100687712430954,
0.03553595021367073,
0.09077847748994827,
0.007288969587534666,
-0.028338588774204254,
0.025842782109975815,
-0.13719046115875244,
-0.003647835226729512,
-0.07116208970546722,
-0.16572439670562744,
-0.021088803187012672,
0.02994808368384838,
0.08289173990488052,
0.015449047088623047,
0.11682453751564026,
-0.03272046521306038,
-0.025152435526251793,
0.03602350503206253,
-0.047656361013650894,
-0.012649794109165668,
0.016648368909955025,
0.013163427822291851,
0.12399329990148544,
-0.0022096503525972366,
0.03235051408410072,
-0.13653022050857544,
0.031423524022102356,
-0.06793295592069626,
-0.003740974934771657,
-0.03486552834510803,
-0.040637075901031494,
0.009043924510478973,
-0.06862333416938782,
0.003486064961180091,
-0.15030112862586975,
-0.15063877403736115,
0.007587034720927477,
-0.007836631499230862,
-0.04107699543237686,
-0.06370922178030014,
-0.06952770054340363,
-0.013550350442528725,
0.04251532256603241,
-0.07093454152345657,
-0.011352915316820145,
-0.06403283774852753,
0.11004766076803207,
-0.03197755664587021,
0.07921615242958069,
-0.11953279376029968,
0.08390819281339645,
-0.11260783672332764,
-0.02386913076043129,
-0.060801517218351364,
0.09317506104707718,
-0.0006014376995153725,
0.09549830108880997,
-0.006563255097717047,
-0.017931854352355003,
-0.07981178909540176,
0.06445012241601944,
-0.042872510850429535,
0.21701598167419434,
-0.0615808479487896,
-0.11181682348251343,
0.28781595826148987,
-0.052628401666879654,
-0.1370542049407959,
0.11647392809391022,
0.008682746440172195,
0.05777018144726753,
0.10703510791063309,
0.19733482599258423,
-0.015276194550096989,
0.004040541127324104,
0.09471915662288666,
0.11263324320316315,
-0.11276852339506149,
-0.033160366117954254,
0.013019153848290443,
-0.04081077128648758,
-0.10867965966463089,
0.04689536616206169,
0.09810488671064377,
0.07090286910533905,
-0.04786505550146103,
-0.03377414867281914,
-0.01366397924721241,
0.0052589005790650845,
0.08885077387094498,
-0.007157256826758385,
0.10962837189435959,
-0.05819983780384064,
-0.03796621412038803,
-0.029282379895448685,
-0.012126247398555279,
-0.03951939567923546,
0.03137664496898651,
-0.043376367539167404,
0.10821941494941711,
-0.011204327456653118,
0.06364280730485916,
-0.16185984015464783,
-0.07691477984189987,
-0.017002692446112633,
0.1581239402294159,
0.024538565427064896,
0.09859629720449448,
0.0552486926317215,
-0.040398042649030685,
-0.0012767292791977525,
0.012792680412530899,
0.15581141412258148,
-0.022091681137681007,
-0.065607450902462,
-0.052166227251291275,
0.08642971515655518,
-0.05641226842999458,
0.04504093527793884,
-0.05937713757157326,
0.012367865070700645,
0.05064384639263153,
0.10342344641685486,
-0.00018274025933351368,
0.03323284164071083,
-0.008164864964783192,
0.002145637758076191,
-0.058205123990774155,
0.007405933458358049,
0.10799351334571838,
0.00036868182360194623,
-0.07365862280130386,
0.22074243426322937,
-0.17796069383621216,
0.1765957772731781,
0.1893044263124466,
-0.299345999956131,
0.017949223518371582,
-0.10759581625461578,
-0.04561871662735939,
0.014407722279429436,
0.05567655712366104,
-0.0454222597181797,
0.1703362911939621,
-0.009871348738670349,
0.18874616920948029,
-0.04946064203977585,
-0.04464937001466751,
-0.0200483538210392,
-0.05118836089968681,
-0.0024189651012420654,
0.07781197130680084,
0.10685696452856064,
-0.13992026448249817,
0.1964332014322281,
0.1621224284172058,
0.048237916082143784,
0.19945049285888672,
0.015346456319093704,
-0.011589210480451584,
0.0909530371427536,
0.005220826715230942,
-0.058739423751831055,
-0.07409929484128952,
-0.2594851851463318,
-0.030033592134714127,
0.07992640137672424,
0.0422382652759552,
0.1212305948138237,
-0.11349532753229141,
-0.038956157863140106,
-0.01763172075152397,
-0.023146281018853188,
0.021672505885362625,
0.0914369598031044,
0.06075398623943329,
0.13201528787612915,
-0.001710098935291171,
-0.007300339173525572,
0.10524573177099228,
0.01783694699406624,
-0.09354141354560852,
0.18308524787425995,
-0.13652534782886505,
-0.37097251415252686,
-0.13911493122577667,
-0.18057456612586975,
-0.05449081212282181,
0.05712554603815079,
0.11679314076900482,
-0.12011238187551498,
-0.018752124160528183,
0.01578843593597412,
0.10931742936372757,
-0.08449502289295197,
0.0021454424131661654,
-0.06880278885364532,
0.0321490578353405,
-0.10310184955596924,
-0.09194442629814148,
-0.055416494607925415,
-0.031392451375722885,
-0.08001253753900528,
0.1423761546611786,
-0.10777941346168518,
0.04476889222860336,
0.20262959599494934,
0.04653622955083847,
0.05625178664922714,
-0.044105201959609985,
0.19377262890338898,
-0.11264272034168243,
-0.01661740615963936,
0.19215328991413116,
-0.048360925167798996,
0.07476246356964111,
0.1232115849852562,
-0.006348740309476852,
-0.08765771239995956,
0.03011748194694519,
-0.02085109055042267,
-0.07988511025905609,
-0.23219464719295502,
-0.13938382267951965,
-0.12429051846265793,
0.09477275609970093,
0.028005298227071762,
0.056365787982940674,
0.17219258844852448,
0.06577219814062119,
-0.038416244089603424,
0.006410336587578058,
0.02959546446800232,
0.08237514644861221,
0.23417828977108002,
-0.06035616248846054,
0.1364797055721283,
-0.03420931473374367,
-0.14982740581035614,
0.08169995993375778,
0.0713929831981659,
0.10213395953178406,
0.06678459793329239,
0.0804823637008667,
0.0149586396291852,
0.06188136339187622,
0.1311223804950714,
0.08191446959972382,
0.019586285576224327,
-0.02480296604335308,
-0.03388110175728798,
-0.025523077696561813,
-0.05937909707427025,
0.040128443390131,
0.06589099019765854,
-0.16763372719287872,
-0.039227183908224106,
-0.09338314831256866,
0.09657008945941925,
0.0873042419552803,
0.06609832495450974,
-0.1842060089111328,
-0.008006223477423191,
0.08488986641168594,
-0.03854905813932419,
-0.13727426528930664,
0.09535189718008041,
0.01523482333868742,
-0.15144726634025574,
0.03139317408204079,
-0.04061909019947052,
0.12188644707202911,
-0.07804752141237259,
0.09809603542089462,
-0.08108244836330414,
-0.07448557764291763,
0.02123199962079525,
0.1261177361011505,
-0.30527687072753906,
0.20240111649036407,
-0.0024993624538183212,
-0.06486981362104416,
-0.1243603527545929,
-0.0032166161108762026,
0.002410882618278265,
0.07357452809810638,
0.10519039630889893,
-0.007196315098553896,
0.001897757756523788,
-0.06300821900367737,
-0.01829923689365387,
0.032471053302288055,
0.13080233335494995,
-0.0401318334043026,
-0.021158374845981598,
-0.050194524228572845,
-0.001653497340157628,
-0.03173094615340233,
-0.06934895366430283,
0.02002747356891632,
-0.19509181380271912,
0.08751901984214783,
0.04166261479258537,
0.09648149460554123,
0.029994789510965347,
0.004265148192644119,
-0.09651939570903778,
0.24698667228221893,
-0.07148019969463348,
-0.10072879493236542,
-0.10919588059186935,
-0.046813901513814926,
0.03569883480668068,
-0.05628936365246773,
0.04309194162487984,
-0.0788632407784462,
0.028997479006648064,
-0.06352769583463669,
-0.19235502183437347,
0.12410202622413635,
-0.09027006477117538,
-0.04412810131907463,
-0.02371402643620968,
0.2110891044139862,
-0.05598580464720726,
0.010335659608244896,
0.02930437959730625,
0.01208863127976656,
-0.11645778268575668,
-0.09678568691015244,
0.031018631532788277,
-0.007351789623498917,
0.050603240728378296,
0.041841957718133926,
-0.05915454775094986,
-0.017138581722974777,
-0.052199993282556534,
-0.022926922887563705,
0.3496883809566498,
0.14231905341148376,
-0.043836336582899094,
0.19347235560417175,
0.12347975373268127,
-0.07452994585037231,
-0.3159443140029907,
-0.1066238060593605,
-0.10937739163637161,
-0.04680149629712105,
-0.07012093812227249,
-0.2002030611038208,
0.06474938243627548,
0.00662544509395957,
-0.013415241613984108,
0.12749312818050385,
-0.2561831772327423,
-0.07571036368608475,
0.15906259417533875,
-0.017980827018618584,
0.3745945692062378,
-0.1168576180934906,
-0.10926306992769241,
-0.03950892388820648,
-0.14175476133823395,
0.16968177258968353,
-0.01989765651524067,
0.11221715062856674,
-0.009765521623194218,
0.14388824999332428,
0.05548359826207161,
-0.023479344323277473,
0.08544106781482697,
0.004999885335564613,
-0.03290518373250961,
-0.10304180532693863,
-0.05676887184381485,
0.007092386484146118,
0.02477436140179634,
0.018026655539870262,
-0.041834570467472076,
0.02227151393890381,
-0.11731979995965958,
-0.04657655209302902,
-0.08982590585947037,
0.04431166127324104,
0.03899754583835602,
-0.07325074821710587,
-0.002380647463724017,
-0.07165111601352692,
-0.012272949330508709,
0.022334342822432518,
0.20356793701648712,
-0.08029330521821976,
0.16448934376239777,
0.09239562600851059,
0.12419285625219345,
-0.14376309514045715,
-0.00019283240544609725,
-0.0762530043721199,
-0.05611240118741989,
0.07737895101308823,
-0.09433035552501678,
0.058893077075481415,
0.10901971161365509,
-0.04567738622426987,
0.08828683942556381,
0.10377411544322968,
0.008936077356338501,
0.003213887568563223,
0.10916902124881744,
-0.2667325437068939,
-0.0296600554138422,
-0.07532413303852081,
0.000883326749317348,
0.09092561900615692,
0.08562852442264557,
0.18840822577476501,
0.025361526757478714,
-0.04293036088347435,
-0.002770674182102084,
0.028597986325621605,
-0.039021048694849014,
0.051667019724845886,
0.001123449532315135,
0.01947369985282421,
-0.1530752182006836,
0.072522833943367,
0.01490565575659275,
-0.15215420722961426,
0.021316176280379295,
0.16572684049606323,
-0.11656328290700912,
-0.1283872276544571,
-0.06520111113786697,
0.08313824236392975,
-0.11755692958831787,
-0.01578943058848381,
-0.03279297426342964,
-0.13145680725574493,
0.07992171496152878,
0.12629036605358124,
0.05557859688997269,
0.0972496047616005,
-0.06061713397502899,
-0.020469192415475845,
-0.018721895292401314,
-0.014099318534135818,
-0.012384648434817791,
-0.007667020428925753,
-0.055978111922740936,
0.0590752474963665,
-0.026677248999476433,
0.1425808072090149,
-0.09221141785383224,
-0.1037059873342514,
-0.16142144799232483,
0.0374140702188015,
-0.11013076454401016,
-0.08825794607400894,
-0.08821134269237518,
-0.050188567489385605,
0.002360827289521694,
-0.019856395199894905,
-0.04037635400891304,
-0.05829505994915962,
-0.12300454825162888,
0.0338277705013752,
-0.040771447122097015,
0.024727050215005875,
-0.07512269169092178,
0.015856385231018066,
0.08507686108350754,
-0.03285100311040878,
0.15655414760112762,
0.1450488418340683,
-0.1006515845656395,
0.10741901397705078,
-0.14806775748729706,
-0.09138492494821548,
0.11116421222686768,
0.015329592861235142,
0.0449691042304039,
0.09723787009716034,
0.013362943194806576,
0.0635865181684494,
0.032776717096567154,
0.05308786407113075,
0.027619892731308937,
-0.11959987878799438,
0.06483134627342224,
-0.03626115620136261,
-0.14700546860694885,
-0.049338050186634064,
-0.05282869189977646,
0.01647452637553215,
0.013054544106125832,
0.09622690081596375,
-0.05301849544048309,
0.10698331147432327,
-0.04055701196193695,
0.0346808135509491,
0.017554637044668198,
-0.1730053424835205,
-0.03816922754049301,
-0.08538098633289337,
0.03681723028421402,
0.014741539023816586,
0.25266793370246887,
0.030072299763560295,
0.012416383251547813,
0.032671261578798294,
0.08285367488861084,
0.03899408504366875,
0.010228337720036507,
0.17482228577136993,
0.1162426546216011,
-0.06621865928173065,
-0.10445023328065872,
0.0729617029428482,
0.016332454979419708,
0.01286179106682539,
0.13617953658103943,
0.008365051820874214,
0.005795429926365614,
0.08649782836437225,
-0.016865963116288185,
0.009968153201043606,
-0.10052056610584259,
-0.13426925241947174,
-0.022176474332809448,
0.05151832848787308,
-0.04655967652797699,
0.11727844923734665,
0.1406494379043579,
-0.01806013658642769,
0.03222079202532768,
-0.021771740168333054,
-0.05699979141354561,
-0.1683429479598999,
-0.1429590880870819,
-0.06883849948644638,
-0.13416796922683716,
0.00897989235818386,
-0.11180389672517776,
0.05395037308335304,
0.06001098081469536,
0.06750501692295074,
-0.06899319589138031,
0.10220931470394135,
0.04626858979463577,
-0.11440542340278625,
0.06264589726924896,
-0.0296088308095932,
0.09430401772260666,
-0.02759445086121559,
-0.019505485892295837,
-0.09039592742919922,
0.014574515633285046,
0.011419114656746387,
0.06245238706469536,
-0.04707273095846176,
0.007463190704584122,
-0.14696238934993744,
-0.08972041308879852,
-0.0523175448179245,
0.0718572810292244,
-0.050409089773893356,
0.14282815158367157,
0.00775480642914772,
-0.0170906875282526,
0.039554283022880554,
0.22787313163280487,
-0.07476283609867096,
-0.04778539761900902,
-0.05269690603017807,
0.20717895030975342,
0.02975541539490223,
0.1171872541308403,
-0.022938819602131844,
-0.006106364540755749,
-0.0919521227478981,
0.3764844834804535,
0.30030161142349243,
-0.09031439572572708,
0.011794124729931355,
0.02137952297925949,
0.04502861574292183,
0.1316293478012085,
0.1216534823179245,
0.10318691283464432,
0.3006802201271057,
-0.07452366501092911,
-0.04653361067175865,
-0.012629742734134197,
-0.023858042433857918,
-0.09059546142816544,
0.1021224707365036,
0.04839762672781944,
-0.06382183730602264,
-0.03313443064689636,
0.0954432487487793,
-0.25862133502960205,
0.1277991235256195,
-0.12311873584985733,
-0.17578600347042084,
-0.06654827296733856,
0.009760108776390553,
0.10465722531080246,
0.015642458572983742,
0.0946015790104866,
0.007128213066607714,
-0.11252258718013763,
0.06305865943431854,
0.03397420793771744,
-0.22762253880500793,
0.0006893770187161863,
0.06642123311758041,
-0.07006710022687912,
-0.0024247700348496437,
-0.026499588042497635,
0.05657242611050606,
0.0656052976846695,
0.054629553109407425,
-0.00971333310008049,
0.03816632181406021,
0.0034184439573436975,
-0.0585215799510479,
0.016623929142951965,
0.05121519789099693,
0.02472509816288948,
-0.09763528406620026,
0.06927435845136642,
-0.1574270874261856,
0.04766253009438515,
-0.0030655991286039352,
-0.04124255105853081,
0.006064958870410919,
0.008823691867291927,
-0.06491616368293762,
0.05165379121899605,
0.07916834205389023,
-0.0016257909592241049,
-0.0062433634884655476,
-0.057178743183612823,
-0.02632102556526661,
-0.027755750343203545,
-0.09291748702526093,
-0.10495562851428986,
-0.14682936668395996,
-0.11640441417694092,
0.09368976950645447,
-0.01011267676949501,
-0.1848134547472,
0.022154374048113823,
-0.08606051653623581,
0.08319322764873505,
-0.1670055389404297,
0.08040720224380493,
0.07041648775339127,
0.013038921169936657,
-0.0031511052511632442,
-0.02002427540719509,
0.054132770746946335,
0.086809903383255,
-0.10407156497240067,
-0.07400695979595184
] |
null | null | transformers |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# wav2vec2-base-timit-demo-colab
This model is a fine-tuned version of [facebook/wav2vec2-base](https://huggingface.co/facebook/wav2vec2-base) on the None dataset.
It achieves the following results on the evaluation set:
- Loss: 0.6259
- Wer: 0.3544
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0001
- train_batch_size: 4
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 1000
- num_epochs: 30
- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Wer |
|:-------------:|:-----:|:-----:|:---------------:|:------:|
| 3.6744 | 0.5 | 500 | 2.9473 | 1.0 |
| 1.4535 | 1.01 | 1000 | 0.7774 | 0.6254 |
| 0.7376 | 1.51 | 1500 | 0.6923 | 0.5712 |
| 0.5848 | 2.01 | 2000 | 0.5445 | 0.5023 |
| 0.4492 | 2.51 | 2500 | 0.5148 | 0.4958 |
| 0.4006 | 3.02 | 3000 | 0.5283 | 0.4781 |
| 0.3319 | 3.52 | 3500 | 0.5196 | 0.4628 |
| 0.3424 | 4.02 | 4000 | 0.5285 | 0.4551 |
| 0.2772 | 4.52 | 4500 | 0.5060 | 0.4532 |
| 0.2724 | 5.03 | 5000 | 0.5216 | 0.4422 |
| 0.2375 | 5.53 | 5500 | 0.5376 | 0.4443 |
| 0.2279 | 6.03 | 6000 | 0.6051 | 0.4308 |
| 0.2091 | 6.53 | 6500 | 0.5084 | 0.4423 |
| 0.2029 | 7.04 | 7000 | 0.5083 | 0.4242 |
| 0.1784 | 7.54 | 7500 | 0.6123 | 0.4297 |
| 0.1774 | 8.04 | 8000 | 0.5749 | 0.4339 |
| 0.1542 | 8.54 | 8500 | 0.5110 | 0.4033 |
| 0.1638 | 9.05 | 9000 | 0.6324 | 0.4318 |
| 0.1493 | 9.55 | 9500 | 0.6100 | 0.4152 |
| 0.1591 | 10.05 | 10000 | 0.5508 | 0.4022 |
| 0.1304 | 10.55 | 10500 | 0.5090 | 0.4054 |
| 0.1234 | 11.06 | 11000 | 0.6282 | 0.4093 |
| 0.1218 | 11.56 | 11500 | 0.5817 | 0.3941 |
| 0.121 | 12.06 | 12000 | 0.5741 | 0.3999 |
| 0.1073 | 12.56 | 12500 | 0.5818 | 0.4149 |
| 0.104 | 13.07 | 13000 | 0.6492 | 0.3953 |
| 0.0934 | 13.57 | 13500 | 0.5393 | 0.4083 |
| 0.0961 | 14.07 | 14000 | 0.5510 | 0.3919 |
| 0.0965 | 14.57 | 14500 | 0.5896 | 0.3992 |
| 0.0921 | 15.08 | 15000 | 0.5554 | 0.3947 |
| 0.0751 | 15.58 | 15500 | 0.6312 | 0.3934 |
| 0.0805 | 16.08 | 16000 | 0.6732 | 0.3948 |
| 0.0742 | 16.58 | 16500 | 0.5990 | 0.3884 |
| 0.0708 | 17.09 | 17000 | 0.6186 | 0.3869 |
| 0.0679 | 17.59 | 17500 | 0.5837 | 0.3848 |
| 0.072 | 18.09 | 18000 | 0.5831 | 0.3775 |
| 0.0597 | 18.59 | 18500 | 0.6562 | 0.3843 |
| 0.0612 | 19.1 | 19000 | 0.6298 | 0.3756 |
| 0.0514 | 19.6 | 19500 | 0.6746 | 0.3720 |
| 0.061 | 20.1 | 20000 | 0.6236 | 0.3788 |
| 0.054 | 20.6 | 20500 | 0.6012 | 0.3718 |
| 0.0521 | 21.11 | 21000 | 0.6053 | 0.3778 |
| 0.0494 | 21.61 | 21500 | 0.6154 | 0.3772 |
| 0.0468 | 22.11 | 22000 | 0.6052 | 0.3747 |
| 0.0413 | 22.61 | 22500 | 0.5877 | 0.3716 |
| 0.0424 | 23.12 | 23000 | 0.5786 | 0.3658 |
| 0.0403 | 23.62 | 23500 | 0.5828 | 0.3658 |
| 0.0391 | 24.12 | 24000 | 0.5913 | 0.3685 |
| 0.0312 | 24.62 | 24500 | 0.5850 | 0.3625 |
| 0.0316 | 25.13 | 25000 | 0.6029 | 0.3611 |
| 0.0282 | 25.63 | 25500 | 0.6312 | 0.3624 |
| 0.0328 | 26.13 | 26000 | 0.6312 | 0.3621 |
| 0.0258 | 26.63 | 26500 | 0.5891 | 0.3581 |
| 0.0256 | 27.14 | 27000 | 0.6259 | 0.3546 |
| 0.0255 | 27.64 | 27500 | 0.6315 | 0.3587 |
| 0.0249 | 28.14 | 28000 | 0.6547 | 0.3579 |
| 0.025 | 28.64 | 28500 | 0.6237 | 0.3565 |
| 0.0228 | 29.15 | 29000 | 0.6187 | 0.3559 |
| 0.0209 | 29.65 | 29500 | 0.6259 | 0.3544 |
### Framework versions
- Transformers 4.11.3
- Pytorch 1.10.0+cu102
- Datasets 1.18.3
- Tokenizers 0.10.3
| {"license": "apache-2.0", "tags": ["generated_from_trainer"], "model-index": [{"name": "wav2vec2-base-timit-demo-colab", "results": []}]} | automatic-speech-recognition | 202015004/wav2vec2-base-timit-demo-colab | [
"transformers",
"pytorch",
"tensorboard",
"wav2vec2",
"automatic-speech-recognition",
"generated_from_trainer",
"license:apache-2.0",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #tensorboard #wav2vec2 #automatic-speech-recognition #generated_from_trainer #license-apache-2.0 #endpoints_compatible #region-us
| wav2vec2-base-timit-demo-colab
==============================
This model is a fine-tuned version of facebook/wav2vec2-base on the None dataset.
It achieves the following results on the evaluation set:
* Loss: 0.6259
* Wer: 0.3544
Model description
-----------------
More information needed
Intended uses & limitations
---------------------------
More information needed
Training and evaluation data
----------------------------
More information needed
Training procedure
------------------
### Training hyperparameters
The following hyperparameters were used during training:
* learning\_rate: 0.0001
* train\_batch\_size: 4
* eval\_batch\_size: 8
* seed: 42
* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
* lr\_scheduler\_type: linear
* lr\_scheduler\_warmup\_steps: 1000
* num\_epochs: 30
* mixed\_precision\_training: Native AMP
### Training results
### Framework versions
* Transformers 4.11.3
* Pytorch 1.10.0+cu102
* Datasets 1.18.3
* Tokenizers 0.10.3
| [
"### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 0.0001\n* train\\_batch\\_size: 4\n* eval\\_batch\\_size: 8\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* lr\\_scheduler\\_warmup\\_steps: 1000\n* num\\_epochs: 30\n* mixed\\_precision\\_training: Native AMP",
"### Training results",
"### Framework versions\n\n\n* Transformers 4.11.3\n* Pytorch 1.10.0+cu102\n* Datasets 1.18.3\n* Tokenizers 0.10.3"
] | [
"TAGS\n#transformers #pytorch #tensorboard #wav2vec2 #automatic-speech-recognition #generated_from_trainer #license-apache-2.0 #endpoints_compatible #region-us \n",
"### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 0.0001\n* train\\_batch\\_size: 4\n* eval\\_batch\\_size: 8\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* lr\\_scheduler\\_warmup\\_steps: 1000\n* num\\_epochs: 30\n* mixed\\_precision\\_training: Native AMP",
"### Training results",
"### Framework versions\n\n\n* Transformers 4.11.3\n* Pytorch 1.10.0+cu102\n* Datasets 1.18.3\n* Tokenizers 0.10.3"
] | [
56,
130,
4,
35
] | [
"passage: TAGS\n#transformers #pytorch #tensorboard #wav2vec2 #automatic-speech-recognition #generated_from_trainer #license-apache-2.0 #endpoints_compatible #region-us \n### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 0.0001\n* train\\_batch\\_size: 4\n* eval\\_batch\\_size: 8\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* lr\\_scheduler\\_warmup\\_steps: 1000\n* num\\_epochs: 30\n* mixed\\_precision\\_training: Native AMP### Training results### Framework versions\n\n\n* Transformers 4.11.3\n* Pytorch 1.10.0+cu102\n* Datasets 1.18.3\n* Tokenizers 0.10.3"
] | [
-0.10805472731590271,
0.10304280370473862,
-0.0034606894478201866,
0.053692661225795746,
0.10966534912586212,
-0.021720902994275093,
0.12998901307582855,
0.14933450520038605,
-0.1115756407380104,
0.07049112766981125,
0.12464950978755951,
0.14709456264972687,
0.04474181681871414,
0.14559434354305267,
-0.05133233591914177,
-0.28563037514686584,
0.04826205596327782,
0.036110442131757736,
-0.021492021158337593,
0.12433116883039474,
0.08513650298118591,
-0.12624485790729523,
0.052067916840314865,
0.037397872656583786,
-0.16052329540252686,
-0.0017853854224085808,
-0.008042107336223125,
-0.10783552378416061,
0.11830496788024902,
0.013234719634056091,
0.0726834386587143,
0.0491095669567585,
0.06316591054201126,
-0.21496129035949707,
0.008747356943786144,
0.044758304953575134,
0.027113353833556175,
0.07385585457086563,
0.061231065541505814,
-0.02531425841152668,
0.12036455422639847,
-0.07754728198051453,
0.08453495800495148,
0.034078199416399,
-0.10061784833669662,
-0.2962042987346649,
-0.08766292035579681,
0.04707355052232742,
0.07890971750020981,
0.09007690101861954,
-0.010249556042253971,
0.14652514457702637,
-0.058519553393125534,
0.11293784528970718,
0.2792855203151703,
-0.31314900517463684,
-0.0459957979619503,
-0.05227227509021759,
0.05649977922439575,
0.059346240013837814,
-0.09042485803365707,
-0.019403230398893356,
0.01088494062423706,
0.04708776995539665,
0.13286305963993073,
-0.017087839543819427,
-0.06065516546368599,
-0.008154804818332195,
-0.15350283682346344,
-0.06280583143234253,
0.11185245960950851,
0.01834670640528202,
-0.0422772653400898,
-0.09385049343109131,
-0.05165204405784607,
-0.20034317672252655,
-0.070180743932724,
-0.01542377658188343,
0.040114182978868484,
-0.049229469150304794,
-0.10488903522491455,
-0.018699204549193382,
-0.0680963546037674,
-0.06948133558034897,
-0.03775573521852493,
0.19379253685474396,
0.06151255592703819,
-0.0008361212676391006,
-0.04146682471036911,
0.06932803243398666,
-0.015294209122657776,
-0.13759009540081024,
-0.023285722360014915,
0.03592359647154808,
-0.02283184602856636,
-0.016521908342838287,
-0.043568048626184464,
-0.06396090984344482,
0.01893138885498047,
0.1562797576189041,
-0.10826954245567322,
0.09797496348619461,
-0.014764441177248955,
0.0382261648774147,
-0.10346535593271255,
0.20838835835456848,
-0.04153846204280853,
0.0313698910176754,
-0.006169550120830536,
0.05542294308543205,
0.03287775442004204,
-0.026555877178907394,
-0.09862034022808075,
0.034789685159921646,
0.11840523034334183,
0.05320372059941292,
-0.043737176805734634,
0.058988332748413086,
-0.026710882782936096,
-0.010304336436092854,
0.010690790601074696,
-0.11530778557062149,
0.034182365983724594,
0.01978747360408306,
-0.06081494688987732,
0.0015786411240696907,
0.018574725836515427,
0.004751993343234062,
-0.06454706192016602,
0.08382414281368256,
-0.05573541298508644,
0.033511076122522354,
-0.056195590645074844,
-0.12751737236976624,
0.026417529210448265,
-0.10896262526512146,
-0.0009451349615119398,
-0.10324200242757797,
-0.09072532504796982,
-0.010916318744421005,
0.03736766055226326,
-0.03565729409456253,
-0.03362015262246132,
-0.07304426282644272,
-0.09639639407396317,
0.04136566445231438,
-0.03538006544113159,
0.07749243825674057,
-0.07149414718151093,
0.09350718557834625,
0.031178820878267288,
0.08463587611913681,
-0.012981686741113663,
0.06250863522291183,
-0.06356069445610046,
0.029091570526361465,
-0.208841934800148,
0.07812103629112244,
-0.09311239421367645,
0.05928165093064308,
-0.12383244186639786,
-0.11682985723018646,
0.03916003555059433,
-0.005063019227236509,
0.1028217077255249,
0.09388310462236404,
-0.1695229858160019,
-0.09014543145895004,
0.20214229822158813,
-0.0834747850894928,
-0.08507676422595978,
0.12440308928489685,
-0.023697415366768837,
-0.01135921385139227,
0.05287431553006172,
0.25741881132125854,
0.05639989674091339,
-0.12468191236257553,
0.011963236145675182,
-0.03656618297100067,
0.04768979176878929,
-0.04462084174156189,
0.059261422604322433,
-0.02182123437523842,
0.0753624215722084,
0.013841284438967705,
-0.007296484429389238,
0.041870392858982086,
-0.08730601519346237,
-0.0782235860824585,
-0.040292467921972275,
-0.0762377381324768,
0.01387353241443634,
0.03481832146644592,
0.06436337530612946,
-0.11751356720924377,
-0.11046594381332397,
0.046567920595407486,
0.08433873951435089,
-0.104823537170887,
0.07570167630910873,
-0.11982467770576477,
0.08858198672533035,
-0.012713328935205936,
-0.003916281741112471,
-0.1911584436893463,
0.03424479812383652,
0.03378233686089516,
-0.027459584176540375,
0.03749170899391174,
-0.06530553847551346,
0.07342350482940674,
0.04829402267932892,
-0.024424897506833076,
-0.047463759779930115,
-0.008532488718628883,
0.013398504815995693,
-0.09091772884130478,
-0.20886626839637756,
-0.0405425988137722,
-0.041370708495378494,
0.074446901679039,
-0.13541953265666962,
0.03467641398310661,
0.07254887372255325,
0.0930158719420433,
0.02926108054816723,
-0.028012702241539955,
0.001596338814124465,
0.09008540958166122,
-0.017488909885287285,
-0.06681326031684875,
0.057181015610694885,
0.023712575435638428,
-0.08701729774475098,
0.048284027725458145,
-0.1485101878643036,
0.12760847806930542,
0.14547279477119446,
-0.008571568876504898,
-0.06794436275959015,
0.0017039405647665262,
-0.04998331889510155,
-0.03198942914605141,
-0.0016673735808581114,
0.04093271121382713,
0.22137019038200378,
0.016045477241277695,
0.14556823670864105,
-0.09005040675401688,
-0.04419608786702156,
0.04900573194026947,
-0.02276698499917984,
-0.009046539664268494,
0.12439398467540741,
0.04811263084411621,
-0.0563686341047287,
0.11372487246990204,
0.09144540131092072,
-0.08591483533382416,
0.11781121045351028,
-0.0683278739452362,
-0.07641518115997314,
-0.016441427171230316,
0.005943646654486656,
0.02834474854171276,
0.09605491906404495,
-0.15500730276107788,
-0.04035058245062828,
0.02721654810011387,
0.020863687619566917,
0.024974651634693146,
-0.20893704891204834,
0.014206325635313988,
0.031718503683805466,
-0.08175290375947952,
-0.0426812544465065,
-0.0013728996273130178,
0.011830258183181286,
0.09384044259786606,
0.01419521402567625,
-0.09739159792661667,
0.010066401213407516,
0.0032302814070135355,
-0.0758972018957138,
0.17976014316082,
-0.12152479588985443,
-0.17731821537017822,
-0.1021493449807167,
-0.08679764717817307,
-0.03301457315683365,
-0.007075826171785593,
0.08914565294981003,
-0.09454867243766785,
-0.044537369161844254,
-0.08378739655017853,
-0.0238413754850626,
-0.032227590680122375,
0.043094709515571594,
0.03137059137225151,
-0.011077973991632462,
0.06305743008852005,
-0.11173392087221146,
-0.019394706934690475,
-0.041510067880153656,
0.0032916744239628315,
0.05558507516980171,
0.035779595375061035,
0.10619593411684036,
0.15675383806228638,
-0.014536052942276001,
0.04954899102449417,
-0.04650004208087921,
0.18737348914146423,
-0.07447364926338196,
-0.04142424836754799,
0.11340562999248505,
-0.007842820137739182,
0.06941188126802444,
0.11039865016937256,
0.04581524804234505,
-0.0937807559967041,
-0.01406766939908266,
-0.0010707847541198134,
-0.04534478858113289,
-0.22100786864757538,
-0.03553483635187149,
-0.04654664918780327,
-0.005958981346338987,
0.1017967239022255,
0.04061843827366829,
0.02542874589562416,
0.018414201214909554,
0.028659755364060402,
0.0002667867229320109,
0.0019717072136700153,
0.09897666424512863,
0.13503946363925934,
0.03892664611339569,
0.13294562697410583,
-0.042539626359939575,
-0.03350995108485222,
0.032427407801151276,
-0.0019110238645225763,
0.23404128849506378,
0.015392155386507511,
0.18334726989269257,
0.05718148127198219,
0.16438192129135132,
0.04176957905292511,
0.06651657819747925,
-0.004015067592263222,
-0.011223282665014267,
0.012323150411248207,
-0.05188003554940224,
-0.04169851168990135,
0.022519247606396675,
0.028025176376104355,
0.0037723726127296686,
-0.11630823463201523,
-0.0003072378458455205,
0.04304959625005722,
0.3526868224143982,
0.025978032499551773,
-0.33171546459198,
-0.09378878772258759,
-0.011283514089882374,
-0.0910230353474617,
-0.029222967103123665,
0.04383751004934311,
0.0895032063126564,
-0.07641852647066116,
0.06587664783000946,
-0.060955218970775604,
0.091152623295784,
-0.05870471149682999,
0.03072722628712654,
0.03418412804603577,
0.07360727339982986,
0.0059663765132427216,
0.036068882793188095,
-0.29716014862060547,
0.27982190251350403,
0.005333136301487684,
0.07670411467552185,
-0.05940832197666168,
0.011927984654903412,
0.021950209513306618,
0.02197166346013546,
0.08535656332969666,
-0.025319214910268784,
-0.12631048262119293,
-0.16534502804279327,
-0.09527324885129929,
0.01592967100441456,
0.12284957617521286,
0.029141515493392944,
0.11089733242988586,
-0.008173471316695213,
-0.01690317690372467,
0.049255210906267166,
-0.10150302946567535,
-0.05708180367946625,
-0.09934312850236893,
0.01406178530305624,
0.06854789704084396,
0.018820976838469505,
-0.0768076702952385,
-0.10806476324796677,
-0.08090932667255402,
0.162410169839859,
-0.04714451730251312,
-0.04991135373711586,
-0.12036392092704773,
0.008215019479393959,
0.10720567405223846,
-0.08021480590105057,
0.06283348053693771,
0.008111932314932346,
0.1046726331114769,
0.004348912741988897,
-0.06943878531455994,
0.11592033505439758,
-0.06974801421165466,
-0.1677841991186142,
-0.023674344643950462,
0.14457687735557556,
0.029553450644016266,
0.06189665570855141,
-0.009388641454279423,
0.035974159836769104,
-0.021678494289517403,
-0.0783279612660408,
0.037246935069561005,
0.03167589008808136,
0.04976498708128929,
-0.01988154835999012,
-0.014282782562077045,
-0.005397801287472248,
-0.09010963886976242,
-0.018452530726790428,
0.20705179870128632,
0.24558612704277039,
-0.09405846148729324,
0.09560474753379822,
0.0652366355061531,
-0.03955031931400299,
-0.17063799500465393,
-0.010334373451769352,
0.07193007320165634,
-0.0008060202235355973,
-0.03189655393362045,
-0.1942521035671234,
0.022102439776062965,
0.06364119052886963,
-0.02105574496090412,
0.07550028711557388,
-0.3114761710166931,
-0.1390221267938614,
0.1446751356124878,
0.11725589632987976,
0.056923411786556244,
-0.14689570665359497,
-0.054494865238666534,
-0.010833517648279667,
-0.08974997699260712,
0.0989256501197815,
-0.07543151080608368,
0.13286997377872467,
-0.021724233403801918,
0.09038924425840378,
0.011339389719069004,
-0.058524005115032196,
0.10926216095685959,
0.007557313423603773,
0.055343203246593475,
-0.043802086263895035,
0.021149422973394394,
0.04911993071436882,
-0.06579861044883728,
0.05258665606379509,
-0.07818891853094101,
0.03157813102006912,
-0.08964882045984268,
-0.03030264936387539,
-0.0847122073173523,
0.012774293310940266,
-0.013000356033444405,
-0.027955427765846252,
-0.03766542673110962,
0.00002176527959818486,
0.06431134790182114,
-0.012119059450924397,
0.15733546018600464,
-0.0260785985738039,
0.12100716680288315,
0.16497837007045746,
0.10395064949989319,
-0.10336817055940628,
-0.06766633689403534,
0.0061162980273365974,
-0.03464920073747635,
0.05595415458083153,
-0.1235022321343422,
0.033397089689970016,
0.13663741946220398,
0.028549352660775185,
0.11579988151788712,
0.06616443395614624,
-0.07207916676998138,
0.029293304309248924,
0.039788905531167984,
-0.14090438187122345,
-0.12562867999076843,
0.012816229835152626,
0.04141469672322273,
-0.07107867300510406,
0.07339105010032654,
0.1124926209449768,
-0.05847104266285896,
-0.018925754353404045,
-0.00112870370503515,
0.014625095762312412,
-0.039718858897686005,
0.19962412118911743,
0.041934382170438766,
0.06547073274850845,
-0.12479592114686966,
0.07942891120910645,
0.04092506691813469,
-0.13840879499912262,
0.0661308765411377,
0.11445356160402298,
-0.09633129835128784,
-0.029326900839805603,
0.033952947705984116,
0.10644952952861786,
-0.02653329446911812,
-0.07630369812250137,
-0.14189113676548004,
-0.14891788363456726,
0.11525043845176697,
0.20729199051856995,
0.05498075112700462,
0.012011291459202766,
-0.059444062411785126,
0.016400326043367386,
-0.12076088041067123,
0.07408199459314346,
0.04095683619379997,
0.061748065054416656,
-0.1224619522690773,
0.15267427265644073,
0.017569558694958687,
0.0495123565196991,
-0.014242256991565228,
-0.00840351264923811,
-0.11602967232465744,
0.04131319373846054,
-0.13736149668693542,
0.008023291826248169,
-0.0677078440785408,
0.0026212958618998528,
0.002823583083227277,
-0.04474857822060585,
-0.062432579696178436,
0.03881612420082092,
-0.12039648741483688,
-0.022012576460838318,
-0.0037314952351152897,
0.030260562896728516,
-0.12567412853240967,
-0.009457755833864212,
0.00788924004882574,
-0.09639561176300049,
0.09779256582260132,
0.08735392242670059,
-0.029488854110240936,
0.050375137478113174,
-0.04493003338575363,
-0.03229017183184624,
0.08053267002105713,
-0.0036153185646981,
0.05520479753613472,
-0.13462699949741364,
-0.020220661535859108,
0.014978703111410141,
0.030556591227650642,
0.022392340004444122,
0.11169633269309998,
-0.11249758303165436,
0.0021038269624114037,
-0.027045100927352905,
-0.052081335335969925,
-0.06955024600028992,
0.05650172382593155,
0.10544645041227341,
0.02928037755191326,
0.1641530841588974,
-0.09564857929944992,
0.03018254227936268,
-0.1613844931125641,
0.004465489648282528,
-0.02039398066699505,
-0.12502706050872803,
-0.04314211383461952,
-0.031045934185385704,
0.08105622231960297,
-0.06572037935256958,
0.1235828548669815,
-0.0278830174356699,
0.03198962286114693,
0.03952918201684952,
-0.08413537591695786,
-0.04531535133719444,
0.04388261213898659,
0.19927740097045898,
0.03846997395157814,
-0.040729109197854996,
0.07358944416046143,
0.01799294538795948,
0.07912730425596237,
0.1254156529903412,
0.1729670912027359,
0.15764683485031128,
0.05948682501912117,
0.11855759471654892,
0.054055728018283844,
-0.058319661766290665,
-0.16686752438545227,
0.0881638154387474,
-0.060143206268548965,
0.13453038036823273,
-0.012139489874243736,
0.23340117931365967,
0.12710095942020416,
-0.15269257128238678,
0.06522104889154434,
-0.018677277490496635,
-0.08919593691825867,
-0.11838310211896896,
-0.06005265191197395,
-0.0848006010055542,
-0.17067135870456696,
0.00715241301804781,
-0.10394914448261261,
0.06060192734003067,
0.041154321283102036,
0.04075639322400093,
0.017530405893921852,
0.1324085146188736,
0.026165440678596497,
0.001783053856343031,
0.0940445140004158,
-0.0041489978320896626,
-0.05196060985326767,
-0.06449928879737854,
-0.08097290992736816,
0.038871776312589645,
-0.011000876314938068,
0.05678505450487137,
-0.004520115442574024,
-0.06645264476537704,
0.0537908710539341,
-0.03565392270684242,
-0.09548493474721909,
0.024854062125086784,
0.021493593230843544,
0.07398471236228943,
0.05290691554546356,
0.034636110067367554,
-0.04052237048745155,
-0.0015384186990559101,
0.19150687754154205,
-0.09528131783008575,
-0.10003771632909775,
-0.10887235403060913,
0.2678368389606476,
0.03864298388361931,
-0.01759023778140545,
0.02191750518977642,
-0.05800488591194153,
-0.035650767385959625,
0.20588883757591248,
0.17191392183303833,
-0.010030152276158333,
0.00425766734406352,
-0.015911802649497986,
-0.005888346582651138,
-0.04265584051609039,
0.08364604413509369,
0.15554700791835785,
0.06193624809384346,
-0.0627983957529068,
-0.061790697276592255,
-0.053254496306180954,
-0.0347820483148098,
-0.06911905854940414,
0.07709120213985443,
0.015039607882499695,
-0.026582226157188416,
-0.037423357367515564,
0.06274166703224182,
-0.09350661188364029,
-0.08804266899824142,
0.016894111409783363,
-0.18874864280223846,
-0.15431320667266846,
0.007396459113806486,
0.06918547302484512,
0.01402134820818901,
0.035257045179605484,
0.0043551744893193245,
-0.013372376561164856,
0.08856081962585449,
0.0006172544090077281,
-0.08190859109163284,
-0.06051534786820412,
0.09333102405071259,
-0.14811503887176514,
0.1580059677362442,
-0.03900257870554924,
0.047211840748786926,
0.12282008677721024,
0.08968576788902283,
-0.08043727278709412,
0.08823610097169876,
0.046160876750946045,
-0.10881642252206802,
0.02639659307897091,
0.15586601197719574,
-0.03502810373902321,
0.08771888166666031,
0.03005577251315117,
-0.11440123617649078,
0.010320071130990982,
-0.1030343547463417,
-0.03973110020160675,
-0.03528616577386856,
-0.04633529111742973,
-0.04669409245252609,
0.10624184459447861,
0.16674450039863586,
-0.04637931287288666,
0.0047337827272713184,
-0.053770288825035095,
0.008507072925567627,
0.046721942722797394,
0.0021193227730691433,
-0.05763792619109154,
-0.27763766050338745,
0.011684400960803032,
0.028602933511137962,
0.00731681240722537,
-0.25322768092155457,
-0.08764765411615372,
0.010519672185182571,
-0.04430784285068512,
-0.08845945447683334,
0.08866508305072784,
0.07064023613929749,
0.04340009763836861,
-0.05831128731369972,
-0.04831549897789955,
-0.039691243320703506,
0.1873401701450348,
-0.17472495138645172,
-0.05476140230894089
] |
null | null | transformers |
# Deadpool DialoGPT Model | {"tags": ["conversational"]} | text-generation | 2early4coffee/DialoGPT-medium-deadpool | [
"transformers",
"pytorch",
"gpt2",
"text-generation",
"conversational",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us
|
# Deadpool DialoGPT Model | [
"# Deadpool DialoGPT Model"
] | [
"TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n",
"# Deadpool DialoGPT Model"
] | [
51,
8
] | [
"passage: TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n# Deadpool DialoGPT Model"
] | [
-0.010644321329891682,
0.05248502641916275,
-0.006576533894985914,
0.001925784396007657,
0.1371527761220932,
0.018337253481149673,
0.14722712337970734,
0.11021005362272263,
0.009236818179488182,
-0.03313833847641945,
0.10595135390758514,
0.1764139086008072,
0.003561430610716343,
0.08588209748268127,
-0.09085997939109802,
-0.25500422716140747,
0.04030496999621391,
0.011521263048052788,
-0.007364172954112291,
0.11540398746728897,
0.0655437484383583,
-0.023862535133957863,
0.08915064483880997,
-0.015032683499157429,
-0.08371885865926743,
0.023065956309437752,
0.021963849663734436,
-0.10714717209339142,
0.12392575293779373,
0.062223222106695175,
0.028886770829558372,
0.014070075005292892,
-0.061142511665821075,
-0.10406896471977234,
0.05544842407107353,
-0.001988675445318222,
-0.03571919724345207,
0.06795243173837662,
0.012707280926406384,
-0.07081615179777145,
0.073176309466362,
0.12986665964126587,
0.02714850753545761,
0.038492172956466675,
-0.13144873082637787,
-0.06787282973527908,
0.0104672247543931,
0.05750930681824684,
0.06646277010440826,
0.1015443280339241,
-0.054856885224580765,
0.1632453352212906,
-0.06530894339084625,
0.10492175072431564,
0.025599287822842598,
-0.3263610601425171,
-0.02029571682214737,
0.1782114952802658,
0.04754899814724922,
0.03227932006120682,
-0.020119788125157356,
0.09372139722108841,
-0.013323641382157803,
0.04979878291487694,
-0.025143858045339584,
-0.0489087775349617,
-0.12581633031368256,
-0.002319369465112686,
-0.0689760074019432,
0.03964489325881004,
0.13550253212451935,
-0.015506096184253693,
0.08628447353839874,
-0.12015867978334427,
-0.09087441116571426,
-0.01625068672001362,
-0.0531359426677227,
-0.04813007637858391,
-0.07154487073421478,
0.08253353089094162,
-0.06045606732368469,
-0.11975342780351639,
-0.10396303236484528,
-0.03426019847393036,
-0.1673816740512848,
0.11406651139259338,
0.056451380252838135,
0.0406641848385334,
-0.2395535111427307,
0.1069471687078476,
-0.040468499064445496,
-0.08036917448043823,
0.03609200194478035,
-0.10370345413684845,
0.04055921733379364,
0.009655757807195187,
0.004958639852702618,
-0.028039967641234398,
0.10763074457645416,
0.12347809970378876,
0.028054019436240196,
0.035782601684331894,
-0.07670217752456665,
0.08798689395189285,
0.048639290034770966,
-0.006781953852623701,
-0.020314745604991913,
-0.0944269672036171,
0.08522365242242813,
-0.07800041884183884,
0.041791800409555435,
-0.058248475193977356,
-0.18873001635074615,
0.020349785685539246,
0.078983373939991,
0.08011452853679657,
0.07762270420789719,
0.13769665360450745,
0.006107378751039505,
-0.06723330169916153,
0.06624435633420944,
-0.0015950826928019524,
-0.027248244732618332,
0.029639480635523796,
-0.022079508751630783,
0.13459061086177826,
0.03219132125377655,
0.057744987308979034,
-0.1263079047203064,
0.01809546910226345,
-0.03317716717720032,
-0.014990834519267082,
-0.010542151518166065,
-0.05574222654104233,
0.010569963604211807,
0.038496069610118866,
-0.015704238787293434,
-0.13718311488628387,
-0.11342025548219681,
0.0037183472886681557,
-0.00017530625336803496,
-0.05397539958357811,
-0.12312808632850647,
-0.11081801354885101,
-0.00834723748266697,
0.029281942173838615,
-0.06795737147331238,
-0.010806361213326454,
-0.02745826169848442,
0.056313272565603256,
-0.02821943163871765,
0.07479514181613922,
-0.10996704548597336,
0.06907111406326294,
-0.06961166858673096,
-0.04497883841395378,
-0.11705941706895828,
0.11402884125709534,
-0.008808732032775879,
0.06836649030447006,
-0.03479135408997536,
-0.0016386854695156217,
-0.12021560221910477,
0.0470019169151783,
-0.02330353856086731,
0.2655344605445862,
-0.10153665393590927,
-0.08472659438848495,
0.26181429624557495,
-0.05959945172071457,
-0.16196490824222565,
0.12190864980220795,
-0.013406028971076012,
0.06806270033121109,
0.12446369230747223,
0.15165174007415771,
-0.1351279765367508,
-0.02275022305548191,
0.0754128247499466,
0.06428464502096176,
-0.1256803721189499,
0.0019218855304643512,
0.013530571013689041,
-0.028308460488915443,
-0.009066429920494556,
0.030131088569760323,
0.08609623461961746,
0.07451171427965164,
-0.056074950844049454,
-0.00672399764880538,
0.004430039320141077,
-0.0036213742569088936,
0.0708075687289238,
-0.035668108612298965,
0.12950022518634796,
-0.026487139984965324,
-0.08177507668733597,
0.004482313059270382,
-0.0037698273081332445,
-0.019182952120900154,
0.032316409051418304,
-0.08164741843938828,
0.08852339535951614,
-0.0030408615712076426,
0.06965095549821854,
-0.12507092952728271,
-0.16728709638118744,
-0.05888796225190163,
0.20945481956005096,
0.09126590192317963,
0.04938364028930664,
0.09238186478614807,
-0.01382027380168438,
-0.030665060505270958,
0.054200947284698486,
0.17167600989341736,
-0.007118435576558113,
-0.07116265594959259,
-0.13112309575080872,
0.0759904608130455,
-0.03764543682336807,
0.09395109117031097,
-0.055759381502866745,
0.026435207575559616,
0.016695579513907433,
0.12453519552946091,
-0.011239003390073776,
0.008540024049580097,
0.0396973080933094,
-0.07445508986711502,
-0.056569501757621765,
-0.02494966983795166,
0.08455437421798706,
-0.0255544725805521,
-0.1319393813610077,
0.23651821911334991,
-0.16028550267219543,
0.22997742891311646,
0.20206500589847565,
-0.235798642039299,
-0.025750204920768738,
-0.07292768359184265,
-0.02908535674214363,
0.009682289324700832,
0.021108264103531837,
0.008386963047087193,
0.210995614528656,
0.025451598688960075,
0.17359402775764465,
-0.034726377576589584,
-0.023423973470926285,
-0.03967081382870674,
-0.03442325443029404,
0.011341524310410023,
0.09582590311765671,
0.11925016343593597,
-0.20193935930728912,
0.15039081871509552,
0.05966100096702576,
0.05657631531357765,
0.16238906979560852,
0.061329249292612076,
0.043509479612112045,
0.05184903368353844,
0.028703194111585617,
-0.0399324856698513,
-0.08326677978038788,
-0.2299472838640213,
0.016044732183218002,
0.0672105923295021,
0.06691719591617584,
0.12872765958309174,
-0.08863689005374908,
-0.03702593594789505,
-0.011349975131452084,
-0.017112871631979942,
0.011241994798183441,
0.13200196623802185,
0.047601163387298584,
0.11727957427501678,
0.004402040969580412,
-0.04149975627660751,
0.08229856938123703,
0.002877203281968832,
-0.07193395495414734,
0.16316281259059906,
-0.12273158878087997,
-0.3066976070404053,
-0.0883154422044754,
-0.13104893267154694,
-0.03996355086565018,
0.005864510778337717,
0.09172914922237396,
-0.12032070755958557,
-0.005535202566534281,
0.004218644462525845,
0.13980934023857117,
-0.1129596009850502,
-0.021920273080468178,
-0.02538473717868328,
0.030717818066477776,
-0.1473979502916336,
-0.09571012854576111,
-0.05503450334072113,
-0.09983745217323303,
-0.06314802169799805,
0.08736910670995712,
-0.11370757222175598,
-0.028900163248181343,
0.21346841752529144,
0.051980383694171906,
0.0521569550037384,
-0.040930695831775665,
0.2363484501838684,
-0.09623609483242035,
0.04194943234324455,
0.20549586415290833,
-0.03812389820814133,
0.06708364933729172,
0.08885205537080765,
0.0225596372038126,
-0.061655476689338684,
0.028726784512400627,
0.010176466777920723,
-0.0768129900097847,
-0.2057751566171646,
-0.10002715140581131,
-0.09705076366662979,
0.06919894367456436,
-0.044903017580509186,
0.06208528205752373,
0.12667594850063324,
0.05737510696053505,
-0.03868914395570755,
-0.019536517560482025,
0.07231516391038895,
0.0809672623872757,
0.24494200944900513,
-0.07339697331190109,
0.14713852107524872,
0.005923337768763304,
-0.13451527059078217,
0.08212366700172424,
0.06037910282611847,
0.023941323161125183,
0.07166994363069534,
0.03476659208536148,
0.024259192869067192,
0.06934499740600586,
0.1333550363779068,
0.02816295437514782,
-0.009015186689794064,
-0.04625248536467552,
-0.04005640745162964,
-0.05185580253601074,
-0.02607164904475212,
0.042678140103816986,
0.06858528405427933,
-0.1583864986896515,
0.0011309197871014476,
0.03150985762476921,
0.04674898833036423,
0.05315852537751198,
0.0765555202960968,
-0.15673168003559113,
-0.03422735258936882,
0.07061140239238739,
-0.034977007657289505,
-0.11397555470466614,
0.04580967500805855,
0.027444809675216675,
-0.1440579742193222,
0.026486041024327278,
-0.03969179466366768,
0.11533413827419281,
-0.11009465157985687,
0.08144428580999374,
-0.11185317486524582,
-0.07077682763338089,
0.009124781005084515,
0.09571333974599838,
-0.23331774771213531,
0.11317232251167297,
-0.016977593302726746,
-0.03352620080113411,
-0.08679492026567459,
-0.005498362705111504,
0.023885315284132957,
0.08657590299844742,
0.0954166054725647,
-0.012966133654117584,
0.0066054039634764194,
0.014172552153468132,
-0.11016112565994263,
0.03297967091202736,
0.07682067900896072,
-0.04511752724647522,
-0.02202926017343998,
-0.013071606867015362,
0.003580351360142231,
-0.004136274568736553,
-0.05139797553420067,
-0.01546083576977253,
-0.1608959585428238,
0.07043895870447159,
0.0924539715051651,
0.07792939245700836,
0.043901752680540085,
-0.03847683221101761,
-0.05518997460603714,
0.3167053461074829,
-0.11739154160022736,
-0.13108137249946594,
-0.09707196056842804,
-0.03252654895186424,
0.04581607133150101,
-0.05852484330534935,
0.012147756293416023,
-0.07861896604299545,
0.04071671515703201,
-0.08648480474948883,
-0.19798704981803894,
0.15587829053401947,
-0.11410882323980331,
-0.06188752129673958,
-0.03357045724987984,
0.2169722467660904,
-0.03339662030339241,
0.02257690764963627,
0.0359874926507473,
-0.019058503210544586,
-0.11378809809684753,
-0.07620853930711746,
0.022008568048477173,
0.07720824331045151,
-0.011795141734182835,
0.008974661119282246,
-0.054045069962739944,
-0.047436319291591644,
-0.044890396296978,
0.014981220476329327,
0.3533577024936676,
0.16291609406471252,
-0.014126578345894814,
0.15445801615715027,
0.11425869911909103,
-0.0603153221309185,
-0.2415311187505722,
-0.0927620679140091,
-0.09664789587259293,
-0.031468939036130905,
-0.02805282361805439,
-0.2009834498167038,
0.08540543168783188,
-0.03714076429605484,
-0.02667548879981041,
0.16907764971256256,
-0.2820271849632263,
-0.09794208407402039,
0.16953547298908234,
-0.04195446893572807,
0.4207061231136322,
-0.09328575432300568,
-0.09879376739263535,
-0.03642003983259201,
-0.18442901968955994,
0.18171052634716034,
-0.08119866251945496,
0.11808443814516068,
0.00693516805768013,
0.19580736756324768,
0.04411417990922928,
-0.007866867817938328,
0.020935913547873497,
0.016256950795650482,
-0.03388765826821327,
-0.09271074831485748,
-0.10307303816080093,
-0.049415890127420425,
-0.0027807634323835373,
0.07081855088472366,
-0.057636458426713943,
0.015711119398474693,
-0.11436793953180313,
-0.04797263443470001,
-0.07851871103048325,
0.03953268378973007,
0.034146588295698166,
-0.06878361105918884,
0.008558881469070911,
-0.028230469673871994,
-0.01868157833814621,
0.006330261938273907,
0.19722780585289001,
-0.07560455799102783,
0.17593616247177124,
0.12953346967697144,
0.09647215157747269,
-0.07883138209581375,
-0.051505234092473984,
-0.04110448434948921,
-0.06956561654806137,
0.04721798375248909,
-0.03615782409906387,
0.006384509149938822,
0.1000729352235794,
-0.04365193471312523,
0.05422161519527435,
0.08861605077981949,
-0.048144955188035965,
0.021229341626167297,
0.09277195483446121,
-0.2504042088985443,
-0.1381058245897293,
-0.06158291548490524,
0.03025992028415203,
0.09880321472883224,
0.08058870583772659,
0.2283892184495926,
-0.00030350248562172055,
-0.050115473568439484,
0.02665768750011921,
0.053193993866443634,
-0.018748465925455093,
0.05717821046710014,
-0.005345402285456657,
0.0188149381428957,
-0.16600444912910461,
0.06464073061943054,
-0.021079063415527344,
-0.033424802124500275,
0.05709276348352432,
0.19208168983459473,
-0.12047529965639114,
-0.09684013575315475,
-0.0691051036119461,
0.13518376648426056,
-0.04762743413448334,
-0.000387398962629959,
-0.05778297036886215,
-0.1354799121618271,
0.05091197416186333,
0.04166888818144798,
0.044607050716876984,
0.07202143967151642,
-0.07715483754873276,
-0.04101372882723808,
-0.013254965655505657,
0.007289689499884844,
0.016033506020903587,
-0.0360916443169117,
-0.02176233008503914,
0.08501940965652466,
-0.015326178632676601,
0.08189450949430466,
-0.09324995428323746,
-0.10923941433429718,
-0.1571422815322876,
0.027617355808615685,
-0.09951166808605194,
-0.1092713251709938,
-0.09683512151241302,
-0.052887704223394394,
-0.013990124687552452,
0.007400172296911478,
-0.03248469531536102,
-0.029534464702010155,
-0.1055305153131485,
0.019671428948640823,
-0.06883591413497925,
-0.03356359153985977,
-0.12879382073879242,
0.054798249155282974,
0.034576188772916794,
-0.019877934828400612,
0.17010349035263062,
0.1305038332939148,
-0.10075129568576813,
0.0746014192700386,
-0.11748610436916351,
-0.08108989894390106,
0.0934576764702797,
-0.014696251600980759,
0.09596375375986099,
0.06743965297937393,
-0.019907750189304352,
0.0234945397824049,
0.08390137553215027,
0.057970836758613586,
0.06284245103597641,
-0.10098235309123993,
-0.025100812315940857,
-0.017314855009317398,
-0.08562473207712173,
-0.0033334100153297186,
-0.018025357276201248,
0.003149255644530058,
0.03140082582831383,
0.1026051938533783,
-0.05082051828503609,
0.1052016019821167,
-0.08277170360088348,
0.044845033437013626,
0.03965398296713829,
-0.14489613473415375,
-0.008025970309972763,
-0.04827776178717613,
0.056034911423921585,
-0.021370036527514458,
0.15418286621570587,
0.030996114015579224,
-0.04874763265252113,
0.027463793754577637,
0.038339629769325256,
0.01066394429653883,
-0.022383738309144974,
0.059980250895023346,
0.09922636300325394,
-0.051280755549669266,
-0.11378038674592972,
0.06683371216058731,
0.04838397726416588,
-0.03351269289851189,
0.17004743218421936,
-0.027431100606918335,
-0.008223028853535652,
0.1022113561630249,
0.05486798658967018,
0.030512627214193344,
-0.17042535543441772,
-0.13100983202457428,
-0.04170173779129982,
0.08650714159011841,
-0.07166547328233719,
0.09829804301261902,
0.09542767703533173,
0.02900606021285057,
0.008694239892065525,
-0.018353354185819626,
-0.04106336832046509,
-0.21343858540058136,
-0.14389190077781677,
-0.06508904695510864,
-0.13160312175750732,
0.021156124770641327,
-0.1163841038942337,
0.01897289976477623,
0.009970326907932758,
0.11341818422079086,
-0.07215858995914459,
0.08039993792772293,
0.06349793821573257,
-0.1007009968161583,
0.07384788244962692,
-0.03197746351361275,
0.060812775045633316,
-0.01221620012074709,
-0.010637344792485237,
-0.07445079833269119,
0.05919644981622696,
0.02980021759867668,
0.0572795607149601,
-0.06481238454580307,
0.027020322158932686,
-0.12318529188632965,
-0.09769322723150253,
-0.06811171025037766,
0.06977080553770065,
-0.015769198536872864,
0.16404421627521515,
0.009296773932874203,
-0.02860199101269245,
0.010737060569226742,
0.21616734564304352,
-0.061493873596191406,
-0.07314742356538773,
-0.06473275274038315,
0.22659194469451904,
-0.02954263612627983,
0.10645801573991776,
-0.05764828622341156,
0.004879324696958065,
-0.08952393382787704,
0.3478265106678009,
0.3185778856277466,
-0.12795166671276093,
-0.0014408769784495234,
0.03036249428987503,
0.03605549782514572,
0.0765196830034256,
0.0965833067893982,
0.09134849905967712,
0.2919784486293793,
-0.07934048026800156,
0.004236017819494009,
0.0015713622560724616,
-0.053221769630908966,
-0.03615164756774902,
0.04146222770214081,
0.06049976125359535,
-0.019415171816945076,
-0.037085674703121185,
0.12272365391254425,
-0.3088245987892151,
0.10217441618442535,
-0.19436343014240265,
-0.16726498305797577,
-0.11595916748046875,
-0.027653800323605537,
0.08583943545818329,
0.025076009333133698,
0.12494315207004547,
0.019117696210741997,
-0.07410194724798203,
0.09667088091373444,
0.008995250798761845,
-0.20070496201515198,
-0.019121546298265457,
0.0952482745051384,
-0.025784939527511597,
-0.032029617577791214,
-0.019287586212158203,
0.06363723427057266,
0.0767790898680687,
0.01863262802362442,
-0.0032155173830688,
0.030799061059951782,
-0.031709637492895126,
-0.001860718009993434,
0.007963430136442184,
0.05808654800057411,
0.016565285623073578,
-0.04248663783073425,
0.08140360563993454,
-0.14290116727352142,
0.022029869258403778,
-0.1089409738779068,
-0.04914943501353264,
-0.03282783180475235,
0.025500917807221413,
-0.041959743946790695,
0.055093664675951004,
0.11326032131910324,
-0.031242091208696365,
0.006705662701278925,
-0.01852996088564396,
-0.011629711836576462,
-0.03551144897937775,
-0.08940177410840988,
-0.07887909561395645,
-0.19384795427322388,
-0.11012504249811172,
0.08276630938053131,
0.013227051123976707,
-0.24241338670253754,
-0.005381961818784475,
-0.14831705391407013,
0.0636574998497963,
-0.12181182205677032,
0.07153359800577164,
0.13850441575050354,
0.016116280108690262,
-0.009388934820890427,
0.06916768103837967,
0.05624748021364212,
0.05075987055897713,
-0.1140146255493164,
-0.056394897401332855
] |
null | null | transformers |
# Deadpool DialoGPT Model | {"tags": ["conversational"]} | text-generation | 2early4coffee/DialoGPT-small-deadpool | [
"transformers",
"pytorch",
"gpt2",
"text-generation",
"conversational",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us
|
# Deadpool DialoGPT Model | [
"# Deadpool DialoGPT Model"
] | [
"TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n",
"# Deadpool DialoGPT Model"
] | [
51,
8
] | [
"passage: TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n# Deadpool DialoGPT Model"
] | [
-0.010644321329891682,
0.05248502641916275,
-0.006576533894985914,
0.001925784396007657,
0.1371527761220932,
0.018337253481149673,
0.14722712337970734,
0.11021005362272263,
0.009236818179488182,
-0.03313833847641945,
0.10595135390758514,
0.1764139086008072,
0.003561430610716343,
0.08588209748268127,
-0.09085997939109802,
-0.25500422716140747,
0.04030496999621391,
0.011521263048052788,
-0.007364172954112291,
0.11540398746728897,
0.0655437484383583,
-0.023862535133957863,
0.08915064483880997,
-0.015032683499157429,
-0.08371885865926743,
0.023065956309437752,
0.021963849663734436,
-0.10714717209339142,
0.12392575293779373,
0.062223222106695175,
0.028886770829558372,
0.014070075005292892,
-0.061142511665821075,
-0.10406896471977234,
0.05544842407107353,
-0.001988675445318222,
-0.03571919724345207,
0.06795243173837662,
0.012707280926406384,
-0.07081615179777145,
0.073176309466362,
0.12986665964126587,
0.02714850753545761,
0.038492172956466675,
-0.13144873082637787,
-0.06787282973527908,
0.0104672247543931,
0.05750930681824684,
0.06646277010440826,
0.1015443280339241,
-0.054856885224580765,
0.1632453352212906,
-0.06530894339084625,
0.10492175072431564,
0.025599287822842598,
-0.3263610601425171,
-0.02029571682214737,
0.1782114952802658,
0.04754899814724922,
0.03227932006120682,
-0.020119788125157356,
0.09372139722108841,
-0.013323641382157803,
0.04979878291487694,
-0.025143858045339584,
-0.0489087775349617,
-0.12581633031368256,
-0.002319369465112686,
-0.0689760074019432,
0.03964489325881004,
0.13550253212451935,
-0.015506096184253693,
0.08628447353839874,
-0.12015867978334427,
-0.09087441116571426,
-0.01625068672001362,
-0.0531359426677227,
-0.04813007637858391,
-0.07154487073421478,
0.08253353089094162,
-0.06045606732368469,
-0.11975342780351639,
-0.10396303236484528,
-0.03426019847393036,
-0.1673816740512848,
0.11406651139259338,
0.056451380252838135,
0.0406641848385334,
-0.2395535111427307,
0.1069471687078476,
-0.040468499064445496,
-0.08036917448043823,
0.03609200194478035,
-0.10370345413684845,
0.04055921733379364,
0.009655757807195187,
0.004958639852702618,
-0.028039967641234398,
0.10763074457645416,
0.12347809970378876,
0.028054019436240196,
0.035782601684331894,
-0.07670217752456665,
0.08798689395189285,
0.048639290034770966,
-0.006781953852623701,
-0.020314745604991913,
-0.0944269672036171,
0.08522365242242813,
-0.07800041884183884,
0.041791800409555435,
-0.058248475193977356,
-0.18873001635074615,
0.020349785685539246,
0.078983373939991,
0.08011452853679657,
0.07762270420789719,
0.13769665360450745,
0.006107378751039505,
-0.06723330169916153,
0.06624435633420944,
-0.0015950826928019524,
-0.027248244732618332,
0.029639480635523796,
-0.022079508751630783,
0.13459061086177826,
0.03219132125377655,
0.057744987308979034,
-0.1263079047203064,
0.01809546910226345,
-0.03317716717720032,
-0.014990834519267082,
-0.010542151518166065,
-0.05574222654104233,
0.010569963604211807,
0.038496069610118866,
-0.015704238787293434,
-0.13718311488628387,
-0.11342025548219681,
0.0037183472886681557,
-0.00017530625336803496,
-0.05397539958357811,
-0.12312808632850647,
-0.11081801354885101,
-0.00834723748266697,
0.029281942173838615,
-0.06795737147331238,
-0.010806361213326454,
-0.02745826169848442,
0.056313272565603256,
-0.02821943163871765,
0.07479514181613922,
-0.10996704548597336,
0.06907111406326294,
-0.06961166858673096,
-0.04497883841395378,
-0.11705941706895828,
0.11402884125709534,
-0.008808732032775879,
0.06836649030447006,
-0.03479135408997536,
-0.0016386854695156217,
-0.12021560221910477,
0.0470019169151783,
-0.02330353856086731,
0.2655344605445862,
-0.10153665393590927,
-0.08472659438848495,
0.26181429624557495,
-0.05959945172071457,
-0.16196490824222565,
0.12190864980220795,
-0.013406028971076012,
0.06806270033121109,
0.12446369230747223,
0.15165174007415771,
-0.1351279765367508,
-0.02275022305548191,
0.0754128247499466,
0.06428464502096176,
-0.1256803721189499,
0.0019218855304643512,
0.013530571013689041,
-0.028308460488915443,
-0.009066429920494556,
0.030131088569760323,
0.08609623461961746,
0.07451171427965164,
-0.056074950844049454,
-0.00672399764880538,
0.004430039320141077,
-0.0036213742569088936,
0.0708075687289238,
-0.035668108612298965,
0.12950022518634796,
-0.026487139984965324,
-0.08177507668733597,
0.004482313059270382,
-0.0037698273081332445,
-0.019182952120900154,
0.032316409051418304,
-0.08164741843938828,
0.08852339535951614,
-0.0030408615712076426,
0.06965095549821854,
-0.12507092952728271,
-0.16728709638118744,
-0.05888796225190163,
0.20945481956005096,
0.09126590192317963,
0.04938364028930664,
0.09238186478614807,
-0.01382027380168438,
-0.030665060505270958,
0.054200947284698486,
0.17167600989341736,
-0.007118435576558113,
-0.07116265594959259,
-0.13112309575080872,
0.0759904608130455,
-0.03764543682336807,
0.09395109117031097,
-0.055759381502866745,
0.026435207575559616,
0.016695579513907433,
0.12453519552946091,
-0.011239003390073776,
0.008540024049580097,
0.0396973080933094,
-0.07445508986711502,
-0.056569501757621765,
-0.02494966983795166,
0.08455437421798706,
-0.0255544725805521,
-0.1319393813610077,
0.23651821911334991,
-0.16028550267219543,
0.22997742891311646,
0.20206500589847565,
-0.235798642039299,
-0.025750204920768738,
-0.07292768359184265,
-0.02908535674214363,
0.009682289324700832,
0.021108264103531837,
0.008386963047087193,
0.210995614528656,
0.025451598688960075,
0.17359402775764465,
-0.034726377576589584,
-0.023423973470926285,
-0.03967081382870674,
-0.03442325443029404,
0.011341524310410023,
0.09582590311765671,
0.11925016343593597,
-0.20193935930728912,
0.15039081871509552,
0.05966100096702576,
0.05657631531357765,
0.16238906979560852,
0.061329249292612076,
0.043509479612112045,
0.05184903368353844,
0.028703194111585617,
-0.0399324856698513,
-0.08326677978038788,
-0.2299472838640213,
0.016044732183218002,
0.0672105923295021,
0.06691719591617584,
0.12872765958309174,
-0.08863689005374908,
-0.03702593594789505,
-0.011349975131452084,
-0.017112871631979942,
0.011241994798183441,
0.13200196623802185,
0.047601163387298584,
0.11727957427501678,
0.004402040969580412,
-0.04149975627660751,
0.08229856938123703,
0.002877203281968832,
-0.07193395495414734,
0.16316281259059906,
-0.12273158878087997,
-0.3066976070404053,
-0.0883154422044754,
-0.13104893267154694,
-0.03996355086565018,
0.005864510778337717,
0.09172914922237396,
-0.12032070755958557,
-0.005535202566534281,
0.004218644462525845,
0.13980934023857117,
-0.1129596009850502,
-0.021920273080468178,
-0.02538473717868328,
0.030717818066477776,
-0.1473979502916336,
-0.09571012854576111,
-0.05503450334072113,
-0.09983745217323303,
-0.06314802169799805,
0.08736910670995712,
-0.11370757222175598,
-0.028900163248181343,
0.21346841752529144,
0.051980383694171906,
0.0521569550037384,
-0.040930695831775665,
0.2363484501838684,
-0.09623609483242035,
0.04194943234324455,
0.20549586415290833,
-0.03812389820814133,
0.06708364933729172,
0.08885205537080765,
0.0225596372038126,
-0.061655476689338684,
0.028726784512400627,
0.010176466777920723,
-0.0768129900097847,
-0.2057751566171646,
-0.10002715140581131,
-0.09705076366662979,
0.06919894367456436,
-0.044903017580509186,
0.06208528205752373,
0.12667594850063324,
0.05737510696053505,
-0.03868914395570755,
-0.019536517560482025,
0.07231516391038895,
0.0809672623872757,
0.24494200944900513,
-0.07339697331190109,
0.14713852107524872,
0.005923337768763304,
-0.13451527059078217,
0.08212366700172424,
0.06037910282611847,
0.023941323161125183,
0.07166994363069534,
0.03476659208536148,
0.024259192869067192,
0.06934499740600586,
0.1333550363779068,
0.02816295437514782,
-0.009015186689794064,
-0.04625248536467552,
-0.04005640745162964,
-0.05185580253601074,
-0.02607164904475212,
0.042678140103816986,
0.06858528405427933,
-0.1583864986896515,
0.0011309197871014476,
0.03150985762476921,
0.04674898833036423,
0.05315852537751198,
0.0765555202960968,
-0.15673168003559113,
-0.03422735258936882,
0.07061140239238739,
-0.034977007657289505,
-0.11397555470466614,
0.04580967500805855,
0.027444809675216675,
-0.1440579742193222,
0.026486041024327278,
-0.03969179466366768,
0.11533413827419281,
-0.11009465157985687,
0.08144428580999374,
-0.11185317486524582,
-0.07077682763338089,
0.009124781005084515,
0.09571333974599838,
-0.23331774771213531,
0.11317232251167297,
-0.016977593302726746,
-0.03352620080113411,
-0.08679492026567459,
-0.005498362705111504,
0.023885315284132957,
0.08657590299844742,
0.0954166054725647,
-0.012966133654117584,
0.0066054039634764194,
0.014172552153468132,
-0.11016112565994263,
0.03297967091202736,
0.07682067900896072,
-0.04511752724647522,
-0.02202926017343998,
-0.013071606867015362,
0.003580351360142231,
-0.004136274568736553,
-0.05139797553420067,
-0.01546083576977253,
-0.1608959585428238,
0.07043895870447159,
0.0924539715051651,
0.07792939245700836,
0.043901752680540085,
-0.03847683221101761,
-0.05518997460603714,
0.3167053461074829,
-0.11739154160022736,
-0.13108137249946594,
-0.09707196056842804,
-0.03252654895186424,
0.04581607133150101,
-0.05852484330534935,
0.012147756293416023,
-0.07861896604299545,
0.04071671515703201,
-0.08648480474948883,
-0.19798704981803894,
0.15587829053401947,
-0.11410882323980331,
-0.06188752129673958,
-0.03357045724987984,
0.2169722467660904,
-0.03339662030339241,
0.02257690764963627,
0.0359874926507473,
-0.019058503210544586,
-0.11378809809684753,
-0.07620853930711746,
0.022008568048477173,
0.07720824331045151,
-0.011795141734182835,
0.008974661119282246,
-0.054045069962739944,
-0.047436319291591644,
-0.044890396296978,
0.014981220476329327,
0.3533577024936676,
0.16291609406471252,
-0.014126578345894814,
0.15445801615715027,
0.11425869911909103,
-0.0603153221309185,
-0.2415311187505722,
-0.0927620679140091,
-0.09664789587259293,
-0.031468939036130905,
-0.02805282361805439,
-0.2009834498167038,
0.08540543168783188,
-0.03714076429605484,
-0.02667548879981041,
0.16907764971256256,
-0.2820271849632263,
-0.09794208407402039,
0.16953547298908234,
-0.04195446893572807,
0.4207061231136322,
-0.09328575432300568,
-0.09879376739263535,
-0.03642003983259201,
-0.18442901968955994,
0.18171052634716034,
-0.08119866251945496,
0.11808443814516068,
0.00693516805768013,
0.19580736756324768,
0.04411417990922928,
-0.007866867817938328,
0.020935913547873497,
0.016256950795650482,
-0.03388765826821327,
-0.09271074831485748,
-0.10307303816080093,
-0.049415890127420425,
-0.0027807634323835373,
0.07081855088472366,
-0.057636458426713943,
0.015711119398474693,
-0.11436793953180313,
-0.04797263443470001,
-0.07851871103048325,
0.03953268378973007,
0.034146588295698166,
-0.06878361105918884,
0.008558881469070911,
-0.028230469673871994,
-0.01868157833814621,
0.006330261938273907,
0.19722780585289001,
-0.07560455799102783,
0.17593616247177124,
0.12953346967697144,
0.09647215157747269,
-0.07883138209581375,
-0.051505234092473984,
-0.04110448434948921,
-0.06956561654806137,
0.04721798375248909,
-0.03615782409906387,
0.006384509149938822,
0.1000729352235794,
-0.04365193471312523,
0.05422161519527435,
0.08861605077981949,
-0.048144955188035965,
0.021229341626167297,
0.09277195483446121,
-0.2504042088985443,
-0.1381058245897293,
-0.06158291548490524,
0.03025992028415203,
0.09880321472883224,
0.08058870583772659,
0.2283892184495926,
-0.00030350248562172055,
-0.050115473568439484,
0.02665768750011921,
0.053193993866443634,
-0.018748465925455093,
0.05717821046710014,
-0.005345402285456657,
0.0188149381428957,
-0.16600444912910461,
0.06464073061943054,
-0.021079063415527344,
-0.033424802124500275,
0.05709276348352432,
0.19208168983459473,
-0.12047529965639114,
-0.09684013575315475,
-0.0691051036119461,
0.13518376648426056,
-0.04762743413448334,
-0.000387398962629959,
-0.05778297036886215,
-0.1354799121618271,
0.05091197416186333,
0.04166888818144798,
0.044607050716876984,
0.07202143967151642,
-0.07715483754873276,
-0.04101372882723808,
-0.013254965655505657,
0.007289689499884844,
0.016033506020903587,
-0.0360916443169117,
-0.02176233008503914,
0.08501940965652466,
-0.015326178632676601,
0.08189450949430466,
-0.09324995428323746,
-0.10923941433429718,
-0.1571422815322876,
0.027617355808615685,
-0.09951166808605194,
-0.1092713251709938,
-0.09683512151241302,
-0.052887704223394394,
-0.013990124687552452,
0.007400172296911478,
-0.03248469531536102,
-0.029534464702010155,
-0.1055305153131485,
0.019671428948640823,
-0.06883591413497925,
-0.03356359153985977,
-0.12879382073879242,
0.054798249155282974,
0.034576188772916794,
-0.019877934828400612,
0.17010349035263062,
0.1305038332939148,
-0.10075129568576813,
0.0746014192700386,
-0.11748610436916351,
-0.08108989894390106,
0.0934576764702797,
-0.014696251600980759,
0.09596375375986099,
0.06743965297937393,
-0.019907750189304352,
0.0234945397824049,
0.08390137553215027,
0.057970836758613586,
0.06284245103597641,
-0.10098235309123993,
-0.025100812315940857,
-0.017314855009317398,
-0.08562473207712173,
-0.0033334100153297186,
-0.018025357276201248,
0.003149255644530058,
0.03140082582831383,
0.1026051938533783,
-0.05082051828503609,
0.1052016019821167,
-0.08277170360088348,
0.044845033437013626,
0.03965398296713829,
-0.14489613473415375,
-0.008025970309972763,
-0.04827776178717613,
0.056034911423921585,
-0.021370036527514458,
0.15418286621570587,
0.030996114015579224,
-0.04874763265252113,
0.027463793754577637,
0.038339629769325256,
0.01066394429653883,
-0.022383738309144974,
0.059980250895023346,
0.09922636300325394,
-0.051280755549669266,
-0.11378038674592972,
0.06683371216058731,
0.04838397726416588,
-0.03351269289851189,
0.17004743218421936,
-0.027431100606918335,
-0.008223028853535652,
0.1022113561630249,
0.05486798658967018,
0.030512627214193344,
-0.17042535543441772,
-0.13100983202457428,
-0.04170173779129982,
0.08650714159011841,
-0.07166547328233719,
0.09829804301261902,
0.09542767703533173,
0.02900606021285057,
0.008694239892065525,
-0.018353354185819626,
-0.04106336832046509,
-0.21343858540058136,
-0.14389190077781677,
-0.06508904695510864,
-0.13160312175750732,
0.021156124770641327,
-0.1163841038942337,
0.01897289976477623,
0.009970326907932758,
0.11341818422079086,
-0.07215858995914459,
0.08039993792772293,
0.06349793821573257,
-0.1007009968161583,
0.07384788244962692,
-0.03197746351361275,
0.060812775045633316,
-0.01221620012074709,
-0.010637344792485237,
-0.07445079833269119,
0.05919644981622696,
0.02980021759867668,
0.0572795607149601,
-0.06481238454580307,
0.027020322158932686,
-0.12318529188632965,
-0.09769322723150253,
-0.06811171025037766,
0.06977080553770065,
-0.015769198536872864,
0.16404421627521515,
0.009296773932874203,
-0.02860199101269245,
0.010737060569226742,
0.21616734564304352,
-0.061493873596191406,
-0.07314742356538773,
-0.06473275274038315,
0.22659194469451904,
-0.02954263612627983,
0.10645801573991776,
-0.05764828622341156,
0.004879324696958065,
-0.08952393382787704,
0.3478265106678009,
0.3185778856277466,
-0.12795166671276093,
-0.0014408769784495234,
0.03036249428987503,
0.03605549782514572,
0.0765196830034256,
0.0965833067893982,
0.09134849905967712,
0.2919784486293793,
-0.07934048026800156,
0.004236017819494009,
0.0015713622560724616,
-0.053221769630908966,
-0.03615164756774902,
0.04146222770214081,
0.06049976125359535,
-0.019415171816945076,
-0.037085674703121185,
0.12272365391254425,
-0.3088245987892151,
0.10217441618442535,
-0.19436343014240265,
-0.16726498305797577,
-0.11595916748046875,
-0.027653800323605537,
0.08583943545818329,
0.025076009333133698,
0.12494315207004547,
0.019117696210741997,
-0.07410194724798203,
0.09667088091373444,
0.008995250798761845,
-0.20070496201515198,
-0.019121546298265457,
0.0952482745051384,
-0.025784939527511597,
-0.032029617577791214,
-0.019287586212158203,
0.06363723427057266,
0.0767790898680687,
0.01863262802362442,
-0.0032155173830688,
0.030799061059951782,
-0.031709637492895126,
-0.001860718009993434,
0.007963430136442184,
0.05808654800057411,
0.016565285623073578,
-0.04248663783073425,
0.08140360563993454,
-0.14290116727352142,
0.022029869258403778,
-0.1089409738779068,
-0.04914943501353264,
-0.03282783180475235,
0.025500917807221413,
-0.041959743946790695,
0.055093664675951004,
0.11326032131910324,
-0.031242091208696365,
0.006705662701278925,
-0.01852996088564396,
-0.011629711836576462,
-0.03551144897937775,
-0.08940177410840988,
-0.07887909561395645,
-0.19384795427322388,
-0.11012504249811172,
0.08276630938053131,
0.013227051123976707,
-0.24241338670253754,
-0.005381961818784475,
-0.14831705391407013,
0.0636574998497963,
-0.12181182205677032,
0.07153359800577164,
0.13850441575050354,
0.016116280108690262,
-0.009388934820890427,
0.06916768103837967,
0.05624748021364212,
0.05075987055897713,
-0.1140146255493164,
-0.056394897401332855
] |
null | null | transformers |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# distilbert-base-uncased-finetuned-cola
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the glue dataset.
It achieves the following results on the evaluation set:
- Loss: 0.7816
- Matthews Correlation: 0.5156
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 5
### Training results
| Training Loss | Epoch | Step | Validation Loss | Matthews Correlation |
|:-------------:|:-----:|:----:|:---------------:|:--------------------:|
| 0.5291 | 1.0 | 535 | 0.5027 | 0.4092 |
| 0.3492 | 2.0 | 1070 | 0.5136 | 0.4939 |
| 0.2416 | 3.0 | 1605 | 0.6390 | 0.5056 |
| 0.1794 | 4.0 | 2140 | 0.7816 | 0.5156 |
| 0.1302 | 5.0 | 2675 | 0.8836 | 0.5156 |
### Framework versions
- Transformers 4.11.3
- Pytorch 1.9.0+cu111
- Datasets 1.14.0
- Tokenizers 0.10.3
| {"license": "apache-2.0", "tags": ["generated_from_trainer"], "datasets": ["glue"], "metrics": ["matthews_correlation"], "model-index": [{"name": "distilbert-base-uncased-finetuned-cola", "results": [{"task": {"type": "text-classification", "name": "Text Classification"}, "dataset": {"name": "glue", "type": "glue", "args": "cola"}, "metrics": [{"type": "matthews_correlation", "value": 0.5155709926752544, "name": "Matthews Correlation"}]}]}]} | text-classification | 2umm3r/distilbert-base-uncased-finetuned-cola | [
"transformers",
"pytorch",
"tensorboard",
"distilbert",
"text-classification",
"generated_from_trainer",
"dataset:glue",
"license:apache-2.0",
"model-index",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #tensorboard #distilbert #text-classification #generated_from_trainer #dataset-glue #license-apache-2.0 #model-index #autotrain_compatible #endpoints_compatible #region-us
| distilbert-base-uncased-finetuned-cola
======================================
This model is a fine-tuned version of distilbert-base-uncased on the glue dataset.
It achieves the following results on the evaluation set:
* Loss: 0.7816
* Matthews Correlation: 0.5156
Model description
-----------------
More information needed
Intended uses & limitations
---------------------------
More information needed
Training and evaluation data
----------------------------
More information needed
Training procedure
------------------
### Training hyperparameters
The following hyperparameters were used during training:
* learning\_rate: 2e-05
* train\_batch\_size: 16
* eval\_batch\_size: 16
* seed: 42
* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
* lr\_scheduler\_type: linear
* num\_epochs: 5
### Training results
### Framework versions
* Transformers 4.11.3
* Pytorch 1.9.0+cu111
* Datasets 1.14.0
* Tokenizers 0.10.3
| [
"### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 2e-05\n* train\\_batch\\_size: 16\n* eval\\_batch\\_size: 16\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* num\\_epochs: 5",
"### Training results",
"### Framework versions\n\n\n* Transformers 4.11.3\n* Pytorch 1.9.0+cu111\n* Datasets 1.14.0\n* Tokenizers 0.10.3"
] | [
"TAGS\n#transformers #pytorch #tensorboard #distilbert #text-classification #generated_from_trainer #dataset-glue #license-apache-2.0 #model-index #autotrain_compatible #endpoints_compatible #region-us \n",
"### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 2e-05\n* train\\_batch\\_size: 16\n* eval\\_batch\\_size: 16\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* num\\_epochs: 5",
"### Training results",
"### Framework versions\n\n\n* Transformers 4.11.3\n* Pytorch 1.9.0+cu111\n* Datasets 1.14.0\n* Tokenizers 0.10.3"
] | [
67,
98,
4,
34
] | [
"passage: TAGS\n#transformers #pytorch #tensorboard #distilbert #text-classification #generated_from_trainer #dataset-glue #license-apache-2.0 #model-index #autotrain_compatible #endpoints_compatible #region-us \n### Training hyperparameters\n\n\nThe following hyperparameters were used during training:\n\n\n* learning\\_rate: 2e-05\n* train\\_batch\\_size: 16\n* eval\\_batch\\_size: 16\n* seed: 42\n* optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n* lr\\_scheduler\\_type: linear\n* num\\_epochs: 5### Training results### Framework versions\n\n\n* Transformers 4.11.3\n* Pytorch 1.9.0+cu111\n* Datasets 1.14.0\n* Tokenizers 0.10.3"
] | [
-0.10383464395999908,
0.10120540857315063,
-0.0022520474158227444,
0.12276788055896759,
0.1666901409626007,
0.03386859595775604,
0.12563511729240417,
0.12651139497756958,
-0.0849364846944809,
0.02301187440752983,
0.12144501507282257,
0.15821129083633423,
0.02150956355035305,
0.1176779568195343,
-0.0500313974916935,
-0.26335206627845764,
-0.01199560146778822,
0.047591447830200195,
-0.052915725857019424,
0.13415201008319855,
0.0914519876241684,
-0.1218477264046669,
0.09053158015012741,
0.011740590445697308,
-0.19487455487251282,
-0.0030731521546840668,
-0.0018347986042499542,
-0.05301673710346222,
0.14652033150196075,
0.025461170822381973,
0.12319207191467285,
0.0002757393231149763,
0.08609022945165634,
-0.19391244649887085,
0.010576637461781502,
0.046777643263339996,
0.004549761302769184,
0.09336379170417786,
0.04553539305925369,
0.004809728357940912,
0.11498267203569412,
-0.08228803426027298,
0.05460359901189804,
0.022279221564531326,
-0.11481517553329468,
-0.20749254524707794,
-0.08067397028207779,
0.037087466567754745,
0.07932272553443909,
0.10563372820615768,
-0.0061493744142353535,
0.11785659193992615,
-0.07940715551376343,
0.0925544947385788,
0.21885614097118378,
-0.28837862610816956,
-0.06684252619743347,
0.04550871625542641,
0.014547529630362988,
0.04462137818336487,
-0.10061807185411453,
-0.03611601144075394,
0.04725038632750511,
0.052576031535863876,
0.12716594338417053,
-0.028269920498132706,
-0.12018435448408127,
0.003766693640500307,
-0.14113639295101166,
-0.032865699380636215,
0.16969040036201477,
0.04058093950152397,
-0.028601227328181267,
-0.05618457868695259,
-0.05986873805522919,
-0.14789673686027527,
-0.036896493285894394,
-0.011091555468738079,
0.047054409980773926,
-0.023050963878631592,
-0.04104197770357132,
-0.010017036460340023,
-0.10836482793092728,
-0.06269247829914093,
-0.07704642415046692,
0.10798846185207367,
0.0363718718290329,
0.007675514556467533,
-0.02780025266110897,
0.11206065863370895,
-0.005865945480763912,
-0.1226966381072998,
0.02355601079761982,
0.02097540907561779,
0.012689893133938313,
-0.04021593555808067,
-0.053721170872449875,
-0.060798708349466324,
0.012131081894040108,
0.1301577240228653,
-0.047122616320848465,
0.04111204668879509,
0.050219759345054626,
0.048597291111946106,
-0.09160886704921722,
0.19202455878257751,
-0.03580522909760475,
-0.03084646537899971,
0.010216610506176949,
0.047627296298742294,
0.01875482127070427,
-0.011267484165728092,
-0.12374192476272583,
0.004814791027456522,
0.08891398459672928,
0.008239168673753738,
-0.061873115599155426,
0.07499396800994873,
-0.05582471191883087,
-0.02490629069507122,
0.004633262753486633,
-0.09194502234458923,
0.022087836638092995,
-0.00043343057041056454,
-0.07030903548002243,
-0.020085500553250313,
0.035151250660419464,
0.015435033477842808,
-0.020707372575998306,
0.10835091024637222,
-0.08790647983551025,
0.026752416044473648,
-0.09399555623531342,
-0.10904170572757721,
0.018905211240053177,
-0.1054951474070549,
0.022351134568452835,
-0.09458732604980469,
-0.18699942529201508,
-0.01751835271716118,
0.06014962121844292,
-0.02431575581431389,
-0.06193213537335396,
-0.05482735112309456,
-0.06901878118515015,
0.012110859155654907,
-0.00983006227761507,
0.11879443377256393,
-0.06429483741521835,
0.09071192145347595,
0.021251793950796127,
0.060370951890945435,
-0.043897293508052826,
0.059785354882478714,
-0.10187559574842453,
0.01549298595637083,
-0.1526920348405838,
0.0408407486975193,
-0.05135400965809822,
0.07098919153213501,
-0.08210058510303497,
-0.10425343364477158,
0.010064732283353806,
-0.004529314115643501,
0.062102872878313065,
0.09292205423116684,
-0.18618054687976837,
-0.07498625665903091,
0.15663810074329376,
-0.07117488980293274,
-0.12234161049127579,
0.12099763751029968,
-0.05984745919704437,
0.05509231239557266,
0.05852442607283592,
0.1775212585926056,
0.08262517303228378,
-0.07750746607780457,
0.0012844196753576398,
0.02524842508137226,
0.052299730479717255,
-0.06836514174938202,
0.06896835565567017,
0.005808686837553978,
0.018939658999443054,
0.03648047521710396,
-0.02968413196504116,
0.0635809674859047,
-0.08595447987318039,
-0.09853983670473099,
-0.04041954129934311,
-0.08297623693943024,
0.041030269116163254,
0.07508224993944168,
0.06832760572433472,
-0.09199556708335876,
-0.07680521160364151,
0.04883570224046707,
0.0831286609172821,
-0.05810406804084778,
0.02351146563887596,
-0.05041094496846199,
0.07698944211006165,
-0.027233602479100227,
-0.022448653355240822,
-0.1808081865310669,
-0.038663145154714584,
0.007631292100995779,
0.0018355275969952345,
0.01636991649866104,
0.028570203110575676,
0.06043994426727295,
0.060524117201566696,
-0.047912828624248505,
-0.017734834924340248,
-0.03082859516143799,
0.0006979885511100292,
-0.12819665670394897,
-0.19176749885082245,
-0.030620023608207703,
-0.024150285869836807,
0.15774306654930115,
-0.20662398636341095,
0.04879447817802429,
-0.01645759679377079,
0.0705208107829094,
0.011696664616465569,
-0.005864947568625212,
-0.03661194443702698,
0.07415825128555298,
-0.044359076768159866,
-0.05301404371857643,
0.08113250136375427,
0.01833578385412693,
-0.08794702589511871,
-0.04984605312347412,
-0.09590908139944077,
0.1567656546831131,
0.1280987411737442,
-0.10459812730550766,
-0.07575517147779465,
-0.020878275856375694,
-0.06691842526197433,
-0.03409746289253235,
-0.047989316284656525,
0.025730803608894348,
0.18737000226974487,
-0.004891610238701105,
0.1502373367547989,
-0.06775445491075516,
-0.043505072593688965,
0.017105212435126305,
-0.0354619100689888,
0.017654012888669968,
0.127474844455719,
0.13544870913028717,
-0.05933381989598274,
0.15501481294631958,
0.14625869691371918,
-0.09007735550403595,
0.145008385181427,
-0.04167001321911812,
-0.06466987729072571,
-0.014875674620270729,
-0.03127446398139,
-0.011656396090984344,
0.10141626745462418,
-0.15232256054878235,
0.00046135549200698733,
0.03373405337333679,
0.016051579266786575,
0.025546474382281303,
-0.22458040714263916,
-0.03958557918667793,
0.03429880738258362,
-0.041943419724702835,
-0.005592979025095701,
-0.006588132120668888,
0.005876943934708834,
0.10101965814828873,
0.0009335147333331406,
-0.08730443567037582,
0.03876351937651634,
0.0026612894143909216,
-0.08317001909017563,
0.21557371318340302,
-0.08268748223781586,
-0.17337356507778168,
-0.13115668296813965,
-0.0732383280992508,
-0.04811685532331467,
-0.0008401619852520525,
0.06681433320045471,
-0.08871054649353027,
-0.031200826168060303,
-0.0722622498869896,
0.02185654826462269,
0.011155236512422562,
0.024382706731557846,
0.005853694397956133,
0.0042718700133264065,
0.06375089287757874,
-0.11019960045814514,
-0.014874882064759731,
-0.05734575167298317,
-0.04420655965805054,
0.044547777622938156,
0.031888268887996674,
0.11349225789308548,
0.15286670625209808,
-0.013132772408425808,
0.011214667931199074,
-0.030240574851632118,
0.24049602448940277,
-0.059938911348581314,
-0.017851121723651886,
0.1448054313659668,
-0.011044110171496868,
0.05103641003370285,
0.11945586651563644,
0.0726076140999794,
-0.07772540301084518,
0.004312608391046524,
0.03502294048666954,
-0.035924188792705536,
-0.23050586879253387,
-0.05830783024430275,
-0.0580093115568161,
0.009028274565935135,
0.09132799506187439,
0.024537084624171257,
0.02863651141524315,
0.07243366539478302,
0.04168015345931053,
0.07879020273685455,
-0.03953266516327858,
0.05483550578355789,
0.13301809132099152,
0.032634686678647995,
0.1260862797498703,
-0.045483481138944626,
-0.06399229913949966,
0.04336586594581604,
-0.008293651044368744,
0.2258092761039734,
0.004300337750464678,
0.1276758313179016,
0.06198640540242195,
0.16354146599769592,
-0.0054830461740493774,
0.07840268313884735,
-0.010732418857514858,
-0.035221271216869354,
-0.018141191452741623,
-0.037992700934410095,
-0.03924349322915077,
0.024502256885170937,
-0.066899374127388,
0.06215522065758705,
-0.11995606124401093,
0.015325220301747322,
0.059730853885412216,
0.2496272623538971,
0.03515489399433136,
-0.32345208525657654,
-0.09898092597723007,
0.0024053663946688175,
-0.03313731774687767,
-0.021863920614123344,
0.0273530725389719,
0.09445612877607346,
-0.10076729208230972,
0.02960696630179882,
-0.0755845382809639,
0.09671586006879807,
-0.052783574908971786,
0.04845432937145233,
0.08535827696323395,
0.0919003114104271,
0.012496222741901875,
0.09286853671073914,
-0.2853424847126007,
0.2713872790336609,
-0.0006739680538885295,
0.05729370191693306,
-0.07760540395975113,
0.009966375306248665,
0.04410833492875099,
0.06337082386016846,
0.08130016177892685,
-0.012899746187031269,
-0.024346675723791122,
-0.18258428573608398,
-0.07169398665428162,
0.02936336025595665,
0.06109060347080231,
-0.037930890917778015,
0.08424566686153412,
-0.032300740480422974,
0.006599531043320894,
0.07140441238880157,
0.0006967696244828403,
-0.05066028609871864,
-0.10880037397146225,
-0.005909185390919447,
0.02397346869111061,
-0.059398870915174484,
-0.060056257992982864,
-0.12077134102582932,
-0.12826916575431824,
0.15705078840255737,
-0.032003022730350494,
-0.04085267707705498,
-0.10877475887537003,
0.08466852456331253,
0.06152741611003876,
-0.08914316445589066,
0.045669879764318466,
0.0005959231639280915,
0.07997871935367584,
0.023172641173005104,
-0.07432542741298676,
0.10017267614603043,
-0.0770445391535759,
-0.1564350724220276,
-0.06561274826526642,
0.10553765296936035,
0.03183136135339737,
0.06541163474321365,
-0.011658147908747196,
0.007049757055938244,
-0.04838663712143898,
-0.09031575173139572,
0.015589798800647259,
0.008393027819693089,
0.08043350279331207,
0.018246319144964218,
-0.07738076895475388,
0.006795120891183615,
-0.05987853184342384,
-0.032692547887563705,
0.20929457247257233,
0.21413227915763855,
-0.10129690170288086,
0.02511221170425415,
0.02223113179206848,
-0.07324153184890747,
-0.2009669840335846,
0.03277604281902313,
0.05662359669804573,
0.010021238587796688,
0.039619337767362595,
-0.18115434050559998,
0.13914503157138824,
0.10754189640283585,
-0.013608374632894993,
0.10514360666275024,
-0.31820085644721985,
-0.12163776159286499,
0.13657836616039276,
0.13423913717269897,
0.10293001681566238,
-0.13001638650894165,
-0.02109033241868019,
-0.017615579068660736,
-0.13718068599700928,
0.11693181097507477,
-0.09116905927658081,
0.11928858608007431,
-0.035122472792863846,
0.08117944002151489,
0.001484388718381524,
-0.058530353009700775,
0.11903737485408783,
0.028600307181477547,
0.09206292778253555,
-0.05895908921957016,
-0.03317354619503021,
0.031762782484292984,
-0.044518113136291504,
0.035449836403131485,
-0.09415918588638306,
0.03010070137679577,
-0.1054188460111618,
-0.02599860541522503,
-0.06674744933843613,
0.04529062658548355,
-0.04255272075533867,
-0.06765837222337723,
-0.03653636947274208,
0.0265487227588892,
0.049170009791851044,
-0.00828699953854084,
0.1216089129447937,
0.028320735320448875,
0.1416580229997635,
0.09587123990058899,
0.0723763257265091,
-0.06913235038518906,
-0.07920902222394943,
-0.026813743636012077,
-0.012333118356764317,
0.04966241866350174,
-0.13442431390285492,
0.020594606176018715,
0.15339164435863495,
0.018398359417915344,
0.15040840208530426,
0.0824565514922142,
-0.01817503198981285,
0.00042826015851460397,
0.057545337826013565,
-0.16661566495895386,
-0.08804254233837128,
-0.014039109461009502,
-0.06740307062864304,
-0.12129536271095276,
0.043095141649246216,
0.09405700117349625,
-0.06721849739551544,
-0.008372144773602486,
-0.004349705297499895,
0.01469674613326788,
-0.04716181382536888,
0.18609417974948883,
0.06154899299144745,
0.04665590450167656,
-0.09985218197107315,
0.07054084539413452,
0.04595160111784935,
-0.07237152010202408,
0.004001410212367773,
0.07434456795454025,
-0.08947034925222397,
-0.05526033788919449,
0.06606078147888184,
0.18938665091991425,
-0.04767127335071564,
-0.046722978353500366,
-0.14104586839675903,
-0.12372433394193649,
0.07955270260572433,
0.138994500041008,
0.12064179033041,
0.009997307322919369,
-0.06806571036577225,
0.0008344626985490322,
-0.10814674198627472,
0.10490357875823975,
0.0500030592083931,
0.06362494826316833,
-0.14433597028255463,
0.13988278806209564,
0.01719871535897255,
0.04968564584851265,
-0.020083755254745483,
0.02561938390135765,
-0.09876364469528198,
0.005827938672155142,
-0.09868337959051132,
-0.013722161762416363,
-0.034054242074489594,
0.012985744513571262,
-0.006318570114672184,
-0.04628748074173927,
-0.05590714141726494,
0.011486109346151352,
-0.1063002273440361,
-0.023162195459008217,
0.026437468826770782,
0.07011197507381439,
-0.10760872066020966,
-0.037009451538324356,
0.02772824652493,
-0.06170268356800079,
0.07782692462205887,
0.04435008391737938,
0.016347121447324753,
0.04947372525930405,
-0.1355273425579071,
0.015554004348814487,
0.07456210255622864,
0.031121879816055298,
0.06483486294746399,
-0.09732333570718765,
-0.006183636840432882,
-0.0053562866523861885,
0.03837743028998375,
0.020266860723495483,
0.07684716582298279,
-0.1402582824230194,
0.001986164366826415,
-0.02268778160214424,
-0.07965659350156784,
-0.06818123906850815,
0.026137690991163254,
0.09063076227903366,
0.021467387676239014,
0.20138542354106903,
-0.07626044750213623,
0.0504453144967556,
-0.21508574485778809,
0.006239953450858593,
-0.009531225077807903,
-0.10962431132793427,
-0.10492591559886932,
-0.0708090215921402,
0.05526723712682724,
-0.057914890348911285,
0.15390664339065552,
0.04661954566836357,
0.021831315010786057,
0.024545500054955482,
-0.006454572547227144,
0.014578753150999546,
0.012197021394968033,
0.18873350322246552,
0.03011610172688961,
-0.03411165624856949,
0.058970674872398376,
0.04362010210752487,
0.1044016182422638,
0.11286903917789459,
0.20154213905334473,
0.1411353200674057,
-0.0035453320015221834,
0.09319974482059479,
0.04145777225494385,
-0.05831583961844444,
-0.1595756560564041,
0.04808640480041504,
-0.03739310801029205,
0.11085674911737442,
-0.020981188863515854,
0.21646925806999207,
0.05933288857340813,
-0.17026998102664948,
0.04735904932022095,
-0.053758326917886734,
-0.08698701858520508,
-0.11291085183620453,
-0.05158152058720589,
-0.07855936139822006,
-0.12850584089756012,
-0.0048876600340008736,
-0.11775918304920197,
-0.004291563760489225,
0.12715089321136475,
0.00402813870459795,
-0.027962086722254753,
0.15618298947811127,
0.008514098823070526,
0.023025378584861755,
0.058054350316524506,
0.011157182045280933,
-0.035986416041851044,
-0.1311996579170227,
-0.058934230357408524,
-0.017828846350312233,
-0.007932404056191444,
0.03251632675528526,
-0.06198100745677948,
-0.03958696126937866,
0.032886818051338196,
-0.022165410220623016,
-0.09309859573841095,
0.00464885076507926,
0.013179652392864227,
0.0537240244448185,
0.0472228042781353,
0.010846700519323349,
0.01863093301653862,
-0.0025611836463212967,
0.1995515376329422,
-0.07102957367897034,
-0.06607849895954132,
-0.10830643028020859,
0.22878491878509521,
0.03340505436062813,
-0.022732146084308624,
0.035306405276060104,
-0.06456553936004639,
0.003613264998421073,
0.24900740385055542,
0.2179601937532425,
-0.08370130509138107,
-0.008082468062639236,
0.016643453389406204,
-0.00917835719883442,
-0.023115193471312523,
0.10133684426546097,
0.14451496303081512,
0.054607093334198,
-0.09270896017551422,
-0.047325845807790756,
-0.058867841958999634,
-0.018412597477436066,
-0.03700585663318634,
0.06911364942789078,
0.04735378548502922,
0.007375677581876516,
-0.03428792208433151,
0.05537526309490204,
-0.07130070775747299,
-0.09046456962823868,
0.05387882888317108,
-0.2163361757993698,
-0.1704862415790558,
-0.013822370208799839,
0.0987531989812851,
0.0034812605008482933,
0.06009683758020401,
-0.03093436360359192,
-0.002978322794660926,
0.09441496431827545,
-0.02123800292611122,
-0.095933698117733,
-0.06828540563583374,
0.08796283602714539,
-0.10804197937250137,
0.22152897715568542,
-0.046514566987752914,
0.05472701042890549,
0.12552043795585632,
0.0690474659204483,
-0.07079540193080902,
0.06335695087909698,
0.042938705533742905,
-0.04169972985982895,
0.028012003749608994,
0.06953982263803482,
-0.03557710722088814,
0.062061816453933716,
0.04843403026461601,
-0.1381770670413971,
0.019411461427807808,
-0.04943867027759552,
-0.06664104014635086,
-0.045684222131967545,
-0.02263425663113594,
-0.062341805547475815,
0.13239061832427979,
0.2164263278245926,
-0.02681135945022106,
-0.010401031002402306,
-0.06996437907218933,
0.010908642783761024,
0.053030818700790405,
0.02387501858174801,
-0.05681249126791954,
-0.21032701432704926,
0.016414105892181396,
0.039088454097509384,
-0.018967248499393463,
-0.24550600349903107,
-0.10100843757390976,
0.0007038508774712682,
-0.07268606871366501,
-0.09750784933567047,
0.0743163600564003,
0.08655436336994171,
0.050482649356126785,
-0.05656850337982178,
-0.039083562791347504,
-0.07675884664058685,
0.14508365094661713,
-0.14432379603385925,
-0.09256170690059662
] |
null | null | transformers | this is a fine tuned GPT2 text generation model on a Hunter x Hunter TV anime series dataset.\
you can find a link to the used dataset here : https://www.kaggle.com/bkoozy/hunter-x-hunter-subtitles
you can find a colab notebook for fine-tuning the gpt2 model here : https://github.com/3koozy/fine-tune-gpt2-HxH/ | {} | feature-extraction | 3koozy/gpt2-HxH | [
"transformers",
"pytorch",
"gpt2",
"feature-extraction",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #gpt2 #feature-extraction #endpoints_compatible #text-generation-inference #region-us
| this is a fine tuned GPT2 text generation model on a Hunter x Hunter TV anime series dataset.\
you can find a link to the used dataset here : URL
you can find a colab notebook for fine-tuning the gpt2 model here : URL | [] | [
"TAGS\n#transformers #pytorch #gpt2 #feature-extraction #endpoints_compatible #text-generation-inference #region-us \n"
] | [
40
] | [
"passage: TAGS\n#transformers #pytorch #gpt2 #feature-extraction #endpoints_compatible #text-generation-inference #region-us \n"
] | [
-0.041738081723451614,
0.0006603930378332734,
-0.0077804382890462875,
0.02187127247452736,
0.17088019847869873,
0.03971775993704796,
0.007533485069870949,
0.14377127587795258,
-0.006257137283682823,
-0.011382832191884518,
0.11762092262506485,
0.20508740842342377,
0.00784099381417036,
0.028314976021647453,
-0.05866454914212227,
-0.2831045091152191,
0.08493058383464813,
0.08416919410228729,
-0.01326358038932085,
0.11360260844230652,
0.054742347449064255,
-0.05299406871199608,
0.08551254868507385,
-0.009567638859152794,
-0.1666277050971985,
0.025074917823076248,
0.03387558460235596,
-0.096889428794384,
0.10422462970018387,
0.039179589599370956,
0.07888877391815186,
-0.009128399193286896,
-0.10176379233598709,
-0.15800915658473969,
0.03292359784245491,
0.02850702404975891,
-0.07778777927160263,
0.04681156575679779,
0.0969340056180954,
-0.11927396804094315,
0.11956637352705002,
0.0737585499882698,
-0.04220421984791756,
0.03971903771162033,
-0.1719289869070053,
-0.12758882343769073,
-0.048368893563747406,
0.056218817830085754,
0.011468470096588135,
0.11972709000110626,
-0.013445224612951279,
0.06349145621061325,
-0.11493632942438126,
0.09287001937627792,
0.2231275886297226,
-0.2950896918773651,
0.0030652882996946573,
0.07998622208833694,
0.08558391779661179,
0.024038977921009064,
-0.02403159625828266,
0.04914766177535057,
-0.0014712136471644044,
0.016512645408511162,
-0.002524568233639002,
-0.08030059188604355,
-0.08143451064825058,
0.067994125187397,
-0.09567644447088242,
-0.1085016056895256,
0.19599956274032593,
-0.037169571965932846,
0.057531487196683884,
-0.018252376466989517,
-0.1048378273844719,
-0.035367451608181,
-0.03141259774565697,
0.04383126646280289,
-0.04655193164944649,
0.09111811965703964,
0.03488318249583244,
-0.0962463915348053,
-0.11958077549934387,
-0.05058484897017479,
-0.17009781301021576,
0.19194501638412476,
0.016876546666026115,
0.08169978857040405,
-0.19404606521129608,
0.09752284735441208,
-0.07144974172115326,
-0.07873044162988663,
-0.010072208009660244,
-0.09105978161096573,
0.06175195798277855,
0.033031102269887924,
-0.06613069027662277,
-0.04775426164269447,
0.0818280279636383,
0.08610472828149796,
-0.10406491905450821,
0.01719980686903,
-0.04292036592960358,
0.11668846756219864,
0.02352554351091385,
0.11376560479402542,
-0.02733444981276989,
0.021203042939305305,
0.0229088943451643,
-0.15113891661167145,
-0.016987906768918037,
-0.06731607764959335,
-0.13311201333999634,
-0.065431609749794,
0.0392879880964756,
0.07915562391281128,
0.02367335744202137,
0.06350242346525192,
-0.05116124451160431,
-0.02858935110270977,
0.046870436519384384,
-0.07376015931367874,
-0.01830187626183033,
0.013634067960083485,
0.016825081780552864,
0.1493465006351471,
-0.00417596660554409,
-0.018826954066753387,
-0.15106767416000366,
0.021475402638316154,
-0.08322446048259735,
0.04147294536232948,
-0.03676242753863335,
-0.04474226012825966,
0.020958833396434784,
-0.13873010873794556,
0.006139902863651514,
-0.13151675462722778,
-0.1973528414964676,
0.022015461698174477,
0.009486626833677292,
-0.0215931236743927,
0.007832784205675125,
-0.034968096762895584,
-0.04911528900265694,
0.017402030527591705,
-0.06779249757528305,
-0.03950132057070732,
-0.07171300053596497,
0.11495931446552277,
-0.05113512650132179,
0.05598050355911255,
-0.12993207573890686,
0.092398501932621,
-0.11554724723100662,
0.0219033882021904,
-0.14226709306240082,
0.08573183417320251,
0.007836001925170422,
0.10386785864830017,
-0.029389841482043266,
-0.0776323601603508,
-0.11240990459918976,
0.052831340581178665,
-0.047963835299015045,
0.1825455278158188,
-0.04801761731505394,
-0.13606907427310944,
0.29213789105415344,
-0.09766745567321777,
-0.14481888711452484,
0.0766168087720871,
0.007640913128852844,
-0.012528610415756702,
0.07863306999206543,
0.254841148853302,
0.05593622848391533,
0.03322318568825722,
0.05113765969872475,
0.14281804859638214,
-0.1341845542192459,
-0.08933257311582565,
0.03275791555643082,
-0.056052401661872864,
-0.06129975616931915,
0.03520892187952995,
-0.005324159748852253,
0.08265356719493866,
-0.03654841333627701,
-0.02875896729528904,
-0.03660611808300018,
0.022135673090815544,
0.08159694820642471,
0.012919064611196518,
0.10972902923822403,
-0.01997096836566925,
-0.024722767993807793,
-0.02040237747132778,
-0.021304955706000328,
-0.07319977134466171,
0.06572932749986649,
-0.031046677380800247,
0.20118261873722076,
-0.05887886509299278,
0.04609593003988266,
-0.22535628080368042,
-0.0647583082318306,
-0.016484443098306656,
0.08390682190656662,
-0.033709555864334106,
0.07702810317277908,
0.06152038276195526,
-0.05276556313037872,
0.002119414508342743,
-0.01264959666877985,
0.07163489609956741,
-0.03392008692026138,
-0.018228299915790558,
-0.035824913531541824,
0.03192241117358208,
-0.05207069218158722,
-0.05370980128645897,
-0.02201896719634533,
0.011954137124121189,
0.10153979808092117,
0.06675877422094345,
-0.00923764519393444,
0.005162067245692015,
-0.022222405299544334,
0.01083388365805149,
-0.03875313699245453,
-0.017998753115534782,
0.09712710231542587,
-0.011654326692223549,
-0.07948454469442368,
0.2046763300895691,
-0.12324228882789612,
0.2094569057226181,
0.1909194439649582,
-0.3088929355144501,
0.034092970192432404,
-0.09023378044366837,
-0.034230876713991165,
0.053078725934028625,
0.05404044687747955,
-0.040795668959617615,
0.16969145834445953,
0.008769898675382137,
0.1643693894147873,
-0.07041661441326141,
-0.05660668760538101,
-0.00451989471912384,
-0.01616053469479084,
-0.0062485639937222,
0.061122503131628036,
0.09835348278284073,
-0.11921752244234085,
0.17720967531204224,
0.18893423676490784,
0.042469434440135956,
0.17167359590530396,
-0.03529220446944237,
-0.05262909084558487,
0.07844242453575134,
0.042467840015888214,
-0.05693482235074043,
-0.032437365502119064,
-0.2762526273727417,
-0.026090936735272408,
0.0737522691488266,
0.0710396021604538,
0.14143909513950348,
-0.13464762270450592,
-0.04816313832998276,
-0.010956230573356152,
-0.06066242232918739,
-0.08002041280269623,
0.056099262088537216,
0.0672672912478447,
0.10080263018608093,
0.022752372547984123,
0.032730069011449814,
0.10935060679912567,
0.01738753356039524,
-0.0834706649184227,
0.2178620845079422,
-0.10178320109844208,
-0.33317622542381287,
-0.1369653195142746,
-0.1150272786617279,
-0.033266711980104446,
0.04911762475967407,
0.10980632156133652,
-0.10324377566576004,
0.0009570270776748657,
0.008926993235945702,
0.11124660819768906,
-0.1220935583114624,
0.012775307521224022,
-0.06377802044153214,
0.03436984121799469,
-0.09331483393907547,
-0.09634464234113693,
-0.05986281856894493,
-0.04789188131690025,
-0.06363902986049652,
0.1174699068069458,
-0.116438128054142,
0.06277597695589066,
0.1722145527601242,
0.04329848662018776,
0.08575592190027237,
-0.04135937988758087,
0.17487402260303497,
-0.10325967520475388,
-0.0595489963889122,
0.24159345030784607,
-0.02875688672065735,
0.08670072257518768,
0.04500998184084892,
0.0031436241697520018,
-0.08001786470413208,
-0.025472491979599,
-0.03126903623342514,
-0.11184106022119522,
-0.2259931117296219,
-0.10415515303611755,
-0.13770025968551636,
0.0786261260509491,
0.0382726676762104,
0.06074817478656769,
0.12005531042814255,
0.07052870094776154,
-0.015365011058747768,
0.0018315460765734315,
0.021940454840660095,
0.05805017054080963,
0.18058690428733826,
-0.025290578603744507,
0.09920939803123474,
-0.04249698668718338,
-0.09555821120738983,
0.08314239978790283,
0.0534517765045166,
0.23146659135818481,
0.022372694686055183,
0.054680097848176956,
0.03655407577753067,
0.0822034627199173,
0.11222474277019501,
0.1311919093132019,
-0.0187904704362154,
-0.0014576532412320375,
-0.021217457950115204,
-0.010252425447106361,
-0.05176464095711708,
0.018018443137407303,
0.08119597285985947,
-0.1505136638879776,
-0.08245675265789032,
-0.15704481303691864,
0.11908795684576035,
0.0863485261797905,
0.03820519149303436,
-0.20859533548355103,
-0.005733971484005451,
0.07217603176832199,
-0.014849499799311161,
-0.10646176338195801,
0.08309683948755264,
0.013001388870179653,
-0.1387539803981781,
0.05543473735451698,
-0.06239619478583336,
0.1252695620059967,
-0.053676292300224304,
0.06893899291753769,
-0.04658178240060806,
-0.10255634039640427,
0.03181438520550728,
0.11543741822242737,
-0.2118789106607437,
0.22680102288722992,
-0.0032380297780036926,
-0.03415071591734886,
-0.08927939087152481,
0.022145433351397514,
0.014392598532140255,
0.10249006748199463,
0.15926963090896606,
0.01812969520688057,
-0.011300944723188877,
-0.08793164044618607,
0.011631128378212452,
0.04778032377362251,
0.13795995712280273,
-0.06651607900857925,
-0.010707798413932323,
-0.02881084755063057,
0.010915597900748253,
-0.04522477090358734,
-0.013125968165695667,
0.08432208746671677,
-0.15820790827274323,
0.057620223611593246,
-0.0393526516854763,
0.10214387625455856,
0.0033374580089002848,
0.01796615682542324,
-0.06318295747041702,
0.20929263532161713,
-0.10487117618322372,
-0.11598853766918182,
-0.10681453347206116,
-0.027974223718047142,
0.07450448721647263,
-0.06291978061199188,
0.06764564663171768,
-0.051782671362161636,
0.01285023707896471,
-0.05280236154794693,
-0.21845079958438873,
0.11031831055879593,
-0.07453005015850067,
-0.0016158982180058956,
0.008800340816378593,
0.20899157226085663,
-0.06769916415214539,
-0.00160019111353904,
0.04188980162143707,
0.01622861437499523,
-0.1109042838215828,
-0.12727637588977814,
0.012532294727861881,
0.014086605049669743,
0.07150094956159592,
0.10601167380809784,
-0.050638433545827866,
0.04691263660788536,
-0.025263436138629913,
0.045868877321481705,
0.3152247667312622,
0.08324620872735977,
-0.03270576149225235,
0.15859466791152954,
0.0798487514257431,
-0.06361725926399231,
-0.2935284674167633,
-0.047660719603300095,
-0.11078326404094696,
-0.054489072412252426,
-0.06550616770982742,
-0.1966962367296219,
0.09131905436515808,
0.0697225034236908,
0.009308590553700924,
0.15318456292152405,
-0.2964324653148651,
-0.0509369857609272,
0.09533791244029999,
0.0022485286463052034,
0.3551301062107086,
-0.12605319917201996,
-0.11023731529712677,
-0.019237680360674858,
-0.20431837439537048,
0.14667649567127228,
-0.06743189692497253,
0.10663831979036331,
-0.030929863452911377,
0.06745454668998718,
0.03670748323202133,
-0.0610780343413353,
0.10176961869001389,
0.0515599362552166,
0.02066565863788128,
-0.07515615969896317,
-0.03716709464788437,
0.07826601713895798,
0.00812526699155569,
0.03218889608979225,
-0.009297032840549946,
0.03533962741494179,
-0.1540544480085373,
-0.03642881661653519,
-0.12044832855463028,
0.057809021323919296,
0.0606185682117939,
-0.054091908037662506,
-0.019431952387094498,
-0.05765942484140396,
0.016837207600474358,
0.042732205241918564,
0.22143951058387756,
-0.055046796798706055,
0.12669764459133148,
0.008887652307748795,
0.06600899249315262,
-0.15381716191768646,
-0.12809935212135315,
-0.06726040691137314,
-0.027684571221470833,
0.10455124080181122,
-0.14085985720157623,
0.06650276482105255,
0.10565965622663498,
-0.02753858081996441,
0.06359502673149109,
0.14415253698825836,
0.013937443494796753,
0.021628838032484055,
0.11156296730041504,
-0.223700612783432,
-0.0414690263569355,
-0.07241609692573547,
-0.1054842546582222,
0.07692481577396393,
0.08299189805984497,
0.1521061807870865,
0.04493117332458496,
-0.0282128918915987,
-0.0192872267216444,
0.008611343801021576,
-0.066280797123909,
0.05097402259707451,
0.003581947647035122,
0.02229336090385914,
-0.16293476521968842,
0.07943993806838989,
-0.020013751462101936,
-0.1919384002685547,
-0.0029299890156835318,
0.1188608929514885,
-0.12337737530469894,
-0.11279512196779251,
-0.09450635313987732,
0.0785587728023529,
-0.14099381864070892,
-0.024673182517290115,
-0.052053555846214294,
-0.12035515159368515,
0.09254483878612518,
0.14538460969924927,
0.06842558830976486,
0.12074032425880432,
-0.037230513989925385,
-0.018984120339155197,
-0.017330678179860115,
-0.061490610241889954,
-0.009744103066623211,
-0.0010646459413692355,
-0.07668883353471756,
0.05976381152868271,
-0.018175018951296806,
0.16209155321121216,
-0.07423562556505203,
-0.0674835667014122,
-0.12945657968521118,
0.05256183445453644,
-0.07307283580303192,
-0.04601083695888519,
-0.11899019032716751,
-0.05477128177881241,
-0.013531327247619629,
0.01296283956617117,
-0.0424812026321888,
-0.02130316011607647,
-0.12859247624874115,
0.016337500885128975,
-0.058827757835388184,
-0.003232759889215231,
-0.08756373077630997,
0.008326178416609764,
0.07864592224359512,
-0.050540532916784286,
0.14450393617153168,
0.1853049397468567,
-0.0845094546675682,
0.14156962931156158,
-0.17097364366054535,
-0.13480058312416077,
0.11650583893060684,
0.009430273436009884,
0.01604217290878296,
0.09425711631774902,
0.05475103482604027,
0.05398958548903465,
-0.02336430363357067,
0.04565492644906044,
-0.0472499281167984,
-0.13741296529769897,
0.0073615191504359245,
-0.05115026608109474,
-0.11363784968852997,
-0.056997474282979965,
-0.02948186919093132,
0.07470914721488953,
0.05184128135442734,
0.09164517372846603,
-0.016784988343715668,
0.11072797328233719,
-0.057020220905542374,
0.014461680315434933,
0.025167105719447136,
-0.1659793108701706,
0.014231390319764614,
-0.07943353801965714,
0.028765754774212837,
0.010778249241411686,
0.2765483260154724,
0.029863951727747917,
0.022895539179444313,
0.004849052056670189,
0.07888121902942657,
0.08317627757787704,
0.011843293905258179,
0.2625652551651001,
0.11629665642976761,
-0.07128477096557617,
-0.07548943161964417,
0.08640684187412262,
0.01971866562962532,
0.02680022083222866,
0.1537594348192215,
0.08364265412092209,
0.017093239352107048,
0.10792932659387589,
0.0011842373060062528,
0.021537283435463905,
-0.09714646637439728,
-0.143906831741333,
0.020723050460219383,
0.0697828158736229,
0.02230396680533886,
0.0984700620174408,
0.14360789954662323,
-0.046569932252168655,
0.07867665588855743,
0.0401797741651535,
-0.05577598884701729,
-0.1377270668745041,
-0.10682237893342972,
-0.04852670058608055,
-0.1592148244380951,
0.01649598218500614,
-0.13393869996070862,
0.03549998626112938,
0.13133300840854645,
0.0431266687810421,
-0.0372365340590477,
0.14006219804286957,
0.06096745654940605,
-0.12295901030302048,
0.09727158397436142,
-0.038790617138147354,
0.06222113221883774,
0.05343054234981537,
-0.021544935181736946,
-0.030688386410474777,
-0.060701679438352585,
0.020864753052592278,
0.06153792515397072,
-0.039880260825157166,
0.03241366520524025,
-0.171433687210083,
-0.0975876972079277,
-0.048039473593235016,
0.0763327032327652,
-0.0707346722483635,
0.14145877957344055,
0.011825406923890114,
-0.04353008046746254,
0.03476502001285553,
0.2147682160139084,
-0.06534674018621445,
-0.0012154667638242245,
-0.03754262626171112,
0.17974065244197845,
0.09997153282165527,
0.0812876895070076,
-0.0069336663000285625,
-0.01917019672691822,
-0.04120504483580589,
0.3151510953903198,
0.259878545999527,
-0.041121188551187515,
0.021053658798336983,
0.05916077271103859,
0.041101694107055664,
0.15541793406009674,
0.09495509415864944,
0.1075538620352745,
0.292980819940567,
-0.07376820594072342,
-0.06558048725128174,
-0.015380299650132656,
-0.012545138597488403,
-0.09374979138374329,
0.08039815723896027,
0.06494695693254471,
-0.0881514921784401,
-0.04179781675338745,
0.11622879654169083,
-0.24114742875099182,
0.11953544616699219,
0.0015655322931706905,
-0.17229856550693512,
-0.05261610820889473,
-0.03376699611544609,
0.09071679413318634,
0.026434583589434624,
0.11521585285663605,
-0.012516504153609276,
-0.12733620405197144,
0.043186649680137634,
0.06355270743370056,
-0.2846991717815399,
-0.042510345578193665,
0.05719650164246559,
-0.017924979329109192,
0.013886695727705956,
-0.02940267138183117,
0.019328540191054344,
0.05845877155661583,
0.061722282320261,
-0.004357845522463322,
0.040718771517276764,
-0.0029190771747380495,
-0.04694301262497902,
-0.011458391323685646,
0.05720140039920807,
0.004024474415928125,
-0.14464272558689117,
0.05951172485947609,
-0.140448197722435,
0.02582695335149765,
-0.003993859514594078,
-0.03970295190811157,
-0.011781605891883373,
-0.06706850975751877,
-0.07532022148370743,
0.031208623200654984,
0.10000083595514297,
0.016243739053606987,
-0.012969194911420345,
-0.08612985163927078,
-0.008733793161809444,
0.007178271189332008,
-0.06601697206497192,
-0.12157923728227615,
-0.09067876636981964,
-0.11222388595342636,
0.10408657044172287,
-0.03792525827884674,
-0.14407148957252502,
0.012849753722548485,
-0.05810561031103134,
0.07216701656579971,
-0.14991551637649536,
0.06805402040481567,
0.04374640807509422,
0.02321077138185501,
0.007047983817756176,
-0.019903039559721947,
0.05827571451663971,
0.09377917647361755,
-0.09907127171754837,
-0.07913137227296829
] |
null | null | transformers |
## Model description
This model is a fine-tuned version of macbert for the purpose of spell checking in medical application scenarios. We fine-tuned macbert Chinese base version on a 300M dataset including 60K+ authorized medical articles. We proposed to randomly confuse 30% sentences of these articles by adding noise with a either visually or phonologically resembled characters. Consequently, the fine-tuned model can achieve 96% accuracy on our test dataset.
## Intended uses & limitations
You can use this model directly with a pipeline for token classification:
```python
>>> from transformers import (AutoModelForTokenClassification, AutoTokenizer)
>>> from transformers import pipeline
>>> hub_model_id = "9pinus/macbert-base-chinese-medical-collation"
>>> model = AutoModelForTokenClassification.from_pretrained(hub_model_id)
>>> tokenizer = AutoTokenizer.from_pretrained(hub_model_id)
>>> classifier = pipeline('ner', model=model, tokenizer=tokenizer)
>>> result = classifier("如果病情较重,可适当口服甲肖唑片、环酯红霉素片等药物进行抗感染镇痛。")
>>> for item in result:
>>> if item['entity'] == 1:
>>> print(item)
{'entity': 1, 'score': 0.58127016, 'index': 14, 'word': '肖', 'start': 13, 'end': 14}
```
### Framework versions
- Transformers 4.15.0
- Pytorch 1.10.1+cu113
- Datasets 1.17.0
- Tokenizers 0.10.3
| {"language": "zh", "license": "apache-2.0", "tags": ["Token Classification"], "metrics": ["precision", "recall", "f1", "accuracy"]} | token-classification | 9pinus/macbert-base-chinese-medical-collation | [
"transformers",
"pytorch",
"bert",
"token-classification",
"Token Classification",
"zh",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"zh"
] | TAGS
#transformers #pytorch #bert #token-classification #Token Classification #zh #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
|
## Model description
This model is a fine-tuned version of macbert for the purpose of spell checking in medical application scenarios. We fine-tuned macbert Chinese base version on a 300M dataset including 60K+ authorized medical articles. We proposed to randomly confuse 30% sentences of these articles by adding noise with a either visually or phonologically resembled characters. Consequently, the fine-tuned model can achieve 96% accuracy on our test dataset.
## Intended uses & limitations
You can use this model directly with a pipeline for token classification:
### Framework versions
- Transformers 4.15.0
- Pytorch 1.10.1+cu113
- Datasets 1.17.0
- Tokenizers 0.10.3
| [
"## Model description\r\n\r\nThis model is a fine-tuned version of macbert for the purpose of spell checking in medical application scenarios. We fine-tuned macbert Chinese base version on a 300M dataset including 60K+ authorized medical articles. We proposed to randomly confuse 30% sentences of these articles by adding noise with a either visually or phonologically resembled characters. Consequently, the fine-tuned model can achieve 96% accuracy on our test dataset.",
"## Intended uses & limitations\r\n\r\nYou can use this model directly with a pipeline for token classification:",
"### Framework versions\r\n\r\n- Transformers 4.15.0\r\n- Pytorch 1.10.1+cu113\r\n- Datasets 1.17.0\r\n- Tokenizers 0.10.3"
] | [
"TAGS\n#transformers #pytorch #bert #token-classification #Token Classification #zh #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"## Model description\r\n\r\nThis model is a fine-tuned version of macbert for the purpose of spell checking in medical application scenarios. We fine-tuned macbert Chinese base version on a 300M dataset including 60K+ authorized medical articles. We proposed to randomly confuse 30% sentences of these articles by adding noise with a either visually or phonologically resembled characters. Consequently, the fine-tuned model can achieve 96% accuracy on our test dataset.",
"## Intended uses & limitations\r\n\r\nYou can use this model directly with a pipeline for token classification:",
"### Framework versions\r\n\r\n- Transformers 4.15.0\r\n- Pytorch 1.10.1+cu113\r\n- Datasets 1.17.0\r\n- Tokenizers 0.10.3"
] | [
52,
110,
25,
33
] | [
"passage: TAGS\n#transformers #pytorch #bert #token-classification #Token Classification #zh #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n## Model description\r\n\r\nThis model is a fine-tuned version of macbert for the purpose of spell checking in medical application scenarios. We fine-tuned macbert Chinese base version on a 300M dataset including 60K+ authorized medical articles. We proposed to randomly confuse 30% sentences of these articles by adding noise with a either visually or phonologically resembled characters. Consequently, the fine-tuned model can achieve 96% accuracy on our test dataset.## Intended uses & limitations\r\n\r\nYou can use this model directly with a pipeline for token classification:### Framework versions\r\n\r\n- Transformers 4.15.0\r\n- Pytorch 1.10.1+cu113\r\n- Datasets 1.17.0\r\n- Tokenizers 0.10.3"
] | [
-0.11661960184574127,
0.015766745433211327,
-0.0018910864600911736,
0.005194940138608217,
0.08384040743112564,
-0.057055938988924026,
0.05211431905627251,
0.08434693515300751,
-0.09837579727172852,
0.062436792999506,
0.10933087021112442,
0.12014079093933105,
0.03795560076832771,
0.10712232440710068,
-0.0979730561375618,
-0.2222205549478531,
0.1219816729426384,
0.08584229648113251,
0.1469069868326187,
0.13027314841747284,
0.06871481239795685,
-0.09998726844787598,
0.041090428829193115,
0.10990971326828003,
-0.12171109765768051,
-0.005550570785999298,
0.058489810675382614,
-0.10532387346029282,
0.04265712946653366,
0.005099721718579531,
0.043120838701725006,
0.08755975216627121,
0.013585255481302738,
-0.06679443269968033,
0.012416043318808079,
-0.017750108614563942,
0.04299018159508705,
0.06531184911727905,
0.00009774336649570614,
-0.04183723405003548,
0.1297590583562851,
-0.05904160812497139,
0.05387422442436218,
0.008212442509829998,
-0.0035929398145526648,
-0.15503814816474915,
-0.06429639458656311,
0.13447655737400055,
0.0815587043762207,
0.056461285799741745,
-0.030052464455366135,
0.2635800540447235,
-0.08686792105436325,
0.06661126762628555,
0.1893797218799591,
-0.3039467930793762,
0.00730034289881587,
0.11523085832595825,
0.08461982011795044,
-0.008335149846971035,
0.004201709292829037,
0.002488964470103383,
0.048958439379930496,
0.05041361600160599,
0.05197868496179581,
-0.040154069662094116,
0.05822364613413811,
-0.013889580965042114,
-0.1262350082397461,
-0.03062497265636921,
0.1546260118484497,
-0.05764232948422432,
-0.09503539651632309,
-0.14011292159557343,
-0.03798690438270569,
-0.005532943643629551,
-0.015299484133720398,
-0.06734538078308105,
-0.050434134900569916,
-0.03998275846242905,
-0.041013795882463455,
0.04473961144685745,
-0.04205009713768959,
-0.09005824476480484,
-0.14510245621204376,
0.12821589410305023,
0.040523625910282135,
0.07260225713253021,
-0.0708518922328949,
0.05075862631201744,
-0.09733306616544724,
-0.09592729806900024,
-0.049969740211963654,
-0.062489088624715805,
-0.03117142803966999,
-0.040326591581106186,
-0.108512282371521,
-0.07786883413791656,
0.06561161577701569,
0.09645899385213852,
-0.07697304338216782,
0.04320775717496872,
-0.02735821343958378,
0.015610155649483204,
0.04536393657326698,
0.1202131137251854,
-0.13626588881015778,
0.10755429416894913,
0.011750430800020695,
0.03218409791588783,
0.053683824837207794,
-0.047263406217098236,
-0.0986589565873146,
-0.05388704314827919,
0.11394146829843521,
0.055498428642749786,
-0.14433886110782623,
0.08582137525081635,
-0.03590588644146919,
-0.07768632471561432,
0.09562955051660538,
-0.07783804088830948,
-0.029836025089025497,
-0.010638023726642132,
-0.0553855337202549,
0.0748240128159523,
-0.030897673219442368,
0.02207898162305355,
-0.13438960909843445,
0.08390969038009644,
-0.0312205757945776,
0.013380110263824463,
-0.04239075630903244,
-0.11094982177019119,
-0.023038282990455627,
-0.024966733530163765,
0.0027354604098945856,
-0.07659904658794403,
-0.08751218765974045,
-0.018575472757220268,
-0.00037600897485390306,
0.0039219930768013,
0.005161586683243513,
-0.03333861753344536,
-0.04812771826982498,
0.007926588878035545,
-0.03247430548071861,
-0.022781401872634888,
-0.047759056091308594,
0.06951569020748138,
0.005744238384068012,
0.07966412603855133,
-0.11921078711748123,
0.0375504195690155,
-0.11628622561693192,
0.003976521547883749,
-0.19865445792675018,
0.08810345083475113,
-0.03010607324540615,
-0.024045463651418686,
-0.08252110332250595,
-0.10076611489057541,
0.08453718572854996,
-0.037602730095386505,
0.05687541142106056,
0.021119683980941772,
-0.1513606160879135,
-0.0280594564974308,
0.07246381789445877,
-0.1435886174440384,
-0.07005633413791656,
0.14800740778446198,
-0.05355788394808769,
-0.012599180452525616,
0.10472472757101059,
0.24680696427822113,
0.06864138692617416,
-0.115459144115448,
0.002182847587391734,
-0.07120952010154724,
-0.055953312665224075,
-0.011412027291953564,
0.07033173739910126,
-0.007981128990650177,
-0.09748225659132004,
0.03139667958021164,
-0.07419820129871368,
-0.0755603164434433,
-0.0535920076072216,
-0.050287120044231415,
-0.03864578157663345,
-0.07883580774068832,
0.08506106585264206,
0.014793084934353828,
0.04600638896226883,
-0.08664282411336899,
0.0007936678011901677,
0.06020769104361534,
0.12311746925115585,
-0.08393516391515732,
0.0064624035730957985,
-0.19214501976966858,
0.12925073504447937,
-0.04039956256747246,
0.0019098258344456553,
-0.19906307756900787,
0.1011144369840622,
0.044920649379491806,
0.07228430360555649,
0.037544816732406616,
-0.09430503845214844,
-0.02294512279331684,
0.06235511973500252,
-0.012267032638192177,
0.0013812849065288901,
0.06897107511758804,
0.049366917461156845,
-0.07433976978063583,
-0.08907268196344376,
-0.036496132612228394,
-0.029769981279969215,
0.0060966601595282555,
-0.03748583793640137,
-0.00018639916379470378,
0.04337640851736069,
0.06191014498472214,
-0.024750441312789917,
0.023248309269547462,
0.05430964380502701,
0.056539375334978104,
-0.007423455361276865,
0.008164120838046074,
0.07438626140356064,
0.009387977421283722,
-0.08485276997089386,
0.07064668089151382,
-0.09940288960933685,
0.056644562631845474,
0.10930144041776657,
0.07269710302352905,
-0.04599561542272568,
-0.07778116315603256,
0.009513111785054207,
-0.001652232022024691,
-0.10258394479751587,
0.008135242387652397,
0.23082050681114197,
-0.021323829889297485,
0.10322938114404678,
-0.12693676352500916,
0.012346827425062656,
0.029339225962758064,
-0.06236248090863228,
0.01175885833799839,
0.10940025001764297,
-0.02031717263162136,
-0.21591272950172424,
0.012523381970822811,
0.0093755591660738,
-0.05301092937588692,
0.09742612391710281,
-0.052374593913555145,
-0.04592711478471756,
-0.031080828979611397,
-0.02494235336780548,
0.01955837942659855,
0.03782670572400093,
-0.09369199723005295,
-0.05175065994262695,
0.06586422771215439,
0.0013654787326231599,
0.031367603689432144,
-0.11214196681976318,
0.04862585663795471,
0.006046770606189966,
-0.03914830833673477,
-0.11638589203357697,
0.04003716632723808,
0.027571482583880424,
0.09737939387559891,
-0.024330923333764076,
-0.1074586734175682,
0.06444653123617172,
-0.002571752993389964,
-0.12555578351020813,
0.1413464993238449,
-0.07980014383792877,
-0.20371921360492706,
-0.10776136815547943,
-0.09347127377986908,
-0.10028551518917084,
0.004309799522161484,
0.023052459582686424,
-0.023575160652399063,
-0.05464545264840126,
-0.07505571097135544,
-0.041321784257888794,
0.010531340725719929,
0.018901865929365158,
0.02291889116168022,
-0.047417037189006805,
-0.006161092314869165,
-0.0686081200838089,
-0.03484796732664108,
-0.11096476763486862,
-0.0035572554916143417,
0.07952506840229034,
-0.14997340738773346,
0.061379872262477875,
0.1781519204378128,
-0.10205525904893875,
0.07005901634693146,
-0.06713870912790298,
0.171706423163414,
0.0015764726558700204,
-0.04835685342550278,
0.17685367166996002,
-0.02711435779929161,
0.044664736837148666,
0.14086982607841492,
0.013678413815796375,
-0.04658481851220131,
0.04158034920692444,
-0.06820154935121536,
-0.06337901204824448,
-0.1637355238199234,
-0.10060524195432663,
-0.006976444274187088,
-0.052097566425800323,
0.03718118742108345,
0.012095245532691479,
0.08521449565887451,
0.06779635697603226,
-0.00021335974452085793,
-0.01463509351015091,
-0.004163027741014957,
0.05249495059251785,
0.15132662653923035,
0.059516724199056625,
0.14064325392246246,
-0.01485395897179842,
-0.028465569019317627,
0.04887242987751961,
-0.013213589787483215,
0.21143953502178192,
-0.018981145694851875,
0.04967639967799187,
0.07429789751768112,
0.1303548514842987,
0.17571130394935608,
0.08069849759340286,
-0.08632944524288177,
0.016925664618611336,
-0.017684316262602806,
-0.07703946530818939,
-0.06323251128196716,
-0.008294342085719109,
0.010225367732346058,
0.03364655375480652,
-0.1443578004837036,
0.021160466596484184,
0.03444235399365425,
0.13759854435920715,
0.0474715530872345,
-0.26095378398895264,
-0.09051156789064407,
-0.026785477995872498,
-0.029347462579607964,
-0.046604860574007034,
0.07715429365634918,
0.050127092748880386,
-0.10014142096042633,
0.08211904764175415,
-0.015255074016749859,
0.11078037321567535,
-0.01874212920665741,
0.04622495174407959,
-0.11109285801649094,
0.020130978897213936,
-0.02773834764957428,
0.09499301761388779,
-0.2279680073261261,
0.1257106363773346,
0.025763794779777527,
0.08761399239301682,
-0.11235858500003815,
-0.05149032920598984,
0.06143805384635925,
0.1303148716688156,
0.1001991480588913,
-0.0024963964242488146,
-0.05110112577676773,
-0.11695282906293869,
-0.10062317550182343,
0.013358081690967083,
0.04148257151246071,
0.11237289011478424,
0.06454280763864517,
0.013220859691500664,
0.030416104942560196,
-0.024896347895264626,
-0.03290460631251335,
-0.09902677685022354,
-0.06323996931314468,
0.016317488625645638,
0.0903436690568924,
-0.015319815836846828,
-0.04426228627562523,
-0.07610173523426056,
-0.011365123093128204,
0.11328233033418655,
0.06774908304214478,
-0.1006547212600708,
-0.09261278808116913,
-0.019633222371339798,
0.12389468401670456,
-0.04737228900194168,
-0.0008552870131097734,
-0.00476390914991498,
0.11564792692661285,
-0.019461333751678467,
-0.15126299858093262,
0.028926517814397812,
-0.049500711262226105,
-0.10788290947675705,
-0.0016511556459590793,
0.1346607357263565,
0.06094275042414665,
0.07042260468006134,
0.10637157410383224,
0.02274175174534321,
-0.023618146777153015,
-0.1120285838842392,
-0.04351985454559326,
0.013411164283752441,
0.11153265088796616,
0.07523495703935623,
0.01402360387146473,
-0.21751895546913147,
-0.11603789776563644,
-0.011203646659851074,
0.11818934231996536,
0.074376679956913,
-0.07648736983537674,
0.1396569162607193,
0.21322326362133026,
0.01142018474638462,
-0.19900159537792206,
-0.0612676665186882,
0.03274376317858696,
0.06521406024694443,
-0.08662565797567368,
-0.02898673713207245,
0.09796290844678879,
0.054804716259241104,
-0.012256043031811714,
-0.08484741300344467,
-0.2800346910953522,
-0.1273641586303711,
0.21800652146339417,
0.06987348943948746,
0.20492376387119293,
-0.06937836110591888,
-0.08983754366636276,
-0.027860300615429878,
-0.02715272642672062,
0.17006821930408478,
-0.15529361367225647,
0.12284978479146957,
-0.04870416596531868,
0.054009538143873215,
0.02861977182328701,
-0.03278249129652977,
0.09101812541484833,
0.07354993373155594,
0.022615531459450722,
-0.011186006478965282,
-0.05708881840109825,
0.08383561670780182,
-0.035117167979478836,
0.1630159169435501,
-0.005738324951380491,
0.09419333189725876,
-0.07308892905712128,
-0.0536956824362278,
-0.05785539001226425,
0.005922617856413126,
0.016006268560886383,
-0.02888711355626583,
-0.14393211901187897,
0.02487490139901638,
0.016131268814206123,
-0.04162345081567764,
0.017563939094543457,
-0.0662294253706932,
0.025066878646612167,
0.16059550642967224,
0.15146982669830322,
-0.23174510896205902,
0.019380511716008186,
0.0313180536031723,
-0.06445503979921341,
0.133561909198761,
-0.023096511140465736,
0.05442905053496361,
0.14627860486507416,
0.025312917307019234,
0.07843201607465744,
0.058446530252695084,
-0.0735020786523819,
0.011329044587910175,
0.0015448725316673517,
-0.15728600323200226,
-0.0420571006834507,
-0.015876268967986107,
0.08787078410387039,
0.01553009171038866,
0.11112360656261444,
0.056095872074365616,
-0.0616544671356678,
-0.038808051496744156,
-0.004913345444947481,
-0.03221581503748894,
-0.006568421144038439,
0.22608518600463867,
0.009255082346498966,
0.05592380091547966,
-0.1536523401737213,
-0.000672482477966696,
0.061268772929906845,
-0.029205815866589546,
0.04367532208561897,
0.012088584713637829,
-0.18003246188163757,
-0.03139329329133034,
-0.034626901149749756,
0.12035614997148514,
-0.06105205789208412,
-0.15269361436367035,
-0.05567214637994766,
-0.15136006474494934,
0.051501065492630005,
0.27652841806411743,
0.13085557520389557,
0.020048286765813828,
-0.09523288160562515,
-0.11221068352460861,
-0.09075932204723358,
0.05217522755265236,
0.05295729264616966,
0.0403858982026577,
-0.06532883644104004,
0.10575677454471588,
0.03722328320145607,
0.07724795490503311,
-0.08226818591356277,
-0.05402373895049095,
-0.11493637412786484,
0.06135110184550285,
-0.18633927404880524,
0.1160850003361702,
-0.07655299454927444,
-0.012456739321351051,
0.02758924849331379,
-0.004311908036470413,
0.0038681684527546167,
0.06306301802396774,
-0.0340987928211689,
0.03172518312931061,
0.01016022264957428,
-0.007636752910912037,
-0.09308304637670517,
-0.0021395760122686625,
0.024051466956734657,
-0.03917359933257103,
0.06744485348463058,
0.0793411061167717,
-0.09615593403577805,
0.008367708884179592,
-0.05388360098004341,
-0.09791062772274017,
0.06305703520774841,
0.07804124802350998,
0.055104855448007584,
-0.17718081176280975,
0.02241651341319084,
0.11311186850070953,
-0.020218467339873314,
0.07026556134223938,
0.19547413289546967,
-0.04685650020837784,
-0.07889742404222488,
-0.06801943480968475,
-0.02251015231013298,
-0.08201078325510025,
0.03668225556612015,
0.1417868435382843,
0.12482108920812607,
0.19181334972381592,
-0.07603544741868973,
-0.04560049995779991,
-0.035279255360364914,
-0.009364145807921886,
-0.04291379451751709,
-0.104620561003685,
-0.07931075990200043,
-0.000256453815381974,
0.03323740512132645,
-0.005111584905534983,
0.1707601696252823,
-0.06463911384344101,
0.012139550410211086,
-0.015955166891217232,
0.09962295740842819,
0.05573895573616028,
-0.001413240097463131,
0.19644306600093842,
0.04535206779837608,
-0.029542449861764908,
0.037627626210451126,
0.0384332649409771,
0.007754185702651739,
0.11901188641786575,
0.13140638172626495,
-0.020197907462716103,
0.08534015715122223,
0.05543886870145798,
0.013470366597175598,
0.09679514914751053,
-0.06653296947479248,
-0.06777936965227127,
-0.019290169700980186,
-0.006058680359274149,
0.06763419508934021,
0.05919826030731201,
0.214561328291893,
-0.08942742645740509,
0.07408256083726883,
-0.021500568836927414,
-0.1294838786125183,
-0.10519284754991531,
-0.13348151743412018,
-0.07977814972400665,
-0.08657574653625488,
-0.0352262519299984,
-0.11228221654891968,
-0.034917958080768585,
0.0785641223192215,
0.04930705949664116,
-0.01611304096877575,
0.09388638287782669,
-0.12834642827510834,
-0.00559699023142457,
0.05187838897109032,
-0.07805608212947845,
-0.03876786679029465,
0.05486898869276047,
0.00531820859760046,
0.09550444036722183,
-0.02459673024713993,
0.08494468033313751,
0.05549023672938347,
0.06804957240819931,
-0.025702612474560738,
-0.07776645570993423,
-0.038345906883478165,
0.009792694821953773,
-0.03084171749651432,
0.04468538612127304,
0.1123238354921341,
0.10638823360204697,
-0.0694882869720459,
-0.005011904984712601,
0.08927647024393082,
-0.035480789840221405,
-0.14908550679683685,
-0.13916538655757904,
0.29686927795410156,
0.03365116938948631,
-0.00003314550485811196,
0.07397705316543579,
-0.0622234046459198,
-0.01079955417662859,
0.22356101870536804,
0.11305245012044907,
-0.014752978459000587,
-0.02149084396660328,
-0.04855296388268471,
0.0011205329792574048,
0.011258482933044434,
0.10686133056879044,
0.08164966106414795,
0.2159820795059204,
-0.0342121496796608,
-0.01691192016005516,
-0.1125471442937851,
-0.03764982149004936,
-0.12078142166137695,
0.023372415453195572,
0.07409114390611649,
-0.06630591303110123,
-0.050044890493154526,
0.08394981920719147,
-0.10084173828363419,
0.031394749879837036,
-0.039915502071380615,
-0.011972324922680855,
-0.08021676540374756,
0.019556548446416855,
-0.06922713667154312,
-0.03576164320111275,
0.015533876605331898,
-0.03586198017001152,
0.12115269154310226,
-0.05290526896715164,
0.01276475004851818,
-0.11681853234767914,
0.004578765947371721,
0.13216473162174225,
0.013679607771337032,
0.09206827729940414,
0.05559595301747322,
0.18936114013195038,
0.08049326390028,
0.049356963485479355,
-0.057364605367183685,
0.16632294654846191,
-0.04193338751792908,
0.025436745956540108,
0.06520595401525497,
0.08681439608335495,
0.0590834841132164,
0.030583353713154793,
-0.009437049739062786,
-0.09619362652301788,
-0.004696209449321032,
-0.09858842194080353,
0.052716679871082306,
-0.07358377426862717,
0.059970397502183914,
-0.04446300491690636,
0.09665195643901825,
0.06773977726697922,
-0.016902809962630272,
0.05829642340540886,
-0.045943327248096466,
0.027383318170905113,
-0.009645084850490093,
-0.10976391285657883,
-0.022873250767588615,
-0.17082472145557404,
0.02061416208744049,
-0.01278963778167963,
-0.020959440618753433,
-0.25617164373397827,
-0.043953727930784225,
-0.06271214783191681,
-0.05101098492741585,
-0.05042434111237526,
0.035668544471263885,
0.015745429322123528,
0.04753044247627258,
-0.05294554680585861,
0.07583747059106827,
-0.0088244853541255,
0.06404055655002594,
-0.13853493332862854,
-0.09671146422624588
] |
null | null | transformers |
## Model description
This model is a fine-tuned version of bert-base-chinese for the purpose of medicine name recognition. We fine-tuned bert-base-chinese on a 500M dataset including 100K+ authorized medical articles on which we labeled all the medicine names. The model achieves 92% accuracy on our test dataset.
## Intended use
```python
>>> from transformers import (AutoModelForTokenClassification, AutoTokenizer)
>>> from transformers import pipeline
>>> hub_model_id = "9pinus/macbert-base-chinese-medicine-recognition"
>>> model = AutoModelForTokenClassification.from_pretrained(hub_model_id)
>>> tokenizer = AutoTokenizer.from_pretrained(hub_model_id)
>>> classifier = pipeline('ner', model=model, tokenizer=tokenizer)
>>> result = classifier("如果病情较重,可适当口服甲硝唑片、环酯红霉素片、吲哚美辛片等药物进行抗感染镇痛。")
>>> for item in result:
>>> if item['entity'] == 1 or item['entity'] == 2:
>>> print(item)
{'entity': 1, 'score': 0.99999595, 'index': 13, 'word': '甲', 'start': 12, 'end': 13}
{'entity': 2, 'score': 0.9999957, 'index': 14, 'word': '硝', 'start': 13, 'end': 14}
{'entity': 2, 'score': 0.99999166, 'index': 15, 'word': '唑', 'start': 14, 'end': 15}
{'entity': 2, 'score': 0.99898833, 'index': 16, 'word': '片', 'start': 15, 'end': 16}
{'entity': 1, 'score': 0.9999864, 'index': 18, 'word': '环', 'start': 17, 'end': 18}
{'entity': 2, 'score': 0.99999404, 'index': 19, 'word': '酯', 'start': 18, 'end': 19}
{'entity': 2, 'score': 0.99999475, 'index': 20, 'word': '红', 'start': 19, 'end': 20}
{'entity': 2, 'score': 0.9999964, 'index': 21, 'word': '霉', 'start': 20, 'end': 21}
{'entity': 2, 'score': 0.9999951, 'index': 22, 'word': '素', 'start': 21, 'end': 22}
{'entity': 2, 'score': 0.9990088, 'index': 23, 'word': '片', 'start': 22, 'end': 23}
{'entity': 1, 'score': 0.9999975, 'index': 25, 'word': '吲', 'start': 24, 'end': 25}
{'entity': 2, 'score': 0.9999957, 'index': 26, 'word': '哚', 'start': 25, 'end': 26}
{'entity': 2, 'score': 0.9999945, 'index': 27, 'word': '美', 'start': 26, 'end': 27}
{'entity': 2, 'score': 0.9999933, 'index': 28, 'word': '辛', 'start': 27, 'end': 28}
{'entity': 2, 'score': 0.99949837, 'index': 29, 'word': '片', 'start': 28, 'end': 29}
```
## Training and evaluation data
### Framework versions
- Transformers 4.15.0
- Pytorch 1.10.1+cu113
- Datasets 1.17.0
- Tokenizers 0.10.3
| {"language": ["zh"], "license": "apache-2.0", "tags": ["Token Classification"]} | token-classification | 9pinus/macbert-base-chinese-medicine-recognition | [
"transformers",
"pytorch",
"bert",
"token-classification",
"Token Classification",
"zh",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"zh"
] | TAGS
#transformers #pytorch #bert #token-classification #Token Classification #zh #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
|
## Model description
This model is a fine-tuned version of bert-base-chinese for the purpose of medicine name recognition. We fine-tuned bert-base-chinese on a 500M dataset including 100K+ authorized medical articles on which we labeled all the medicine names. The model achieves 92% accuracy on our test dataset.
## Intended use
## Training and evaluation data
### Framework versions
- Transformers 4.15.0
- Pytorch 1.10.1+cu113
- Datasets 1.17.0
- Tokenizers 0.10.3
| [
"## Model description\r\nThis model is a fine-tuned version of bert-base-chinese for the purpose of medicine name recognition. We fine-tuned bert-base-chinese on a 500M dataset including 100K+ authorized medical articles on which we labeled all the medicine names. The model achieves 92% accuracy on our test dataset.",
"## Intended use",
"## Training and evaluation data",
"### Framework versions\r\n\r\n- Transformers 4.15.0\r\n- Pytorch 1.10.1+cu113\r\n- Datasets 1.17.0\r\n- Tokenizers 0.10.3"
] | [
"TAGS\n#transformers #pytorch #bert #token-classification #Token Classification #zh #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"## Model description\r\nThis model is a fine-tuned version of bert-base-chinese for the purpose of medicine name recognition. We fine-tuned bert-base-chinese on a 500M dataset including 100K+ authorized medical articles on which we labeled all the medicine names. The model achieves 92% accuracy on our test dataset.",
"## Intended use",
"## Training and evaluation data",
"### Framework versions\r\n\r\n- Transformers 4.15.0\r\n- Pytorch 1.10.1+cu113\r\n- Datasets 1.17.0\r\n- Tokenizers 0.10.3"
] | [
52,
79,
5,
5,
33
] | [
"passage: TAGS\n#transformers #pytorch #bert #token-classification #Token Classification #zh #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n## Model description\r\nThis model is a fine-tuned version of bert-base-chinese for the purpose of medicine name recognition. We fine-tuned bert-base-chinese on a 500M dataset including 100K+ authorized medical articles on which we labeled all the medicine names. The model achieves 92% accuracy on our test dataset.## Intended use## Training and evaluation data### Framework versions\r\n\r\n- Transformers 4.15.0\r\n- Pytorch 1.10.1+cu113\r\n- Datasets 1.17.0\r\n- Tokenizers 0.10.3"
] | [
-0.10008824616670609,
0.0583498440682888,
-0.0012850126950070262,
-0.0324225015938282,
0.14580722153186798,
0.008509109728038311,
0.08358023315668106,
0.16060380637645721,
0.02622121386229992,
0.06627702713012695,
0.07941853255033493,
0.05941128358244896,
0.026392901316285133,
0.12612700462341309,
-0.03292563185095787,
-0.28547903895378113,
0.07013771682977676,
0.1322493702173233,
0.027098756283521652,
0.09256519377231598,
0.07720113545656204,
-0.09740232676267624,
0.07541664689779282,
0.11988843232393265,
-0.08372959494590759,
-0.03414381667971611,
0.07461261004209518,
-0.1373441517353058,
0.1064811497926712,
-0.03210313618183136,
0.08083254098892212,
0.023674514144659042,
0.0712384358048439,
-0.13484255969524384,
0.002925856038928032,
-0.07212639600038528,
0.027779802680015564,
0.1137583777308464,
-0.014350853860378265,
-0.09530319273471832,
0.11327877640724182,
-0.0752488374710083,
0.08798011392354965,
-0.00024387550365645438,
-0.008683793246746063,
-0.28481677174568176,
-0.06648888438940048,
0.15540947020053864,
0.048692334443330765,
0.05238839238882065,
0.03571278974413872,
0.17543523013591766,
-0.029093502089381218,
0.031516365706920624,
0.12993855774402618,
-0.3558022975921631,
-0.011337723582983017,
0.07743102312088013,
0.12695758044719696,
-0.07701882719993591,
-0.021711789071559906,
0.053986188024282455,
-0.0018418028485029936,
0.036570727825164795,
0.07640603929758072,
-0.032485563308000565,
0.012427485547959805,
0.03759477660059929,
-0.09459999203681946,
0.00783353578299284,
0.21109403669834137,
-0.09171595424413681,
-0.06317519396543503,
-0.07704351097345352,
0.008098568767309189,
-0.10580489039421082,
-0.051251426339149475,
-0.10436323285102844,
0.006261475849896669,
-0.060994211584329605,
0.03263627365231514,
0.06201346218585968,
-0.045538097620010376,
-0.115162692964077,
-0.06656131893396378,
0.14191284775733948,
0.04068968817591667,
0.11509803682565689,
-0.08170938491821289,
0.041327062994241714,
-0.0906011238694191,
-0.07335632294416428,
-0.028574641793966293,
-0.0610475055873394,
-0.07700930535793304,
-0.057738326489925385,
-0.06672634929418564,
0.04140278324484825,
0.12115468829870224,
0.1317911595106125,
-0.01159863080829382,
0.0063239955343306065,
0.03647799417376518,
-0.012556060217320919,
0.00489436462521553,
0.18070487678050995,
-0.08143829554319382,
0.05706053972244263,
0.010007629171013832,
0.04475432261824608,
0.0006566372467204928,
0.014666778035461903,
-0.13594141602516174,
-0.03856615349650383,
0.10259732604026794,
0.03180164843797684,
-0.1687418669462204,
0.09655319154262543,
-0.05211017653346062,
-0.038565848022699356,
0.10705927759408951,
-0.05639146640896797,
0.010210852138698101,
0.035186752676963806,
-0.016316259279847145,
0.05417919531464577,
0.051158733665943146,
-0.01450392883270979,
-0.05896245315670967,
0.07412586361169815,
-0.040569767355918884,
-0.02645559422671795,
-0.0816974863409996,
-0.0714128389954567,
0.021740399301052094,
-0.035279542207717896,
0.05315696448087692,
-0.13888520002365112,
-0.07017809897661209,
-0.015839317813515663,
0.02196531556546688,
-0.03349935635924339,
0.03531433269381523,
-0.007769106421619654,
-0.023315992206335068,
0.016469324007630348,
-0.002548176096752286,
-0.018315289169549942,
-0.0635286495089531,
0.04057592898607254,
-0.022814622148871422,
0.0912114754319191,
-0.17668282985687256,
0.025801394134759903,
-0.1024414449930191,
0.03071686439216137,
-0.12029077857732773,
-0.009565412066876888,
-0.05029157176613808,
0.015739835798740387,
-0.10549240559339523,
-0.07630722969770432,
0.02619790844619274,
-0.03679751977324486,
0.044818393886089325,
0.036962710320949554,
-0.08765240013599396,
-0.06137006729841232,
0.136877179145813,
-0.09641584753990173,
-0.17950905859470367,
0.04366574436426163,
-0.02649616077542305,
0.03746194764971733,
0.09254931658506393,
0.16272982954978943,
0.134599506855011,
-0.11776618659496307,
-0.015649162232875824,
-0.06944408267736435,
-0.03771607577800751,
-0.13366760313510895,
0.13472490012645721,
-0.015544052235782146,
-0.15815788507461548,
0.06218236684799194,
-0.12326391786336899,
-0.06612769514322281,
-0.10559072345495224,
-0.06403466314077377,
-0.00022682979761157185,
-0.1096697524189949,
0.059559088200330734,
-0.02249329537153244,
0.09393047541379929,
-0.05512265861034393,
0.0006333356723189354,
0.13647246360778809,
0.11752524226903915,
-0.030963346362113953,
-0.0036142298486083746,
-0.1710992306470871,
0.10557448863983154,
0.015441886149346828,
0.023121170699596405,
-0.15840622782707214,
-0.0085142245516181,
0.07881531119346619,
0.01225237362086773,
-0.04416215419769287,
-0.12568318843841553,
-0.026303667575120926,
0.0331440344452858,
-0.009909198619425297,
0.02538287080824375,
0.05482572317123413,
0.04022926092147827,
-0.0668676570057869,
-0.10104602575302124,
-0.07022412121295929,
-0.06396093964576721,
0.0925200879573822,
-0.12518377602100372,
0.01649376004934311,
-0.0312466062605381,
0.03395618125796318,
-0.00587206706404686,
0.046947650611400604,
0.03134525939822197,
0.05953148379921913,
0.05327296257019043,
0.05500386282801628,
0.08355601131916046,
-0.03457872197031975,
-0.06584377586841583,
0.06765545904636383,
0.010195441544055939,
0.10642547905445099,
0.08070257306098938,
0.0029382924549281597,
-0.0032127462327480316,
-0.11652131378650665,
-0.02374635450541973,
0.006514212116599083,
-0.06730770319700241,
-0.02532568946480751,
0.11390477418899536,
-0.0012217048788443208,
0.1012173742055893,
-0.053712163120508194,
0.013568838126957417,
0.004430168773978949,
-0.0783248171210289,
0.00524536706507206,
0.05255357176065445,
0.04079173505306244,
-0.1435806304216385,
0.0009039451251737773,
0.11695844680070877,
-0.0706566646695137,
0.11045597493648529,
-0.05334934592247009,
-0.04629429802298546,
-0.034151073545217514,
-0.09967154264450073,
0.010424274951219559,
0.05062483623623848,
-0.20009267330169678,
-0.08879842609167099,
0.09693454951047897,
-0.038670387119054794,
0.020391225814819336,
-0.07977163046598434,
0.033453453332185745,
-0.010808601975440979,
0.005267447791993618,
-0.07483730465173721,
0.04092148691415787,
-0.03043331950902939,
0.13167977333068848,
0.040273267775774,
-0.12167727947235107,
0.07416991144418716,
0.0011999375419691205,
-0.13985590636730194,
0.1619400531053543,
-0.10714731365442276,
-0.15847089886665344,
-0.14853648841381073,
-0.12777221202850342,
-0.022505927830934525,
0.025818537920713425,
0.000548160111065954,
-0.017468838021159172,
-0.0410938635468483,
0.01917576789855957,
-0.05564138665795326,
0.047567762434482574,
0.0436522401869297,
-0.028005072847008705,
0.01247921958565712,
0.004795397631824017,
-0.05107461288571358,
-0.04277154058218002,
-0.13562892377376556,
-0.07997274398803711,
0.1314820498228073,
-0.13519637286663055,
0.05547281727194786,
0.17942042648792267,
-0.07696337252855301,
0.033412761986255646,
-0.057662975043058395,
0.08174361288547516,
-0.0017102876445278525,
-0.018163617700338364,
0.15526890754699707,
0.005212457850575447,
-0.02055155672132969,
0.10750763863325119,
0.06209804490208626,
-0.043564487248659134,
0.05066429451107979,
-0.07274831831455231,
-0.031213153153657913,
-0.2184465229511261,
-0.11011757701635361,
-0.03598776459693909,
-0.09458716958761215,
0.026913734152913094,
0.03601081296801567,
0.08306840062141418,
0.06678975373506546,
0.0781271755695343,
0.019068200141191483,
-0.027498580515384674,
0.062156081199645996,
0.18905192613601685,
0.048029717057943344,
0.14358747005462646,
0.03255957365036011,
-0.019195666536688805,
0.018391018733382225,
0.023527629673480988,
0.2390279769897461,
0.0807841345667839,
0.011118750087916851,
0.12155795842409134,
0.11182589828968048,
0.18783248960971832,
0.11765812337398529,
-0.01939554139971733,
0.023874331265687943,
0.01700638420879841,
-0.08489097654819489,
-0.09023705869913101,
0.015154396183788776,
-0.09394431859254837,
-0.025027405470609665,
-0.07415527105331421,
-0.013242918998003006,
0.03584901988506317,
0.18343153595924377,
0.0850052684545517,
-0.28110599517822266,
-0.05793685466051102,
-0.01633009873330593,
-0.05573504418134689,
-0.1098446324467659,
0.0572136752307415,
-0.01081096287816763,
-0.1382356733083725,
0.10171612352132797,
-0.003665992058813572,
0.09572957456111908,
0.016097305342555046,
0.06547074764966965,
0.046278826892375946,
-0.10109122842550278,
-0.004378360230475664,
0.10593730956315994,
-0.2543301284313202,
0.1802850067615509,
0.0074990289285779,
0.028280097991228104,
-0.08248311281204224,
-0.024286147207021713,
0.06069960072636604,
0.20736204087734222,
0.08680388331413269,
0.012439483776688576,
-0.04590398445725441,
-0.12237419933080673,
-0.09371665865182877,
0.03910432755947113,
0.030826617032289505,
-0.0019045595545321703,
0.06261409819126129,
-0.014562918804585934,
-0.014957387000322342,
-0.018358713015913963,
0.007453365251421928,
-0.061482999473810196,
-0.014346073381602764,
-0.0014882632531225681,
0.02261321432888508,
0.114014632999897,
-0.059025950729846954,
-0.06798935681581497,
-0.06065938621759415,
-0.02598237432539463,
-0.0052696214988827705,
-0.08106474578380585,
-0.1402750313282013,
0.06998850405216217,
0.07037035375833511,
-0.05951995402574539,
0.0553007498383522,
0.00002289076473971363,
0.06909678876399994,
0.02216959185898304,
-0.16440792381763458,
0.03482780605554581,
-0.07452671974897385,
-0.14451496303081512,
-0.04710014536976814,
0.15089385211467743,
0.030245831236243248,
0.07386565953493118,
0.09039653092622757,
0.04661981388926506,
-0.015522298403084278,
-0.04438314959406853,
0.06387403607368469,
0.11815980821847916,
0.08246471732854843,
0.07322516292333603,
-0.16269925236701965,
-0.21745899319648743,
-0.05565143749117851,
0.013439374044537544,
0.09478738158941269,
0.036071766167879105,
-0.07635056227445602,
0.08219694346189499,
0.19232246279716492,
-0.05377380922436714,
-0.2731849253177643,
-0.033985625952482224,
0.08388932794332504,
0.028932467103004456,
-0.12095978111028671,
-0.1875915676355362,
0.2526993751525879,
0.07444741576910019,
-0.048558007925748825,
-0.011763368733227253,
-0.05509253963828087,
-0.10348624736070633,
0.2043074071407318,
0.04134908691048622,
0.16963012516498566,
-0.10180854797363281,
-0.09291976690292358,
-0.004658864811062813,
-0.13464099168777466,
0.1805287003517151,
-0.09093043953180313,
0.05314894765615463,
-0.09565655887126923,
0.009874612092971802,
0.03492654114961624,
-0.010151577182114124,
0.08534915745258331,
0.1027546375989914,
0.044988226145505905,
0.03261469677090645,
-0.05231226608157158,
0.15145550668239594,
-0.011850954033434391,
0.13145959377288818,
0.08984650671482086,
0.013608281500637531,
-0.11593601107597351,
-0.05260787904262543,
-0.09744926542043686,
0.030834835022687912,
0.04159638285636902,
-0.04784030467271805,
-0.08990875631570816,
0.062394414097070694,
-0.029575752094388008,
-0.022564638406038284,
0.07287038117647171,
-0.07191925495862961,
0.004576593637466431,
0.06839311867952347,
0.1479274183511734,
-0.12659934163093567,
0.08799697458744049,
0.036292754113674164,
-0.11366430670022964,
0.13452109694480896,
-0.03859904035925865,
0.032515522092580795,
0.12151733785867691,
0.03730165213346481,
0.07009018957614899,
0.06408887356519699,
-0.05041349306702614,
-0.05908213183283806,
0.09026767313480377,
-0.10090763121843338,
-0.04287393018603325,
-0.05089376121759415,
0.08146248012781143,
-0.07256798446178436,
0.1359252631664276,
0.08336634188890457,
-0.034314580261707306,
-0.06962207704782486,
-0.03356353938579559,
-0.018447188660502434,
-0.09524893015623093,
0.21769367158412933,
0.031504012644290924,
0.05999063700437546,
-0.13688163459300995,
-0.02632867358624935,
0.06436499208211899,
0.03660782054066658,
0.026983210816979408,
-0.001386594376526773,
-0.21095608174800873,
-0.07734253257513046,
-0.030365217477083206,
0.2228611558675766,
-0.09682326018810272,
-0.18829290568828583,
0.009561770595610142,
-0.17521609365940094,
0.051800042390823364,
0.24538172781467438,
0.09652071446180344,
0.024802090600132942,
-0.05365926772356033,
-0.058462996035814285,
-0.07721272855997086,
0.09229842573404312,
-0.04673067107796669,
0.07822077721357346,
-0.043595802038908005,
0.01619868166744709,
-0.012522962875664234,
0.11835504323244095,
-0.10016072541475296,
-0.022152869030833244,
-0.12049949914216995,
0.03399716317653656,
-0.2016882449388504,
0.06092396005988121,
-0.006762639153748751,
-0.04740430414676666,
0.03227106109261513,
-0.005244756583124399,
-0.0102732814848423,
-0.007604730315506458,
-0.0823289155960083,
0.0041659558191895485,
0.04473547264933586,
0.05583024024963379,
-0.10024576634168625,
-0.028492823243141174,
0.06401816010475159,
-0.0355457179248333,
0.12502598762512207,
0.10002049803733826,
-0.019665764644742012,
0.09615127742290497,
0.01931011490523815,
-0.07761944085359573,
0.08639757335186005,
0.11996754258871078,
0.03658932074904442,
-0.1722765415906906,
0.01880730129778385,
0.0773601233959198,
-0.05783316120505333,
0.0928349643945694,
0.09899335354566574,
-0.056477200239896774,
-0.07906550168991089,
-0.10280893743038177,
0.019601736217737198,
-0.04300432652235031,
-0.006226096302270889,
0.08221343159675598,
0.10840660333633423,
0.1434839814901352,
-0.06816773116588593,
-0.06971137970685959,
-0.06005775183439255,
0.011141333729028702,
-0.06493028998374939,
-0.12095057219266891,
-0.16052889823913574,
-0.015275205485522747,
0.04220211133360863,
0.021891362965106964,
0.1925266683101654,
-0.004481610842049122,
-0.03849861025810242,
-0.012916053645312786,
0.15860755741596222,
0.04103802889585495,
0.02679557166993618,
0.2697506844997406,
0.10547248274087906,
-0.02248094417154789,
0.008593450300395489,
0.05797313153743744,
0.002447110367938876,
0.0900149866938591,
0.12792979180812836,
0.06784060597419739,
0.07477074861526489,
0.0055628749541938305,
0.08256828784942627,
0.04951297491788864,
-0.10043292492628098,
-0.10806385427713394,
-0.05712195485830307,
0.006281862035393715,
0.03957553580403328,
0.058671727776527405,
0.14995793998241425,
-0.11612341552972794,
0.06939014047384262,
-0.05985512584447861,
-0.10742123425006866,
-0.12439292669296265,
-0.16226157546043396,
-0.08074449747800827,
-0.11003060638904572,
-0.03884474188089371,
-0.10441336035728455,
-0.1116456389427185,
0.14785823225975037,
0.022822564467787743,
-0.014184744097292423,
0.0952349528670311,
-0.18897630274295807,
0.05855529010295868,
0.09510250389575958,
-0.04873715713620186,
-0.037753649055957794,
-0.011343114078044891,
-0.006862177979201078,
0.014434448443353176,
-0.011064304038882256,
0.020361166447401047,
-0.008525186218321323,
-0.00387066463008523,
-0.0320887416601181,
-0.00783103983849287,
-0.03414170816540718,
0.0222336295992136,
-0.04460960626602173,
-0.052238404750823975,
0.04723422974348068,
0.09240014851093292,
-0.03837047517299652,
0.050472185015678406,
0.18219740688800812,
-0.03564397990703583,
-0.1296520233154297,
-0.1389397382736206,
0.27589166164398193,
0.06419879198074341,
-0.003479261649772525,
0.03948677331209183,
-0.03427404537796974,
-0.014051830396056175,
0.23695427179336548,
0.19308091700077057,
0.03472721204161644,
-0.041521791368722916,
-0.02115052565932274,
0.00028859812300652266,
0.0027519806753844023,
0.13144834339618683,
0.0918666273355484,
0.1310877948999405,
-0.03785935416817665,
-0.026165101677179337,
-0.07362007349729538,
-0.04022970050573349,
-0.12259971350431442,
-0.019996829330921173,
0.13677413761615753,
-0.115134596824646,
-0.014069694094359875,
0.04377679526805878,
-0.11227540671825409,
-0.048703767359256744,
0.018153967335820198,
-0.03914322331547737,
-0.08971080929040909,
-0.07537441700696945,
-0.10490389913320541,
-0.0013739484129473567,
0.019659873098134995,
-0.03667290136218071,
0.08206089586019516,
0.11331884562969208,
-0.021106619387865067,
-0.1425751894712448,
-0.034785930067300797,
0.19746093451976776,
0.014904186129570007,
0.1190689206123352,
0.051003843545913696,
0.11800768226385117,
0.06971772760152817,
0.05951559171080589,
-0.05136489495635033,
0.13861791789531708,
-0.07329611480236053,
0.021413760259747505,
0.06652335822582245,
0.03517496585845947,
0.07407917082309723,
0.00467528123408556,
-0.010732688009738922,
-0.11200597137212753,
-0.057118821889162064,
-0.07565663009881973,
-0.029363952577114105,
-0.11272122710943222,
0.10626720637083054,
-0.05767858028411865,
0.09167739748954773,
0.10992476344108582,
-0.022918609902262688,
0.034275684505701065,
-0.061618901789188385,
0.06518477201461792,
0.056195683777332306,
-0.06868533790111542,
-0.04601999744772911,
-0.11774998903274536,
0.04075413569808006,
-0.1057591661810875,
-0.028056731447577477,
-0.255863219499588,
-0.0254267118871212,
-0.0691317692399025,
0.0036281461361795664,
-0.054626770317554474,
0.01832890324294567,
0.08596663177013397,
0.07337188720703125,
-0.048621583729982376,
-0.012889846228063107,
-0.00277291820384562,
0.08589035272598267,
-0.17888709902763367,
-0.09066279977560043
] |
null | null | transformers |
bert-base-cased model trained on quora question pair dataset. The task requires to predict whether the two given sentences (or questions) are `not_duplicate` (label 0) or `duplicate` (label 1). The model achieves 89% evaluation accuracy
| {"datasets": ["qqp"], "inference": false} | text-classification | A-bhimany-u08/bert-base-cased-qqp | [
"transformers",
"pytorch",
"bert",
"text-classification",
"dataset:qqp",
"autotrain_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #bert #text-classification #dataset-qqp #autotrain_compatible #region-us
|
bert-base-cased model trained on quora question pair dataset. The task requires to predict whether the two given sentences (or questions) are 'not_duplicate' (label 0) or 'duplicate' (label 1). The model achieves 89% evaluation accuracy
| [] | [
"TAGS\n#transformers #pytorch #bert #text-classification #dataset-qqp #autotrain_compatible #region-us \n"
] | [
34
] | [
"passage: TAGS\n#transformers #pytorch #bert #text-classification #dataset-qqp #autotrain_compatible #region-us \n"
] | [
-0.07639595866203308,
0.15844610333442688,
-0.007416972424834967,
0.045674730092287064,
0.1827675998210907,
0.042690448462963104,
0.07887647300958633,
0.1124083399772644,
0.08899042755365372,
-0.06591365486383438,
0.10096623748540878,
0.17310048639774323,
-0.017515087500214577,
0.1695394068956375,
-0.08987313508987427,
-0.2671073079109192,
0.0776154100894928,
0.024544991552829742,
-0.05817770957946777,
0.11576789617538452,
0.06354101747274399,
-0.08249620348215103,
0.059902824461460114,
-0.057841986417770386,
-0.11986196786165237,
0.015699520707130432,
0.027450809255242348,
-0.12939904630184174,
0.10120781511068344,
0.05007724091410637,
0.123371422290802,
0.07145141810178757,
-0.02909768931567669,
-0.16767868399620056,
0.048267316073179245,
-0.017169049009680748,
-0.10590314865112305,
0.06848398596048355,
0.09855376183986664,
-0.07331688702106476,
-0.08118580281734467,
0.05625980719923973,
-0.0027896196115761995,
0.05221889540553093,
-0.13684149086475372,
-0.08942385017871857,
-0.014410464093089104,
0.013524124398827553,
0.015709856525063515,
0.04241836816072464,
-0.018283594399690628,
0.14928609132766724,
-0.1813286989927292,
0.1151055321097374,
0.039250027388334274,
-0.292891263961792,
0.0028550897259265184,
0.07459211349487305,
0.00492808548733592,
0.10227924585342407,
-0.05948088690638542,
0.0441872738301754,
0.006706325802952051,
-0.001652271719649434,
-0.011897060088813305,
-0.07452276349067688,
-0.17429155111312866,
0.036305077373981476,
-0.09133797138929367,
-0.02824202924966812,
0.25151190161705017,
-0.03717564791440964,
0.06834767013788223,
0.03135482221841812,
-0.09881371259689331,
-0.018647650256752968,
0.015450122766196728,
0.009690034203231335,
-0.04058481380343437,
0.05963905155658722,
-0.016714902594685555,
0.003303287085145712,
-0.09014984220266342,
0.0018447746988385916,
-0.25724881887435913,
0.16614465415477753,
0.012585310265421867,
0.055762648582458496,
-0.16624636948108673,
0.04326195642352104,
0.03645157814025879,
-0.09033706039190292,
0.048132412135601044,
-0.12671029567718506,
-0.028149599209427834,
-0.015123715624213219,
-0.027184147387742996,
-0.010532688349485397,
0.13096345961093903,
0.1166793704032898,
0.03472759574651718,
0.051560137420892715,
-0.04446912556886673,
0.07775580137968063,
0.059545084834098816,
0.15267311036586761,
0.016199305653572083,
-0.0636044293642044,
0.04751678928732872,
-0.07919269800186157,
-0.04702364280819893,
-0.08626942336559296,
-0.16206951439380646,
-0.01923787221312523,
0.08223050832748413,
0.09723637253046036,
0.03236078470945358,
0.0949973315000534,
-0.06364263594150543,
-0.05860435217618942,
0.09571658074855804,
-0.05880500748753548,
-0.003363656345754862,
0.04792506992816925,
-0.018681000918149948,
0.026210568845272064,
-0.03076249361038208,
-0.003337552770972252,
-0.056723639369010925,
0.04020465910434723,
-0.05705472081899643,
-0.018170814961194992,
0.00636147428303957,
-0.09704280644655228,
0.010692516341805458,
-0.0969868078827858,
0.012725906446576118,
-0.1828993558883667,
-0.11082788556814194,
0.01948852278292179,
-0.009222231805324554,
0.004866632167249918,
-0.024511709809303284,
-0.0347353033721447,
0.01478519756346941,
0.0034429235383868217,
-0.05610628053545952,
-0.05775967985391617,
-0.08373748511075974,
0.1137273907661438,
-0.04927004501223564,
0.08028898388147354,
-0.15528364479541779,
0.08011126518249512,
-0.1159464418888092,
-0.02848133258521557,
-0.06931409984827042,
0.09414730221033096,
-0.0938224270939827,
0.09922517091035843,
-0.01006393413990736,
-0.029800791293382645,
-0.007990223355591297,
0.033826060593128204,
-0.07551605254411697,
0.17574922740459442,
-0.17128711938858032,
-0.12950970232486725,
0.19479365646839142,
-0.08386072516441345,
-0.13597683608531952,
0.09277140349149704,
-0.026904793456196785,
0.011887534521520138,
0.09862224757671356,
0.25362101197242737,
0.12802085280418396,
0.05586867406964302,
0.015788987278938293,
0.120335154235363,
-0.07435470819473267,
-0.11893437802791595,
0.03101946786046028,
0.0057636830024421215,
-0.13381488621234894,
0.05411090329289436,
0.05903542786836624,
0.08752921223640442,
-0.06281682103872299,
-0.0708916187286377,
0.011499307118356228,
-0.03467964753508568,
0.18032249808311462,
0.035708680748939514,
0.11938432604074478,
-0.0236260537058115,
0.02835230529308319,
-0.013938028365373611,
0.014863633550703526,
0.036854248493909836,
-0.005774556193500757,
-0.0885147675871849,
0.1255412995815277,
0.010113761760294437,
0.0521581768989563,
-0.21202579140663147,
-0.10339925438165665,
0.017418911680579185,
0.07265200465917587,
-0.0019762609153985977,
0.11298865079879761,
0.042279910296201706,
-0.032150525599718094,
-0.0083308769389987,
-0.047403186559677124,
0.1296146810054779,
0.029363518580794334,
-0.07217539101839066,
-0.07282453030347824,
0.06341497600078583,
-0.08242493122816086,
0.06750304996967316,
-0.04108455404639244,
0.005861204117536545,
0.06557925790548325,
0.0670519471168518,
0.024400167167186737,
0.08459356427192688,
-0.010625399649143219,
0.06178438663482666,
-0.045418787747621536,
0.023615404963493347,
0.10871150344610214,
-0.031378235667943954,
-0.09988609701395035,
0.13395079970359802,
-0.10675929486751556,
0.2650129795074463,
0.18794316053390503,
-0.22703740000724792,
0.047328438609838486,
-0.09244480729103088,
-0.0038461685180664062,
0.024717623367905617,
0.021192284300923347,
0.022601965814828873,
0.06605880707502365,
0.0228409580886364,
0.16560591757297516,
-0.02711115963757038,
-0.011491644196212292,
-0.016367653384804726,
-0.024830613285303116,
-0.01952790655195713,
0.11508684605360031,
0.09708517789840698,
-0.20163123309612274,
0.179470494389534,
0.25082656741142273,
0.05634811148047447,
0.1813085526227951,
-0.024459252133965492,
0.04330402612686157,
0.06452412903308868,
-0.07635105401277542,
-0.04909516125917435,
-0.012075740844011307,
-0.11556119471788406,
-0.015487517230212688,
0.08930382877588272,
0.028546443209052086,
0.053191330283880234,
-0.09703908115625381,
-0.06297874450683594,
-0.03291415050625801,
-0.005172127857804298,
-0.10538548231124878,
0.05776657536625862,
0.0668940544128418,
0.10399935394525528,
0.004194156266748905,
-0.0861189067363739,
0.12420641630887985,
-0.010347756557166576,
-0.06446103006601334,
0.19268763065338135,
-0.18722155690193176,
-0.35126128792762756,
-0.11265668272972107,
-0.1559838354587555,
-0.06361863017082214,
0.026156745851039886,
0.08350442349910736,
-0.1694071888923645,
-0.019174858927726746,
0.058457668870687485,
0.026744768023490906,
-0.029156194999814034,
0.03173302486538887,
-0.09405245631933212,
0.04450343921780586,
-0.03891624137759209,
-0.07473252713680267,
-0.032158754765987396,
-0.06326202303171158,
-0.04073909670114517,
0.19153685867786407,
-0.1490110456943512,
0.09048370271921158,
0.17794768512248993,
0.002825960051268339,
0.05818094685673714,
-0.049376070499420166,
0.23311394453048706,
-0.08781787008047104,
-0.016091758385300636,
0.14549916982650757,
-0.07094566524028778,
0.06582453101873398,
0.1814674288034439,
0.03688517212867737,
-0.05514883995056152,
0.021377379074692726,
-0.027792058885097504,
-0.0864524245262146,
-0.24750488996505737,
-0.17129342257976532,
-0.07356469333171844,
0.09350576996803284,
0.0390496551990509,
0.08192086964845657,
0.06159357726573944,
0.06343957036733627,
0.03997794911265373,
-0.021260395646095276,
-0.027939561754465103,
0.020718609914183617,
0.22341512143611908,
-0.007745017297565937,
0.13540343940258026,
-0.034701574593782425,
-0.10943868011236191,
0.1155087947845459,
0.05968869477510452,
0.16798976063728333,
0.09122941642999649,
0.035321205854415894,
0.020857764407992363,
0.11702722311019897,
0.17860746383666992,
0.07756552845239639,
0.06394410133361816,
-0.002960529876872897,
-0.02647918462753296,
0.00800008699297905,
-0.08275608718395233,
-0.013566230423748493,
0.13009284436702728,
-0.14712010324001312,
-0.07110626250505447,
-0.06232333183288574,
0.10724133998155594,
0.07206955552101135,
0.03393888846039772,
-0.14313949644565582,
0.02336437813937664,
0.07227487117052078,
0.003881975309923291,
-0.061733584851026535,
0.08465702086687088,
-0.003382299328222871,
-0.14380933344364166,
0.045376572757959366,
-0.02379869855940342,
0.13381518423557281,
-0.106788270175457,
0.07319197058677673,
-0.04701383039355278,
-0.0982518345117569,
0.018871257081627846,
0.12184436619281769,
-0.27848681807518005,
0.2536466717720032,
0.02692257985472679,
-0.08456258475780487,
-0.06028167903423309,
-0.056190088391304016,
0.058086544275283813,
0.19364525377750397,
0.05937596410512924,
0.03403538838028908,
-0.009884892962872982,
-0.23436574637889862,
-0.07829488068819046,
0.05997534841299057,
0.09278406947851181,
-0.030823463574051857,
-0.02993428148329258,
-0.024709179997444153,
0.0007730303914286196,
-0.03360024094581604,
-0.004454292822629213,
-0.003089831443503499,
-0.13051338493824005,
0.04621278867125511,
0.01856968365609646,
0.08547952026128769,
0.0007735426188446581,
-0.07036001980304718,
-0.15715044736862183,
0.09458992630243301,
-0.08464572578668594,
-0.0728532150387764,
-0.0965302586555481,
-0.07235996425151825,
0.034617871046066284,
-0.10495001077651978,
0.02652020752429962,
-0.07028297334909439,
-0.0014745943481102586,
-0.0570460744202137,
-0.2094074934720993,
0.1188477948307991,
-0.08968836814165115,
-0.05194050446152687,
-0.06486775726079941,
0.09953983128070831,
-0.03439107537269592,
0.05303848534822464,
0.036734867841005325,
0.01556962076574564,
-0.08137951791286469,
-0.08675006777048111,
0.03136272355914116,
-0.04239950701594353,
-0.037700023502111435,
0.09653066098690033,
-0.1012447327375412,
-0.07863364368677139,
-0.048752568662166595,
0.010848332196474075,
0.31915178894996643,
0.18111099302768707,
-0.08254828304052353,
0.1671706885099411,
0.2006317675113678,
-0.05626242980360985,
-0.35375508666038513,
-0.07687647640705109,
-0.09197765588760376,
-0.05118625611066818,
-0.007442133966833353,
-0.2307446449995041,
0.10293123126029968,
0.05167027562856674,
-0.02294459380209446,
0.051941029727458954,
-0.1683756560087204,
-0.057960327714681625,
0.23469997942447662,
-0.02649787813425064,
0.2997254431247711,
-0.11117762327194214,
-0.0958109125494957,
-0.05284205824136734,
-0.05586259067058563,
0.18629631400108337,
-0.08009747415781021,
0.09687016904354095,
-0.015600066632032394,
0.047361213713884354,
0.026848096400499344,
-0.016494648531079292,
0.12267462909221649,
0.04274741932749748,
0.006907165050506592,
-0.07705815136432648,
-0.13602794706821442,
0.01349153183400631,
-0.005314809735864401,
-0.0636468231678009,
0.00773440208286047,
0.02892789989709854,
-0.1510852724313736,
0.002464355668053031,
-0.08334341645240784,
0.04367835447192192,
0.04165284335613251,
-0.061454158276319504,
0.023183608427643776,
0.023705298081040382,
-0.01290676649659872,
0.004947705660015345,
0.19400915503501892,
-0.028667591512203217,
0.13833968341350555,
0.13973009586334229,
0.10053879022598267,
-0.10277190059423447,
0.021232806146144867,
-0.0890403538942337,
-0.055629435926675797,
0.08170096576213837,
-0.07427427172660828,
0.07102137804031372,
0.15131446719169617,
-0.05809006094932556,
0.09832368046045303,
0.09560707956552505,
0.05090329423546791,
0.011319918558001518,
0.1384364515542984,
-0.1967346966266632,
-0.02773466147482395,
-0.032783281058073044,
-0.029388409107923508,
0.03876953944563866,
0.05966847762465477,
0.1338851898908615,
0.07350313663482666,
-0.05578146502375603,
0.015238112770020962,
0.0038256009574979544,
0.014620166271924973,
0.1414094865322113,
0.10594604164361954,
0.050028834491968155,
-0.16654621064662933,
0.09701913595199585,
0.07309196889400482,
-0.06562494486570358,
-0.01994805783033371,
0.107938751578331,
-0.16287241876125336,
-0.130647674202919,
-0.023954564705491066,
0.17039576172828674,
-0.09391467273235321,
-0.04998219013214111,
-0.06376645714044571,
-0.11738340556621552,
0.052970126271247864,
0.17646530270576477,
0.09579124301671982,
0.07091445475816727,
-0.049902208149433136,
-0.05612773075699806,
0.052007172256708145,
0.025098159909248352,
-0.002971304813399911,
0.003941112197935581,
-0.1077965721487999,
0.011173657141625881,
-0.013336521573364735,
0.20655278861522675,
-0.09608137607574463,
-0.11945182085037231,
-0.19300121068954468,
0.049182724207639694,
-0.16799567639827728,
-0.011291932314634323,
-0.038693346083164215,
0.015078072436153889,
-0.027867473661899567,
-0.05625538527965546,
-0.03671146556735039,
-0.07053316384553909,
-0.14140735566616058,
0.042876869440078735,
0.0004361942410469055,
0.05979038402438164,
-0.08665622025728226,
-0.041995927691459656,
0.08394376933574677,
0.01725645922124386,
0.14506645500659943,
0.08081984519958496,
-0.07670852541923523,
0.1237335205078125,
-0.09756400436162949,
-0.1385374814271927,
0.1049654632806778,
0.051386188715696335,
0.09863653033971786,
0.08442693203687668,
0.02757398784160614,
0.03646388649940491,
-0.0218760184943676,
0.08813480287790298,
0.11414121091365814,
-0.10718483477830887,
0.06557458639144897,
-0.0760214701294899,
-0.12642300128936768,
-0.04229261353611946,
-0.014924748800694942,
0.08679033070802689,
0.0260600708425045,
0.15027858316898346,
-0.05959472432732582,
0.09356383234262466,
-0.06064010411500931,
-0.007623167242854834,
-0.012186582200229168,
-0.21021194756031036,
-0.09665153175592422,
-0.06653085350990295,
0.026209848001599312,
-0.02465212158858776,
0.25947409868240356,
0.06561943143606186,
0.020032167434692383,
0.025801202282309532,
0.123326376080513,
-0.07047784328460693,
-0.006385361775755882,
0.15270161628723145,
0.12946219742298126,
-0.03539648652076721,
-0.017849115654826164,
0.08208371698856354,
-0.006704435683786869,
0.03587877005338669,
0.11769703775644302,
0.0442189984023571,
0.014558878727257252,
0.02699153684079647,
0.027227377519011497,
0.007991417311131954,
-0.06259384006261826,
-0.13772305846214294,
-0.04631471261382103,
0.07860306650400162,
0.017105992883443832,
0.024614199995994568,
0.012055439874529839,
-0.0135587677359581,
0.04994428902864456,
-0.037590391933918,
-0.06620795279741287,
-0.1894472986459732,
-0.034222573041915894,
-0.10148094594478607,
-0.09676676243543625,
-0.010515309870243073,
-0.09232014417648315,
-0.04608439281582832,
0.1251104772090912,
0.04940441623330116,
-0.05012523755431175,
0.04522386193275452,
-0.004061033949255943,
-0.07274260371923447,
0.06494591385126114,
-0.04630030319094658,
0.009606566280126572,
-0.048499252647161484,
-0.035125136375427246,
-0.06913236528635025,
0.04897081106901169,
-0.05034298822283745,
0.04155639931559563,
-0.05554164573550224,
0.021431321278214455,
-0.18899939954280853,
-0.12583135068416595,
-0.04322749376296997,
0.05116470903158188,
-0.06507466733455658,
0.1510435938835144,
0.0202513188123703,
0.013717073947191238,
0.07412084192037582,
0.19045349955558777,
-0.021455101668834686,
-0.05295319855213165,
-0.05041559785604477,
0.21223193407058716,
0.011381006799638271,
0.11502443999052048,
-0.0007510878494940698,
-0.03395889699459076,
-0.09486394375562668,
0.2797935903072357,
0.3341437876224518,
-0.14635351300239563,
0.042188968509435654,
0.025266850367188454,
0.029132287949323654,
0.12005914002656937,
0.17574919760227203,
0.07510041445493698,
0.1743965446949005,
-0.06295617669820786,
-0.01995309628546238,
-0.03733436390757561,
-0.03566697612404823,
-0.07024500519037247,
0.07950388640165329,
0.0981358140707016,
-0.03180747479200363,
-0.11724517494440079,
0.11098168045282364,
-0.2514146864414215,
0.1442166119813919,
-0.06529679894447327,
-0.2054537683725357,
-0.12755100429058075,
-0.06121956557035446,
0.11023800075054169,
0.0385499969124794,
0.05514439940452576,
-0.006141428370028734,
-0.05635681375861168,
0.007314798887819052,
0.011054678820073605,
-0.2136852890253067,
-0.06000898405909538,
0.10431324690580368,
-0.05147843062877655,
0.0435916930437088,
-0.019769571721553802,
0.04975667595863342,
0.059025418013334274,
0.05908147990703583,
-0.016741696745157242,
0.07161756604909897,
0.009335980750620365,
-0.04564825817942619,
-0.026933833956718445,
-0.0186806358397007,
0.010231795720756054,
-0.03350235894322395,
0.10246366262435913,
-0.08187518268823624,
0.044255051761865616,
-0.05505000427365303,
-0.07822549343109131,
-0.025918876752257347,
0.05374089628458023,
-0.03928563743829727,
0.05888410657644272,
0.11006861180067062,
0.01005423255264759,
-0.016390709206461906,
-0.06810777634382248,
-0.023368995636701584,
-0.006763957906514406,
-0.1474410444498062,
-0.13926644623279572,
-0.06372927129268646,
-0.09061619639396667,
0.06787585467100143,
-0.0010835187276825309,
-0.14772486686706543,
0.01919172704219818,
-0.15535619854927063,
0.06663092970848083,
-0.10345249623060226,
0.13669031858444214,
0.037062037736177444,
0.02801590785384178,
-0.007705329451709986,
0.002959485864266753,
0.03328908979892731,
0.03954479098320007,
-0.13836564123630524,
-0.07562519609928131
] |
null | null | transformers |
@Harry Potter DialoGPT model | {"tags": ["conversational"]} | text-generation | ABBHISHEK/DialoGPT-small-harrypotter | [
"transformers",
"pytorch",
"gpt2",
"text-generation",
"conversational",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us
|
@Harry Potter DialoGPT model | [] | [
"TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n"
] | [
51
] | [
"passage: TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n"
] | [
-0.009697278961539268,
0.03208012506365776,
-0.007204889785498381,
0.004809224978089333,
0.16726240515708923,
0.014898733235895634,
0.09765533357858658,
0.13672804832458496,
-0.007841327227652073,
-0.031050153076648712,
0.14490588009357452,
0.20411323010921478,
-0.006439372431486845,
0.0661218985915184,
-0.07572533935308456,
-0.2683109939098358,
0.05759621039032936,
0.046649303287267685,
0.016515716910362244,
0.1200079694390297,
0.08573378622531891,
-0.05473608896136284,
0.08714032918214798,
-0.014583407901227474,
-0.150366872549057,
0.017733458429574966,
0.043394338339567184,
-0.12260226160287857,
0.11910516023635864,
0.05462685227394104,
0.07063519209623337,
0.014929565601050854,
-0.07541623711585999,
-0.1631229966878891,
0.03031250834465027,
0.01425902172923088,
-0.0594632662832737,
0.04757995903491974,
0.059961482882499695,
-0.10165371745824814,
0.10819483548402786,
0.09530027210712433,
-0.013078106567263603,
0.06798283755779266,
-0.16849711537361145,
-0.020869607105851173,
-0.01446688175201416,
0.009899779222905636,
0.05550243332982063,
0.09964893013238907,
-0.03413357585668564,
0.10497362166643143,
-0.09214533120393753,
0.11017382889986038,
0.10932035744190216,
-0.32057443261146545,
-0.005767723545432091,
0.09167823940515518,
0.039358653128147125,
0.07352814823389053,
-0.04467793554067612,
0.06258884817361832,
0.018015462905168533,
0.017986174672842026,
-0.014015024527907372,
-0.07283061742782593,
-0.11612214148044586,
0.04717336222529411,
-0.08668071031570435,
-0.059868961572647095,
0.2244078367948532,
-0.05464440956711769,
0.06881742179393768,
-0.05281897634267807,
-0.10522868484258652,
-0.04308144748210907,
-0.029833965003490448,
0.00475557055324316,
-0.07660607248544693,
0.08692064881324768,
0.00869679357856512,
-0.09547875821590424,
-0.1376667022705078,
-0.02496783249080181,
-0.1776352822780609,
0.16140350699424744,
0.02465328387916088,
0.05232657864689827,
-0.2027255892753601,
0.09623090922832489,
0.017906051129102707,
-0.08045592904090881,
0.022091427817940712,
-0.10046248883008957,
0.029131146147847176,
0.013760408386588097,
-0.04754498973488808,
-0.061387211084365845,
0.0843690037727356,
0.11199145019054413,
-0.01731434464454651,
0.025486016646027565,
-0.039331406354904175,
0.08100687712430954,
0.03553595021367073,
0.09077847748994827,
0.007288969587534666,
-0.028338588774204254,
0.025842782109975815,
-0.13719046115875244,
-0.003647835226729512,
-0.07116208970546722,
-0.16572439670562744,
-0.021088803187012672,
0.02994808368384838,
0.08289173990488052,
0.015449047088623047,
0.11682453751564026,
-0.03272046521306038,
-0.025152435526251793,
0.03602350503206253,
-0.047656361013650894,
-0.012649794109165668,
0.016648368909955025,
0.013163427822291851,
0.12399329990148544,
-0.0022096503525972366,
0.03235051408410072,
-0.13653022050857544,
0.031423524022102356,
-0.06793295592069626,
-0.003740974934771657,
-0.03486552834510803,
-0.040637075901031494,
0.009043924510478973,
-0.06862333416938782,
0.003486064961180091,
-0.15030112862586975,
-0.15063877403736115,
0.007587034720927477,
-0.007836631499230862,
-0.04107699543237686,
-0.06370922178030014,
-0.06952770054340363,
-0.013550350442528725,
0.04251532256603241,
-0.07093454152345657,
-0.011352915316820145,
-0.06403283774852753,
0.11004766076803207,
-0.03197755664587021,
0.07921615242958069,
-0.11953279376029968,
0.08390819281339645,
-0.11260783672332764,
-0.02386913076043129,
-0.060801517218351364,
0.09317506104707718,
-0.0006014376995153725,
0.09549830108880997,
-0.006563255097717047,
-0.017931854352355003,
-0.07981178909540176,
0.06445012241601944,
-0.042872510850429535,
0.21701598167419434,
-0.0615808479487896,
-0.11181682348251343,
0.28781595826148987,
-0.052628401666879654,
-0.1370542049407959,
0.11647392809391022,
0.008682746440172195,
0.05777018144726753,
0.10703510791063309,
0.19733482599258423,
-0.015276194550096989,
0.004040541127324104,
0.09471915662288666,
0.11263324320316315,
-0.11276852339506149,
-0.033160366117954254,
0.013019153848290443,
-0.04081077128648758,
-0.10867965966463089,
0.04689536616206169,
0.09810488671064377,
0.07090286910533905,
-0.04786505550146103,
-0.03377414867281914,
-0.01366397924721241,
0.0052589005790650845,
0.08885077387094498,
-0.007157256826758385,
0.10962837189435959,
-0.05819983780384064,
-0.03796621412038803,
-0.029282379895448685,
-0.012126247398555279,
-0.03951939567923546,
0.03137664496898651,
-0.043376367539167404,
0.10821941494941711,
-0.011204327456653118,
0.06364280730485916,
-0.16185984015464783,
-0.07691477984189987,
-0.017002692446112633,
0.1581239402294159,
0.024538565427064896,
0.09859629720449448,
0.0552486926317215,
-0.040398042649030685,
-0.0012767292791977525,
0.012792680412530899,
0.15581141412258148,
-0.022091681137681007,
-0.065607450902462,
-0.052166227251291275,
0.08642971515655518,
-0.05641226842999458,
0.04504093527793884,
-0.05937713757157326,
0.012367865070700645,
0.05064384639263153,
0.10342344641685486,
-0.00018274025933351368,
0.03323284164071083,
-0.008164864964783192,
0.002145637758076191,
-0.058205123990774155,
0.007405933458358049,
0.10799351334571838,
0.00036868182360194623,
-0.07365862280130386,
0.22074243426322937,
-0.17796069383621216,
0.1765957772731781,
0.1893044263124466,
-0.299345999956131,
0.017949223518371582,
-0.10759581625461578,
-0.04561871662735939,
0.014407722279429436,
0.05567655712366104,
-0.0454222597181797,
0.1703362911939621,
-0.009871348738670349,
0.18874616920948029,
-0.04946064203977585,
-0.04464937001466751,
-0.0200483538210392,
-0.05118836089968681,
-0.0024189651012420654,
0.07781197130680084,
0.10685696452856064,
-0.13992026448249817,
0.1964332014322281,
0.1621224284172058,
0.048237916082143784,
0.19945049285888672,
0.015346456319093704,
-0.011589210480451584,
0.0909530371427536,
0.005220826715230942,
-0.058739423751831055,
-0.07409929484128952,
-0.2594851851463318,
-0.030033592134714127,
0.07992640137672424,
0.0422382652759552,
0.1212305948138237,
-0.11349532753229141,
-0.038956157863140106,
-0.01763172075152397,
-0.023146281018853188,
0.021672505885362625,
0.0914369598031044,
0.06075398623943329,
0.13201528787612915,
-0.001710098935291171,
-0.007300339173525572,
0.10524573177099228,
0.01783694699406624,
-0.09354141354560852,
0.18308524787425995,
-0.13652534782886505,
-0.37097251415252686,
-0.13911493122577667,
-0.18057456612586975,
-0.05449081212282181,
0.05712554603815079,
0.11679314076900482,
-0.12011238187551498,
-0.018752124160528183,
0.01578843593597412,
0.10931742936372757,
-0.08449502289295197,
0.0021454424131661654,
-0.06880278885364532,
0.0321490578353405,
-0.10310184955596924,
-0.09194442629814148,
-0.055416494607925415,
-0.031392451375722885,
-0.08001253753900528,
0.1423761546611786,
-0.10777941346168518,
0.04476889222860336,
0.20262959599494934,
0.04653622955083847,
0.05625178664922714,
-0.044105201959609985,
0.19377262890338898,
-0.11264272034168243,
-0.01661740615963936,
0.19215328991413116,
-0.048360925167798996,
0.07476246356964111,
0.1232115849852562,
-0.006348740309476852,
-0.08765771239995956,
0.03011748194694519,
-0.02085109055042267,
-0.07988511025905609,
-0.23219464719295502,
-0.13938382267951965,
-0.12429051846265793,
0.09477275609970093,
0.028005298227071762,
0.056365787982940674,
0.17219258844852448,
0.06577219814062119,
-0.038416244089603424,
0.006410336587578058,
0.02959546446800232,
0.08237514644861221,
0.23417828977108002,
-0.06035616248846054,
0.1364797055721283,
-0.03420931473374367,
-0.14982740581035614,
0.08169995993375778,
0.0713929831981659,
0.10213395953178406,
0.06678459793329239,
0.0804823637008667,
0.0149586396291852,
0.06188136339187622,
0.1311223804950714,
0.08191446959972382,
0.019586285576224327,
-0.02480296604335308,
-0.03388110175728798,
-0.025523077696561813,
-0.05937909707427025,
0.040128443390131,
0.06589099019765854,
-0.16763372719287872,
-0.039227183908224106,
-0.09338314831256866,
0.09657008945941925,
0.0873042419552803,
0.06609832495450974,
-0.1842060089111328,
-0.008006223477423191,
0.08488986641168594,
-0.03854905813932419,
-0.13727426528930664,
0.09535189718008041,
0.01523482333868742,
-0.15144726634025574,
0.03139317408204079,
-0.04061909019947052,
0.12188644707202911,
-0.07804752141237259,
0.09809603542089462,
-0.08108244836330414,
-0.07448557764291763,
0.02123199962079525,
0.1261177361011505,
-0.30527687072753906,
0.20240111649036407,
-0.0024993624538183212,
-0.06486981362104416,
-0.1243603527545929,
-0.0032166161108762026,
0.002410882618278265,
0.07357452809810638,
0.10519039630889893,
-0.007196315098553896,
0.001897757756523788,
-0.06300821900367737,
-0.01829923689365387,
0.032471053302288055,
0.13080233335494995,
-0.0401318334043026,
-0.021158374845981598,
-0.050194524228572845,
-0.001653497340157628,
-0.03173094615340233,
-0.06934895366430283,
0.02002747356891632,
-0.19509181380271912,
0.08751901984214783,
0.04166261479258537,
0.09648149460554123,
0.029994789510965347,
0.004265148192644119,
-0.09651939570903778,
0.24698667228221893,
-0.07148019969463348,
-0.10072879493236542,
-0.10919588059186935,
-0.046813901513814926,
0.03569883480668068,
-0.05628936365246773,
0.04309194162487984,
-0.0788632407784462,
0.028997479006648064,
-0.06352769583463669,
-0.19235502183437347,
0.12410202622413635,
-0.09027006477117538,
-0.04412810131907463,
-0.02371402643620968,
0.2110891044139862,
-0.05598580464720726,
0.010335659608244896,
0.02930437959730625,
0.01208863127976656,
-0.11645778268575668,
-0.09678568691015244,
0.031018631532788277,
-0.007351789623498917,
0.050603240728378296,
0.041841957718133926,
-0.05915454775094986,
-0.017138581722974777,
-0.052199993282556534,
-0.022926922887563705,
0.3496883809566498,
0.14231905341148376,
-0.043836336582899094,
0.19347235560417175,
0.12347975373268127,
-0.07452994585037231,
-0.3159443140029907,
-0.1066238060593605,
-0.10937739163637161,
-0.04680149629712105,
-0.07012093812227249,
-0.2002030611038208,
0.06474938243627548,
0.00662544509395957,
-0.013415241613984108,
0.12749312818050385,
-0.2561831772327423,
-0.07571036368608475,
0.15906259417533875,
-0.017980827018618584,
0.3745945692062378,
-0.1168576180934906,
-0.10926306992769241,
-0.03950892388820648,
-0.14175476133823395,
0.16968177258968353,
-0.01989765651524067,
0.11221715062856674,
-0.009765521623194218,
0.14388824999332428,
0.05548359826207161,
-0.023479344323277473,
0.08544106781482697,
0.004999885335564613,
-0.03290518373250961,
-0.10304180532693863,
-0.05676887184381485,
0.007092386484146118,
0.02477436140179634,
0.018026655539870262,
-0.041834570467472076,
0.02227151393890381,
-0.11731979995965958,
-0.04657655209302902,
-0.08982590585947037,
0.04431166127324104,
0.03899754583835602,
-0.07325074821710587,
-0.002380647463724017,
-0.07165111601352692,
-0.012272949330508709,
0.022334342822432518,
0.20356793701648712,
-0.08029330521821976,
0.16448934376239777,
0.09239562600851059,
0.12419285625219345,
-0.14376309514045715,
-0.00019283240544609725,
-0.0762530043721199,
-0.05611240118741989,
0.07737895101308823,
-0.09433035552501678,
0.058893077075481415,
0.10901971161365509,
-0.04567738622426987,
0.08828683942556381,
0.10377411544322968,
0.008936077356338501,
0.003213887568563223,
0.10916902124881744,
-0.2667325437068939,
-0.0296600554138422,
-0.07532413303852081,
0.000883326749317348,
0.09092561900615692,
0.08562852442264557,
0.18840822577476501,
0.025361526757478714,
-0.04293036088347435,
-0.002770674182102084,
0.028597986325621605,
-0.039021048694849014,
0.051667019724845886,
0.001123449532315135,
0.01947369985282421,
-0.1530752182006836,
0.072522833943367,
0.01490565575659275,
-0.15215420722961426,
0.021316176280379295,
0.16572684049606323,
-0.11656328290700912,
-0.1283872276544571,
-0.06520111113786697,
0.08313824236392975,
-0.11755692958831787,
-0.01578943058848381,
-0.03279297426342964,
-0.13145680725574493,
0.07992171496152878,
0.12629036605358124,
0.05557859688997269,
0.0972496047616005,
-0.06061713397502899,
-0.020469192415475845,
-0.018721895292401314,
-0.014099318534135818,
-0.012384648434817791,
-0.007667020428925753,
-0.055978111922740936,
0.0590752474963665,
-0.026677248999476433,
0.1425808072090149,
-0.09221141785383224,
-0.1037059873342514,
-0.16142144799232483,
0.0374140702188015,
-0.11013076454401016,
-0.08825794607400894,
-0.08821134269237518,
-0.050188567489385605,
0.002360827289521694,
-0.019856395199894905,
-0.04037635400891304,
-0.05829505994915962,
-0.12300454825162888,
0.0338277705013752,
-0.040771447122097015,
0.024727050215005875,
-0.07512269169092178,
0.015856385231018066,
0.08507686108350754,
-0.03285100311040878,
0.15655414760112762,
0.1450488418340683,
-0.1006515845656395,
0.10741901397705078,
-0.14806775748729706,
-0.09138492494821548,
0.11116421222686768,
0.015329592861235142,
0.0449691042304039,
0.09723787009716034,
0.013362943194806576,
0.0635865181684494,
0.032776717096567154,
0.05308786407113075,
0.027619892731308937,
-0.11959987878799438,
0.06483134627342224,
-0.03626115620136261,
-0.14700546860694885,
-0.049338050186634064,
-0.05282869189977646,
0.01647452637553215,
0.013054544106125832,
0.09622690081596375,
-0.05301849544048309,
0.10698331147432327,
-0.04055701196193695,
0.0346808135509491,
0.017554637044668198,
-0.1730053424835205,
-0.03816922754049301,
-0.08538098633289337,
0.03681723028421402,
0.014741539023816586,
0.25266793370246887,
0.030072299763560295,
0.012416383251547813,
0.032671261578798294,
0.08285367488861084,
0.03899408504366875,
0.010228337720036507,
0.17482228577136993,
0.1162426546216011,
-0.06621865928173065,
-0.10445023328065872,
0.0729617029428482,
0.016332454979419708,
0.01286179106682539,
0.13617953658103943,
0.008365051820874214,
0.005795429926365614,
0.08649782836437225,
-0.016865963116288185,
0.009968153201043606,
-0.10052056610584259,
-0.13426925241947174,
-0.022176474332809448,
0.05151832848787308,
-0.04655967652797699,
0.11727844923734665,
0.1406494379043579,
-0.01806013658642769,
0.03222079202532768,
-0.021771740168333054,
-0.05699979141354561,
-0.1683429479598999,
-0.1429590880870819,
-0.06883849948644638,
-0.13416796922683716,
0.00897989235818386,
-0.11180389672517776,
0.05395037308335304,
0.06001098081469536,
0.06750501692295074,
-0.06899319589138031,
0.10220931470394135,
0.04626858979463577,
-0.11440542340278625,
0.06264589726924896,
-0.0296088308095932,
0.09430401772260666,
-0.02759445086121559,
-0.019505485892295837,
-0.09039592742919922,
0.014574515633285046,
0.011419114656746387,
0.06245238706469536,
-0.04707273095846176,
0.007463190704584122,
-0.14696238934993744,
-0.08972041308879852,
-0.0523175448179245,
0.0718572810292244,
-0.050409089773893356,
0.14282815158367157,
0.00775480642914772,
-0.0170906875282526,
0.039554283022880554,
0.22787313163280487,
-0.07476283609867096,
-0.04778539761900902,
-0.05269690603017807,
0.20717895030975342,
0.02975541539490223,
0.1171872541308403,
-0.022938819602131844,
-0.006106364540755749,
-0.0919521227478981,
0.3764844834804535,
0.30030161142349243,
-0.09031439572572708,
0.011794124729931355,
0.02137952297925949,
0.04502861574292183,
0.1316293478012085,
0.1216534823179245,
0.10318691283464432,
0.3006802201271057,
-0.07452366501092911,
-0.04653361067175865,
-0.012629742734134197,
-0.023858042433857918,
-0.09059546142816544,
0.1021224707365036,
0.04839762672781944,
-0.06382183730602264,
-0.03313443064689636,
0.0954432487487793,
-0.25862133502960205,
0.1277991235256195,
-0.12311873584985733,
-0.17578600347042084,
-0.06654827296733856,
0.009760108776390553,
0.10465722531080246,
0.015642458572983742,
0.0946015790104866,
0.007128213066607714,
-0.11252258718013763,
0.06305865943431854,
0.03397420793771744,
-0.22762253880500793,
0.0006893770187161863,
0.06642123311758041,
-0.07006710022687912,
-0.0024247700348496437,
-0.026499588042497635,
0.05657242611050606,
0.0656052976846695,
0.054629553109407425,
-0.00971333310008049,
0.03816632181406021,
0.0034184439573436975,
-0.0585215799510479,
0.016623929142951965,
0.05121519789099693,
0.02472509816288948,
-0.09763528406620026,
0.06927435845136642,
-0.1574270874261856,
0.04766253009438515,
-0.0030655991286039352,
-0.04124255105853081,
0.006064958870410919,
0.008823691867291927,
-0.06491616368293762,
0.05165379121899605,
0.07916834205389023,
-0.0016257909592241049,
-0.0062433634884655476,
-0.057178743183612823,
-0.02632102556526661,
-0.027755750343203545,
-0.09291748702526093,
-0.10495562851428986,
-0.14682936668395996,
-0.11640441417694092,
0.09368976950645447,
-0.01011267676949501,
-0.1848134547472,
0.022154374048113823,
-0.08606051653623581,
0.08319322764873505,
-0.1670055389404297,
0.08040720224380493,
0.07041648775339127,
0.013038921169936657,
-0.0031511052511632442,
-0.02002427540719509,
0.054132770746946335,
0.086809903383255,
-0.10407156497240067,
-0.07400695979595184
] |
null | null | transformers | Pre trained on clus_ chapter only. | {} | feature-extraction | AG/pretraining | [
"transformers",
"pytorch",
"roberta",
"feature-extraction",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #roberta #feature-extraction #endpoints_compatible #region-us
| Pre trained on clus_ chapter only. | [] | [
"TAGS\n#transformers #pytorch #roberta #feature-extraction #endpoints_compatible #region-us \n"
] | [
30
] | [
"passage: TAGS\n#transformers #pytorch #roberta #feature-extraction #endpoints_compatible #region-us \n"
] | [
-0.06385086476802826,
-0.015064781531691551,
-0.009285440668463707,
0.005133595783263445,
0.14468014240264893,
0.028980428352952003,
-0.0024224664084613323,
0.09294742345809937,
0.015450677834451199,
-0.005549874156713486,
0.10132493823766708,
0.2598955035209656,
-0.03146638348698616,
0.03436874598264694,
-0.06504406034946442,
-0.27513426542282104,
0.08069883286952972,
0.09182171523571014,
-0.054253458976745605,
0.09752502292394638,
0.06526201963424683,
-0.08786329627037048,
0.05739372968673706,
-0.011836287565529346,
-0.1536192148923874,
0.053732067346572876,
0.027488335967063904,
-0.09712719917297363,
0.11418675631284714,
0.02405671775341034,
0.1624012142419815,
0.012149838730692863,
-0.10394403338432312,
-0.16444040834903717,
0.02977742813527584,
-0.011480492539703846,
-0.06358275562524796,
0.02747214026749134,
0.06258273124694824,
-0.12535785138607025,
0.06873837113380432,
0.09567593783140182,
0.01888161152601242,
0.027231086045503616,
-0.17040593922138214,
-0.17476369440555573,
-0.06788770109415054,
0.039518389850854874,
0.012200610712170601,
0.09537360072135925,
0.016384949907660484,
0.14199326932430267,
-0.16269035637378693,
0.08555322885513306,
0.1959926337003708,
-0.26822033524513245,
-0.003987718839198351,
0.05976399779319763,
0.11398186534643173,
-0.001037734211422503,
-0.00889719370752573,
0.03862019255757332,
-0.00396114494651556,
0.019761087372899055,
-0.015736272558569908,
-0.09742236882448196,
-0.0819028913974762,
0.06119588389992714,
-0.09016262739896774,
-0.08627156913280487,
0.20116233825683594,
-0.026716377586126328,
0.04713087156414986,
0.0270808357745409,
-0.09576978534460068,
-0.04080211743712425,
-0.029363110661506653,
0.0034213438630104065,
-0.022492220625281334,
0.054633066058158875,
-0.006463970523327589,
-0.020432142540812492,
-0.10404597222805023,
0.01875033974647522,
-0.20108702778816223,
0.24154943227767944,
0.018484052270650864,
0.08595488965511322,
-0.20599260926246643,
0.049710243940353394,
-0.07399062812328339,
-0.09450148791074753,
0.012908238917589188,
-0.09111513942480087,
0.03173619881272316,
0.011025309562683105,
-0.06976991891860962,
-0.0025964798405766487,
0.0635678842663765,
0.1825352907180786,
0.008296459913253784,
0.019750375300645828,
0.013801375404000282,
0.10463475435972214,
0.0290212482213974,
0.1264764368534088,
-0.0011833906173706055,
-0.03497210144996643,
0.03199223056435585,
-0.14326374232769012,
-0.01767840050160885,
-0.04976187273859978,
-0.11108648031949997,
-0.06046697497367859,
0.03326264023780823,
0.09315914660692215,
0.044422734528779984,
0.003404357936233282,
-0.0826534554362297,
-0.015097375959157944,
0.03636964038014412,
-0.06976314634084702,
-0.016022736206650734,
-0.025205865502357483,
0.0348382331430912,
0.18212468922138214,
-0.024584097787737846,
-0.022798685356974602,
-0.0314871147274971,
0.07325941324234009,
-0.07667767256498337,
0.00563276931643486,
-0.04888911545276642,
-0.04790203645825386,
0.03552401438355446,
-0.17376789450645447,
0.07018138468265533,
-0.16214483976364136,
-0.10567351430654526,
0.02398543804883957,
0.05251266062259674,
-0.013606905937194824,
0.018212007358670235,
0.0008300190092995763,
-0.023563532158732414,
-0.010466021485626698,
-0.062123607844114304,
-0.07295306026935577,
-0.05915934965014458,
0.10421432554721832,
0.012024818919599056,
0.06093055382370949,
-0.10627388954162598,
0.08263276517391205,
-0.10078594088554382,
0.037063755095005035,
-0.1744224727153778,
0.006122931372374296,
-0.018849004060029984,
0.18528525531291962,
-0.005059282761067152,
-0.06493164598941803,
-0.11649122089147568,
0.048483867198228836,
-0.033960431814193726,
0.1380777209997177,
-0.040789805352687836,
-0.11951392889022827,
0.2219909429550171,
-0.11985055357217789,
-0.16653865575790405,
0.05150201544165611,
-0.009343497455120087,
0.01092976052314043,
0.056043773889541626,
0.193550705909729,
0.10839205235242844,
-0.02644285559654236,
0.08379656821489334,
0.10952618718147278,
-0.14689211547374725,
-0.1516871601343155,
0.029365461319684982,
-0.03736719489097595,
-0.051041968166828156,
0.043046921491622925,
0.02316589653491974,
0.09981302171945572,
-0.07573725283145905,
-0.03905932605266571,
-0.022333800792694092,
-0.023799659684300423,
0.059069905430078506,
0.05799601972103119,
0.09869461506605148,
-0.039458002895116806,
0.008840900845825672,
-0.019036076962947845,
0.002496098168194294,
0.007811111398041248,
0.0468200147151947,
-0.0629206970334053,
0.19560468196868896,
-0.07558416575193405,
0.0026263983454555273,
-0.26542341709136963,
-0.05998822674155235,
-0.012884694151580334,
0.07701021432876587,
-0.039750758558511734,
0.15212872624397278,
0.0827840194106102,
-0.08465175330638885,
0.01772575080394745,
-0.02490491047501564,
0.07927173376083374,
0.016830185428261757,
-0.004809052217751741,
-0.04553547501564026,
0.007636399008333683,
-0.08577995002269745,
-0.06796261668205261,
0.0034977549221366644,
-0.015369415283203125,
0.08273216336965561,
0.09922834485769272,
0.015670783817768097,
0.03587990999221802,
-0.05443378537893295,
0.06346239894628525,
-0.03510582819581032,
0.009136022068560123,
0.08656524121761322,
-0.013942711055278778,
-0.04587791487574577,
0.14181891083717346,
-0.09249865263700485,
0.3215487003326416,
0.18185928463935852,
-0.30347514152526855,
-0.006851902697235346,
-0.015493959188461304,
-0.01561931986361742,
0.03434612601995468,
0.09115459769964218,
-0.004641135688871145,
0.07178042829036713,
0.018421774730086327,
0.12788216769695282,
-0.02537350356578827,
-0.02702079899609089,
0.009784688241779804,
-0.0463106743991375,
-0.042157500982284546,
0.07120604068040848,
0.07710514217615128,
-0.14851443469524384,
0.15864981710910797,
0.22580330073833466,
0.018222641199827194,
0.12332776188850403,
-0.05934269353747368,
-0.03509126976132393,
0.0198514461517334,
0.014261445961892605,
-0.024852696806192398,
0.04216377064585686,
-0.238153874874115,
-0.05248481035232544,
0.06735669821500778,
0.007870999164879322,
0.09500325471162796,
-0.12380232661962509,
-0.051753200590610504,
0.03086848556995392,
0.02437683381140232,
-0.062244806438684464,
0.0826130211353302,
0.0519227497279644,
0.06415089964866638,
0.021955855190753937,
-0.06118430942296982,
0.09492205083370209,
0.010321668349206448,
-0.0258706696331501,
0.18041537702083588,
-0.10047104954719543,
-0.25638502836227417,
-0.1283043920993805,
-0.1498395949602127,
0.02174636907875538,
0.022131210193037987,
0.08790101855993271,
-0.07045383751392365,
-0.0318719781935215,
0.07761450856924057,
0.03820517286658287,
-0.1408652812242508,
0.016396570950746536,
-0.06769852340221405,
0.06335407495498657,
-0.08520789444446564,
-0.07488887757062912,
-0.0637911930680275,
-0.06961411237716675,
-0.008588377386331558,
0.10500647872686386,
-0.11694475263357162,
0.12386710196733475,
0.1230054572224617,
0.03798072785139084,
0.07801061868667603,
-0.007200594991445541,
0.1580139398574829,
-0.07430753856897354,
-0.08174161612987518,
0.23562610149383545,
-0.024959323927760124,
0.08944825828075409,
0.1009269431233406,
0.029500890523195267,
-0.06537828594446182,
-0.03897763788700104,
-0.06425579637289047,
-0.11963868141174316,
-0.18925228714942932,
-0.09510603547096252,
-0.15199771523475647,
0.009634141810238361,
0.012384912930428982,
0.03671766072511673,
0.1111338660120964,
0.08805195987224579,
0.05827319994568825,
-0.05317244306206703,
-0.04393045976758003,
0.04381903260946274,
0.20768970251083374,
-0.01343078725039959,
0.10189762711524963,
-0.058321524411439896,
-0.11170149594545364,
0.07125551253557205,
0.04256333038210869,
0.26831600069999695,
0.088131844997406,
0.016499539837241173,
0.0636761486530304,
0.17840729653835297,
0.13208730518817902,
0.15430687367916107,
-0.00010016473243013024,
-0.026631997898221016,
-0.013668256811797619,
0.008345509879291058,
-0.06155092641711235,
0.018643135204911232,
0.15707145631313324,
-0.1311899572610855,
-0.07589611411094666,
-0.1884274035692215,
0.07704228162765503,
0.08168032765388489,
0.029023226350545883,
-0.18674033880233765,
0.004675410222262144,
0.0616491474211216,
0.002135996473953128,
-0.048291295766830444,
0.06849811971187592,
-0.049135953187942505,
-0.13586419820785522,
0.03819575533270836,
-0.06257672607898712,
0.10812324285507202,
-0.019033532589673996,
0.05936569347977638,
-0.05109548568725586,
-0.10954880714416504,
0.06468524783849716,
0.07360300421714783,
-0.18977569043636322,
0.2900700867176056,
-0.020916648209095,
-0.051943860948085785,
-0.05151033028960228,
0.007084227632731199,
0.01850147545337677,
0.12459460645914078,
0.13787364959716797,
0.01169506274163723,
-0.09561675786972046,
-0.1417309045791626,
0.0526253841817379,
0.024745646864175797,
0.13177774846553802,
-0.04425402358174324,
-0.004912948235869408,
-0.02831178903579712,
-0.005981407128274441,
-0.03073454648256302,
0.024798497557640076,
0.09800375998020172,
-0.14804083108901978,
0.048477645963430405,
-0.06262041628360748,
0.02536887675523758,
-0.007476631551980972,
0.001890820567496121,
-0.031428880989551544,
0.1548634022474289,
-0.04362072795629501,
-0.04843563213944435,
-0.10831433534622192,
-0.10158171504735947,
0.1306576430797577,
-0.09889598190784454,
0.11227363348007202,
-0.07849285006523132,
-0.03888741508126259,
-0.06388439238071442,
-0.2005506157875061,
0.1156938225030899,
-0.09890647977590561,
0.0496794693171978,
-0.027983220294117928,
0.16526778042316437,
-0.0715445801615715,
-0.008817683905363083,
0.025592414662241936,
0.03137204051017761,
-0.12784887850284576,
-0.08522845804691315,
-0.017809869721531868,
-0.028634479269385338,
0.04671195521950722,
0.08423996716737747,
-0.04056588560342789,
0.027212295681238174,
-0.008832357823848724,
0.037162892520427704,
0.23819535970687866,
0.15442277491092682,
-0.05651946738362312,
0.11426988244056702,
0.12315292656421661,
-0.02201829105615616,
-0.2788844406604767,
-0.07418065518140793,
-0.13812005519866943,
-0.038206711411476135,
0.00696260342374444,
-0.1250704675912857,
0.12168985605239868,
0.04547782987356186,
-0.013425312004983425,
0.10540615767240524,
-0.2472325563430786,
-0.05005945637822151,
0.15389741957187653,
0.018644941970705986,
0.4575948715209961,
-0.1188167855143547,
-0.08623696863651276,
0.003862947691231966,
-0.24687284231185913,
0.07085911184549332,
0.011936426162719727,
0.07499406486749649,
-0.03244795277714729,
0.04736597463488579,
0.03686956688761711,
-0.07208147644996643,
0.11471361666917801,
0.022073909640312195,
0.044929251074790955,
-0.07244949787855148,
-0.11124182492494583,
0.10286208242177963,
-0.015300635248422623,
-0.0050648413598537445,
0.06975525617599487,
0.03092455118894577,
-0.14282739162445068,
-0.02883860468864441,
-0.12893575429916382,
0.0673123225569725,
0.045940231531858444,
-0.0312773659825325,
-0.021133890375494957,
-0.017504289746284485,
-0.007087114732712507,
0.023189645260572433,
0.2563543915748596,
-0.03169017657637596,
0.1349637657403946,
0.0013767582131549716,
0.044892318546772,
-0.16648022830486298,
-0.15353333950042725,
-0.07329395413398743,
-0.045410316437482834,
0.08030392229557037,
-0.057370904833078384,
0.04424937814474106,
0.12818582355976105,
-0.011470883153378963,
0.014056824147701263,
0.1264086365699768,
0.002897654427215457,
0.012034682556986809,
0.1447809636592865,
-0.1756868213415146,
-0.028171690180897713,
-0.03446973115205765,
-0.09055300801992416,
0.09088072925806046,
0.07435077428817749,
0.09411273896694183,
0.06571480631828308,
-0.018981756642460823,
-0.028008541092276573,
-0.030856363475322723,
-0.08180715888738632,
0.03947928920388222,
0.049919646233320236,
0.029678989201784134,
-0.13986897468566895,
0.045224227011203766,
-0.010367793031036854,
-0.24286721646785736,
-0.04969225823879242,
0.07840146124362946,
-0.1123693585395813,
-0.10457366704940796,
-0.07767839729785919,
0.09202548116445541,
-0.2140902876853943,
-0.02267160452902317,
-0.06349923461675644,
-0.11770719289779663,
0.06333013623952866,
0.21254046261310577,
0.09868352860212326,
0.10633136332035065,
-0.03035801276564598,
-0.007315680384635925,
-0.0018257511546835303,
-0.06888289004564285,
0.035882383584976196,
0.01742403768002987,
-0.10654822736978531,
-0.013085786253213882,
-0.015023128129541874,
0.1582639515399933,
-0.07710592448711395,
-0.07031884789466858,
-0.14089199900627136,
0.07921142131090164,
-0.06581617891788483,
-0.08757209032773972,
-0.13379138708114624,
-0.05702613294124603,
0.012627244926989079,
-0.04807054623961449,
-0.04831128939986229,
-0.01635758951306343,
-0.13668900728225708,
0.03847036510705948,
-0.00038623635191470385,
-0.014978359453380108,
-0.06152840331196785,
-0.032951463013887405,
0.11450357735157013,
-0.061417944729328156,
0.08015674352645874,
0.18746672570705414,
-0.061468981206417084,
0.11967609822750092,
-0.12061136960983276,
-0.16550152003765106,
0.10195887833833694,
0.014303894713521004,
0.0769711285829544,
0.060982972383499146,
0.038085367530584335,
0.06824029237031937,
0.0029890055302530527,
0.03697440028190613,
-0.0525151826441288,
-0.1394134908914566,
-0.004608143121004105,
-0.001323558622971177,
-0.17958295345306396,
-0.042609356343746185,
-0.06074961647391319,
0.1523188352584839,
0.026956113055348396,
0.11042318493127823,
0.01464739628136158,
0.11204704642295837,
-0.03462216630578041,
-0.0043201385997235775,
-0.0059247552417218685,
-0.1812969446182251,
0.03344079852104187,
-0.0752311423420906,
0.0031492821872234344,
0.004114403389394283,
0.25750866532325745,
-0.01247873343527317,
0.06379381567239761,
0.01573655568063259,
0.0473262220621109,
0.06712984293699265,
0.027704894542694092,
0.24377460777759552,
0.12231839448213577,
-0.044221099466085434,
-0.08844592422246933,
0.10171226412057877,
-0.0007046945975162089,
-0.016299262642860413,
0.11799948662519455,
0.13732421398162842,
0.04778554290533066,
0.09616072475910187,
0.041776690632104874,
0.05678790062665939,
-0.08034898340702057,
-0.2286994755268097,
0.01383887603878975,
0.04834045469760895,
0.03618953749537468,
0.05134647712111473,
0.160496786236763,
-0.03144993633031845,
0.09732294827699661,
-0.003477601334452629,
-0.022745778784155846,
-0.12699970602989197,
-0.060730449855327606,
-0.06092950329184532,
-0.11452095955610275,
0.02177003212273121,
-0.07603906840085983,
0.0022313809022307396,
0.1651918888092041,
0.01757129095494747,
-0.02670317515730858,
0.1260107308626175,
0.04507188871502876,
-0.0686829686164856,
0.06384464353322983,
-0.01811792701482773,
0.007580884266644716,
0.060263365507125854,
-0.004374262876808643,
-0.11547832190990448,
-0.07480235397815704,
-0.04465668275952339,
0.028309794142842293,
-0.09951897710561752,
0.01448278408497572,
-0.13140350580215454,
-0.11086682230234146,
-0.03745458647608757,
0.06091129034757614,
-0.060054223984479904,
0.11171942949295044,
-0.008737585507333279,
-0.0008773995214141905,
0.014113265089690685,
0.18241138756275177,
-0.06584436446428299,
-0.03387127444148064,
-0.03430141508579254,
0.18090331554412842,
0.10518935322761536,
0.0908096432685852,
-0.008607333526015282,
0.00584696838632226,
-0.0359165333211422,
0.30120110511779785,
0.244326651096344,
-0.014387011528015137,
0.04424916207790375,
0.07633586972951889,
0.03645412623882294,
0.09816477447748184,
0.08907593041658401,
0.10069703310728073,
0.3217599391937256,
-0.07863158732652664,
-0.05487590655684471,
-0.040980178862810135,
-0.003980510868132114,
-0.10178855061531067,
0.043578047305345535,
0.07078622281551361,
-0.06538262963294983,
-0.06111028045415878,
0.1238260418176651,
-0.17221085727214813,
0.1293565034866333,
0.12202806770801544,
-0.21380753815174103,
-0.062026429921388626,
-0.07184997200965881,
0.15289561450481415,
0.007882736623287201,
0.12288114428520203,
-0.04702778160572052,
-0.13500550389289856,
0.03967854008078575,
0.0580216720700264,
-0.27587568759918213,
-0.09295329451560974,
0.10220883041620255,
0.04567577317357063,
-0.006333829835057259,
-0.04220867529511452,
-0.01610800065100193,
0.08189918845891953,
0.0896003395318985,
-0.00986965000629425,
0.040737852454185486,
0.033039480447769165,
-0.09599144756793976,
-0.05563031882047653,
0.02183057926595211,
0.005322638899087906,
-0.10835620760917664,
0.034200895577669144,
-0.16660606861114502,
0.0489426925778389,
-0.01145821064710617,
-0.01599251478910446,
0.0010292201768606901,
-0.0197499617934227,
-0.06339138001203537,
0.04008465260267258,
0.08010312914848328,
0.014744442887604237,
-0.019745592027902603,
-0.05554961785674095,
0.004103188402950764,
0.08454829454421997,
-0.06369369477033615,
-0.17850320041179657,
-0.04140846058726311,
-0.09310215711593628,
0.09144173562526703,
-0.05257553234696388,
-0.09420716017484665,
-0.04277665913105011,
-0.04775228723883629,
0.04618983343243599,
-0.11710405349731445,
0.05789521709084511,
0.04547496512532234,
0.0381653755903244,
0.01945863664150238,
-0.013953929767012596,
0.036217838525772095,
0.07433764636516571,
-0.12732478976249695,
-0.07548326998949051
] |
null | null | sentence-transformers |
# PatentSBERTa
## PatentSBERTa: A Deep NLP based Hybrid Model for Patent Distance and Classification using Augmented SBERT
### Aalborg University Business School, AI: Growth-Lab
https://arxiv.org/abs/2103.11933
https://github.com/AI-Growth-Lab/PatentSBERTa
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
<!--- Describe your model here -->
## Usage (Sentence-Transformers)
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
```
pip install -U sentence-transformers
```
Then you can use the model like this:
```python
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('AI-Growth-Lab/PatentSBERTa')
embeddings = model.encode(sentences)
print(embeddings)
```
## Usage (HuggingFace Transformers)
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
```python
from transformers import AutoTokenizer, AutoModel
import torch
def cls_pooling(model_output, attention_mask):
return model_output[0][:,0]
# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('AI-Growth-Lab/PatentSBERTa')
model = AutoModel.from_pretrained('AI-Growth-Lab/PatentSBERTa')
# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = model(**encoded_input)
# Perform pooling. In this case, cls pooling.
sentence_embeddings = cls_pooling(model_output, encoded_input['attention_mask'])
print("Sentence embeddings:")
print(sentence_embeddings)
```
## Evaluation Results
<!--- Describe how your model was evaluated -->
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name={MODEL_NAME})
## Training
The model was trained with the parameters:
**DataLoader**:
`torch.utils.data.dataloader.DataLoader` of length 5 with parameters:
```
{'batch_size': 16, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
```
**Loss**:
`sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss`
Parameters of the fit()-Method:
```
{
"epochs": 1,
"evaluation_steps": 0,
"evaluator": "NoneType",
"max_grad_norm": 1,
"optimizer_class": "<class 'transformers.optimization.AdamW'>",
"optimizer_params": {
"lr": 2e-05
},
"scheduler": "WarmupLinear",
"steps_per_epoch": null,
"warmup_steps": 100,
"weight_decay": 0.01
}
```
## Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: MPNetModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Citing & Authors
```LaTeX
@article{bekamiri2021patentsberta,
title={PatentSBERTa: A Deep NLP based Hybrid Model for Patent Distance and Classification using Augmented SBERT},
author={Bekamiri, Hamid and Hain, Daniel S and Jurowetzki, Roman},
journal={arXiv preprint arXiv:2103.11933},
year={2021}
}
``` | {"tags": ["sentence-transformers", "feature-extraction", "sentence-similarity", "transformers"], "pipeline_tag": "sentence-similarity"} | sentence-similarity | AI-Growth-Lab/PatentSBERTa | [
"sentence-transformers",
"pytorch",
"mpnet",
"feature-extraction",
"sentence-similarity",
"transformers",
"arxiv:2103.11933",
"endpoints_compatible",
"has_space",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [
"2103.11933"
] | [] | TAGS
#sentence-transformers #pytorch #mpnet #feature-extraction #sentence-similarity #transformers #arxiv-2103.11933 #endpoints_compatible #has_space #region-us
|
# PatentSBERTa
## PatentSBERTa: A Deep NLP based Hybrid Model for Patent Distance and Classification using Augmented SBERT
### Aalborg University Business School, AI: Growth-Lab
URL
URL
This is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
## Usage (Sentence-Transformers)
Using this model becomes easy when you have sentence-transformers installed:
Then you can use the model like this:
## Usage (HuggingFace Transformers)
Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
## Evaluation Results
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL
## Training
The model was trained with the parameters:
DataLoader:
'URL.dataloader.DataLoader' of length 5 with parameters:
Loss:
'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss'
Parameters of the fit()-Method:
## Full Model Architecture
## Citing & Authors
| [
"# PatentSBERTa",
"## PatentSBERTa: A Deep NLP based Hybrid Model for Patent Distance and Classification using Augmented SBERT",
"### Aalborg University Business School, AI: Growth-Lab \n\nURL\n\nURL\n\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.",
"## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:",
"## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.",
"## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL",
"## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 5 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:",
"## Full Model Architecture",
"## Citing & Authors"
] | [
"TAGS\n#sentence-transformers #pytorch #mpnet #feature-extraction #sentence-similarity #transformers #arxiv-2103.11933 #endpoints_compatible #has_space #region-us \n",
"# PatentSBERTa",
"## PatentSBERTa: A Deep NLP based Hybrid Model for Patent Distance and Classification using Augmented SBERT",
"### Aalborg University Business School, AI: Growth-Lab \n\nURL\n\nURL\n\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.",
"## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:",
"## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.",
"## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL",
"## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 5 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:",
"## Full Model Architecture",
"## Citing & Authors"
] | [
55,
5,
26,
57,
38,
64,
29,
77,
5,
6
] | [
"passage: TAGS\n#sentence-transformers #pytorch #mpnet #feature-extraction #sentence-similarity #transformers #arxiv-2103.11933 #endpoints_compatible #has_space #region-us \n# PatentSBERTa## PatentSBERTa: A Deep NLP based Hybrid Model for Patent Distance and Classification using Augmented SBERT### Aalborg University Business School, AI: Growth-Lab \n\nURL\n\nURL\n\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 5 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:## Full Model Architecture## Citing & Authors"
] | [
-0.018194062635302544,
0.14047934114933014,
-0.005795347969979048,
0.037382904440164566,
0.12210511416196823,
0.01691446267068386,
0.19386973977088928,
0.0597473569214344,
0.02501431666314602,
0.007039435673505068,
0.0063770841807127,
0.08653769642114639,
0.03247975930571556,
0.054628945887088776,
0.07053428143262863,
-0.2606426477432251,
-0.008474105969071388,
-0.05715734884142876,
-0.03790748864412308,
0.05886396765708923,
0.1004738137125969,
-0.0692085474729538,
0.07406528294086456,
0.03150784596800804,
-0.04709377512335777,
0.01635841466486454,
-0.02285744994878769,
-0.030876493081450462,
0.09001190215349197,
0.05977788195014,
0.04729536920785904,
0.008150013163685799,
0.05351821705698967,
-0.25215432047843933,
0.01978961005806923,
0.04373281076550484,
-0.020144876092672348,
0.07302109152078629,
0.04435274749994278,
-0.03766089677810669,
0.15914776921272278,
-0.045805953443050385,
0.05746832117438316,
0.05266678333282471,
-0.10358450561761856,
-0.0850260779261589,
-0.05155428871512413,
0.08618459105491638,
0.1306207776069641,
0.07263409346342087,
-0.020962778478860855,
0.05670495331287384,
0.005901567172259092,
0.0855034664273262,
0.10434592515230179,
-0.3159363269805908,
-0.009859709069132805,
0.05258041247725487,
0.1036316454410553,
0.01703665964305401,
-0.11450530588626862,
-0.009119482710957527,
-0.055030956864356995,
0.04320497438311577,
0.09702908992767334,
-0.055771611630916595,
0.028476648032665253,
0.013161052018404007,
-0.1184685230255127,
0.008097145706415176,
0.21686433255672455,
0.03531436622142792,
-0.04045172035694122,
-0.16814693808555603,
-0.05514291673898697,
0.05951788276433945,
0.007896512746810913,
-0.04643397033214569,
0.07081958651542664,
0.0562439002096653,
-0.013024245388805866,
-0.14582210779190063,
-0.10051155835390091,
0.011511079967021942,
-0.07140108942985535,
0.025800736621022224,
-0.004810824990272522,
-0.02390412427484989,
0.00029004260431975126,
0.07767894864082336,
0.03681177645921707,
-0.08235602080821991,
0.0052308435551822186,
-0.03805427998304367,
-0.09458790719509125,
-0.02915462851524353,
-0.019973713904619217,
-0.08710630238056183,
0.0071079181507229805,
0.1836545169353485,
0.06399203091859818,
0.009822487831115723,
0.017669428139925003,
0.06880418211221695,
0.034516263753175735,
0.16027213633060455,
-0.10572700202465057,
-0.07620417326688766,
-0.0022867873776704073,
-0.05629003047943115,
-0.0020388122648000717,
0.002855172147974372,
-0.06218511238694191,
0.009143117815256119,
-0.0270200464874506,
0.050561852753162384,
0.05522262305021286,
0.030122224241495132,
-0.053310733288526535,
-0.051297325640916824,
0.06425179541110992,
-0.09014620631933212,
0.027679231017827988,
-0.007677827030420303,
-0.05330689251422882,
0.016074009239673615,
0.11822038888931274,
0.012261803261935711,
-0.06614930927753448,
0.030621226876974106,
-0.048541296273469925,
-0.016954755410552025,
-0.056843508034944534,
-0.10063748061656952,
0.028726205229759216,
0.025415824726223946,
-0.020778201520442963,
-0.08972682803869247,
-0.17209270596504211,
-0.06881507486104965,
0.08302546292543411,
-0.024085629731416702,
-0.009280703030526638,
-0.09392432868480682,
0.00876911822706461,
0.001626842305995524,
-0.03222840279340744,
-0.0895707756280899,
-0.019298499450087547,
0.003259612713009119,
-0.10793353617191315,
0.04770452901721001,
0.04729999601840973,
0.04337720945477486,
-0.06508025527000427,
0.038826942443847656,
-0.18319767713546753,
0.12433033436536789,
-0.0173106137663126,
0.07705081254243851,
-0.14137326180934906,
0.0002778635243885219,
0.03372982516884804,
0.049388568848371506,
0.029813874512910843,
0.08822233974933624,
-0.17195874452590942,
-0.047512393444776535,
0.12586787343025208,
-0.02228272147476673,
-0.0901806503534317,
0.0846124142408371,
-0.06028428673744202,
0.14740070700645447,
0.08437658846378326,
0.16910333931446075,
0.08818618208169937,
-0.10175982117652893,
-0.06260104477405548,
0.024522727355360985,
-0.11434941738843918,
-0.003685187315568328,
0.07920563966035843,
-0.018677784129977226,
0.1085464134812355,
-0.005521238315850496,
-0.06566213071346283,
0.0602874755859375,
0.013567079789936543,
-0.052272018045186996,
0.03666660562157631,
-0.02661297470331192,
0.006201931741088629,
-0.026234300807118416,
-0.004276248160749674,
0.022463377565145493,
-0.08076466619968414,
0.19222554564476013,
0.060804419219493866,
-0.09292885661125183,
0.03373740240931511,
-0.08791948109865189,
-0.006080813240259886,
-0.01578519679605961,
0.007156862877309322,
-0.15890201926231384,
-0.10215490311384201,
0.006317666731774807,
-0.02299867570400238,
0.14267627894878387,
0.023271091282367706,
0.0559714175760746,
0.0553458034992218,
-0.044828739017248154,
-0.030949974432587624,
0.05968233197927475,
-0.015008349902927876,
-0.063319131731987,
-0.17665432393550873,
-0.024591995403170586,
-0.013975906185805798,
0.04152815416455269,
-0.07861068099737167,
0.03161848708987236,
-0.03366220369935036,
0.10542865097522736,
0.05910130962729454,
-0.029243972152471542,
0.014388615265488625,
-0.03922364115715027,
-0.005234743934124708,
-0.02721925638616085,
0.040686506778001785,
0.04046057537198067,
-0.13346298038959503,
0.07744573056697845,
-0.12770430743694305,
-0.10188258439302444,
0.08074008673429489,
-0.05052516236901283,
-0.04453585296869278,
-0.06874827295541763,
-0.03926961123943329,
-0.006354335695505142,
-0.000982783385552466,
-0.015056353993713856,
0.21153618395328522,
0.0730191245675087,
0.0827024057507515,
-0.04302351549267769,
-0.06449457257986069,
-0.055881891399621964,
-0.05696617066860199,
-0.029942825436592102,
0.11626671254634857,
0.03691752627491951,
-0.11366500705480576,
0.045452579855918884,
0.06598380953073502,
-0.014602040871977806,
0.13419468700885773,
-0.00020122944260947406,
-0.03281792625784874,
-0.10676877200603485,
0.015301060862839222,
0.026066334918141365,
0.04636332392692566,
-0.04975908622145653,
0.028350114822387695,
0.056393254548311234,
-0.012132038362324238,
0.0250376109033823,
-0.07844080775976181,
0.028874481096863747,
0.023633018136024475,
-0.01301836408674717,
0.07369761168956757,
-0.02705542743206024,
-0.034174125641584396,
0.049627635627985,
0.029442161321640015,
0.024254197254776955,
-0.03217592462897301,
-0.061425674706697464,
-0.1205664798617363,
0.1353476196527481,
-0.14858900010585785,
-0.22854560613632202,
-0.18905910849571228,
-0.008452435955405235,
-0.06929540634155273,
0.01439315639436245,
0.06572775542736053,
-0.018522439524531364,
-0.06941959261894226,
-0.0537375845015049,
0.05151863396167755,
0.08551402390003204,
-0.057830698788166046,
-0.032340116798877716,
0.08226898312568665,
0.010350978933274746,
-0.14228078722953796,
-0.008018186315894127,
-0.007729894947260618,
-0.027906369417905807,
-0.011876989156007767,
0.02491801045835018,
0.05491865798830986,
0.11036140471696854,
0.04970766231417656,
-0.0176398865878582,
-0.018518932163715363,
0.20705139636993408,
-0.0818382203578949,
0.07402114570140839,
0.16446904838085175,
0.0027531953528523445,
0.06633254885673523,
0.15261466801166534,
0.036165568977594376,
-0.0560232438147068,
0.05447633937001228,
0.016764437779784203,
-0.01475550327450037,
-0.22645807266235352,
-0.07813701778650284,
-0.05580882728099823,
-0.02381345070898533,
0.049907274544239044,
0.04382079094648361,
-0.042330626398324966,
0.007228541187942028,
-0.020130082964897156,
0.008092310279607773,
0.09441110491752625,
0.10732944309711456,
0.09036228060722351,
-0.02075030468404293,
0.09009838104248047,
-0.060645945370197296,
-0.06022597476840019,
0.06277523189783096,
0.04716045781970024,
0.19542770087718964,
0.028201131150126457,
0.14799422025680542,
0.08229236304759979,
0.017944039776921272,
-0.0329655297100544,
0.06290136277675629,
-0.029934780672192574,
0.04477020353078842,
-0.022373521700501442,
-0.08265534043312073,
0.02230462245643139,
0.09338092058897018,
0.06413178145885468,
-0.04898427054286003,
0.02271917276084423,
0.021674372255802155,
0.10374873876571655,
0.16349077224731445,
0.0015001066494733095,
-0.1762886941432953,
-0.03375845402479172,
0.04891222342848778,
-0.08635792881250381,
-0.0480809323489666,
0.0019926652312278748,
0.04584995284676552,
-0.12355653941631317,
0.045878779143095016,
0.003177409525960684,
0.0918768122792244,
-0.07902397960424423,
-0.004060008097440004,
-0.0011128258192911744,
0.05237344652414322,
0.002620378043502569,
0.0942286029458046,
-0.1998189240694046,
0.07426303625106812,
0.01988031342625618,
0.08291184157133102,
-0.025213465094566345,
0.02985384687781334,
0.03905709460377693,
-0.02551041916012764,
0.17228883504867554,
0.01215679757297039,
-0.07091933488845825,
-0.04039191082119942,
-0.05149785056710243,
-0.015928899869322777,
0.052042100578546524,
-0.09472475945949554,
0.07972804456949234,
-0.023330068215727806,
-0.04937369376420975,
-0.000968627689871937,
-0.03329094499349594,
-0.04184475168585777,
-0.16011029481887817,
-0.00015143409837037325,
-0.044731929898262024,
0.053211431950330734,
-0.02124561369419098,
0.004136985167860985,
-0.00238811899907887,
0.16832929849624634,
-0.17498250305652618,
-0.07776634395122528,
-0.10921882092952728,
-0.07972993701696396,
0.0931410938501358,
-0.08430171757936478,
0.03697829693555832,
0.006146347615867853,
0.11556077003479004,
-0.05607018247246742,
-0.08503381907939911,
0.0796850398182869,
-0.04114647954702377,
-0.07670099288225174,
-0.04895433783531189,
0.10158456861972809,
0.04012100026011467,
0.07801683247089386,
0.02324141189455986,
0.06211712211370468,
-0.050264835357666016,
-0.11329169571399689,
-0.027348393574357033,
0.11386361718177795,
0.028358105570077896,
0.05132169649004936,
-0.12802064418792725,
-0.026267364621162415,
-0.07643937319517136,
0.007058441173285246,
0.182490274310112,
0.24304106831550598,
-0.0822497010231018,
0.12317483127117157,
0.16326649487018585,
-0.1314300000667572,
-0.21220636367797852,
-0.0555756613612175,
0.004806600045412779,
0.03571296110749245,
0.04854845255613327,
-0.15494725108146667,
0.11297404021024704,
0.021775556728243828,
-0.010000509209930897,
-0.09763742238283157,
-0.21452434360980988,
-0.17449495196342468,
0.08575029671192169,
0.024065084755420685,
-0.0498679019510746,
-0.07096332311630249,
-0.04554692283272743,
-0.09355130791664124,
-0.035364992916584015,
0.1507660299539566,
-0.0461629182100296,
0.11104834079742432,
0.04453412815928459,
-0.020638855174183846,
0.02009355090558529,
-0.023031916469335556,
0.0861363336443901,
0.076210156083107,
0.0757901519536972,
-0.011615551076829433,
0.00447050528600812,
0.09827466309070587,
-0.0541071742773056,
0.17907923460006714,
-0.003547672415152192,
0.007943408563733101,
-0.15830837190151215,
-0.05374429374933243,
-0.014779527671635151,
0.04372396692633629,
-0.04601085186004639,
-0.07040732353925705,
-0.036554768681526184,
0.06586338579654694,
0.10081963986158371,
-0.009561165235936642,
-0.011224856600165367,
-0.036781176924705505,
-0.02508598566055298,
0.1421358734369278,
0.12766075134277344,
0.04945119842886925,
-0.15081378817558289,
0.011090489104390144,
-0.01227879524230957,
0.012650948949158192,
-0.13042478263378143,
0.043323270976543427,
0.0986289381980896,
-0.033814311027526855,
0.16433927416801453,
0.021071217954158783,
-0.09375503659248352,
-0.011830080300569534,
0.06488353759050369,
-0.12555146217346191,
-0.21016435325145721,
-0.06395479291677475,
0.0013333972310647368,
-0.11250299215316772,
-0.02089218609035015,
0.14354069530963898,
-0.031944070011377335,
-0.006456962786614895,
0.042712051421403885,
0.05685659125447273,
-0.03429875150322914,
0.07823224365711212,
0.02709193341434002,
0.02580689825117588,
-0.05431750416755676,
0.10127658396959305,
0.10161080211400986,
-0.04998240992426872,
0.05824727565050125,
0.11943601816892624,
-0.07216119021177292,
-0.058847472071647644,
-0.03725595027208328,
0.17685043811798096,
-0.08045943081378937,
0.010473480448126793,
-0.05702492594718933,
-0.07883232086896896,
0.009674531407654285,
0.0031618729699403048,
0.032499928027391434,
0.040894947946071625,
-0.058055292814970016,
-0.009667535312473774,
-0.051102422177791595,
0.11754033714532852,
0.08627733588218689,
-0.0037455339916050434,
-0.04583478718996048,
0.10037977248430252,
-0.005971724633127451,
0.005573233123868704,
-0.024418707937002182,
-0.042551808059215546,
-0.0969872921705246,
-0.004169115796685219,
-0.04600236564874649,
-0.008945265784859657,
-0.11978274583816528,
0.017170805484056473,
0.03079037182033062,
0.03188992664217949,
-0.009513785131275654,
-0.011347703635692596,
-0.046286690980196,
-0.0599014014005661,
-0.025233397260308266,
0.09767141938209534,
-0.16588586568832397,
-0.05084441974759102,
0.06464863568544388,
-0.07684669643640518,
0.09910620748996735,
-0.011861330829560757,
-0.016553517431020737,
-0.0025352174416184425,
-0.013043826445937157,
-0.040918026119470596,
-0.004096772987395525,
0.05379214510321617,
0.03738734498620033,
-0.11225439608097076,
0.01798076182603836,
-0.04046342149376869,
0.0071037570014595985,
0.0018492680974304676,
0.009032881818711758,
-0.10826709866523743,
-0.00030963780591264367,
-0.05795048177242279,
-0.03302973136305809,
-0.11066851019859314,
0.035042084753513336,
0.05953419208526611,
0.06620655953884125,
0.16817831993103027,
-0.0519304983317852,
0.05372501537203789,
-0.14136089384555817,
0.00856210570782423,
0.026016049087047577,
-0.05810512974858284,
0.02459840103983879,
-0.14758889377117157,
0.032347217202186584,
-0.01872354932129383,
0.10165288299322128,
0.018648209050297737,
0.0053714304231107235,
0.04516085609793663,
0.03278830647468567,
-0.03394629806280136,
0.03641211614012718,
-0.012390721589326859,
-0.009855649434030056,
0.01686262898147106,
-0.026613101363182068,
0.018187101930379868,
-0.017443399876356125,
-0.07468389719724655,
0.027465276420116425,
0.12166862189769745,
0.08983458578586578,
0.07531262189149857,
0.08614573627710342,
-0.016064025461673737,
-0.13233904540538788,
0.04478779807686806,
-0.017417440190911293,
0.07591453939676285,
-0.05514059215784073,
0.11188851296901703,
0.099844790995121,
-0.22295443713665009,
0.12131712585687637,
0.021095773205161095,
-0.06862034648656845,
-0.06326941400766373,
-0.14312046766281128,
-0.018099673092365265,
-0.0404059998691082,
-0.006453963462263346,
-0.13386717438697815,
-0.03201209008693695,
0.0008387604029849172,
0.013071334920823574,
-0.009241743944585323,
0.04251526668667793,
-0.11389786750078201,
-0.05607838183641434,
0.051498111337423325,
-0.0010772645473480225,
0.06560182571411133,
-0.034086402505636215,
0.029578516259789467,
0.007800063118338585,
0.05197374150156975,
0.017343008890748024,
0.0761222168803215,
0.038732338696718216,
0.008250687271356583,
-0.075810007750988,
-0.07876267284154892,
0.011099658906459808,
-0.001036513363942504,
-0.03546588122844696,
0.08464168012142181,
0.03633277118206024,
-0.0712907686829567,
0.006952755618840456,
0.23361030220985413,
-0.07521841675043106,
-0.07842697948217392,
-0.14281679689884186,
0.1225181519985199,
0.026143476366996765,
0.014852773398160934,
-0.015374324284493923,
-0.08259328454732895,
-0.03658362478017807,
0.17163002490997314,
0.19083628058433533,
-0.08435657620429993,
-0.016586750745773315,
0.060144372284412384,
0.01115452591329813,
0.010106785222887993,
0.042012035846710205,
0.0734877660870552,
0.24584949016571045,
-0.06963856518268585,
0.1006183922290802,
-0.012868882156908512,
-0.05625048652291298,
-0.04541566222906113,
0.07062321156263351,
-0.000690532149747014,
-0.0009788700845092535,
-0.009299063123762608,
0.10270664095878601,
-0.10252173244953156,
-0.18357832729816437,
-0.03136210888624191,
-0.06789223104715347,
-0.09593871235847473,
-0.030895814299583435,
0.05563605576753616,
0.029265275225043297,
0.06099872291088104,
0.029040511697530746,
-0.015602463856339455,
0.16679364442825317,
0.023519715294241905,
-0.09615728259086609,
0.03870176896452904,
0.029097530990839005,
-0.05300828441977501,
0.13424107432365417,
-0.011697848327457905,
0.021752091124653816,
0.1270090490579605,
0.026490431278944016,
-0.09689390659332275,
0.004210447892546654,
0.028373226523399353,
-0.05433180555701256,
0.0959271639585495,
0.053675878793001175,
-0.00881534069776535,
0.09095101803541183,
0.05500777065753937,
-0.09845264256000519,
0.0563262440264225,
-0.07977093756198883,
-0.025052567943930626,
-0.06716221570968628,
0.048693250864744186,
-0.08756166696548462,
0.11668818444013596,
0.13812647759914398,
-0.043243326246738434,
0.0008875461644493043,
-0.02034684084355831,
-0.015547714196145535,
0.03690703585743904,
0.02637086622416973,
-0.0003251958987675607,
-0.09128474444150925,
0.0108743691816926,
0.011776215396821499,
0.05507688969373703,
-0.23939263820648193,
-0.1298581212759018,
-0.002861244371160865,
-0.022244421765208244,
-0.058162715286016464,
0.12893198430538177,
0.1138274148106575,
0.02583947777748108,
-0.0334729440510273,
-0.09016638249158859,
-0.003849556902423501,
0.06505629420280457,
-0.117398701608181,
-0.06557633727788925
] |
null | null | transformers |
# Model Trained Using AutoNLP
- Problem type: Machine Translation
- Model ID: 474612462
- CO2 Emissions (in grams): 133.0219882109991
## Validation Metrics
- Loss: 1.336498737335205
- Rouge1: 52.5404
- Rouge2: 31.6639
- RougeL: 50.1696
- RougeLsum: 50.3398
- Gen Len: 39.046
## Usage
You can use cURL to access this model:
```
$ curl -X POST -H "Authorization: Bearer YOUR_HUGGINGFACE_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/EricPeter/autonlp-EN-LUG-474612462
``` | {"language": "unk", "tags": "autonlp", "datasets": ["Eric Peter/autonlp-data-EN-LUG"], "widget": [{"text": "I love AutoNLP \ud83e\udd17"}], "co2_eq_emissions": 133.0219882109991} | text2text-generation | AI-Lab-Makerere/en_lg | [
"transformers",
"pytorch",
"marian",
"text2text-generation",
"autonlp",
"unk",
"co2_eq_emissions",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"unk"
] | TAGS
#transformers #pytorch #marian #text2text-generation #autonlp #unk #co2_eq_emissions #autotrain_compatible #endpoints_compatible #region-us
|
# Model Trained Using AutoNLP
- Problem type: Machine Translation
- Model ID: 474612462
- CO2 Emissions (in grams): 133.0219882109991
## Validation Metrics
- Loss: 1.336498737335205
- Rouge1: 52.5404
- Rouge2: 31.6639
- RougeL: 50.1696
- RougeLsum: 50.3398
- Gen Len: 39.046
## Usage
You can use cURL to access this model:
| [
"# Model Trained Using AutoNLP\n\n- Problem type: Machine Translation\n- Model ID: 474612462\n- CO2 Emissions (in grams): 133.0219882109991",
"## Validation Metrics\n\n- Loss: 1.336498737335205\n- Rouge1: 52.5404\n- Rouge2: 31.6639\n- RougeL: 50.1696\n- RougeLsum: 50.3398\n- Gen Len: 39.046",
"## Usage\n\nYou can use cURL to access this model:"
] | [
"TAGS\n#transformers #pytorch #marian #text2text-generation #autonlp #unk #co2_eq_emissions #autotrain_compatible #endpoints_compatible #region-us \n",
"# Model Trained Using AutoNLP\n\n- Problem type: Machine Translation\n- Model ID: 474612462\n- CO2 Emissions (in grams): 133.0219882109991",
"## Validation Metrics\n\n- Loss: 1.336498737335205\n- Rouge1: 52.5404\n- Rouge2: 31.6639\n- RougeL: 50.1696\n- RougeLsum: 50.3398\n- Gen Len: 39.046",
"## Usage\n\nYou can use cURL to access this model:"
] | [
54,
40,
57,
13
] | [
"passage: TAGS\n#transformers #pytorch #marian #text2text-generation #autonlp #unk #co2_eq_emissions #autotrain_compatible #endpoints_compatible #region-us \n# Model Trained Using AutoNLP\n\n- Problem type: Machine Translation\n- Model ID: 474612462\n- CO2 Emissions (in grams): 133.0219882109991## Validation Metrics\n\n- Loss: 1.336498737335205\n- Rouge1: 52.5404\n- Rouge2: 31.6639\n- RougeL: 50.1696\n- RougeLsum: 50.3398\n- Gen Len: 39.046## Usage\n\nYou can use cURL to access this model:"
] | [
-0.17202940583229065,
0.09000817686319351,
-0.0010558483190834522,
0.05304398387670517,
0.054244693368673325,
-0.00465046614408493,
0.07324303686618805,
0.06600610166788101,
-0.007449998054653406,
0.02195025607943535,
0.1678646355867386,
0.15756641328334808,
-0.008220270276069641,
0.17751318216323853,
-0.04667120426893234,
-0.1675419807434082,
0.09199798852205276,
0.041306573897600174,
0.016377994790673256,
0.10719236731529236,
0.10656829923391342,
-0.07112330198287964,
0.15146370232105255,
0.08307352662086487,
-0.11547970771789551,
-0.01470429077744484,
0.030368223786354065,
-0.07154575735330582,
0.1295212209224701,
0.11828016489744186,
0.14482444524765015,
0.08054639399051666,
0.12338003516197205,
-0.10939708352088928,
0.007567624561488628,
-0.041557248681783676,
-0.048504021018743515,
0.11817663908004761,
0.045206014066934586,
-0.04735200107097626,
0.05926284193992615,
0.016241803765296936,
0.0033365548588335514,
0.045389238744974136,
-0.08057841658592224,
0.05272304266691208,
-0.04912050440907478,
-0.05259818956255913,
0.10335137695074081,
0.11366850137710571,
-0.0035205231979489326,
0.266377717256546,
-0.18329191207885742,
0.03564454987645149,
0.18259789049625397,
-0.20676790177822113,
-0.00448590749874711,
0.14236336946487427,
0.06421223282814026,
-0.10351214557886124,
-0.025671787559986115,
0.11900881677865982,
0.11339453607797623,
-0.019125383347272873,
0.01411242876201868,
-0.0973643884062767,
-0.023418258875608444,
0.011905249208211899,
-0.10663294047117233,
0.0001905425451695919,
0.20880216360092163,
0.055215977132320404,
-0.08929792046546936,
0.03725160285830498,
-0.06937742978334427,
-0.10869850963354111,
-0.0653516948223114,
-0.09146551787853241,
0.00865401141345501,
-0.0431709811091423,
-0.047391779720783234,
0.0031680366955697536,
-0.14503860473632812,
-0.05538615584373474,
-0.12077340483665466,
0.04278922826051712,
-0.05689414590597153,
0.007366789039224386,
-0.046047646552324295,
0.1172240674495697,
-0.2077016979455948,
-0.046322040259838104,
-0.042672548443078995,
-0.07855509221553802,
-0.03143417090177536,
-0.031392522156238556,
-0.04851015284657478,
0.1160539984703064,
0.0012376694940030575,
0.1903647929430008,
0.04533719643950462,
-0.011114588938653469,
0.08821213245391846,
0.027498571202158928,
-0.012938208878040314,
0.19329488277435303,
-0.10567743331193924,
-0.0976657047867775,
0.07335914671421051,
-0.08170676231384277,
0.004125149920582771,
-0.045730382204055786,
-0.1477806270122528,
-0.14629516005516052,
0.02712942659854889,
0.036652978509664536,
0.034183282405138016,
-0.006335449405014515,
-0.09529654681682587,
-0.023301173001527786,
0.167620450258255,
-0.0011758292093873024,
0.04516145959496498,
-0.010359149426221848,
-0.03008471056818962,
0.08487322181463242,
0.13488538563251495,
0.05514177307486534,
-0.03512957692146301,
0.031054168939590454,
-0.13062697649002075,
-0.0038869064301252365,
-0.063926100730896,
-0.08959042280912399,
0.04616149887442589,
-0.05820091441273689,
0.05177147686481476,
-0.21075287461280823,
-0.06993197649717331,
0.01584533601999283,
-0.0005526714376173913,
-0.05064873397350311,
-0.06575050204992294,
-0.060236718505620956,
-0.014832704328000546,
0.04537621885538101,
0.013538951054215431,
0.004695837385952473,
-0.019253410398960114,
-0.02106974460184574,
0.006181991193443537,
0.07027710229158401,
-0.15364843606948853,
0.012849574908614159,
-0.07268889993429184,
0.0020276084542274475,
-0.13612478971481323,
0.010565862990915775,
0.026011623442173004,
-0.0026857536286115646,
-0.14139001071453094,
-0.07213673740625381,
-0.012500316835939884,
0.003499196609482169,
0.10693246126174927,
0.22378166019916534,
-0.05705565959215164,
-0.04629117250442505,
0.06739134341478348,
-0.03463469818234444,
-0.07831697911024094,
0.08641628921031952,
-0.009579174220561981,
0.01868029497563839,
0.0210235845297575,
-0.0957634225487709,
0.07963211089372635,
-0.15553326904773712,
0.029001852497458458,
0.11584673821926117,
-0.04309013485908508,
-0.16342878341674805,
0.08027137815952301,
-0.04894718900322914,
-0.20093749463558197,
-0.018651779741048813,
0.05416102707386017,
0.03963553532958031,
-0.0977027639746666,
-0.1103619858622551,
-0.04024800658226013,
-0.021834149956703186,
0.05381955951452255,
-0.06442426145076752,
0.0847494900226593,
-0.0012207498075440526,
-0.07761090993881226,
-0.0951552465558052,
0.08890171349048615,
0.0034307094756513834,
0.017039677128195763,
-0.08842631429433823,
0.0762210339307785,
-0.1302252858877182,
-0.035599034279584885,
-0.13215531408786774,
-0.019356582313776016,
-0.020005492493510246,
-0.0036177095025777817,
-0.0062998197972774506,
0.08377645909786224,
0.043097082525491714,
0.07262931764125824,
-0.006392062641680241,
0.023394009098410606,
0.03792206943035126,
-0.017402244731783867,
-0.13191291689872742,
-0.09449750930070877,
0.0035380118060857058,
-0.012359349988400936,
0.19075419008731842,
-0.11427926272153854,
-0.012881933711469173,
-0.03212045878171921,
0.0465928316116333,
-0.04055623337626457,
0.0721358135342598,
-0.014711587689816952,
0.02699664607644081,
-0.0813998207449913,
0.008813145570456982,
0.03595922142267227,
-0.02123451605439186,
-0.15947508811950684,
0.11241258680820465,
-0.14597387611865997,
0.11188693344593048,
0.17424334585666656,
-0.08733972907066345,
-0.0709061324596405,
-0.025648828595876694,
0.02425217069685459,
0.010684091597795486,
-0.05785296857357025,
-0.02163303643465042,
0.05272655934095383,
0.0023270491510629654,
0.11077453196048737,
-0.06195472180843353,
-0.008864974603056908,
0.09515496343374252,
-0.08342816680669785,
-0.0016257513780146837,
0.1278589963912964,
0.21605971455574036,
-0.12195120751857758,
0.06562531739473343,
0.11704300343990326,
-0.13006488978862762,
0.022858725860714912,
0.06933984160423279,
-0.0756654292345047,
-0.028367096558213234,
-0.07535307854413986,
0.038659363985061646,
0.07871585339307785,
-0.0387100875377655,
0.06606589257717133,
0.08492676168680191,
-0.04167698696255684,
0.030083533376455307,
-0.14858855307102203,
-0.03764549270272255,
0.021115737035870552,
0.0347188264131546,
-0.06636630743741989,
0.06229696422815323,
-0.018698662519454956,
0.12089835852384567,
0.014745451509952545,
-0.16138043999671936,
0.02866804413497448,
0.04766261577606201,
-0.154941126704216,
0.2851760983467102,
-0.08334844559431076,
-0.24881097674369812,
-0.14098037779331207,
-0.008723162114620209,
0.011070535518229008,
0.06328177452087402,
0.05380555987358093,
-0.09013815969228745,
-0.10036392509937286,
-0.026220902800559998,
0.010598588734865189,
0.0022889224346727133,
0.08190635591745377,
-0.037517353892326355,
-0.04056328535079956,
-0.02724338509142399,
-0.1034054234623909,
-0.035494979470968246,
-0.01695895567536354,
-0.014787052758038044,
0.13069695234298706,
-0.12720932066440582,
0.12204045802354813,
0.19457155466079712,
-0.04373978078365326,
-0.02715894766151905,
0.06826097518205643,
0.2517385482788086,
-0.055247727781534195,
0.03387760743498802,
0.13959279656410217,
0.08218041807413101,
0.041485901921987534,
0.10058800131082535,
0.024869685992598534,
-0.061135195195674896,
0.00571857113391161,
-0.03253783658146858,
-0.07273788750171661,
-0.2173522561788559,
-0.1507512778043747,
-0.029772449284791946,
0.024584591388702393,
0.05910806730389595,
-0.0031249667517840862,
0.16272437572479248,
0.1603904664516449,
-0.011559692211449146,
0.07875104993581772,
-0.06549979001283646,
0.0850762277841568,
0.06279169768095016,
0.001951131271198392,
0.1461068093776703,
-0.07179699093103409,
-0.11673683673143387,
0.1026313528418541,
-0.05602534860372543,
0.0955895259976387,
0.15784089267253876,
0.011022616177797318,
-0.01843411847949028,
0.1047363430261612,
0.11600538343191147,
0.20293430984020233,
0.10182786732912064,
-0.08332622051239014,
-0.038920119404792786,
-0.05631346255540848,
-0.028448548167943954,
0.09360414743423462,
0.0943325012922287,
-0.04085646569728851,
-0.11541027575731277,
0.05874660611152649,
0.0022586388513445854,
0.012170142494142056,
0.16026952862739563,
-0.3814006447792053,
-0.04255031794309616,
0.009306658990681171,
0.041962482035160065,
-0.07755649834871292,
-0.03143975883722305,
-0.04579360410571098,
-0.19411486387252808,
0.014038188382983208,
-0.003265639301389456,
0.10182444751262665,
0.035551704466342926,
0.03150004521012306,
-0.13100166618824005,
0.023456541821360588,
-0.016838541254401207,
0.07957477867603302,
-0.26116320490837097,
0.27663829922676086,
0.053855083882808685,
-0.03223399072885513,
-0.07995670288801193,
0.004164999350905418,
0.011911247856914997,
0.19915354251861572,
0.1550692915916443,
0.028951028361916542,
-0.016851117834448814,
-0.14887352287769318,
-0.19404135644435883,
0.06350477039813995,
0.00976972933858633,
-0.04120991751551628,
0.04591432958841324,
0.01899711787700653,
-0.06872836500406265,
0.017581935971975327,
0.014704224653542042,
-0.17290711402893066,
-0.07830590754747391,
0.07230743020772934,
0.04992758110165596,
-0.020253624767065048,
0.002567953197285533,
-0.09671442210674286,
0.004684037063270807,
0.2309667021036148,
-0.030253753066062927,
0.0007332772365771234,
-0.13699141144752502,
-0.030999233946204185,
0.12672008574008942,
-0.11771591752767563,
0.09625621140003204,
-0.06568560004234314,
0.08223911374807358,
-0.06167469173669815,
-0.05763067305088043,
0.1414496898651123,
-0.11890063434839249,
-0.05484703928232193,
-0.0038141426630318165,
0.11092493683099747,
0.029307598248124123,
0.09423096477985382,
0.0882541835308075,
-0.000787879980634898,
-0.10275419801473618,
-0.1645137518644333,
-0.005312200635671616,
0.017054595053195953,
0.04621671885251999,
-0.016540804877877235,
-0.007913979701697826,
-0.08547018468379974,
-0.002312896540388465,
0.02034222148358822,
0.19362983107566833,
0.1886691153049469,
-0.09099104255437851,
0.012135274708271027,
0.1914953589439392,
-0.012467936612665653,
-0.27241629362106323,
-0.027992086485028267,
-0.036714106798172,
0.07840228080749512,
-0.1103500947356224,
-0.10712945461273193,
0.07681714743375778,
0.06740623712539673,
-0.04851778224110603,
-0.00663443747907877,
-0.20220477879047394,
-0.15834100544452667,
0.2325160950422287,
0.0019181952811777592,
0.31044092774391174,
-0.007160215638577938,
-0.020134270191192627,
-0.13141600787639618,
-0.23470519483089447,
0.17732267081737518,
-0.07148173451423645,
0.08322717994451523,
-0.005691700614988804,
0.10513909161090851,
0.047218114137649536,
-0.037294983863830566,
0.19468481838703156,
0.016581473872065544,
-0.01079540140926838,
0.0017237653955817223,
-0.08977927267551422,
0.0028094772715121508,
-0.03731869161128998,
0.11419953405857086,
0.012313568964600563,
0.0356610082089901,
-0.08716606348752975,
-0.040111251175403595,
-0.009731542319059372,
0.15561899542808533,
-0.043089259415864944,
-0.06821437925100327,
-0.014017711393535137,
-0.011972490698099136,
-0.0416739284992218,
-0.022636529058218002,
0.07574141770601273,
-0.011520927771925926,
-0.0033011888153851032,
0.09674178063869476,
0.21093426644802094,
-0.02457573637366295,
0.06197880581021309,
0.05017782002687454,
-0.07359364628791809,
0.10512348264455795,
-0.14145781099796295,
0.06357438862323761,
0.11193384230136871,
-0.028542686253786087,
0.027620848268270493,
0.03408374264836311,
-0.06327444314956665,
-0.02485923282802105,
0.1258554607629776,
-0.14423923194408417,
0.052764248102903366,
-0.049438994377851486,
0.0012663129018619657,
-0.024297431111335754,
0.0869300439953804,
0.12568657100200653,
-0.023604055866599083,
-0.05764114856719971,
-0.012228220701217651,
-0.0399966798722744,
-0.07117506861686707,
0.17197279632091522,
0.06844379007816315,
0.07533309608697891,
-0.11887217313051224,
0.007510758005082607,
-0.005155505146831274,
-0.012923194095492363,
-0.028058495372533798,
0.038053806871175766,
-0.10311370342969894,
-0.12621228396892548,
0.05291154980659485,
0.1127522736787796,
-0.35770565271377563,
-0.03148839622735977,
-0.027964940294623375,
-0.06617490202188492,
0.05027514696121216,
0.15918676555156708,
0.08950705826282501,
0.034844860434532166,
0.015114933252334595,
-0.11793575435876846,
-0.11432803422212601,
-0.04461090266704559,
0.06724681705236435,
0.026676565408706665,
-0.02557973936200142,
0.027984080836176872,
-0.019661912694573402,
0.15245318412780762,
-0.0479639396071434,
0.0072235241532325745,
-0.1277792900800705,
-0.013324357569217682,
-0.11449877917766571,
-0.019035495817661285,
-0.06280986219644547,
-0.02860713005065918,
-0.037179987877607346,
-0.0554855614900589,
-0.06906379759311676,
0.02720729634165764,
-0.09085549414157867,
-0.0026333797723054886,
-0.04154733568429947,
0.021303974092006683,
-0.02116730995476246,
-0.008022044785320759,
0.0856819748878479,
-0.02252797596156597,
0.06221996620297432,
0.10371588170528412,
0.04583258181810379,
0.09005746990442276,
-0.18738749623298645,
0.002044541295617819,
0.09091737121343613,
0.02231939695775509,
0.12211291491985321,
-0.12036947160959244,
0.043986644595861435,
0.03498482704162598,
0.09100143611431122,
-0.015521533787250519,
0.026094287633895874,
-0.12648910284042358,
0.037549350410699844,
-0.05293769761919975,
-0.1512705683708191,
-0.06353145092725754,
0.0024223821237683296,
0.06779147684574127,
0.00838506780564785,
0.031192181631922722,
-0.00010982497769873589,
0.08059432357549667,
-0.0722842589020729,
0.06181635707616806,
-0.08123630285263062,
-0.03142557293176651,
-0.09872158616781235,
-0.08151113241910934,
0.05854388326406479,
0.0029320758767426014,
0.11892017722129822,
-0.03387254849076271,
0.17740312218666077,
-0.018674980849027634,
0.03978198394179344,
0.07969065010547638,
0.01222984679043293,
0.11407496780157089,
0.13074129819869995,
0.035785648971796036,
0.002896771999076009,
0.14801500737667084,
0.09765521436929703,
0.01812879927456379,
0.15390770137310028,
-0.06910620629787445,
0.020544294267892838,
0.20869529247283936,
-0.026465486735105515,
-0.11087104678153992,
-0.05109900236129761,
-0.09132504463195801,
-0.07553399354219437,
-0.01967242732644081,
-0.016287842765450478,
0.019351491704583168,
0.13287419080734253,
-0.0681266263127327,
-0.02952480874955654,
0.013342142105102539,
-0.058924250304698944,
-0.2704194188117981,
-0.11316915601491928,
-0.15182258188724518,
-0.07148685306310654,
-0.00811865646392107,
-0.09957142174243927,
-0.04163777828216553,
0.009725737385451794,
0.05608517304062843,
-0.04178643599152565,
0.07245296239852905,
-0.0707915648818016,
-0.03813761845231056,
-0.011682889424264431,
0.030899614095687866,
0.06971944123506546,
-0.041670363396406174,
-0.0088910898193717,
-0.004224556032568216,
0.01263120211660862,
0.018444081768393517,
-0.021489469334483147,
0.006662390660494566,
0.11335122585296631,
0.027925625443458557,
-0.09390999376773834,
-0.0706547349691391,
0.0030496513936668634,
0.06224949285387993,
0.07269425690174103,
-0.004054324235767126,
0.017856819555163383,
0.006023965775966644,
0.14115718007087708,
-0.07387606799602509,
-0.03887316212058067,
-0.12168444693088531,
0.26581862568855286,
-0.00834920909255743,
0.1016019955277443,
-0.01392302755266428,
-0.01310847606509924,
-0.014253231696784496,
0.25593873858451843,
0.16153332591056824,
-0.021201204508543015,
0.03715748339891434,
0.011865840293467045,
0.015289844013750553,
0.04107597470283508,
-0.002328649628907442,
0.0782831683754921,
0.1647118777036667,
-0.14133214950561523,
-0.032872576266527176,
-0.004060777835547924,
-0.021657755598425865,
-0.018555495887994766,
0.04229133203625679,
-0.007450633216649294,
-0.03839215263724327,
-0.023001663386821747,
0.06473183631896973,
-0.08159604668617249,
0.10551858693361282,
0.031148046255111694,
-0.10291080176830292,
-0.1006212905049324,
0.023159127682447433,
-0.07715548574924469,
0.03585759177803993,
0.13511142134666443,
-0.10611944645643234,
-0.10204383730888367,
0.10270404815673828,
0.03179536759853363,
-0.22327570617198944,
-0.08485712110996246,
0.021716810762882233,
0.07391653954982758,
0.1494993269443512,
0.033799584954977036,
0.11964122205972672,
0.11987419426441193,
0.0636550709605217,
-0.11100227385759354,
0.098170705139637,
0.03507339209318161,
-0.09084974974393845,
0.12122001498937607,
-0.004497257526963949,
-0.02438894473016262,
0.027773208916187286,
0.006007314659655094,
-0.14313222467899323,
0.0733003169298172,
-0.045221492648124695,
0.010244783014059067,
-0.04079087823629379,
0.015611452050507069,
-0.10656263679265976,
0.11093100160360336,
0.09200990200042725,
-0.07053667306900024,
-0.06873133778572083,
-0.02699880115687847,
0.10688194632530212,
0.03550585359334946,
-0.15812934935092926,
-0.048200998455286026,
-0.10812103003263474,
0.07525575160980225,
0.024785468354821205,
0.03411170840263367,
-0.0882720798254013,
-0.02343173697590828,
-0.08107291162014008,
-0.028734413906931877,
-0.06891986727714539,
0.03731844946742058,
0.010895443148911,
0.006457689218223095,
-0.01127927377820015,
-0.11962158232927322,
-0.010159461759030819,
0.05619067698717117,
-0.09259951114654541,
-0.19008715450763702
] |
null | null | transformers |
# Model Trained Using AutoNLP
- Problem type: Machine Translation
- Model ID: 475112539
- CO2 Emissions (in grams): 126.34446293851818
## Validation Metrics
- Loss: 1.5376628637313843
- Rouge1: 62.4613
- Rouge2: 39.4759
- RougeL: 58.183
- RougeLsum: 58.226
- Gen Len: 26.5644
## Usage
You can use cURL to access this model:
```
$ curl -X POST -H "Authorization: Bearer YOUR_HUGGINGFACE_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/EricPeter/autonlp-MarianMT_lg_en-475112539
``` | {"language": "unk", "tags": "autonlp", "datasets": ["EricPeter/autonlp-data-MarianMT_lg_en"], "widget": [{"text": "I love AutoNLP \ud83e\udd17"}], "co2_eq_emissions": 126.34446293851818} | text2text-generation | AI-Lab-Makerere/lg_en | [
"transformers",
"pytorch",
"safetensors",
"marian",
"text2text-generation",
"autonlp",
"unk",
"dataset:EricPeter/autonlp-data-MarianMT_lg_en",
"co2_eq_emissions",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"unk"
] | TAGS
#transformers #pytorch #safetensors #marian #text2text-generation #autonlp #unk #dataset-EricPeter/autonlp-data-MarianMT_lg_en #co2_eq_emissions #autotrain_compatible #endpoints_compatible #region-us
|
# Model Trained Using AutoNLP
- Problem type: Machine Translation
- Model ID: 475112539
- CO2 Emissions (in grams): 126.34446293851818
## Validation Metrics
- Loss: 1.5376628637313843
- Rouge1: 62.4613
- Rouge2: 39.4759
- RougeL: 58.183
- RougeLsum: 58.226
- Gen Len: 26.5644
## Usage
You can use cURL to access this model:
| [
"# Model Trained Using AutoNLP\n\n- Problem type: Machine Translation\n- Model ID: 475112539\n- CO2 Emissions (in grams): 126.34446293851818",
"## Validation Metrics\n\n- Loss: 1.5376628637313843\n- Rouge1: 62.4613\n- Rouge2: 39.4759\n- RougeL: 58.183\n- RougeLsum: 58.226\n- Gen Len: 26.5644",
"## Usage\n\nYou can use cURL to access this model:"
] | [
"TAGS\n#transformers #pytorch #safetensors #marian #text2text-generation #autonlp #unk #dataset-EricPeter/autonlp-data-MarianMT_lg_en #co2_eq_emissions #autotrain_compatible #endpoints_compatible #region-us \n",
"# Model Trained Using AutoNLP\n\n- Problem type: Machine Translation\n- Model ID: 475112539\n- CO2 Emissions (in grams): 126.34446293851818",
"## Validation Metrics\n\n- Loss: 1.5376628637313843\n- Rouge1: 62.4613\n- Rouge2: 39.4759\n- RougeL: 58.183\n- RougeLsum: 58.226\n- Gen Len: 26.5644",
"## Usage\n\nYou can use cURL to access this model:"
] | [
80,
41,
56,
13
] | [
"passage: TAGS\n#transformers #pytorch #safetensors #marian #text2text-generation #autonlp #unk #dataset-EricPeter/autonlp-data-MarianMT_lg_en #co2_eq_emissions #autotrain_compatible #endpoints_compatible #region-us \n# Model Trained Using AutoNLP\n\n- Problem type: Machine Translation\n- Model ID: 475112539\n- CO2 Emissions (in grams): 126.34446293851818## Validation Metrics\n\n- Loss: 1.5376628637313843\n- Rouge1: 62.4613\n- Rouge2: 39.4759\n- RougeL: 58.183\n- RougeLsum: 58.226\n- Gen Len: 26.5644## Usage\n\nYou can use cURL to access this model:"
] | [
-0.2222200185060501,
0.13798269629478455,
-0.00226507312618196,
0.07394719123840332,
0.05305346101522446,
0.011323217302560806,
0.09320036321878433,
0.06823869049549103,
0.02941592037677765,
0.04753937944769859,
0.13268078863620758,
0.141538605093956,
-0.02463466301560402,
0.17642034590244293,
-0.047454897314310074,
-0.13405989110469818,
0.08350759744644165,
0.016683286055922508,
0.001256152638234198,
0.1109330877661705,
0.09512878209352493,
-0.08491221070289612,
0.14383026957511902,
0.07239904254674911,
-0.06666581332683563,
-0.02905086614191532,
0.04591049626469612,
-0.08170320838689804,
0.12727238237857819,
0.1091095581650734,
0.14333492517471313,
0.099884033203125,
0.12613193690776825,
-0.0792580097913742,
0.012452217750251293,
-0.026946060359477997,
-0.057592809200286865,
0.1136850044131279,
0.039405129849910736,
-0.05946516990661621,
-0.007459497079253197,
0.0018888934282585979,
0.01669301837682724,
0.032072726637125015,
-0.08246311545372009,
-0.048593126237392426,
-0.06343872845172882,
-0.06122945621609688,
0.10176800936460495,
0.11190643161535263,
-0.012408141046762466,
0.27957773208618164,
-0.15646089613437653,
0.031001925468444824,
0.2252311259508133,
-0.19157549738883972,
-0.00493391789495945,
0.13898763060569763,
0.035654809325933456,
-0.07985962927341461,
-0.015092454850673676,
0.1144469827413559,
0.10016568005084991,
-0.02653067372739315,
0.05176304280757904,
-0.08053557574748993,
0.007187532726675272,
0.0234533678740263,
-0.12120357155799866,
0.0001615912333363667,
0.20553429424762726,
0.04684482142329216,
-0.08445151150226593,
0.01484060287475586,
-0.07187678664922714,
-0.08038774132728577,
-0.04845679551362991,
-0.09589671343564987,
0.01217439491301775,
-0.0625118538737297,
-0.054819244891405106,
0.03510919213294983,
-0.15466377139091492,
-0.06444405764341354,
-0.12134622782468796,
0.07643450796604156,
-0.036866046488285065,
-0.006386172492057085,
-0.01566837914288044,
0.12773242592811584,
-0.18238353729248047,
-0.0856769010424614,
-0.0603889599442482,
-0.06831338256597519,
-0.020702706649899483,
-0.015213299542665482,
-0.023148657754063606,
0.08164069056510925,
0.04482144117355347,
0.170009046792984,
-0.014143276959657669,
-0.023968467488884926,
0.1153186485171318,
0.017424602061510086,
-0.00773662468418479,
0.14311228692531586,
-0.12008766084909439,
-0.08000008761882782,
0.07733222842216492,
-0.0551844947040081,
0.02251880057156086,
-0.06374926120042801,
-0.10703125596046448,
-0.10705435276031494,
0.0732218474149704,
0.05516683682799339,
0.04106592759490013,
0.00006315918290056288,
-0.10828926414251328,
-0.011445621959865093,
0.19847428798675537,
-0.0219844002276659,
0.03374657407402992,
0.00813219416886568,
-0.02196335233747959,
0.03636098653078079,
0.11836398392915726,
0.03620138764381409,
-0.011597124859690666,
0.04858316853642464,
-0.13198699057102203,
-0.03474859148263931,
-0.037606384605169296,
-0.09511537849903107,
0.054462507367134094,
-0.05939732864499092,
0.03843832388520241,
-0.2278411090373993,
-0.09693126380443573,
0.007186763919889927,
-0.010078441351652145,
-0.03501705452799797,
-0.034970495849847794,
-0.04350318759679794,
-0.03714756295084953,
0.032323699444532394,
0.00537407211959362,
-0.03407657891511917,
-0.04645177349448204,
-0.00373764312826097,
-0.0009262777748517692,
0.049282483756542206,
-0.10497342050075531,
0.0020365652162581682,
-0.08376582711935043,
0.009131078608334064,
-0.15846049785614014,
0.005922357551753521,
-0.007747485768049955,
-0.01929442211985588,
-0.13333474099636078,
-0.0645524114370346,
0.006655047181993723,
-0.011288031004369259,
0.11662008613348007,
0.22301006317138672,
-0.0741003155708313,
-0.04938192665576935,
0.04949003830552101,
-0.08169490098953247,
-0.1088397428393364,
0.07025033980607986,
-0.01532514113932848,
0.013088086619973183,
0.028516307473182678,
-0.05299582704901695,
0.12354826182126999,
-0.17220556735992432,
-0.01947471871972084,
0.05041740462183952,
-0.010665426030755043,
-0.12454649060964584,
0.08862122893333435,
-0.02259359508752823,
-0.1413671374320984,
-0.024063581600785255,
-0.0026524867862462997,
0.01143160555511713,
-0.1042412519454956,
-0.12166433781385422,
-0.03468675538897514,
-0.029634300619363785,
0.05248253047466278,
-0.057782821357250214,
0.04379333183169365,
-0.020131558179855347,
-0.08397843688726425,
-0.08027873933315277,
0.10647672414779663,
-0.0110195716843009,
0.01043138187378645,
-0.09903152287006378,
0.1385183483362198,
-0.135796919465065,
-0.03888776898384094,
-0.13144034147262573,
-0.08129177987575531,
-0.015695080161094666,
-0.046477846801280975,
-0.030035749077796936,
0.030367018654942513,
0.04658891633152962,
0.10641316324472427,
-0.013935456052422523,
-0.010082803666591644,
0.007757013663649559,
-0.004226000513881445,
-0.10106702893972397,
-0.14992821216583252,
0.0016803925391286612,
-0.022020945325493813,
0.2051602154970169,
-0.11741786450147629,
-0.0002394650800852105,
0.03506337106227875,
0.061620794236660004,
-0.02453102543950081,
0.041181061416864395,
-0.013907582499086857,
0.002716687275096774,
-0.0763571485877037,
-0.009897099807858467,
0.006892241537570953,
-0.023543236777186394,
-0.17859579622745514,
0.10847527533769608,
-0.16928182542324066,
0.14949163794517517,
0.15722545981407166,
-0.037049002945423126,
-0.07594302296638489,
-0.02706574648618698,
0.017296912148594856,
0.0084658432751894,
-0.08961522579193115,
-0.03730735555291176,
0.030970867723226547,
0.000052084804337937385,
0.07531483471393585,
-0.07801755517721176,
-0.029970407485961914,
0.10422153025865555,
-0.06905219703912735,
-0.0062764957547187805,
0.13845646381378174,
0.16623321175575256,
-0.12370748072862625,
0.07423879206180573,
0.1351957768201828,
-0.10533647984266281,
0.02273205667734146,
0.05422190576791763,
-0.06796818971633911,
-0.04993050545454025,
-0.07201196998357773,
0.06036542356014252,
0.1133563369512558,
0.00645079743117094,
0.0905153676867485,
0.07754692435264587,
-0.01058669202029705,
0.0005040430114604533,
-0.15401995182037354,
-0.05033693462610245,
0.019586550071835518,
0.022702615708112717,
-0.08277282863855362,
0.06254034489393234,
-0.02910909429192543,
0.12127070873975754,
-0.02200591005384922,
-0.12236665189266205,
0.00018394783546682447,
0.03191709890961647,
-0.15125392377376556,
0.3000999391078949,
-0.07105177640914917,
-0.22539770603179932,
-0.11777200549840927,
0.016849642619490623,
0.009412829764187336,
0.05214857682585716,
0.07639657706022263,
-0.07955233752727509,
-0.10993239283561707,
-0.04336821287870407,
0.0011878203367814422,
0.05701296031475067,
0.09105144441127777,
-0.05655120313167572,
-0.06218687817454338,
-0.013968118466436863,
-0.12268569320440292,
-0.01981055550277233,
-0.0036047003231942654,
-0.021274622529745102,
0.1356377750635147,
-0.08514881879091263,
0.14211320877075195,
0.1676519811153412,
-0.027288127690553665,
-0.04487133398652077,
0.06439787149429321,
0.2693004012107849,
-0.07600688189268112,
0.03519223630428314,
0.13603395223617554,
0.07799983024597168,
0.037193138152360916,
0.08535598963499069,
0.040781691670417786,
-0.06433325260877609,
-0.0075960177928209305,
-0.024281401187181473,
-0.0733858272433281,
-0.23958155512809753,
-0.13048604130744934,
-0.0037510027177631855,
0.00015662884106859565,
0.03413558378815651,
0.017278004437685013,
0.1497722864151001,
0.16563880443572998,
-0.02045743726193905,
0.013134813867509365,
-0.028473911806941032,
0.0818111002445221,
0.06690361350774765,
0.012564037926495075,
0.13425058126449585,
-0.05129779502749443,
-0.0881977379322052,
0.11366462707519531,
-0.044832516461610794,
0.1403391808271408,
0.09409590810537338,
0.014620283618569374,
0.008674842305481434,
0.11146271228790283,
0.07839500904083252,
0.17250582575798035,
0.08684612810611725,
-0.05794622376561165,
-0.02985946461558342,
-0.08567176759243011,
0.01662156730890274,
0.06970313936471939,
0.03029484860599041,
-0.014331513084471226,
-0.12497131526470184,
0.07128026336431503,
0.03462180867791176,
-0.001014771405607462,
0.148502916097641,
-0.38373950123786926,
-0.06411980837583542,
0.004806005395948887,
0.0670076236128807,
-0.051323916763067245,
-0.038298994302749634,
-0.006123221479356289,
-0.14208239316940308,
0.04319240152835846,
0.006691190879791975,
0.0818834900856018,
0.025277815759181976,
0.008145468309521675,
-0.10822109133005142,
0.04712746664881706,
-0.03138311207294464,
0.06910274177789688,
-0.1965021938085556,
0.2819705605506897,
0.06970100104808807,
-0.01677008345723152,
-0.057308558374643326,
-0.007663740310817957,
0.01865534484386444,
0.2111200988292694,
0.17003105580806732,
0.041920751333236694,
0.005059480667114258,
-0.12750479578971863,
-0.2125495970249176,
0.07560350745916367,
-0.014449615962803364,
-0.07346731424331665,
0.057338666170835495,
0.040341634303331375,
-0.08360957354307175,
0.016363902017474174,
0.03775976970791817,
-0.17127659916877747,
-0.058942582458257675,
0.07418008893728256,
0.09126230329275131,
-0.03800121694803238,
-0.022225752472877502,
-0.12181726843118668,
-0.011387307196855545,
0.17855168879032135,
-0.03137316554784775,
-0.012610402889549732,
-0.1400361955165863,
-0.041237421333789825,
0.14429894089698792,
-0.11821336299180984,
0.07903102040290833,
-0.031151073053479195,
0.07812491059303284,
-0.04286344721913338,
-0.03233199194073677,
0.15091542899608612,
-0.11874399334192276,
-0.11578553915023804,
-0.01187830325216055,
0.11120849847793579,
0.06420795619487762,
0.08874358236789703,
0.07164217531681061,
0.00765779847279191,
-0.0819823145866394,
-0.16056229174137115,
-0.0008262728806585073,
0.0450703427195549,
0.0732579380273819,
-0.010667888447642326,
-0.0012355033541098237,
-0.09893753379583359,
-0.010106799192726612,
0.006604415830224752,
0.12300430238246918,
0.24187146127223969,
-0.08540593087673187,
0.0046724556013941765,
0.22239899635314941,
-0.017029589042067528,
-0.2491985261440277,
0.003207100322470069,
-0.04852156713604927,
0.0686979815363884,
-0.07649583369493484,
-0.08511041104793549,
0.08173555880784988,
0.11359957605600357,
-0.06203746795654297,
0.009080624207854271,
-0.2117260843515396,
-0.1676585078239441,
0.197683185338974,
0.052419453859329224,
0.24688173830509186,
-0.03149271383881569,
-0.027930766344070435,
-0.09759083390235901,
-0.2526559829711914,
0.1352735310792923,
-0.11789350211620331,
0.07143119722604752,
0.01807788386940956,
0.053520891815423965,
0.03572290390729904,
-0.0411141999065876,
0.2066802829504013,
0.031740445643663406,
0.008898213505744934,
0.006354274693876505,
-0.062308453023433685,
0.03611040487885475,
-0.040917664766311646,
0.11056721955537796,
-0.006497573107481003,
0.06255435943603516,
-0.03634210675954819,
-0.044141653925180435,
-0.012515095062553883,
0.15751001238822937,
-0.05543173477053642,
-0.09023839235305786,
-0.015382366254925728,
0.01270679384469986,
-0.019068121910095215,
-0.04038773849606514,
0.06690286099910736,
-0.008683363907039165,
0.018493276089429855,
0.07570283114910126,
0.19062034785747528,
-0.04812878370285034,
0.053918059915304184,
0.03951859846711159,
-0.08299916982650757,
0.10623524338006973,
-0.14250494539737701,
0.06628528237342834,
0.11062963306903839,
-0.013726552948355675,
0.016810324043035507,
0.031959764659404755,
-0.08693420886993408,
-0.014397231861948967,
0.12904168665409088,
-0.15350346267223358,
0.03174267336726189,
-0.04038923233747482,
0.017324963584542274,
-0.01757022738456726,
0.13467982411384583,
0.15476654469966888,
-0.03922029957175255,
-0.05478111654520035,
-0.008566334843635559,
-0.027495509013533592,
-0.027540327981114388,
0.2315862774848938,
0.06861009448766708,
0.0802903026342392,
-0.11237603425979614,
0.011612259782850742,
-0.003596535651013255,
-0.01937451958656311,
-0.03503858298063278,
0.020214855670928955,
-0.12079012393951416,
-0.1225508376955986,
0.03857766464352608,
0.12337265908718109,
-0.32410624623298645,
-0.043620552867650986,
-0.060571443289518356,
-0.04747653380036354,
0.03639700636267662,
0.20438694953918457,
0.09997211396694183,
0.04944371059536934,
0.05394341051578522,
-0.10530230402946472,
-0.11132282763719559,
-0.00945299118757248,
0.08576784282922745,
0.05540469288825989,
-0.07402311265468597,
0.021220717579126358,
-0.020884964615106583,
0.11290764063596725,
-0.04667909815907478,
0.026259254664182663,
-0.1278875172138214,
-0.03217080980539322,
-0.0853685662150383,
0.003818150609731674,
-0.06335123628377914,
-0.010480181314051151,
-0.04476998373866081,
-0.0727463960647583,
-0.07504987716674805,
0.04505150020122528,
-0.06634826213121414,
0.0038288040086627007,
-0.02783307246863842,
0.027444377541542053,
-0.06801363080739975,
-0.02261475846171379,
0.0645575150847435,
-0.030402490869164467,
0.08315540850162506,
0.08864384144544601,
0.053580041974782944,
0.08709563314914703,
-0.190756693482399,
0.0310628954321146,
0.10212065279483795,
0.032541073858737946,
0.11815083771944046,
-0.17229321599006653,
0.0389757975935936,
0.025998074561357498,
0.05143013596534729,
-0.007966533303260803,
0.02660202980041504,
-0.11822138726711273,
0.06309738010168076,
-0.06218930706381798,
-0.1225629597902298,
-0.07314880192279816,
-0.011191507801413536,
0.09744775295257568,
-0.003338413080200553,
0.04134584590792656,
-0.014145502820611,
0.06893689185380936,
-0.09924828261137009,
0.050031185150146484,
-0.057842910289764404,
-0.04848640412092209,
-0.11444167792797089,
-0.038184359669685364,
0.0722891315817833,
-0.024278145283460617,
0.11538668721914291,
-0.06800956279039383,
0.15763719379901886,
-0.02143697999417782,
0.045946914702653885,
0.08733219653367996,
0.009396009147167206,
0.09401480108499527,
0.1050066277384758,
0.03440175577998161,
0.004398173652589321,
0.13824054598808289,
0.07335954159498215,
-0.017663368955254555,
0.1447262167930603,
-0.04732373729348183,
0.04629429057240486,
0.16643528640270233,
0.0025878690648823977,
-0.10300174355506897,
-0.05521441623568535,
-0.09042629599571228,
-0.07685962319374084,
-0.024583162739872932,
0.011869735084474087,
0.011358261108398438,
0.13967455923557281,
-0.07746641337871552,
-0.025794409215450287,
-0.0021994428243488073,
-0.041847117245197296,
-0.2553113102912903,
-0.10571365058422089,
-0.1460437923669815,
-0.07084661722183228,
-0.022451041266322136,
-0.1150398775935173,
-0.06363675743341446,
-0.0009424753370694816,
0.06145744025707245,
-0.022270282730460167,
0.11875215917825699,
-0.048595502972602844,
-0.008675278164446354,
-0.02823636494576931,
0.04455801099538803,
0.05619136616587639,
-0.013900114223361015,
-0.02623213268816471,
0.019307253882288933,
0.020550649613142014,
-0.0059506893157958984,
-0.02749614790081978,
0.012777406722307205,
0.12791778147220612,
0.03490889444947243,
-0.10399248450994492,
-0.07481860369443893,
-0.003300759242847562,
0.05565804988145828,
0.03444432467222214,
0.011445902287960052,
0.020503081381320953,
0.020704014226794243,
0.15970085561275482,
-0.0577755942940712,
-0.03956523537635803,
-0.1219172552227974,
0.20971718430519104,
-0.025374874472618103,
0.07127843797206879,
0.01792207732796669,
-0.052836544811725616,
0.014176733791828156,
0.18701323866844177,
0.1748361736536026,
-0.0115455761551857,
0.04753003269433975,
0.018116211518645287,
0.014216288924217224,
0.01648104563355446,
-0.035253044217824936,
0.07839101552963257,
0.20547887682914734,
-0.12110891938209534,
-0.04020634666085243,
-0.013906249776482582,
0.005869540851563215,
-0.01531249564141035,
0.05095319822430611,
-0.015797801315784454,
-0.037751924246549606,
-0.03835422173142433,
0.0781785398721695,
-0.04304482042789459,
0.039114683866500854,
0.04155510663986206,
-0.12173572182655334,
-0.11953402310609818,
-0.011482362635433674,
-0.03340533375740051,
0.02274206280708313,
0.1150435134768486,
-0.09905285388231277,
-0.07316030561923981,
0.06759145110845566,
0.06095181033015251,
-0.19209469854831696,
-0.09614744037389755,
0.024887170642614365,
0.12913627922534943,
0.1993855983018875,
0.02363787777721882,
0.13051943480968475,
0.13167467713356018,
0.03403649851679802,
-0.12258590012788773,
0.1200486570596695,
0.06467058509588242,
-0.12033133953809738,
0.1068982183933258,
-0.0218893364071846,
-0.03250596299767494,
0.0583864264190197,
0.03292505443096161,
-0.14277371764183044,
0.058057501912117004,
-0.013074588030576706,
0.01705055497586727,
-0.04664970561861992,
0.01642734743654728,
-0.10034223645925522,
0.10828565061092377,
0.05501500889658928,
-0.07108405232429504,
-0.06594133377075195,
-0.032264821231365204,
0.1324012130498886,
0.061611857265233994,
-0.14333046972751617,
-0.003443267196416855,
-0.13691841065883636,
0.08504635840654373,
-0.0007294666720554233,
0.05214715376496315,
-0.11546631902456284,
-0.03579569607973099,
-0.05650876462459564,
-0.05564465746283531,
-0.07499408721923828,
0.030285928398370743,
0.018644873052835464,
0.01976022496819496,
-0.023143816739320755,
-0.08495290577411652,
-0.017502449452877045,
0.07460646331310272,
-0.103301040828228,
-0.18655560910701752
] |
null | null | transformers |
# A Swedish Bert model
## Model description
This model follows the Bert Large model architecture as implemented in [Megatron-LM framework](https://github.com/NVIDIA/Megatron-LM). It was trained with a batch size of 512 in 600k steps. The model contains following parameters:
<figure>
| Hyperparameter | Value |
|----------------------|------------|
| \\(n_{parameters}\\) | 340M |
| \\(n_{layers}\\) | 24 |
| \\(n_{heads}\\) | 16 |
| \\(n_{ctx}\\) | 1024 |
| \\(n_{vocab}\\) | 30592 |
## Training data
The model is pretrained on a Swedish text corpus of around 85 GB from a variety of sources as shown below.
<figure>
| Dataset | Genre | Size(GB)|
|----------------------|------|------|
| Anföranden | Politics |0.9|
|DCEP|Politics|0.6|
|DGT|Politics|0.7|
|Fass|Medical|0.6|
|Författningar|Legal|0.1|
|Web data|Misc|45.0|
|JRC|Legal|0.4|
|Litteraturbanken|Books|0.3O|
|SCAR|Misc|28.0|
|SOU|Politics|5.3|
|Subtitles|Drama|1.3|
|Wikipedia|Facts|1.8|
## Intended uses & limitations
The raw model can be used for the usual tasks of masked language modeling or next sentence prediction. It is also often fine-tuned on a downstream task to improve its performance in a specific domain/task.
<br>
<br>
## How to use
```python
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("AI-Nordics/bert-large-swedish-cased")
model = AutoModelForMaskedLM.from_pretrained("AI-Nordics/bert-large-swedish-cased")
| {"language": "sv"} | fill-mask | AI-Nordics/bert-large-swedish-cased | [
"transformers",
"pytorch",
"megatron-bert",
"fill-mask",
"sv",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"sv"
] | TAGS
#transformers #pytorch #megatron-bert #fill-mask #sv #autotrain_compatible #endpoints_compatible #region-us
| A Swedish Bert model
====================
Model description
-----------------
This model follows the Bert Large model architecture as implemented in Megatron-LM framework. It was trained with a batch size of 512 in 600k steps. The model contains following parameters:
Training data
-------------
The model is pretrained on a Swedish text corpus of around 85 GB from a variety of sources as shown below.
Dataset: Anföranden, Genre: Politics, Size(GB): 0.9
Dataset: DCEP, Genre: Politics, Size(GB): 0.6
Dataset: DGT, Genre: Politics, Size(GB): 0.7
Dataset: Fass, Genre: Medical, Size(GB): 0.6
Dataset: Författningar, Genre: Legal, Size(GB): 0.1
Dataset: Web data, Genre: Misc, Size(GB): 45.0
Dataset: JRC, Genre: Legal, Size(GB): 0.4
Dataset: Litteraturbanken, Genre: Books, Size(GB): 0.3O
Dataset: SCAR, Genre: Misc, Size(GB): 28.0
Dataset: SOU, Genre: Politics, Size(GB): 5.3
Dataset: Subtitles, Genre: Drama, Size(GB): 1.3
Dataset: Wikipedia, Genre: Facts, Size(GB): 1.8
Intended uses & limitations
---------------------------
The raw model can be used for the usual tasks of masked language modeling or next sentence prediction. It is also often fine-tuned on a downstream task to improve its performance in a specific domain/task.
How to use
----------
'''python
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from\_pretrained("AI-Nordics/bert-large-swedish-cased")
model = AutoModelForMaskedLM.from\_pretrained("AI-Nordics/bert-large-swedish-cased")
| [] | [
"TAGS\n#transformers #pytorch #megatron-bert #fill-mask #sv #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
41
] | [
"passage: TAGS\n#transformers #pytorch #megatron-bert #fill-mask #sv #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
-0.05567525327205658,
-0.05707439407706261,
-0.007353968918323517,
0.026278162375092506,
0.14197535812854767,
0.0463760681450367,
0.09742084890604019,
0.04659225791692734,
0.042122967541217804,
0.00028401066083461046,
0.16450965404510498,
0.16845586895942688,
-0.03766042739152908,
0.1808987557888031,
-0.06210165098309517,
-0.26372087001800537,
0.04692765697836876,
0.05081408843398094,
-0.14671631157398224,
0.0917162150144577,
0.06999816745519638,
-0.11162621527910233,
0.07860808074474335,
-0.03627100586891174,
-0.12791839241981506,
0.052708350121974945,
0.07310791313648224,
-0.0956554189324379,
0.10978690534830093,
0.03301340341567993,
0.15863750874996185,
0.010326946154236794,
-0.039586953818798065,
-0.025778908282518387,
0.048294782638549805,
-0.0001255240640603006,
-0.061461735516786575,
0.04055972769856453,
0.016919514164328575,
-0.03623606264591217,
-0.012781457975506783,
0.01789543591439724,
0.012371901422739029,
0.040312930941581726,
-0.1084766834974289,
-0.11517766118049622,
-0.025648418813943863,
0.02656758576631546,
0.022642049938440323,
0.0332428440451622,
0.030902773141860962,
0.22751879692077637,
-0.1348269134759903,
0.10534535348415375,
0.1299414038658142,
-0.29534080624580383,
-0.025384914129972458,
0.08909925073385239,
0.041404321789741516,
0.029660632833838463,
0.012494130060076714,
0.10344251245260239,
0.012372144497931004,
0.03793742507696152,
0.07090211659669876,
-0.08736119419336319,
-0.04546091705560684,
0.02328181080520153,
-0.10383731126785278,
-0.031524479389190674,
0.19325460493564606,
-0.067580945789814,
0.0605241023004055,
0.007179561071097851,
-0.13992063701152802,
-0.0534551627933979,
-0.003999487031251192,
-0.022816481068730354,
-0.014245017431676388,
0.019780270755290985,
-0.01978393830358982,
-0.014214788563549519,
-0.09780807793140411,
-0.004486866760998964,
-0.23347783088684082,
0.28372839093208313,
0.010742303915321827,
0.0848517194390297,
-0.18321897089481354,
0.041582148522138596,
-0.08103791624307632,
-0.1327614188194275,
0.0765502005815506,
-0.09437369555234909,
0.015768015757203102,
0.013028652407228947,
-0.07282384485006332,
-0.08752024173736572,
0.09547903388738632,
0.1740269809961319,
0.06859644502401352,
0.026701461523771286,
0.08156014233827591,
0.09699183702468872,
0.031178679317235947,
0.08036725968122482,
-0.006873719394207001,
-0.09135443717241287,
0.06912685185670853,
-0.10877793282270432,
0.05110614746809006,
-0.0475507527589798,
-0.12395061552524567,
-0.046825166791677475,
-0.018014580011367798,
0.074475958943367,
0.03210607171058655,
0.046309784054756165,
-0.06954788416624069,
0.005472503136843443,
0.07838661223649979,
-0.07632049173116684,
0.0198788121342659,
-0.025660952553153038,
0.059295568615198135,
0.17132943868637085,
-0.0054853083565831184,
-0.027119142934679985,
-0.014420587569475174,
0.14936897158622742,
-0.07910498231649399,
-0.040836695581674576,
-0.0846848413348198,
-0.07851962745189667,
0.043750155717134476,
-0.07688912004232407,
0.01658450998365879,
-0.17554092407226562,
-0.096830815076828,
0.06274396926164627,
0.05339731648564339,
-0.0030368822626769543,
-0.02528834342956543,
0.06558407098054886,
-0.009699322283267975,
0.03816604241728783,
-0.04411870241165161,
0.03770693391561508,
-0.03080727532505989,
0.08452752232551575,
0.027127185836434364,
0.13123291730880737,
-0.1348094344139099,
0.042386773973703384,
-0.07954102009534836,
0.01558243203908205,
-0.17443758249282837,
-0.06167785823345184,
-0.037541698664426804,
0.1161249503493309,
0.016445700079202652,
-0.042525239288806915,
-0.11792273819446564,
0.04342058300971985,
0.017697326838970184,
0.16595038771629333,
-0.06975048035383224,
-0.1377972960472107,
0.20338943600654602,
-0.1109616830945015,
-0.13350731134414673,
0.10043890029191971,
0.02243589051067829,
-0.0630171149969101,
0.06454091519117355,
0.07066559046506882,
0.023659469559788704,
-0.09928876161575317,
0.06835074722766876,
0.08677051216363907,
-0.1338694840669632,
-0.1575324833393097,
0.058412790298461914,
0.013417442329227924,
-0.1077476367354393,
0.05443456023931503,
0.04013972356915474,
0.08951648324728012,
-0.08333881944417953,
-0.039343446493148804,
-0.03212204948067665,
-0.05060108006000519,
0.12135869264602661,
0.027513276785612106,
0.10363700985908508,
-0.10764589160680771,
0.0017598330741748214,
-0.013003717176616192,
0.008905024267733097,
0.06540869176387787,
0.031946416944265366,
-0.07170955836772919,
0.13646194338798523,
-0.09727033227682114,
0.03740766644477844,
-0.18766041100025177,
-0.11304160952568054,
0.0022834381088614464,
0.005972463637590408,
0.0015785214491188526,
0.12735453248023987,
0.1151890754699707,
-0.015530036762356758,
-0.03275758773088455,
0.000639409467112273,
0.10160323232412338,
0.024055486544966698,
-0.04650440067052841,
-0.11567439138889313,
0.0004609829920809716,
-0.07076355069875717,
-0.04923912137746811,
0.020989878103137016,
-0.0016637623775750399,
0.011528423056006432,
0.12236062437295914,
-0.006934964098036289,
0.05002158135175705,
-0.0736498087644577,
0.05437661334872246,
-0.033941201865673065,
0.021349936723709106,
0.057702869176864624,
-0.023801496252417564,
-0.07217194139957428,
0.13914377987384796,
-0.12581512331962585,
0.3826178312301636,
0.19310204684734344,
-0.2678251564502716,
0.0019782555755227804,
0.04303065314888954,
0.004155307542532682,
0.0019042530329898,
0.026615919545292854,
-0.01693793386220932,
0.019542774185538292,
-0.0008874012273736298,
0.12984377145767212,
-0.0044669038616120815,
-0.021097641438245773,
0.04234522581100464,
-0.07531598210334778,
-0.056165970861911774,
0.04988294839859009,
0.16157495975494385,
-0.16074731945991516,
0.1805093139410019,
0.2736772894859314,
-0.03524825721979141,
0.15604843199253082,
0.01544579491019249,
0.0015556291909888387,
-0.005708775483071804,
-0.08842379599809647,
-0.02531317248940468,
0.06321156024932861,
-0.13823314011096954,
-0.022475767880678177,
0.07941702753305435,
-0.03005034103989601,
0.04149658977985382,
-0.11120013892650604,
-0.015202770940959454,
0.018183786422014236,
0.056110065430402756,
-0.06012430787086487,
0.13695701956748962,
0.015498177148401737,
0.09667328000068665,
-0.016365306451916695,
-0.0263210516422987,
0.0830821767449379,
0.003817272838205099,
-0.022848021239042282,
0.1331387460231781,
-0.13657011091709137,
-0.2843044400215149,
-0.12490895390510559,
-0.12197057902812958,
-0.03895701467990875,
0.03521987050771713,
0.04648362845182419,
-0.09168822318315506,
-0.08076988160610199,
0.08694601058959961,
-0.0006819837726652622,
-0.005877739749848843,
0.08914157003164291,
-0.04357567057013512,
0.0069879768416285515,
-0.024773774668574333,
-0.05248633399605751,
-0.08244507759809494,
-0.027016939595341682,
-0.013970513828098774,
0.13559381663799286,
-0.04304870590567589,
0.104770228266716,
0.12675638496875763,
0.015030025504529476,
0.055303268134593964,
0.02211022563278675,
0.1456550657749176,
-0.0665934681892395,
-0.0028618951328098774,
0.21167422831058502,
-0.005189168266952038,
0.08930083364248276,
0.12256588041782379,
0.04375217854976654,
-0.031014911830425262,
0.005651721730828285,
-0.06750544905662537,
-0.1379626840353012,
-0.14431646466255188,
-0.13997483253479004,
-0.14315597712993622,
-0.041154924780130386,
0.010457489639520645,
0.05334948003292084,
0.06516774743795395,
0.08250653743743896,
0.0363546684384346,
-0.02201215922832489,
-0.08105812966823578,
0.020641490817070007,
0.18230946362018585,
-0.006395831238478422,
0.1347072869539261,
-0.05390194430947304,
-0.1324937343597412,
0.09166824817657471,
-0.007076965644955635,
0.06806647777557373,
0.10155125707387924,
0.008753294125199318,
0.021224189549684525,
0.12450545281171799,
0.1437607705593109,
0.17175738513469696,
0.0406331866979599,
-0.06361802667379379,
-0.003638110589236021,
-0.018917595967650414,
-0.02969510853290558,
0.011972708627581596,
0.1735922247171402,
-0.0716610997915268,
-0.023599237203598022,
-0.07327614724636078,
0.08068486303091049,
0.14819110929965973,
0.01314518228173256,
-0.2441709041595459,
0.0020047842990607023,
0.07913996279239655,
0.022047214210033417,
-0.025709200650453568,
0.012692459858953953,
0.03776019066572189,
-0.11456061154603958,
0.09107830375432968,
-0.033557239919900894,
0.08516877889633179,
0.08989906311035156,
0.08170101046562195,
0.00944329984486103,
0.006868745665997267,
0.03970053046941757,
0.05015472695231438,
-0.2547309100627899,
0.23084408044815063,
-0.005698539316654205,
-0.05726378783583641,
-0.1017126590013504,
-0.0022461884655058384,
0.04577694460749626,
0.1465500444173813,
0.07203240692615509,
0.04473577067255974,
-0.048247966915369034,
-0.11337736248970032,
-0.015406662598252296,
0.033562738448381424,
0.10596737265586853,
-0.032728083431720734,
-0.018897077068686485,
-0.03620956465601921,
-0.06023393198847771,
-0.0046684336848556995,
0.06423397362232208,
-0.0008227172656916082,
-0.11039435863494873,
0.08274499326944351,
0.08239059895277023,
-0.05038875341415405,
-0.011194280348718166,
-0.08879794925451279,
-0.1147133931517601,
0.17651501297950745,
-0.04647105187177658,
-0.04497813060879707,
-0.13122989237308502,
-0.08189316093921661,
0.10290590673685074,
-0.10782178491353989,
0.09960930794477463,
-0.08549723029136658,
0.02116796188056469,
-0.08389595150947571,
-0.19077889621257782,
0.17160175740718842,
-0.13564229011535645,
-0.046447839587926865,
-0.0676112174987793,
0.14746323227882385,
-0.08165321499109268,
0.04836692288517952,
-0.03278973326086998,
0.04393208771944046,
-0.08898600190877914,
-0.07294917851686478,
0.03818943351507187,
-0.001370400539599359,
0.04526645690202713,
0.0651383101940155,
-0.04489601030945778,
-0.05284728482365608,
0.08430515974760056,
0.018144652247428894,
0.20651815831661224,
0.2581474184989929,
-0.05811477079987526,
0.11965005844831467,
0.168107271194458,
-0.012105348519980907,
-0.37780025601387024,
-0.10217375308275223,
-0.13717655837535858,
0.01345298532396555,
0.03718118742108345,
-0.08688464760780334,
0.12526975572109222,
0.003828579094260931,
-0.04903075471520424,
0.12581059336662292,
-0.20318643748760223,
-0.1049816682934761,
0.15737327933311462,
0.017042383551597595,
0.47246742248535156,
-0.09787140041589737,
-0.04987704008817673,
-0.07082556188106537,
-0.0957808792591095,
0.023421186953783035,
-0.018187712877988815,
0.0958346575498581,
-0.019015677273273468,
0.0588596910238266,
0.014082708396017551,
-0.10293426364660263,
0.09450071305036545,
-0.06335743516683578,
0.019105955958366394,
-0.09621858596801758,
-0.10431571304798126,
0.11141134798526764,
0.005858419928699732,
-0.0124287074431777,
-0.0004243824223522097,
0.008734085597097874,
-0.0009591722046025097,
-0.0135561004281044,
-0.09045477211475372,
0.10647434741258621,
0.027884075418114662,
-0.057485755532979965,
0.028896408155560493,
-0.025072330608963966,
-0.03196008503437042,
-0.02397346682846546,
0.17584188282489777,
-0.012750296853482723,
0.10578679293394089,
0.10444605350494385,
0.0515478178858757,
-0.1625838577747345,
-0.06806112080812454,
-0.04826003685593605,
-0.0729999989271164,
0.09551885724067688,
0.01127334963530302,
0.06564109772443771,
0.11359941959381104,
-0.014342333190143108,
0.0017378063639625907,
0.11844868957996368,
0.026692088693380356,
-0.011734570376574993,
0.15769939124584198,
-0.24744004011154175,
0.02993112988770008,
-0.018792415037751198,
-0.03286488354206085,
0.07444120198488235,
0.09366577118635178,
0.0895846039056778,
0.021661585196852684,
-0.03029661253094673,
-0.007175527513027191,
-0.0005590684013441205,
-0.09129370748996735,
0.11060983687639236,
0.044503986835479736,
0.047718990594148636,
-0.14247313141822815,
0.030353577807545662,
-0.030001690611243248,
-0.18820753693580627,
-0.03956427425146103,
0.1223645955324173,
-0.10898740589618683,
-0.10225700587034225,
0.06455617398023605,
0.05991305783390999,
-0.07275651395320892,
-0.035368192940950394,
-0.09136044234037399,
-0.14412859082221985,
0.054554786533117294,
0.1743495911359787,
0.11749611794948578,
0.04069872573018074,
-0.04154641926288605,
0.00023440420045517385,
-0.016724098473787308,
-0.00040444268961437047,
0.021611031144857407,
0.0401541031897068,
-0.09146357327699661,
0.009206291288137436,
-0.025369713082909584,
0.14655403792858124,
-0.11692152917385101,
-0.02399544231593609,
-0.15157675743103027,
0.03524254634976387,
-0.04911629855632782,
-0.13633102178573608,
-0.07619041949510574,
-0.07831094413995743,
-0.00006121132173575461,
-0.08607546240091324,
-0.06850935518741608,
-0.018081190064549446,
-0.11216304451227188,
0.011291353031992912,
0.018617337569594383,
-0.005485249683260918,
-0.06575635820627213,
-0.025292815640568733,
0.12191863358020782,
-0.03094247728586197,
0.07262261211872101,
0.13688665628433228,
-0.06464065611362457,
0.0800296887755394,
-0.09519926458597183,
-0.1583624929189682,
0.08600601553916931,
0.049818143248558044,
0.10629096627235413,
0.07203453034162521,
0.0198208037763834,
0.06853550672531128,
0.06472562998533249,
0.04158569127321243,
0.049276016652584076,
-0.0951896384358406,
0.09466777741909027,
-0.02126232162117958,
-0.17637866735458374,
-0.019462918862700462,
-0.1037721335887909,
0.08800915628671646,
0.012789154425263405,
0.11510708928108215,
-0.05629108101129532,
0.08347189426422119,
-0.06964706629514694,
0.02356131002306938,
-0.02036035805940628,
-0.19409584999084473,
-0.06773632019758224,
-0.016612689942121506,
0.0376846045255661,
-0.016924571245908737,
0.24804848432540894,
-0.006137405522167683,
0.0029320723842829466,
0.05572117865085602,
0.10218480229377747,
0.004653411451727152,
0.03264647722244263,
0.1641257405281067,
0.08306410163640976,
-0.037452034652233124,
-0.06425970792770386,
0.10453474521636963,
0.043647054582834244,
-0.036568187177181244,
0.16432969272136688,
0.06702499091625214,
0.05849529802799225,
0.09440752863883972,
0.019709419459104538,
0.03377795219421387,
-0.13096705079078674,
-0.21732640266418457,
-0.08110690861940384,
0.0803660899400711,
0.0037191056180745363,
0.010232770815491676,
0.11112833768129349,
-0.035351015627384186,
0.018501535058021545,
-0.048403676599264145,
-0.008372517302632332,
-0.18797363340854645,
-0.14995746314525604,
-0.10187143832445145,
-0.0762852281332016,
0.005019018426537514,
-0.03642471134662628,
-0.005104874726384878,
0.11008165031671524,
0.038995206356048584,
-0.04477142170071602,
0.17267034947872162,
-0.026761218905448914,
-0.0009176658932119608,
0.015410598367452621,
-0.009748339653015137,
0.004641777835786343,
0.05332650616765022,
-0.04576031491160393,
-0.17305710911750793,
-0.015378402546048164,
-0.04528747498989105,
0.015226386487483978,
-0.1285630613565445,
0.008912298828363419,
-0.0685272291302681,
-0.12570086121559143,
-0.06943508237600327,
0.013611212372779846,
-0.03573978319764137,
0.03108682669699192,
-0.01836422085762024,
0.03380812704563141,
-0.0007021499914117157,
0.09376942366361618,
-0.08937365561723709,
-0.08465266972780228,
-0.034932464361190796,
0.15041877329349518,
0.038940828293561935,
0.10239013284444809,
-0.011359336785972118,
0.026956001296639442,
-0.13397689163684845,
0.3076459467411041,
0.373537540435791,
-0.08843245357275009,
0.07064834982156754,
0.036792341619729996,
0.03554590418934822,
0.03496738523244858,
0.15562234818935394,
0.05671800673007965,
0.24937587976455688,
-0.07833460718393326,
0.01209626067429781,
-0.06000439450144768,
-0.03195618838071823,
-0.10853275656700134,
0.008509811013936996,
0.042132847011089325,
-0.047096628695726395,
-0.04160765931010246,
0.06556761264801025,
-0.12730735540390015,
0.14512291550636292,
0.04790741950273514,
-0.20603486895561218,
-0.0609339140355587,
-0.012583271600306034,
0.1761484444141388,
0.02580382116138935,
0.10302350670099258,
-0.0549294538795948,
-0.07889604568481445,
0.02601506933569908,
0.02882833406329155,
-0.19255587458610535,
-0.08660909533500671,
0.11014843732118607,
-0.03267347067594528,
0.07047878950834274,
-0.014858146198093891,
0.043741289526224136,
0.08040515333414078,
0.0386316142976284,
-0.02430708333849907,
0.02635776810348034,
0.0181624423712492,
-0.16680753231048584,
-0.06368780881166458,
0.016255399212241173,
-0.01758420281112194,
-0.07578081637620926,
0.009358180686831474,
-0.12717142701148987,
0.03564184159040451,
-0.08103024959564209,
-0.0061437273398041725,
0.01470119971781969,
0.05024164170026779,
-0.04449991136789322,
0.06528409570455551,
0.06796544045209885,
0.015637366101145744,
-0.02632521465420723,
-0.054215602576732635,
0.03170068562030792,
0.05857008695602417,
-0.038295961916446686,
-0.16267253458499908,
-0.13138450682163239,
-0.05083489790558815,
0.003054707543924451,
0.005604734644293785,
-0.10367599129676819,
-0.053330305963754654,
-0.1408587545156479,
0.03290751203894615,
-0.1465369611978531,
0.023129330947995186,
0.08121779561042786,
0.017113637179136276,
0.009307327680289745,
-0.11062729358673096,
0.029901091009378433,
0.057661328464746475,
-0.1748122274875641,
-0.08777285367250443
] |
null | null | sentence-transformers |
# {MODEL_NAME}
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.
<!--- Describe your model here -->
## Usage (Sentence-Transformers)
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
```
pip install -U sentence-transformers
```
Then you can use the model like this:
```python
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('{MODEL_NAME}')
embeddings = model.encode(sentences)
print(embeddings)
```
## Usage (HuggingFace Transformers)
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
```python
from transformers import AutoTokenizer, AutoModel
import torch
#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('{MODEL_NAME}')
model = AutoModel.from_pretrained('{MODEL_NAME}')
# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = model(**encoded_input)
# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
print("Sentence embeddings:")
print(sentence_embeddings)
```
## Evaluation Results
<!--- Describe how your model was evaluated -->
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name={MODEL_NAME})
## Training
The model was trained with the parameters:
**DataLoader**:
`torch.utils.data.dataloader.DataLoader` of length 1438 with parameters:
```
{'batch_size': 64, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
```
**Loss**:
`sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss`
Parameters of the fit()-Method:
```
{
"callback": null,
"epochs": 2,
"evaluation_steps": 1000,
"evaluator": "sentence_transformers.evaluation.EmbeddingSimilarityEvaluator.EmbeddingSimilarityEvaluator",
"max_grad_norm": 1,
"optimizer_class": "<class 'transformers.optimization.AdamW'>",
"optimizer_params": {
"lr": 2e-05
},
"scheduler": "WarmupLinear",
"steps_per_epoch": null,
"warmup_steps": 288,
"weight_decay": 0.05
}
```
## Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Citing & Authors
<!--- Describe where people can find more information --> | {"tags": ["sentence-transformers", "feature-extraction", "sentence-similarity", "transformers"], "pipeline_tag": "sentence-similarity"} | sentence-similarity | AIDA-UPM/MSTSb_paraphrase-multilingual-MiniLM-L12-v2 | [
"sentence-transformers",
"pytorch",
"feature-extraction",
"sentence-similarity",
"transformers",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#sentence-transformers #pytorch #feature-extraction #sentence-similarity #transformers #endpoints_compatible #region-us
|
# {MODEL_NAME}
This is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.
## Usage (Sentence-Transformers)
Using this model becomes easy when you have sentence-transformers installed:
Then you can use the model like this:
## Usage (HuggingFace Transformers)
Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
## Evaluation Results
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL
## Training
The model was trained with the parameters:
DataLoader:
'URL.dataloader.DataLoader' of length 1438 with parameters:
Loss:
'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss'
Parameters of the fit()-Method:
## Full Model Architecture
## Citing & Authors
| [
"# {MODEL_NAME}\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.",
"## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:",
"## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.",
"## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL",
"## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 1438 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:",
"## Full Model Architecture",
"## Citing & Authors"
] | [
"TAGS\n#sentence-transformers #pytorch #feature-extraction #sentence-similarity #transformers #endpoints_compatible #region-us \n",
"# {MODEL_NAME}\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.",
"## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:",
"## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.",
"## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL",
"## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 1438 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:",
"## Full Model Architecture",
"## Citing & Authors"
] | [
40,
50,
38,
64,
29,
78,
5,
6
] | [
"passage: TAGS\n#sentence-transformers #pytorch #feature-extraction #sentence-similarity #transformers #endpoints_compatible #region-us \n# {MODEL_NAME}\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search.## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 1438 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:## Full Model Architecture## Citing & Authors"
] | [
-0.020787687972187996,
0.12844732403755188,
-0.00876383762806654,
0.037416160106658936,
0.12374524772167206,
0.03690161556005478,
0.16662155091762543,
0.10382302850484848,
-0.040418095886707306,
0.05318489670753479,
0.004911689553409815,
0.13420900702476501,
-0.00780172785744071,
-0.015856515616178513,
0.0302262119948864,
-0.28338971734046936,
0.01865711808204651,
-0.040144182741642,
-0.017471708357334137,
0.06047569960355759,
0.11206994950771332,
-0.07212011516094208,
0.05086181312799454,
-0.012201851233839989,
-0.06523064523935318,
0.04505177587270737,
-0.029854098334908485,
-0.027298901230096817,
0.07016259431838989,
0.06525895744562149,
0.09465302526950836,
0.01309186965227127,
0.0052637928165495396,
-0.2012293040752411,
0.016074825078248978,
0.08319508284330368,
-0.023900050669908524,
0.053167831152677536,
0.024868357926607132,
-0.07996101677417755,
0.1025276631116867,
-0.10997612774372101,
0.07366707175970078,
0.03926049545407295,
-0.11732874810695648,
-0.049522824585437775,
-0.025101657956838608,
-0.0007724534953013062,
0.08924897015094757,
0.09811589866876602,
-0.04384838417172432,
0.099394291639328,
-0.043373461812734604,
0.0974220559000969,
0.1483079493045807,
-0.24075499176979065,
-0.044577814638614655,
0.022263841703534126,
0.03646846115589142,
0.033587634563446045,
-0.10852906852960587,
0.014300207607448101,
-0.059306781738996506,
0.04071895033121109,
0.07035308331251144,
-0.04494357109069824,
-0.005436690524220467,
0.0021211171988397837,
-0.095191091299057,
0.010993534699082375,
0.147801011800766,
-0.01286808867007494,
-0.017528757452964783,
-0.16726355254650116,
-0.10348746925592422,
0.10615891218185425,
-0.03130767121911049,
-0.02117028832435608,
0.05731432884931564,
0.06959179788827896,
-0.024454373866319656,
-0.13409766554832458,
-0.08105066418647766,
-0.03174363449215889,
-0.053486328572034836,
0.04005984216928482,
0.013008840382099152,
-0.04640740901231766,
-0.024845290929079056,
0.07028043270111084,
0.007860420271754265,
-0.09374721348285675,
-0.022265758365392685,
-0.038515567779541016,
-0.09987879544496536,
-0.0017602161969989538,
-0.06933097541332245,
-0.14555780589580536,
0.03251291438937187,
0.15251223742961884,
0.07629873603582382,
0.03215392306447029,
-0.022499054670333862,
0.0698058009147644,
-0.0021979378070682287,
0.16029134392738342,
-0.037079982459545135,
-0.03909311443567276,
-0.0028388630598783493,
-0.0033546588383615017,
0.008625419810414314,
-0.016619734466075897,
-0.048630304634571075,
-0.023772476240992546,
0.00033153817639686167,
0.06126163527369499,
0.045929521322250366,
0.06468308717012405,
-0.023293770849704742,
-0.059631578624248505,
0.023968923836946487,
-0.12573929131031036,
0.016514746472239494,
0.02035445161163807,
-0.01966465450823307,
0.05151822045445442,
0.1288163959980011,
-0.03280635550618172,
-0.08533010631799698,
0.0038343362975865602,
-0.07245353609323502,
-0.0023741426412016153,
-0.07448610663414001,
-0.1352132260799408,
-0.02421473152935505,
-0.019491028040647507,
-0.04754737764596939,
-0.10129708051681519,
-0.15838786959648132,
-0.0610094778239727,
0.0632862001657486,
-0.03301379084587097,
0.009115060791373253,
-0.12505623698234558,
0.004386160057038069,
-0.014215148985385895,
0.011686353012919426,
-0.07256434112787247,
0.007943321019411087,
0.012515400536358356,
-0.06801283359527588,
0.06222505122423172,
0.034295644611120224,
0.050588320940732956,
-0.09930974245071411,
0.014563145115971565,
-0.17079178988933563,
0.18794873356819153,
-0.03447776660323143,
0.054920442402362823,
-0.09195815026760101,
0.039164334535598755,
0.013482500799000263,
0.060604482889175415,
0.016884952783584595,
0.11498169600963593,
-0.195033997297287,
-0.08090420067310333,
0.1845155954360962,
-0.05227123945951462,
-0.07523057609796524,
0.08693666756153107,
-0.05650222301483154,
0.12523236870765686,
0.13068120181560516,
0.14949044585227966,
0.13871581852436066,
-0.05315568298101425,
0.011481148190796375,
0.04010555148124695,
-0.054893553256988525,
0.1108662486076355,
0.024154212325811386,
-0.054260026663541794,
0.10805835574865341,
0.0043975068256258965,
-0.04340824484825134,
0.011534495279192924,
0.008512275293469429,
-0.047437164932489395,
0.008924785070121288,
-0.044359464198350906,
0.043103303760290146,
-0.034798514097929,
0.029434219002723694,
0.020095935091376305,
-0.09758417308330536,
0.17100828886032104,
0.062473393976688385,
-0.10640551894903183,
0.046547096222639084,
-0.05960531160235405,
-0.0216385405510664,
-0.02301880344748497,
0.00449611758813262,
-0.20387256145477295,
-0.14465901255607605,
0.012198911979794502,
0.0038767934311181307,
0.1187981367111206,
0.013998053967952728,
0.0544886514544487,
0.04567876085639,
-0.030874375253915787,
0.0038156043738126755,
0.03290652483701706,
0.002082704333588481,
-0.08191593736410141,
-0.11222811043262482,
-0.016696862876415253,
-0.0355532169342041,
0.04154781997203827,
-0.06977760046720505,
0.03547457978129387,
-0.019296925514936447,
0.08959205448627472,
0.05271582677960396,
-0.024022940546274185,
0.0040416112169623375,
-0.02519363723695278,
0.006985670421272516,
-0.04484599083662033,
0.06297356635332108,
0.04098651558160782,
-0.12693670392036438,
0.09342589974403381,
-0.15464508533477783,
-0.13547691702842712,
0.07253154367208481,
-0.06119489669799805,
-0.04748442396521568,
-0.041665688157081604,
-0.01594250649213791,
0.008534654974937439,
-0.05047661066055298,
-0.05184045433998108,
0.2393374890089035,
0.07941873371601105,
0.1169724315404892,
-0.04284404590725899,
-0.03220989555120468,
-0.0695987194776535,
-0.038767579942941666,
-0.015983019024133682,
0.09172677248716354,
-0.031550753861665726,
-0.11851296573877335,
0.0687408521771431,
0.03871135041117668,
-0.08491043001413345,
0.12824544310569763,
-0.009173095226287842,
-0.050037700682878494,
-0.04767509922385216,
0.011674504727125168,
0.02778030000627041,
-0.016648557037115097,
-0.08366159349679947,
0.00473385863006115,
0.04160008952021599,
0.011964228935539722,
0.0467616505920887,
-0.062353748828172684,
0.05213232710957527,
0.05459712818264961,
-0.012843741104006767,
0.07650572806596756,
0.0029827929101884365,
0.017731022089719772,
0.041801538318395615,
0.011019544675946236,
0.06069529056549072,
-0.02762170508503914,
-0.05287517234683037,
-0.09897632896900177,
0.14411313831806183,
-0.12863771617412567,
-0.20017477869987488,
-0.14232799410820007,
0.02624911069869995,
-0.0703328549861908,
0.028350049629807472,
0.09238676726818085,
-0.03768981248140335,
-0.04877034202218056,
-0.04778333380818367,
0.056124698370695114,
0.07579341530799866,
-0.05159405618906021,
-0.026669854298233986,
0.05478638410568237,
0.010279469192028046,
-0.13373702764511108,
-0.010976999998092651,
-0.008529177866876125,
-0.0718904584646225,
-0.01622505858540535,
-0.0454193651676178,
0.04670746251940727,
0.07878320664167404,
0.05817388370633125,
0.013197759166359901,
-0.012025406584143639,
0.2175321877002716,
-0.06213957816362381,
0.05776504427194595,
0.13127698004245758,
-0.011123308911919594,
0.076199971139431,
0.08312205225229263,
0.021890953183174133,
-0.0721295028924942,
0.04137679934501648,
0.07699455320835114,
-0.019144391641020775,
-0.17147275805473328,
-0.08188456296920776,
-0.0751831904053688,
-0.05122501403093338,
0.10339365154504776,
0.042286038398742676,
-0.0071508511900901794,
0.048374027013778687,
-0.0255208071321249,
0.01857551746070385,
0.09752378612756729,
0.10836710780858994,
0.107064388692379,
-0.013066279701888561,
0.10345468670129776,
-0.06161593273282051,
-0.0691966786980629,
0.03970104083418846,
-0.0052608586847782135,
0.17269745469093323,
0.0021681818179786205,
0.16166262328624725,
0.07788033783435822,
-0.02747613750398159,
-0.00615298468619585,
0.08643448352813721,
-0.05344663932919502,
0.05327270179986954,
-0.029437679797410965,
-0.09433938562870026,
-0.024961713701486588,
0.05362166091799736,
0.08970371633768082,
-0.04086499661207199,
-0.024489205330610275,
0.046658068895339966,
0.14866364002227783,
0.18935076892375946,
0.021430592983961105,
-0.20471660792827606,
-0.026297565549612045,
0.027111181989312172,
-0.05386896803975105,
-0.06039357930421829,
-0.004695906303822994,
0.041722629219293594,
-0.0997750535607338,
0.04399386793375015,
-0.02170119807124138,
0.1092127189040184,
-0.08847804367542267,
0.02020244300365448,
-0.027977606281638145,
0.06012677401304245,
0.0011728781973943114,
0.06927485764026642,
-0.2196991741657257,
0.07357992231845856,
0.03925997391343117,
0.07518760859966278,
-0.038427744060754776,
0.028357932344079018,
0.08216793835163116,
0.0194089375436306,
0.15788006782531738,
-0.019328352063894272,
-0.013089483603835106,
0.03857184201478958,
-0.06963036209344864,
0.015282878652215004,
0.06710810214281082,
-0.13146740198135376,
0.08848174661397934,
-0.05923432856798172,
-0.0421769879758358,
-0.0026863752864301205,
0.055851440876722336,
-0.067485012114048,
-0.19071437418460846,
-0.0057773711159825325,
0.009807968512177467,
0.00939272902905941,
-0.01631433330476284,
0.008262482471764088,
0.046070344746112823,
0.20085075497627258,
-0.10626928508281708,
-0.08457745611667633,
-0.12656046450138092,
-0.0381845086812973,
0.09145959466695786,
-0.08596190065145493,
0.01034710742533207,
-0.009413305670022964,
0.14245103299617767,
-0.053976237773895264,
-0.10896382480859756,
0.06473694741725922,
-0.038289375603199005,
-0.05308391526341438,
-0.03257334977388382,
0.08399013429880142,
0.043927282094955444,
0.03624279052019119,
0.040083110332489014,
0.07452985644340515,
-0.0278757456690073,
-0.08847399801015854,
-0.07323382794857025,
0.16196289658546448,
0.00015325695858336985,
0.08277370035648346,
-0.15125423669815063,
-0.01445178221911192,
-0.09622585773468018,
0.06613640487194061,
0.21944312751293182,
0.18092674016952515,
-0.0706762820482254,
0.09913209825754166,
0.17159180343151093,
-0.1333359181880951,
-0.22587135434150696,
-0.06595837324857712,
0.015538563020527363,
0.028343554586172104,
0.006810852326452732,
-0.164769247174263,
0.08339723199605942,
0.036103617399930954,
0.015656251460313797,
-0.09307123720645905,
-0.2369844913482666,
-0.14208027720451355,
0.11726449429988861,
0.01022929884493351,
-0.025982191786170006,
-0.09518937021493912,
-0.05720456317067146,
-0.08323591947555542,
-0.016369637101888657,
0.1204645037651062,
-0.10737266391515732,
0.13044242560863495,
0.0500677227973938,
-0.009252448566257954,
0.04820263385772705,
-0.008626426570117474,
0.09719901531934738,
0.05267605930566788,
0.05421365052461624,
-0.02185857854783535,
-0.043488986790180206,
0.11415620148181915,
-0.08660778403282166,
0.1195538267493248,
-0.02728777565062046,
0.04506070539355278,
-0.08377836644649506,
-0.03877316415309906,
-0.047289807349443436,
0.021334921941161156,
-0.036443013697862625,
-0.05629966780543327,
-0.01096597220748663,
0.024661356583237648,
0.12700317800045013,
0.0048087895847857,
0.034632809460163116,
-0.07949130237102509,
0.028871092945337296,
0.14460113644599915,
0.0734977126121521,
0.029387038201093674,
-0.19371271133422852,
0.01687278226017952,
0.0034391158260405064,
0.06610892713069916,
-0.09673278033733368,
0.08391115814447403,
0.07692800462245941,
-0.005140352062880993,
0.1539263129234314,
0.04740677401423454,
-0.06932774931192398,
-0.015331333503127098,
0.01384057104587555,
-0.11038452386856079,
-0.10095131397247314,
-0.04801999777555466,
-0.0398411825299263,
-0.0963190346956253,
-0.05551213026046753,
0.1562020629644394,
-0.009786850772798061,
-0.007046673446893692,
0.0345613956451416,
0.016481852158904076,
-0.0327969565987587,
0.08288590610027313,
0.026545187458395958,
0.019025851041078568,
-0.04541294649243355,
0.13308367133140564,
0.06596158444881439,
-0.09712132811546326,
0.034288980066776276,
0.1456964910030365,
-0.08191588521003723,
-0.07625272870063782,
-0.018570810556411743,
0.18407079577445984,
-0.06445904821157455,
0.037128426134586334,
-0.07707282155752182,
-0.05547211691737175,
0.010099704377353191,
0.08314226567745209,
0.047564733773469925,
0.06360070407390594,
-0.10012798011302948,
0.015086795203387737,
-0.08339597284793854,
0.08180513232946396,
0.06011836975812912,
0.022109387442469597,
-0.03409291058778763,
0.10340599715709686,
-0.008023815229535103,
-0.014062556438148022,
-0.03399733081459999,
-0.04883003979921341,
-0.095417819917202,
0.014257378876209259,
-0.052732646465301514,
0.026562625542283058,
-0.07382820546627045,
-0.008007027208805084,
0.03393316641449928,
0.04452541097998619,
0.0043158940970897675,
-0.005397734697908163,
-0.04742593690752983,
-0.07688651978969574,
-0.04654783755540848,
0.07059672474861145,
-0.16287977993488312,
-0.026870522648096085,
0.019606687128543854,
-0.10888650268316269,
0.07553093880414963,
0.02627631090581417,
-0.05004311725497246,
0.014393982477486134,
-0.05218138545751572,
-0.06611514091491699,
0.008120435290038586,
0.02843424119055271,
0.05426843836903572,
-0.07846079766750336,
0.01691773720085621,
-0.05335020273923874,
0.029211681336164474,
0.0039044576697051525,
0.09072953462600708,
-0.09776459634304047,
0.04532327502965927,
0.0009655648609623313,
-0.021467100828886032,
-0.0866851657629013,
0.008662514388561249,
0.05311618000268936,
0.061318445950746536,
0.1327504962682724,
-0.06970395892858505,
0.09039921313524246,
-0.11673615872859955,
-0.004406765103340149,
0.023963311687111855,
-0.05542600154876709,
0.10169221460819244,
-0.12182484567165375,
0.05694586783647537,
-0.05452381819486618,
0.08602462708950043,
-0.012669667601585388,
0.05622407793998718,
0.05387340113520622,
0.020925141870975494,
-0.049656737595796585,
0.04487936943769455,
0.04604252055287361,
0.030575042590498924,
0.0014852520544081926,
-0.03865488991141319,
0.02382238768041134,
0.025128576904535294,
-0.021542595699429512,
0.05509132891893387,
0.12008057534694672,
0.07417646795511246,
0.08829040825366974,
0.07110355794429779,
0.035572897642850876,
-0.10988163948059082,
0.015365776605904102,
0.019803745672106743,
0.05315361171960831,
-0.05613309144973755,
0.00651965755969286,
0.11679571866989136,
-0.14832845330238342,
0.13307127356529236,
0.023488346487283707,
-0.06922116130590439,
-0.09918177127838135,
-0.09266036003828049,
-0.05698450654745102,
-0.021760568022727966,
-0.0258905328810215,
-0.12530070543289185,
-0.005613918416202068,
0.01684902049601078,
0.007731114514172077,
0.015954336151480675,
0.14004357159137726,
-0.08540140837430954,
-0.08505972474813461,
0.07108733803033829,
-0.02034006640315056,
0.04981674998998642,
0.0006082177278585732,
0.01899813488125801,
0.018504636362195015,
0.09190692752599716,
0.022740812972187996,
0.06381624937057495,
0.057075709104537964,
0.011705534532666206,
-0.09194018691778183,
-0.0772005096077919,
0.0007513783639296889,
0.0010278129484504461,
-0.05473579093813896,
0.06291671097278595,
0.03688704967498779,
-0.0905708521604538,
-0.0054674306884408,
0.23999039828777313,
-0.10178778320550919,
-0.11224247515201569,
-0.17936186492443085,
0.16632473468780518,
0.047514110803604126,
0.041077934205532074,
-0.018473494797945023,
-0.08189261704683304,
-0.029665213078260422,
0.17528888583183289,
0.20276346802711487,
-0.08037702739238739,
0.023121844977140427,
0.07026956975460052,
0.02028208039700985,
0.03081572987139225,
0.027576858177781105,
0.05383475869894028,
0.18380986154079437,
-0.05141371488571167,
0.0904955044388771,
-0.009670858271420002,
-0.06891434639692307,
-0.07995976507663727,
0.11250247061252594,
0.0032112032640725374,
0.028731590136885643,
-0.016872677952051163,
0.09233509004116058,
-0.07580695301294327,
-0.13370877504348755,
-0.009420621208846569,
-0.09945043176412582,
-0.10422785580158234,
-0.04145001247525215,
0.027044301852583885,
0.012618174776434898,
0.08565443754196167,
0.03247658535838127,
-0.04155831038951874,
0.15855397284030914,
-0.0020762335043400526,
-0.06933276355266571,
-0.034136880189180374,
0.03152116760611534,
-0.06845986843109131,
0.1514962911605835,
-0.0030051085632294416,
-0.0469365194439888,
0.10446695983409882,
0.022331194952130318,
-0.0522594153881073,
0.04858211800456047,
0.030302822589874268,
-0.07347652316093445,
0.09234385937452316,
0.0719945877790451,
-0.050500787794589996,
0.08996986597776413,
0.048973679542541504,
-0.19234710931777954,
0.06382516771554947,
-0.016993168741464615,
-0.05498179793357849,
-0.05476458743214607,
0.03218666464090347,
-0.09209597110748291,
0.07940464466810226,
0.17062601447105408,
-0.008010245859622955,
0.0068320902064442635,
-0.006955447141081095,
-0.004976585507392883,
0.04064814746379852,
0.025334332138299942,
-0.06507257372140884,
-0.08500287681818008,
-0.01054760068655014,
0.033933378756046295,
0.03475344181060791,
-0.2685408592224121,
-0.11899124085903168,
0.041831210255622864,
-0.019219720736145973,
-0.033696625381708145,
0.11409106105566025,
0.0672878697514534,
0.021665209904313087,
-0.030575880780816078,
-0.19840331375598907,
0.01502868253737688,
0.09921441972255707,
-0.13414636254310608,
-0.08785904943943024
] |
null | null | sentence-transformers |
# AIDA-UPM/MSTSb_paraphrase-xlm-r-multilingual-v1
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
<!--- Describe your model here -->
## Usage (Sentence-Transformers)
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
```
pip install -U sentence-transformers
```
Then you can use the model like this:
```python
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('{MODEL_NAME}')
embeddings = model.encode(sentences)
print(embeddings)
```
## Usage (HuggingFace Transformers)
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
```python
from transformers import AutoTokenizer, AutoModel
import torch
#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('{MODEL_NAME}')
model = AutoModel.from_pretrained('{MODEL_NAME}')
# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = model(**encoded_input)
# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
print("Sentence embeddings:")
print(sentence_embeddings)
```
## Evaluation Results
<!--- Describe how your model was evaluated -->
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name={MODEL_NAME})
## Training
The model was trained with the parameters:
**DataLoader**:
`torch.utils.data.dataloader.DataLoader` of length 1438 with parameters:
```
{'batch_size': 64, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
```
**Loss**:
`sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss`
Parameters of the fit()-Method:
```
{
"callback": null,
"epochs": 2,
"evaluation_steps": 1000,
"evaluator": "sentence_transformers.evaluation.EmbeddingSimilarityEvaluator.EmbeddingSimilarityEvaluator",
"max_grad_norm": 1,
"optimizer_class": "<class 'transformers.optimization.AdamW'>",
"optimizer_params": {
"lr": 4e-05
},
"scheduler": "WarmupLinear",
"steps_per_epoch": null,
"warmup_steps": 288,
"weight_decay": 0.1
}
```
## Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Citing & Authors
<!--- Describe where people can find more information --> | {"tags": ["sentence-transformers", "feature-extraction", "sentence-similarity", "transformers"], "pipeline_tag": "sentence-similarity"} | sentence-similarity | AIDA-UPM/MSTSb_paraphrase-xlm-r-multilingual-v1 | [
"sentence-transformers",
"pytorch",
"xlm-roberta",
"feature-extraction",
"sentence-similarity",
"transformers",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#sentence-transformers #pytorch #xlm-roberta #feature-extraction #sentence-similarity #transformers #endpoints_compatible #region-us
|
# AIDA-UPM/MSTSb_paraphrase-xlm-r-multilingual-v1
This is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
## Usage (Sentence-Transformers)
Using this model becomes easy when you have sentence-transformers installed:
Then you can use the model like this:
## Usage (HuggingFace Transformers)
Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
## Evaluation Results
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL
## Training
The model was trained with the parameters:
DataLoader:
'URL.dataloader.DataLoader' of length 1438 with parameters:
Loss:
'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss'
Parameters of the fit()-Method:
## Full Model Architecture
## Citing & Authors
| [
"# AIDA-UPM/MSTSb_paraphrase-xlm-r-multilingual-v1\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.",
"## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:",
"## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.",
"## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL",
"## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 1438 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:",
"## Full Model Architecture",
"## Citing & Authors"
] | [
"TAGS\n#sentence-transformers #pytorch #xlm-roberta #feature-extraction #sentence-similarity #transformers #endpoints_compatible #region-us \n",
"# AIDA-UPM/MSTSb_paraphrase-xlm-r-multilingual-v1\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.",
"## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:",
"## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.",
"## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL",
"## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 1438 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:",
"## Full Model Architecture",
"## Citing & Authors"
] | [
46,
69,
38,
64,
29,
78,
5,
6
] | [
"passage: TAGS\n#sentence-transformers #pytorch #xlm-roberta #feature-extraction #sentence-similarity #transformers #endpoints_compatible #region-us \n# AIDA-UPM/MSTSb_paraphrase-xlm-r-multilingual-v1\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 1438 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:## Full Model Architecture## Citing & Authors"
] | [
-0.04799932986497879,
0.1412351280450821,
-0.008470992557704449,
0.04970693588256836,
0.13304927945137024,
0.026602579280734062,
0.12615545094013214,
0.1032530665397644,
-0.012900766916573048,
0.07777217030525208,
0.00910453125834465,
0.12325570732355118,
0.008625862188637257,
0.03132987022399902,
0.010609153658151627,
-0.25006669759750366,
0.013153789564967155,
-0.04428545758128166,
0.010909220203757286,
0.08140265941619873,
0.11039628833532333,
-0.0756472796201706,
0.052642516791820526,
0.009049640037119389,
-0.043298859149217606,
0.02315230667591095,
-0.02726130001246929,
-0.03258833289146423,
0.07045729458332062,
0.07522504776716232,
0.05409105867147446,
0.007174757309257984,
0.018153246492147446,
-0.2214360535144806,
0.019043194130063057,
0.05845525488257408,
-0.024096190929412842,
0.05540163442492485,
0.02614845521748066,
-0.039980996400117874,
0.1257246881723404,
-0.10864518582820892,
0.050672780722379684,
0.058135904371738434,
-0.09491755068302155,
-0.09850011765956879,
-0.05299542844295502,
-0.004748010076582432,
0.1337454915046692,
0.09426774829626083,
-0.059261951595544815,
0.10156840085983276,
-0.0329221747815609,
0.08540160953998566,
0.11609398573637009,
-0.24528145790100098,
-0.028510235249996185,
0.015940941870212555,
0.051732614636421204,
0.05164780467748642,
-0.09709032624959946,
-0.005447360221296549,
-0.04028862714767456,
0.04048023745417595,
0.07309003174304962,
-0.05279136449098587,
0.030445149168372154,
0.0036040623672306538,
-0.10409143567085266,
-0.00027905876049771905,
0.18817660212516785,
0.042821429669857025,
-0.02271297574043274,
-0.1860477328300476,
-0.07480208575725555,
0.07367797940969467,
-0.0524028018116951,
-0.03799762576818466,
0.026052702218294144,
0.04375171661376953,
0.01057955902069807,
-0.08537507057189941,
-0.10357978194952011,
-0.0014991413336247206,
-0.08446963131427765,
0.029851296916604042,
-0.004402145277708769,
-0.04374733567237854,
-0.003383227391168475,
0.051144056022167206,
-0.03333623334765434,
-0.11682365834712982,
-0.03585590049624443,
-0.017970431596040726,
-0.1286497861146927,
-0.022260818630456924,
-0.04574244096875191,
-0.13559943437576294,
0.06419546902179718,
0.1112951934337616,
0.034380994737148285,
0.020110508427023888,
-0.0011335964081808925,
0.04435833543539047,
0.023034866899251938,
0.18182146549224854,
-0.05969453975558281,
-0.09331832081079483,
-0.017568275332450867,
0.01050836592912674,
-0.00276145339012146,
-0.014746754430234432,
-0.05103575065732002,
-0.006802366580814123,
0.02262076735496521,
0.0640840157866478,
0.059136100113391876,
0.05942084267735481,
-0.05468224734067917,
-0.04576827213168144,
0.05024954676628113,
-0.14692947268486023,
0.03297382593154907,
0.03945983201265335,
-0.04812655970454216,
0.05473969131708145,
0.08924210071563721,
-0.03919649496674538,
-0.10417485237121582,
0.018324313685297966,
-0.08385635912418365,
-0.013764163479208946,
-0.06778910756111145,
-0.14111840724945068,
0.005099019035696983,
0.05476094037294388,
-0.04141790792346001,
-0.09074476361274719,
-0.1325894594192505,
-0.07838336378335953,
0.04533180594444275,
-0.03223133087158203,
-0.00935229193419218,
-0.1078748032450676,
-0.0034066515509039164,
0.015643566846847534,
-0.014372177422046661,
-0.04594268277287483,
-0.0033546555787324905,
0.023405587300658226,
-0.054517194628715515,
0.06439880281686783,
0.04448172077536583,
0.06043148785829544,
-0.09463530033826828,
0.018833935260772705,
-0.12152828276157379,
0.1766793578863144,
-0.05176804959774017,
0.08374665677547455,
-0.12588408589363098,
0.008843125775456429,
0.045226868242025375,
0.05798311531543732,
0.013277565129101276,
0.14202603697776794,
-0.19107456505298615,
-0.07377920299768448,
0.14415188133716583,
-0.032966550439596176,
-0.10775627195835114,
0.09313765913248062,
-0.0335603691637516,
0.1195930615067482,
0.1182713583111763,
0.08790358155965805,
0.17019741237163544,
-0.05717325583100319,
-0.01630893163383007,
0.03612494841217995,
-0.06777961552143097,
0.08832740038633347,
0.04851941019296646,
-0.04418043792247772,
0.1307489424943924,
0.0029390279669314623,
-0.036134395748376846,
0.009135551750659943,
0.0030671486165374517,
-0.06525950878858566,
0.028991417959332466,
-0.02015804313123226,
0.037603359669446945,
-0.0292676892131567,
-0.01446554809808731,
0.016967201605439186,
-0.11271010339260101,
0.1402120143175125,
0.06667070835828781,
-0.08106500655412674,
0.021803101524710655,
-0.09259738773107529,
-0.009121274575591087,
0.015781838446855545,
0.03802973031997681,
-0.19502024352550507,
-0.1373271942138672,
-0.0007678602123633027,
-0.026672327890992165,
0.08759980648756027,
0.03059573471546173,
0.06311236321926117,
0.02185036987066269,
-0.00008882474503479898,
-0.01491242554038763,
0.03553033620119095,
-0.018068259581923485,
-0.06994481384754181,
-0.09477168321609497,
0.00024181777553167194,
-0.02046974003314972,
0.07980344444513321,
-0.08707987517118454,
0.02993905171751976,
0.025524573400616646,
0.028864910826086998,
0.03675937280058861,
-0.020421689376235008,
0.005125853233039379,
-0.03491653501987457,
0.0010616144863888621,
-0.021738264709711075,
0.05185361206531525,
0.015195186249911785,
-0.12781476974487305,
0.09424807876348495,
-0.16675908863544464,
-0.12222190201282501,
0.07754331082105637,
0.003615419380366802,
-0.03752952441573143,
-0.06591679900884628,
-0.02013363130390644,
-0.0011273979907855392,
-0.040296223014593124,
-0.06975016742944717,
0.17638112604618073,
0.10655596852302551,
0.10940585285425186,
-0.03635222464799881,
-0.024770764634013176,
-0.05489432439208031,
-0.03623386472463608,
-0.034950826317071915,
0.11341717839241028,
-0.04383258894085884,
-0.08957938849925995,
0.05299413949251175,
0.07817501574754715,
-0.05895139276981354,
0.10472965240478516,
-0.012329235672950745,
-0.07105536758899689,
-0.05685137212276459,
0.04176069423556328,
0.03274798393249512,
-0.027637237682938576,
-0.10430660843849182,
0.026416899636387825,
0.06314132362604141,
0.0036171739920973778,
0.024216588586568832,
-0.061210423707962036,
0.04361014440655708,
0.043787881731987,
-0.01982184499502182,
0.08447901159524918,
0.023271383717656136,
0.026983242481946945,
0.05063581094145775,
0.012072422541677952,
0.03582346811890602,
-0.03650016710162163,
-0.06477545201778412,
-0.10838738083839417,
0.16864217817783356,
-0.13191163539886475,
-0.24333064258098602,
-0.1825987696647644,
-0.041877493262290955,
-0.07391590625047684,
-0.0004933576565235853,
0.0874791219830513,
-0.058058883994817734,
-0.0743359625339508,
-0.05257787927985191,
0.07764622569084167,
0.08612183481454849,
-0.04516279697418213,
0.003461445914581418,
0.04252214729785919,
0.02811121754348278,
-0.1238669827580452,
-0.006954021751880646,
-0.003720146371051669,
-0.07434990257024765,
0.014050021767616272,
-0.0028147734701633453,
0.06303659826517105,
0.10920030623674393,
0.04299081489443779,
-0.000029944681955385022,
0.00847590621560812,
0.20718999207019806,
-0.08073773235082626,
0.06289118528366089,
0.17943815886974335,
0.0027227795217186213,
0.075909323990345,
0.10526268929243088,
0.03410201892256737,
-0.05796615406870842,
0.04483822360634804,
0.06079806014895439,
-0.01042337529361248,
-0.18392418324947357,
-0.11277420818805695,
-0.07876758277416229,
-0.009721233509480953,
0.10976636409759521,
0.03809744119644165,
-0.03909368813037872,
0.04647273197770119,
-0.02259795367717743,
-0.007547389715909958,
0.07380498945713043,
0.09958746284246445,
0.18053969740867615,
-0.017779117450118065,
0.09759534895420074,
-0.05202247574925423,
-0.06120910495519638,
0.06722342222929001,
-0.010652516037225723,
0.1550317108631134,
0.0006016620900481939,
0.16996747255325317,
0.0838538259267807,
-0.030017588287591934,
-0.02702166885137558,
0.08511058986186981,
-0.031188463792204857,
0.016956962645053864,
-0.020938022062182426,
-0.10622445493936539,
-0.01455666683614254,
0.06962525099515915,
0.057198818773031235,
-0.040254734456539154,
-0.023669620975852013,
0.06485284119844437,
0.1272864043712616,
0.13412342965602875,
0.0641743540763855,
-0.21039703488349915,
-0.03590806573629379,
0.026662293821573257,
-0.07626278698444366,
-0.06891229003667831,
-0.015007301233708858,
0.04286085069179535,
-0.1014733612537384,
0.05095619708299637,
-0.01699182204902172,
0.11233492940664291,
-0.08472555875778198,
0.014470003545284271,
-0.021531932055950165,
0.07609456032514572,
0.0019179914379492402,
0.08230985701084137,
-0.23168082535266876,
0.07972907274961472,
0.03578117862343788,
0.04442579671740532,
-0.043034739792346954,
0.045486949384212494,
0.06116198003292084,
-0.0010621430119499564,
0.1538156121969223,
-0.02187858335673809,
0.021556414663791656,
0.01492450013756752,
-0.07426345348358154,
0.005300585646182299,
0.039596155285835266,
-0.0689646378159523,
0.09746332466602325,
-0.03866702318191528,
-0.02727954089641571,
-0.022936765104532242,
0.06299414485692978,
-0.03296332806348801,
-0.18088677525520325,
0.004926054272800684,
0.04171980544924736,
0.028376830741763115,
-0.01743580587208271,
-0.0067329322919249535,
-0.007342589553445578,
0.209696426987648,
-0.1089329943060875,
-0.07811979949474335,
-0.12527884542942047,
-0.004306634422391653,
0.09899589419364929,
-0.11122626811265945,
0.0021124607883393764,
-0.005955697502940893,
0.1434115767478943,
-0.04655004292726517,
-0.06459967792034149,
0.05623313784599304,
-0.04001317918300629,
-0.03569856286048889,
-0.030804689973592758,
0.1013612300157547,
0.05317338556051254,
0.04394282400608063,
0.03412418067455292,
0.03248390182852745,
-0.044709883630275726,
-0.1090620830655098,
-0.06818497180938721,
0.11359699815511703,
-0.0041274079121649265,
0.08677853643894196,
-0.13191790878772736,
-0.08535639196634293,
-0.09779657423496246,
0.04089682921767235,
0.20773060619831085,
0.1756957620382309,
-0.07324753701686859,
0.06819459050893784,
0.14500920474529266,
-0.09275977313518524,
-0.23919284343719482,
-0.08637656271457672,
0.057528696954250336,
0.050405602902173996,
0.06221039965748787,
-0.14832167327404022,
0.08737267553806305,
0.06228356808423996,
0.0032951575703918934,
-0.05783461034297943,
-0.2428726851940155,
-0.13440358638763428,
0.12429901212453842,
0.02749636583030224,
-0.054544735699892044,
-0.10269966721534729,
-0.05190529301762581,
-0.06637804210186005,
-0.044600535184144974,
0.09562105685472488,
-0.04443473368883133,
0.10044840723276138,
0.026615817099809647,
0.07037816941738129,
0.06055642291903496,
-0.0030097581911832094,
0.11349008232355118,
0.07986850291490555,
0.0318448431789875,
-0.03156113997101784,
-0.003376580309122801,
0.11859039962291718,
-0.07973864674568176,
0.15484698116779327,
-0.0642542615532875,
0.02358316071331501,
-0.13142289221286774,
-0.026514848694205284,
-0.03386132791638374,
0.02107907086610794,
-0.04081793874502182,
-0.04269133135676384,
-0.009317747317254543,
0.035895053297281265,
0.09982895851135254,
-0.00578722357749939,
0.013600668869912624,
-0.08435077220201492,
0.0006782085401937366,
0.17641952633857727,
0.10589667409658432,
0.004228162579238415,
-0.17099395394325256,
0.0033316132612526417,
0.014918266795575619,
0.045479875057935715,
-0.13873390853405,
0.08438494056463242,
0.07652310281991959,
-0.008216677233576775,
0.15400521457195282,
0.021866604685783386,
-0.07209376990795135,
-0.0058786217123270035,
0.0743916854262352,
-0.07111114263534546,
-0.14297795295715332,
-0.03874768689274788,
-0.02979280799627304,
-0.14597980678081512,
-0.05218786001205444,
0.1424589902162552,
0.009232671931385994,
0.010810631327331066,
0.044187724590301514,
0.04029358550906181,
-0.023900393396615982,
0.12908661365509033,
-0.0017404635436832905,
0.05339089408516884,
-0.07043091952800751,
0.06716041266918182,
0.08935607969760895,
-0.08304189890623093,
0.00852375291287899,
0.15010300278663635,
-0.07001157850027084,
-0.08476070314645767,
-0.052240077406167984,
0.07808247208595276,
-0.08391588926315308,
0.025918640196323395,
-0.04722437262535095,
-0.06448686867952347,
0.028178609907627106,
-0.0011126341996714473,
0.04622245579957962,
0.052442651242017746,
-0.07544639706611633,
-0.035339418798685074,
-0.07351983338594437,
0.10803794115781784,
0.06908205151557922,
-0.0034619600046426058,
-0.03713730722665787,
0.06545267254114151,
-0.021791549399495125,
0.015414463356137276,
-0.022744404152035713,
-0.05437694117426872,
-0.05665536969900131,
0.010035146959125996,
-0.07615965604782104,
-0.004236010368913412,
-0.09424646198749542,
0.003595704212784767,
0.023900380358099937,
0.04772097244858742,
-0.024043746292591095,
-0.005077102687209845,
-0.04661272093653679,
-0.08614680171012878,
-0.04444444552063942,
0.09418830275535583,
-0.14673659205436707,
-0.011745806783437729,
0.02246950753033161,
-0.08520924299955368,
0.09856047481298447,
-0.00046756266965530813,
-0.04307283088564873,
0.028305329382419586,
-0.03332848846912384,
-0.059739187359809875,
0.02359011210501194,
0.05770369991660118,
0.07376975566148758,
-0.09706711769104004,
0.029728559777140617,
-0.026703348383307457,
-0.0034008126240223646,
0.009093189612030983,
0.04727143421769142,
-0.10456535965204239,
0.044552408158779144,
-0.0368124358355999,
-0.007253758143633604,
-0.10160783678293228,
0.029945069923996925,
0.01533677987754345,
0.054711487144231796,
0.1774963140487671,
-0.06020205467939377,
0.08445732295513153,
-0.1405465006828308,
-0.00003202298466931097,
0.022322535514831543,
-0.029036132618784904,
0.07458382099866867,
-0.11912272125482559,
0.05628526583313942,
-0.03744286298751831,
0.08213493973016739,
-0.006902962923049927,
0.0497274212539196,
0.06649678200483322,
0.03710941597819328,
-0.02913324162364006,
0.0008566426113247871,
0.04942386969923973,
0.03353744000196457,
0.003870253683999181,
-0.01572425663471222,
0.035950835794210434,
0.014805350452661514,
-0.047632183879613876,
0.057380400598049164,
0.07493817061185837,
0.04980698600411415,
0.07795220613479614,
0.07037481665611267,
0.015656597912311554,
-0.10727456957101822,
0.05593147873878479,
-0.05015138164162636,
0.0510704442858696,
-0.0434180423617363,
0.0367017462849617,
0.152526393532753,
-0.14004600048065186,
0.12178315967321396,
0.032667651772499084,
-0.06477370113134384,
-0.09094469249248505,
-0.103620745241642,
-0.07574330270290375,
-0.06754952669143677,
-0.0178536344319582,
-0.13385866582393646,
-0.0015928405337035656,
-0.011518526822328568,
0.004719835240393877,
-0.013222990557551384,
0.10833565890789032,
-0.07502391934394836,
-0.1133836954832077,
0.06512951105833054,
-0.02735722064971924,
0.06638343632221222,
0.04113101586699486,
0.04643692448735237,
0.01952522248029709,
0.06533050537109375,
0.06428041309118271,
0.07476864010095596,
0.051018089056015015,
0.03458859398961067,
-0.12141763418912888,
-0.08211074024438858,
-0.020053209736943245,
0.013453317806124687,
-0.05530399829149246,
0.08233911544084549,
0.050285451114177704,
-0.07901683449745178,
-0.010950739495456219,
0.1919775754213333,
-0.07822243869304657,
-0.10680659115314484,
-0.1767825335264206,
0.14662732183933258,
0.06359913945198059,
0.03828708082437515,
-0.019399601966142654,
-0.083315409719944,
-0.02766033075749874,
0.14451941847801208,
0.16248182952404022,
-0.0943334624171257,
0.018170081079006195,
0.041772693395614624,
0.016744978725910187,
-0.005866197403520346,
0.047833383083343506,
0.06968539208173752,
0.23225677013397217,
-0.01880977489054203,
0.08014129102230072,
-0.0361807681620121,
-0.05990682914853096,
-0.07791875302791595,
0.077603280544281,
0.015875494107604027,
0.027631713077425957,
-0.016016876325011253,
0.11785678565502167,
-0.03881220519542694,
-0.10506505519151688,
-0.037615228444337845,
-0.07263369113206863,
-0.11578759551048279,
-0.043100543320178986,
0.025011498481035233,
0.0471888929605484,
0.07776486873626709,
0.04385348781943321,
-0.03870324045419693,
0.14814506471157074,
-0.017178790643811226,
-0.07561250776052475,
-0.016348540782928467,
0.04271320998668671,
-0.0750003233551979,
0.1436661183834076,
0.0017623277381062508,
-0.02506994642317295,
0.1221654936671257,
0.007361952681094408,
-0.05585899204015732,
0.09142964333295822,
0.03389913588762283,
-0.09212928265333176,
0.12844514846801758,
0.053369052708148956,
-0.01896062307059765,
0.0766150951385498,
0.07226681709289551,
-0.1392412930727005,
0.03230484575033188,
-0.045728329569101334,
-0.03660447895526886,
-0.06969785690307617,
0.04470161348581314,
-0.06900596618652344,
0.08269641548395157,
0.19338293373584747,
-0.01842302829027176,
0.008657666854560375,
-0.024970808997750282,
-0.004014166537672281,
0.018264632672071457,
0.07077369093894958,
-0.04866625368595123,
-0.09411822259426117,
0.0020595204550772905,
-0.007315151859074831,
0.027605855837464333,
-0.26263299584388733,
-0.09248857200145721,
0.019527340307831764,
-0.01613437756896019,
-0.039109017699956894,
0.1398424655199051,
0.06025814637541771,
0.0027130667585879564,
-0.025735387578606606,
-0.18697914481163025,
0.022098233923316002,
0.11645187437534332,
-0.1316290646791458,
-0.07527463883161545
] |
null | null | sentence-transformers |
# {MODEL_NAME}
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
<!--- Describe your model here -->
## Usage (Sentence-Transformers)
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
```
pip install -U sentence-transformers
```
Then you can use the model like this:
```python
from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]
model = SentenceTransformer('{MODEL_NAME}')
embeddings = model.encode(sentences)
print(embeddings)
```
## Usage (HuggingFace Transformers)
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
```python
from transformers import AutoTokenizer, AutoModel
import torch
#Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('{MODEL_NAME}')
model = AutoModel.from_pretrained('{MODEL_NAME}')
# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = model(**encoded_input)
# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
print("Sentence embeddings:")
print(sentence_embeddings)
```
## Evaluation Results
<!--- Describe how your model was evaluated -->
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name={MODEL_NAME})
## Training
The model was trained with the parameters:
**DataLoader**:
`torch.utils.data.dataloader.DataLoader` of length 1438 with parameters:
```
{'batch_size': 64, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
```
**Loss**:
`sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss`
Parameters of the fit()-Method:
```
{
"callback": null,
"epochs": 1,
"evaluation_steps": 1000,
"evaluator": "sentence_transformers.evaluation.EmbeddingSimilarityEvaluator.EmbeddingSimilarityEvaluator",
"max_grad_norm": 1,
"optimizer_class": "<class 'transformers.optimization.AdamW'>",
"optimizer_params": {
"lr": 4e-05
},
"scheduler": "WarmupLinear",
"steps_per_epoch": null,
"warmup_steps": 144,
"weight_decay": 0.01
}
```
## Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Citing & Authors
<!--- Describe where people can find more information --> | {"tags": ["sentence-transformers", "feature-extraction", "sentence-similarity", "transformers"], "pipeline_tag": "sentence-similarity"} | sentence-similarity | AIDA-UPM/MSTSb_stsb-xlm-r-multilingual | [
"sentence-transformers",
"pytorch",
"xlm-roberta",
"feature-extraction",
"sentence-similarity",
"transformers",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#sentence-transformers #pytorch #xlm-roberta #feature-extraction #sentence-similarity #transformers #endpoints_compatible #region-us
|
# {MODEL_NAME}
This is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.
## Usage (Sentence-Transformers)
Using this model becomes easy when you have sentence-transformers installed:
Then you can use the model like this:
## Usage (HuggingFace Transformers)
Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
## Evaluation Results
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL
## Training
The model was trained with the parameters:
DataLoader:
'URL.dataloader.DataLoader' of length 1438 with parameters:
Loss:
'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss'
Parameters of the fit()-Method:
## Full Model Architecture
## Citing & Authors
| [
"# {MODEL_NAME}\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.",
"## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:",
"## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.",
"## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL",
"## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 1438 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:",
"## Full Model Architecture",
"## Citing & Authors"
] | [
"TAGS\n#sentence-transformers #pytorch #xlm-roberta #feature-extraction #sentence-similarity #transformers #endpoints_compatible #region-us \n",
"# {MODEL_NAME}\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.",
"## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:",
"## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.",
"## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL",
"## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 1438 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:",
"## Full Model Architecture",
"## Citing & Authors"
] | [
46,
50,
38,
64,
29,
78,
5,
6
] | [
"passage: TAGS\n#sentence-transformers #pytorch #xlm-roberta #feature-extraction #sentence-similarity #transformers #endpoints_compatible #region-us \n# {MODEL_NAME}\n\nThis is a sentence-transformers model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search.## Usage (Sentence-Transformers)\n\nUsing this model becomes easy when you have sentence-transformers installed:\n\n\n\nThen you can use the model like this:## Usage (HuggingFace Transformers)\nWithout sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.## Evaluation Results\n\n\n\nFor an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: URL## Training\nThe model was trained with the parameters:\n\nDataLoader:\n\n'URL.dataloader.DataLoader' of length 1438 with parameters:\n\n\nLoss:\n\n'sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss' \n\nParameters of the fit()-Method:## Full Model Architecture## Citing & Authors"
] | [
-0.025599459186196327,
0.11664310097694397,
-0.008799241855740547,
0.03843167796730995,
0.11947982013225555,
0.028805246576666832,
0.15489450097084045,
0.10596798360347748,
-0.018719373270869255,
0.07499963045120239,
0.00643375376239419,
0.11481933295726776,
0.00033457065001130104,
0.0005696553271263838,
0.030387677252292633,
-0.2660139501094818,
0.03216693922877312,
-0.04955431446433067,
-0.015455720946192741,
0.06282064318656921,
0.11070846021175385,
-0.07746773958206177,
0.057461563497781754,
-0.006439819000661373,
-0.0757184624671936,
0.02876194193959236,
-0.02782777138054371,
-0.02186610735952854,
0.07168857753276825,
0.0716317892074585,
0.07659073919057846,
0.012967155314981937,
0.006121461279690266,
-0.20652185380458832,
0.016752654686570168,
0.08383424580097198,
-0.025377022102475166,
0.060592927038669586,
0.015805747359991074,
-0.057602521032094955,
0.1011103093624115,
-0.12278768420219421,
0.05950452759861946,
0.04385465011000633,
-0.12693463265895844,
-0.038342006504535675,
-0.04183615371584892,
0.009706768207252026,
0.08485552668571472,
0.10262598097324371,
-0.04685473069548607,
0.11473386734724045,
-0.0405811071395874,
0.08621753752231598,
0.1597571074962616,
-0.23272766172885895,
-0.04306284710764885,
0.012824238277971745,
0.04529256001114845,
0.03972291946411133,
-0.10962609201669693,
0.02643892727792263,
-0.04325655847787857,
0.03120916150510311,
0.05306325852870941,
-0.032106682658195496,
0.03044009953737259,
0.007794632576406002,
-0.09486805647611618,
0.0048860423266887665,
0.15174339711666107,
0.013125631958246231,
-0.013164988718926907,
-0.17767074704170227,
-0.08579632639884949,
0.09701751917600632,
-0.03981228545308113,
-0.023124003782868385,
0.04611251875758171,
0.05295392498373985,
-0.026735404506325722,
-0.12378130108118057,
-0.08246032148599625,
-0.016463669016957283,
-0.05779223144054413,
0.03309052065014839,
-0.0052449461072683334,
-0.04840092733502388,
-0.008858850225806236,
0.060221582651138306,
-0.012559937313199043,
-0.10700444877147675,
-0.02585582435131073,
-0.03772038593888283,
-0.10937034338712692,
-0.007804442197084427,
-0.0545547753572464,
-0.09652480483055115,
0.03658172860741615,
0.1286686509847641,
0.06163135915994644,
0.02258882112801075,
-0.034344132989645004,
0.06172463297843933,
0.004701135214418173,
0.1675720065832138,
-0.039534926414489746,
-0.055201705545186996,
-0.017057539895176888,
0.01020742580294609,
0.0051233842968940735,
-0.028129812330007553,
-0.05390942469239235,
-0.01797139272093773,
-0.0014612111262977123,
0.06450725346803665,
0.0694500133395195,
0.06338179111480713,
-0.027066826820373535,
-0.058631088584661484,
0.045277807861566544,
-0.12330438941717148,
0.03356413170695305,
0.025790788233280182,
-0.025278087705373764,
0.049072880297899246,
0.10730193555355072,
-0.029855549335479736,
-0.08864688128232956,
-0.010895990766584873,
-0.0837535709142685,
-0.005730792880058289,
-0.06283453851938248,
-0.134033203125,
-0.015555579215288162,
-0.014959145337343216,
-0.05249609798192978,
-0.09098679572343826,
-0.12529988586902618,
-0.06881492584943771,
0.04663326218724251,
-0.04750663414597511,
-0.004738935269415379,
-0.12204434722661972,
-0.0117886858060956,
0.0066597615368664265,
0.015383313409984112,
-0.06345611810684204,
0.01000855304300785,
0.01231645978987217,
-0.06143677607178688,
0.05347052961587906,
0.04161771386861801,
0.04616256430745125,
-0.10027140378952026,
0.014946863055229187,
-0.1549708992242813,
0.16837330162525177,
-0.043650321662425995,
0.06885186582803726,
-0.09807285666465759,
0.04306349903345108,
0.01175571046769619,
0.05987571179866791,
0.0028781418222934008,
0.13146713376045227,
-0.1955767422914505,
-0.08125020563602448,
0.17029058933258057,
-0.05026279762387276,
-0.08470895886421204,
0.08347927033901215,
-0.049499575048685074,
0.12036219239234924,
0.11717288196086884,
0.11875244230031967,
0.12419024109840393,
-0.07873348146677017,
0.0028665224090218544,
0.028983889147639275,
-0.05602772906422615,
0.12324552237987518,
0.02258259989321232,
-0.063999243080616,
0.10763635486364365,
0.0025179407093673944,
-0.06300202757120132,
0.006727098487317562,
0.008093866519629955,
-0.04917917773127556,
0.007083013188093901,
-0.03144507855176926,
0.030717751011252403,
-0.0358390286564827,
0.010231736116111279,
0.018499266356229782,
-0.1120116263628006,
0.13446399569511414,
0.0629442036151886,
-0.09384020417928696,
0.042201172560453415,
-0.06131888926029205,
-0.0005520816193893552,
-0.0025426300708204508,
0.005873645190149546,
-0.19522613286972046,
-0.1317179799079895,
0.01866464875638485,
0.015203937888145447,
0.12493184953927994,
0.012319197878241539,
0.05817105993628502,
0.039823103696107864,
-0.023288751021027565,
0.0007608914747834206,
0.03908877447247505,
0.006055030506104231,
-0.0754052996635437,
-0.13113616406917572,
-0.0029790005646646023,
-0.041164830327034,
0.07621554285287857,
-0.08916875720024109,
0.03360834717750549,
-0.003661797847598791,
0.0966702476143837,
0.04724219813942909,
-0.017018895596265793,
-0.008212868124246597,
-0.029944198206067085,
-0.002782244235277176,
-0.04002276062965393,
0.05853119492530823,
0.024859212338924408,
-0.12632322311401367,
0.09863174706697464,
-0.18091076612472534,
-0.150447815656662,
0.08161593228578568,
-0.04818817600607872,
-0.050231628119945526,
-0.059319231659173965,
-0.018402593210339546,
0.008850686252117157,
-0.04308665543794632,
-0.07049230486154556,
0.2072620689868927,
0.08010168373584747,
0.10469568520784378,
-0.03852057829499245,
-0.03805117309093475,
-0.05319564789533615,
-0.027484027668833733,
-0.03775067999958992,
0.0894346758723259,
-0.02401646226644516,
-0.12643802165985107,
0.07190566509962082,
0.06472409516572952,
-0.04954109340906143,
0.13597235083580017,
-0.013670752756297588,
-0.05602378025650978,
-0.05133114010095596,
0.00861971452832222,
0.0343027226626873,
-0.0032892334274947643,
-0.06407727301120758,
0.0014678689185529947,
0.044921718537807465,
0.009018952026963234,
0.03642153739929199,
-0.06109325587749481,
0.04522832855582237,
0.05296219140291214,
-0.00893796980381012,
0.09584920853376389,
0.0031788696069270372,
0.01701028272509575,
0.0512913316488266,
0.018376173451542854,
0.04390796646475792,
-0.03141726925969124,
-0.05352109298110008,
-0.10423289239406586,
0.14096122980117798,
-0.13158877193927765,
-0.21176032721996307,
-0.14563365280628204,
0.005065638571977615,
-0.054264191538095474,
0.018817389383912086,
0.07870472222566605,
-0.05032800883054733,
-0.05306923761963844,
-0.06428065896034241,
0.06635840237140656,
0.08013280481100082,
-0.052557237446308136,
-0.005782459396868944,
0.05257728323340416,
0.01015319861471653,
-0.12947551906108856,
-0.010023904033005238,
-0.00664936238899827,
-0.06237468868494034,
-0.022603854537010193,
-0.04316285252571106,
0.05836937204003334,
0.09790275245904922,
0.06471047550439835,
0.0070388903841376305,
-0.011481954716145992,
0.21693001687526703,
-0.08948007971048355,
0.06373095512390137,
0.11994409561157227,
0.001866296399384737,
0.07148902863264084,
0.0986173078417778,
0.021265972405672073,
-0.05142299085855484,
0.032395970076322556,
0.07810873538255692,
-0.007235825527459383,
-0.15623043477535248,
-0.09157037734985352,
-0.07756238430738449,
-0.03947276622056961,
0.11093781888484955,
0.04441874474287033,
0.029325958341360092,
0.032839335501194,
-0.03203674033284187,
-0.001857892842963338,
0.09781273454427719,
0.11222058534622192,
0.10821199417114258,
-0.015412751585245132,
0.09477674961090088,
-0.0562189556658268,
-0.06600122153759003,
0.048874638974666595,
-0.006449500564485788,
0.16777722537517548,
0.02878418378531933,
0.1854364424943924,
0.0672149807214737,
-0.02986036241054535,
-0.00394396623596549,
0.0720638781785965,
-0.033583976328372955,
0.0367559976875782,
-0.032611120492219925,
-0.10380391776561737,
-0.0018243398517370224,
0.06371323019266129,
0.09677936136722565,
-0.04298115149140358,
-0.03282083198428154,
0.03757267817854881,
0.14817339181900024,
0.15035316348075867,
0.03411479666829109,
-0.19428730010986328,
-0.02557777427136898,
0.038591090589761734,
-0.05867227911949158,
-0.05975215509533882,
-0.01679888367652893,
0.03394715115427971,
-0.10317763686180115,
0.042674507945775986,
-0.018930714577436447,
0.11287442594766617,
-0.06313660740852356,
0.031193729490041733,
-0.03590013459324837,
0.05486159399151802,
0.002777563175186515,
0.06563025712966919,
-0.20180797576904297,
0.10231450200080872,
0.037460703402757645,
0.0628669336438179,
-0.04759764298796654,
0.024866405874490738,
0.0737895742058754,
0.026438456028699875,
0.17045718431472778,
-0.02102617174386978,
-0.03285844996571541,
0.030138768255710602,
-0.06230835244059563,
0.0025653920602053404,
0.06345078349113464,
-0.11780466139316559,
0.09253538399934769,
-0.057561133056879044,
-0.04510496184229851,
0.000720719457603991,
0.06537950783967972,
-0.05667394399642944,
-0.19566954672336578,
0.008135494776070118,
-0.005124485120177269,
-0.004057849291712046,
-0.016279073432087898,
-0.00202729320153594,
0.014770165085792542,
0.19812814891338348,
-0.11001355201005936,
-0.05476642772555351,
-0.1287751942873001,
-0.031577806919813156,
0.09911996871232986,
-0.0854840874671936,
0.0014549570623785257,
-0.015498778782784939,
0.15405035018920898,
-0.06385006755590439,
-0.09395037591457367,
0.060563743114471436,
-0.032841313630342484,
-0.0660315677523613,
-0.03744804486632347,
0.10561051219701767,
0.047138456255197525,
0.03939143568277359,
0.03661509230732918,
0.07901960611343384,
-0.029525956138968468,
-0.08789706230163574,
-0.048304129391908646,
0.14622075855731964,
-0.013504299335181713,
0.0691538006067276,
-0.14159232378005981,
-0.016816873103380203,
-0.11349145323038101,
0.060456275939941406,
0.20766572654247284,
0.20635481178760529,
-0.07592518627643585,
0.09789974987506866,
0.1472659856081009,
-0.12957923114299774,
-0.22085225582122803,
-0.06445779651403427,
0.011681626550853252,
0.039753131568431854,
0.021006183698773384,
-0.15358315408229828,
0.07324855774641037,
0.029318792745471,
0.005802913103252649,
-0.08987016975879669,
-0.2155253142118454,
-0.14003154635429382,
0.12044492363929749,
-0.0027871658094227314,
-0.04060107097029686,
-0.09599808603525162,
-0.056601736694574356,
-0.07552514970302582,
-0.017311083152890205,
0.13155701756477356,
-0.10105741769075394,
0.12024631351232529,
0.05180833861231804,
-0.001108780736103654,
0.052650827914476395,
-0.0013440019683912396,
0.1172274500131607,
0.04821223393082619,
0.04696492478251457,
-0.03140832856297493,
-0.06296069920063019,
0.10306044667959213,
-0.0871153250336647,
0.10606208443641663,
-0.040945179760456085,
0.03667880594730377,
-0.09007526189088821,
-0.03026987984776497,
-0.05002697557210922,
0.03190184384584427,
-0.04615114629268646,
-0.04377913847565651,
-0.02173253893852234,
0.04619670286774635,
0.11722519248723984,
-0.0007692595827393234,
0.059626515954732895,
-0.08683637529611588,
0.03540521115064621,
0.15424732863903046,
0.09246979653835297,
0.04826260358095169,
-0.1586497724056244,
0.019335348159074783,
0.0007123128161765635,
0.05735522508621216,
-0.10205952078104019,
0.07832413911819458,
0.07481157034635544,
-0.004030805546790361,
0.14754587411880493,
0.03252745419740677,
-0.08513512462377548,
-0.02647903934121132,
0.031177883967757225,
-0.10269409418106079,
-0.11567435413599014,
-0.04967210814356804,
-0.031210212036967278,
-0.09888917207717896,
-0.06813541799783707,
0.15777386724948883,
-0.006215784233063459,
-0.003725991351529956,
0.03892103582620621,
0.029278146103024483,
-0.030506785959005356,
0.07819294184446335,
0.01807783730328083,
0.033731602132320404,
-0.044309742748737335,
0.11290017515420914,
0.07912696897983551,
-0.08106628060340881,
0.03160789608955383,
0.16411058604717255,
-0.0704115629196167,
-0.07816337049007416,
-0.02787303552031517,
0.16997499763965607,
-0.07273010164499283,
0.03768676519393921,
-0.06707534193992615,
-0.06392957270145416,
0.01593240536749363,
0.08527065068483353,
0.03587497025728226,
0.055923767387866974,
-0.087142713367939,
0.0029942947439849377,
-0.08520445972681046,
0.0838995948433876,
0.054411694407463074,
0.00991748459637165,
-0.028349390253424644,
0.09717589616775513,
-0.008245847187936306,
-0.004160774871706963,
-0.03316054493188858,
-0.04606611281633377,
-0.09230322390794754,
-0.002641096478328109,
-0.04876873269677162,
0.010710573755204678,
-0.0702456459403038,
-0.015661675482988358,
0.029100727289915085,
0.03790406510233879,
0.0006151404231786728,
-0.009456558153033257,
-0.042901862412691116,
-0.07314588874578476,
-0.04683836176991463,
0.07894936949014664,
-0.14684662222862244,
-0.012906541116535664,
0.034803394228219986,
-0.09998824447393417,
0.07333572953939438,
0.010307910852134228,
-0.040211696177721024,
0.026301957666873932,
-0.0720394179224968,
-0.06237392872571945,
0.0061069088988006115,
0.03176901862025261,
0.05489743873476982,
-0.09987275302410126,
0.009956675581634045,
-0.05353463813662529,
0.024939917027950287,
0.0015736164059489965,
0.05681707710027695,
-0.09120669215917587,
0.04218669980764389,
-0.003045732853934169,
-0.029518485069274902,
-0.0916181355714798,
0.024868525564670563,
0.04351150989532471,
0.038827963173389435,
0.12341663241386414,
-0.06645289808511734,
0.09037945419549942,
-0.12918728590011597,
0.0036152019165456295,
0.019957715645432472,
-0.05587372928857803,
0.1045965850353241,
-0.11762623488903046,
0.0642004981637001,
-0.04825519025325775,
0.08662036806344986,
-0.02212822437286377,
0.03894053027033806,
0.06712103635072708,
0.01448825653642416,
-0.04784615710377693,
0.04402945563197136,
0.057066258043050766,
0.036804359406232834,
0.0021503688767552376,
-0.03556180000305176,
0.009571447037160397,
0.014183888211846352,
0.00011960970005020499,
0.07360392063856125,
0.11900298297405243,
0.07474195212125778,
0.08388333767652512,
0.10232779383659363,
0.0010786858620122075,
-0.06998579949140549,
0.039164602756500244,
0.0010112498421221972,
0.046719394624233246,
-0.06908361613750458,
0.012702269479632378,
0.13575895130634308,
-0.1456899642944336,
0.12667794525623322,
0.007013530004769564,
-0.06766990572214127,
-0.09357663244009018,
-0.10667473077774048,
-0.06279819458723068,
-0.02437094785273075,
-0.021473560482263565,
-0.12425526976585388,
0.0010319354478269815,
-0.0009286968852393329,
0.0016261733835563064,
0.004833186510950327,
0.11974947899580002,
-0.07970871031284332,
-0.08759044855833054,
0.08193189650774002,
-0.014615651220083237,
0.053816940635442734,
-0.009098214097321033,
0.029667681083083153,
0.021399784833192825,
0.08510198444128036,
0.029073718935251236,
0.06362469494342804,
0.06143316626548767,
0.02428341843187809,
-0.0920281708240509,
-0.08624505996704102,
0.004639886319637299,
-0.004588274285197258,
-0.058536939322948456,
0.08325899392366409,
0.03808179870247841,
-0.07979973405599594,
-0.011107143945991993,
0.2197791188955307,
-0.09701091051101685,
-0.11956705152988434,
-0.17227938771247864,
0.15848229825496674,
0.029871489852666855,
0.03671688213944435,
-0.027426403015851974,
-0.08515569567680359,
-0.026781322434544563,
0.16809527575969696,
0.2150464504957199,
-0.08637693524360657,
0.02758697420358658,
0.0543738417327404,
0.02214818261563778,
0.024261267855763435,
0.017669575288891792,
0.046923812478780746,
0.18978239595890045,
-0.04991002380847931,
0.08303474634885788,
-0.00840312521904707,
-0.06792832911014557,
-0.07763943821191788,
0.11067654937505722,
0.011607665568590164,
0.028811266645789146,
-0.019996855407953262,
0.08946265280246735,
-0.06491249799728394,
-0.12220663577318192,
-0.020456861704587936,
-0.10831254720687866,
-0.10727546364068985,
-0.040605515241622925,
0.02293146401643753,
0.021508987993001938,
0.08288541436195374,
0.0319676510989666,
-0.043332960456609726,
0.1559237390756607,
-0.0011803440283983946,
-0.06619179248809814,
-0.016173990443348885,
0.03484707325696945,
-0.08102863281965256,
0.14470435678958893,
-0.005856161471456289,
-0.035536106675863266,
0.11356469243764877,
0.00971654336899519,
-0.05607730895280838,
0.05437625199556351,
0.04236391559243202,
-0.07853326946496964,
0.09572780132293701,
0.08242162317037582,
-0.03183986619114876,
0.08577726036310196,
0.0714513286948204,
-0.18141138553619385,
0.06438959389925003,
-0.018202275037765503,
-0.05441921949386597,
-0.0548199787735939,
0.03571178391575813,
-0.0869552418589592,
0.10148532688617706,
0.17068997025489807,
-0.01127315778285265,
-0.006081926636397839,
-0.008571609854698181,
-0.01015970204025507,
0.031524159014225006,
0.03678777068853378,
-0.06445945799350739,
-0.08770467340946198,
-0.006955926306545734,
0.031807392835617065,
0.03154626116156578,
-0.26588645577430725,
-0.12216338515281677,
0.032798152416944504,
-0.018000125885009766,
-0.025196269154548645,
0.12361372262239456,
0.08487674593925476,
0.014548404142260551,
-0.03126588463783264,
-0.1837531328201294,
0.02912786416709423,
0.10691868513822556,
-0.11789805442094803,
-0.07241949439048767
] |
null | null | transformers |
# bertweet-base-multi-mami
This is a Bertweet model: It maps sentences & paragraphs to a 768 dimensional dense vector space and classifies them into 5 multi labels.
# Multilabels
label2id={
"misogynous": 0,
"shaming": 1,
"stereotype": 2,
"objectification": 3,
"violence": 4,
},
| {"language": "en", "license": "apache-2.0", "tags": ["text-classification", "misogyny"], "pipeline_tag": "text-classification", "widget": [{"text": "Women wear yoga pants because men don't stare at their personality", "example_title": "Misogyny detection"}]} | text-classification | AIDA-UPM/bertweet-base-multi-mami | [
"transformers",
"pytorch",
"safetensors",
"roberta",
"text-classification",
"misogyny",
"en",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"en"
] | TAGS
#transformers #pytorch #safetensors #roberta #text-classification #misogyny #en #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
|
# bertweet-base-multi-mami
This is a Bertweet model: It maps sentences & paragraphs to a 768 dimensional dense vector space and classifies them into 5 multi labels.
# Multilabels
label2id={
"misogynous": 0,
"shaming": 1,
"stereotype": 2,
"objectification": 3,
"violence": 4,
},
| [
"# bertweet-base-multi-mami\nThis is a Bertweet model: It maps sentences & paragraphs to a 768 dimensional dense vector space and classifies them into 5 multi labels.",
"# Multilabels\n label2id={\n \"misogynous\": 0,\n \"shaming\": 1,\n \"stereotype\": 2,\n \"objectification\": 3,\n \"violence\": 4,\n },"
] | [
"TAGS\n#transformers #pytorch #safetensors #roberta #text-classification #misogyny #en #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n",
"# bertweet-base-multi-mami\nThis is a Bertweet model: It maps sentences & paragraphs to a 768 dimensional dense vector space and classifies them into 5 multi labels.",
"# Multilabels\n label2id={\n \"misogynous\": 0,\n \"shaming\": 1,\n \"stereotype\": 2,\n \"objectification\": 3,\n \"violence\": 4,\n },"
] | [
57,
47,
49
] | [
"passage: TAGS\n#transformers #pytorch #safetensors #roberta #text-classification #misogyny #en #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n# bertweet-base-multi-mami\nThis is a Bertweet model: It maps sentences & paragraphs to a 768 dimensional dense vector space and classifies them into 5 multi labels.# Multilabels\n label2id={\n \"misogynous\": 0,\n \"shaming\": 1,\n \"stereotype\": 2,\n \"objectification\": 3,\n \"violence\": 4,\n },"
] | [
0.010699459351599216,
0.011977152898907661,
-0.007268495392054319,
0.0960683673620224,
0.13321331143379211,
0.04825115576386452,
0.22954663634300232,
0.06677024811506271,
0.02801029570400715,
-0.03479079157114029,
0.12878723442554474,
0.127334862947464,
-0.04096806421875954,
0.1112380176782608,
-0.07924988120794296,
-0.26120975613594055,
0.05173962563276291,
0.04773534834384918,
0.013172374106943607,
0.12819890677928925,
0.16228194534778595,
-0.03924639895558357,
0.04797286540269852,
-0.02717745304107666,
-0.12373571842908859,
-0.049377333372831345,
0.061047036200761795,
-0.07792046666145325,
0.09327850490808487,
0.07396645098924637,
0.12316291034221649,
0.06470195204019547,
-0.022467663511633873,
-0.12283612787723541,
0.0621420182287693,
0.00010842692427104339,
-0.09345513582229614,
0.05191193148493767,
0.07350944727659225,
-0.034370530396699905,
0.019670546054840088,
-0.12503336369991302,
0.013215173035860062,
0.038961734622716904,
-0.10276437550783157,
-0.09958219528198242,
-0.03278745710849762,
0.11225929111242294,
0.11305053532123566,
-0.009597458876669407,
-0.011472159065306187,
0.14524568617343903,
-0.07160896062850952,
0.13421519100666046,
0.16321073472499847,
-0.2838103771209717,
-0.06922648102045059,
0.0947401374578476,
-0.017591241747140884,
0.06557971239089966,
-0.0733100101351738,
0.040268152952194214,
0.04794956371188164,
0.03207116574048996,
0.009757379069924355,
-0.12981991469860077,
0.060671884566545486,
-0.05202891677618027,
-0.09479288756847382,
0.009580070152878761,
0.19314582645893097,
0.04698081314563751,
-0.03670008108019829,
-0.0830516442656517,
-0.0608053095638752,
0.059641797095537186,
-0.05499681830406189,
0.01010071113705635,
-0.051324229687452316,
-0.0012080224696546793,
-0.005218212958425283,
0.01862804777920246,
-0.10951698571443558,
0.05132613331079483,
-0.12462425231933594,
0.10346294939517975,
-0.0021167693194001913,
0.037161070853471756,
-0.11943932622671127,
-0.051210492849349976,
-0.08420007675886154,
-0.08387667685747147,
0.03640400245785713,
-0.11868248134851456,
0.01281601469963789,
-0.022051388397812843,
-0.050323840230703354,
-0.05677718296647072,
0.16245800256729126,
0.04058019444346428,
-0.06353425979614258,
0.07398781180381775,
-0.09060025960206985,
0.08318892121315002,
0.09639812260866165,
0.041261591017246246,
-0.03845665976405144,
-0.03216392919421196,
0.0399678535759449,
-0.033895328640937805,
0.08953924477100372,
-0.030765414237976074,
-0.10406211018562317,
-0.059004656970500946,
0.09433609247207642,
0.0853448212146759,
0.01279223058372736,
0.16855403780937195,
-0.06079912930727005,
-0.023280929774045944,
-0.000016059466361184604,
-0.050621580332517624,
0.024940185248851776,
0.03165872022509575,
0.11215036362409592,
0.06152760609984398,
-0.05765949562191963,
0.015380403958261013,
-0.023480625823140144,
0.029412610456347466,
-0.07984974980354309,
0.016937054693698883,
-0.03298363462090492,
-0.07129469513893127,
0.06858189404010773,
-0.013969958759844303,
-0.03939749300479889,
-0.1432570517063141,
-0.06784999370574951,
0.02578854374587536,
0.022605285048484802,
-0.029078638181090355,
-0.008514988236129284,
-0.05922231078147888,
0.005653252359479666,
0.037997305393218994,
-0.012468227185308933,
-0.05015997588634491,
-0.06179889291524887,
0.061245936900377274,
-0.11432433873414993,
0.1019209697842598,
-0.11009696125984192,
-0.01145399920642376,
-0.0423005111515522,
0.06511039286851883,
-0.17515648901462555,
0.021711962297558784,
0.007824466563761234,
0.07778103649616241,
-0.019957035779953003,
-0.05576896667480469,
0.006678191013634205,
0.030929619446396828,
-0.050587382167577744,
0.17002181708812714,
-0.10492145270109177,
-0.019940493628382683,
0.18437741696834564,
-0.14491958916187286,
-0.06587076187133789,
0.1311854124069214,
-0.034811314195394516,
0.04172366112470627,
0.07323455810546875,
0.17662721872329712,
0.01140017993748188,
0.019413374364376068,
0.10847469419240952,
0.11294210702180862,
-0.16928531229496002,
0.035092730075120926,
0.02160651609301567,
0.009594853967428207,
-0.0899161845445633,
0.0022548504639416933,
0.07578427344560623,
-0.0014878291403874755,
-0.052102118730545044,
-0.0360674150288105,
-0.013559714891016483,
0.02428652159869671,
0.1146191656589508,
-0.03849782422184944,
-0.013642395846545696,
-0.10412316769361496,
-0.014392494224011898,
-0.03991904482245445,
0.04465968906879425,
-0.006237847730517387,
0.04038938879966736,
-0.10599851608276367,
0.060091424733400345,
0.015712665393948555,
0.013827010989189148,
-0.17405563592910767,
-0.11489525437355042,
-0.07369698584079742,
0.19540730118751526,
0.024372251704335213,
0.13127830624580383,
0.011501166969537735,
0.00038841424975544214,
-0.04315965622663498,
0.03485061600804329,
0.13858474791049957,
0.018200688064098358,
-0.06418494880199432,
-0.158322274684906,
0.01717248745262623,
-0.06997708976268768,
0.06593647599220276,
-0.08893924206495285,
0.0023940319661051035,
0.09164811670780182,
0.01093515008687973,
-0.012430164031684399,
0.07989059388637543,
0.036286305636167526,
0.03522613272070885,
-0.026935067027807236,
-0.0004955545300617814,
0.136166512966156,
-0.007485815789550543,
-0.03848369047045708,
0.11613623797893524,
-0.13814130425453186,
0.22837752103805542,
0.14100919663906097,
-0.14804719388484955,
-0.06388027966022491,
-0.02781444974243641,
0.0005095685482956469,
0.019804419949650764,
-0.0012243562377989292,
0.004334338009357452,
-0.026285791769623756,
-0.009365246631205082,
0.11123613268136978,
-0.06145700812339783,
0.0019273526268079877,
0.021092727780342102,
-0.10484185069799423,
-0.1367955505847931,
0.08974635601043701,
-0.06015290319919586,
-0.3606387674808502,
0.1286693662405014,
0.2800646126270294,
0.0026579874102026224,
0.20269355177879333,
0.006792814936488867,
0.07323620468378067,
-0.032125502824783325,
-0.0003529421519488096,
-0.020663520321249962,
-0.0058511425741016865,
-0.09938116371631622,
-0.007133754901587963,
0.04296324774622917,
-0.008493832312524319,
-0.04002825915813446,
-0.08899730443954468,
-0.07344520837068558,
-0.056829363107681274,
-0.009992402046918869,
-0.05133238434791565,
0.07437021285295486,
0.05511664226651192,
0.1658598780632019,
0.002021763240918517,
-0.18831071257591248,
0.12671425938606262,
-0.022194309160113335,
-0.10318299382925034,
0.14693213999271393,
-0.1389417052268982,
-0.2369358092546463,
-0.07538248598575592,
-0.1306643933057785,
-0.08339418470859528,
0.03520723059773445,
0.04439614340662956,
-0.055900536477565765,
-0.013695139437913895,
-0.0588044710457325,
-0.04380760341882706,
-0.06101037189364433,
0.05219845846295357,
0.07931289821863174,
0.10577066987752914,
0.014348435215651989,
-0.06300290673971176,
-0.042243678122758865,
-0.03089052252471447,
-0.03983292728662491,
0.21255607903003693,
-0.14154374599456787,
0.032753828912973404,
0.11973163485527039,
-0.007746655493974686,
0.013760761357843876,
-0.06452059000730515,
0.1398339420557022,
-0.03311361372470856,
0.023706771433353424,
0.09257394075393677,
-0.07978050410747528,
0.07856666296720505,
0.17860163748264313,
0.024838607758283615,
-0.025797881186008453,
0.018193010240793228,
0.011060187593102455,
-0.05591043829917908,
-0.08202873170375824,
-0.07096684724092484,
-0.04213350638747215,
0.11670234054327011,
0.01842052862048149,
0.05646742135286331,
0.018888797610998154,
0.05754450336098671,
-0.015834268182516098,
-0.028269385918974876,
0.10418149828910828,
0.0878894031047821,
0.22833208739757538,
-0.026449495926499367,
0.13385266065597534,
-0.0433034673333168,
-0.11097294837236404,
0.05661647766828537,
-0.05816106125712395,
0.15228550136089325,
0.08255544304847717,
-0.028916683048009872,
0.09796009212732315,
0.0678420439362526,
0.10746315866708755,
0.08827082067728043,
0.027918145060539246,
-0.03035571798682213,
-0.08025464415550232,
-0.05619876831769943,
-0.017242759466171265,
0.0025590488221496344,
-0.039901021867990494,
-0.09080707281827927,
-0.023730915039777756,
-0.04716605320572853,
0.12199629098176956,
0.10545351356267929,
0.09433289617300034,
-0.13846056163311005,
0.02257836051285267,
0.10490793734788895,
-0.029455725103616714,
-0.03238808736205101,
0.047397345304489136,
0.03314369171857834,
-0.11749492585659027,
0.12879222631454468,
-0.03205545246601105,
0.07676764577627182,
-0.008917625993490219,
0.10094571858644485,
-0.07823416590690613,
-0.057390984147787094,
-0.027074432000517845,
0.09920059144496918,
-0.33337628841400146,
0.25640127062797546,
0.0431213341653347,
-0.05611877515912056,
-0.10672833025455475,
-0.11450973898172379,
0.053928811103105545,
0.17354993522167206,
0.1147807314991951,
-0.0027180330362170935,
-0.07609355449676514,
-0.16121834516525269,
0.046014152467250824,
0.018935801461338997,
0.1240418404340744,
0.10022900253534317,
0.04332263022661209,
-0.047272007912397385,
-0.022534793242812157,
-0.00048367897397838533,
0.13711875677108765,
-0.048972222954034805,
-0.09801935404539108,
0.011689605191349983,
0.10275153070688248,
-0.08074473589658737,
-0.03056132234632969,
-0.08790470659732819,
-0.05611371621489525,
0.13536149263381958,
-0.0039938329719007015,
-0.11877765506505966,
-0.09433232247829437,
-0.035122063010931015,
-0.027669047936797142,
-0.06355389952659607,
-0.010222704149782658,
-0.0730820894241333,
0.11738180369138718,
-0.07628382742404938,
-0.1339653581380844,
0.09641731530427933,
-0.07132847607135773,
-0.09932482242584229,
-0.06696754693984985,
0.14474280178546906,
-0.013222413137555122,
0.024942606687545776,
0.0876871719956398,
0.021648459136486053,
0.011449046432971954,
-0.12370097637176514,
-0.013434250839054585,
-0.07824258506298065,
0.05313381925225258,
0.025209574028849602,
-0.09411343187093735,
-0.14188921451568604,
-0.05557611212134361,
-0.007939381524920464,
0.21118469536304474,
0.23972991108894348,
-0.03453386202454567,
0.04536297172307968,
0.14979735016822815,
-0.03381016477942467,
-0.310646116733551,
-0.14849935472011566,
-0.01472738478332758,
-0.05346646159887314,
0.06455008685588837,
-0.03816164284944534,
0.005655845161527395,
0.06399072706699371,
-0.003311432898044586,
0.056197550147771835,
-0.15599530935287476,
-0.06965415924787521,
0.1603904664516449,
0.06227363273501396,
0.4276524782180786,
-0.13141904771327972,
-0.028367605060338974,
-0.07708137482404709,
-0.08808891475200653,
0.2201596200466156,
-0.1432722955942154,
0.11389683932065964,
0.013090531341731548,
0.0464591421186924,
0.01510776486247778,
-0.004464277531951666,
0.1017073541879654,
0.0305149108171463,
0.09822278469800949,
-0.15311749279499054,
-0.20242078602313995,
0.12657727301120758,
-0.01902044005692005,
-0.03300243243575096,
-0.057404112070798874,
-0.057550519704818726,
-0.07777475565671921,
-0.030181502923369408,
-0.11987164616584778,
-0.03525514528155327,
-0.03493242710828781,
-0.06509000062942505,
-0.024369869381189346,
0.04473352059721947,
-0.037498850375413895,
-0.04548526555299759,
0.2867465615272522,
-0.07086370885372162,
0.08749452233314514,
0.1589774340391159,
0.08946483582258224,
-0.1356659084558487,
-0.022858522832393646,
-0.06691649556159973,
-0.08747122436761856,
0.01596154272556305,
-0.08444057404994965,
0.06889760494232178,
0.02160199172794819,
-0.04319370910525322,
0.1331755816936493,
0.08515339344739914,
0.03978351131081581,
0.03216620907187462,
0.1495356559753418,
-0.16921381652355194,
-0.09814398735761642,
0.044134657829999924,
-0.04742135852575302,
-0.040088951587677,
0.005235415883362293,
0.21622979640960693,
0.049683939665555954,
-0.014593848958611488,
-0.006059557199478149,
0.061480529606342316,
-0.07378644496202469,
0.01646128110587597,
0.07170100510120392,
0.04457490146160126,
-0.053863946348428726,
0.06833577901124954,
0.033113155514001846,
0.030494719743728638,
0.01595424674451351,
0.14263243973255157,
-0.16946841776371002,
-0.12044217437505722,
-0.05066302418708801,
0.08841572701931,
-0.05273802578449249,
-0.06398753821849823,
-0.035607725381851196,
-0.1578052043914795,
0.008650951087474823,
0.16667087376117706,
0.06730201840400696,
0.13237448036670685,
-0.012154487892985344,
-0.10781639069318771,
0.0038722387980669737,
0.03696947544813156,
-0.039582692086696625,
-0.04322949796915054,
-0.09122554957866669,
0.0886082649230957,
-0.0493219830095768,
0.15110479295253754,
-0.08164509385824203,
-0.05526387691497803,
-0.14852990210056305,
0.0074175442568957806,
-0.14650321006774902,
0.04135587438941002,
-0.11705853044986725,
-0.0032487958669662476,
0.011683661490678787,
-0.021080072969198227,
-0.00916164368391037,
-0.049073584377765656,
-0.03473601117730141,
0.036970511078834534,
0.013543165288865566,
0.06530744582414627,
-0.06269238144159317,
-0.08378996700048447,
0.053307391703128815,
-0.002298779087141156,
0.12615324556827545,
0.011171561665832996,
-0.12383775413036346,
0.02644628845155239,
-0.2689147889614105,
-0.033154357224702835,
0.06347892433404922,
-0.05756319314241409,
0.02229984663426876,
-0.056411512196063995,
-0.007518087048083544,
0.03947852551937103,
0.07397015392780304,
0.13701432943344116,
0.08880311250686646,
-0.06784456968307495,
0.11417429149150848,
-0.038444869220256805,
-0.1721401959657669,
-0.01923520863056183,
-0.036758165806531906,
0.05699274316430092,
-0.04233790189027786,
0.16258171200752258,
-0.08173879981040955,
0.032616641372442245,
-0.10029909759759903,
0.03643570840358734,
0.0001514386967755854,
-0.11252149194478989,
-0.06233980879187584,
-0.08714237064123154,
-0.01598542183637619,
-0.04744578152894974,
0.1013827845454216,
0.03306761011481285,
-0.06436799466609955,
0.08114098012447357,
0.03159066662192345,
-0.0469159297645092,
0.011267639696598053,
0.11549832671880722,
-0.02643437869846821,
-0.04036364704370499,
-0.04258475825190544,
0.006387962494045496,
0.04529966041445732,
-0.008923450484871864,
0.13481499254703522,
0.08078726381063461,
0.06249032914638519,
0.061449646949768066,
-0.0031967025715857744,
0.044079676270484924,
0.007040181662887335,
0.00779045931994915,
0.022047070786356926,
0.018303342163562775,
-0.04945942386984825,
-0.07215569168329239,
0.18504779040813446,
-0.07057716697454453,
0.015045254491269588,
-0.08261125534772873,
-0.08180858194828033,
-0.1119164377450943,
-0.18990959227085114,
-0.1081584021449089,
-0.028227098286151886,
0.009033969603478909,
-0.08091878145933151,
-0.010859303176403046,
0.14088988304138184,
0.05853979289531708,
-0.04803020507097244,
-0.028140684589743614,
-0.018593791872262955,
-0.06362598389387131,
0.1133970245718956,
0.01214730553328991,
0.06068010255694389,
0.055228665471076965,
-0.00833541713654995,
-0.04715553671121597,
-0.05924275144934654,
-0.010945449583232403,
0.05703552067279816,
0.07853986322879791,
-0.013460506685078144,
-0.1723855882883072,
-0.1244848221540451,
-0.004947776440531015,
0.07991493493318558,
0.06203065812587738,
0.14465966820716858,
0.03766970336437225,
0.006650789640843868,
0.0413900762796402,
0.13240866363048553,
0.043600812554359436,
-0.10117872059345245,
-0.05725482106208801,
0.2026846557855606,
-0.06551501899957657,
0.05346927046775818,
-0.03228608891367912,
-0.016179630532860756,
-0.001078569213859737,
0.19737540185451508,
0.31486940383911133,
-0.16162487864494324,
0.042124662548303604,
-0.08115805685520172,
0.020793985575437546,
0.1001141145825386,
0.08416019380092621,
0.0549604706466198,
0.15926113724708557,
-0.06788092851638794,
0.053584203124046326,
-0.005261784885078669,
0.07940366864204407,
-0.13108964264392853,
-0.03329242020845413,
0.019060980528593063,
0.01014498807489872,
-0.03931162878870964,
0.10546530038118362,
-0.06758397817611694,
0.05277179926633835,
0.022756561636924744,
-0.08035270124673843,
-0.08814118057489395,
0.04432576894760132,
0.029259420931339264,
0.03421773761510849,
0.11744353175163269,
-0.03056032955646515,
-0.02291153371334076,
0.03354054316878319,
-0.013974430970847607,
-0.09506385773420334,
-0.020195744931697845,
0.0656755194067955,
0.04977169260382652,
0.0703711062669754,
-0.0003295013157185167,
0.1018054410815239,
0.11067374795675278,
-0.032284557819366455,
-0.03891802206635475,
0.1110149398446083,
0.013090952299535275,
0.1091768890619278,
-0.009885381907224655,
-0.04353208839893341,
0.007184923160821199,
-0.009228996001183987,
0.11766254156827927,
-0.04542617127299309,
0.045786406844854355,
0.0244807917624712,
-0.08980683982372284,
-0.03247277811169624,
0.11918065696954727,
-0.12494819611310959,
0.05664152279496193,
0.13289707899093628,
-0.037487998604774475,
-0.06426793336868286,
-0.003380224108695984,
-0.032220322638750076,
-0.05261899158358574,
-0.09948087483644485,
-0.06367760896682739,
-0.06928108632564545,
0.001502040890045464,
0.025329547002911568,
0.028598124161362648,
-0.22617876529693604,
-0.021846124902367592,
-0.11596457660198212,
0.027390070259571075,
-0.11873125284910202,
0.07367618381977081,
-0.0034064475912600756,
-0.01862419955432415,
-0.025834612548351288,
-0.11873230338096619,
0.021612295880913734,
0.062096595764160156,
-0.03140232712030411,
-0.08217836916446686
] |
null | null | transformers |
# mstsb-paraphrase-multilingual-mpnet-base-v2
This is a fine-tuned version of `paraphrase-multilingual-mpnet-base-v2` from [sentence-transformers](https://www.SBERT.net) model with [Semantic Textual Similarity Benchmark](http://ixa2.si.ehu.eus/stswiki/index.php/Main_Page) extended to 15 languages: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering, semantic search and measuring the similarity between two sentences.
<!--- Describe your model here -->
This model is fine-tuned version of `paraphrase-multilingual-mpnet-base-v2` for semantic textual similarity with multilingual data. The dataset used for this fine-tuning is STSb extended to 15 languages with Google Translator. For mantaining data quality the sentence pairs with a confidence value below 0.7 were dropped. The extended dataset is available at [GitHub](https://github.com/Huertas97/Multilingual-STSB). The languages included in the extended version are: ar, cs, de, en, es, fr, hi, it, ja, nl, pl, pt, ru, tr, zh-CN, zh-TW. The pooling operation used to condense the word embeddings into a sentence embedding is mean pooling (more info below).
<!-- ## Usage (Sentence-Transformers)
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
```
pip install -U sentence-transformers
```
Then you can use the model like this:
```python
from sentence_transformers import SentenceTransformer
# It support several languages
sentences = ["This is an example sentence", "Esta es otra frase de ejemplo", "最後の例文"]
# The pooling technique is automatically detected (mean pooling)
model = SentenceTransformer('mstsb-paraphrase-multilingual-mpnet-base-v2')
embeddings = model.encode(sentences)
print(embeddings)
``` -->
## Usage (HuggingFace Transformers)
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
```python
from transformers import AutoTokenizer, AutoModel
import torch
# We should define the proper pooling function: Mean pooling
# Mean Pooling - Take attention mask into account for correct averaging
def mean_pooling(model_output, attention_mask):
token_embeddings = model_output[0] #First element of model_output contains all token embeddings
input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)
# Sentences we want sentence embeddings for
sentences = ["This is an example sentence", "Esta es otra frase de ejemplo", "最後の例文"]
# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained('AIDA-UPM/mstsb-paraphrase-multilingual-mpnet-base-v2')
model = AutoModel.from_pretrained('AIDA-UPM/mstsb-paraphrase-multilingual-mpnet-base-v2')
# Tokenize sentences
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
# Compute token embeddings
with torch.no_grad():
model_output = model(**encoded_input)
# Perform pooling. In this case, max pooling.
sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
print("Sentence embeddings:")
print(sentence_embeddings)
```
## Evaluation Results
<!--- Describe how your model was evaluated -->
Check the test results in the Semantic Textual Similarity Tasks. The 15 languages available at the [Multilingual STSB](https://github.com/Huertas97/Multilingual-STSB) have been combined into monolingual and cross-lingual tasks, giving a total of 31 tasks. Monolingual tasks have both sentences from the same language source (e.g., Ar-Ar, Es-Es), while cross-lingual tasks have two sentences, each in a different language being one of them English (e.g., en-ar, en-es).
Here we compare the average multilingual semantic textual similairty capabilities between the `paraphrase-multilingual-mpnet-base-v2` based model and the `mstsb-paraphrase-multilingual-mpnet-base-v2` fine-tuned model across the 31 tasks. It is worth noting that both models are multilingual, but the second model is adjusted with multilingual data for semantic similarity. The average of correlation coefficients is computed by transforming each correlation coefficient to a Fisher's z value, averaging them, and then back-transforming to a correlation coefficient.
| Model | Average Spearman Cosine Test |
|:---------------------------------------------:|:------------------------------:|
| mstsb-paraphrase-multilingual-mpnet-base-v2 | 0.835890 |
| paraphrase-multilingual-mpnet-base-v2 | 0.818896 |
<br>
The following tables breakdown the performance of `mstsb-paraphrase-multilingual-mpnet-base-v2` according to the different tasks. For the sake of readability tasks have been splitted into monolingual and cross-lingual tasks.
| Monolingual Task | Pearson Cosine test | Spearman Cosine test |
|:------------------:|:---------------------:|:-----------------------:|
| en;en | 0.868048310692506 | 0.8740170943535747 |
| ar;ar | 0.8267139454193487 | 0.8284459741532022 |
| cs;cs | 0.8466821720942157 | 0.8485417688803879 |
| de;de | 0.8517285961812183 | 0.8557680051557893 |
| es;es | 0.8519185309064691 | 0.8552243211580456 |
| fr;fr | 0.8430951067985064 | 0.8466614534379704 |
| hi;hi | 0.8178258630578092 | 0.8176462079184331 |
| it;it | 0.8475909574305637 | 0.8494216064459076 |
| ja;ja | 0.8435588859386477 | 0.8456031494178619 |
| nl;nl | 0.8486765104527032 | 0.8520856765262531 |
| pl;pl | 0.8407840177883407 | 0.8443070467300299 |
| pt;pt | 0.8534880178249296 | 0.8578544068829622 |
| ru;ru | 0.8390897585455678 | 0.8423041443534423 |
| tr;tr | 0.8382125451820572 | 0.8421587450058385 |
| zh-CN;zh-CN | 0.826233678946644 | 0.8248515460782744 |
| zh-TW;zh-TW | 0.8242683809675422 | 0.8235506799952028 |
<br>
| Cross-lingual Task | Pearson Cosine test | Spearman Cosine test |
|:--------------------:|:---------------------:|:-----------------------:|
| en;ar | 0.7990830340462535 | 0.7956792016468148 |
| en;cs | 0.8381274879061265 | 0.8388713450024455 |
| en;de | 0.8414439600928739 | 0.8441971698649943 |
| en;es | 0.8442337511356952 | 0.8445035292903559 |
| en;fr | 0.8378437644605063 | 0.8387903367907733 |
| en;hi | 0.7951955086055527 | 0.7905052217683244 |
| en;it | 0.8415686372978766 | 0.8419480899107785 |
| en;ja | 0.8094306665283388 | 0.8032512280936449 |
| en;nl | 0.8389526140129767 | 0.8409310421803277 |
| en;pl | 0.8261309163979578 | 0.825976253023656 |
| en;pt | 0.8475546209070765 | 0.8506606391790897 |
| en;ru | 0.8248514914263723 | 0.8224871183202255 |
| en;tr | 0.8191803661207868 | 0.8194200775744044 |
| en;zh-CN | 0.8147678083378249 | 0.8102089470690433 |
| en;zh-TW | 0.8107272160374955 | 0.8056129680510944 |
## Training
The model was trained with the parameters:
**DataLoader**:
`torch.utils.data.dataloader.DataLoader` of length 687 with parameters:
```
{'batch_size': 132, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
```
**Loss**:
`sentence_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss`
Parameters of the fit()-Method:
```
{
"callback": null,
"epochs": 2,
"evaluation_steps": 1000,
"evaluator": "sentence_transformers.evaluation.EmbeddingSimilarityEvaluator.EmbeddingSimilarityEvaluator",
"max_grad_norm": 1,
"optimizer_class": "<class 'transformers.optimization.AdamW'>",
"optimizer_params": {
"lr": 2e-05
},
"scheduler": "WarmupLinear",
"steps_per_epoch": null,
"warmup_steps": 140,
"weight_decay": 0.01
}
```
## Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False})
)
```
## Citing & Authors
<!--- Describe where people can find more information --> | {"language": "multilingual", "tags": ["feature-extraction", "sentence-similarity", "transformers", "multilingual"], "pipeline_tag": "sentence-similarity"} | sentence-similarity | AIDA-UPM/mstsb-paraphrase-multilingual-mpnet-base-v2 | [
"transformers",
"pytorch",
"xlm-roberta",
"feature-extraction",
"sentence-similarity",
"multilingual",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"multilingual"
] | TAGS
#transformers #pytorch #xlm-roberta #feature-extraction #sentence-similarity #multilingual #endpoints_compatible #region-us
| mstsb-paraphrase-multilingual-mpnet-base-v2
===========================================
This is a fine-tuned version of 'paraphrase-multilingual-mpnet-base-v2' from sentence-transformers model with Semantic Textual Similarity Benchmark extended to 15 languages: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering, semantic search and measuring the similarity between two sentences.
This model is fine-tuned version of 'paraphrase-multilingual-mpnet-base-v2' for semantic textual similarity with multilingual data. The dataset used for this fine-tuning is STSb extended to 15 languages with Google Translator. For mantaining data quality the sentence pairs with a confidence value below 0.7 were dropped. The extended dataset is available at GitHub. The languages included in the extended version are: ar, cs, de, en, es, fr, hi, it, ja, nl, pl, pt, ru, tr, zh-CN, zh-TW. The pooling operation used to condense the word embeddings into a sentence embedding is mean pooling (more info below).
Usage (HuggingFace Transformers)
--------------------------------
Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
Evaluation Results
------------------
Check the test results in the Semantic Textual Similarity Tasks. The 15 languages available at the Multilingual STSB have been combined into monolingual and cross-lingual tasks, giving a total of 31 tasks. Monolingual tasks have both sentences from the same language source (e.g., Ar-Ar, Es-Es), while cross-lingual tasks have two sentences, each in a different language being one of them English (e.g., en-ar, en-es).
Here we compare the average multilingual semantic textual similairty capabilities between the 'paraphrase-multilingual-mpnet-base-v2' based model and the 'mstsb-paraphrase-multilingual-mpnet-base-v2' fine-tuned model across the 31 tasks. It is worth noting that both models are multilingual, but the second model is adjusted with multilingual data for semantic similarity. The average of correlation coefficients is computed by transforming each correlation coefficient to a Fisher's z value, averaging them, and then back-transforming to a correlation coefficient.
The following tables breakdown the performance of 'mstsb-paraphrase-multilingual-mpnet-base-v2' according to the different tasks. For the sake of readability tasks have been splitted into monolingual and cross-lingual tasks.
Training
--------
The model was trained with the parameters:
DataLoader:
'URL.dataloader.DataLoader' of length 687 with parameters:
Loss:
'sentence\_transformers.losses.CosineSimilarityLoss.CosineSimilarityLoss'
Parameters of the fit()-Method:
Full Model Architecture
-----------------------
Citing & Authors
----------------
| [] | [
"TAGS\n#transformers #pytorch #xlm-roberta #feature-extraction #sentence-similarity #multilingual #endpoints_compatible #region-us \n"
] | [
44
] | [
"passage: TAGS\n#transformers #pytorch #xlm-roberta #feature-extraction #sentence-similarity #multilingual #endpoints_compatible #region-us \n"
] | [
-0.03764524310827255,
-0.04456650838255882,
-0.010057156905531883,
-0.005394821520894766,
0.13803982734680176,
0.04983465373516083,
-0.005784392822533846,
0.11540931463241577,
0.014360226690769196,
-0.029595190659165382,
0.06423360854387283,
0.20138390362262726,
-0.012855195440351963,
-0.09248208999633789,
-0.060157328844070435,
-0.2881064713001251,
0.05982707440853119,
0.08072648197412491,
-0.031220408156514168,
0.08652863651514053,
0.10836642980575562,
-0.03969338908791542,
0.061453670263290405,
0.005771564319729805,
-0.12594850361347198,
0.08031872659921646,
0.03237113729119301,
-0.057781487703323364,
0.10687851905822754,
0.07173082232475281,
0.09580131620168686,
0.004130708519369364,
-0.11109483242034912,
-0.25418832898139954,
0.028818977996706963,
-0.04684629663825035,
-0.05927912890911102,
-0.029631949961185455,
0.03814394772052765,
-0.18875081837177277,
0.0649661123752594,
0.01425838004797697,
-0.004974899347871542,
0.04408136382699013,
-0.13541753590106964,
-0.09409787505865097,
-0.018677780404686928,
0.020908690989017487,
0.008210580796003342,
0.08162213116884232,
-0.03759273514151573,
0.1029265820980072,
-0.15905185043811798,
0.11711996793746948,
0.17734938859939575,
-0.31578537821769714,
-0.027176236733794212,
0.08347469568252563,
0.18934039771556854,
0.020129190757870674,
-0.03135775402188301,
0.08205125480890274,
-0.005675125401467085,
0.04415994510054588,
-0.12012815475463867,
-0.1367649883031845,
-0.04639449715614319,
0.09673326462507248,
-0.07849683612585068,
-0.011511524207890034,
0.15691262483596802,
-0.03508879989385605,
0.06494676321744919,
-0.06122671440243721,
-0.03720672056078911,
0.0022066421806812286,
-0.06107228994369507,
0.013375009410083294,
-0.036566104739904404,
0.0813753604888916,
0.03339103236794472,
-0.047206491231918335,
-0.10584648698568344,
0.041831303387880325,
-0.2329280525445938,
0.24432890117168427,
0.05721687898039818,
0.037374380975961685,
-0.15976464748382568,
0.0025336022954434156,
-0.06522469967603683,
-0.07732795923948288,
0.011888035573065281,
-0.0945691466331482,
-0.01730714552104473,
0.06568125635385513,
-0.0993814542889595,
-0.046844929456710815,
0.13416554033756256,
-0.0010194331407546997,
-0.03085457533597946,
0.03335356339812279,
-0.07183008641004562,
0.11924582719802856,
0.0419195257127285,
0.17294645309448242,
-0.037650734186172485,
-0.052486587315797806,
-0.03571080416440964,
-0.12912105023860931,
-0.02798130176961422,
-0.011581853963434696,
-0.1504041701555252,
-0.016481662169098854,
-0.0034118767362087965,
0.13674059510231018,
0.023549839854240417,
0.06601554155349731,
-0.05848236382007599,
-0.0023746462538838387,
-0.08454044908285141,
-0.06947731971740723,
0.007880616001784801,
0.004634498152881861,
0.04547872021794319,
0.2109714299440384,
-0.06263063102960587,
-0.0009599679033271968,
-0.12329407781362534,
-0.006903341040015221,
-0.05757342651486397,
0.08208916336297989,
-0.026228291913866997,
-0.08010687679052353,
0.01148125622421503,
-0.1088026762008667,
0.032474640756845474,
-0.11144282668828964,
-0.03448377177119255,
-0.008061639033257961,
-0.003886411665007472,
-0.035557929426431656,
0.008483488112688065,
-0.08824700117111206,
0.0037746436428278685,
0.02500603161752224,
-0.02721785008907318,
-0.07456886023283005,
-0.06196890398859978,
0.09309208393096924,
-0.028400609269738197,
0.05694854259490967,
-0.09921261668205261,
0.08611559867858887,
-0.11816688627004623,
0.010603566654026508,
-0.0710076168179512,
0.06906997412443161,
0.0003518833254929632,
0.09767920523881912,
0.011471367441117764,
-0.0630434975028038,
-0.09590375423431396,
0.11160466820001602,
-0.12169940024614334,
0.15195424854755402,
-0.13931505382061005,
-0.12374546378850937,
0.2829916179180145,
-0.03640185669064522,
-0.10711424797773361,
0.1188054084777832,
0.01678484119474888,
-0.016114206984639168,
0.07978402823209763,
0.2511623799800873,
0.02199474908411503,
-0.04018247500061989,
0.13757796585559845,
0.15418660640716553,
-0.10631049424409866,
0.04612995684146881,
0.02691277302801609,
-0.04929788038134575,
-0.012494298629462719,
0.057275835424661636,
0.023123254999518394,
0.07293815165758133,
-0.05541294813156128,
-0.05096722021698952,
-0.022717811167240143,
0.02822265960276127,
0.048399195075035095,
0.025172336027026176,
0.03164687380194664,
-0.08828642219305038,
-0.013702710159122944,
-0.01056611631065607,
0.014055526815354824,
-0.039552588015794754,
0.06751226633787155,
-0.06947275251150131,
0.10282722860574722,
0.02254652790725231,
0.02384237013757229,
-0.20786362886428833,
-0.031039290130138397,
-0.024708611890673637,
0.15174956619739532,
0.0317666195333004,
0.17934803664684296,
0.028690757229924202,
-0.066756971180439,
-0.026770124211907387,
0.02397642470896244,
0.14665153622627258,
0.0212025735527277,
-0.0051446170546114445,
-0.09107387065887451,
0.09392604976892471,
-0.05801130458712578,
-0.0039687007665634155,
0.021056875586509705,
-0.017136303707957268,
0.03430690988898277,
0.07872579991817474,
-0.013104122132062912,
0.0599294938147068,
-0.03720320388674736,
0.07205691933631897,
-0.015972701832652092,
0.04058557376265526,
0.10613340884447098,
-0.024951599538326263,
-0.11472854018211365,
0.2958002984523773,
-0.14246441423892975,
0.18439875543117523,
0.2058285027742386,
-0.29748138785362244,
0.039352897554636,
-0.07316350191831589,
-0.02051428146660328,
0.03898334503173828,
0.09931119531393051,
-0.04830007627606392,
0.16529607772827148,
0.005684008821845055,
0.15579941868782043,
-0.05950703099370003,
-0.015959633514285088,
-0.04307526350021362,
-0.035307224839925766,
-0.055091843008995056,
0.12651504576206207,
0.01613125018775463,
-0.20798517763614655,
0.1762821525335312,
0.18505175411701202,
0.07369518280029297,
0.1777871996164322,
-0.04441118612885475,
0.006608129013329744,
0.0008804022218100727,
0.033290475606918335,
-0.06527838855981827,
-0.011530906893312931,
-0.24226856231689453,
-0.03121437318623066,
0.04841269180178642,
0.04716586694121361,
0.11666814237833023,
-0.11724671721458435,
-0.08602645248174667,
-0.007591044530272484,
-0.04644815996289253,
-0.035615745931863785,
0.08934184163808823,
0.09991840273141861,
0.08621596544981003,
-0.019079258665442467,
-0.08006919175386429,
0.06638099998235703,
-0.008850728161633015,
-0.05071205273270607,
0.15879392623901367,
-0.19019444286823273,
-0.34487733244895935,
-0.1158958375453949,
-0.1410035938024521,
-0.05761944130063057,
-0.0002548682095948607,
0.11347144842147827,
-0.07775062322616577,
0.01680728606879711,
0.05011546611785889,
0.113774873316288,
-0.17183981835842133,
-0.042233094573020935,
-0.13788364827632904,
0.06819196790456772,
-0.1290292739868164,
-0.08771613985300064,
-0.07382925599813461,
-0.05287688598036766,
-0.04139203950762749,
0.07556866854429245,
-0.15291716158390045,
0.06982152909040451,
0.15555180609226227,
0.059737641364336014,
0.07088756561279297,
-0.049173712730407715,
0.13655585050582886,
-0.08989732712507248,
-0.09888384491205215,
0.14701662957668304,
-0.0030954305548220873,
0.07074171304702759,
0.10840830951929092,
0.033808160573244095,
-0.03654596209526062,
-0.05695584416389465,
0.00845681969076395,
-0.044404178857803345,
-0.18599934875965118,
-0.12479164451360703,
-0.15596193075180054,
0.037238407880067825,
-0.07666674256324768,
0.035714711993932724,
0.09372234344482422,
-0.014273818582296371,
-0.006280722562223673,
-0.10475540161132812,
0.00863597635179758,
0.03056245483458042,
0.2714555561542511,
-0.03983163461089134,
0.1152975931763649,
-0.019287314265966415,
-0.154384583234787,
0.029603401198983192,
0.06661423295736313,
0.1516387015581131,
0.11683020740747452,
0.04091818258166313,
0.09438538551330566,
0.07188069075345993,
0.08514297008514404,
0.04872794821858406,
-0.0254102423787117,
-0.04373793303966522,
-0.022759059444069862,
-0.032636430114507675,
0.03427478298544884,
0.017424048855900764,
0.2166568636894226,
-0.10169261693954468,
-0.059830933809280396,
-0.14915426075458527,
0.14034579694271088,
0.0673406645655632,
0.0373661182820797,
-0.05407039821147919,
0.07334653288125992,
0.0844351053237915,
-0.036209650337696075,
-0.07041866332292557,
0.11038628965616226,
-0.01829834096133709,
-0.13209180533885956,
0.07295451313257217,
-0.023273952305316925,
0.11007414013147354,
0.03206205740571022,
0.08881432563066483,
-0.09343695640563965,
-0.1304536908864975,
0.061513062566518784,
0.0906749963760376,
-0.2608840763568878,
0.2682049572467804,
0.035074714571237564,
-0.07413768768310547,
-0.03434734418988228,
-0.020863240584731102,
0.018677273765206337,
0.15260834991931915,
0.15802563726902008,
0.0021105234045535326,
-0.09765925258398056,
-0.10536756366491318,
0.05972942337393761,
0.026855235919356346,
0.18980590999126434,
-0.002877461491152644,
0.009490448981523514,
-0.06413448601961136,
-0.013237602077424526,
-0.03990596532821655,
0.09058764576911926,
0.03648069128394127,
-0.2025628536939621,
0.049248501658439636,
-0.012740056030452251,
-0.007955583743751049,
0.004818915855139494,
-0.004222822841256857,
-0.14495892822742462,
0.1824987381696701,
-0.11199440807104111,
-0.0610995851457119,
-0.07746415585279465,
-0.09938904643058777,
0.09924516081809998,
-0.0784502774477005,
-0.009384567849338055,
-0.06441054493188858,
-0.013467028737068176,
-0.09664871543645859,
-0.1589350551366806,
0.10062399506568909,
-0.07579461485147476,
0.05894838646054268,
-0.018142567947506905,
0.26590070128440857,
-0.09465894848108292,
0.062210872769355774,
0.05792606994509697,
0.027939006686210632,
-0.09401886910200119,
-0.06785819679498672,
-0.021354125812649727,
-0.03237354755401611,
0.05380198359489441,
0.1206125020980835,
-0.13354644179344177,
0.023134393617510796,
-0.08599203824996948,
-0.023160474374890327,
0.2990802824497223,
0.09749845415353775,
-0.03895131126046181,
0.1370399445295334,
0.07864829897880554,
-0.08145821839570999,
-0.27701085805892944,
-0.09832873195409775,
-0.1409064382314682,
0.011479757726192474,
-0.01895643211901188,
-0.07553213834762573,
0.06220264732837677,
0.007528326008468866,
0.03316234424710274,
0.04149452969431877,
-0.34541717171669006,
-0.04817517474293709,
0.1032627522945404,
-0.04642384126782417,
0.34241238236427307,
-0.1326310783624649,
-0.09595353156328201,
-0.012280784547328949,
-0.15937012434005737,
0.12045496702194214,
0.027403319254517555,
0.11770399659872055,
-0.009061840362846851,
0.054259855300188065,
0.03592361882328987,
-0.009889987297356129,
0.13539624214172363,
0.020937180146574974,
0.02164623700082302,
-0.014226938597857952,
-0.14585891366004944,
0.020542092621326447,
0.05780741572380066,
-0.00021937116980552673,
-0.08210524171590805,
-0.0110319247469306,
-0.0982651337981224,
-0.03534543886780739,
-0.15227201581001282,
0.042323168367147446,
-0.0018227249383926392,
-0.010233859531581402,
-0.031116396188735962,
-0.01898275502026081,
0.004573368933051825,
-0.006953132804483175,
0.18406812846660614,
-0.1339772641658783,
0.11675886064767838,
-0.009746790863573551,
0.10174766182899475,
-0.15734057128429413,
-0.14627477526664734,
-0.08420220762491226,
-0.03505350276827812,
0.06863798946142197,
0.016302092000842094,
0.05788329243659973,
0.11297505348920822,
-0.03710358962416649,
0.07259954512119293,
0.1023591160774231,
0.03635864332318306,
-0.02242174930870533,
0.10484546422958374,
-0.12992624938488007,
-0.12048232555389404,
-0.08477204293012619,
-0.10918155312538147,
0.15484485030174255,
0.0034456972498446703,
0.13301844894886017,
0.06721297651529312,
-0.02657841145992279,
-0.023503774777054787,
0.006361898500472307,
-0.06564003974199295,
0.03392519801855087,
0.032151833176612854,
0.03775563836097717,
-0.13760723173618317,
0.019937384873628616,
-0.0030401695985347033,
-0.25480589270591736,
-0.028985554352402687,
0.1432119607925415,
-0.06676321476697922,
-0.09822776168584824,
-0.1132044717669487,
0.11182016134262085,
-0.13299499452114105,
-0.04506369307637215,
-0.08867218345403671,
-0.17870265245437622,
0.037470269948244095,
0.20961421728134155,
0.09281006455421448,
0.14126959443092346,
-0.039746250957250595,
-0.0645076259970665,
0.03783803433179855,
-0.0012287931749597192,
0.014347605407238007,
-0.023171426728367805,
-0.0334707535803318,
0.08301203697919846,
-0.006771398242563009,
0.18775497376918793,
-0.06719418615102768,
-0.06925299018621445,
-0.10812544822692871,
0.05562509596347809,
-0.09402789920568466,
-0.06465233117341995,
-0.09852781891822815,
-0.05877521634101868,
0.04202944040298462,
-0.04357806220650673,
-0.03709506615996361,
-0.04173296317458153,
-0.10970699787139893,
0.0346103310585022,
-0.02810041792690754,
0.04777674004435539,
-0.023562362417578697,
-0.026791540905833244,
0.09730542451143265,
-0.028408000245690346,
0.05978906527161598,
0.15604282915592194,
-0.12512536346912384,
0.12480340152978897,
-0.16679126024246216,
-0.15248900651931763,
0.0842156931757927,
0.0305830966681242,
0.04771857336163521,
0.012670810334384441,
0.0329948253929615,
0.08354330062866211,
0.02145344577729702,
0.05863696336746216,
-0.03379897400736809,
-0.13834376633167267,
-0.038053128868341446,
-0.030045485123991966,
-0.18621797859668732,
-0.03760311380028725,
-0.07258863002061844,
0.08735909312963486,
0.03708245977759361,
0.10903159528970718,
-0.04576703906059265,
0.11239636689424515,
-0.013218308798968792,
0.02215527929365635,
-0.022215256467461586,
-0.1513688564300537,
0.040492091327905655,
-0.09060243517160416,
0.01154153048992157,
0.04944288730621338,
0.27192267775535583,
0.025398077443242073,
0.06642662733793259,
0.021515587344765663,
0.04061416909098625,
0.0676804855465889,
0.03774633631110191,
0.1800912618637085,
0.0993935838341713,
-0.036913540214300156,
-0.11437860876321793,
0.060498859733343124,
-0.0042907544411718845,
0.050011664628982544,
0.07196442037820816,
0.14874272048473358,
0.14834211766719818,
0.13680507242679596,
0.07011180371046066,
0.05579247698187828,
0.006341954227536917,
-0.13774549961090088,
0.04224569723010063,
0.045214857906103134,
-0.028942497447133064,
0.13940341770648956,
0.1686505526304245,
-0.05544621869921684,
0.12274521589279175,
-0.031981781125068665,
-0.047617603093385696,
-0.129991814494133,
-0.036802299320697784,
-0.059246793389320374,
-0.10671000927686691,
-0.007599882781505585,
-0.11261981725692749,
0.0476917140185833,
0.0639534741640091,
0.05367031693458557,
-0.05323423817753792,
0.0616363100707531,
0.0006164113874547184,
-0.12851329147815704,
0.07281722873449326,
-0.03859573230147362,
0.1194215789437294,
0.07784966379404068,
0.011807814240455627,
-0.08057238906621933,
-0.08819618821144104,
0.001823464990593493,
0.057012468576431274,
-0.037089671939611435,
-0.02543744631111622,
-0.22493316233158112,
-0.08835580945014954,
-0.02149275131523609,
0.026767460629343987,
-0.0015474254032596946,
0.13017025589942932,
0.04521557688713074,
-0.022474350407719612,
0.03357283025979996,
0.1817709356546402,
-0.041211504489183426,
-0.11297619342803955,
-0.025580788031220436,
0.1395689696073532,
0.11349368840456009,
0.13228727877140045,
-0.02489682100713253,
0.007502408232539892,
-0.08262848109006882,
0.29795461893081665,
0.2875412404537201,
-0.07521560043096542,
0.02249705046415329,
0.08123335987329483,
0.05782631039619446,
0.11811524629592896,
0.01585742086172104,
0.10485881567001343,
0.3212745785713196,
-0.057200994342565536,
-0.058038052171468735,
-0.09402630478143692,
-0.014239651151001453,
-0.1308804303407669,
0.06338047981262207,
0.08619070053100586,
-0.07082632184028625,
0.01513857115060091,
0.1389368772506714,
-0.15736252069473267,
0.19107691943645477,
0.00026797069585882127,
-0.20253610610961914,
-0.06239694729447365,
-0.05314051732420921,
0.17775653302669525,
0.0490574948489666,
0.11943260580301285,
-0.008915104903280735,
-0.13351649045944214,
0.034977301955223083,
0.03784727677702904,
-0.24490058422088623,
-0.037229809910058975,
0.07752644270658493,
-0.012995008379220963,
-0.06027992442250252,
-0.010011767037212849,
0.052992623299360275,
0.07126442342996597,
0.10235824435949326,
0.09909549355506897,
0.07765562832355499,
0.039791982620954514,
-0.021579116582870483,
0.028567254543304443,
0.03171028569340706,
0.028724858537316322,
-0.10103363543748856,
0.07460092753171921,
-0.10464630275964737,
0.10678493231534958,
-0.03630072996020317,
-0.09396874904632568,
0.004099042620509863,
0.04129979386925697,
-0.09754560142755508,
-0.015505552291870117,
0.12267807126045227,
0.03714822605252266,
-0.03891051933169365,
-0.06109194830060005,
-0.046829599887132645,
0.02452569454908371,
-0.012336128391325474,
-0.13518652319908142,
-0.061993326991796494,
-0.0715441033244133,
0.09330353140830994,
-0.03653241693973541,
-0.12690898776054382,
-0.05860963836312294,
-0.0012751929461956024,
0.07528964430093765,
-0.11129047721624374,
0.08649929612874985,
0.05509258806705475,
0.006085405126214027,
0.005062665790319443,
-0.18843011558055878,
0.10559821873903275,
0.07283936440944672,
-0.08886509388685226,
-0.07242909073829651
] |
null | null | transformers |
This is a finetuned XLM-RoBERTA model for natural language inference. It has been trained with a massive ammount of data following the ANLI pipeline training. We include data from:
- [mnli](https://cims.nyu.edu/~sbowman/multinli/) {train, dev and test}
- [snli](https://nlp.stanford.edu/projects/snli/) {train, dev and test}
- [xnli](https://github.com/facebookresearch/XNLI) {train, dev and test}
- [fever](https://fever.ai/resources.html) {train, dev and test}
- [anli](https://github.com/facebookresearch/anli) {train}
The model is validated on ANLI training sets, including R1, R2 and R3. The following results can be expected on the testing splits.
| Split | Accuracy
| - | - |
| R1 | 0.6610
| R2 | 0.4990
| R3 | 0.4425
# Multilabels
label2id={
"contradiction": 0,
"entailment": 1,
"neutral": 2,
},
| {"language": "en", "license": "apache-2.0", "tags": ["natural-language-inference", "misogyny"], "pipeline_tag": "text-classification", "widget": [{"text": "Las mascarillas causan hipoxia. Wearing masks is harmful to human health", "example_title": "Natural Language Inference"}]} | text-classification | AIDA-UPM/xlm-roberta-large-snli_mnli_xnli_fever_r1_r2_r3 | [
"transformers",
"pytorch",
"xlm-roberta",
"text-classification",
"natural-language-inference",
"misogyny",
"en",
"license:apache-2.0",
"autotrain_compatible",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [
"en"
] | TAGS
#transformers #pytorch #xlm-roberta #text-classification #natural-language-inference #misogyny #en #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us
| This is a finetuned XLM-RoBERTA model for natural language inference. It has been trained with a massive ammount of data following the ANLI pipeline training. We include data from:
* mnli {train, dev and test}
* snli {train, dev and test}
* xnli {train, dev and test}
* fever {train, dev and test}
* anli {train}
The model is validated on ANLI training sets, including R1, R2 and R3. The following results can be expected on the testing splits.
Multilabels
===========
```
label2id={
"contradiction": 0,
"entailment": 1,
"neutral": 2,
},
```
| [] | [
"TAGS\n#transformers #pytorch #xlm-roberta #text-classification #natural-language-inference #misogyny #en #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
63
] | [
"passage: TAGS\n#transformers #pytorch #xlm-roberta #text-classification #natural-language-inference #misogyny #en #license-apache-2.0 #autotrain_compatible #endpoints_compatible #region-us \n"
] | [
-0.004996266216039658,
0.17291730642318726,
-0.007733799517154694,
0.025620615109801292,
0.1483457237482071,
0.03286336362361908,
0.09873579442501068,
0.13242027163505554,
0.07957959175109863,
-0.1354684829711914,
0.1366833597421646,
0.19445328414440155,
-0.002563522197306156,
-0.00011210366210434586,
-0.09457357972860336,
-0.2145959585905075,
0.010770826600492,
0.0753302127122879,
-0.027727141976356506,
0.09326164424419403,
0.15585607290267944,
-0.015133259817957878,
0.06932339817285538,
0.012190504930913448,
-0.012082953937351704,
-0.002404602011665702,
0.07777213305234909,
-0.06422844529151917,
0.06769242137670517,
0.11774881929159164,
0.09356538206338882,
0.026570087298750877,
-0.048067204654216766,
-0.2600354552268982,
0.04222550615668297,
-0.059313494712114334,
-0.07163874059915543,
0.05902291461825371,
0.06504201143980026,
-0.10675716400146484,
0.02085137739777565,
-0.033455826342105865,
-0.049318231642246246,
0.10948928445577621,
-0.09208349138498306,
-0.09620518982410431,
-0.04539160057902336,
0.04548240080475807,
0.008581727743148804,
0.05326318368315697,
-0.004722109995782375,
0.15541759133338928,
-0.1185992881655693,
0.10113345086574554,
0.09149172902107239,
-0.24525326490402222,
0.0035735806450247765,
0.05471265688538551,
0.06864255666732788,
0.07260114699602127,
-0.047779083251953125,
0.06339392811059952,
0.04613053426146507,
0.0030979528091847897,
-0.06555208563804626,
-0.12889304757118225,
-0.029454568400979042,
0.016260506585240364,
-0.03965826705098152,
-0.010292497463524342,
0.2133881002664566,
0.02311774156987667,
0.038648057729005814,
-0.05520111694931984,
-0.06014924868941307,
0.032826781272888184,
-0.00525587098672986,
0.04095133766531944,
-0.05266822874546051,
0.07845035195350647,
0.10351234674453735,
-0.06919876486063004,
-0.08310206234455109,
0.07954636961221695,
-0.1471322923898697,
0.17852354049682617,
0.02421383559703827,
0.03583165630698204,
-0.15009909868240356,
-0.010745224542915821,
0.0611126609146595,
-0.09636016190052032,
0.004682766739279032,
-0.11682989448308945,
0.08491905778646469,
0.029118608683347702,
-0.04466736316680908,
0.06958291679620743,
0.1545911580324173,
0.1180199608206749,
-0.03276316449046135,
0.11143461614847183,
-0.05469667166471481,
0.11887595057487488,
0.03543880209326744,
0.07747149467468262,
0.018114976584911346,
-0.053244490176439285,
0.09243734180927277,
-0.10355683416128159,
0.05428343266248703,
-0.02265915647149086,
-0.11244267970323563,
-0.08614255487918854,
-0.034767623990774155,
0.1875188946723938,
0.032851483672857285,
0.10512182861566544,
-0.055915191769599915,
-0.02874918282032013,
0.0722924992442131,
-0.03888421878218651,
0.04669250547885895,
0.04373084008693695,
0.04300440847873688,
0.07731279730796814,
0.006181733682751656,
0.03758368641138077,
-0.07929209619760513,
-0.05818380415439606,
-0.047324128448963165,
0.04377558082342148,
-0.03016083315014839,
-0.0002172939566662535,
0.05259868875145912,
-0.03248913958668709,
0.038758475333452225,
-0.1644076257944107,
-0.08793167024850845,
0.029964154586195946,
0.012641791254281998,
-0.01237628422677517,
-0.07567659020423889,
-0.03422855958342552,
0.020086724311113358,
0.07993622124195099,
-0.04918112978339195,
-0.04358135163784027,
-0.09236108511686325,
0.06628429889678955,
-0.12618400156497955,
-0.004355423618108034,
-0.13923205435276031,
0.0529915876686573,
-0.06568614393472672,
0.004031145945191383,
-0.05214691534638405,
0.04780130088329315,
-0.0020356904715299606,
0.10824982821941376,
0.025241170078516006,
-0.05032305046916008,
-0.01856682449579239,
0.06670234352350235,
-0.08850456029176712,
0.13818252086639404,
-0.11249895393848419,
-0.02771155908703804,
0.1842150092124939,
-0.03466605022549629,
-0.08485640585422516,
0.05837257578969002,
-0.001441323896870017,
0.009833735413849354,
0.04961847886443138,
0.17043206095695496,
0.08779621124267578,
0.08340934664011002,
0.15232473611831665,
0.10070358216762543,
-0.1158529669046402,
-0.02607521042227745,
-0.03697201982140541,
-0.057474639266729355,
-0.12973740696907043,
0.031608276069164276,
0.01765221171081066,
0.08378904312849045,
0.010393843986093998,
-0.118387870490551,
-0.05999862775206566,
-0.011690869927406311,
0.04645165055990219,
0.01569484733045101,
0.0048299143090844154,
-0.09982021898031235,
0.01732585020363331,
-0.0885671079158783,
0.04870234429836273,
0.025707613676786423,
0.03137426823377609,
-0.09084035456180573,
0.03412056714296341,
0.12378674000501633,
0.02622896432876587,
-0.1847858875989914,
0.0070732529275119305,
-0.0463743694126606,
0.06407302618026733,
0.04851706326007843,
0.1761755794286728,
0.012336546555161476,
-0.06484725326299667,
-0.04304857552051544,
0.0013296399265527725,
0.20866768062114716,
0.006303505972027779,
-0.009827888570725918,
-0.1279965341091156,
0.13224084675312042,
-0.011124434880912304,
0.06413434445858002,
-0.1372227966785431,
0.0009674627799540758,
0.012277252972126007,
0.07266004383563995,
-0.03570251539349556,
0.11540132761001587,
-0.01488790288567543,
0.03681949898600578,
-0.0552719347178936,
0.0026757237501442432,
0.11196839064359665,
-0.04003174975514412,
-0.07614363729953766,
0.20240601897239685,
-0.13279983401298523,
0.23202763497829437,
0.19017979502677917,
-0.25109729170799255,
0.004682294558733702,
0.03996825963258743,
0.00569210946559906,
0.024375692009925842,
0.05687806382775307,
0.033108871430158615,
0.09912076592445374,
-0.043403349816799164,
0.13969890773296356,
-0.03816020488739014,
-0.023481830954551697,
-0.03851685672998428,
-0.0663546547293663,
-0.062036264687776566,
0.11644744873046875,
0.08533637225627899,
-0.31068655848503113,
0.1593242734670639,
0.28202033042907715,
0.014790794812142849,
0.2056732177734375,
-0.03197479993104935,
0.09812086075544357,
0.050844136625528336,
-0.045648761093616486,
-0.04524295777082443,
-0.044596537947654724,
-0.1256091147661209,
-0.01644732989370823,
0.07616226375102997,
0.005029383581131697,
0.034130461513996124,
-0.10121680051088333,
-0.09214655309915543,
-0.03340199589729309,
-0.03295930102467537,
-0.058606039732694626,
0.07497365027666092,
0.060724202543497086,
0.13940225541591644,
-0.05479852482676506,
-0.13338275253772736,
0.11914032697677612,
-0.036006949841976166,
-0.1139981746673584,
0.10365372896194458,
-0.18005305528640747,
-0.23118196427822113,
-0.12250538915395737,
-0.1278986781835556,
-0.04736398160457611,
0.006662714760750532,
0.10485854744911194,
-0.04264625906944275,
-0.07445268332958221,
0.00901088397949934,
-0.06512556970119476,
-0.11021538823843002,
-0.0003403247392270714,
-0.06230207160115242,
0.09018510580062866,
0.03289828449487686,
-0.0989970937371254,
-0.048009052872657776,
0.03992438688874245,
0.030004316940903664,
0.13190296292304993,
-0.10881752520799637,
0.04637288302183151,
0.12604281306266785,
-0.007451922167092562,
-0.004702539183199406,
-0.025595275685191154,
0.19325372576713562,
-0.1074831485748291,
-0.02227596938610077,
0.16545060276985168,
-0.05613570660352707,
0.06903792917728424,
0.18338465690612793,
0.03194226697087288,
-0.03448568284511566,
0.009632354602217674,
-0.02432870864868164,
-0.049860239028930664,
-0.23267222940921783,
-0.1256149411201477,
-0.10565061122179031,
0.021779740229249,
-0.010145765729248524,
0.08795827627182007,
0.13955716788768768,
0.029531722888350487,
-0.07988607883453369,
-0.04040707275271416,
0.05250970274209976,
0.06413865089416504,
0.30353671312332153,
0.0012531827669590712,
0.14572790265083313,
-0.08792917430400848,
-0.09757927060127258,
0.03626183420419693,
-0.004378955811262131,
0.10247572511434555,
0.1259959191083908,
0.05077303573489189,
0.07185643166303635,
0.12842929363250732,
0.15356406569480896,
0.03038245439529419,
0.11043842881917953,
-0.010271023958921432,
-0.06216160207986832,
-0.02404947020113468,
-0.029097670689225197,
0.020198559388518333,
0.09359145909547806,
-0.1265050172805786,
0.03552885726094246,
-0.18754902482032776,
0.08992750942707062,
0.11429835855960846,
0.028631078079342842,
-0.04929525777697563,
0.08657734096050262,
0.1429310142993927,
-0.05320708453655243,
-0.10303345322608948,
0.0804368257522583,
-0.09644955396652222,
-0.16944994032382965,
0.17176389694213867,
0.008087413385510445,
0.13119931519031525,
-0.05084865540266037,
0.06107325479388237,
-0.06566869467496872,
-0.10741869360208511,
0.05995635315775871,
0.15309424698352814,
-0.37071260809898376,
0.19660785794258118,
0.058842744678258896,
-0.06257811188697815,
-0.08792094141244888,
-0.08017910271883011,
0.08895071595907211,
0.18334881961345673,
0.03910873830318451,
0.02378150261938572,
-0.1355406641960144,
-0.10806918144226074,
0.06120089069008827,
0.0468251034617424,
0.07911056280136108,
0.07651069015264511,
-0.035724785178899765,
-0.08645371347665787,
-0.02907411754131317,
-0.0283864364027977,
-0.007369135972112417,
-0.10945718735456467,
-0.16233015060424805,
0.016971556469798088,
0.07129194587469101,
0.02740391157567501,
-0.004452127497643232,
-0.025168614462018013,
-0.12700532376766205,
0.186034694314003,
-0.14318056404590607,
-0.08968209475278854,
-0.07863043248653412,
-0.15893450379371643,
0.008111418224871159,
-0.06545022875070572,
-0.0007719715358689427,
-0.07238868623971939,
0.04576908051967621,
-0.042816996574401855,
-0.18457047641277313,
0.08206087350845337,
-0.07409602403640747,
-0.07968087494373322,
-0.0701228678226471,
0.14298060536384583,
-0.04162393882870674,
0.04334159567952156,
0.03963321074843407,
0.0018809722969308496,
-0.09116826951503754,
-0.13840866088867188,
0.016749082133173943,
0.08143874257802963,
-0.00441434932872653,
0.039211343973875046,
-0.07566045224666595,
-0.08921853452920914,
-0.08327635377645493,
-0.08439310640096664,
0.23361393809318542,
0.20112331211566925,
-0.04646455496549606,
0.09138276427984238,
0.1321113109588623,
-0.10133485496044159,
-0.30867740511894226,
-0.13208623230457306,
-0.14999669790267944,
-0.05697851628065109,
0.05637642741203308,
-0.1386783868074417,
0.017285294830799103,
-0.01234501414000988,
0.00033521364093758166,
0.11790443956851959,
-0.10508397221565247,
-0.057805124670267105,
0.1766970157623291,
-0.021160053089261055,
0.3523665964603424,
-0.09658382087945938,
-0.08480557054281235,
-0.07024126499891281,
-0.0909038633108139,
0.2044856697320938,
-0.06902138888835907,
0.0845312550663948,
-0.01589810475707054,
0.04652196913957596,
0.018818197771906853,
0.017757300287485123,
0.13282723724842072,
-0.06767355650663376,
0.03383239731192589,
-0.12233579158782959,
-0.06006627902388573,
0.016453107818961143,
0.0214240662753582,
-0.028359316289424896,
-0.15791432559490204,
-0.026562482118606567,
-0.09371735900640488,
-0.024092137813568115,
-0.0742626041173935,
0.0359656922519207,
-0.016133392229676247,
-0.029309790581464767,
-0.08386789262294769,
-0.040027718991041183,
-0.00925279688090086,
-0.02593463473021984,
0.27812400460243225,
-0.03716724365949631,
0.05755716189742088,
0.07829049974679947,
0.19124628603458405,
-0.1458987444639206,
0.027591893449425697,
-0.10577432811260223,
-0.05970263108611107,
0.0221578236669302,
-0.07403108477592468,
0.04430300369858742,
0.08968611061573029,
-0.07219700515270233,
0.11473502218723297,
0.06423886865377426,
0.03932113200426102,
-0.027595527470111847,
0.10697317123413086,
-0.11569996923208237,
-0.08959334343671799,
-0.01162510085850954,
0.04557417333126068,
0.05417121201753616,
-0.07143592089414597,
0.17336024343967438,
0.08935818821191788,
-0.06070904806256294,
0.012923106551170349,
0.024631470441818237,
-0.043188322335481644,
0.03156736493110657,
0.11202758550643921,
0.023500747978687286,
-0.10435105860233307,
0.04768509417772293,
0.016621286049485207,
-0.019242148846387863,
-0.0003976798616349697,
0.1496555358171463,
-0.1449439972639084,
-0.13721324503421783,
-0.04031608998775482,
0.10783396661281586,
-0.15586243569850922,
-0.10677430778741837,
-0.052771203219890594,
-0.19812828302383423,
0.012603430077433586,
0.1091003343462944,
0.06334032863378525,
0.11805805563926697,
-0.0192401260137558,
-0.1493322104215622,
0.0979434996843338,
0.015354852192103863,
-0.09813689440488815,
-0.05211807042360306,
-0.08745858818292618,
-0.014289229176938534,
0.018761927261948586,
0.1496753841638565,
-0.05330042168498039,
-0.049587979912757874,
-0.1134452149271965,
0.054041557013988495,
-0.19934678077697754,
0.014011180959641933,
-0.10755149275064468,
0.019792988896369934,
0.0012055581901222467,
-0.061756882816553116,
-0.04839304834604263,
-0.05700021982192993,
-0.09805110096931458,
-0.006523412186652422,
0.011515677906572819,
0.08601118624210358,
-0.04463662579655647,
-0.047013059258461,
0.09994000196456909,
0.014107826165854931,
0.06251121312379837,
0.03718721866607666,
-0.10147776454687119,
0.07602288573980331,
-0.16141144931316376,
-0.06292054802179337,
0.07664703577756882,
0.05419119819998741,
0.0002501900598872453,
-0.041204728186130524,
-0.014054673723876476,
0.09263351559638977,
0.03076542355120182,
0.09608221799135208,
-0.005418736487627029,
-0.09269668161869049,
0.061169710010290146,
-0.0275697261095047,
-0.16973777115345,
-0.023166922852396965,
-0.04074535518884659,
0.11748544126749039,
-0.02812645025551319,
0.18299253284931183,
-0.060187987983226776,
0.04055105522274971,
-0.05045652389526367,
0.056011978536844254,
-0.03863682970404625,
-0.1274767816066742,
-0.08784665912389755,
-0.08972513675689697,
-0.008619306609034538,
-0.000322299893014133,
0.25998738408088684,
0.027362516149878502,
-0.04007038474082947,
0.07917996495962143,
0.06770657002925873,
-0.028898578137159348,
0.025920554995536804,
0.14025233685970306,
0.01886327564716339,
-0.03692424297332764,
-0.06296799331903458,
0.03881337121129036,
-0.003693761769682169,
0.01567995361983776,
0.1150381788611412,
0.07863910496234894,
0.11146440356969833,
0.04785691574215889,
-0.06774988770484924,
-0.017129400745034218,
-0.002119829412549734,
-0.04245269298553467,
0.07220672070980072,
0.005247233901172876,
-0.061536192893981934,
0.03251223638653755,
0.13446588814258575,
-0.057508137077093124,
0.01521995384246111,
-0.1103019043803215,
-0.05588129907846451,
-0.19531528651714325,
-0.12883028388023376,
-0.07392986118793488,
-0.044978514313697815,
-0.027255522087216377,
-0.04306129366159439,
0.013269715011119843,
0.04297232627868652,
0.011560101993381977,
-0.12443240731954575,
-0.12178927659988403,
0.011942869052290916,
-0.09710311889648438,
-0.01023753173649311,
0.020657462999224663,
0.08509799838066101,
-0.016639724373817444,
0.005705852992832661,
-0.1023414134979248,
-0.09012291580438614,
-0.026365162804722786,
0.07223661988973618,
-0.07495608180761337,
0.027478648349642754,
-0.18084554374217987,
-0.08884076029062271,
-0.015264267101883888,
0.07961946725845337,
0.025871479883790016,
0.2085874229669571,
0.0418212004005909,
0.053443070501089096,
0.08371284604072571,
0.18068109452724457,
0.03870288282632828,
-0.08740448951721191,
-0.03945711627602577,
0.2015533149242401,
0.029269900172948837,
0.08527402579784393,
-0.01231643557548523,
-0.020452996715903282,
-0.009680042043328285,
0.2800213694572449,
0.3228840231895447,
-0.1350245326757431,
0.058215439319610596,
-0.04700382798910141,
0.017317024990916252,
0.09312805533409119,
0.039834924042224884,
0.12527552247047424,
0.18244320154190063,
-0.07955178618431091,
-0.010344386100769043,
-0.020011896267533302,
0.05221866816282272,
-0.1359657496213913,
0.03254735469818115,
-0.026148339733481407,
-0.04371601343154907,
-0.019034167751669884,
0.06461765617132187,
-0.15136389434337616,
0.17665117979049683,
-0.02378084324300289,
-0.13326847553253174,
-0.03687269985675812,
0.010710897855460644,
0.04242205619812012,
0.045882899314165115,
0.048377539962530136,
-0.04729218780994415,
-0.08909060060977936,
0.07130711525678635,
-0.003262289334088564,
-0.1859036386013031,
-0.018900228664278984,
0.07185633480548859,
0.005186043214052916,
0.053599294275045395,
0.008900453336536884,
0.0732298269867897,
0.11054985225200653,
0.06775849312543869,
-0.023568708449602127,
0.09486423432826996,
0.03673537075519562,
0.06667859852313995,
0.021517332643270493,
-0.026143142953515053,
0.008503171615302563,
-0.04660246893763542,
0.127590611577034,
0.012221407145261765,
0.10394389927387238,
-0.040892306715250015,
-0.11714212596416473,
-0.013170304708182812,
0.08871571719646454,
-0.1324356496334076,
0.031157560646533966,
0.06886732578277588,
-0.01805298589169979,
-0.06503872573375702,
-0.03106049634516239,
-0.06450368463993073,
-0.029718929901719093,
-0.11192477494478226,
-0.10152526944875717,
-0.022039836272597313,
-0.029320616275072098,
0.07768546044826508,
0.066034235060215,
-0.10278481990098953,
-0.01516039203852415,
-0.12875118851661682,
0.01622186042368412,
-0.12924641370773315,
0.06474592536687851,
-0.003597817849367857,
-0.031456224620342255,
-0.0018353948835283518,
-0.08814354240894318,
0.04328390210866928,
0.02617773786187172,
-0.04486195743083954,
-0.05594969540834427
] |
null | null | transformers |
# tests | {"tags": ["conversational"]} | text-generation | AIDynamics/DialoGPT-medium-MentorDealerGuy | [
"transformers",
"pytorch",
"gpt2",
"text-generation",
"conversational",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us
|
# tests | [
"# tests"
] | [
"TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n",
"# tests"
] | [
51,
2
] | [
"passage: TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n# tests"
] | [
-0.0640890821814537,
0.04858781397342682,
-0.005133491475135088,
0.018718400970101357,
0.09272151440382004,
0.012745637446641922,
0.10685989260673523,
0.17451269924640656,
0.033483363687992096,
-0.011429372243583202,
0.1845845878124237,
0.17943181097507477,
-0.010423972271382809,
0.04267093539237976,
-0.11952495574951172,
-0.1395329236984253,
0.06125699728727341,
0.07652118802070618,
0.020853063091635704,
0.18294578790664673,
0.08649008721113205,
-0.06145194545388222,
0.07690192013978958,
-0.026114188134670258,
-0.155657097697258,
0.02497873827815056,
0.031130004674196243,
-0.13519896566867828,
0.1346942037343979,
0.01251725573092699,
0.06568162888288498,
0.06582047790288925,
-0.08803447335958481,
-0.1443059891462326,
0.018483787775039673,
-0.004898823797702789,
-0.018117673695087433,
0.029208077117800713,
0.06128127872943878,
-0.08063449710607529,
0.092975914478302,
0.13920842111110687,
0.004422775935381651,
0.04768851026892662,
-0.12276092916727066,
-0.05326196551322937,
-0.04404865577816963,
-0.0473172627389431,
0.039163168519735336,
0.1372741162776947,
-0.05606478452682495,
0.2258441001176834,
-0.1598576009273529,
0.12674708664417267,
0.13763217628002167,
-0.2874913513660431,
-0.012784120626747608,
0.10380451381206512,
0.10204323381185532,
0.04833877831697464,
-0.008282212540507317,
0.044263456016778946,
0.08142225444316864,
0.039898063987493515,
-0.08853451907634735,
-0.08937934041023254,
-0.10908105969429016,
0.06151086837053299,
-0.11127790063619614,
-0.08435621857643127,
0.23173783719539642,
-0.04325070604681969,
0.021732782945036888,
-0.0718337744474411,
-0.06016841530799866,
-0.0552414245903492,
0.04481374844908714,
-0.028873581439256668,
-0.08551836758852005,
0.007869902066886425,
-0.03987434506416321,
-0.042792484164237976,
-0.11742821335792542,
-0.11159465461969376,
-0.17962032556533813,
0.13555151224136353,
0.04251331090927124,
0.025978468358516693,
-0.17026886343955994,
0.1156364306807518,
0.025341130793094635,
-0.10804150998592377,
-0.051673855632543564,
-0.09316185861825943,
0.00391432037577033,
-0.022716475650668144,
-0.08870629966259003,
-0.10442617535591125,
0.14589352905750275,
0.14028647541999817,
-0.04018373787403107,
0.042493607848882675,
-0.07116669416427612,
0.04647921025753021,
0.023902248591184616,
0.15147128701210022,
0.0695108100771904,
0.0009092375985346735,
-0.004078274127095938,
-0.06227411329746246,
-0.043432991951704025,
-0.024995917454361916,
-0.075485959649086,
-0.043139535933732986,
0.1179795041680336,
0.10078853368759155,
0.021924059838056564,
0.050055403262376785,
-0.04427766054868698,
0.004970320500433445,
-0.012084799818694592,
-0.09001525491476059,
-0.009491920471191406,
0.02489319257438183,
-0.012715989723801613,
0.04035454988479614,
-0.011952582746744156,
0.008715754374861717,
-0.11690771579742432,
0.004936958197504282,
-0.040597714483737946,
-0.0027397777885198593,
-0.031977828592061996,
-0.06380733102560043,
0.03533530980348587,
-0.05000041797757149,
-0.01632632501423359,
-0.16125403344631195,
-0.19132916629314423,
-0.04806380346417427,
-0.02453119307756424,
-0.0429704412817955,
-0.021396636962890625,
-0.06391561031341553,
-0.018027955666184425,
0.005752381402999163,
-0.05822887271642685,
0.005290930159389973,
-0.06162719428539276,
0.13581295311450958,
0.06214876472949982,
0.05481873080134392,
0.007215634919703007,
0.0671929195523262,
-0.1503487229347229,
-0.01723168045282364,
-0.039393264800310135,
0.11195706576108932,
-0.05788544937968254,
0.06958452612161636,
-0.06019189953804016,
-0.06668150424957275,
-0.060273006558418274,
0.05409706383943558,
-0.02309790998697281,
0.26936203241348267,
-0.07303225249052048,
-0.09239543229341507,
0.2765622138977051,
-0.0759318396449089,
-0.19657181203365326,
0.14929993450641632,
-0.008087826892733574,
0.057967912405729294,
0.12056215852499008,
0.20005099475383759,
0.004941920284181833,
-0.054933492094278336,
0.09411442279815674,
0.08897119015455246,
-0.046989910304546356,
0.019763190299272537,
0.05836533382534981,
-0.08127464354038239,
-0.15140573680400848,
0.04043678566813469,
0.026180509477853775,
0.03299187868833542,
-0.06386752426624298,
-0.03791926056146622,
-0.059716835618019104,
-0.0020443385001271963,
0.1215210109949112,
0.039508603513240814,
0.11048990488052368,
-0.120464988052845,
-0.05498763546347618,
-0.07327651232481003,
0.007753030862659216,
-0.0681474357843399,
-0.0056244865991175175,
-0.08099818974733353,
0.14813044667243958,
-0.039886489510536194,
0.03428718447685242,
-0.17505013942718506,
-0.02941124327480793,
0.020372537896037102,
0.11924069374799728,
0.017860768362879753,
0.09164275974035263,
0.07797805219888687,
-0.05077025666832924,
0.03222207352519035,
-0.011542439460754395,
0.13871228694915771,
-0.02385326661169529,
-0.07436151802539825,
-0.04545168578624725,
0.1002253070473671,
-0.058154888451099396,
0.051703765988349915,
-0.11281515657901764,
0.00033273405279032886,
0.03319217264652252,
0.06878063827753067,
-0.024357104673981667,
0.03838205337524414,
0.004302112851291895,
0.011513391509652138,
-0.069761261343956,
0.00413411995396018,
0.05651428550481796,
-0.010399937629699707,
-0.07196637988090515,
0.16029120981693268,
-0.10559473186731339,
0.1644771248102188,
0.16011765599250793,
-0.22773997485637665,
-0.04058258980512619,
-0.058586422353982925,
-0.05130082741379738,
0.026112113147974014,
-0.02155526913702488,
-0.043947555124759674,
0.16205762326717377,
-0.014776547439396381,
0.15742143988609314,
-0.09927740693092346,
-0.06530885398387909,
-0.013645404018461704,
-0.05969740450382233,
0.033264800906181335,
0.14970575273036957,
0.051841944456100464,
-0.13951869308948517,
0.1470080018043518,
0.11574935168027878,
-0.05052843317389488,
0.12551385164260864,
-0.02709844708442688,
-0.04651373624801636,
0.0834871307015419,
0.0980442687869072,
-0.04606909677386284,
-0.04582832008600235,
-0.27314475178718567,
-0.0017077946104109287,
0.08489131182432175,
0.06484527885913849,
0.0964367613196373,
-0.1285942941904068,
-0.03556238114833832,
0.008486330509185791,
-0.052157916128635406,
-0.021359700709581375,
0.12019383162260056,
0.07090910524129868,
0.11842801421880722,
-0.030888622626662254,
-0.04074639454483986,
0.0844561830163002,
0.006118549965322018,
-0.1596170961856842,
0.23379014432430267,
-0.08558832854032516,
-0.3408094346523285,
-0.10339250415563583,
-0.11020626872777939,
-0.04756569117307663,
0.03876715525984764,
0.13995474576950073,
-0.143144428730011,
0.003526474582031369,
-0.016654707491397858,
0.07968053966760635,
-0.018076006323099136,
0.012523812241852283,
-0.07774432003498077,
0.027643997222185135,
-0.07291315495967865,
-0.09983930736780167,
-0.06606736779212952,
-0.0006022327579557896,
-0.055831409990787506,
0.16910132765769958,
-0.13162130117416382,
0.04670391604304314,
0.17788806557655334,
0.013122529722750187,
0.06788072735071182,
-0.051088664680719376,
0.2370348870754242,
-0.13201037049293518,
-0.052984558045864105,
0.22095824778079987,
-0.04170168563723564,
0.024758867919445038,
0.07271523028612137,
-0.0486229844391346,
-0.08357685804367065,
0.05262855812907219,
-0.050834499299526215,
-0.055877476930618286,
-0.31062257289886475,
-0.09467113763093948,
-0.0699753537774086,
0.07615640014410019,
0.040676672011613846,
0.05940345674753189,
0.15728919208049774,
0.08285003900527954,
0.013745888136327267,
-0.04794403538107872,
0.02883538231253624,
0.05156446248292923,
0.21636657416820526,
-0.041144419461488724,
0.13617569208145142,
-0.039778560400009155,
-0.14885340631008148,
0.04967064782977104,
0.03260032832622528,
0.12182677537202835,
0.05127229541540146,
0.029015084728598595,
0.038867540657520294,
0.0708639919757843,
0.10516021400690079,
0.07325322180986404,
0.052837301045656204,
-0.03899374231696129,
0.016985991969704628,
-0.03831060603260994,
-0.05956226959824562,
0.022261200472712517,
0.06445886939764023,
-0.12160100787878036,
-0.06455586850643158,
-0.13055942952632904,
0.09427057206630707,
0.0725259929895401,
0.10836751759052277,
-0.25370195508003235,
-0.019975820556282997,
0.018812062218785286,
-0.07278934866189957,
-0.10042042285203934,
0.08118277788162231,
-0.014608060009777546,
-0.18452247977256775,
0.0422515794634819,
-0.04917314276099205,
0.12745440006256104,
-0.012126590125262737,
0.07085786759853363,
-0.08806723356246948,
-0.13208894431591034,
0.011861665174365044,
0.15532927215099335,
-0.3905067443847656,
0.21021243929862976,
-0.01735508069396019,
-0.021161608397960663,
-0.12925264239311218,
-0.010557174682617188,
0.0016629622550681233,
0.041337884962558746,
0.133791983127594,
-0.04407963529229164,
0.015141853131353855,
-0.04808927699923515,
-0.026028800755739212,
0.06494027376174927,
0.09852918237447739,
0.015635628253221512,
0.03825034946203232,
-0.036567337810993195,
0.02026316523551941,
-0.04985176771879196,
-0.10582435876131058,
-0.05540536716580391,
-0.06889110058546066,
0.05093119293451309,
-0.02731780707836151,
0.07046197354793549,
0.001145463204011321,
-0.04288988932967186,
-0.14651358127593994,
0.25688183307647705,
-0.08375765383243561,
-0.09913614392280579,
-0.08736739307641983,
-0.0010994704207405448,
0.10601174831390381,
-0.05685144662857056,
-0.0014020792441442609,
-0.06982872635126114,
0.021684614941477776,
-0.02867535874247551,
-0.15304569900035858,
0.071851946413517,
-0.0865347608923912,
-0.09801021218299866,
-0.010811690241098404,
0.19412216544151306,
-0.04001826420426369,
0.05642879754304886,
0.07574214786291122,
0.025994790717959404,
-0.1462276726961136,
-0.09079776704311371,
0.012025664560496807,
-0.07057607173919678,
0.006858086213469505,
0.07135756313800812,
-0.013550376519560814,
0.01511061005294323,
-0.08127973228693008,
-0.023597868159413338,
0.33728018403053284,
0.15190033614635468,
-0.03034217096865177,
0.136292964220047,
0.06774744391441345,
-0.07232292741537094,
-0.30006369948387146,
-0.028365591540932655,
-0.04230726137757301,
0.006298218388110399,
-0.0660238191485405,
-0.12604813277721405,
0.08195134252309799,
0.03418125957250595,
-0.024467021226882935,
0.157089963555336,
-0.2808157801628113,
-0.08487685769796371,
0.2031833380460739,
-0.01806797832250595,
0.29024699330329895,
-0.1481563299894333,
-0.11242269724607468,
-0.018190965056419373,
-0.12677890062332153,
0.09567905217409134,
-0.023058587685227394,
0.10184789448976517,
-0.02893237955868244,
0.10723036527633667,
0.04677383601665497,
-0.057646602392196655,
0.14263705909252167,
-0.011789999902248383,
-0.04102518782019615,
-0.06727197766304016,
0.020751941949129105,
-0.01578231155872345,
0.016174430027604103,
0.07703955471515656,
-0.06017094850540161,
0.08220714330673218,
-0.16072192788124084,
-0.04197181016206741,
-0.09183088690042496,
0.09495361149311066,
0.019039873033761978,
-0.02329671010375023,
-0.03167656809091568,
-0.0715445801615715,
-0.034466907382011414,
-0.0007855003350414336,
0.16291198134422302,
-0.11557367444038391,
0.21015681326389313,
0.08606664836406708,
0.16862665116786957,
-0.08800318092107773,
-0.03753998503088951,
-0.011634153313934803,
-0.05210750177502632,
0.08288219571113586,
-0.09873882681131363,
0.04564044624567032,
0.1636359542608261,
0.004014769569039345,
0.09612254053354263,
0.09256742149591446,
-0.018463121727108955,
0.002519887639209628,
0.09612590074539185,
-0.23589742183685303,
0.024791186675429344,
-0.06820329278707504,
-0.08482266217470169,
0.028272412717342377,
0.06512944400310516,
0.17201875150203705,
0.020605305209755898,
-0.03431620076298714,
-0.010036024264991283,
-0.007986455224454403,
-0.060004957020282745,
0.183059960603714,
0.012421940453350544,
0.05428837984800339,
-0.14585576951503754,
0.05107856169342995,
-0.02606087364256382,
-0.14316461980342865,
0.03471703454852104,
0.12385387718677521,
-0.09844301640987396,
-0.12236145883798599,
-0.02622905932366848,
0.11329343169927597,
-0.10907828062772751,
-0.040529392659664154,
-0.11206106841564178,
-0.13486698269844055,
0.08470404148101807,
0.14649991691112518,
0.11475201696157455,
0.10693349689245224,
0.0026988021563738585,
-0.061812616884708405,
-0.023109402507543564,
0.037875402718782425,
0.05424448475241661,
0.010569085367023945,
-0.059539444744586945,
0.055960360914468765,
-0.021161621436476707,
0.1538587212562561,
-0.09924964606761932,
-0.07893621176481247,
-0.15917591750621796,
0.0859876275062561,
-0.17369166016578674,
-0.05170295014977455,
-0.04657048359513283,
-0.055913180112838745,
0.026194937527179718,
-0.03358639031648636,
-0.031119555234909058,
-0.043054234236478806,
-0.12212900817394257,
0.03375392034649849,
-0.036048904061317444,
0.03241661936044693,
-0.09027131646871567,
0.030646000057458878,
0.10033247619867325,
-0.07186225056648254,
0.11826878786087036,
0.12483365833759308,
-0.13760650157928467,
0.08573666960000992,
-0.13403573632240295,
-0.06786877661943436,
0.09354549646377563,
0.020267022773623466,
0.025465885177254677,
-0.012907913886010647,
0.0663171336054802,
0.11540734022855759,
0.04717908054590225,
0.11721207201480865,
0.04030822962522507,
-0.10315784811973572,
0.027064569294452667,
-0.06733627617359161,
-0.1295207440853119,
-0.04465653747320175,
-0.0396118089556694,
0.01802818663418293,
0.06122460216283798,
0.12622720003128052,
-0.06457290798425674,
0.09375505149364471,
-0.09426005184650421,
0.004179922863841057,
-0.0028054118156433105,
-0.12131589651107788,
-0.06627993285655975,
-0.03274380788207054,
0.08481074869632721,
0.01231718622148037,
0.26478123664855957,
0.01851220242679119,
0.06297733634710312,
0.020234370604157448,
0.05735580250620842,
0.11989179998636246,
0.00009262666571885347,
0.21520258486270905,
0.09023995697498322,
-0.04500303789973259,
-0.10150951147079468,
0.032347068190574646,
-0.007850985042750835,
-0.08483738452196121,
0.14725826680660248,
0.09170142561197281,
-0.05418949946761131,
0.09468887001276016,
-0.026552768424153328,
0.0223529189825058,
-0.02232358418405056,
-0.12785965204238892,
-0.018727384507656097,
0.087379589676857,
0.027597764506936073,
0.15545804798603058,
0.1397136151790619,
-0.05956212803721428,
0.013798399828374386,
-0.05645328760147095,
-0.08154620975255966,
-0.18805791437625885,
-0.08152974396944046,
-0.1198805496096611,
-0.1661669909954071,
0.06428834795951843,
-0.10800748318433762,
0.028949975967407227,
0.04227757826447487,
0.09544625133275986,
-0.0950179323554039,
0.12221606075763702,
0.06233198195695877,
-0.12051791697740555,
0.09263746440410614,
-0.05819723755121231,
0.07801467180252075,
0.029359320178627968,
-0.017792552709579468,
-0.016571488231420517,
0.02649994194507599,
0.038721732795238495,
0.03507556766271591,
-0.08409299701452255,
0.009110751561820507,
-0.17003238201141357,
-0.0774017944931984,
-0.0260147824883461,
0.08006694912910461,
-0.01705075614154339,
0.14379611611366272,
0.016750393435359,
0.015070381574332714,
0.03630772978067398,
0.21939364075660706,
-0.06692104041576385,
-0.10037937015295029,
-0.11593246459960938,
0.27381885051727295,
0.008448983542621136,
0.10219080746173859,
-0.0028344346210360527,
-0.016903292387723923,
-0.05209674313664436,
0.3668055832386017,
0.2486937940120697,
-0.05113627016544342,
-0.01243316475301981,
0.0348484069108963,
0.025952255353331566,
0.10424622893333435,
0.09550870209932327,
0.08200715482234955,
0.28866347670555115,
-0.09757532179355621,
-0.07109503448009491,
-0.03633645176887512,
-0.041766878217458725,
-0.07132939249277115,
0.060222458094358444,
0.06925002485513687,
-0.07217155396938324,
-0.02474149502813816,
0.15280230343341827,
-0.20680056512355804,
0.11085759848356247,
-0.09086858481168747,
-0.1486527919769287,
-0.10890597105026245,
0.01822061277925968,
0.07638247311115265,
-0.04137861356139183,
0.05386568605899811,
-0.019106170162558556,
-0.06973320245742798,
-0.002039921935647726,
-0.02352782152593136,
-0.14469823241233826,
-0.03267348185181618,
0.07403191924095154,
-0.06241832301020622,
-0.008557827211916447,
0.003123349277302623,
0.19444993138313293,
0.08763423562049866,
0.019885163754224777,
-0.02229505218565464,
0.09059208631515503,
0.04632899537682533,
-0.06327839940786362,
0.06741409748792648,
0.05264365300536156,
0.06862708181142807,
-0.06492145359516144,
0.10230152308940887,
-0.10163192451000214,
0.0403796061873436,
-0.07436220347881317,
-0.022717120125889778,
-0.12745040655136108,
0.022703498601913452,
-0.06269481033086777,
0.05307482182979584,
0.12696242332458496,
-0.026496587321162224,
0.06117983162403107,
-0.07106278836727142,
0.0350232869386673,
-0.024666227400302887,
-0.0925731435418129,
-0.07104574888944626,
-0.21588779985904694,
-0.06812722980976105,
0.09219975769519806,
-0.05083630234003067,
-0.2539313733577728,
0.005217800382524729,
-0.0765971839427948,
0.03305145725607872,
-0.07774831354618073,
0.09242554008960724,
0.06525180488824844,
0.038656335324048996,
0.00671409722417593,
-0.06867300719022751,
0.03249678388237953,
0.1160341277718544,
-0.13384509086608887,
-0.07967899739742279
] |
null | null | transformers |
# Uses DialoGPT | {"tags": ["conversational"]} | text-generation | AJ/DialoGPT-small-ricksanchez | [
"transformers",
"pytorch",
"gpt2",
"text-generation",
"conversational",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us
|
# Uses DialoGPT | [
"# Uses DialoGPT"
] | [
"TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n",
"# Uses DialoGPT"
] | [
51,
7
] | [
"passage: TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n# Uses DialoGPT"
] | [
-0.006153966300189495,
0.038619041442871094,
-0.006930687464773655,
0.001352833118289709,
0.1527775526046753,
0.010016322135925293,
0.12284453958272934,
0.13231559097766876,
0.005725642200559378,
-0.06114727631211281,
0.09122416377067566,
0.1827700287103653,
0.0012627311516553164,
0.08337446302175522,
-0.06730815023183823,
-0.2712222933769226,
0.0454256571829319,
0.053516000509262085,
0.03772388771176338,
0.12086120992898941,
0.09328582137823105,
-0.02774331346154213,
0.06868963688611984,
0.007323007564991713,
-0.1555548906326294,
0.03397943079471588,
0.05194723233580589,
-0.11240865290164948,
0.12256341427564621,
0.06836948543787003,
0.056685034185647964,
-0.006261216010898352,
-0.07507871091365814,
-0.17039655148983002,
0.02663525566458702,
-0.0028594867326319218,
-0.03354521840810776,
0.026425030082464218,
0.013399397023022175,
-0.07304330170154572,
0.10453902184963226,
0.10408090054988861,
0.004034204874187708,
0.0484931506216526,
-0.15067404508590698,
-0.0481981597840786,
-0.002118509029969573,
0.04364287853240967,
0.04677823558449745,
0.09532519429922104,
-0.043945346027612686,
0.12515218555927277,
-0.07772374898195267,
0.10489488393068314,
0.06618107110261917,
-0.32874754071235657,
-0.004530530888587236,
0.08316631615161896,
0.03885381296277046,
0.06589966267347336,
-0.047089263796806335,
0.06937284022569656,
0.005859737750142813,
0.013350137509405613,
-0.05788182094693184,
-0.08119378238916397,
-0.1255422830581665,
0.009801261126995087,
-0.08105967193841934,
-0.04340551048517227,
0.2542620897293091,
-0.05059216171503067,
0.06067449599504471,
-0.0656115785241127,
-0.07710345834493637,
-0.02902464009821415,
-0.024503542110323906,
-0.035146862268447876,
-0.09369318187236786,
0.09860782325267792,
0.010594917461276054,
-0.12494485825300217,
-0.145245760679245,
-0.023930197581648827,
-0.19421972334384918,
0.16435126960277557,
0.04625420272350311,
0.05244724825024605,
-0.18732067942619324,
0.10304124653339386,
-0.008913652040064335,
-0.07977070659399033,
0.014797141775488853,
-0.09694359451532364,
0.010216453112661839,
0.016808059066534042,
-0.02086411602795124,
-0.025156542658805847,
0.07745898514986038,
0.12891444563865662,
0.00004231881757732481,
0.034813642501831055,
-0.0662292093038559,
0.06756161153316498,
0.02567332796752453,
0.10825815051794052,
0.022612037137150764,
-0.03695983439683914,
0.0543600432574749,
-0.13289658725261688,
0.0003456156118772924,
-0.052640389651060104,
-0.17682641744613647,
-0.04398692026734352,
0.04643689841032028,
0.08347684144973755,
0.024694370105862617,
0.12796539068222046,
-0.027344608679413795,
-0.025438150390982628,
0.06065140292048454,
-0.05152266100049019,
-0.002571935998275876,
0.008416506461799145,
0.026077182963490486,
0.13616250455379486,
0.024135781452059746,
0.03747151792049408,
-0.14115484058856964,
-0.006743944715708494,
-0.045005012303590775,
0.009026920422911644,
-0.02921948954463005,
-0.034071262925863266,
-0.0022851242683827877,
-0.023234898224473,
-0.007825467735528946,
-0.16597822308540344,
-0.1416633576154709,
0.007258973550051451,
-0.007606650702655315,
-0.03544910252094269,
-0.08493513613939285,
-0.07771256566047668,
0.000016128044080687687,
0.041524410247802734,
-0.07561145722866058,
-0.05681028962135315,
-0.04875912144780159,
0.10320088267326355,
-0.027043653652071953,
0.08135726302862167,
-0.13107402622699738,
0.06649387627840042,
-0.0971921980381012,
-0.035347338765859604,
-0.09616606682538986,
0.1425652652978897,
0.004925942048430443,
0.05553968623280525,
-0.020737728103995323,
-0.007824533618986607,
-0.10938935726881027,
0.0514569990336895,
-0.03859442099928856,
0.21443580090999603,
-0.08021975308656693,
-0.09122709184885025,
0.29997631907463074,
-0.07501388341188431,
-0.10645361244678497,
0.146603062748909,
0.008267637342214584,
0.09748817980289459,
0.13137155771255493,
0.20457427203655243,
0.048264794051647186,
-0.0434272363781929,
0.0758393257856369,
0.1204964816570282,
-0.09649709612131119,
-0.016085604205727577,
0.007510542869567871,
-0.04880551993846893,
-0.07689545303583145,
0.04305311292409897,
0.08835158497095108,
0.1053454801440239,
-0.029606284573674202,
-0.03827691450715065,
-0.00793145876377821,
0.020410949364304543,
0.09415218979120255,
-0.02630079910159111,
0.10203784704208374,
-0.026640290394425392,
-0.051213882863521576,
0.0149840097874403,
0.003108037170022726,
-0.04909482225775719,
0.050581831485033035,
-0.0831810012459755,
0.05915336683392525,
0.0069739301688969135,
0.07043217122554779,
-0.1290304809808731,
-0.08497918397188187,
-0.0267934687435627,
0.19829192757606506,
0.043735895305871964,
0.0846417024731636,
0.061415765434503555,
-0.07079658657312393,
-0.019038081169128418,
0.033433698117733,
0.17128723859786987,
-0.026496918871998787,
-0.048731978982686996,
-0.052571266889572144,
0.1105911061167717,
-0.05107888579368591,
0.08390311896800995,
-0.018963810056447983,
0.005593379493802786,
0.017321817576885223,
0.11519910395145416,
-0.010414700023829937,
0.02478976733982563,
-0.007532816845923662,
0.005199788138270378,
-0.04324079304933548,
0.0012344433926045895,
0.08463689684867859,
0.013806416653096676,
-0.06666860729455948,
0.24734631180763245,
-0.17140920460224152,
0.13489161431789398,
0.17597363889217377,
-0.23110240697860718,
-0.0019581886008381844,
-0.13899682462215424,
-0.022748297080397606,
0.0010994502808898687,
0.06339114904403687,
-0.05049740895628929,
0.2367849051952362,
-0.012976900674402714,
0.1689717322587967,
-0.04135878011584282,
-0.03612034395337105,
-0.041728634387254715,
-0.08062592893838882,
0.0036861449480056763,
0.04792128503322601,
0.07393036782741547,
-0.1476941555738449,
0.1739778220653534,
0.0920441672205925,
0.040607474744319916,
0.2426985800266266,
0.015538685023784637,
0.005618590395897627,
0.060238007456064224,
0.04446400701999664,
-0.04866103082895279,
-0.08897005766630173,
-0.30413708090782166,
-0.017991947010159492,
0.07410439848899841,
0.05682215839624405,
0.1251564621925354,
-0.11473546922206879,
-0.020947489887475967,
-0.020924463868141174,
-0.03886553272604942,
0.05410749837756157,
0.09831420332193375,
0.04837014153599739,
0.11166296899318695,
-0.0018620048649609089,
-0.017683498561382294,
0.09512189775705338,
0.023841580376029015,
-0.08888736367225647,
0.16612592339515686,
-0.16339044272899628,
-0.3781614601612091,
-0.13974779844284058,
-0.19261270761489868,
-0.04265710338950157,
0.04803602024912834,
0.11510367691516876,
-0.11700031906366348,
-0.01535590086132288,
0.032945580780506134,
0.09975352138280869,
-0.0677347481250763,
-0.01425881776958704,
-0.05309157446026802,
-0.00885091908276081,
-0.10862921923398972,
-0.09684374183416367,
-0.0554419681429863,
-0.018780255690217018,
-0.09257488697767258,
0.12362451106309891,
-0.1151009276509285,
0.004993419628590345,
0.2246890515089035,
0.032033756375312805,
0.051126234233379364,
-0.04438544437289238,
0.18008866906166077,
-0.11006742715835571,
-0.013279986567795277,
0.18470646440982819,
-0.05336553230881691,
0.06025557965040207,
0.14553877711296082,
-0.015943748876452446,
-0.07578377425670624,
0.026535406708717346,
-0.022583598271012306,
-0.07480581849813461,
-0.21811972558498383,
-0.1430991142988205,
-0.13643483817577362,
0.03930070623755455,
-0.008401614613831043,
0.05280989035964012,
0.15807944536209106,
0.05434555560350418,
-0.03155681490898132,
0.0003962343616876751,
0.05141033977270126,
0.08287377655506134,
0.3305858075618744,
-0.07853151857852936,
0.12463726103305817,
-0.029945218935608864,
-0.15685570240020752,
0.06471049040555954,
0.09696202725172043,
0.07804125547409058,
0.057417839765548706,
0.04805225878953934,
0.020212393254041672,
0.054654307663440704,
0.12396849691867828,
0.05915059149265289,
0.026364576071500778,
-0.040413111448287964,
-0.011877800337970257,
-0.028219839558005333,
-0.06187441572546959,
0.023459844291210175,
0.08508185297250748,
-0.17801736295223236,
0.01385518442839384,
-0.03506184369325638,
0.08414283394813538,
0.0356733575463295,
0.05376743897795677,
-0.13100947439670563,
-0.009704508818686008,
0.05851961672306061,
-0.04188619926571846,
-0.15881049633026123,
0.0835135206580162,
0.05062143877148628,
-0.1342308074235916,
0.04669904708862305,
-0.01238488219678402,
0.09384486079216003,
-0.11072138696908951,
0.06689167022705078,
-0.1031176969408989,
-0.05306755378842354,
0.016174400225281715,
0.11043624579906464,
-0.29466721415519714,
0.1740167737007141,
-0.00115074566565454,
-0.041968442499637604,
-0.11138812452554703,
0.0037507405504584312,
-0.005969899240881205,
0.08637157082557678,
0.08478371798992157,
0.007050010375678539,
0.05565581098198891,
-0.014485963620245457,
-0.05630644038319588,
0.03122037835419178,
0.10881545394659042,
0.021557247266173363,
-0.04311409965157509,
-0.06489518284797668,
0.0009302996913902462,
-0.01812508888542652,
-0.09202495962381363,
0.011582653038203716,
-0.21200592815876007,
0.06939895451068878,
0.08227502554655075,
0.09339870512485504,
0.036017678678035736,
-0.0015131470281630754,
-0.08046022057533264,
0.28355541825294495,
-0.01514371857047081,
-0.11095210164785385,
-0.08776222169399261,
-0.05545850843191147,
0.0510467104613781,
-0.06372584402561188,
0.05044619366526604,
-0.07027421146631241,
0.005243199411779642,
-0.06269629299640656,
-0.16376006603240967,
0.10823813080787659,
-0.07919973134994507,
0.0072368448600173,
-0.009041620418429375,
0.22434690594673157,
-0.04778369516134262,
0.007856917567551136,
0.04840030148625374,
-0.0162931140512228,
-0.09296243637800217,
-0.09350127726793289,
-0.004561987705528736,
0.03531398996710777,
-0.018417730927467346,
0.06340371817350388,
-0.04345627501606941,
-0.10483752936124802,
-0.05936082825064659,
-0.04419872909784317,
0.3643333911895752,
0.1182107999920845,
-0.04109514132142067,
0.1687132865190506,
0.11078139394521713,
-0.07129126042127609,
-0.2799833416938782,
-0.11310482025146484,
-0.054252177476882935,
-0.04543944075703621,
-0.10830116271972656,
-0.17942911386489868,
0.05295734480023384,
-0.014253041706979275,
-0.01725306175649166,
0.11593890935182571,
-0.2529161274433136,
-0.09281493723392487,
0.1783444732427597,
-0.057825807482004166,
0.3467212915420532,
-0.08669896423816681,
-0.10125041753053665,
-0.026234859600663185,
-0.15538635849952698,
0.1540445238351822,
0.06181206926703453,
0.11783913522958755,
0.008298605680465698,
0.16733960807323456,
0.05405496433377266,
-0.0056235576048493385,
0.08329874277114868,
-0.010435115545988083,
-0.048521704971790314,
-0.08905275166034698,
-0.052171844989061356,
-0.015298976562917233,
0.036144860088825226,
0.03567598760128021,
-0.010753481648862362,
0.0078004105016589165,
-0.09014461934566498,
-0.06014849618077278,
-0.09963097423315048,
0.04659081622958183,
0.05012621358036995,
-0.07654610276222229,
-0.0013666263548657298,
-0.07554060220718384,
-0.021616915240883827,
0.006709633395075798,
0.13721635937690735,
-0.11124393343925476,
0.15917561948299408,
0.09992200881242752,
0.1416095495223999,
-0.12433947622776031,
-0.013036562129855156,
-0.07228296250104904,
-0.06355747580528259,
0.07266012579202652,
-0.04648416116833687,
0.043751563876867294,
0.09114980697631836,
-0.04035567492246628,
0.10128161311149597,
0.07013093680143356,
-0.011765161529183388,
0.024743830785155296,
0.11504971235990524,
-0.2391365021467209,
-0.062350060790777206,
-0.06343024224042892,
-0.006275542546063662,
0.0955054759979248,
0.0760318860411644,
0.20273374021053314,
0.011449080891907215,
-0.039131049066782,
0.002981405472382903,
0.016601959243416786,
-0.06825700402259827,
0.08081790804862976,
-0.018527498468756676,
0.007923617027699947,
-0.15199829638004303,
0.052263129502534866,
0.0007627508020959795,
-0.09423220902681351,
0.04366471618413925,
0.14700400829315186,
-0.09913285821676254,
-0.11952448636293411,
-0.10050701349973679,
0.06556294858455658,
-0.10799887776374817,
-0.021151825785636902,
-0.012356490828096867,
-0.10413222014904022,
0.0528942234814167,
0.08915925025939941,
0.028708210214972496,
0.0804232582449913,
-0.08510109782218933,
-0.024114355444908142,
-0.019197797402739525,
-0.017695825546979904,
0.0025482457131147385,
-0.019458258524537086,
-0.06576509773731232,
0.09641585499048233,
-0.027039464563131332,
0.10620687156915665,
-0.08528754860162735,
-0.11711785197257996,
-0.1472659409046173,
0.04191901162266731,
-0.09441474080085754,
-0.08477459847927094,
-0.09001023322343826,
-0.02603667415678501,
0.021046645939350128,
-0.02929564379155636,
-0.035556092858314514,
-0.04023272171616554,
-0.1209835559129715,
0.03550612926483154,
-0.031249769032001495,
0.010624394752085209,
-0.07139571756124496,
0.026746222749352455,
0.07319457083940506,
-0.011136235669255257,
0.16898943483829498,
0.15410274267196655,
-0.10973960906267166,
0.10402756184339523,
-0.1526261419057846,
-0.08479295670986176,
0.15968307852745056,
0.022438211366534233,
0.03380751982331276,
0.08522970974445343,
0.02248934842646122,
0.08676344156265259,
0.05214877426624298,
0.05326434224843979,
0.05393591150641441,
-0.11169551312923431,
0.051425959914922714,
-0.052746523171663284,
-0.1270730197429657,
-0.04270023852586746,
-0.036033838987350464,
0.009593387134373188,
0.039658959954977036,
0.07637520134449005,
-0.07273444533348083,
0.06921412795782089,
-0.02444135770201683,
0.023275848478078842,
0.010560015216469765,
-0.14808449149131775,
0.016845114529132843,
-0.07787579298019409,
0.036221347749233246,
0.04197435826063156,
0.22432133555412292,
0.04136030375957489,
-0.03176167234778404,
0.0166415236890316,
0.05449698492884636,
0.027610480785369873,
-0.02587856724858284,
0.17170535027980804,
0.1054685190320015,
-0.059582047164440155,
-0.08795159310102463,
0.07042428106069565,
0.00888425949960947,
0.01855330355465412,
0.10187186300754547,
-0.024464629590511322,
-0.037014130502939224,
0.08028191328048706,
-0.0006886763731017709,
0.0038863150402903557,
-0.12411333620548248,
-0.176844984292984,
-0.058706048876047134,
0.05318469926714897,
-0.08184951543807983,
0.11718453466892242,
0.13637684285640717,
-0.012538219802081585,
0.0318407379090786,
-0.005514068063348532,
-0.06301331520080566,
-0.18574927747249603,
-0.16188988089561462,
-0.05522851645946503,
-0.1556403487920761,
0.009356112219393253,
-0.11325560510158539,
0.07434611022472382,
0.02121436595916748,
0.0747130885720253,
-0.06561796367168427,
0.11292757838964462,
0.029625307768583298,
-0.14503265917301178,
0.05398020148277283,
-0.025610653683543205,
0.11381079256534576,
-0.04818844795227051,
-0.0022087793331593275,
-0.0693063884973526,
0.02373659797012806,
0.027802184224128723,
0.05167250335216522,
-0.02985241636633873,
0.0055390577763319016,
-0.14679700136184692,
-0.058757469058036804,
-0.0659039095044136,
0.08153878152370453,
-0.008799954317510128,
0.15601693093776703,
0.025585444644093513,
-0.03140516206622124,
0.030907830223441124,
0.22191067039966583,
-0.07896777242422104,
-0.13624586164951324,
-0.07595217972993851,
0.2354908585548401,
-0.002703470177948475,
0.10654538869857788,
-0.0315970852971077,
-0.007784384768456221,
-0.08362192660570145,
0.3315871059894562,
0.27460333704948425,
-0.06194707006216049,
0.017402585595846176,
0.008082320913672447,
0.0458596907556057,
0.0933016687631607,
0.14064747095108032,
0.10891976952552795,
0.3195221722126007,
-0.04582390561699867,
-0.03818365931510925,
-0.013636874035000801,
-0.02408854104578495,
-0.07916776090860367,
0.04294764995574951,
0.021335329860448837,
-0.05505538359284401,
-0.02637339010834694,
0.0996452271938324,
-0.23682472109794617,
0.10475384443998337,
-0.14437559247016907,
-0.16107399761676788,
-0.06934002786874771,
-0.0028063636273145676,
0.10798190534114838,
0.018055329099297523,
0.0775778666138649,
0.011153331026434898,
-0.09664376825094223,
0.0774444192647934,
0.022426851093769073,
-0.2168358415365219,
-0.0038059591315686703,
0.07305153459310532,
-0.049515947699546814,
-0.04483931511640549,
-0.013283563777804375,
0.08322098106145859,
0.059881631284952164,
0.07564722001552582,
0.00569084333255887,
0.05272362753748894,
-0.015471779741346836,
-0.07028089463710785,
0.02591894194483757,
0.024406762793660164,
0.024364707991480827,
-0.08335559815168381,
0.06488372385501862,
-0.11200611293315887,
0.051462750881910324,
-0.014425575733184814,
-0.00493730790913105,
-0.028179099783301353,
0.018928376957774162,
-0.08098592609167099,
0.06525678932666779,
0.07840249687433243,
0.006584940943866968,
-0.007449488155543804,
-0.04284055903553963,
-0.02321813628077507,
-0.0018099277513101697,
-0.07982994616031647,
-0.10866571962833405,
-0.16242876648902893,
-0.12457398325204849,
0.10838225483894348,
-0.0004634626384358853,
-0.12750199437141418,
0.025837471708655357,
-0.09163425862789154,
0.06976454704999924,
-0.15301470458507538,
0.09677673876285553,
0.053894270211458206,
0.03923720866441727,
0.014077813364565372,
-0.06166689842939377,
0.05153769999742508,
0.07233135402202606,
-0.1194644570350647,
-0.052281711250543594
] |
null | null | transformers |
# its rick from rick and morty | {"tags": ["conversational", "humor"]} | text-generation | AJ/rick-discord-bot | [
"transformers",
"pytorch",
"gpt2",
"text-generation",
"conversational",
"humor",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #humor #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us
|
# its rick from rick and morty | [
"# its rick from rick and morty"
] | [
"TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #humor #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n",
"# its rick from rick and morty"
] | [
54,
10
] | [
"passage: TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #humor #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n# its rick from rick and morty"
] | [
0.03852466866374016,
0.07638455182313919,
-0.00804196298122406,
0.025431329384446144,
0.14205004274845123,
0.04462416470050812,
0.08385883271694183,
0.15388327836990356,
-0.0023061875253915787,
-0.04504092410206795,
0.19194179773330688,
0.2501746118068695,
-0.015831157565116882,
-0.053818173706531525,
-0.030070284381508827,
-0.3005756139755249,
0.016147004440426826,
0.03466860204935074,
-0.03770841658115387,
0.11477667093276978,
0.08919107168912888,
-0.03277997672557831,
0.06428268551826477,
-0.015601950697600842,
-0.08360777795314789,
0.025173094123601913,
0.04666002467274666,
-0.04073642939329147,
0.13320119678974152,
0.055055052042007446,
0.07366976886987686,
0.01383931189775467,
-0.05581017956137657,
-0.15532946586608887,
0.05310627445578575,
-0.00920192152261734,
-0.04691256582736969,
0.05433211475610733,
0.04304521158337593,
-0.09850995987653732,
0.14578799903392792,
0.13883353769779205,
-0.0340130440890789,
0.05998561531305313,
-0.17593033611774445,
-0.030664611607789993,
-0.023787055164575577,
0.040306903421878815,
0.0013412152184173465,
0.09171304851770401,
-0.03847541660070419,
0.1065441444516182,
-0.1088530570268631,
0.08591126650571823,
0.1612897664308548,
-0.2947259247303009,
-0.013313062489032745,
0.1282794177532196,
0.0536610446870327,
0.03366931527853012,
-0.11684709787368774,
0.081941619515419,
0.007258546072989702,
0.015306059271097183,
-0.06663376837968826,
-0.0980963185429573,
-0.0631638690829277,
0.0956476703286171,
-0.07481139153242111,
-0.0474880076944828,
0.21060983836650848,
-0.025398069992661476,
0.07492808252573013,
0.010982519015669823,
-0.06475310772657394,
-0.009509840048849583,
-0.0273150447756052,
-0.028056897222995758,
-0.08905678242444992,
0.08770878612995148,
-0.04108048975467682,
-0.08563815802335739,
-0.1598600447177887,
0.008710757829248905,
-0.12476819008588791,
0.1154005229473114,
0.01809682510793209,
0.05314653366804123,
-0.2026035487651825,
0.05435672402381897,
-0.02174135111272335,
-0.05795159190893173,
0.03735613077878952,
-0.06280606985092163,
0.08090531080961227,
0.02131621353328228,
-0.010941809043288231,
0.0264377873390913,
0.10140594840049744,
0.13053977489471436,
0.03247027471661568,
0.031079383566975594,
-0.06495862454175949,
0.08981308341026306,
0.07655400782823563,
0.046923670917749405,
0.012433771975338459,
0.0048412601463496685,
-0.0024172277189791203,
-0.10658197104930878,
0.01097379345446825,
-0.03271189332008362,
-0.17362040281295776,
0.04142738878726959,
0.036384280771017075,
0.05426347628235817,
0.02728576771914959,
0.123001828789711,
-0.023287607356905937,
-0.006524963770061731,
0.006453664042055607,
0.011349762789905071,
-0.03200341388583183,
0.026040585711598396,
0.018308449536561966,
0.23230598866939545,
-0.03259984776377678,
0.025700602680444717,
-0.08208078145980835,
0.04163059592247009,
-0.06920483708381653,
0.003355304477736354,
-0.0030490329954773188,
-0.04510962963104248,
0.033673372119665146,
-0.002297465456649661,
0.020316820591688156,
-0.13279496133327484,
-0.1285758763551712,
-0.011345705017447472,
-0.030544323846697807,
-0.030731698498129845,
-0.03741654008626938,
-0.08130133152008057,
-0.04827611520886421,
0.05019804835319519,
-0.023470070213079453,
0.028427522629499435,
-0.05212937667965889,
0.13535964488983154,
-0.07972638309001923,
0.05154862254858017,
-0.08728132396936417,
0.08293222635984421,
-0.09446290135383606,
-0.0321180634200573,
-0.07096629589796066,
0.015416320413351059,
0.02897734008729458,
0.047525279223918915,
0.023734072223305702,
-0.00018192542484030128,
-0.125588059425354,
0.07150162011384964,
-0.08894159644842148,
0.2190229445695877,
-0.1061244085431099,
-0.08066123723983765,
0.22976957261562347,
-0.027729857712984085,
-0.11580099165439606,
0.1171971932053566,
-0.018646515905857086,
0.10461350530385971,
0.07836756110191345,
0.15878765285015106,
0.004735590890049934,
0.02750406600534916,
0.10251691937446594,
0.09616363048553467,
-0.06951165199279785,
0.0573071651160717,
0.04062104597687721,
-0.03446846455335617,
-0.1459292769432068,
0.014146259054541588,
0.06721723824739456,
0.08262532204389572,
-0.05372205749154091,
-0.025859029963612556,
0.007324509788304567,
0.018378503620624542,
0.0973723754286766,
-0.0037374626845121384,
0.07740724831819534,
-0.0661802664399147,
-0.06152244284749031,
-0.09880691766738892,
0.03326847776770592,
-0.005463654641062021,
0.02052503637969494,
-0.054733362048864365,
0.09306041151285172,
0.020114131271839142,
0.06038229539990425,
-0.17115743458271027,
-0.03570196405053139,
-0.07809753715991974,
0.2234802544116974,
0.06192883849143982,
0.13247692584991455,
0.06721862405538559,
-0.06887312978506088,
-0.0031165168620646,
0.042681124061346054,
0.14160041511058807,
-0.019640929996967316,
-0.027976471930742264,
-0.11932548135519028,
0.12561523914337158,
-0.07400191575288773,
0.035755958408117294,
-0.008011465892195702,
-0.004276363644748926,
0.02329958789050579,
0.10663145780563354,
-0.02724856697022915,
0.024151135236024857,
-0.013293814845383167,
-0.05266979709267616,
-0.05931111052632332,
-0.023170096799731255,
0.08931368589401245,
-0.0002938031393568963,
-0.08447109907865524,
0.25022050738334656,
-0.22031019628047943,
0.09352705627679825,
0.20427055656909943,
-0.3205019533634186,
-0.016051050275564194,
-0.0922890305519104,
-0.04378342255949974,
0.021021850407123566,
0.06879643350839615,
-0.06062554568052292,
0.1485501080751419,
-0.0551014207303524,
0.1308283507823944,
-0.03795909136533737,
-0.055333465337753296,
-0.04543362557888031,
-0.02739003486931324,
-0.04505503922700882,
0.12318070977926254,
0.10151809453964233,
-0.1495051085948944,
0.22277404367923737,
0.2785433828830719,
0.07963196933269501,
0.21326710283756256,
0.005908566061407328,
0.024216311052441597,
0.029892798513174057,
-0.028931286185979843,
-0.06905978918075562,
-0.023248538374900818,
-0.21614624559879303,
-0.002030043164268136,
0.0394812673330307,
-0.011065910570323467,
0.08015963435173035,
-0.10965251922607422,
-0.07472113519906998,
-0.03874165937304497,
0.02467391826212406,
0.06330688297748566,
0.13388366997241974,
0.019683755934238434,
0.13371089100837708,
0.037370506674051285,
-0.03178980201482773,
0.11085950583219528,
0.037374138832092285,
-0.08664947748184204,
0.14646846055984497,
-0.14965525269508362,
-0.24210812151432037,
-0.10972876101732254,
-0.14644815027713776,
-0.0008271816186606884,
0.030191238969564438,
0.09973517805337906,
-0.15816563367843628,
-0.011340632103383541,
0.029096154496073723,
0.11334270238876343,
-0.17974978685379028,
-0.01004212349653244,
-0.054728250950574875,
0.004480636212974787,
-0.14621089398860931,
-0.04388223588466644,
-0.04617014154791832,
-0.04719383642077446,
-0.05669913440942764,
0.11757487803697586,
-0.10664023458957672,
-0.011160621419548988,
0.18504852056503296,
0.06666932255029678,
0.058473411947488785,
-0.058656301349401474,
0.20879194140434265,
-0.0813475027680397,
0.05216445028781891,
0.19158126413822174,
-0.07440689206123352,
0.08289844542741776,
0.0622672401368618,
0.025517450645565987,
-0.023355571553111076,
0.03269851580262184,
0.025920532643795013,
-0.07592502236366272,
-0.20576244592666626,
-0.05911633372306824,
-0.09611918032169342,
0.12558205425739288,
-0.0006624383386224508,
0.08410937339067459,
0.16553746163845062,
0.05748554691672325,
-0.06809712946414948,
-0.021324023604393005,
0.02075033262372017,
0.06537019461393356,
0.2606557011604309,
-0.0801970362663269,
0.10261762887239456,
-0.02536134608089924,
-0.13592588901519775,
0.07320364564657211,
0.05477122217416763,
-0.026051055639982224,
0.15065652132034302,
0.08051273971796036,
0.0425892174243927,
0.07489573210477829,
0.08930492401123047,
0.020953509956598282,
0.0018421674612909555,
-0.04268163442611694,
-0.057402435690164566,
-0.03261680528521538,
-0.028354166075587273,
0.042788516730070114,
0.0542343445122242,
-0.1482933908700943,
0.0250739473849535,
-0.03882184624671936,
0.06992923468351364,
-0.034847620874643326,
0.05514800176024437,
-0.09367462992668152,
-0.014029698446393013,
0.09539560228586197,
-0.005165755283087492,
-0.07534601539373398,
0.11047110706567764,
-0.0017413817113265395,
-0.12010759115219116,
-0.04020383581519127,
-0.04824667423963547,
0.10273785889148712,
-0.04158481955528259,
0.10293369740247726,
-0.13484306633472443,
-0.08812467008829117,
0.001746890600770712,
0.11668103188276291,
-0.3134322166442871,
0.17274770140647888,
0.009498284198343754,
-0.07772805541753769,
-0.08249492198228836,
-0.04895156994462013,
0.0642322525382042,
-0.0015093820402398705,
0.14296142756938934,
0.0026915096677839756,
-0.12393949925899506,
-0.02996845543384552,
0.024767190217971802,
0.019227944314479828,
0.1516185849905014,
-0.0929122045636177,
-0.01669519953429699,
-0.10028020292520523,
0.017830740660429,
-0.020132148638367653,
-0.014805134385824203,
0.015580661594867706,
-0.15140874683856964,
0.09030109643936157,
0.07254256308078766,
0.052612438797950745,
0.04787379503250122,
0.0035857881885021925,
-0.15661713480949402,
0.15769562125205994,
-0.14881016314029694,
-0.06664562970399857,
-0.11038212478160858,
0.036777615547180176,
-0.015449635684490204,
-0.04821775108575821,
-0.03991515189409256,
-0.1063995510339737,
0.05350463464856148,
-0.07974543422460556,
-0.18573835492134094,
0.09975690394639969,
-0.07488416135311127,
-0.08039548993110657,
-0.06524133682250977,
0.23523962497711182,
-0.02047588862478733,
0.06342043727636337,
0.015308802947402,
0.0038036424666643143,
-0.11038067936897278,
-0.0937284305691719,
0.05935080721974373,
-0.09939993172883987,
0.01690923050045967,
-0.005420522764325142,
-0.07283397763967514,
0.08734001964330673,
-0.0810072049498558,
-0.036499619483947754,
0.3037365972995758,
0.1560119092464447,
-0.044651154428720474,
0.1300746649503708,
0.05527808517217636,
-0.06401475518941879,
-0.3151842951774597,
-0.13209675252437592,
-0.1563139259815216,
-0.07912035286426544,
-0.025214066728949547,
-0.17304782569408417,
0.05781999230384827,
-0.0699504166841507,
-0.017367511987686157,
0.07147567719221115,
-0.24156764149665833,
-0.06686829775571823,
0.20476758480072021,
-0.003655302571132779,
0.4450061321258545,
-0.1441960632801056,
-0.08993705362081528,
0.005830775946378708,
-0.09232454001903534,
0.19345854222774506,
0.005300640594214201,
0.10451208800077438,
-0.03632868453860283,
0.233168825507164,
0.03680623695254326,
0.016030091792345047,
0.05193999782204628,
-0.033726487308740616,
-0.016332712024450302,
-0.09400305896997452,
-0.13491599261760712,
-0.018793979659676552,
0.017996713519096375,
-0.05699889734387398,
-0.10775710642337799,
0.019273368641734123,
-0.14005336165428162,
-0.00354175828397274,
-0.12364073097705841,
0.01795027032494545,
-0.012820661067962646,
-0.06942808628082275,
-0.043069399893283844,
-0.041824933141469955,
-0.060989730060100555,
0.004225935786962509,
0.22820532321929932,
-0.10514502227306366,
0.2001085728406906,
-0.08233243227005005,
0.0921311303973198,
-0.023854613304138184,
-0.050208285450935364,
-0.08228811621665955,
-0.05983882024884224,
0.046989645808935165,
-0.146224707365036,
0.05286794528365135,
0.1148066520690918,
-0.01726064458489418,
0.11839096993207932,
0.11734794080257416,
-0.044592052698135376,
-0.0027059430722147226,
0.0936732217669487,
-0.27623048424720764,
-0.07206075638532639,
-0.08309505134820938,
0.05490207299590111,
0.10696850717067719,
-0.008192134089767933,
0.20547005534172058,
0.04274365305900574,
-0.050672926008701324,
0.047000329941511154,
0.021264836192131042,
0.006582393776625395,
-0.04167640209197998,
0.0421469509601593,
0.025888219475746155,
-0.10757946223020554,
0.04130282998085022,
-0.011399772949516773,
-0.19439442455768585,
0.018577564507722855,
0.2185600847005844,
-0.06826391071081161,
-0.13159048557281494,
-0.06293843686580658,
0.16981492936611176,
-0.14568054676055908,
0.013220899738371372,
-0.04010538384318352,
-0.10125470906496048,
0.07887859642505646,
0.18179266154766083,
0.047692976891994476,
0.10640823096036911,
-0.059121523052453995,
-0.03014150820672512,
0.017189746722579002,
0.013372214511036873,
-0.027647899463772774,
-0.0566008985042572,
-0.006810992024838924,
0.007866976782679558,
-0.004871465265750885,
0.14248277246952057,
-0.0775960385799408,
-0.11326347291469574,
-0.146576926112175,
0.008063706569373608,
-0.04007617011666298,
-0.0780322253704071,
-0.07774820923805237,
-0.06964321434497833,
0.03811788558959961,
-0.04113418981432915,
-0.03895139694213867,
-0.057377588003873825,
-0.10012773424386978,
0.02678808942437172,
-0.010845331475138664,
0.03546791523694992,
-0.07550520449876785,
-0.0028292369097471237,
0.10852257907390594,
-0.02893882989883423,
0.10843496769666672,
0.13618922233581543,
-0.06884622573852539,
0.13938021659851074,
-0.22486582398414612,
-0.05661274492740631,
0.0456649512052536,
-0.011614203453063965,
-0.005340887699276209,
0.13481192290782928,
-0.016708530485630035,
0.016025912016630173,
0.06588620692491531,
0.0499204583466053,
0.0575750432908535,
-0.07237166166305542,
0.08248845487833023,
0.02869183011353016,
-0.13992702960968018,
-0.036985427141189575,
-0.06627164781093597,
0.03551105782389641,
-0.010661186650395393,
0.11473885923624039,
-0.05706535279750824,
0.09944476932287216,
-0.04748593643307686,
0.06617267429828644,
0.021689102053642273,
-0.1405400037765503,
-0.06362463533878326,
-0.08894424885511398,
0.008254176005721092,
0.009199838154017925,
0.10395919531583786,
-0.023336220532655716,
-0.007153419312089682,
0.0767485722899437,
0.12345770001411438,
0.010143695399165154,
-0.025390392169356346,
0.08321934193372726,
0.08059845864772797,
-0.12084615975618362,
-0.15410499274730682,
0.07651075720787048,
0.01905435137450695,
0.0032185784075409174,
0.15175499022006989,
0.012508104555308819,
0.061889857053756714,
0.06683824956417084,
-0.018185114488005638,
0.04759708046913147,
-0.029394030570983887,
-0.08593418449163437,
0.02540961094200611,
-0.006841872353106737,
-0.04040265083312988,
0.19249776005744934,
0.16190160810947418,
0.012241101823747158,
-0.0077154566533863544,
-0.0976983904838562,
-0.009989587590098381,
-0.1497613489627838,
-0.15116256475448608,
-0.04066076874732971,
-0.10245274007320404,
-0.01746685430407524,
-0.06576201319694519,
0.03454512357711792,
0.06474875658750534,
0.08834253996610641,
-0.08150755614042282,
0.04440463334321976,
0.042938314378261566,
-0.10887748003005981,
0.0435013547539711,
-0.023971648886799812,
0.07735687494277954,
-0.05203099548816681,
0.006774259731173515,
-0.06373833119869232,
-0.0320003367960453,
0.003889692947268486,
0.0573917031288147,
0.003500708844512701,
-0.02360861748456955,
-0.17719197273254395,
-0.0945310890674591,
-0.04770077019929886,
0.044275928288698196,
-0.05769798159599304,
0.16883116960525513,
-0.010606188327074051,
0.04581283777952194,
0.03658079728484154,
0.1989154815673828,
-0.01740572229027748,
0.0165546927601099,
-0.042604003101587296,
0.18374992907047272,
-0.012170298025012016,
0.07368237525224686,
-0.06690764427185059,
0.012513808906078339,
-0.050581738352775574,
0.3366371989250183,
0.2638922333717346,
-0.09671011567115784,
0.012402046471834183,
0.00489403260871768,
0.05552002042531967,
0.14006243646144867,
0.04542086645960808,
0.10512145608663559,
0.18944357335567474,
-0.0997040867805481,
-0.049118947237730026,
-0.034803081303834915,
-0.006601903587579727,
0.009042901918292046,
0.08626538515090942,
0.05905969813466072,
-0.04227268323302269,
-0.05450480058789253,
0.09366461634635925,
-0.24192409217357635,
0.05171479657292366,
-0.09220635145902634,
-0.15970641374588013,
-0.023473327979445457,
0.0027836065273731947,
0.1140294000506401,
0.0049947649240493774,
0.08964583277702332,
0.005972016602754593,
-0.07841255515813828,
-0.015470105223357677,
0.017733918502926826,
-0.2517586946487427,
0.022679757326841354,
0.0693851038813591,
-0.07761871069669724,
0.04364785552024841,
-0.015277747064828873,
0.022864334285259247,
0.10242921113967896,
0.027657870203256607,
-0.004171887878328562,
0.015050863847136497,
0.04732297360897064,
-0.08892321586608887,
-0.04637456312775612,
0.07634338736534119,
0.03675602748990059,
-0.07102856040000916,
0.10102816671133041,
-0.11653777211904526,
0.05621613934636116,
0.015012363903224468,
-0.10748303681612015,
0.038515910506248474,
0.08658736944198608,
-0.0558541975915432,
0.04738405719399452,
0.07096917182207108,
0.01697503961622715,
-0.03813799098134041,
-0.05338970944285393,
-0.05067232623696327,
-0.025883372873067856,
-0.08237330615520477,
-0.09689079970121384,
-0.07813878357410431,
-0.08495413511991501,
0.011364716105163097,
-0.030976712703704834,
-0.2835264503955841,
-0.0012092754477635026,
-0.10321836173534393,
0.07417993247509003,
-0.15772326290607452,
0.06724639236927032,
0.05207255482673645,
0.031543802469968796,
0.014607665129005909,
0.02502719685435295,
0.044483281672000885,
0.06666667759418488,
-0.06855859607458115,
-0.06433185935020447
] |
null | null | null | # uses dialogpt | {"tags": ["conversational", "funny"]} | text-generation | AJ/rick-sanchez-bot | [
"conversational",
"funny",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#conversational #funny #region-us
| # uses dialogpt | [
"# uses dialogpt"
] | [
"TAGS\n#conversational #funny #region-us \n",
"# uses dialogpt"
] | [
13,
5
] | [
"passage: TAGS\n#conversational #funny #region-us \n# uses dialogpt"
] | [
0.07385839521884918,
-0.0047294748947024345,
-0.009313338436186314,
-0.06386205554008484,
0.08056927472352982,
0.02538396790623665,
0.13112153112888336,
0.13084901869297028,
0.14170488715171814,
-0.05958421155810356,
0.09760454297065735,
0.10135143250226974,
-0.023063361644744873,
0.056958794593811035,
0.009006218984723091,
-0.16485120356082916,
0.03321466222405434,
-0.06382259726524353,
0.18239253759384155,
0.06555375456809998,
0.028515750542283058,
-0.020332304760813713,
-0.0044088405556976795,
-0.03622989356517792,
-0.024809908121824265,
0.15519508719444275,
0.03619695082306862,
0.010937996208667755,
0.15120993554592133,
0.016117796301841736,
0.10263898968696594,
-0.031720779836177826,
-0.1404065489768982,
-0.2621850073337555,
0.023514308035373688,
-0.028260501101613045,
-0.034689221531152725,
0.0021520189475268126,
0.009245606139302254,
-0.0653187707066536,
0.05562308803200722,
0.19307774305343628,
0.0264362171292305,
0.12135551124811172,
-0.22242873907089233,
-0.0771646574139595,
0.008877790533006191,
-0.01808846741914749,
0.03515719622373581,
0.009208198636770248,
-0.07188568264245987,
0.15967176854610443,
-0.22648772597312927,
0.022296378389000893,
0.0230327770113945,
-0.25281593203544617,
0.03128199279308319,
0.21198934316635132,
0.020510418340563774,
0.14056387543678284,
-0.10932650417089462,
0.034457381814718246,
0.0060719698667526245,
-0.0243154875934124,
-0.25681400299072266,
-0.04471399262547493,
-0.09513840824365616,
0.12920331954956055,
-0.041955556720495224,
-0.046074096113443375,
0.3047405481338501,
0.05947047099471092,
0.0711350068449974,
0.0026024512480944395,
-0.04867585748434067,
0.008090882562100887,
-0.015896501019597054,
-0.08569933474063873,
-0.04969586059451103,
0.16733990609645844,
0.01838364079594612,
-0.08628055453300476,
-0.1757272630929947,
0.08029782772064209,
-0.14522643387317657,
0.0531638041138649,
0.0073264362290501595,
0.09409114718437195,
-0.2983967065811157,
-0.06073923408985138,
-0.12026094645261765,
-0.0021176773589104414,
0.04547688737511635,
-0.09124772995710373,
-0.008278634399175644,
0.00007894905866123736,
0.008962131105363369,
0.0483676940202713,
0.10939063876867294,
0.08705075085163116,
0.03728508949279785,
0.07115884125232697,
-0.11564213782548904,
0.13377389311790466,
0.10728824138641357,
0.058454230427742004,
0.11246060580015182,
-0.00021297315834090114,
-0.09161923080682755,
-0.1662180870771408,
0.014725119806826115,
-0.03784579038619995,
-0.1301717609167099,
0.0906311571598053,
-0.09769011288881302,
0.09120719879865646,
0.014385475777089596,
0.03858089819550514,
-0.1121855229139328,
0.045515481382608414,
0.016391724348068237,
0.043770454823970795,
-0.06732833385467529,
0.03725700452923775,
-0.0033170939423143864,
0.15661479532718658,
-0.08903562277555466,
0.05484253168106079,
0.04773817956447601,
-0.031241964548826218,
-0.09421695023775101,
0.03252222761511803,
-0.010384168475866318,
0.04469342157244682,
0.03487507253885269,
0.12449979782104492,
-0.022497758269309998,
-0.10886848717927933,
0.007938931696116924,
-0.03908992186188698,
-0.06714534014463425,
-0.03163400664925575,
0.061274465173482895,
-0.11056618392467499,
0.06383007019758224,
-0.0008249885868281126,
-0.013271987438201904,
-0.1260230988264084,
-0.04844484478235245,
0.11337213963270187,
-0.020002059638500214,
0.11334197968244553,
-0.11833009123802185,
0.03370623290538788,
-0.10858891159296036,
0.02740495838224888,
-0.10673663765192032,
0.030802136287093163,
0.02776615135371685,
0.03158486261963844,
0.07816782593727112,
0.08884742110967636,
-0.2773945927619934,
0.035850558429956436,
-0.1269455850124359,
0.2828383445739746,
-0.12188851833343506,
0.00004540824011201039,
0.31193283200263977,
-0.017841367051005363,
-0.10225629806518555,
0.07363980263471603,
-0.054007962346076965,
0.16688448190689087,
0.10474040359258652,
0.38046854734420776,
-0.12950819730758667,
-0.09952352195978165,
0.1257334202528,
0.22479166090488434,
-0.134318009018898,
0.0972781702876091,
0.06509027630090714,
-0.17302297055721283,
-0.11383998394012451,
-0.02148459479212761,
0.19155918061733246,
0.11524748802185059,
-0.054982639849185944,
-0.08621110767126083,
0.0434427335858345,
0.024785183370113373,
0.2228877693414688,
0.009065303951501846,
0.0019444393692538142,
-0.08702877163887024,
0.028175802901387215,
-0.012282061390578747,
0.053609058260917664,
0.11061818152666092,
-0.01831473596394062,
-0.11166822165250778,
0.005694085266441107,
0.05242675915360451,
0.06171547994017601,
-0.10907616466283798,
-0.1722249835729599,
-0.10743207484483719,
0.2500523626804352,
0.08764440566301346,
0.25659850239753723,
0.11115624755620956,
-0.14582042396068573,
-0.004462496843189001,
0.05953865870833397,
0.06849228590726852,
0.0105386758223176,
0.03736894577741623,
-0.039366915822029114,
0.14864730834960938,
-0.10495629906654358,
0.14694510400295258,
0.026873702183365822,
-0.0780995637178421,
0.00025936419842764735,
0.09873192012310028,
0.07047893851995468,
-0.038893312215805054,
0.0162107702344656,
-0.046735312789678574,
0.06750642508268356,
-0.06545040011405945,
0.08600743114948273,
0.0005440769600681961,
-0.024840379133820534,
0.24024610221385956,
-0.1604921817779541,
0.00018349933088757098,
0.13686193525791168,
-0.23363852500915527,
-0.04227587580680847,
-0.20580042898654938,
-0.05599179491400719,
-0.01782108098268509,
0.11657126247882843,
-0.11650428920984268,
0.10054393112659454,
-0.06659967452287674,
-0.015234554186463356,
0.01378072239458561,
-0.016201477497816086,
-0.11575477570295334,
-0.024871140718460083,
-0.08163345605134964,
0.0832115039229393,
0.08031466603279114,
-0.138765349984169,
0.1791764348745346,
0.272563636302948,
0.22559989988803864,
0.2961620092391968,
-0.033791251480579376,
-0.020951950922608376,
-0.007267318200320005,
0.09090210497379303,
-0.10694880038499832,
0.014332478865981102,
-0.3920407295227051,
0.02150464430451393,
0.012721842154860497,
-0.023667527362704277,
0.11329707503318787,
-0.10226518660783768,
-0.09735438972711563,
-0.04398088529706001,
0.028072750195860863,
0.00539504736661911,
0.09479136019945145,
0.02969570830464363,
0.08582144230604172,
0.09712819755077362,
-0.09721259772777557,
0.147546648979187,
0.01741727441549301,
-0.08751990646123886,
0.02430279739201069,
-0.1874409168958664,
-0.2094186395406723,
-0.06414711475372314,
-0.1282636970281601,
0.0371621772646904,
0.04163561761379242,
0.06879187375307083,
-0.17956088483333588,
0.01190132461488247,
0.09527280181646347,
0.09704964607954025,
-0.1565307229757309,
-0.08186569064855576,
-0.04262904077768326,
0.001628675265237689,
-0.15654562413692474,
-0.05436497554183006,
-0.009983430616557598,
-0.05248327553272247,
-0.012349330820143223,
0.031199151650071144,
-0.12235238403081894,
-0.01667674258351326,
0.23757056891918182,
0.12439672648906708,
0.05967574194073677,
-0.05987745150923729,
0.2767314910888672,
-0.12214063853025436,
-0.056425485759973526,
0.04268600046634674,
-0.09500937163829803,
0.041360508650541306,
0.22053740918636322,
0.019618714228272438,
-0.044591885060071945,
0.04744404926896095,
-0.007674939464777708,
-0.060525503009557724,
-0.20602217316627502,
-0.08217734843492508,
-0.08815150707960129,
0.15574683248996735,
-0.14531844854354858,
0.0791226178407669,
0.17727136611938477,
-0.047866009175777435,
0.0138627290725708,
-0.1888328194618225,
0.024248989298939705,
0.00499705458059907,
0.3261169195175171,
-0.18417750298976898,
0.012176504358649254,
-0.037359967827796936,
-0.12005677819252014,
0.06404811888933182,
0.04172578826546669,
-0.13458772003650665,
0.24588491022586823,
0.13687549531459808,
0.102745920419693,
0.10899491608142853,
0.06940774619579315,
-0.08591895550489426,
0.031937386840581894,
-0.09892570972442627,
-0.029234599322080612,
-0.03289545327425003,
-0.03895009309053421,
0.03266092762351036,
0.22187234461307526,
-0.2544800341129303,
0.13405348360538483,
-0.1346282809972763,
0.13526248931884766,
-0.16508986055850983,
0.07437234371900558,
0.08621840178966522,
0.006917504593729973,
0.08086284250020981,
-0.0026658407878130674,
-0.04854621738195419,
0.12549228966236115,
0.14797300100326538,
-0.10953962057828903,
-0.1271759420633316,
0.04249242693185806,
0.0634378120303154,
-0.00781507883220911,
0.07395771145820618,
-0.23835474252700806,
-0.14517389237880707,
0.015266873873770237,
0.08702507615089417,
-0.2063007801771164,
0.16112293303012848,
0.04048982635140419,
-0.15615887939929962,
-0.07349365204572678,
-0.10626871138811111,
-0.030200039967894554,
-0.024911273270845413,
0.0436241514980793,
0.06253645569086075,
-0.019546348601579666,
-0.019354553893208504,
0.015717200934886932,
-0.008455384522676468,
0.19654303789138794,
0.03509732708334923,
-0.13382688164710999,
-0.08645594120025635,
0.015539434738457203,
-0.029699556529521942,
0.042578279972076416,
0.007902120240032673,
-0.12344450503587723,
0.05430179461836815,
0.10609856247901917,
0.06226383522152901,
0.07450957596302032,
0.10917913913726807,
-0.04045945405960083,
0.10027305781841278,
0.05554776266217232,
0.025963254272937775,
-0.06570716202259064,
-0.10193996131420135,
-0.016004491597414017,
-0.00973576307296753,
-0.0035596913658082485,
-0.06670539081096649,
0.008522196672856808,
-0.121699757874012,
-0.11991193145513535,
0.10859746485948563,
-0.0672534927725792,
0.09187933802604675,
-0.039556361734867096,
0.22738942503929138,
0.008671335875988007,
0.1073969155550003,
0.04931994900107384,
-0.03793073073029518,
-0.030678408220410347,
-0.04806709662079811,
0.05551638826727867,
-0.16142302751541138,
-0.09046252816915512,
0.049466609954833984,
0.07872297614812851,
-0.08367609977722168,
-0.060724031180143356,
-0.02769080363214016,
0.3052840828895569,
0.1810266226530075,
-0.03392627090215683,
0.1756814420223236,
0.14272624254226685,
0.009199737571179867,
-0.18052910268306732,
-0.07217074185609818,
-0.18656687438488007,
-0.1469721794128418,
0.09942209720611572,
-0.11063604801893234,
0.024443574249744415,
-0.07010871917009354,
-0.056899916380643845,
0.19260087609291077,
-0.3373572528362274,
-0.0359998419880867,
0.16316737234592438,
-0.06425741314888,
0.5022969841957092,
-0.05527773126959801,
-0.18134963512420654,
0.08311107009649277,
-0.160373717546463,
0.10708492249250412,
0.04340098053216934,
0.06217072159051895,
0.06736541539430618,
0.21873249113559723,
0.057333651930093765,
0.050963737070560455,
0.13624225556850433,
-0.06306003034114838,
-0.038333598524332047,
-0.09643395245075226,
-0.22748659551143646,
-0.07563617080450058,
0.036929335445165634,
-0.11139752715826035,
0.07522403448820114,
-0.037750158458948135,
-0.15113121271133423,
0.006173867266625166,
-0.15739348530769348,
-0.04528980329632759,
0.022356363013386726,
-0.057032082229852676,
-0.06299892067909241,
-0.07255640625953674,
-0.11421681195497513,
0.018704410642385483,
0.19714359939098358,
-0.15016302466392517,
0.2650112807750702,
-0.030171280726790428,
0.036617428064346313,
-0.028529522940516472,
-0.13076235353946686,
-0.10195792466402054,
-0.06310436129570007,
0.05324222892522812,
-0.05561940371990204,
0.00821581482887268,
0.08874616026878357,
-0.011596771888434887,
0.19752956926822662,
0.038945380598306656,
-0.061853084713220596,
0.06608135253190994,
0.1391814798116684,
-0.21471552550792694,
-0.18906773626804352,
-0.006989393848925829,
0.09527349472045898,
0.14381374418735504,
-0.053371284157037735,
0.11738774925470352,
0.08544933795928955,
-0.05147155374288559,
0.07358855754137039,
0.03128547966480255,
-0.06041701138019562,
-0.16063369810581207,
0.09486689418554306,
0.016140324994921684,
-0.10817956924438477,
0.05770372226834297,
0.01327788271009922,
-0.21907149255275726,
-0.06249060481786728,
0.20107974112033844,
-0.0060743000358343124,
-0.09686136990785599,
-0.17789386212825775,
0.10109110176563263,
0.01119896862655878,
-0.002569514559581876,
0.07805391401052475,
0.02415134757757187,
-0.004255061969161034,
0.14369292557239532,
-0.019096270203590393,
0.11867854744195938,
0.02631440758705139,
-0.0031643661204725504,
0.20177286863327026,
-0.05159372091293335,
-0.10807368904352188,
-0.06485774368047714,
0.022165417671203613,
-0.011451340280473232,
-0.014489767141640186,
0.06793784350156784,
-0.08896911144256592,
-0.196573406457901,
-0.23038305342197418,
0.048425160348415375,
-0.049130793660879135,
-0.11612126976251602,
-0.11654175072908401,
-0.06296698749065399,
0.08112888038158417,
-0.027774907648563385,
-0.024575890973210335,
-0.06497593224048615,
-0.13532257080078125,
0.07896116375923157,
0.07712087035179138,
0.06643560528755188,
-0.09213445335626602,
0.04804430902004242,
0.18111306428909302,
0.016612814739346504,
0.1309753954410553,
0.18385592103004456,
-0.10347826778888702,
0.15467487275600433,
-0.3073284924030304,
-0.11381962150335312,
0.15730489790439606,
-0.029416127130389214,
0.009042673744261265,
0.26987969875335693,
-0.08454745262861252,
0.004065472166985273,
0.0688854455947876,
0.052963875234127045,
0.04980979114770889,
-0.09119326621294022,
0.08553994446992874,
0.07639586925506592,
-0.2242564558982849,
-0.01026236917823553,
-0.1569741666316986,
0.06028258800506592,
-0.06418070197105408,
0.06169956550002098,
0.0010316669940948486,
0.06452048569917679,
0.049123335629701614,
0.024094223976135254,
0.028080850839614868,
-0.060671545565128326,
0.04460363835096359,
-0.08576171845197678,
0.002754883375018835,
0.025785602629184723,
0.16633476316928864,
-0.06585841625928879,
-0.003680136986076832,
0.08514666557312012,
0.11742286384105682,
-0.032558586448431015,
-0.02852792665362358,
0.029644520953297615,
0.08885367959737778,
-0.09868340194225311,
-0.1535501629114151,
0.06312879920005798,
-0.02652651257812977,
-0.03120454028248787,
0.12664060294628143,
0.008880283683538437,
-0.015315004624426365,
0.05997735634446144,
-0.013612001203000546,
0.03673065826296806,
0.04840140417218208,
-0.19765739142894745,
0.007404863368719816,
-0.043792709708213806,
-0.11379294842481613,
0.13083231449127197,
0.13991230726242065,
0.03087041527032852,
0.0036120889708399773,
-0.15170346200466156,
0.012327023781836033,
-0.09369196742773056,
0.029075054451823235,
0.035659972578287125,
-0.1890859752893448,
0.02712320163846016,
-0.02630798891186714,
0.0790087878704071,
0.17154334485530853,
0.057721685618162155,
-0.11476276069879532,
0.14427237212657928,
-0.04142174497246742,
-0.17463386058807373,
-0.09259352833032608,
-0.02640308067202568,
0.14312314987182617,
-0.1439310908317566,
-0.052523113787174225,
-0.0947347953915596,
-0.03870175778865814,
-0.04473097249865532,
0.06707677245140076,
0.00772460550069809,
-0.11377424746751785,
-0.22540149092674255,
-0.038602519780397415,
-0.018419502303004265,
0.08254366368055344,
-0.13246750831604004,
0.24241194128990173,
0.02488742582499981,
0.1044670045375824,
0.02571847289800644,
0.2232324182987213,
0.004606427159160376,
0.04482937231659889,
-0.07667658478021622,
0.04974998161196709,
-0.10724087059497833,
0.1361718773841858,
-0.11919638514518738,
-0.04883803427219391,
-0.09508364647626877,
0.20273365080356598,
0.185658797621727,
-0.06305177509784698,
0.012716374360024929,
-0.031741973012685776,
0.06187316030263901,
0.0907483622431755,
0.10284225642681122,
0.036436233669519424,
0.29128867387771606,
-0.06413459777832031,
0.022716954350471497,
0.04817592725157738,
-0.02662774920463562,
0.03996160998940468,
-0.07223813235759735,
0.05631314590573311,
-0.04143843427300453,
-0.08105630427598953,
0.19594551622867584,
-0.2865764796733856,
0.030545126646757126,
-0.08641742914915085,
-0.16065391898155212,
-0.038774117827415466,
-0.12318918853998184,
0.18085581064224243,
-0.012813616544008255,
0.15145088732242584,
0.00667613698169589,
-0.12906798720359802,
-0.10900518298149109,
0.01879233866930008,
-0.30169856548309326,
-0.15183459222316742,
0.09601356834173203,
-0.07631544768810272,
0.01398130040615797,
0.005937994923442602,
0.047268547117710114,
0.024260496720671654,
0.049853309988975525,
0.037520330399274826,
0.0571511946618557,
0.11408590525388718,
-0.07570350170135498,
-0.20797134935855865,
0.017681332305073738,
0.018833233043551445,
-0.032971397042274475,
0.08113934844732285,
-0.20312801003456116,
0.03351134434342384,
0.1791677623987198,
-0.013562616892158985,
-0.009139114059507847,
0.10975240916013718,
-0.09895157068967819,
0.024354005232453346,
0.016409825533628464,
0.032971467822790146,
-0.04253929853439331,
0.040583398193120956,
-0.03960179165005684,
-0.010717512108385563,
-0.19971157610416412,
-0.21085067093372345,
-0.0012429776834324002,
-0.0857786238193512,
0.02464073710143566,
-0.04458490014076233,
-0.0971977487206459,
0.027280135080218315,
-0.03290919214487076,
0.15748557448387146,
-0.07478842884302139,
0.0634642094373703,
0.08361867070198059,
0.04205894470214844,
0.044510941952466965,
-0.15335950255393982,
0.0799480676651001,
0.05694982782006264,
-0.00867467187345028,
0.0017633289098739624
] |
null | null | transformers |
# Harry Potter DialoGPT model | {"tags": ["conversational"]} | text-generation | AJ-Dude/DialoGPT-small-harrypotter | [
"transformers",
"pytorch",
"gpt2",
"text-generation",
"conversational",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us
|
# Harry Potter DialoGPT model | [
"# Harry Potter DialoGPT model"
] | [
"TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n",
"# Harry Potter DialoGPT model"
] | [
51,
8
] | [
"passage: TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n# Harry Potter DialoGPT model"
] | [
-0.0007423716015182436,
0.07901087403297424,
-0.006403876468539238,
0.07870237529277802,
0.10491720587015152,
0.049147240817546844,
0.17843516170978546,
0.12238198518753052,
0.016599085181951523,
-0.04870329797267914,
0.11620716750621796,
0.21275456249713898,
-0.003188240109011531,
0.02853504754602909,
-0.050956565886735916,
-0.30724036693573,
0.04763087257742882,
0.01559235155582428,
-0.07376811653375626,
0.11614454537630081,
0.09162160754203796,
-0.04533030837774277,
0.08362315595149994,
-0.009888083674013615,
-0.1308954954147339,
-0.04156748205423355,
0.017740504816174507,
-0.11717471480369568,
0.16466352343559265,
0.0542740561068058,
0.02391558326780796,
-0.007870192639529705,
-0.06475290656089783,
-0.1496673822402954,
0.03692063316702843,
-0.028039416298270226,
-0.0118203554302454,
0.05490228906273842,
0.02404412068426609,
-0.07356701791286469,
0.1695348024368286,
0.1776641607284546,
0.08244364708662033,
0.0327158086001873,
-0.14904987812042236,
-0.043550990521907806,
0.009113550186157227,
0.054984673857688904,
-0.01711457595229149,
0.09343675523996353,
-0.019054735079407692,
0.11861424148082733,
-0.04602331295609474,
0.09285321086645126,
0.1495082676410675,
-0.40350601077079773,
-0.026116928085684776,
0.0903446301817894,
0.06022984907031059,
0.12304463237524033,
-0.10203687101602554,
0.039253633469343185,
-0.0022808744106441736,
0.012518967501819134,
-0.013988540507853031,
-0.0832170620560646,
-0.07210345566272736,
0.03171974793076515,
-0.12937267124652863,
0.006397460121661425,
0.24089795351028442,
-0.10620614886283875,
0.03617938607931137,
-0.0964365005493164,
-0.07441388070583344,
0.04566755145788193,
-0.05306774750351906,
-0.08261129260063171,
-0.056013111025094986,
0.0643787831068039,
0.005411949008703232,
-0.06511911749839783,
-0.08226437121629715,
-0.0024580832105129957,
-0.12908223271369934,
0.18073131144046783,
0.0613723024725914,
0.04119022935628891,
-0.21345339715480804,
0.09156031906604767,
0.042982302606105804,
-0.046418141573667526,
0.00915517657995224,
-0.11795073002576828,
0.04128655791282654,
0.005139738321304321,
-0.03257955610752106,
-0.02148178592324257,
0.03983474522829056,
0.1388121098279953,
-0.015509864315390587,
0.03203461691737175,
0.00660371920093894,
0.05796756595373154,
0.08409494906663895,
0.021650949493050575,
0.0167065542191267,
-0.08210677653551102,
0.02091926708817482,
-0.08027087897062302,
-0.00384651985950768,
-0.04927778244018555,
-0.17184622585773468,
-0.07472938299179077,
0.05559259280562401,
0.021340148523449898,
0.03733246028423309,
0.08254451304674149,
-0.0013341123703867197,
-0.05687775835394859,
0.0343688502907753,
0.015173322521150112,
-0.020851030945777893,
-0.01183349173516035,
-0.025181232020258904,
0.1901831477880478,
0.020905958488583565,
0.013021240942180157,
-0.12566399574279785,
0.09872838109731674,
-0.08185413479804993,
0.002328079892322421,
0.025233158841729164,
-0.04362916201353073,
-0.0059180897660553455,
0.02964244969189167,
0.022408222779631615,
-0.12581437826156616,
-0.11163835227489471,
-0.002719046315178275,
-0.01103856973350048,
-0.03607385978102684,
-0.1055268943309784,
-0.08674618601799011,
-0.012983141466975212,
0.043427638709545135,
-0.015257290564477444,
0.007459879852831364,
-0.05208468437194824,
0.09780282527208328,
-0.05218980833888054,
0.09775549918413162,
-0.08385955542325974,
0.06438862532377243,
-0.09044931083917618,
-0.06042075157165527,
-0.11606834083795547,
0.0529947504401207,
0.011791598983108997,
0.06462135910987854,
0.01579928956925869,
-0.046673182398080826,
-0.014588619582355022,
0.05292808264493942,
-0.076188825070858,
0.19365796446800232,
-0.042668573558330536,
-0.12281488627195358,
0.24267710745334625,
-0.09295307844877243,
-0.18315592408180237,
0.1317339837551117,
-0.023671606555581093,
0.08830419182777405,
0.1275230199098587,
0.2034989893436432,
0.003928940277546644,
-0.014232124201953411,
0.07394228130578995,
0.07062321901321411,
-0.09727765619754791,
0.062051791697740555,
0.028496028855443,
-0.007074089255183935,
-0.09049592167139053,
0.05780968815088272,
0.044035930186510086,
-0.011359555646777153,
-0.03519385680556297,
-0.0020624275784939528,
-0.013130774721503258,
-0.022278113290667534,
0.13949638605117798,
-0.021954981610178947,
0.13019317388534546,
-0.06678570806980133,
-0.034705523401498795,
-0.008439854718744755,
0.03640661761164665,
-0.04265598952770233,
0.08122462034225464,
-0.046275023370981216,
0.10525550693273544,
0.08962719142436981,
0.05493181571364403,
-0.13145731389522552,
0.004493704065680504,
-0.014465831220149994,
0.1688225418329239,
0.08977307379245758,
0.05788818374276161,
0.06262081116437912,
-0.0023427510168403387,
-0.06554091721773148,
0.0450187623500824,
0.13674387335777283,
-0.03673139959573746,
-0.12083537876605988,
-0.17537973821163177,
0.050633504986763,
-0.0471171960234642,
0.10837946832180023,
-0.09752923995256424,
0.02211376279592514,
-0.05667326971888542,
0.07545913010835648,
-0.025453604757785797,
0.022466344758868217,
-0.00012714049080386758,
-0.019034862518310547,
-0.08286507427692413,
-0.002274125814437866,
0.0854136049747467,
-0.020501278340816498,
-0.0677487775683403,
0.16518069803714752,
-0.16674676537513733,
0.16401495039463043,
0.21189342439174652,
-0.2836848497390747,
-0.005230152979493141,
-0.1511157900094986,
-0.020772811025381088,
0.019519105553627014,
0.07974107563495636,
0.027591973543167114,
0.20458000898361206,
-0.01371891237795353,
0.16525571048259735,
-0.058019865304231644,
-0.07660838961601257,
-0.0688544288277626,
-0.050664447247982025,
0.014247283339500427,
0.08902177959680557,
0.044359512627124786,
-0.12088726460933685,
0.13002444803714752,
0.102443166077137,
0.059356916695833206,
0.12570048868656158,
0.10251851379871368,
-0.00825050100684166,
0.07035458832979202,
-0.03161805868148804,
-0.03282398730516434,
-0.09368953853845596,
-0.3046746551990509,
-0.0472409650683403,
0.09484606236219406,
0.00938443187624216,
0.09449882060289383,
-0.09142573177814484,
-0.031189139932394028,
0.004579952917993069,
0.007482557091861963,
0.03155451640486717,
0.09579019993543625,
0.01345511619001627,
0.15216827392578125,
-0.008230069652199745,
-0.03525429591536522,
0.05931205675005913,
0.018202729523181915,
-0.09197022020816803,
0.17419536411762238,
-0.17119243741035461,
-0.27063775062561035,
-0.0719635933637619,
-0.2173861265182495,
-0.015385618433356285,
0.05244498699903488,
0.07839636504650116,
-0.11745905131101608,
-0.02001042664051056,
-0.00860030297189951,
0.05350901931524277,
-0.24227049946784973,
0.0007140120724216104,
-0.1363290697336197,
0.05012734979391098,
-0.19702938199043274,
-0.0978143960237503,
-0.023372823372483253,
-0.013439265079796314,
-0.04845577850937843,
0.13557523488998413,
-0.1469215452671051,
-0.01252050045877695,
0.2352711707353592,
0.03133976086974144,
0.028957976028323174,
-0.04933691397309303,
0.1986825168132782,
-0.09350264817476273,
-0.02303442917764187,
0.1114923357963562,
-0.0508335717022419,
0.04865409806370735,
0.06593001633882523,
-0.013892335817217827,
-0.08746812492609024,
0.024799160659313202,
-0.06933844834566116,
-0.03216499462723732,
-0.27969419956207275,
-0.09634676575660706,
-0.09333356469869614,
0.11292760074138641,
0.041964028030633926,
0.06428404897451401,
0.16653956472873688,
0.053803104907274246,
-0.02417938783764839,
-0.02678857184946537,
0.11547388881444931,
0.12898564338684082,
0.22895203530788422,
-0.061109479516744614,
0.10181215405464172,
0.00926663726568222,
-0.08418744802474976,
0.06057485565543175,
0.05996902659535408,
0.0657992735505104,
0.023929687216877937,
0.037314753979444504,
-0.028381071984767914,
0.11153022944927216,
0.12606318295001984,
0.054839447140693665,
0.04846848547458649,
0.0012139742029830813,
-0.056627146899700165,
-0.00867693591862917,
-0.06034630909562111,
0.06645608693361282,
0.06060836464166641,
-0.1322363018989563,
-0.07827641069889069,
0.0019055178854614496,
0.06673544645309448,
-0.01805424690246582,
0.06665633618831635,
-0.13707555830478668,
-0.03504572808742523,
0.07925086468458176,
-0.07496578991413116,
-0.14162959158420563,
0.11890635639429092,
-0.026090161874890327,
-0.1981820911169052,
0.051473889499902725,
0.006621124222874641,
0.0913272276520729,
-0.06829097121953964,
0.052886225283145905,
-0.1315912902355194,
-0.12794800102710724,
-0.018729081377387047,
0.08102094382047653,
-0.3468443751335144,
0.13552413880825043,
-0.014254134148359299,
-0.026823541149497032,
-0.06491395831108093,
-0.02564697153866291,
0.013359643518924713,
0.12988941371440887,
0.08414454013109207,
0.0012830420164391398,
0.10142830014228821,
0.039717212319374084,
0.04014074057340622,
-0.0013821030734106898,
0.10901577025651932,
0.007001341320574284,
0.005662491079419851,
-0.04857306182384491,
0.007968908175826073,
-0.05161923170089722,
-0.07753802090883255,
0.08452140539884567,
-0.20646198093891144,
0.09056491404771805,
-0.0347004160284996,
0.08611581474542618,
0.042659223079681396,
-0.017923468723893166,
-0.09950827062129974,
0.20079264044761658,
-0.009894060902297497,
-0.11511130630970001,
-0.0746123269200325,
-0.028933236375451088,
0.09189970046281815,
-0.014074633829295635,
0.013723213225603104,
-0.04491909220814705,
0.03022897243499756,
-0.12484968453645706,
-0.15872864425182343,
0.08736436814069748,
-0.04547873139381409,
-0.10745425522327423,
-0.02342759631574154,
0.2011689841747284,
-0.006862555630505085,
0.08082719892263412,
0.016295110806822777,
0.008221064694225788,
-0.1809300184249878,
-0.04285051301121712,
0.023221809417009354,
0.000013433751519187354,
0.004621367435902357,
0.04987021163105965,
0.01753275655210018,
0.06148437410593033,
-0.10614949464797974,
-0.013266019523143768,
0.3132978677749634,
0.1598060429096222,
-0.00882183387875557,
0.14666122198104858,
0.11173494160175323,
-0.08787833154201508,
-0.17428408563137054,
-0.11754623055458069,
-0.12064473330974579,
-0.0849371924996376,
-0.1089826375246048,
-0.1528937965631485,
0.0951707735657692,
-0.03409144654870033,
0.03438969701528549,
0.14458395540714264,
-0.2798023521900177,
-0.11044292896986008,
0.14048133790493011,
0.013244394212961197,
0.34921368956565857,
-0.12190026044845581,
-0.04470892995595932,
-0.062101107090711594,
-0.16986972093582153,
0.08156678825616837,
-0.030444027855992317,
0.11658205837011337,
-0.07332601398229599,
0.1954781711101532,
0.017605798318982124,
0.013867376372218132,
0.09137704968452454,
0.05240704491734505,
-0.056018128991127014,
-0.07434877753257751,
-0.1015109270811081,
0.01202760636806488,
0.035553209483623505,
0.013394827023148537,
-0.008422770537436008,
0.02172546647489071,
-0.11313775926828384,
-0.05229189619421959,
-0.06142335757613182,
0.006541543640196323,
-0.009446901269257069,
-0.044436439871788025,
-0.055364325642585754,
-0.022335102781653404,
-0.018753139302134514,
0.023247305303812027,
0.13806049525737762,
-0.07404123991727829,
0.18139082193374634,
0.028253301978111267,
0.15972736477851868,
-0.11888464540243149,
-0.06587078422307968,
-0.02709396369755268,
-0.05271220579743385,
0.06520868837833405,
-0.08924597501754761,
-0.028496574610471725,
0.1325714886188507,
-0.020271960645914078,
0.04789012670516968,
0.12940727174282074,
0.01970457099378109,
0.014897381886839867,
0.035051144659519196,
-0.2588318884372711,
-0.07540464401245117,
-0.0334366150200367,
-0.012595506384968758,
0.052429862320423126,
0.05588908866047859,
0.1978963166475296,
-0.03629270941019058,
-0.0827733650803566,
0.019552083685994148,
0.028032803907990456,
-0.02910633012652397,
0.10923344641923904,
0.019991731271147728,
-0.0054839299991726875,
-0.1610104888677597,
0.08268860727548599,
-0.005376155953854322,
-0.08324600756168365,
0.028997141867876053,
0.1978672295808792,
-0.12332268059253693,
-0.103748619556427,
-0.0671190619468689,
0.07434576004743576,
-0.09186049550771713,
0.01402483694255352,
-0.00468940706923604,
-0.15047785639762878,
0.06811156123876572,
0.07431512326002121,
0.04079397767782211,
0.06473793089389801,
-0.1177145317196846,
-0.015667608007788658,
-0.043406907469034195,
-0.0028107394464313984,
0.036628738045692444,
0.019535792991518974,
-0.057786233723163605,
0.1604073941707611,
-0.0677371397614479,
0.08448480069637299,
-0.07514297217130661,
-0.10538303852081299,
-0.13988812267780304,
0.04699777066707611,
-0.07914196699857712,
-0.07144010812044144,
-0.1285172998905182,
-0.05108311399817467,
-0.006615033373236656,
-0.03296425938606262,
0.006375538185238838,
-0.06541712582111359,
-0.11010163277387619,
0.01944456808269024,
-0.007305504288524389,
-0.010118316859006882,
-0.05950569733977318,
0.02677895314991474,
0.062306541949510574,
-0.04018016159534454,
0.1569422334432602,
0.22620879113674164,
-0.13644082844257355,
0.11529747396707535,
-0.09667395055294037,
-0.10294829308986664,
0.04711446911096573,
0.011644499376416206,
0.037423066794872284,
0.04872135445475578,
-0.03539043292403221,
0.00587252015247941,
0.037766117602586746,
0.0803493857383728,
0.08615025132894516,
-0.06725169718265533,
0.022885743528604507,
-0.05108189582824707,
-0.14760169386863708,
-0.017806367948651314,
-0.0435778871178627,
0.06992737203836441,
-0.0053057256154716015,
0.10948924720287323,
-0.05091501772403717,
0.07687357068061829,
-0.07492808252573013,
0.049486953765153885,
0.02265104278922081,
-0.146698996424675,
-0.0057684616185724735,
-0.0716870054602623,
0.041133392602205276,
-0.008449118584394455,
0.20517241954803467,
-0.030979134142398834,
0.006521746050566435,
0.031363923102617264,
0.05993763729929924,
-0.01772049069404602,
0.007849921472370625,
0.20346112549304962,
0.12472163140773773,
-0.08389706164598465,
-0.03014150820672512,
0.06695941835641861,
0.0712074413895607,
0.06950776278972626,
0.10571010410785675,
-0.01933141052722931,
0.02522032894194126,
0.07752122730016708,
-0.060751885175704956,
0.0752006396651268,
-0.08692704886198044,
-0.11755942553281784,
0.05901646986603737,
0.014535819180309772,
-0.05565004423260689,
0.20303992927074432,
0.1915714144706726,
-0.024918412789702415,
0.020169783383607864,
0.0004772009269800037,
-0.10318895429372787,
-0.15680547058582306,
-0.05706050992012024,
-0.07354308664798737,
-0.1328808218240738,
-0.004116279073059559,
-0.16812309622764587,
0.021214313805103302,
-0.010589607059955597,
0.09599007666110992,
-0.06884133070707321,
-0.010907097719609737,
0.13406886160373688,
-0.10597961395978928,
0.08270218968391418,
-0.025008363649249077,
0.07896878570318222,
-0.03737438842654228,
-0.01861785352230072,
-0.10342799127101898,
0.007717811968177557,
0.011604945175349712,
0.06966810673475266,
-0.10699429363012314,
0.025082916021347046,
-0.12081192433834076,
-0.08452803641557693,
-0.02779601514339447,
0.09320448338985443,
-0.03991919010877609,
0.15476825833320618,
0.02646658383309841,
-0.0701131522655487,
-0.003212305950000882,
0.2629193365573883,
-0.07982927560806274,
-0.08676797151565552,
-0.03178665041923523,
0.2165164202451706,
0.04056191071867943,
0.06552691757678986,
0.020814940333366394,
0.03907254710793495,
-0.07217376679182053,
0.29518023133277893,
0.34416064620018005,
-0.1320372372865677,
-0.00734639260917902,
0.04283139109611511,
0.0437188558280468,
0.1454198807477951,
0.08162467926740646,
0.11237429827451706,
0.2855282425880432,
-0.09007672965526581,
0.017416084185242653,
-0.04309360682964325,
-0.01360139437019825,
-0.06989553570747375,
0.04267503321170807,
0.08270922303199768,
-0.0923905298113823,
-0.02391267567873001,
0.08216317743062973,
-0.2984570562839508,
0.10604020953178406,
-0.15722768008708954,
-0.14656805992126465,
-0.05067592114210129,
-0.008913235738873482,
0.014146441593766212,
0.017913492396473885,
0.09801360964775085,
0.024305015802383423,
-0.07171649485826492,
0.07845795899629593,
0.024380400776863098,
-0.22838938236236572,
-0.012357363477349281,
0.14588329195976257,
-0.06551044434309006,
-0.02747650258243084,
-0.019635293632745743,
0.054345063865184784,
0.05826238542795181,
0.08707969635725021,
-0.038916926831007004,
-0.07108107209205627,
-0.008210713975131512,
-0.022220103070139885,
0.02024475857615471,
0.056711405515670776,
0.067445307970047,
-0.09290992468595505,
0.11587323993444443,
-0.07239364832639694,
0.06443774700164795,
0.03884641081094742,
-0.021029599010944366,
-0.000013515116734197363,
0.011491737328469753,
-0.06624046713113785,
0.056092407554388046,
0.129530131816864,
-0.024999910965561867,
-0.001431201701052487,
-0.02817630209028721,
-0.07514727860689163,
-0.024500049650669098,
-0.04665688797831535,
-0.09060497581958771,
-0.18124456703662872,
-0.1292073279619217,
0.04401254653930664,
-0.03112487867474556,
-0.20645032823085785,
0.007591728121042252,
-0.11453007161617279,
0.03744511306285858,
-0.14120455086231232,
0.09993283450603485,
0.071953184902668,
0.005077310837805271,
0.006128414534032345,
0.06798314303159714,
0.043616052716970444,
0.14745546877384186,
-0.16624818742275238,
-0.05047716945409775
] |
null | null | transformers |
# Harry Potter DialoGPT Model | {"tags": ["conversational"]} | text-generation | AK270802/DialoGPT-small-harrypotter | [
"transformers",
"pytorch",
"gpt2",
"text-generation",
"conversational",
"autotrain_compatible",
"endpoints_compatible",
"text-generation-inference",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us
|
# Harry Potter DialoGPT Model | [
"# Harry Potter DialoGPT Model"
] | [
"TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n",
"# Harry Potter DialoGPT Model"
] | [
51,
8
] | [
"passage: TAGS\n#transformers #pytorch #gpt2 #text-generation #conversational #autotrain_compatible #endpoints_compatible #text-generation-inference #region-us \n# Harry Potter DialoGPT Model"
] | [
-0.0009023238671943545,
0.07815738022327423,
-0.006546166725456715,
0.07792752981185913,
0.10655936598777771,
0.048972971737384796,
0.17639793455600739,
0.12185695022344589,
0.016568755730986595,
-0.04774167761206627,
0.11647630482912064,
0.2130284160375595,
-0.002118367003276944,
0.024608047679066658,
-0.05022026598453522,
-0.3065771162509918,
0.0474756620824337,
0.014356585219502449,
-0.07174845039844513,
0.11724270135164261,
0.09064973145723343,
-0.046179238706827164,
0.08330509811639786,
-0.009135239757597446,
-0.13198648393154144,
-0.039482954889535904,
0.019292812794446945,
-0.11745545268058777,
0.1662212759256363,
0.05298272892832756,
0.02469746209681034,
-0.008447164669632912,
-0.06598151475191116,
-0.15036040544509888,
0.037190426141023636,
-0.027472136542201042,
-0.01080626156181097,
0.05462246760725975,
0.023526115342974663,
-0.07521048933267593,
0.170567125082016,
0.17678891122341156,
0.0833497866988182,
0.0349111407995224,
-0.14917024970054626,
-0.045548245310783386,
0.008950977586209774,
0.05421316996216774,
-0.017893504351377487,
0.09349167346954346,
-0.019903047010302544,
0.11801653355360031,
-0.04491448402404785,
0.09210366010665894,
0.15255063772201538,
-0.4016275703907013,
-0.027563704177737236,
0.08920855820178986,
0.05989706888794899,
0.12076901644468307,
-0.10560955852270126,
0.03972794860601425,
-0.0039703017100691795,
0.01236654631793499,
-0.014540530741214752,
-0.08304883539676666,
-0.07308239489793777,
0.032504837960004807,
-0.1272556483745575,
0.008525865152478218,
0.23756256699562073,
-0.10643257945775986,
0.037069112062454224,
-0.09791990369558334,
-0.07414398342370987,
0.048336777836084366,
-0.053761593997478485,
-0.081727035343647,
-0.054839808493852615,
0.06347949057817459,
0.004366500303149223,
-0.06301609426736832,
-0.08326146006584167,
-0.0006536149303428829,
-0.12781435251235962,
0.17595994472503662,
0.061243366450071335,
0.041611745953559875,
-0.21322020888328552,
0.08940251916646957,
0.04477722570300102,
-0.04711297154426575,
0.007116159424185753,
-0.11796226352453232,
0.04023287072777748,
0.005483259446918964,
-0.03256071358919144,
-0.021854614838957787,
0.0393419973552227,
0.13909944891929626,
-0.01777748204767704,
0.03252175822854042,
0.006831915583461523,
0.05811219662427902,
0.08162496984004974,
0.02222144603729248,
0.019291909411549568,
-0.0818009302020073,
0.019385190680623055,
-0.08128736168146133,
-0.0030400939285755157,
-0.048940129578113556,
-0.17071883380413055,
-0.07477642595767975,
0.052610911428928375,
0.020047198981046677,
0.03746970370411873,
0.08054786175489426,
-0.0017944995779544115,
-0.05560554191470146,
0.03284840285778046,
0.01671096310019493,
-0.020622212439775467,
-0.010361049324274063,
-0.02412462793290615,
0.19123271107673645,
0.019619356840848923,
0.014111656695604324,
-0.12379156798124313,
0.10023640841245651,
-0.08179095387458801,
0.0037731381598860025,
0.02743307314813137,
-0.04204464703798294,
-0.004716555587947369,
0.02917117439210415,
0.023101668804883957,
-0.1252521574497223,
-0.1099385917186737,
-0.0030569476075470448,
-0.012054097838699818,
-0.036421261727809906,
-0.10490952432155609,
-0.08483029156923294,
-0.012153145857155323,
0.0449371263384819,
-0.013397793285548687,
0.007936403155326843,
-0.05143149942159653,
0.0985720232129097,
-0.0514979362487793,
0.09873400628566742,
-0.08342572301626205,
0.06359215080738068,
-0.09124887734651566,
-0.061886150389909744,
-0.11452563107013702,
0.05216052383184433,
0.012905281968414783,
0.066250741481781,
0.016998225823044777,
-0.044836658984422684,
-0.014836243353784084,
0.05253177136182785,
-0.07656687498092651,
0.1940697431564331,
-0.041674621403217316,
-0.12459053844213486,
0.24146439135074615,
-0.09138800948858261,
-0.1802034229040146,
0.12973085045814514,
-0.022254703566432,
0.08523941785097122,
0.12802475690841675,
0.20380465686321259,
-0.00019822151807602495,
-0.01302915159612894,
0.07281201332807541,
0.07031642645597458,
-0.09803894907236099,
0.06239739805459976,
0.029653839766979218,
-0.008071083575487137,
-0.08906278014183044,
0.05762826278805733,
0.046033453196287155,
-0.010650773532688618,
-0.035073768347501755,
-0.001896020956337452,
-0.012895751744508743,
-0.022185025736689568,
0.14126582443714142,
-0.02006692811846733,
0.1300428807735443,
-0.06926563382148743,
-0.03515486419200897,
-0.009500149637460709,
0.03533667325973511,
-0.04091939330101013,
0.08151165395975113,
-0.0436173714697361,
0.10586477071046829,
0.09034156054258347,
0.053724925965070724,
-0.13120363652706146,
0.00466286763548851,
-0.015246815048158169,
0.17014820873737335,
0.08964069187641144,
0.05222717300057411,
0.06265474855899811,
-0.0020888058934360743,
-0.06708643585443497,
0.045407816767692566,
0.13778303563594818,
-0.037020038813352585,
-0.12218865007162094,
-0.1755627691745758,
0.051157694309949875,
-0.045444171875715256,
0.10855234414339066,
-0.10010123997926712,
0.022670533508062363,
-0.055906031280756,
0.07772238552570343,
-0.024998966604471207,
0.020512236282229424,
-0.0013405600329861045,
-0.021700702607631683,
-0.08356887847185135,
-0.002377772703766823,
0.08597290515899658,
-0.02048647589981556,
-0.06707409024238586,
0.16556480526924133,
-0.16400809586048126,
0.1631954461336136,
0.2116095870733261,
-0.28542569279670715,
-0.005696662236005068,
-0.15163889527320862,
-0.0208092350512743,
0.019645055755972862,
0.07834604382514954,
0.026225795969367027,
0.2044338881969452,
-0.012928472831845284,
0.16565458476543427,
-0.05699567869305611,
-0.07730039209127426,
-0.06881127506494522,
-0.048101142048835754,
0.013522743247449398,
0.09095205366611481,
0.04542696103453636,
-0.11962861567735672,
0.13119758665561676,
0.1054433062672615,
0.06484298408031464,
0.12711186707019806,
0.1030748188495636,
-0.008113685995340347,
0.07252490520477295,
-0.03624548763036728,
-0.03462279960513115,
-0.09254947304725647,
-0.30446043610572815,
-0.04840317741036415,
0.0939924493432045,
0.007963384501636028,
0.09285714477300644,
-0.0919896736741066,
-0.03311870992183685,
0.006042704917490482,
0.009473444893956184,
0.028337622061371803,
0.09653715789318085,
0.013490920886397362,
0.15320514142513275,
-0.008011690340936184,
-0.03430786728858948,
0.05891305208206177,
0.017982570454478264,
-0.09147711098194122,
0.17280617356300354,
-0.17050009965896606,
-0.27190929651260376,
-0.06990014761686325,
-0.21745692193508148,
-0.013139115646481514,
0.05258983001112938,
0.0786920040845871,
-0.11818131804466248,
-0.018352627754211426,
-0.006239492911845446,
0.05685517191886902,
-0.2425733357667923,
0.0004911290016025305,
-0.1354890614748001,
0.0501418262720108,
-0.1974833607673645,
-0.09718500077724457,
-0.02271542325615883,
-0.013450481928884983,
-0.0464281290769577,
0.13365240395069122,
-0.1448695808649063,
-0.011572926305234432,
0.2329535037279129,
0.032479673624038696,
0.027794739231467247,
-0.05020907148718834,
0.19788463413715363,
-0.0958966314792633,
-0.023973820731043816,
0.11024576425552368,
-0.05038975924253464,
0.04834126681089401,
0.06649978458881378,
-0.012981836684048176,
-0.08557141572237015,
0.023789849132299423,
-0.068336620926857,
-0.03150583803653717,
-0.27926525473594666,
-0.0930178239941597,
-0.09319330751895905,
0.11305391043424606,
0.04079577326774597,
0.06421639025211334,
0.16545771062374115,
0.05191578343510628,
-0.024325082078576088,
-0.03006586618721485,
0.11609793454408646,
0.12905290722846985,
0.2277202159166336,
-0.06067761778831482,
0.10221996158361435,
0.009445492178201675,
-0.08203992247581482,
0.06062209978699684,
0.056782789528369904,
0.06324724853038788,
0.02584579586982727,
0.03694582358002663,
-0.030939655378460884,
0.1121687963604927,
0.12571842968463898,
0.05258069559931755,
0.0481170229613781,
0.0002127334737451747,
-0.0561506561934948,
-0.008168719708919525,
-0.05726633965969086,
0.06774696707725525,
0.061340972781181335,
-0.12918008863925934,
-0.08061543852090836,
0.0011613310780376196,
0.06660808622837067,
-0.016230419278144836,
0.06823775917291641,
-0.13560809195041656,
-0.03582429885864258,
0.0790911465883255,
-0.07693151384592056,
-0.14156894385814667,
0.11972879618406296,
-0.026570770889520645,
-0.19904157519340515,
0.05265914276242256,
0.007704653777182102,
0.0908159390091896,
-0.06360849738121033,
0.05343840271234512,
-0.13023801147937775,
-0.12935101985931396,
-0.018437571823596954,
0.07945099472999573,
-0.3450873792171478,
0.13536721467971802,
-0.013286802917718887,
-0.02876877970993519,
-0.06474969536066055,
-0.02640824392437935,
0.013905409723520279,
0.12719078361988068,
0.08667250722646713,
0.0008821099763736129,
0.0991629809141159,
0.03823768347501755,
0.04188435152173042,
-0.002011700300499797,
0.10950417071580887,
0.0050011589191854,
0.004797275178134441,
-0.04982118681073189,
0.007274609990417957,
-0.05164213851094246,
-0.07472953200340271,
0.08393982797861099,
-0.20678792893886566,
0.09087453782558441,
-0.03378438204526901,
0.08427679538726807,
0.04304937273263931,
-0.018965769559144974,
-0.1001204177737236,
0.19745583832263947,
-0.012206900864839554,
-0.11405988782644272,
-0.07517550885677338,
-0.02810264565050602,
0.09103139489889145,
-0.013817726634442806,
0.012886416167020798,
-0.045470476150512695,
0.032183047384023666,
-0.1263762265443802,
-0.1597503274679184,
0.08734500408172607,
-0.04441224783658981,
-0.10894393920898438,
-0.025462759658694267,
0.20382575690746307,
-0.007266622502356768,
0.08242089301347733,
0.01605331338942051,
0.010653935372829437,
-0.18066231906414032,
-0.04018142446875572,
0.02645772136747837,
-0.0016437612939625978,
0.005979063920676708,
0.047698814421892166,
0.019091911613941193,
0.06207629665732384,
-0.1069745197892189,
-0.013920160941779613,
0.3158324360847473,
0.15978319942951202,
-0.00912671908736229,
0.14943915605545044,
0.1093616932630539,
-0.08669080585241318,
-0.17238758504390717,
-0.1171615794301033,
-0.1210922971367836,
-0.08425768464803696,
-0.10681738704442978,
-0.1525043100118637,
0.09535340964794159,
-0.03392014652490616,
0.03498011827468872,
0.14615866541862488,
-0.280263751745224,
-0.10949636250734329,
0.13820378482341766,
0.010744688101112843,
0.3510635495185852,
-0.12303631007671356,
-0.044944874942302704,
-0.06214528530836105,
-0.16933435201644897,
0.08021392673254013,
-0.031203703954815865,
0.11581093072891235,
-0.0744495838880539,
0.19395925104618073,
0.01719796098768711,
0.014287159778177738,
0.0916559100151062,
0.05038322135806084,
-0.05808406323194504,
-0.07368700206279755,
-0.10248131304979324,
0.010812131687998772,
0.03546109423041344,
0.010252019390463829,
-0.008802837692201138,
0.0211968794465065,
-0.11341743916273117,
-0.050869911909103394,
-0.06302189081907272,
0.0072614275850355625,
-0.01001308299601078,
-0.042155615985393524,
-0.05533592775464058,
-0.022557416930794716,
-0.020093943923711777,
0.02266426384449005,
0.14185629785060883,
-0.07527699321508408,
0.18586260080337524,
0.02357078716158867,
0.1586609035730362,
-0.11956068128347397,
-0.06724818795919418,
-0.029193658381700516,
-0.05280323326587677,
0.06468886137008667,
-0.08884575963020325,
-0.027708567678928375,
0.1332162618637085,
-0.01903904788196087,
0.04655366763472557,
0.12936700880527496,
0.02046884410083294,
0.015383756719529629,
0.034968774765729904,
-0.2578005790710449,
-0.07463036477565765,
-0.03505445644259453,
-0.012416874058544636,
0.05272092670202255,
0.05525677278637886,
0.19735674560070038,
-0.03551921248435974,
-0.08521962910890579,
0.020131373777985573,
0.02735883742570877,
-0.02776256389915943,
0.10749414563179016,
0.019579345360398293,
-0.004837906453758478,
-0.16151933372020721,
0.08257976174354553,
-0.005964108742773533,
-0.08297000825405121,
0.028665626421570778,
0.2024049311876297,
-0.12141239643096924,
-0.10309756547212601,
-0.06804922968149185,
0.07315051555633545,
-0.09220825880765915,
0.016043387353420258,
-0.005091092549264431,
-0.1521538347005844,
0.06916408240795135,
0.07598215341567993,
0.04075418785214424,
0.06513199955224991,
-0.11743064224720001,
-0.015730571001768112,
-0.04170290008187294,
-0.002195435343310237,
0.03521120920777321,
0.01863143965601921,
-0.057492829859256744,
0.15846455097198486,
-0.0676199421286583,
0.08538917452096939,
-0.0744810476899147,
-0.1058846190571785,
-0.1395980566740036,
0.04660497233271599,
-0.08038312196731567,
-0.07247276604175568,
-0.12832807004451752,
-0.052204377949237823,
-0.0067099276930093765,
-0.03388519585132599,
0.006552806124091148,
-0.06627799570560455,
-0.10922821611166,
0.01822470687329769,
-0.00743203004822135,
-0.009385870769619942,
-0.06096754968166351,
0.026706209406256676,
0.06246216222643852,
-0.039788868278265,
0.15730851888656616,
0.22509248554706573,
-0.13591648638248444,
0.11564400047063828,
-0.09797432273626328,
-0.105463907122612,
0.046008042991161346,
0.009427277371287346,
0.03594303876161575,
0.0503489226102829,
-0.03594081476330757,
0.0044484552927315235,
0.03905477747321129,
0.08074651658535004,
0.08456914126873016,
-0.06776505708694458,
0.020801106467843056,
-0.05122765153646469,
-0.14904099702835083,
-0.016655439510941505,
-0.0464773029088974,
0.06876829266548157,
-0.006725262850522995,
0.11020535975694656,
-0.0515950471162796,
0.07739507406949997,
-0.07558431476354599,
0.050614211708307266,
0.021146971732378006,
-0.14688286185264587,
-0.006612539757043123,
-0.07093682140111923,
0.042144812643527985,
-0.008834975771605968,
0.20241086184978485,
-0.03228091076016426,
0.010342049412429333,
0.033811055123806,
0.06203942745923996,
-0.01957780309021473,
0.009357001632452011,
0.2014283686876297,
0.12640917301177979,
-0.08496357500553131,
-0.02679651789367199,
0.06793134659528732,
0.07248228788375854,
0.07093550264835358,
0.10807815194129944,
-0.015352966263890266,
0.028434239327907562,
0.07829629629850388,
-0.060215238481760025,
0.07576877623796463,
-0.08603982627391815,
-0.11668483167886734,
0.05793621391057968,
0.012955795042216778,
-0.055695828050374985,
0.20305177569389343,
0.19142870604991913,
-0.026278704404830933,
0.018410727381706238,
-0.0029499190859496593,
-0.10117456316947937,
-0.15619947016239166,
-0.05423750728368759,
-0.07170962542295456,
-0.1319410353899002,
-0.004549739416688681,
-0.16646917164325714,
0.022016216069459915,
-0.01132756657898426,
0.09506805986166,
-0.06855440139770508,
-0.01345991250127554,
0.1364889293909073,
-0.1055467277765274,
0.0847758799791336,
-0.024517204612493515,
0.07877567410469055,
-0.03746940940618515,
-0.018209461122751236,
-0.10342709720134735,
0.007514837197959423,
0.01131442841142416,
0.06840907037258148,
-0.10897937417030334,
0.02432350255548954,
-0.12208317965269089,
-0.08617185056209564,
-0.026142612099647522,
0.09279687702655792,
-0.0403008833527565,
0.15116846561431885,
0.02645145356655121,
-0.06710928678512573,
-0.004313822835683823,
0.2646709978580475,
-0.08046227693557739,
-0.08319197595119476,
-0.030799202620983124,
0.2152107208967209,
0.04053696244955063,
0.06396269053220749,
0.019140036776661873,
0.038027774542570114,
-0.07184682041406631,
0.2957373559474945,
0.34401440620422363,
-0.1318037211894989,
-0.007773484103381634,
0.04225075617432594,
0.04406323283910751,
0.14687567949295044,
0.07998795062303543,
0.11360671371221542,
0.2849363386631012,
-0.09197647124528885,
0.016657205298542976,
-0.04230864346027374,
-0.01424806285649538,
-0.06908884644508362,
0.045314885675907135,
0.08216670155525208,
-0.09241747111082077,
-0.022950593382120132,
0.08125471323728561,
-0.29741767048835754,
0.10791494697332382,
-0.15600289404392242,
-0.14948409795761108,
-0.05027429759502411,
-0.008771711029112339,
0.014683255925774574,
0.019041186198592186,
0.09663030505180359,
0.025651484727859497,
-0.07275258749723434,
0.07816889137029648,
0.024486342445015907,
-0.23020237684249878,
-0.01345184724777937,
0.1456068754196167,
-0.06789913028478622,
-0.025938833132386208,
-0.021313713863492012,
0.051610056310892105,
0.05763651058077812,
0.09027529507875443,
-0.03809558227658272,
-0.0746568813920021,
-0.007141788024455309,
-0.022818787023425102,
0.01914946548640728,
0.0597183033823967,
0.06841408461332321,
-0.0920223817229271,
0.1167774423956871,
-0.07350476831197739,
0.0650370642542839,
0.037623800337314606,
-0.022277191281318665,
0.0018526542698964477,
0.013183658011257648,
-0.06512464582920074,
0.05533479526638985,
0.1295643299818039,
-0.025459708645939827,
-0.002524374984204769,
-0.028180841356515884,
-0.0767761766910553,
-0.024015206843614578,
-0.04643676429986954,
-0.09101243317127228,
-0.18130090832710266,
-0.12738600373268127,
0.041754670441150665,
-0.03240608796477318,
-0.2046082615852356,
0.0060346988029778,
-0.1128578633069992,
0.03700976446270943,
-0.14154092967510223,
0.10004086047410965,
0.07216610759496689,
0.004716616589576006,
0.006774604320526123,
0.0675399899482727,
0.045677728950977325,
0.14796748757362366,
-0.16543124616146088,
-0.04919974133372307
] |
null | null | transformers |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# wav2vec2-base-timit-epochs10
This model is a fine-tuned version of [AKulk/wav2vec2-base-timit-epochs5](https://huggingface.co/AKulk/wav2vec2-base-timit-epochs5) on the None dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0001
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 5
- total_train_batch_size: 80
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 1000
- num_epochs: 5
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.11.3
- Pytorch 1.10.0+cu111
- Datasets 1.18.3
- Tokenizers 0.10.3
| {"license": "apache-2.0", "tags": ["generated_from_trainer"], "model-index": [{"name": "wav2vec2-base-timit-epochs10", "results": []}]} | automatic-speech-recognition | AKulk/wav2vec2-base-timit-epochs10 | [
"transformers",
"pytorch",
"tensorboard",
"wav2vec2",
"automatic-speech-recognition",
"generated_from_trainer",
"license:apache-2.0",
"endpoints_compatible",
"region:us"
] | 2022-03-02T23:29:04+00:00 | [] | [] | TAGS
#transformers #pytorch #tensorboard #wav2vec2 #automatic-speech-recognition #generated_from_trainer #license-apache-2.0 #endpoints_compatible #region-us
|
# wav2vec2-base-timit-epochs10
This model is a fine-tuned version of AKulk/wav2vec2-base-timit-epochs5 on the None dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0001
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 5
- total_train_batch_size: 80
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 1000
- num_epochs: 5
- mixed_precision_training: Native AMP
### Training results
### Framework versions
- Transformers 4.11.3
- Pytorch 1.10.0+cu111
- Datasets 1.18.3
- Tokenizers 0.10.3
| [
"# wav2vec2-base-timit-epochs10\n\nThis model is a fine-tuned version of AKulk/wav2vec2-base-timit-epochs5 on the None dataset.",
"## Model description\n\nMore information needed",
"## Intended uses & limitations\n\nMore information needed",
"## Training and evaluation data\n\nMore information needed",
"## Training procedure",
"### Training hyperparameters\n\nThe following hyperparameters were used during training:\n- learning_rate: 0.0001\n- train_batch_size: 16\n- eval_batch_size: 8\n- seed: 42\n- gradient_accumulation_steps: 5\n- total_train_batch_size: 80\n- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n- lr_scheduler_type: linear\n- lr_scheduler_warmup_steps: 1000\n- num_epochs: 5\n- mixed_precision_training: Native AMP",
"### Training results",
"### Framework versions\n\n- Transformers 4.11.3\n- Pytorch 1.10.0+cu111\n- Datasets 1.18.3\n- Tokenizers 0.10.3"
] | [
"TAGS\n#transformers #pytorch #tensorboard #wav2vec2 #automatic-speech-recognition #generated_from_trainer #license-apache-2.0 #endpoints_compatible #region-us \n",
"# wav2vec2-base-timit-epochs10\n\nThis model is a fine-tuned version of AKulk/wav2vec2-base-timit-epochs5 on the None dataset.",
"## Model description\n\nMore information needed",
"## Intended uses & limitations\n\nMore information needed",
"## Training and evaluation data\n\nMore information needed",
"## Training procedure",
"### Training hyperparameters\n\nThe following hyperparameters were used during training:\n- learning_rate: 0.0001\n- train_batch_size: 16\n- eval_batch_size: 8\n- seed: 42\n- gradient_accumulation_steps: 5\n- total_train_batch_size: 80\n- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n- lr_scheduler_type: linear\n- lr_scheduler_warmup_steps: 1000\n- num_epochs: 5\n- mixed_precision_training: Native AMP",
"### Training results",
"### Framework versions\n\n- Transformers 4.11.3\n- Pytorch 1.10.0+cu111\n- Datasets 1.18.3\n- Tokenizers 0.10.3"
] | [
56,
48,
6,
12,
8,
3,
140,
4,
35
] | [
"passage: TAGS\n#transformers #pytorch #tensorboard #wav2vec2 #automatic-speech-recognition #generated_from_trainer #license-apache-2.0 #endpoints_compatible #region-us \n# wav2vec2-base-timit-epochs10\n\nThis model is a fine-tuned version of AKulk/wav2vec2-base-timit-epochs5 on the None dataset.## Model description\n\nMore information needed## Intended uses & limitations\n\nMore information needed## Training and evaluation data\n\nMore information needed## Training procedure### Training hyperparameters\n\nThe following hyperparameters were used during training:\n- learning_rate: 0.0001\n- train_batch_size: 16\n- eval_batch_size: 8\n- seed: 42\n- gradient_accumulation_steps: 5\n- total_train_batch_size: 80\n- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08\n- lr_scheduler_type: linear\n- lr_scheduler_warmup_steps: 1000\n- num_epochs: 5\n- mixed_precision_training: Native AMP### Training results### Framework versions\n\n- Transformers 4.11.3\n- Pytorch 1.10.0+cu111\n- Datasets 1.18.3\n- Tokenizers 0.10.3"
] | [
-0.09533283114433289,
0.10580724477767944,
-0.0036963322199881077,
0.05592847988009453,
0.12585534155368805,
0.02536052279174328,
0.1041797548532486,
0.12866511940956116,
-0.1010676696896553,
0.0523277185857296,
0.058066196739673615,
0.0401734858751297,
0.06621474027633667,
0.08339320868253708,
-0.016791801899671555,
-0.2649749517440796,
0.00812252052128315,
0.015918903052806854,
-0.0907842144370079,
0.10727116465568542,
0.12146495282649994,
-0.10287602245807648,
0.027044128626585007,
0.058571957051754,
-0.1292651891708374,
0.028238488361239433,
-0.04194077476859093,
-0.06956912577152252,
0.10058726370334625,
0.005822218023240566,
0.12645314633846283,
0.01832534186542034,
0.12879978120326996,
-0.23710355162620544,
-0.00016717109247110784,
0.08560144156217575,
0.05916331335902214,
0.0907774567604065,
0.08377841114997864,
-0.009981676936149597,
0.0740623027086258,
-0.1182590052485466,
0.11256232857704163,
0.01060634758323431,
-0.07023251801729202,
-0.19610565900802612,
-0.08103950321674347,
0.08743588626384735,
0.12074346095323563,
0.11179234087467194,
-0.006665955763310194,
0.12140516191720963,
-0.09896475076675415,
0.07008447498083115,
0.174869567155838,
-0.24261517822742462,
-0.0666392594575882,
0.011794201098382473,
0.035026635974645615,
0.04258103296160698,
-0.10694584250450134,
-0.034143876284360886,
0.03054855391383171,
0.020174076780676842,
0.09735947102308273,
0.029007334262132645,
-0.07087237387895584,
-0.0012918327702209353,
-0.12577249109745026,
-0.04203261062502861,
0.12085040658712387,
0.06235872954130173,
-0.043514836579561234,
-0.10193653404712677,
-0.02128630317747593,
-0.15377940237522125,
-0.010071671567857265,
-0.044327761977910995,
0.03405363857746124,
-0.04440121725201607,
-0.07524923980236053,
-0.039738740772008896,
-0.09172613173723221,
-0.060264840722084045,
0.021623089909553528,
0.13163013756275177,
0.055782172828912735,
0.000791907892562449,
-0.038486216217279434,
0.13512994349002838,
0.028250910341739655,
-0.13011641800403595,
-0.004988981410861015,
0.01821490190923214,
-0.09581850469112396,
-0.06551288813352585,
-0.05023155361413956,
-0.03543577715754509,
-0.040060143917798996,
0.15047958493232727,
-0.02410365268588066,
0.07712315768003464,
0.006448434200137854,
0.0091306883841753,
-0.04346363991498947,
0.17054776847362518,
-0.04113457724452019,
-0.005217164289206266,
-0.035574402660131454,
0.10106541216373444,
-0.020234236493706703,
-0.006047413218766451,
-0.07074592262506485,
-0.01911519095301628,
0.07860676199197769,
0.04520630091428757,
-0.0625401958823204,
0.021741755306720734,
-0.040872666984796524,
-0.04297727718949318,
0.003092631231993437,
-0.1318356990814209,
0.04294116422533989,
0.0030563720501959324,
-0.09611957520246506,
0.016635559499263763,
0.024162741377949715,
0.0384332537651062,
-0.03842829912900925,
0.13234247267246246,
-0.0625515878200531,
0.0011266516521573067,
-0.09812282025814056,
-0.05811444669961929,
0.007950970903038979,
-0.06620757281780243,
0.00373253901489079,
-0.05273313447833061,
-0.17369705438613892,
-0.03156104311347008,
0.06829051673412323,
-0.053034648299217224,
-0.06678693741559982,
-0.04025080054998398,
-0.0508430078625679,
0.01674296334385872,
-0.014848603866994381,
0.1938430666923523,
-0.038442421704530716,
0.06297218799591064,
-0.013263974338769913,
0.02072424627840519,
0.07160408049821854,
0.052805036306381226,
-0.0699353739619255,
0.02237914875149727,
-0.10041071474552155,
0.07181164622306824,
-0.08664621412754059,
0.002050571609288454,
-0.1216895654797554,
-0.10985979437828064,
-0.03159654885530472,
-0.017774835228919983,
0.0753885954618454,
0.0833536833524704,
-0.15787862241268158,
-0.04361281916499138,
0.15973487496376038,
-0.07100879400968552,
-0.05799490958452225,
0.09123528748750687,
-0.05335318669676781,
0.021780701354146004,
0.05255959555506706,
0.13633331656455994,
0.10656880587339401,
-0.13977883756160736,
0.004764001350849867,
-0.022490834817290306,
0.09413736313581467,
0.04190049692988396,
0.0649777427315712,
-0.027019783854484558,
0.053203996270895004,
-0.005208175629377365,
-0.06373929232358932,
0.007617984898388386,
-0.07553071528673172,
-0.08979453146457672,
-0.04344584420323372,
-0.08382092416286469,
0.02470012940466404,
0.022193126380443573,
0.04875229671597481,
-0.07223553955554962,
-0.15143929421901703,
0.11748983711004257,
0.1352212131023407,
-0.06591738760471344,
0.027339104562997818,
-0.08742252737283707,
-0.007190066389739513,
-0.011725032702088356,
-0.049726083874702454,
-0.17251665890216827,
-0.05370306223630905,
0.0261237695813179,
-0.08628131449222565,
0.02985631860792637,
0.024234244599938393,
0.07090044021606445,
0.050686273723840714,
-0.055021364241838455,
-0.034912969917058945,
-0.12867490947246552,
0.012908111326396465,
-0.08048003166913986,
-0.18489128351211548,
-0.06299208104610443,
-0.016547448933124542,
0.20239993929862976,
-0.21822766959667206,
0.011627941392362118,
-0.014994381926953793,
0.16325178742408752,
0.027231886982917786,
-0.06153148040175438,
-0.02176288701593876,
0.04964229092001915,
0.002289354335516691,
-0.08392489701509476,
0.02509421855211258,
-0.00341330049559474,
-0.09632989764213562,
-0.02986428327858448,
-0.09698493778705597,
0.013318508863449097,
0.09364330768585205,
0.04346964508295059,
-0.08818485587835312,
-0.010342685505747795,
-0.06622199714183807,
-0.056944262236356735,
-0.0750584676861763,
-0.001701085944660008,
0.22913163900375366,
0.02964923158288002,
0.12260529398918152,
-0.06291701644659042,
-0.07730448246002197,
-0.0028504859656095505,
0.008388287387788296,
-0.004662157967686653,
0.08002334833145142,
0.08464805781841278,
-0.07025127112865448,
0.06873267889022827,
0.08819358795881271,
-0.08765988796949387,
0.14106115698814392,
-0.06469512730836868,
-0.11774550378322601,
-0.008968179114162922,
-0.009583523496985435,
-0.006977387238293886,
0.10932517051696777,
-0.10926344990730286,
0.02466454543173313,
0.03154147416353226,
0.026520906016230583,
0.04838494956493378,
-0.20415176451206207,
-0.0017932060873135924,
0.05403862148523331,
-0.039565782994031906,
-0.03357493877410889,
-0.04279034212231636,
0.03035014681518078,
0.07230979204177856,
0.018118197098374367,
-0.02686474286019802,
0.009914192371070385,
-0.016382575035095215,
-0.07797375321388245,
0.16601553559303284,
-0.10279659926891327,
-0.12099278718233109,
-0.11982312798500061,
0.0464836061000824,
-0.009079010225832462,
-0.04287248104810715,
0.004002290777862072,
-0.09646942466497421,
-0.05228305980563164,
-0.07994795590639114,
-0.0147187989205122,
-0.06356234103441238,
-0.0111666489392519,
0.0778149962425232,
0.011463573202490807,
0.07772037386894226,
-0.12916509807109833,
0.01923835277557373,
-0.01768442988395691,
-0.06986992061138153,
0.007697658147662878,
0.04998130723834038,
0.060686346143484116,
0.1539493203163147,
-0.02009325847029686,
0.023923344910144806,
-0.03427363559603691,
0.19107620418071747,
-0.102598175406456,
-0.005171291530132294,
0.11315979063510895,
-0.015147903002798557,
0.0489981472492218,
0.0832383781671524,
0.043453335762023926,
-0.07727962732315063,
0.02851046994328499,
0.07950982451438904,
-0.010281698778271675,
-0.26395300030708313,
-0.01943157985806465,
-0.019516777247190475,
-0.09987714886665344,
0.12263023108243942,
0.029612356796860695,
0.02570265159010887,
0.05186747759580612,
-0.012182742357254028,
0.01213451474905014,
0.005577403120696545,
0.07751885056495667,
0.07054252177476883,
0.04958588629961014,
0.11355222761631012,
-0.014806115999817848,
-0.03821086511015892,
0.03888707980513573,
0.024583475664258003,
0.26553094387054443,
-0.002978700678795576,
0.11368993669748306,
0.04501575604081154,
0.14519762992858887,
-0.005106834229081869,
0.05023292452096939,
0.01052294485270977,
-0.01511880848556757,
0.015003818087279797,
-0.05813904106616974,
0.00448246393352747,
0.03436972573399544,
0.02390271984040737,
0.03286145254969597,
-0.06684490293264389,
-0.006902303081005812,
-0.001667196862399578,
0.28655925393104553,
0.046284887939691544,
-0.2733696699142456,
-0.07937069982290268,
0.005150071810930967,
-0.06523400545120239,
-0.05868620425462723,
0.00841147918254137,
0.06725368648767471,
-0.13477246463298798,
0.0656065046787262,
-0.06705154478549957,
0.10016333311796188,
-0.025075064972043037,
-0.013633402064442635,
0.07202378660440445,
0.09549492597579956,
-0.0040871803648769855,
0.08039091527462006,
-0.21638712286949158,
0.22704346477985382,
-0.00893942080438137,
0.12237802892923355,
-0.06785564124584198,
0.04176076874136925,
0.014596141874790192,
0.015433024615049362,
0.0682661160826683,
-0.011174008250236511,
-0.04690072685480118,
-0.14394307136535645,
-0.0798620730638504,
0.032837968319654465,
0.1110241562128067,
-0.05542970076203346,
0.09316618740558624,
-0.031075119972229004,
0.01075169537216425,
0.06397426873445511,
-0.055939190089702606,
-0.17751112580299377,
-0.1340625286102295,
0.02433319203555584,
0.01206215564161539,
0.011891438625752926,
-0.09010253846645355,
-0.12727998197078705,
-0.0707140564918518,
0.16925740242004395,
-0.012872373685240746,
-0.04117826372385025,
-0.13215972483158112,
0.06835168600082397,
0.1527450978755951,
-0.0392821840941906,
0.031867656856775284,
0.04397590458393097,
0.15355953574180603,
0.01940668560564518,
-0.05011570826172829,
0.045032694935798645,
-0.07158283144235611,
-0.18212805688381195,
-0.04798537492752075,
0.15312640368938446,
0.06941205263137817,
0.05254844203591347,
-0.004110791254788637,
0.035057175904512405,
-0.004460365977138281,
-0.07377559691667557,
0.035802628844976425,
0.056639235466718674,
0.047414395958185196,
0.03685995936393738,
-0.05253337696194649,
0.012545830570161343,
-0.06911592185497284,
-0.05251768231391907,
0.11025408655405045,
0.2062227725982666,
-0.0750761553645134,
0.07001257687807083,
0.030525147914886475,
-0.07932430505752563,
-0.11355973780155182,
0.06216535344719887,
0.15916572511196136,
0.028491919860243797,
0.06233512610197067,
-0.21193534135818481,
0.10617106407880783,
0.11196437478065491,
-0.024222755804657936,
0.03479083254933357,
-0.30472204089164734,
-0.1456507295370102,
0.0964537262916565,
0.10395506024360657,
-0.054155729711055756,
-0.09568505734205246,
-0.030838485807180405,
-0.01698591746389866,
-0.15241537988185883,
0.13737553358078003,
-0.06240348517894745,
0.09629586338996887,
0.0069721234031021595,
0.1135580986738205,
0.0274598840624094,
-0.042206063866615295,
0.15448419749736786,
0.03228374570608139,
0.06177635118365288,
-0.026440611109137535,
0.05494718253612518,
0.0636754110455513,
-0.05155719071626663,
0.028233734890818596,
-0.027861522510647774,
0.042349301278591156,
-0.15433725714683533,
-0.032271258533000946,
-0.07731115072965622,
0.04296411573886871,
-0.05885828658938408,
-0.06229809671640396,
-0.03374744951725006,
0.05022056773304939,
0.06580808758735657,
-0.030204616487026215,
0.06922007352113724,
0.012265949510037899,
0.10714609920978546,
0.08582562208175659,
0.09367164224386215,
0.019281113520264626,
-0.10650597512722015,
-0.018670765683054924,
-0.01910948008298874,
0.0606909915804863,
-0.10636968910694122,
0.026990842074155807,
0.13241979479789734,
0.04455333575606346,
0.1409820169210434,
0.029912006109952927,
-0.08561307936906815,
-0.011136217042803764,
0.03166867047548294,
-0.07711643725633621,
-0.10630965977907181,
-0.007115157786756754,
0.004205586854368448,
-0.10810007154941559,
-0.01662742719054222,
0.10404665023088455,
-0.06631475687026978,
-0.020958848297595978,
0.0030616126023232937,
0.005843150429427624,
-0.03393707424402237,
0.19432654976844788,
0.035114873200654984,
0.07692065834999084,
-0.06545579433441162,
0.11412784457206726,
0.0809902623295784,
-0.1257486194372177,
0.04746277257800102,
0.03445005044341087,
-0.0678882896900177,
-0.004545907489955425,
0.039817728102207184,
0.11665189266204834,
-0.021484557539224625,
-0.06383214890956879,
-0.08993963152170181,
-0.11325174570083618,
0.06930918991565704,
0.057645034044981,
0.03225564584136009,
-0.009621762670576572,
-0.04362566024065018,
0.04856463149189949,
-0.14075498282909393,
0.09166371077299118,
0.07490034401416779,
0.06890198588371277,
-0.1260332614183426,
0.141307532787323,
0.028764769434928894,
0.0030554586555808783,
0.006619978230446577,
0.009565800428390503,
-0.05411611869931221,
0.007597404532134533,
-0.12354214489459991,
-0.016885066404938698,
-0.008993425406515598,
-0.0011825253022834659,
-0.006192704662680626,
-0.051886457949876785,
-0.042307298630476,
0.04651648551225662,
-0.089823879301548,
-0.05204156041145325,
0.004496346693485975,
0.03918086737394333,
-0.12191162258386612,
-0.0011693922569975257,
0.046596672385931015,
-0.11030279844999313,
0.06746573746204376,
0.06312115490436554,
0.032347094267606735,
0.04163045063614845,
-0.11465706676244736,
0.009382201358675957,
0.0171694103628397,
0.02789348177611828,
0.03606623038649559,
-0.13112637400627136,
-0.009121837094426155,
-0.027787163853645325,
0.0381895937025547,
0.004696812015026808,
0.03317172825336456,
-0.12477010488510132,
-0.0506565198302269,
-0.02425704151391983,
-0.0553756020963192,
-0.056781064718961716,
0.048081785440444946,
0.08367853611707687,
0.03974950313568115,
0.16789375245571136,
-0.066923126578331,
0.055903177708387375,
-0.2114497721195221,
-0.017972027882933617,
-0.014301368035376072,
-0.003293570363894105,
-0.045251768082380295,
-0.029372533783316612,
0.06882935017347336,
-0.07869940996170044,
0.11282344162464142,
-0.022101307287812233,
0.06370794028043747,
0.048236433416604996,
-0.08761011809110641,
-0.042458195239305496,
0.026895590126514435,
0.21543629467487335,
0.0658266693353653,
-0.003745563793927431,
0.06644914299249649,
-0.04731840267777443,
0.032612740993499756,
0.054130155593156815,
0.1604480743408203,
0.1801973432302475,
-0.021242655813694,
0.05925929918885231,
0.06550350785255432,
-0.11847340315580368,
-0.1539958119392395,
0.11509863287210464,
-0.028578225523233414,
0.11158716678619385,
-0.03541603684425354,
0.20847101509571075,
0.09434869140386581,
-0.187569260597229,
0.058555927127599716,
-0.05581206455826759,
-0.10122817754745483,
-0.10469471663236618,
-0.0752449706196785,
-0.06989149004220963,
-0.12705673277378082,
0.038571104407310486,
-0.10985525697469711,
0.052791789174079895,
0.08376810699701309,
0.03281337767839432,
0.005305355414748192,
0.14408659934997559,
-0.019474847242236137,
-0.013634415343403816,
0.0760703757405281,
0.017087480053305626,
-0.0009409539052285254,
-0.08766046911478043,
-0.06447257846593857,
0.042757127434015274,
0.021212207153439522,
0.07307969778776169,
-0.06903362274169922,
-0.035898562520742416,
0.019659247249364853,
0.030129555612802505,
-0.06200018897652626,
0.03888915851712227,
-0.01006951741874218,
0.07390919327735901,
0.035464223474264145,
0.0352131612598896,
0.02013917826116085,
-0.05403362214565277,
0.27947741746902466,
-0.07684177160263062,
-0.09951696544885635,
-0.1366286426782608,
0.18295316398143768,
0.03631575033068657,
-0.01731833815574646,
0.08400297164916992,
-0.10108552128076553,
-0.009812245145440102,
0.15088368952274323,
0.12661296129226685,
-0.039482031017541885,
-0.020851105451583862,
0.000664831546600908,
-0.023013263940811157,
-0.055799003690481186,
0.09876857697963715,
0.1111636608839035,
0.003390568308532238,
-0.0596528984606266,
0.006689054891467094,
-0.020240968093276024,
-0.03264397755265236,
-0.052827656269073486,
0.09482957422733307,
0.0075683752074837685,
-0.016856582835316658,
-0.03138143569231033,
0.0864882543683052,
0.014835339970886707,
-0.20636722445487976,
0.0410323292016983,
-0.1658780574798584,
-0.20158420503139496,
-0.020238831639289856,
0.08828455209732056,
-0.014783603139221668,
0.050141818821430206,
-0.0038134874776005745,
-0.02889023721218109,
0.13159918785095215,
0.0057630399242043495,
-0.013884657062590122,
-0.09318600594997406,
0.09912966191768646,
-0.08810874819755554,
0.20005369186401367,
-0.003796978387981653,
0.08357775211334229,
0.08760055154561996,
0.05028131976723671,
-0.09524627774953842,
0.03046833537518978,
0.07537699490785599,
-0.06979774683713913,
0.031501978635787964,
0.18035216629505157,
-0.0439562164247036,
0.08352996408939362,
0.04375293478369713,
-0.15659604966640472,
-0.0012602410279214382,
-0.05564896762371063,
-0.04111262410879135,
-0.07537701725959778,
0.0014011920429766178,
-0.06221027672290802,
0.15013287961483002,
0.2173912525177002,
-0.04692861810326576,
0.0017069553723558784,
-0.06838569045066833,
0.03141704574227333,
0.040208667516708374,
0.09617330878973007,
-0.030755698680877686,
-0.21757203340530396,
0.01612114906311035,
0.01639382727444172,
0.027619268745183945,
-0.2311965823173523,
-0.08980167657136917,
0.05174686014652252,
-0.0825168564915657,
-0.04261745139956474,
0.09950189292430878,
0.07413140684366226,
0.046257831156253815,
-0.03303683549165726,
-0.08526957035064697,
-0.044648148119449615,
0.13845016062259674,
-0.16680468618869781,
-0.02072509005665779
] |